/* shadcn/ui 스타일 토큰 (zinc) */
:root{
  color-scheme:dark;--radius:.5rem;
  --background:240 10% 3.9%;--foreground:0 0% 98%;
  --card:240 10% 3.9%;--muted:240 3.7% 15.9%;--muted-foreground:240 5% 64.9%;
  --border:240 3.7% 15.9%;--input:240 3.7% 15.9%;--primary:0 0% 98%;--primary-foreground:240 5.9% 10%;
  --accent:240 3.7% 15.9%;--ring:240 4.9% 83.9%;
  --glass:hsl(240 10% 7%/.7);--glass-hover:hsl(240 8% 16%/.75);
}
/* glass: translucent + blurred so data stays readable over the stars */
header.top,.card,summary,.challenge-row,.challenge-t,details .tw,.controls{background:var(--glass);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}
/* space background (bg.js draws stars + meteors on the canvases) */
body::before{content:"";position:fixed;inset:0;z-index:-3;pointer-events:none;
  background:radial-gradient(ellipse 80% 60% at 85% 0%,hsl(255 60% 16%/.7),transparent 70%),radial-gradient(ellipse 70% 50% at 0% 100%,hsl(215 70% 14%/.7),transparent 70%)}
#bg-stars,#bg-meteor{position:fixed;inset:0;width:100vw;height:100vh;z-index:-2;pointer-events:none}
#bg-stars{filter:blur(.8px)}  /* soft, slightly out-of-focus stars; static layer so the cost is paid once */
#bg-meteor{z-index:-1}
*{box-sizing:border-box;border-color:hsl(var(--border))}
body{margin:0;background:hsl(var(--background));color:hsl(var(--foreground));
  font:17px/1.6 "Inter",-apple-system,"Apple SD Gothic Neo","Noto Sans KR",sans-serif;-webkit-font-smoothing:antialiased;font-variant-numeric:tabular-nums}
body{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
main{width:100%;flex:1 0 auto;max-width:1280px;margin:0 auto;padding:0 20px 64px}
footer.foot{width:100%;padding:20px max(20px,calc((100% - 1280px)/2 + 20px)) 40px;border-top:1px solid hsl(var(--border));color:hsl(var(--muted-foreground));font-size:14px;text-align:center}
a{color:inherit}

/* header / nav */
header.top{border-bottom:1px solid hsl(var(--border));margin-bottom:32px;position:sticky;top:0;z-index:10}
header.top .in{max-width:1280px;margin:0 auto;padding:0 20px;height:60px;display:flex;align-items:center;gap:28px}
header.top .brand{font-weight:600;font-size:18px;text-decoration:none}
nav{display:flex;gap:4px}
nav a{padding:6px 14px;border-radius:calc(var(--radius) - 2px);text-decoration:none;color:hsl(var(--muted-foreground));font-size:16px;font-weight:500}
nav a:hover{background:hsl(var(--accent));color:hsl(var(--foreground))}
nav a.active{background:hsl(var(--accent));color:hsl(var(--foreground))}
button.lang{height:34px;padding:0 12px;display:inline-flex;align-items:center;gap:6px;border-radius:calc(var(--radius) - 2px);border:0;
  background:transparent;color:hsl(var(--muted-foreground));font:inherit;font-size:15px;font-weight:500;cursor:pointer}
button.lang #lang-short{display:none}
button.lang:hover{background:hsl(var(--accent));color:hsl(var(--foreground))}
h1{font-size:32px;font-weight:700;letter-spacing:-.02em;margin:0 0 6px}
.lead{color:hsl(var(--muted-foreground));margin:0 0 28px}

/* card */
.card{border:1px solid hsl(var(--border));border-radius:calc(var(--radius) + 4px);box-shadow:0 1px 2px rgb(0 0 0/.05)}
.card-h{padding:20px 24px 0}.card-h h2{margin:0;font-size:19px;font-weight:600;letter-spacing:-.01em}
.card-h p{margin:4px 0 0;color:hsl(var(--muted-foreground));font-size:15px}
.card:has(>.list-head){overflow:clip;scroll-margin-top:var(--hdr)}  /* 고정 막대의 네모난 배경이 카드의 둥근 모서리 밖으로 삐져나오지 않게 한다. clip 은 스크롤 컨테이너를 만들지 않아 sticky 가 유지된다 */
.list-head{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:12px}
.card-h .h-line{display:flex;align-items:baseline;flex-wrap:wrap;gap:0 10px}.card-h .h-line p{margin:0}
.card-c{padding:20px 24px 24px}
.grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:24px}
.grid3{grid-template-columns:repeat(3,1fr)}
@media(max-width:900px){.grid,.grid3{grid-template-columns:repeat(2,1fr)}}
.stat{padding:18px 20px}
.stat span{display:block;font-size:15px;color:hsl(var(--muted-foreground));font-weight:500}
.stat b{display:inline-block;font-size:30px;font-weight:700;letter-spacing:-.02em;margin-top:2px}
.stat small{margin-left:8px;color:hsl(var(--muted-foreground));font-size:15px}
.two{display:grid;grid-template-columns:repeat(auto-fit,minmax(420px,1fr));gap:16px;margin-bottom:24px}
@media(max-width:520px){.two{grid-template-columns:1fr}}

/* bars */
.bar{display:grid;grid-template-columns:minmax(80px,38%) 1fr 90px;align-items:center;gap:12px;margin:8px 0;font-size:15px}
.bar .l{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bar .t{height:8px;border-radius:999px;background:hsl(var(--muted));overflow:hidden}
.bar .t i{display:block;height:100%;background:hsl(var(--primary) / .75);border-radius:999px}
.bar .v{text-align:right;color:hsl(var(--muted-foreground));font-variant-numeric:tabular-nums}

/* controls */
.controls{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:20px;position:sticky;top:0;z-index:5;
  padding:10px 0}
input,select{font:inherit;font-size:16px;height:42px;padding:0 12px;border-radius:calc(var(--radius) - 2px);
  border:1px solid hsl(var(--input));background:transparent;color:hsl(var(--foreground))}
select option{background:hsl(var(--background))}
input[type=search]{flex:1;min-width:200px}
select:focus{outline:2px solid hsl(var(--ring));outline-offset:1px}
input:focus{outline:none}
select{max-width:100%}

/* accordion / table */
details{margin-bottom:20px}
summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:10px;padding:14px 18px;
  border:1px solid hsl(var(--border));border-radius:calc(var(--radius) + 2px);font-size:18px;font-weight:600}
summary:hover{background:var(--glass-hover)}
summary::after{flex:none;content:"▸";color:hsl(var(--muted-foreground));font-size:14px;transition:transform .25s ease}
details[open]:not(.shut)>summary::after{transform:rotate(90deg)}
details[open]>summary{border-bottom-left-radius:0;border-bottom-right-radius:0}
summary .badge{margin-left:auto;flex-shrink:0}
summary .badge+.badge{margin-left:0}
.sum-t{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.sum-t small{font-size:14px;font-weight:400;color:hsl(var(--muted-foreground));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.badge-lk{text-decoration:none}.badge-lk:hover{background:hsl(var(--accent));color:hsl(var(--foreground))}
.badge{display:inline-flex;align-items:center;padding:2px 10px;border-radius:999px;font-size:14px;font-weight:500;
  background:hsl(var(--muted));color:hsl(var(--muted-foreground));border:1px solid hsl(var(--border))}
.tw{border:1px solid hsl(var(--border));border-top:0;border-radius:0 0 calc(var(--radius) + 2px) calc(var(--radius) + 2px);overflow-x:auto}
.tw.anim{overflow:hidden}
.tbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:8px 14px 16px}
.tbar .mq{flex:0 1 280px;min-width:160px;height:38px}
.tbar .pg{margin-left:auto}
.tbar .pager{margin:0}
table{width:100%;min-width:1000px;border-collapse:collapse;table-layout:fixed}
th,td{padding:4px 16px;line-height:1.3;text-align:left;border-bottom:1px solid hsl(var(--border));white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
th{height:34px;font-size:14px;font-weight:500;color:hsl(var(--muted-foreground))}
tbody tr:hover{background:hsl(var(--muted)/.5)}
tr:last-child td{border-bottom:0}
th:first-child,td:first-child{padding-left:8px;padding-right:8px;text-overflow:clip}
td.num,th.num{text-align:center}td.r,th.r{text-align:right;font-variant-numeric:tabular-nums}
td a.name{font-weight:600;text-decoration:none}td a.name:hover,tr.go:hover a.name,td.go:hover a.name{text-decoration:underline}
tr.go,td.go{cursor:pointer}
.tname{display:flex;align-items:center;gap:10px}
.avatar{position:relative;flex:none;display:inline-flex;align-items:flex-end;justify-content:center;width:28px;height:28px;border-radius:50%;overflow:hidden;background:hsl(var(--muted));color:hsl(var(--muted-foreground)/.55)}
.avatar svg{width:100%;height:100%;fill:currentColor}
.avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transform:scale(1.15);transition:opacity .35s ease,transform .5s ease}
.avatar img.on{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){.avatar img{transition:none;transform:none}}
td a.lk{display:inline-flex;align-items:center;height:24px;padding:0 10px;border:1px solid hsl(var(--input));
  border-radius:calc(var(--radius) - 2px);font-size:13px;font-weight:500;text-decoration:none}
td a.lk:hover{background:hsl(var(--accent))}
.no{color:hsl(var(--muted-foreground));opacity:.5}
button.more{margin:14px;height:38px;padding:0 16px;border-radius:calc(var(--radius) - 2px);border:1px solid hsl(var(--input));
  background:transparent;color:inherit;font:inherit;font-size:15px;font-weight:500;cursor:pointer}
button.more:hover{background:hsl(var(--accent))}
.empty,.err{padding:48px;text-align:center;color:hsl(var(--muted-foreground))}
.err{color:#dc2626}
button.more:disabled{opacity:.4;cursor:not-allowed}

.challenge-row{display:flex;align-items:center;gap:10px;margin-bottom:12px;padding:14px 18px;border:1px solid hsl(var(--border));
  border-radius:calc(var(--radius) + 2px);font-size:18px;font-weight:600;text-decoration:none}
.challenge-row:hover{background:var(--glass-hover)}.challenge-row .badge{margin-left:auto}

/* challenge page */
.back{display:inline-block;margin-bottom:12px;color:hsl(var(--muted-foreground));font-size:15px;text-decoration:none}
.back:hover{color:hsl(var(--foreground))}
.desc{max-width:80ch;margin:0 0 12px}
.ext{display:inline-block;margin-bottom:28px;font-size:15px;color:hsl(var(--muted-foreground))}
.challenge-t{border:1px solid hsl(var(--border));border-radius:calc(var(--radius) + 2px)}
.pager{display:flex;gap:6px;align-items:center;justify-content:flex-end;flex-wrap:wrap;margin:16px 0}
.pager button{height:38px;min-width:38px;padding:0 12px;border-radius:calc(var(--radius) - 2px);border:1px solid hsl(var(--input));
  background:transparent;color:inherit;font:inherit;font-size:15px;cursor:pointer}
.pager button:hover:not(:disabled){background:hsl(var(--accent))}
.pager button[aria-current]{background:hsl(var(--primary));color:hsl(var(--primary-foreground))}
.pager button:disabled{opacity:.4;cursor:not-allowed}
.pager .gap{color:hsl(var(--muted-foreground))}
.pager button[data-p]:not(:first-child):not(:last-of-type){width:44px;padding:0}
.pager .gap{width:44px;text-align:center}
.pager .pbtns{display:contents}
.pager .tsearch{margin-right:auto}
tbody tr{height:40px}

/* region page */
.sec-h{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin:8px 0 14px}.sec-h h2.sec{margin:0}.sec-h button.more{margin:0 0 0 8px;height:34px}
h2.sec{font-size:22px;font-weight:600;letter-spacing:-.01em;margin:8px 0 14px}

footer.foot .lic{margin-top:10px;font-size:14px}footer.foot .lic a{text-decoration:underline;text-underline-offset:2px}footer.foot .lic a:hover{color:hsl(var(--foreground))}

/* about page */
.card.notice{margin-top:16px}
.card .ext{margin-bottom:0}.card.notice .desc{margin-bottom:0}.card.notice .desc+.ext{margin-top:16px}

/* entrance animation */
@keyframes rise{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.top{animation:rise .5s ease-out backwards}
#app>*{animation:rise .55s cubic-bezier(.22,1,.36,1) backwards}  /* backwards: a filled opacity animation would block backdrop-filter on descendants */
#app>:nth-child(2){animation-delay:.07s}
#app>:nth-child(3){animation-delay:.14s}
#app>:nth-child(4){animation-delay:.21s}
#app>:nth-child(n+5){animation-delay:.28s}
@media (prefers-reduced-motion:reduce){.top,#app>*{animation:none}}

/* bar fill animation */
@keyframes bar-fill{from{transform:scaleX(0)}to{transform:scaleX(1)}}
.bar .t i{transform-origin:left;animation:bar-fill .9s cubic-bezier(.22,1,.36,1) .35s both}
.bar:nth-child(2) .t i{animation-delay:.42s}
.bar:nth-child(3) .t i{animation-delay:.49s}
.bar:nth-child(4) .t i{animation-delay:.56s}
.bar:nth-child(n+5) .t i{animation-delay:.63s}
@media (prefers-reduced-motion:reduce){.bar .t i{animation:none}}

/* 넓은 화면: 목록 안에서 스크롤할 때 페이저와 컬럼 헤더를 상단 헤더 아래에 고정한다.
   (overflow 스크롤 컨테이너가 있으면 sticky 가 막히므로 좁은 화면에서만 가로 스크롤을 둔다) */
:root{--hdr:60px;--list-pager-h:62px;--list-head-h:52px;--sticky-bg:hsl(240 10% 6%)}
.tscroll{overflow-x:auto}
@media(min-width:1101px){
  .tscroll{overflow:visible}
  .list-head{position:sticky;top:var(--hdr);z-index:6;height:var(--list-head-h);box-sizing:border-box;padding-top:0;align-items:center;background:var(--sticky-bg)}
  #list>.pager,#regtable>.pager{position:sticky;top:calc(var(--hdr) + var(--list-head-h));z-index:5;margin:0;padding:8px 0 16px;height:var(--list-pager-h);box-sizing:border-box;background:var(--sticky-bg)}
  #list th,#regtable th{position:sticky;top:calc(var(--hdr) + var(--list-head-h) + var(--list-pager-h));z-index:4;background:var(--sticky-bg);box-shadow:inset 0 -1px hsl(var(--border))}
}

/* 지역 페이지: 스크롤할 때 현재 챌린지 제목(summary)을 상단 헤더 아래에 고정한다 (details 가 끝나면 함께 밀려난다) */
details{scroll-margin-top:calc(var(--hdr) + 8px)}
@media(min-width:1101px){
  details>summary{position:sticky;top:var(--hdr);z-index:6;background:var(--sticky-bg)}
  details:not(.shut) .tw:not(.anim){overflow:visible}  /* overflow 스크롤 컨테이너가 있으면 sticky 가 막힌다 */
  .tw>.tbar{position:sticky;top:calc(var(--hdr) + var(--sum-h,0px));z-index:5;height:var(--list-pager-h);box-sizing:border-box;background:var(--sticky-bg)}
  .tw table th{position:sticky;top:calc(var(--hdr) + var(--sum-h,0px));z-index:4;background:var(--sticky-bg);box-shadow:inset 0 -1px hsl(var(--border))}
  .tw>.tbar~table th{position:sticky;top:calc(var(--hdr) + var(--sum-h,0px) + var(--list-pager-h));z-index:4;background:var(--sticky-bg);box-shadow:inset 0 -1px hsl(var(--border))}
}

/* page-change animation: tbody is re-created on every pagination/sort/search */
@keyframes rows-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
#list tbody,#regtable tbody{animation:rows-in .35s ease-out both}
@media (prefers-reduced-motion:reduce){#list tbody,#regtable tbody{animation:none}}

/* mobile */
button,summary,nav a,.pager button{touch-action:manipulation}
@media(max-width:640px){
  body{font-size:16px}
  main{padding:0 16px 48px}
  footer.foot{padding:16px 16px 32px}
  header.top{margin-bottom:20px}
  header.top .in{height:auto;padding:12px 16px 10px;flex-wrap:wrap;gap:8px}
  header.top .brand{font-size:16px;width:100%;line-height:1.3}
  header.top button.lang,header.top button.gs-open{order:2;margin-left:0;height:40px;flex:none;border:1px solid hsl(var(--border))}
  button.gs-open svg{width:22px;height:22px}
  header.top button.gs-open{width:40px;height:40px;padding:0;justify-content:center;align-self:center}
  button.lang{min-width:40px;padding:0 10px;justify-content:center;align-self:center;font-size:16px;font-weight:600}
  button.lang svg,button.lang #lang-label{display:none}
  button.lang #lang-short{display:inline}
  nav{order:1;flex:1;min-width:0;gap:2px;overflow-x:auto;scrollbar-width:none}
  nav::-webkit-scrollbar{display:none}
  nav a{padding:8px 10px;white-space:nowrap}
  h1{font-size:26px}
  .lead{margin-bottom:20px}
  .card-h{padding:16px 16px 0}.card-c{padding:16px}
  .grid,.grid3{gap:10px;grid-auto-rows:1fr}  /* 줄마다 높이가 달라지지 않게 가장 큰 카드에 맞춘다 */
  .stat{padding:12px 14px;display:flex;flex-direction:column;min-width:0}
  .stat span{font-size:clamp(9px,calc((50vw - 49px)/14),12px);line-height:1.35;white-space:nowrap}  /* 라벨은 한 줄로 고정하고, 카드 폭(≈50vw-49px)에 맞춰 글씨를 줄인다 */
  .stat b{display:block;font-size:24px;line-height:1.15;margin-top:0;padding-top:6px}
  .stat small{display:block;margin:2px 0 0;font-size:13px;line-height:1.35}
  .bar{grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;margin:14px 0}
  .bar .l{grid-column:1;grid-row:1}
  .bar .v{grid-column:2;grid-row:1;white-space:nowrap}
  .bar .t{grid-column:1/-1;grid-row:2}
  .controls>*{flex:1 1 100%;min-width:0}
  input[type=search]{min-width:0}
  #rq{max-width:none!important}
  summary{padding:12px 14px;font-size:16px;flex-wrap:wrap}
  summary .sum-t{flex:1 1 160px;min-width:160px}  /* 제목이 눌리지 않게 최소 폭을 두고, 모자라면 뱃지를 아랫줄로 내린다 */
  summary .badge{margin-left:0}
  summary::after{margin-left:auto}
  .challenge-row{padding:12px 14px;font-size:16px;flex-wrap:wrap}
  .challenge-row .sum-t{flex:1 1 160px;min-width:160px}
  .challenge-row .badge{margin-left:0}
  .pager{gap:2px;flex-wrap:wrap;justify-content:center}
  .pager button{flex:1 1 0;min-width:0;height:40px;padding:0 4px;font-size:14px}
  .pager button:first-of-type,.pager button:last-of-type{flex:0 0 auto;padding:0 8px}
  .pager button[data-p]:not(:first-child):not(:last-of-type){max-width:44px;width:auto;padding:0}
  .pager .gap{flex:0 0 14px;width:14px}
  .pager .tsearch{max-width:none;margin-bottom:4px}
  th,td{padding:4px 12px}
  td a.lk{height:32px}
  .empty,.err{padding:32px 16px}
  h2.sec{font-size:20px}
}
@media(max-width:380px){.grid,.grid3{grid-template-columns:1fr}}

/* challenge team filter */
.mfilter{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:8px}
.mfilter input{flex:1;min-width:220px;max-width:420px}
button.chip{height:34px;padding:0 12px;border-radius:999px;border:1px solid hsl(var(--input));background:hsl(var(--muted));color:inherit;font:inherit;font-size:14px;font-weight:500;cursor:pointer}
button.chip:hover{background:hsl(var(--accent))}
.rgn{cursor:pointer}.rgn:hover{text-decoration:underline}
.team-img,.challenge-img{display:block;max-width:100%;height:auto;border-radius:8px;margin-bottom:16px}
.challenge-intro{display:flex;gap:24px;align-items:flex-start;margin-bottom:28px}
.challenge-intro .ext{margin-bottom:0}
.challenge-meta{display:flex;flex-wrap:wrap;gap:12px 32px;margin-bottom:16px}
.challenge-meta strong{display:block;margin-bottom:6px}
.challenge-meta .chips{display:flex;flex-wrap:wrap;gap:6px}
#mdetail{margin-bottom:16px}
.fold>.card-h{cursor:pointer}
.fold>.card-h h2::before{content:"▸";display:inline-block;width:1.2em;color:hsl(var(--muted-foreground));transition:transform .2s}
.fold.open>.card-h h2::before{transform:rotate(90deg)}
.fold:not(.open){padding-bottom:0}
.fold:not(.open)>.card-c{display:none}
.fold:not(.open)>.card-h{padding-bottom:20px;border-bottom:0;border-radius:calc(var(--radius) + 3px)}
.challenge-intro .challenge-img{flex:none;width:min(40%,360px);margin-bottom:0;border:1px solid hsl(var(--border))}
@media(max-width:700px){.challenge-intro{flex-direction:column;gap:16px}.challenge-intro .challenge-img{width:100%}}
.desc.intro{white-space:pre-line;margin-bottom:0}
.challenge-thumb{flex:none;width:72px;height:60px;object-fit:cover;border-radius:6px}
@media(max-width:700px){.challenge-thumb{width:56px;height:48px}}
.team-intro{display:flex;gap:24px;align-items:flex-start}
.team-intro .team-img{flex:none;width:300px;max-width:40%;margin-bottom:0}
.team-intro .desc{flex:1;min-width:0}
@media(max-width:700px){.team-intro{flex-direction:column;gap:16px}.team-intro .team-img{max-width:100%}}
.team-sec{margin-bottom:16px;padding-bottom:24px}  /* sticky 제목줄은 부모의 안쪽 여백 위까지만 내려오므로, 카드 아래 여백을 카드 쪽에 둬서 모서리 바닥까지 가지 않게 한다 */
.team-sec>.card-c{padding-bottom:0}
/* 팀 페이지 카드: 제목줄(제목 + 확대·번역 같은 액션)은 스크롤해도 상단 헤더 아래에 붙어 있고, 구분선으로 본문과 나뉜다 */
.team-sec>.card-h{position:sticky;top:var(--hdr);z-index:5;padding-bottom:14px;background:var(--sticky-bg);border-bottom:1px solid hsl(var(--border));border-radius:calc(var(--radius) + 3px) calc(var(--radius) + 3px) 0 0;transition:border-radius .15s}
.project-details{line-height:1.7}
/* 긴 글은 한 줄이 너무 길어지지 않게 80ch 폭으로 줄이고, 남는 폭은 양쪽 여백으로 나눠 가운데에 둔다 */
.card-c.prose{padding-inline:max(24px,calc((100% - 80ch)/2))}
.project-details h2,.project-details h3,.project-details h4{margin:1.4em 0 .5em}
.project-details :first-child{margin-top:0}
.project-details img{display:block;max-width:100%;max-height:70vh;width:auto;height:auto;margin:12px auto;border-radius:8px}  /* 세로로 긴 이미지는 화면 높이의 70%까지만, 비율은 유지 */
.project-details a,.ref-list a{overflow-wrap:anywhere}
.ref-list{margin:0;padding-left:20px;line-height:1.8}
.team-pair{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:16px;margin-bottom:16px}
.team-pair>.team-sec{margin-bottom:0;min-width:0}
.zoom-h,.tr-h{display:flex;align-items:center;justify-content:space-between;gap:12px}
.zoom-acts{display:flex;gap:8px}
.zoom-btn{display:grid;place-items:center;width:32px;height:32px;padding:0;border:1px solid hsl(var(--border));border-radius:8px;background:transparent;color:inherit;cursor:pointer;text-decoration:none}
.tr-toggle{padding:4px 10px;border:1px solid hsl(var(--border));border-radius:8px;background:transparent;color:hsl(var(--muted-foreground));font:inherit;font-size:13px;cursor:pointer}
.tr-toggle:hover:not(:disabled){background:hsl(var(--muted))}.tr-toggle:disabled{opacity:.6;cursor:progress}
.zoom-btn:hover{background:hsl(var(--muted))}
.zoom-btn .z-out,.zoomed .zoom-btn .z-in{display:none}.zoomed .zoom-btn .z-out{display:inline-flex}
/* 고양이(live2d-widget)가 인라인으로 z-index:99999 를 쓰므로 그 위여야 한다 */
.zoomable.zoomed{--z-above-cat:100000;position:fixed;inset:16px;z-index:var(--z-above-cat);overscroll-behavior:contain;display:flex;flex-direction:column;margin:0;background:var(--sticky-bg);box-shadow:0 0 0 100vmax rgb(0 0 0/.75)}
html.zoom-lock{overflow:hidden}
::view-transition-old(root),::view-transition-new(root){animation:none;mix-blend-mode:normal}
::view-transition-group(zoom-card){animation-duration:.45s;animation-timing-function:cubic-bezier(.22,1,.36,1)}
.team-sec>.card-h.stuck{border-radius:0}
.zoomable.zoomed>.card-h{position:static}
.zoomable.zoomed .card-c{flex:1;min-height:0}
.zoomable.zoomed .demo-frame{aspect-ratio:auto;height:100%}
.demo-frame{position:relative;aspect-ratio:16/9;border-radius:8px;overflow:hidden;background:#000}
.demo-frame.site{background:#fff}
.demo-frame iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.link-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}
.link-tile{display:flex;align-items:center;gap:14px;padding:14px 16px;border:1px solid hsl(var(--border));border-radius:var(--radius);text-decoration:none;color:inherit;transition:background .15s,border-color .15s}
.link-tile:hover{background:hsl(var(--accent));border-color:hsl(var(--ring)/.4)}
.link-tile .ico{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:10px;background:hsl(var(--muted))}
.link-tile .txt{display:flex;flex-direction:column;min-width:0;flex:1}
.link-tile b{font-weight:600}
.link-tile small{color:hsl(var(--muted-foreground));font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.link-tile .go{flex:none;color:hsl(var(--muted-foreground))}
.empty-row{text-align:center;color:hsl(var(--muted-foreground))}
.tsearch{position:relative;flex:none;width:100%;max-width:360px}
.tsearch input{width:100%}
.tsearch #chip{position:absolute;left:7px;top:50%;transform:translateY(-50%);max-width:65%;z-index:1}
.tsearch button.chip{height:28px;max-width:100%;padding:0 10px;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* global search (Cmd/Ctrl+K) */
button.gs-open{margin-left:auto;height:34px;padding:0 10px;display:inline-flex;align-items:center;gap:8px;border-radius:calc(var(--radius) - 2px);border:1px solid hsl(var(--border));
  background:transparent;color:hsl(var(--muted-foreground));font:inherit;font-size:15px;font-weight:500;cursor:pointer}
button.gs-open:hover{background:hsl(var(--accent));color:hsl(var(--foreground))}
.gs-open kbd{font:inherit;font-family:system-ui,-apple-system,sans-serif;font-size:12px;line-height:1;display:inline-flex;align-items:center;padding:3px 6px;border-radius:4px;background:hsl(var(--muted))}
.gs{position:fixed;inset:0;z-index:50;display:flex;justify-content:center;align-items:flex-start;padding:12vh 16px 0;background:rgb(0 0 0/.55);
  opacity:0;visibility:hidden;transition:opacity .18s ease,visibility 0s .18s}
.gs.open{opacity:1;visibility:visible;transition-delay:0s}
.gs-box{width:100%;max-width:560px;max-height:70vh;display:flex;flex-direction:column;border:1px solid hsl(var(--border));border-radius:calc(var(--radius) + 4px);
  background:hsl(240 10% 7%/.95);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);overflow:hidden;
  transform:translateY(-12px) scale(.97);transition:transform .18s ease}
.gs.open .gs-box{transform:none}
@media(prefers-reduced-motion:reduce){.gs,.gs-box{transition:none}}
.gs-in{flex:none;display:flex;align-items:center;gap:12px;padding:0 18px;border-bottom:1px solid hsl(var(--border));color:hsl(var(--muted-foreground))}
.gs-box:has(#gs-list:empty) .gs-in{border-bottom:0}  /* 입력 전에는 밑줄 없이 스포트라이트처럼 */
.gs-in svg{flex:none}
.gs-box input{flex:1;min-width:0;width:100%;height:52px;border:0;border-radius:0;padding:0;background:transparent;outline:none}
.gs-box ul:empty{display:none}
.gs-box ul{list-style:none;margin:0;padding:6px;overflow-y:auto}
.gs-h{padding:8px 12px 4px;font-size:13px;font-weight:600;color:hsl(var(--muted-foreground))}
.gs-item{display:flex;align-items:center;gap:10px;padding:8px 12px;border-radius:calc(var(--radius) - 2px);cursor:pointer}
.gs-item.on{background:hsl(var(--accent))}
.gs-item .n{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gs-item .s{flex:none;max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;color:hsl(var(--muted-foreground))}
.gs-empty{padding:16px 12px;text-align:center;color:hsl(var(--muted-foreground))}
@media(max-width:640px){.gs-open kbd,.gs-open span{display:none}}

/* 고양이 (cat.js): live2d-widget 이 그리는 캔버스와 컨테이너 */
#live2dcanvas{filter:drop-shadow(0 18px 24px rgb(0 0 0/.45));cursor:pointer;pointer-events:auto!important;transform-origin:bottom center}
#live2d-widget{cursor:pointer;pointer-events:auto!important;user-select:none;-webkit-user-select:none;touch-action:manipulation}
@keyframes cat-meow-bounce{0%{transform:scale(1)}30%{transform:scale(1.08,.94)}60%{transform:scale(.96,1.04)}100%{transform:scale(1)}}
#live2dcanvas.meowing{animation:cat-meow-bounce .35s ease-out}
#live2d-widget::before{content:"";position:absolute;z-index:-1;left:15%;bottom:24%;width:70%;height:8%;border-radius:50%;background:radial-gradient(closest-side,rgb(0 0 0/.45),transparent);pointer-events:none!important}
