/* 베폭심 혈맹 사이트 — strategy.onlyhope.dev C안(모던 기본형)과 같은 결.
   색은 전부 :root 변수. 라이트 테마는 아래에서 같은 이름을 덮어쓴다.
   변수 정의 블록에는 실제 색만 쓸 것(자기 참조하면 값이 비어 테마가 무너진다). */
:root {
  color-scheme: dark;
  --bg:#0e1116; --panel:#161a22; --panel2:#1b2029; --bar:#161a22;
  --border:#262c38; --border2:#323a49; --line:#232934; --hover:#1e2430;
  --text:#e9ecf2; --text2:#b4bccb; --muted:#8a93a6; --faint:#5d667d;
  --link:#a9b9ff; --focus:#5b78f0;
  --pri:#4562dc; --pri-hover:#5571e6; --pri-soft:#1f2747;
  --brand:#d9475a; --brand-soft:#3a1a22; --brand-tx:#ff9fac;
  --ok-bg:#132c3a; --ok-tx:#7cc8ff;
  --amber-bg:#33290f; --amber-tx:#e9bf5c; --violet-bg:#2a1d3d; --violet-tx:#cfa9ff;
  --red-bg:#341a20; --red-tx:#ff9fac; --blue-bg:#1f2747; --blue-tx:#a9b9ff;
  --gray-bg:#232934; --gray-tx:#b4bccb; --teal-bg:#12302e; --teal-tx:#6fd8c8;
  --orange-bg:#3a2412; --orange-tx:#ffb36b;
  --shadow:none;
  --font:"Pretendard Variable", Pretendard, system-ui, "Segoe UI", "Malgun Gothic", sans-serif;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg:#f3f5f9; --panel:#ffffff; --panel2:#f6f8fb; --bar:#ffffff;
  --border:#e3e8f0; --border2:#d3dae6; --line:#e9edf3; --hover:#f1f4f9;
  --text:#18202f; --text2:#4a5468; --muted:#69738a; --faint:#98a2b9;
  --link:#2a46b5; --focus:#3454d1;
  --pri:#3454d1; --pri-hover:#2a46b5; --pri-soft:#e8edfc;
  --brand:#c23a4b; --brand-soft:#fdeaed; --brand-tx:#a3253a;
  --ok-bg:#e1f1fc; --ok-tx:#0f5d94;
  --amber-bg:#fcf1d6; --amber-tx:#8a5c00; --violet-bg:#f1e9fc; --violet-tx:#6b35a8;
  --red-bg:#fde8eb; --red-tx:#b8213a; --blue-bg:#e8edfc; --blue-tx:#2a46b5;
  --gray-bg:#eef1f5; --gray-tx:#4a5468; --teal-bg:#dff5f1; --teal-tx:#0d6b5e;
  --orange-bg:#fdeedd; --orange-tx:#9a4a00;
  --shadow:0 1px 2px rgba(24,32,47,.04), 0 8px 24px -12px rgba(24,32,47,.12);
}
* { box-sizing:border-box; }
[hidden] { display:none !important; }
html { background:var(--bg); }
body { margin:0; font-family:var(--font); letter-spacing:-.005em; background:var(--bg); color:var(--text); font-size:14px; line-height:1.5; }
a { color:var(--link); text-decoration:none; text-underline-offset:3px; }
a:hover { text-decoration:underline; }
:focus-visible { outline:2px solid var(--focus); outline-offset:2px; }
h2 { font-size:24px; font-weight:800; letter-spacing:-.02em; margin:0 0 16px; }
h2.h2s { font-size:19px; margin:0; }
h3 { font-size:15px; font-weight:700; margin:22px 0 10px; }
h3.big { font-size:20px; margin:0; }
code { font-family:ui-monospace, Consolas, monospace; font-size:13px; }
.muted { color:var(--muted); font-size:12px; font-weight:400; }
.empty { color:var(--muted); text-align:center; padding:18px; margin:0; }
.empty.sm { padding:8px; font-size:12px; }

/* 상단 줄 */
header.top { background:var(--bar); border-bottom:1px solid var(--border); position:sticky; top:0; z-index:20; }
header.top .top-in { display:flex; align-items:center; gap:18px; padding:0 24px; min-height:60px; max-width:1360px; margin:0 auto; }
header.top .brand { display:flex; align-items:center; gap:9px; font-weight:800; font-size:16px; color:var(--text); white-space:nowrap; text-decoration:none; }
header.top nav { display:flex; gap:4px; overflow-x:auto; scrollbar-width:none; }
header.top nav::-webkit-scrollbar { display:none; }
header.top nav a { padding:8px 13px; border-radius:10px; color:var(--text2); white-space:nowrap; font-weight:500; }
header.top nav a:hover { background:var(--hover); text-decoration:none; }
header.top nav a.on { background:var(--pri-soft); color:var(--link); font-weight:700; }
header.top .sp { flex:1; }
.badge { display:inline-grid; place-items:center; min-width:18px; height:18px; padding:0 5px; border-radius:9px; background:var(--brand); color:#fff; font-size:11px; font-weight:700; }
details.user { position:relative; }
details.user > summary { list-style:none; display:flex; align-items:center; gap:7px; cursor:pointer; padding:5px 10px 5px 6px; border-radius:10px; font-size:13px; font-weight:600; white-space:nowrap; }
details.user > summary::-webkit-details-marker { display:none; }
details.user > summary:hover, details.user[open] > summary { background:var(--hover); }
details.user .role { font-size:11px; font-weight:600; color:var(--muted); }
details.user .menu { position:absolute; right:0; top:calc(100% + 6px); min-width:160px; padding:6px; background:var(--panel); border:1px solid var(--border); border-radius:12px; box-shadow:0 12px 32px -12px rgba(0,0,0,.28); z-index:30; }
details.user .menu a { display:block; padding:8px 10px; border-radius:8px; color:var(--text); font-size:13px; }
details.user .menu a:hover { background:var(--hover); text-decoration:none; }
details.user .menu a.out { color:var(--red-tx); border-top:1px solid var(--border); border-radius:0 0 8px 8px; margin-top:4px; }
@media (max-width:860px) {
  header.top .top-in { gap:10px; padding:8px 12px 0; flex-wrap:wrap; }
  header.top nav { order:5; width:100%; padding-bottom:8px; }
  details.user .role, details.user .un { display:none; }
}

.wrap { padding:28px 24px 64px; max-width:1360px; margin:0 auto; }
.wrap.narrow, .narrow-l { max-width:760px; }
.wrap.narrow { margin:40px auto; }
@media (max-width:860px) { .wrap { padding:18px 16px 48px; } }

/* 입력·버튼 */
input, select, button, textarea, .btn { font-family:inherit; font-size:13px; padding:7px 9px; border-radius:8px; border:1px solid var(--border2); background:var(--panel); color:var(--text); }
input, select, textarea { min-width:0; }
textarea { width:100%; resize:vertical; line-height:1.5; }
input::placeholder, textarea::placeholder { color:var(--muted); }
input:focus, select:focus, textarea:focus { outline:none; border-color:var(--focus); box-shadow:0 0 0 3px var(--pri-soft); }
input[type=checkbox], input[type=radio] { accent-color:var(--pri); padding:0; width:16px; height:16px; }
button, .btn { cursor:pointer; font-weight:600; padding:8px 14px; border-radius:10px; white-space:nowrap; display:inline-flex; align-items:center; gap:6px; justify-content:center; color:var(--text); }
.btn:hover { text-decoration:none; }
button:hover, .btn:hover { background:var(--hover); }
button.primary, .btn.primary { background:var(--pri); border-color:var(--pri); color:#fff; }
button.primary:hover, .btn.primary:hover { background:var(--pri-hover); }
button.danger { color:var(--red-tx); }
button.danger:hover { background:var(--red-bg); }
button.sm, .btn.sm { padding:5px 10px; font-size:12px; border-radius:8px; }
button.icon, .btn.icon { padding:7px; min-width:32px; }
button.big { padding:12px 22px; font-size:15px; border-radius:12px; }
button:disabled { opacity:.55; cursor:default; }
label { display:flex; flex-direction:column; gap:5px; font-size:12px; font-weight:600; color:var(--text2); }
label.chk { flex-direction:row; align-items:center; gap:6px; font-size:13px; font-weight:500; color:var(--text); cursor:pointer; }
.w60 { width:64px; } .w120 { width:120px; }
.grow { flex:1; min-width:160px; }

/* 배치 */
.row { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.row.center, .center { justify-content:center; text-align:center; }
.row .sp, .sp { flex:1; }
.row form { margin:0; }
.stack { display:flex; flex-direction:column; gap:12px; }
.grid3 { display:grid; grid-template-columns:repeat(auto-fill, minmax(210px, 1fr)); gap:12px; }
.top-gap { margin-top:16px; }
.page-head { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:16px; }
.page-head h2 { margin:0; }
.card { background:var(--panel); border:1px solid var(--border); border-radius:16px; padding:18px 20px; box-shadow:var(--shadow); }
.card-head { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:10px; }
.card-head h3 { margin:0; }
.card-head > a { font-size:12px; }
@media (max-width:600px) { .card { padding:14px; } }
details.fold > summary { cursor:pointer; font-weight:700; list-style:none; }
details.fold > summary::-webkit-details-marker { display:none; }
details.fold[open] > summary { margin-bottom:14px; }
details.fold-in > summary { cursor:pointer; color:var(--muted); font-size:13px; }
.sub-box { border-top:1px solid var(--border); padding-top:14px; margin-top:6px; }

.flash { padding:11px 14px; border-radius:12px; margin-bottom:16px; font-weight:600; }
.flash.ok { background:var(--ok-bg); color:var(--ok-tx); }
.flash.err { background:var(--red-bg); color:var(--red-tx); }
.ok { color:var(--ok-tx); font-weight:700; }

/* 탭 */
.tabs { display:inline-flex; gap:2px; margin-bottom:18px; padding:3px; border-radius:10px; background:var(--panel2); border:1px solid var(--border); }
.tabs.flat { margin-bottom:0; }
.tabs a { padding:6px 14px; border-radius:7px; color:var(--text2); font-size:13px; font-weight:500; }
.tabs a:hover { text-decoration:none; color:var(--text); }
.tabs a.on { background:var(--panel); color:var(--text); font-weight:700; box-shadow:0 1px 2px rgba(0,0,0,.12); }

/* 태그 */
.tag { display:inline-block; padding:2px 7px; border-radius:6px; font-size:11px; font-weight:700; white-space:nowrap; background:var(--gray-bg); color:var(--gray-tx); vertical-align:1px; }
.tag.pin { background:var(--brand-soft); color:var(--brand-tx); }
.tag.ok { background:var(--ok-bg); color:var(--ok-tx); }
.tag.grade { background:var(--violet-bg); color:var(--violet-tx); }
.tag.mode { background:var(--panel2); color:var(--text2); border:1px solid var(--border); }
.tag.win-tag { background:var(--amber-bg); color:var(--amber-tx); }
.tag.k-siege { background:var(--blue-bg); color:var(--blue-tx); }
.tag.k-boss { background:var(--red-bg); color:var(--red-tx); }
.tag.k-war { background:var(--orange-bg); color:var(--orange-tx); }
.tag.k-meet { background:var(--violet-bg); color:var(--violet-tx); }
/* 아이템 등급 — 색만으로 구분하지 않게 늘 글자도 함께 */
.rar { display:inline-block; padding:2px 7px; border-radius:6px; font-size:11px; font-weight:800; }
.rar.r-common { background:var(--gray-bg); color:var(--gray-tx); }
.rar.r-uncommon { background:var(--teal-bg); color:var(--teal-tx); }
.rar.r-rare { background:var(--blue-bg); color:var(--blue-tx); }
.rar.r-hero { background:var(--red-bg); color:var(--red-tx); }
.rar.r-legend { background:var(--amber-bg); color:var(--amber-tx); }
.rar.r-myth { background:var(--violet-bg); color:var(--violet-tx); }
.r-common { --rc:#8a93a6; } .r-uncommon { --rc:#3fb8a5; } .r-rare { --rc:#5b78f0; }
.r-hero { --rc:#e0485f; } .r-legend { --rc:#e0a83a; } .r-myth { --rc:#a77bec; }

/* 표 */
.tbl-wrap { overflow-x:auto; border-radius:14px; }
table.grid { width:100%; border-collapse:separate; border-spacing:0; background:var(--panel); border:1px solid var(--border); border-radius:14px; box-shadow:var(--shadow); }
table.grid th, table.grid td { padding:10px 12px; border-bottom:1px solid var(--line); text-align:left; white-space:nowrap; vertical-align:middle; }
table.grid tbody tr:last-child td { border-bottom:none; }
table.grid thead th { background:var(--panel2); color:var(--muted); font-size:12px; font-weight:600; }
table.grid thead th:first-child { border-top-left-radius:13px; } table.grid thead th:last-child { border-top-right-radius:13px; }
table.grid tbody tr:hover td { background:var(--hover); }
table.grid .num { text-align:right; font-variant-numeric:tabular-nums; }
table.grid td.num { font-weight:700; }
table.grid .c { text-align:center; }
table.grid td.wrapcell { white-space:normal; min-width:160px; }
table.grid .acts { display:flex; gap:6px; }
table.grid.plain { box-shadow:none; }
table.grid tr.me td { background:var(--pri-soft); }
table.grid tr.click { cursor:pointer; }
td.plus { color:var(--ok-tx); } td.minus { color:var(--red-tx); }
th.sortable-th { cursor:pointer; user-select:none; }
th.sortable-th::after { content:' ⇅'; color:var(--faint); font-size:11px; }
th.sortable-th.asc::after { content:' ↑'; color:var(--link); }
th.sortable-th.desc::after { content:' ↓'; color:var(--link); }
input.filter { width:180px; }

/* 목록 */
ul.list, ol.list { list-style:none; margin:0; padding:0; }
.list li { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:9px 0; border-bottom:1px solid var(--line); }
.list li:last-child { border-bottom:0; }
.list li > a, .list li > span:first-child { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--text); }
.list.rank { counter-reset:r; }
.list.rank li::before { counter-increment:r; content:counter(r); width:22px; color:var(--muted); font-weight:700; }
.list.rank li span { flex:1; }
.list-card { padding:4px 0; }
.lrow { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:12px 20px; border-bottom:1px solid var(--line); color:var(--text); }
.lrow:last-child { border-bottom:0; }
a.lrow:hover { background:var(--hover); text-decoration:none; }
.lrow .t { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.prose { line-height:1.7; word-break:keep-all; overflow-wrap:anywhere; }
.prose.sm { font-size:13px; color:var(--text2); margin-top:6px; }

/* 홈 */
.hello { display:flex; justify-content:space-between; align-items:flex-end; gap:16px; flex-wrap:wrap; margin-bottom:18px; }
.hello h2 { margin:0 0 4px; }
.stats { display:flex; gap:10px; flex-wrap:wrap; }
.stat { display:flex; flex-direction:column; gap:2px; padding:12px 18px; background:var(--panel); border:1px solid var(--border); border-radius:14px; min-width:120px; box-shadow:var(--shadow); }
.stat b { font-size:22px; font-weight:800; letter-spacing:-.02em; font-variant-numeric:tabular-nums; }
.stat span { font-size:12px; color:var(--muted); }
.stat.hi { background:var(--pri-soft); border-color:transparent; }
.stat.hi b { color:var(--link); }
.notice-bar { display:block; padding:12px 16px; border-radius:12px; background:var(--brand-soft); color:var(--brand-tx); margin-bottom:16px; font-weight:600; }
.home-grid { display:grid; grid-template-columns:repeat(3, 1fr); gap:16px; }
.home-grid .wide { grid-column:span 2; }
@media (max-width:1000px) { .home-grid { grid-template-columns:1fr 1fr; } }
@media (max-width:680px) { .home-grid { grid-template-columns:1fr; } .home-grid .wide { grid-column:auto; } }
.item-mini { display:grid; grid-template-columns:repeat(auto-fill, minmax(200px, 1fr)); gap:8px; }
.imini { display:flex; flex-direction:column; gap:4px; padding:10px 12px; border-radius:12px; background:var(--panel2); border:1px solid var(--border); box-shadow:inset 3px 0 0 var(--rc); color:var(--text); }
.imini:hover { text-decoration:none; border-color:var(--border2); }
.imini .nm { font-weight:700; }

/* 혈맹 정보 */
.info-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:28px; }
@media (max-width:860px) { .info-grid { grid-template-columns:1fr; } }
dl.kv { display:grid; grid-template-columns:90px 1fr; gap:10px 14px; margin:0 0 12px; align-items:center; }
dl.kv dt { color:var(--muted); font-size:12px; }
dl.kv dd { margin:0; }
.secret { display:inline-flex; align-items:center; gap:6px; flex-wrap:wrap; }
.secret .sv { padding:4px 10px; border-radius:8px; background:var(--panel2); border:1px solid var(--border); font-size:14px; letter-spacing:.04em; min-width:80px; }
.secret.shown .sv { color:var(--amber-tx); }

/* 달력 */
.cal { display:grid; grid-template-columns:repeat(7, minmax(0, 1fr)); border:1px solid var(--border); border-radius:16px; overflow:hidden; background:var(--panel); box-shadow:var(--shadow); }
.cal-h { padding:8px; text-align:center; font-size:12px; font-weight:700; color:var(--muted); background:var(--panel2); border-bottom:1px solid var(--border); }
.cal-d { min-height:104px; padding:6px; border-right:1px solid var(--line); border-bottom:1px solid var(--line); display:flex; flex-direction:column; gap:3px; min-width:0; }
.cal-d:nth-child(7n) { border-right:0; }
.cal-d.out { background:var(--panel2); }
.cal-d.out .dn { opacity:.45; }
.cal-d .dn { font-size:12px; font-weight:700; color:var(--text2); }
.cal-d .dn a { color:inherit; display:inline-block; min-width:22px; }
.sun .dn, .cal-h.sun { color:var(--red-tx); } .sat .dn, .cal-h.sat { color:var(--blue-tx); }
.cal-d.today .dn a, .cal-d.today .dn { display:inline-grid; place-items:center; width:24px; height:24px; border-radius:12px; background:var(--pri); color:#fff; }
.ev { display:block; font-size:11px; padding:2px 6px; border-radius:6px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; background:var(--gray-bg); color:var(--gray-tx); }
.ev:hover { text-decoration:none; filter:brightness(1.1); }
.ev .tm { font-weight:700; }
.ev.k-siege { background:var(--blue-bg); color:var(--blue-tx); } .ev.k-boss { background:var(--red-bg); color:var(--red-tx); }
.ev.k-war { background:var(--orange-bg); color:var(--orange-tx); } .ev.k-meet { background:var(--violet-bg); color:var(--violet-tx); }
@media (max-width:680px) { .cal-d { min-height:64px; padding:3px; } .ev .tm { display:none; } .ev { font-size:10px; padding:1px 3px; } }

/* 계획 */
.kanban { display:grid; grid-template-columns:repeat(3, 1fr); gap:14px; align-items:start; }
@media (max-width:860px) { .kanban { grid-template-columns:1fr; } }
.kcol { background:var(--panel2); border:1px solid var(--border); border-radius:16px; padding:12px; display:flex; flex-direction:column; gap:10px; }
.kcol-h { font-weight:800; padding:2px 4px; }
.kcol.k-doing .kcol-h { color:var(--link); } .kcol.k-done .kcol-h { color:var(--ok-tx); }
.kcard { background:var(--panel); border:1px solid var(--border); border-radius:12px; padding:12px; }
.kcol.k-done .kcard .kt { text-decoration:line-through; color:var(--muted); }
.kt { font-weight:700; margin-bottom:2px; }
.late { color:var(--red-tx); font-weight:700; }
.kacts { display:flex; gap:6px; flex-wrap:wrap; margin-top:10px; }

/* 인원 */
.who { display:inline-flex; align-items:center; gap:8px; }
.av { border-radius:50%; object-fit:cover; flex:none; vertical-align:middle; }
.av-t { display:inline-grid; place-items:center; background:var(--violet-bg); color:var(--violet-tx); font-weight:800; font-size:11px; }
.pending-box { border-color:var(--brand); margin-bottom:18px; }
.prow { display:flex; align-items:center; gap:12px; padding:12px 0; border-top:1px solid var(--line); flex-wrap:wrap; }
.prow .who { min-width:200px; }
.prow form.row { flex:1; }
.att-grid { display:grid; grid-template-columns:1fr 1.3fr; gap:20px; align-items:start; }
@media (max-width:900px) { .att-grid { grid-template-columns:1fr; } }
.chkgrid { display:grid; grid-template-columns:repeat(auto-fill, minmax(130px, 1fr)); gap:6px; }
.chip { flex-direction:row; align-items:center; gap:7px; padding:8px 10px; border-radius:10px; border:1px solid var(--border2); background:var(--panel); font-size:13px; font-weight:500; color:var(--text); cursor:pointer; }
.chip:has(input:checked) { background:var(--pri-soft); border-color:var(--pri); font-weight:700; }
.chip span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* 정산 */
.calc { display:flex; gap:10px; flex-wrap:wrap; padding:12px; border-radius:12px; background:var(--panel2); color:var(--muted); }
.calc span { display:flex; flex-direction:column; padding:4px 12px; }
.calc small { font-size:11px; color:var(--muted); }
.calc b { font-size:18px; color:var(--text); font-variant-numeric:tabular-nums; }
.calc .hi b { color:var(--link); }
.chkgrid.pay form { margin:0; }
.paybtn { width:100%; justify-content:space-between; font-weight:500; }
.paybtn small { color:var(--muted); font-variant-numeric:tabular-nums; }
.paybtn.on { background:var(--ok-bg); border-color:transparent; color:var(--ok-tx); font-weight:700; }

/* 입찰 목록 */
.item-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(250px, 1fr)); gap:14px; }
.icard { display:flex; flex-direction:column; gap:6px; padding:16px; border-radius:16px; background:var(--panel); border:1px solid var(--border); box-shadow:var(--shadow), inset 0 3px 0 var(--rc); color:var(--text); transition:transform .15s, border-color .15s; }
.icard:hover { text-decoration:none; transform:translateY(-2px); border-color:var(--border2); }
.icard.done { opacity:.85; }
.ic-top { display:flex; gap:6px; flex-wrap:wrap; }
.ic-name { font-size:17px; font-weight:800; letter-spacing:-.02em; }
.ic-foot { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-top:auto; padding-top:10px; border-top:1px solid var(--line); font-size:13px; }
.ic-foot .win { font-weight:800; color:var(--amber-tx); }
.countdown { font-size:12px; font-weight:600; color:var(--text2); }
.countdown.soon { color:var(--red-tx); }
.countdown.over { color:var(--muted); }
fieldset.modes { border:0; padding:0; margin:0; display:grid; grid-template-columns:repeat(auto-fill, minmax(240px, 1fr)); gap:10px; }
fieldset.modes legend { font-size:12px; font-weight:600; color:var(--text2); margin-bottom:6px; }
.mode-opt { flex-direction:row; align-items:flex-start; gap:10px; padding:12px 14px; border:1px solid var(--border2); border-radius:12px; cursor:pointer; color:var(--text); }
.mode-opt:has(input:checked) { border-color:var(--pri); background:var(--pri-soft); }
.mode-opt span { display:flex; flex-direction:column; gap:2px; font-size:14px; }
.mode-opt small { font-size:12px; color:var(--muted); font-weight:400; }

/* 아이템 하나 + 룰렛 */
.item-head { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; flex-wrap:wrap; padding:20px 22px; margin-bottom:16px; border-radius:16px; background:var(--panel); border:1px solid var(--border); box-shadow:var(--shadow), inset 4px 0 0 var(--rc); }
.item-head h2 { margin:8px 0 4px; font-size:28px; }
.item-head p { margin:4px 0 0; }
.apply { display:flex; align-items:center; gap:10px; }
.draw-grid { display:grid; grid-template-columns:minmax(0, 1.1fr) minmax(0, 1fr); gap:16px; align-items:start; }
@media (max-width:900px) { .draw-grid { grid-template-columns:1fr; } }
.wheel-card { display:flex; flex-direction:column; gap:14px; align-items:center; }
.wheel-wrap { position:relative; width:min(440px, 100%); aspect-ratio:1; }
#wheel { width:100%; height:100%; filter:drop-shadow(0 10px 24px rgba(0,0,0,.28)); }
#wheel .seg { stroke:var(--panel); stroke-width:.8; transition:opacity .4s; }
#wheel .seg.dim { opacity:.28; }
#wheel .wrim { fill:none; stroke:var(--border2); stroke-width:3; }
#wheel .wempty { fill:var(--panel2); stroke:var(--border2); stroke-dasharray:4 4; }
#wheel .wlabel { fill:#fff; font-weight:800; paint-order:stroke; stroke:rgba(0,0,0,.35); stroke-width:1.6px; pointer-events:none; }
#wheel .wlabel.mine { fill:#ffe9a8; }
#wheel .muted-l { fill:var(--muted); stroke:none; font-size:9px; font-weight:600; }
.pointer { position:absolute; left:50%; top:-6px; width:0; height:0; transform:translateX(-50%); z-index:2;
  border-left:15px solid transparent; border-right:15px solid transparent; border-top:30px solid var(--brand); filter:drop-shadow(0 3px 3px rgba(0,0,0,.35)); }
.hub { position:absolute; left:50%; top:50%; width:17%; aspect-ratio:1; transform:translate(-50%, -50%); border-radius:50%; background:var(--panel); border:3px solid var(--border2); display:grid; place-items:center; font-size:clamp(16px, 4vw, 26px); box-shadow:0 2px 8px rgba(0,0,0,.25); }
.count { position:absolute; inset:0; display:grid; place-items:center; font-size:clamp(70px, 22vw, 140px); font-weight:900; color:#fff; text-shadow:0 4px 20px rgba(0,0,0,.6); pointer-events:none; z-index:3; }
.count.pop { animation:pop .8s ease-out; }
@keyframes pop { 0% { transform:scale(1.8); opacity:0; } 30% { transform:scale(1); opacity:1; } 100% { transform:scale(.9); opacity:.2; } }
.result { min-height:64px; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; font-weight:700; color:var(--text2); }
.result.rolling { font-size:22px; font-weight:800; color:var(--text); }
.result.win .big-name { font-size:clamp(24px, 5vw, 34px); font-weight:900; color:var(--amber-tx); letter-spacing:-.02em; animation:bounce .7s cubic-bezier(.2, 1.6, .4, 1); }
.result.win.me .big-name { color:var(--brand-tx); }
@keyframes bounce { 0% { transform:scale(.4); opacity:0; } 100% { transform:scale(1); opacity:1; } }
canvas.confetti { position:fixed; inset:0; pointer-events:none; z-index:100; }
@media (prefers-reduced-motion: reduce) { .count.pop, .result.win .big-name { animation:none; } }

/* 로그인 */
.login { min-height:100vh; display:grid; place-items:center; padding:20px; background:radial-gradient(circle at 50% 0%, var(--brand-soft), transparent 60%); }
.login-card { width:min(400px, 100%); display:flex; flex-direction:column; gap:16px; padding:28px 26px; }
.login-brand { display:flex; align-items:center; gap:14px; }
.login-brand h1 { margin:0; font-size:22px; font-weight:800; letter-spacing:-.02em; }
.login-brand p { margin:2px 0 0; }
.btn.discord { background:#5865f2; border-color:#5865f2; color:#fff; padding:13px; font-size:15px; border-radius:12px; }
.btn.discord:hover { background:#4752c4; }
details.local > summary { cursor:pointer; font-size:13px; color:var(--text2); }
details.local form { margin-top:12px; }
