/* w-grow 도감(A–F 등급) · 오픈타위 배달 · 한옥 스테이 · 주간 순위 — v823 토큰(--ot-*)을 쓰는 단정한 흰 시트.
   머리는 먹색 띠에 놋쇠빛 작은 글씨, 등급은 낙관처럼 찍힌 네모 도장(A 주홍 · B 금 · C 쪽 · D 비취 · E 흙 · F 먹). */
:root{--gw-a:#b8322a;--gw-b:#b8872b;--gw-c:#2b5f8a;--gw-d:#2f7a5c;--gw-e:#7c6650;--gw-f:#8d949e;--gw-ink:#141a24;--gw-brass:#d8b26a}
.g-A{--g:var(--gw-a)}.g-B{--g:var(--gw-b)}.g-C{--g:var(--gw-c)}.g-D{--g:var(--gw-d)}.g-E{--g:var(--gw-e)}.g-F{--g:var(--gw-f)}

/* ---------- 시트 공통 ---------- */
.gw-col,.gw-sheet{background:#fff;color:var(--ot-ink);border:0;border-radius:24px;padding:0;width:min(560px,calc(100% - 24px));max-height:88dvh;overflow:auto;box-shadow:0 24px 70px rgba(13,17,23,.28);font:500 14px/1.45 system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif;overscroll-behavior:contain}
.gw-sheet{width:min(460px,calc(100% - 24px))}
.gw-col::backdrop,.gw-sheet::backdrop{background:rgba(13,17,23,.42);backdrop-filter:blur(2px)}
.gw-head{height:auto;min-height:0;border-bottom:0;margin:0;position:sticky;top:0;z-index:2;display:flex;align-items:flex-start;gap:12px;padding:18px 18px 16px;background:linear-gradient(180deg,#1b2130,#121722);color:#fff}
.gw-head>div{flex:1;min-width:0}
.gw-head small{display:block;color:var(--gw-brass);font:600 11.5px/1.3 "Inter Tight",system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif;letter-spacing:.04em}
.gw-head h2{margin:3px 0 0;color:#fff;font:800 21px/1.2 "Inter Tight",system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif;letter-spacing:-.02em}
.gw-x{flex:none;width:36px;height:36px;border-radius:12px;border:0;background:rgba(255,255,255,.1);color:#fff;font:400 22px/1 system-ui;cursor:pointer}
.gw-lead{margin:16px 18px 10px;color:var(--ot-ink);font-size:14.5px}
.gw-small{margin:12px 18px 18px;color:var(--ot-sub);font-size:12.5px;line-height:1.5}
.gw-wait{list-style:none;padding:18px;text-align:center;color:var(--ot-sub)}
.gw-tabs{display:flex;gap:6px;margin:14px 18px 0;padding:4px;border-radius:14px;background:var(--ot-soft)}
.gw-tabs button{flex:1;min-height:40px;border:0;border-radius:11px;background:transparent;color:var(--ot-sub);font:700 14px/1.1 system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif;cursor:pointer}
.gw-tabs button[data-n]::after{content:attr(data-n);display:block;margin-top:2px;font:600 11px/1 system-ui;color:var(--ot-sub);opacity:.8}
.gw-tabs button[aria-selected=true]{background:#fff;color:var(--ot-ink);box-shadow:0 1px 4px rgba(13,17,23,.12)}

/* ---------- 도감 ---------- */
.gw-score{display:grid;grid-template-columns:auto 1fr;gap:14px 16px;align-items:center;margin:16px 18px 0;padding:14px 16px;border-radius:var(--ot-r);background:var(--ot-soft)}
.gw-ring{--p:0;width:64px;height:64px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--gw-a) calc(var(--p)*1%),#dfe2e8 0)}
.gw-ring b{width:50px;height:50px;border-radius:50%;display:grid;place-items:center;background:#fff;font:800 14px/1 "Inter Tight",system-ui;color:var(--ot-ink)}
.gw-pts small{display:block;color:var(--ot-sub);font-size:12px;font-weight:600}
.gw-pts strong{font:800 26px/1.1 "Inter Tight",system-ui;letter-spacing:-.02em}
.gw-pts span{margin-left:8px;color:var(--ot-sub);font-size:12.5px}
.gw-grades{grid-column:1/-1;display:grid;grid-template-columns:repeat(6,1fr);gap:6px;margin:0;padding:0;list-style:none}
.gw-grades li{display:flex;align-items:baseline;justify-content:center;gap:3px;padding:6px 2px;border-radius:10px;background:#fff}
.gw-grades i,.gw-g,.gw-filter i,.gw-oddrow i{font:700 12px/1 "AppleMyungjo","Nanum Myeongjo","Noto Serif KR",serif;font-style:normal;color:#fff7ea;background:var(--g);border-radius:5px;padding:3px 5px;box-shadow:inset 0 0 0 1px rgba(255,247,234,.55)}
.gw-grades b{font:800 14px/1 "Inter Tight",system-ui;margin-left:3px}
.gw-grades small{color:var(--ot-sub);font-size:11px}
.gw-filter{display:flex;gap:6px;margin:12px 18px 0;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
.gw-filter button{flex:none;display:flex;align-items:center;gap:6px;min-height:34px;padding:0 12px;border:1px solid var(--ot-line);border-radius:999px;background:#fff;color:var(--ot-ink);font:600 13px/1 system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif;cursor:pointer}
.gw-filter button[aria-pressed=true]{border-color:var(--ot-ink);background:var(--ot-ink);color:#fff}
.gw-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:8px;margin:12px 18px 0;padding:0;list-style:none}
.gw-card{position:relative;display:flex;flex-direction:column;gap:3px;min-height:112px;padding:12px 10px 10px;border-radius:14px;border:1px solid var(--ot-line);background:#fff}
.gw-card::before{content:"";position:absolute;inset:0 0 auto;height:3px;border-radius:14px 14px 0 0;background:var(--g);opacity:.85}
.gw-card .gw-g{position:absolute;top:9px;right:9px}
.gw-card .gw-ic{font-size:26px;line-height:1.1}
.gw-card b{font:700 13.5px/1.25 system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif;padding-right:22px;word-break:keep-all}
.gw-card small{color:var(--ot-sub);font-size:11.5px;line-height:1.35;word-break:keep-all}
.gw-card em{align-self:flex-end;margin-top:auto;font:700 11.5px/1 "Inter Tight",system-ui;font-style:normal;color:var(--ot-sub)}
.gw-card:not(.got){background:var(--ot-soft);border-color:transparent}
.gw-card:not(.got) .gw-ic{color:#b7bcc6}
.gw-card:not(.got) b{color:var(--ot-sub)}
.gw-card.got.g-A{background:linear-gradient(180deg,#fff6f2,#fff);border-color:#efc9c2}
.gw-card.got.g-B{background:linear-gradient(180deg,#fff9ee,#fff);border-color:#ecdcb8}
.gw-odds{margin:14px 18px 18px;padding:12px 14px;border-radius:var(--ot-r);background:var(--ot-soft)}
.gw-odds summary{cursor:pointer;font-weight:700}
.gw-odds p{margin:8px 0 0;color:var(--ot-sub);font-size:12.5px}
.gw-odds .gw-small{margin:8px 0 0}
.gw-oddrow{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0 0;padding:0;list-style:none}
.gw-oddrow li{display:flex;align-items:center;gap:5px;padding:5px 8px;border-radius:9px;background:#fff;font:700 12.5px/1 "Inter Tight",system-ui}
.gw-oddrow .gw-lv{background:var(--ot-ink);color:#fff}

/* 나의 기록 안의 요약 */
.g-dex .gw-dexsum{margin:0 0 10px}
.gw-open{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;width:100%;padding:10px;border:1px solid var(--ot-line,#e7e9ee);border-radius:16px;background:#fff;color:var(--ot-ink,#0d1117);cursor:pointer;text-align:center}
.gw-mini{display:flex;flex-direction:column;gap:3px;padding:8px 4px;border-radius:11px;background:var(--ot-soft,#f2f3f7)}
.gw-mini b{font:600 11.5px/1.2 system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif;color:var(--ot-sub,#5b6472)}
.gw-mini em{font:800 15px/1.1 "Inter Tight",system-ui;font-style:normal}
.gw-mini.gw-sc{background:var(--gw-ink);color:#fff}.gw-mini.gw-sc b{color:var(--gw-brass)}
.gw-go{grid-column:1/-1;padding-top:4px;font:700 13.5px/1.2 system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif;color:var(--ot-p,#b8432f)}

/* 빌런 무리의 세기 (레벨 구간) */
.gw-tier{flex:none;font:700 11.5px/1 system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif;font-style:normal;color:var(--gw-brass);padding:4px 7px;border-radius:999px;background:rgba(216,178,106,.14);white-space:nowrap}
.gw-tier[data-stars="4"],.gw-tier[data-stars="5"]{color:#ffb3a8;background:rgba(184,50,42,.28)}

/* ---------- 배달 ---------- */
.gw-orders,.gw-stays{display:grid;gap:8px;margin:0 18px;padding:0;list-style:none}
.gw-orders button{display:grid;grid-template-columns:1fr auto 1fr;grid-template-rows:auto auto;gap:6px 10px;align-items:center;width:100%;padding:14px;border:1px solid var(--ot-line);border-radius:var(--ot-r);background:#fff;color:var(--ot-ink);text-align:left;cursor:pointer}
.gw-orders button>span>b{display:block;font:700 14.5px/1.3 system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif;word-break:keep-all}
.gw-orders button>span>small{color:var(--ot-sub);font-size:12px}
.gw-arrow{color:var(--ot-p);font-weight:800}
.gw-to{text-align:right}
.gw-meta{grid-column:1/-1;display:flex;gap:6px;flex-wrap:wrap}
.gw-meta em{font:700 12px/1 "Inter Tight",system-ui;font-style:normal;padding:6px 8px;border-radius:8px;background:var(--ot-soft);color:var(--ot-ink)}
.gw-meta .gw-pay{margin-left:auto;background:var(--gw-ink);color:var(--gw-brass)}
.gw-pill{position:absolute;z-index:6;left:50%;top:64px;transform:translateX(-50%);display:grid;grid-template-columns:auto 1fr auto;grid-template-rows:auto auto;column-gap:12px;align-items:center;min-width:260px;max-width:calc(100% - 24px);padding:10px 10px 10px 16px;border-radius:20px;background:rgba(255,255,255,.9);border:1px solid rgba(255,255,255,.7);backdrop-filter:blur(14px) saturate(1.4);-webkit-backdrop-filter:blur(14px) saturate(1.4);box-shadow:0 14px 40px rgba(13,17,23,.22);color:var(--ot-ink)}
.gw-pill .gw-step{grid-column:1/3;font:700 11px/1.3 system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif;letter-spacing:.04em;color:var(--ot-p)}
.gw-pill.drop .gw-step{color:var(--gw-d)}
.gw-pill b{grid-column:1/3;font:800 15px/1.25 system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gw-pill small{grid-column:1/3;color:var(--ot-sub);font:600 12.5px/1.3 "Inter Tight",system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif}
.gw-pill.late small{color:var(--gw-a)}
.gw-pill [data-x]{grid-column:3;grid-row:1/4;min-height:40px;padding:0 14px;border:0;border-radius:12px;background:var(--ot-soft);color:var(--ot-ink);font:700 13px/1 system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif;cursor:pointer}

/* ---------- 한옥 스테이 ---------- */
.gw-now{margin:0 18px 10px;padding:10px 12px;border-radius:12px;background:#f1f7f3;color:var(--gw-d);font-size:13px}
.gw-stays li{padding:12px;border:1px solid var(--ot-line);border-radius:var(--ot-r)}
.gw-stayname{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.gw-stayname b{font:700 14.5px/1.3 system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif;word-break:keep-all}
.gw-stayname small{flex:none;color:var(--ot-sub);font:600 12px/1 "Inter Tight",system-ui}
.gw-rooms{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:10px}
.gw-rooms button{display:flex;flex-direction:column;gap:3px;align-items:flex-start;padding:10px;border:0;border-radius:12px;background:var(--ot-soft);color:var(--ot-ink);text-align:left;cursor:pointer}
.gw-rooms b{font:700 13.5px/1.2 system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif}
.gw-rooms span{font:800 13px/1 "Inter Tight",system-ui;color:var(--gw-b)}
.gw-rooms small{color:var(--ot-sub);font-size:11px;line-height:1.3}
.gw-rooms button[aria-disabled=true]{opacity:.5}
.gw-buff{position:absolute;z-index:3;left:18px;top:170px;display:flex;gap:6px;align-items:center;padding:5px 10px;border-radius:999px;background:rgba(47,122,92,.92);color:#fff;font:600 12px/1.2 system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif;box-shadow:0 6px 18px rgba(13,17,23,.18)}
.gw-buff b{font-weight:800}

/* ---------- 주간 순위 ---------- */
.gw-board{display:grid;gap:4px;margin:12px 18px 0;padding:0;list-style:none}
.gw-board li:not(.gw-wait){display:grid;grid-template-columns:32px 1fr auto;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;background:var(--ot-soft)}
.gw-board i{font:800 14px/1 "Inter Tight",system-ui;font-style:normal;text-align:center;color:var(--ot-sub)}
.gw-board b{font:700 14px/1.2 system-ui,-apple-system,"Apple SD Gothic Neo",sans-serif;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gw-board span{font:800 14px/1 "Inter Tight",system-ui}
.gw-board span small{margin-left:2px;color:var(--ot-sub);font-size:11px;font-weight:600}
.gw-board .top1 i,.gw-board .top2 i,.gw-board .top3 i{width:26px;height:26px;margin:0 auto;display:grid;place-items:center;border-radius:8px;color:#fff7ea}
.gw-board .top1 i{background:var(--gw-a)}.gw-board .top2 i{background:var(--gw-b)}.gw-board .top3 i{background:var(--gw-c)}
.gw-board .top1{background:#fff3f0}
.gw-me{margin:12px 18px 0;padding:12px 14px;border-radius:12px;background:var(--gw-ink);color:#fff;font-size:13.5px}
.gw-me:empty{display:none}
.gw-me b{color:var(--gw-brass)}
.gw-me span{color:rgba(255,255,255,.7)}
.gw-me em{font-style:normal;font-weight:700}

@media(max-width:720px){
  .gw-col,.gw-sheet{position:fixed;inset:auto 0 0 0;margin:0;width:100%;max-width:100%;border-radius:24px 24px 0 0;padding-bottom:env(safe-area-inset-bottom,0px);animation:ot-sheet-up .32s cubic-bezier(.2,.9,.3,1) both}
  .gw-head{border-radius:24px 24px 0 0;padding-top:20px}
  .gw-head::before{content:"";position:absolute;left:50%;top:7px;width:40px;height:5px;margin-left:-20px;border-radius:9px;background:rgba(255,255,255,.28)}
  .gw-cards{grid-template-columns:repeat(3,1fr);gap:6px;margin:10px 12px 0}
  .gw-card{min-height:104px;padding:10px 8px 8px}
  .gw-card small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .gw-score,.gw-tabs,.gw-filter,.gw-odds{margin-left:12px;margin-right:12px}
  .gw-grades{grid-template-columns:repeat(3,1fr)}
  .gw-pill{top:auto;bottom:calc(150px + env(safe-area-inset-bottom,0px));min-width:0;width:calc(100% - 24px)}
  .gw-buff{left:10px;top:200px}
  .g-event .gw-tier{position:absolute;top:-10px;left:14px;padding:3px 7px;font-size:10.5px;background:#1b2130;border:1px solid rgba(216,178,106,.45)}
  .g-event .gw-tier span{display:none}
  .gw-rooms button{padding:9px 8px}
}
@media(prefers-reduced-motion:reduce){.gw-col,.gw-sheet{animation:none}}
