/* =========================================================================
   iBD Coliseum — app styles (built on Spigen tokens)
   ========================================================================= */

*, *::before, *::after { box-sizing: border-box; }

:root {
  /* arena accent layer — overridable by Tweaks */
  --accent: var(--spigen-orange);
  --accent-hover: var(--spigen-orange-hover);
  --accent-pressed: var(--spigen-orange-pressed);
  --accent-wash: rgba(255, 106, 0, 0.08);
  --accent-ring: rgba(255, 106, 0, 0.28);
  --ink: #0A0A0A;
}

html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg-2);
  color: var(--fg-1);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }

/* ---------- App shell ---------- */
.app { min-height: 100vh; display: flex; flex-direction: column; }

/* announcement strip */
.strip {
  background: var(--spigen-black);
  color: #fff;
  font-size: var(--fs-micro);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  text-align: center;
  padding: 8px 16px;
  font-weight: var(--fw-semibold);
}
.strip .dot { color: var(--accent); margin: 0 10px; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: var(--space-6);
  padding: 14px 32px;
  background: rgba(12,12,14,0.9);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.brand { display: flex; align-items: center; gap: 12px; user-select: none; }
/* Spigen logotype — upright, heavy, tight tracking (Gotham-style geometric sans).
   Swap in the official asset by replacing the text node with an <img src> here. */
.brand .spigen-logo {
  font-family: var(--font-display); font-weight: 900; font-style: normal;
  font-size: 23px; letter-spacing: -0.045em; color: #fff; line-height: 1; text-transform: none;
}
/* official Spigen logo (black artwork) inverted to white for the dark nav */
.brand .brand-logo { height: 26px; width: auto; display: block; }
.brand .sep { width: 1px; height: 18px; background: rgba(255,255,255,0.22); align-self: center; }
.brand .product {
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  letter-spacing: var(--tracking-wide); text-transform: uppercase; color: rgba(255,255,255,0.72);
  display: flex; align-items: center; gap: 7px;
}

.nav-spacer { flex: 1; }

/* segmented role / screen switcher */
.seg {
  display: inline-flex; background: rgba(255,255,255,0.08); border-radius: var(--radius-pill);
  padding: 4px; gap: 2px;
}
.seg button {
  border: none; background: transparent; color: rgba(255,255,255,0.62);
  font-size: var(--fs-small); font-weight: var(--fw-semibold);
  padding: 8px 16px; border-radius: var(--radius-pill);
  display: flex; align-items: center; gap: 7px; transition: all var(--dur-fast) var(--ease-standard);
}
.seg button .ic { width: 15px; height: 15px; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-xs); }
.seg button:hover[aria-pressed="false"] { color: #fff; }

.who {
  display: flex; align-items: center; gap: 10px; padding-left: 4px;
}
.who .avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-weight: var(--fw-bold); font-size: 13px; color: #fff; background: var(--ink);
  font-family: var(--font-display); position: relative; overflow: hidden;
  background-size: cover; background-position: center; box-shadow: 0 0 0 2px rgba(255,255,255,0.14);
}
.who .avatar.up { cursor: pointer; }
.who .avatar .cam { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(10,10,10,0.55); opacity: 0; transition: opacity var(--dur-fast) var(--ease-standard); }
.who .avatar .cam .ic { width: 15px; height: 15px; color: #fff; }
.who .avatar.up:hover .cam { opacity: 1; }
.who .meta { line-height: 1.2; }
.who .meta .n { font-size: var(--fs-small); font-weight: var(--fw-semibold); color: #fff; }
.nav-name { background: none; border: none; padding: 0; font: inherit; color: #fff; font-weight: var(--fw-semibold); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.nav-name:hover { text-decoration: underline; text-underline-offset: 2px; }
.who .meta .r { font-size: var(--fs-micro); color: rgba(255,255,255,0.5); }
.rank-tracker { display: block; width: 200px; background: none; border: none; padding: 0; margin-top: 8px; cursor: pointer; text-align: left; }
.rt-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.rt-label { font-size: 9px; font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); white-space: nowrap; }
.rt-goal { font-size: 10px; color: rgba(255,255,255,0.62); font-weight: var(--fw-semibold); white-space: nowrap; }
.rt-bar { height: 7px; border-radius: var(--radius-pill); background: rgba(255,255,255,0.14); overflow: hidden; }
.rt-bar i { display: block; height: 100%; border-radius: var(--radius-pill); transition: width var(--dur-slow) var(--ease-out); }
.rank-tracker:hover .rt-bar { box-shadow: 0 0 0 1.5px rgba(255,255,255,0.22); }

/* ---------- Buttons ---------- */
.btn {
  border: none; font-weight: var(--fw-semibold); font-size: var(--fs-small);
  border-radius: var(--radius-pill); padding: 12px 22px; transition: all var(--dur-fast) var(--ease-standard);
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-primary:active { background: var(--accent-pressed); transform: translateY(0); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2a2a2c; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--border-strong); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-lg { padding: 15px 30px; font-size: var(--fs-body); }
.btn .ic { width: 17px; height: 17px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 32px; }

/* ---------- Gallery hero ---------- */
.ghero {
  background: var(--spigen-black); color: #fff; position: relative; overflow: hidden;
}
.ghero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 520px; height: 520px;
  background: radial-gradient(circle, var(--accent-wash) 0%, transparent 62%);
  pointer-events: none;
}
/* --- Arena / coliseum backdrop variant — refined dark with depth + texture --- */
.ghero.arena {
  background:
    radial-gradient(60% 45% at 82% -8%, rgba(255,106,0,0.16) 0%, transparent 55%),
    radial-gradient(130% 85% at 50% 122%, rgba(255,106,0,0.22) 0%, rgba(255,106,0,0.05) 34%, transparent 62%),
    linear-gradient(180deg, #161618 0%, #050505 78%);
}
/* coliseum arcade along the bottom + fine dot-grid texture, fading upward */
.ghero.arena::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='60'%20height='96'%20viewBox='0%200%2060%2096'%3E%3Cg%20fill='none'%20stroke='%23ffb27a'%20stroke-width='2'%20stroke-opacity='0.5'%3E%3Cline%20x1='0'%20y1='28'%20x2='60'%20y2='28'%20stroke-opacity='0.28'/%3E%3Cpath%20d='M8%2096%20L8%2058%20A22%2022%200%200%201%2052%2058%20L52%2096'/%3E%3Cline%20x1='30'%20y1='38'%20x2='30'%20y2='52'%20stroke-opacity='0.32'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(circle at center, rgba(255,255,255,0.06) 1px, transparent 1.4px);
  background-repeat: repeat-x, repeat;
  background-position: bottom center, top left;
  background-size: 64px 96px, 24px 24px;
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,0.4) 62%, transparent 100%);
  mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,0.4) 62%, transparent 100%);
}
/* faded Spigen mark watermark on the right of arena banners
   (screen blend drops the icon's black square; only the white mark shows) */
.ghero.arena::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  left: 48px; top: 50%; transform: translateY(-50%);
  width: 320px; height: 320px;
  background: url("spigen-icon.png") no-repeat center / contain;
  opacity: 0.08;
  mix-blend-mode: screen;
}
@media (max-width: 1060px) { .ghero.arena::after { left: -40px; opacity: 0.06; } }
@media (max-width: 680px) { .ghero.arena::after { display: none; } }
/* keep every arena banner the same height regardless of content */
.ghero.arena .wrap { padding-bottom: 88px; min-height: 348px; box-sizing: border-box; }
.ghero .wrap { padding-top: 52px; padding-bottom: 52px; position: relative; z-index: 1; }

/* hero two-column: text left, leaderboard card right */
.ghero-grid { display: grid; grid-template-columns: 1fr 360px; gap: 44px; align-items: start; }
.ghero-right { position: relative; z-index: 2; }
.ghero-right .panel { box-shadow: var(--shadow-lg); }
@media (max-width: 1060px) { .ghero-grid { grid-template-columns: 1fr; } .ghero-right { max-width: 440px; } }

.ghero .eyebrow { color: var(--accent); margin-bottom: 14px; }
.ghero h1 {
  color: #fff; font-size: 46px; line-height: 1.04; letter-spacing: -0.03em; max-width: 16ch;
  margin-bottom: 16px;
}
.ghero h1 em { font-style: italic; color: var(--accent); }
.ghero .sub { color: rgba(255,255,255,0.82); font-size: var(--fs-body-lg); max-width: 54ch; }
.ghero .hero-actions { display: flex; gap: 12px; margin-top: 26px; align-items: center; flex-wrap: wrap; }
/* keep the CTA and the season teaser the same height */
.ghero .hero-actions .btn-lg,
.ghero .hero-actions .season-teaser { height: 52px; box-sizing: border-box; }
.ghero .stat-row { display: flex; gap: 36px; margin-top: 34px; }
.ghero .stat .v { font-family: var(--font-display); font-weight: 800; font-size: 32px; letter-spacing: -0.02em; color: #fff; }
.ghero .stat .v .accent { color: var(--accent); }
.ghero .stat .l { font-size: var(--fs-micro); color: rgba(255,255,255,0.85); text-transform: uppercase; letter-spacing: var(--tracking-wide); margin-top: 2px; }

/* season teaser pill */
.season-teaser {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16);
  padding: 8px 14px 8px 10px; border-radius: var(--radius-pill); font-size: var(--fs-small);
}
.season-teaser .badge {
  background: var(--accent); color: #fff; font-size: 10px; font-weight: var(--fw-bold);
  text-transform: uppercase; letter-spacing: 0.08em; padding: 3px 9px; border-radius: var(--radius-pill);
}
.season-teaser .muted { color: rgba(255,255,255,0.6); }

/* ---------- Controls bar ---------- */
.controls { position: sticky; top: 94px; z-index: 30; background: #efe6d6; border-bottom: 1px solid rgba(150,118,76,0.28); box-shadow: 0 1px 0 rgba(255,255,255,0.5) inset; }
.controls .wrap { display: flex; flex-direction: column; align-items: stretch; gap: 12px; padding-top: 16px; padding-bottom: 16px; }
.controls-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.season-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.season-tab {
  display: inline-flex; align-items: center; border: 1.5px solid var(--accent-ring); background: var(--accent-wash);
  color: var(--accent); border-radius: var(--radius-pill); padding: 7px 16px; font-size: var(--fs-small);
  font-weight: var(--fw-bold); cursor: pointer; transition: all var(--dur-fast) var(--ease-standard);
}
.season-tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.season-tab:hover { border-color: var(--accent); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.chip {
  border: 1px solid var(--border-default); background: #fff; color: var(--fg-2);
  font-size: var(--fs-small); font-weight: var(--fw-medium); padding: 8px 14px;
  border-radius: var(--radius-pill); transition: all var(--dur-fast) var(--ease-standard);
  display: inline-flex; align-items: center; gap: 7px;
}
.chip:hover { border-color: var(--border-strong); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip .cnt { font-size: 11px; opacity: 0.6; }
.chip[aria-pressed="true"] .cnt { opacity: 0.8; }

.sortbox { display: flex; align-items: center; gap: 8px; }
.sortbox .lbl { font-size: var(--fs-micro); color: var(--fg-3); text-transform: uppercase; letter-spacing: var(--tracking-wide); font-weight: var(--fw-semibold); }
.sort-seg { display: inline-flex; background: var(--bg-3); border-radius: var(--radius-pill); padding: 3px; }
.sort-seg button { border: none; background: transparent; color: var(--fg-2); font-size: var(--fs-small); font-weight: var(--fw-semibold); padding: 7px 14px; border-radius: var(--radius-pill); }
.sort-seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-xs); }

/* ---------- Gallery body layout ---------- */
.gbody {
  padding: 36px 0 90px; position: relative;
  background:
    linear-gradient(180deg, #efe6d6 0%, #f4ecdf 120px, #f6f1e8 60%, #f2ebdd 100%);
}
.gbody::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 150px; z-index: 0; pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='150' viewBox='0 0 120 150'%3E%3Cg fill='none' stroke='%237a5a30' stroke-width='2' stroke-opacity='0.16'%3E%3Cline x1='10' y1='0' x2='10' y2='150'/%3E%3Cline x1='110' y1='0' x2='110' y2='150'/%3E%3Cline x1='60' y1='0' x2='60' y2='150'/%3E%3Cpath d='M10 150V70a50 50 0 0 1 100 0v80'/%3E%3Cpath d='M10 70h100'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x; background-position: top center; background-size: 120px 150px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 88%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 88%);
}
.gbody .wrap { position: relative; z-index: 1; }
.gbody .wrap { display: grid; grid-template-columns: 1fr 312px; gap: 40px; align-items: start; }
@media (max-width: 1060px) { .gbody .wrap { grid-template-columns: 1fr; } }

.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.section-head h2 { font-size: 22px; }
.section-head .muted { color: var(--fg-2); font-size: var(--fs-small); font-weight: var(--fw-semibold); }

/* card grid — density driven by data attr */
.cards { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); align-items: stretch; }
.cards .card { height: 100%; }

/* empty states */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 15px; padding: 60px 28px; }
.empty.compact { padding: 30px 18px; gap: 11px; }
.empty-ic { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--accent-wash); color: var(--accent); }
.empty.compact .empty-ic { width: 46px; height: 46px; border-radius: 13px; }
.empty-ic .ic { width: 30px; height: 30px; }
.empty.compact .empty-ic .ic { width: 22px; height: 22px; }
.empty-title { font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; color: var(--fg-1); }
.empty.compact .empty-title { font-size: 16px; }
.empty-msg { font-size: var(--fs-small); color: var(--fg-2); line-height: var(--lh-body); max-width: 44ch; margin: 0; }
.empty .btn { margin-top: 4px; }
.cards-empty { background: linear-gradient(180deg, #fdfaf4 0%, #f6efe2 100%); border: 1.5px dashed rgba(150,118,76,0.42); border-radius: var(--radius-xl); }
.cards[data-density="compact"] { grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cards[data-layout="list"] { grid-template-columns: 1fr; }
@media (max-width: 720px) { .cards, .cards[data-density="compact"] { grid-template-columns: 1fr; } }

/* ---------- Use-case card ---------- */
.card {
  background: linear-gradient(180deg, #fdfaf4 0%, #f6efe2 100%); border: 1px solid rgba(120,92,52,0.42); border-radius: var(--radius-xl);
  padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--dur-base) var(--ease-standard), transform var(--dur-base) var(--ease-standard), border-color var(--dur-base) var(--ease-standard);
}
.card > * { position: relative; z-index: 1; }
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 2;
  background: linear-gradient(90deg, var(--cat, var(--accent)), color-mix(in srgb, var(--cat, var(--accent)) 35%, transparent));
  opacity: 0.7;
  transition: opacity var(--dur-base) var(--ease-standard), height var(--dur-base) var(--ease-standard);
}
.card:hover {
  transform: translateY(-4px); border-color: color-mix(in srgb, var(--cat, var(--accent)) 50%, var(--border-default));
  box-shadow: 0 20px 40px -16px color-mix(in srgb, var(--cat, var(--accent)) 45%, transparent), var(--shadow-sm);
}
.card:hover::before { opacity: 1; height: 4px; }
.card .ctop { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.card .ctop .rgt { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.card-manage { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.cm-btn { display: inline-flex; align-items: center; gap: 5px; background: none; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); padding: 4px 11px; font-size: 11px; font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: 0.04em; color: var(--fg-2); cursor: pointer; transition: all var(--dur-fast) var(--ease-standard); white-space: nowrap; }
.cm-btn:hover { border-color: var(--fg-1); color: var(--fg-1); }
.cm-btn.danger:hover { border-color: #E5484D; color: #E5484D; background: rgba(229,72,77,0.06); }
.cm-btn .ic { width: 12px; height: 12px; }
.card .cat {
  font-size: 10px; font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--cat, var(--accent)); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  background: color-mix(in srgb, var(--cat, var(--accent)) 11%, #fff);
  padding: 5px 11px; border-radius: var(--radius-pill);
}
.card .cat .sq { width: 6px; height: 6px; border-radius: 50%; background: var(--cat, var(--accent)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cat, var(--accent)) 22%, transparent); }
.card .when { font-size: var(--fs-micro); color: var(--fg-3); font-variant-numeric: tabular-nums; }
.card .trend {
  display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: var(--fw-bold);
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent);
  background: var(--accent-wash); padding: 4px 9px 4px 7px; border-radius: var(--radius-pill);
}
.card .trend .ic { width: 12px; height: 12px; }
.card h3 { font-size: var(--fs-h4); line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; }
.card .desc { color: var(--fg-2); font-size: var(--fs-small); line-height: var(--lh-body); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cards[data-layout="list"] .card .desc { -webkit-line-clamp: 2; }

.tools { display: flex; gap: 6px; flex-wrap: wrap; }
/* Keep card height constant regardless of how many tools are used: reserve a
   single row, lay tools out on one line, and clip any overflow. */
.cards .card .tools, .entry-grid .entry-card .tools { flex-wrap: nowrap; overflow: hidden; height: 28px; align-items: center; }
.tool {
  font-size: 11px; font-weight: var(--fw-semibold); color: var(--fg-2); white-space: nowrap;
  background: rgba(120,90,50,0.07); border: 1px solid rgba(150,118,76,0.18);
  padding: 5px 11px; border-radius: var(--radius-pill); display: inline-flex; align-items: center; gap: 6px;
  transition: border-color var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard);
}
.card:hover .tool { border-color: var(--border-strong); }
.tool .blob { width: 6px; height: 6px; border-radius: 50%; }

.card .cfoot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border-subtle); }
.author { display: flex; align-items: center; gap: 9px; }
.author-btn { background: none; border: none; padding: 0; text-align: left; cursor: pointer; border-radius: var(--radius-sm); transition: opacity var(--dur-fast) var(--ease-standard); }
.author-btn:hover { opacity: 0.78; }
.author-btn:hover .nm { text-decoration: underline; text-underline-offset: 2px; }
.author-meta { min-width: 0; }
.author .av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: var(--fw-bold); font-size: 11px; font-family: var(--font-display); box-shadow: 0 0 0 2px #fff, 0 0 0 3px color-mix(in srgb, var(--cat, var(--accent)) 35%, var(--border-default)); flex-shrink: 0; }
.author .nm { font-size: var(--fs-small); font-weight: var(--fw-semibold); display: inline-flex; align-items: center; gap: 6px; }
.author .tm { font-size: var(--fs-micro); color: var(--fg-3); }

/* tier badge */
.tier-badge {
  display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0;
  color: var(--tier); background: color-mix(in srgb, var(--tier) 14%, #fff);
  border: 1px solid color-mix(in srgb, var(--tier) 32%, transparent);
  border-radius: var(--radius-pill); padding: 2px 8px 2px 6px; line-height: 1;
}
.tier-badge .ic { width: 14px; height: 14px; }
.tier-badge .tn { font-size: 10px; font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: 0.06em; }
.tier-badge.sm { padding: 2px 7px; }
.tier-badge.sm .ic { width: 14px; height: 14px; }
.tier-badge.clickable { cursor: pointer; }

/* upvote button */
.vote {
  display: inline-flex; align-items: center; gap: 7px; border: 1.5px solid var(--border-default);
  background: #fff; color: var(--fg-1); border-radius: var(--radius-pill); padding: 7px 14px;
  font-weight: var(--fw-bold); font-size: var(--fs-small); transition: all var(--dur-fast) var(--ease-standard);
}
.vote .ic { width: 15px; height: 15px; transition: transform var(--dur-fast) var(--ease-standard); }
.vote:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.vote:active { transform: translateY(0); }
.vote[aria-pressed="true"] { background: var(--accent-wash); border-color: var(--accent); color: var(--accent); }
.vote[aria-pressed="true"] .ic { transform: translateY(-1px); }
.vote.pop .ic { animation: votepop 0.34s var(--ease-out); }
.vote.own { cursor: default; color: var(--fg-3); border-color: var(--border-subtle); background: var(--bg-2); }
.vote.own:hover { transform: none; border-color: var(--border-subtle); color: var(--fg-3); }
.vote.disabled, .vote:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.vote.disabled:hover, .vote:disabled:hover { border-color: var(--border-subtle); color: var(--fg-3); transform: none; }
@keyframes votepop { 0%{transform:scale(1)} 40%{transform:scale(1.45) translateY(-2px)} 100%{transform:scale(1) translateY(-1px)} }

/* repro / link affordance row */
.card .clinks { display: flex; gap: 14px; flex-wrap: wrap; }
.card .clink { font-size: var(--fs-micro); font-weight: var(--fw-semibold); color: var(--fg-2); display: inline-flex; align-items: center; gap: 5px; }
.card .clink .ic { width: 13px; height: 13px; color: var(--fg-3); }
.card .clink.comment-toggle { transition: color var(--dur-fast) var(--ease-standard); }
.card .clink.comment-toggle:hover { color: var(--cat, var(--accent)); }
.card .clink.comment-toggle:hover .ic { color: var(--cat, var(--accent)); }
.card .clink.comment-toggle.on { color: var(--cat, var(--accent)); }
.card .clink.comment-toggle.on .ic { color: var(--cat, var(--accent)); }

/* comment thread */
.cthread {
  border-top: 1px solid var(--border-subtle); margin-top: 2px; padding-top: 14px;
  display: flex; flex-direction: column; gap: 12px;
  animation: cthread-in var(--dur-base) var(--ease-out);
}
@keyframes cthread-in { from { opacity: 0; transform: translateY(-4px); } }
.cthread-list { display: flex; flex-direction: column; gap: 12px; }
.cthread-empty { font-size: var(--fs-micro); color: var(--fg-3); font-style: italic; padding: 2px 0; }
.cmt { display: flex; gap: 9px; align-items: flex-start; }
.cmt-av { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; color: #fff; font-weight: var(--fw-bold); font-size: 10px; font-family: var(--font-display); }
.cmt-body { flex: 1; min-width: 0; background: rgba(120,90,50,0.07); border: 1px solid rgba(150,118,76,0.16); border-radius: var(--radius-md); padding: 9px 12px; }
.cmt.mine .cmt-body { background: color-mix(in srgb, var(--cat, var(--accent)) 9%, #fff); border-color: color-mix(in srgb, var(--cat, var(--accent)) 30%, var(--border-default)); }
.cmt-meta { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; margin-bottom: 3px; }
.cmt-meta b { font-size: var(--fs-micro); font-weight: var(--fw-bold); color: var(--fg-1); }
.cmt-team { font-size: 10px; color: var(--fg-3); }
.cmt-when { font-size: 10px; color: var(--fg-3); margin-left: auto; }
.cmt-text { font-size: var(--fs-small); color: var(--fg-2); line-height: var(--lh-body); }
.cthread-form { display: flex; gap: 8px; align-items: center; }
.cthread-form input {
  flex: 1; font-family: inherit; font-size: var(--fs-small); color: var(--fg-1);
  border: 1.5px solid var(--border-default); border-radius: var(--radius-pill); padding: 9px 14px; background: #fff;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.cthread-form input:focus { outline: none; border-color: var(--cat, var(--accent)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cat, var(--accent)) 22%, transparent); }
.cthread-send {
  width: 38px; height: 38px; flex-shrink: 0; border: none; border-radius: 50%;
  background: var(--cat, var(--accent)); color: #fff; display: grid; place-items: center;
  transition: opacity var(--dur-fast), transform var(--dur-fast);
}
.cthread-send .ic { width: 16px; height: 16px; }
.cthread-send:hover:not(:disabled) { transform: translateY(-1px); }
.cthread-send:disabled { opacity: 0.4; cursor: not-allowed; }

/* list-layout tweak */
.cards[data-layout="list"] .card { flex-direction: row; align-items: stretch; gap: 22px; }
.cards[data-layout="list"] .card .lmain { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.cards[data-layout="list"] .card .lside { width: 150px; flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; border-left: 1px solid var(--border-default); padding-left: 22px; }

/* ---------- Leaderboard sidebar ---------- */
.aside { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 163px; }
.panel:not(.plaque) { background: linear-gradient(180deg, #fdfaf4 0%, #f6efe2 100%); border: 1px solid rgba(150,118,76,0.2); border-radius: var(--radius-lg); overflow: hidden; }
.panel.plaque { border-radius: var(--radius-lg); overflow: hidden; }
.panel .ph { padding: 16px 18px; border-bottom: 1px solid var(--border-default); display: flex; align-items: center; justify-content: space-between; }
.panel .ph h3 { font-size: var(--fs-h4); display: flex; align-items: center; gap: 8px; }
.panel .ph .ic { width: 18px; height: 18px; color: var(--accent); }
.panel .ph .tag { font-size: 10px; font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: 0.1em; color: var(--fg-3); background: var(--bg-2); padding: 4px 9px; border-radius: var(--radius-pill); }

.lb-item { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--border-subtle); transition: background var(--dur-fast); }
.lb-item:last-child { border-bottom: none; }
.lb-item:hover { background: var(--bg-2); }
.lb-rank { font-family: var(--font-display); font-weight: 800; font-size: 16px; width: 26px; color: var(--fg-3); flex-shrink: 0; }
.lb-item.top .lb-rank { color: var(--accent); }
.lb-main { flex: 1; min-width: 0; }
.lb-main .t { font-size: var(--fs-small); font-weight: var(--fw-semibold); line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-main .a { font-size: var(--fs-micro); color: var(--fg-3); display: flex; align-items: center; gap: 6px; min-width: 0; }
.lb-author { background: none; border: none; padding: 0; font: inherit; color: var(--fg-2); font-weight: var(--fw-semibold); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100px; }
.lb-author:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.lb-team { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-votes { font-weight: var(--fw-bold); font-size: var(--fs-small); color: var(--ink); display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.lb-votes .ic { width: 13px; height: 13px; color: var(--accent); }

/* rank board (people ranked by points) */
.rankboard { display: flex; flex-direction: column; }
.rankboard.scroll { max-height: 314px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; }
.rankboard.scroll::-webkit-scrollbar { width: 8px; }
.rankboard.scroll::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 4px; border: 2px solid #fff; }
.rb-item {
  display: grid; grid-template-columns: 24px 30px 1fr auto; align-items: center; gap: 11px;
  width: 100%; background: none; border: none; cursor: pointer; text-align: left; min-height: 62px;
  padding: 11px 18px; border-bottom: 1px solid var(--border-subtle); transition: background var(--dur-fast);
}
.rb-item:last-child { border-bottom: none; }
.rb-item:hover { background: var(--bg-2); }
.rb-rank { font-family: var(--font-display); font-weight: 800; font-size: 14px; text-align: center; color: var(--fg-3); }
.rb-rank.r1, .rb-rank.r2, .rb-rank.r3 { color: #fff; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; margin: 0 auto; }
.rb-rank.r1 { background: var(--accent); }
.rb-rank.r2 { background: #8A8A8E; }
.rb-rank.r3 { background: #B0793E; }
.rb-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: var(--fw-bold); font-size: 11px; font-family: var(--font-display); flex-shrink: 0; box-shadow: 0 0 0 2px #fff, 0 0 0 3px color-mix(in srgb, var(--tier) 45%, var(--border-default)); }
.rb-main { min-width: 0; }
.rb-name { display: block; font-size: var(--fs-small); font-weight: var(--fw-semibold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rb-tier { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: 0.04em; color: var(--tier); }
.rb-tier .ic { width: 16px; height: 16px; }
.rb-pts { font-family: var(--font-display); font-weight: 800; font-size: 15px; letter-spacing: -0.02em; color: var(--ink); text-align: right; }
.rb-pts .u { font-size: 9px; color: var(--fg-3); font-weight: var(--fw-bold); display: block; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 1px; }

/* ---------- Champions plaque (leaderboard in hero) ---------- */
.panel.plaque {
  background:
    linear-gradient(168deg, #34291f 0%, #241c15 55%, #1b1410 100%);
  border: 1.5px solid #8a6a3a;
  border-radius: var(--radius-lg);
  box-shadow:
    inset 0 1px 0 rgba(255,222,170,0.22),
    inset 0 0 0 1px rgba(0,0,0,0.45),
    inset 0 -24px 50px rgba(0,0,0,0.4),
    0 26px 50px -18px rgba(0,0,0,0.7);
  overflow: hidden; position: relative;
}
/* corner rivets, like a mounted bronze plate */
.panel.plaque::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3;
  background:
    radial-gradient(circle, #e7c483 0%, #6e4f28 58%, transparent 62%) no-repeat 11px 11px,
    radial-gradient(circle, #e7c483 0%, #6e4f28 58%, transparent 62%) no-repeat calc(100% - 11px) 11px,
    radial-gradient(circle, #e7c483 0%, #6e4f28 58%, transparent 62%) no-repeat 11px calc(100% - 11px),
    radial-gradient(circle, #e7c483 0%, #6e4f28 58%, transparent 62%) no-repeat calc(100% - 11px) calc(100% - 11px);
  background-size: 9px 9px;
}
.panel.plaque .ph {
  background: linear-gradient(180deg, rgba(138,106,58,0.32), rgba(138,106,58,0.05));
  border-bottom: 1px solid rgba(180,140,80,0.34);
  box-shadow: 0 1px 0 rgba(0,0,0,0.4);
  padding: 16px 20px;
}
.panel.plaque .ph h3 {
  color: #ecce93; font-family: var(--font-display); letter-spacing: 0.01em;
  text-shadow: 0 1px 1px rgba(0,0,0,0.6), 0 -1px 0 rgba(255,228,176,0.18);
}
.panel.plaque .ph h3 .ic { color: #d8a942; }
.panel.plaque .ph .tag {
  background: rgba(0,0,0,0.3); color: #c9ab78; border: 1px solid rgba(180,140,80,0.3); white-space: nowrap;
}
.plaque-ribbon {
  display: flex; align-items: center; gap: 10px; justify-content: center;
  padding: 9px 18px; background: rgba(0,0,0,0.22); border-bottom: 1px solid rgba(180,140,80,0.18);
}
.plaque-ribbon span {
  font-family: var(--font-display); font-size: 10px; font-weight: var(--fw-bold);
  text-transform: uppercase; letter-spacing: 0.18em; color: #c2a06b;
}
.plaque-ribbon::before, .plaque-ribbon::after {
  content: ""; height: 1px; width: 28px; background: linear-gradient(90deg, transparent, rgba(200,160,100,0.6), transparent);
}
.plaque .rankboard.scroll { scrollbar-color: #6e4f28 transparent; }
.plaque .rankboard.scroll::-webkit-scrollbar-thumb { background: #6e4f28; border-color: #241c15; }
.plaque .rb-item { border-bottom: 1px solid rgba(180,140,80,0.16); }
.plaque .rb-item:hover { background: rgba(255,224,170,0.07); }
.plaque .rb-rank { color: #9c8a6e; }
.plaque .rb-av { box-shadow: 0 0 0 2px #2a2018, 0 0 0 3px color-mix(in srgb, var(--tier) 55%, #6e4f28); }
.plaque .rb-name { color: #f1e7d6; }
.plaque .rb-tier { color: color-mix(in srgb, var(--tier) 72%, #f1e7d6); text-shadow: 0 1px 1px rgba(0,0,0,0.5); }
.plaque .rb-pts { color: #ecce93; text-shadow: 0 1px 1px rgba(0,0,0,0.5); }
.plaque .rb-pts .u { color: #9c8a6e; }
.plaque .rb-rank.r1 { background: linear-gradient(160deg, #f0c969, #c8902f); color: #3a2a10; box-shadow: 0 1px 2px rgba(0,0,0,0.5); }
.plaque .rb-rank.r2 { background: linear-gradient(160deg, #d8dde6, #9aa3b2); color: #2c3038; }
.plaque .rb-rank.r3 { background: linear-gradient(160deg, #d99b5e, #a4682f); color: #3a2410; }
/* top three: trophy instead of numbered medallion */
.plaque .rb-rank.r1, .plaque .rb-rank.r2, .plaque .rb-rank.r3 {
  background: none; box-shadow: none; width: auto; height: auto; border-radius: 0; margin: 0;
  display: grid; place-items: center; position: relative;
}
.rb-rank .ic { width: 22px; height: 22px; filter: drop-shadow(0 1px 1px rgba(0,0,0,0.5)); }
.plaque .rb-rank.r1 .ic { color: #f3cd72; }
.plaque .rb-rank.r2 .ic { color: #d6dbe4; }
.plaque .rb-rank.r3 .ic { color: #db9b5a; }
/* rank number overlaid in the trophy cup */
.rb-num { position: absolute; top: 41%; left: 50%; transform: translate(-50%, -50%); font-family: var(--font-display); font-weight: 800; font-size: 10px; line-height: 1; text-shadow: 0 1px 1px rgba(0,0,0,0.7); }
.plaque .rb-rank.r1 .rb-num { color: #ffe6a8; }
.plaque .rb-rank.r2 .rb-num { color: #eef1f6; }
.plaque .rb-rank.r3 .rb-num { color: #f3c79a; }

.plaque .empty-title {
  color: #9c8a6e;
  text-shadow: none;
}
.plaque .empty-msg { color: #9c8a6e; }

/* note panel (non-competitive framing) */
.note { padding: 18px; }
.note h3 { font-size: var(--fs-body); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.note p { font-size: var(--fs-small); color: var(--fg-2); line-height: var(--lh-body); }
.note .ic { width: 17px; height: 17px; color: var(--accent); }

/* ---------- Modal ---------- */
.overlay { position: fixed; inset: 0; z-index: 80; background: rgba(10,10,10,0.5); backdrop-filter: blur(3px); display: grid; place-items: start center; padding: 48px 20px; overflow-y: auto; animation: fade 0.18s ease; }
@keyframes fade { from { opacity: 0; } }
.modal { width: 100%; max-width: 600px; background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); overflow: hidden; animation: rise 0.24s var(--ease-out); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
.modal .mhead { background: var(--spigen-black); color: #fff; padding: 22px 26px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.modal .mhead .eyebrow { color: var(--accent); margin-bottom: 6px; }
.modal .mhead h2 { color: #fff; font-size: 24px; }
.modal .mhead p { color: rgba(255,255,255,0.6); font-size: var(--fs-small); margin-top: 6px; }
.modal .x { background: rgba(255,255,255,0.1); border: none; color: #fff; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; transition: background var(--dur-fast); }
.modal .x:hover { background: rgba(255,255,255,0.22); }
.modal .mbody { padding: 26px; display: flex; flex-direction: column; gap: 20px; }
.modal .mfoot { padding: 18px 26px; border-top: 1px solid var(--border-default); display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--bg-2); }
.modal .mfoot .left { font-size: var(--fs-micro); color: var(--fg-3); display: flex; align-items: center; gap: 7px; }

/* steps progress */
.progress { display: flex; align-items: center; gap: 6px; font-size: var(--fs-micro); color: rgba(255,255,255,0.5); }
.progress .step { display: flex; align-items: center; gap: 6px; }
.progress .num { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: var(--fw-bold); background: rgba(255,255,255,0.15); }
.progress .step.on .num { background: var(--accent); color: #fff; }
.progress .step.on { color: #fff; }

/* form fields */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: var(--fs-small); font-weight: var(--fw-semibold); }
.field label .req { color: var(--accent); }
.field .hint { font-size: var(--fs-micro); color: var(--fg-3); }
.field input[type="text"], .field textarea, .field select {
  font-family: inherit; font-size: var(--fs-body); color: var(--fg-1);
  border: 1.5px solid var(--border-default); border-radius: var(--radius-md); padding: 11px 13px;
  background: #fff; transition: border-color var(--dur-fast), box-shadow var(--dur-fast); width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.field textarea { resize: vertical; min-height: 78px; line-height: var(--lh-body); }
.field .charcount { font-size: var(--fs-micro); color: var(--fg-3); align-self: flex-end; }

/* tag picker */
.tagpick { display: flex; gap: 8px; flex-wrap: wrap; }
.tagpick button { border: 1.5px solid var(--border-default); background: #fff; color: var(--fg-2); font-size: var(--fs-small); font-weight: var(--fw-medium); padding: 8px 13px; border-radius: var(--radius-pill); transition: all var(--dur-fast); }
.tagpick button[aria-pressed="true"] { background: var(--accent-wash); border-color: var(--accent); color: var(--accent); }
.tagpick button:hover[aria-pressed="false"] { border-color: var(--border-strong); }

/* masking gate */
.gate { border: 1.5px solid var(--border-default); border-radius: var(--radius-md); padding: 16px; display: flex; gap: 13px; align-items: flex-start; transition: all var(--dur-fast); background: var(--bg-2); }
.gate.checked { border-color: var(--accent); background: var(--accent-wash); }
.gate .cb { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--border-strong); background: #fff; flex-shrink: 0; display: grid; place-items: center; margin-top: 1px; transition: all var(--dur-fast); }
.gate.checked .cb { background: var(--accent); border-color: var(--accent); }
.gate .cb .ic { width: 14px; height: 14px; color: #fff; opacity: 0; transition: opacity var(--dur-fast); }
.gate.checked .cb .ic { opacity: 1; }
.gate .gt { font-size: var(--fs-small); }
.gate .gt strong { font-weight: var(--fw-bold); }
.gate .gt span { color: var(--fg-2); display: block; margin-top: 3px; line-height: var(--lh-body); }

/* success state */
.done-state { padding: 44px 26px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.done-state .ring { width: 72px; height: 72px; border-radius: 50%; background: var(--accent-wash); display: grid; place-items: center; }
.done-state .ring .ic { width: 36px; height: 36px; color: var(--accent); }
.done-state h2 { font-size: 26px; }
.done-state p { color: var(--fg-2); font-size: var(--fs-body); max-width: 40ch; }

/* ---------- Profile modal ---------- */
.profile-modal { max-width: 540px; position: relative; }
.modal .x.x-float { position: absolute; top: 16px; right: 16px; z-index: 3; }
.pf-head {
  background: var(--spigen-black); color: #fff; padding: 28px 30px; display: flex; align-items: center; gap: 18px; position: relative; overflow: visible; z-index: 2;
}
.pf-head::after { content: ""; position: absolute; inset: 0; background: radial-gradient(130% 120% at 100% -10%, color-mix(in srgb, var(--tier) 40%, transparent), transparent 58%); pointer-events: none; }
.pf-av { width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 22px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--tier) 70%, #fff); position: relative; z-index: 1; }
.pf-id { flex: 1; min-width: 0; position: relative; z-index: 1; }
.pf-name { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 9px; }
.pf-name .you-tag { font-family: var(--font-body); font-size: 10px; font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: 0.08em; background: var(--accent); color: #fff; padding: 3px 8px; border-radius: var(--radius-pill); }
.pf-team { font-size: var(--fs-small); color: rgba(255,255,255,0.6); margin: 2px 0 10px; }
.pf-team-pick { position: relative; z-index: 3; display: inline-flex; align-items: center; gap: 7px; margin: 4px 0 10px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.22); border-radius: var(--radius-pill); padding: 4px 10px 4px 12px; }
.pf-team-pick .ic { width: 14px; height: 14px; color: rgba(255,255,255,0.7); flex-shrink: 0; }
.pf-team-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: none; color: #fff;
  font-family: inherit; font-size: var(--fs-small); font-weight: var(--fw-semibold);
  cursor: pointer; outline: none; padding: 0 2px 0 0;
}
.pf-team-trigger.muted { color: rgba(255,255,255,0.72); }
.pf-team-chev { width: 12px; height: 12px; transform: rotate(90deg); opacity: 0.72; }
.pf-team-menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 30;
  min-width: 100%; max-height: 240px; overflow-y: auto;
  margin: 0; padding: 6px; list-style: none;
  background: var(--spigen-black); border: 1px solid rgba(255,255,255,0.18);
  border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,0.45);
}
.pf-team-menu button {
  width: 100%; text-align: left; background: transparent; border: none;
  color: rgba(255,255,255,0.88); font-family: inherit; font-size: var(--fs-small);
  font-weight: var(--fw-semibold); padding: 8px 12px; border-radius: 8px; cursor: pointer;
}
.pf-team-menu button:hover,
.pf-team-menu button:focus-visible { background: rgba(255,255,255,0.12); color: #fff; }
.pf-team-menu button.sel { background: rgba(255,255,255,0.16); color: #fff; }
.pf-tier { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-small); font-weight: var(--fw-bold); color: var(--tier); background: color-mix(in srgb, var(--tier) 20%, #1a1a1c); padding: 5px 12px 5px 10px; border-radius: var(--radius-pill); }
.pf-tier .ic { width: 14px; height: 14px; }
.pf-points { text-align: right; flex-shrink: 0; position: relative; z-index: 1; }
.pf-points .v { font-family: var(--font-display); font-weight: 800; font-size: 34px; letter-spacing: -0.03em; line-height: 1; }
.pf-points .l { font-size: var(--fs-micro); color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: var(--tracking-wide); margin-top: 3px; }

.pf-body { padding: 24px 30px 28px; display: flex; flex-direction: column; gap: 22px; }
.pf-prog-top { display: flex; align-items: baseline; justify-content: space-between; font-size: var(--fs-small); color: var(--fg-2); margin-bottom: 9px; }
.pf-prog-pct { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-body); color: var(--fg-1); }
.pf-prog-bar { height: 12px; border-radius: var(--radius-pill); background: var(--bg-3); overflow: hidden; }
.pf-prog-bar i { display: block; height: 100%; border-radius: var(--radius-pill); transition: width var(--dur-slow) var(--ease-out); }
.pf-prog-ends { display: flex; justify-content: space-between; font-size: var(--fs-micro); font-weight: var(--fw-semibold); margin-top: 7px; }

/* enlarged, prominent progress-to-next card */
.pf-prog { background: linear-gradient(180deg, color-mix(in srgb, var(--next) 11%, #fff), #fff); border: 1.5px solid color-mix(in srgb, var(--next) 34%, var(--border-default)); border-radius: var(--radius-lg); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.pf-prog-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 13px; }
.pp-goal { display: flex; align-items: baseline; gap: 10px; min-width: 0; flex-wrap: wrap; }
.pp-num { font-family: var(--font-display); font-weight: 800; font-size: 42px; line-height: 0.92; letter-spacing: -0.03em; color: var(--next); }
.pp-rest { font-size: var(--fs-body); color: var(--fg-2); font-weight: var(--fw-medium); }
.pp-next { display: inline-flex; align-items: center; gap: 6px; font-weight: var(--fw-bold); color: var(--next); }
.pp-next .ic { width: 18px; height: 18px; }
.pp-max { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--next); }
.pp-max .ic { width: 22px; height: 22px; }
.pf-prog .pf-prog-pct { font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: -0.02em; color: var(--fg-1); flex-shrink: 0; }
.pf-prog .pf-prog-bar { height: 16px; box-shadow: inset 0 1px 2px rgba(0,0,0,0.09); }
.pf-prog .pf-prog-ends { font-size: var(--fs-small); font-weight: var(--fw-bold); margin-top: 10px; }

/* ladder */
.pf-ladder { display: flex; flex-direction: column; gap: 3px; }
.pf-rung { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: var(--radius-md); position: relative; opacity: 0.5; transition: opacity var(--dur-fast) var(--ease-standard), background var(--dur-fast) var(--ease-standard), box-shadow var(--dur-fast) var(--ease-standard); }
.pf-rung.passed { opacity: 0.85; }
.pf-rung:hover { opacity: 1; background: color-mix(in srgb, var(--tier) 14%, #fff); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--tier) 42%, transparent); }
.pf-rung.current { opacity: 1; background: color-mix(in srgb, var(--tier) 12%, #fff); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--tier) 45%, transparent); }
.pf-gem { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: color-mix(in srgb, var(--tier) 16%, #fff); color: var(--tier); flex-shrink: 0; transition: background var(--dur-fast) var(--ease-standard), color var(--dur-fast) var(--ease-standard), transform var(--dur-fast) var(--ease-standard); }
.pf-gem .ic { width: 15px; height: 15px; }
.pf-rung:hover .pf-gem { background: var(--tier); color: #fff; transform: scale(1.08); }
.pf-rung.current .pf-gem { background: var(--tier); color: #fff; }
.pf-rn { font-size: var(--fs-small); font-weight: var(--fw-bold); color: var(--fg-1); flex: 1; }
.pf-rmin { font-size: var(--fs-micro); color: var(--fg-3); font-variant-numeric: tabular-nums; }
.pf-here { font-size: 10px; font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: 0.06em; color: #fff; background: var(--tier); padding: 3px 9px; border-radius: var(--radius-pill); margin-left: 10px; }

/* stat row */
.pf-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pf-stat { background: var(--bg-2); border: 1px solid var(--border-default); border-radius: var(--radius-md); padding: 14px; text-align: center; }
.pf-stat .v { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; line-height: 1; }
.pf-stat .l { font-size: var(--fs-micro); color: var(--fg-2); margin-top: 6px; font-weight: var(--fw-semibold); }
.pf-stat .l span { display: block; color: var(--fg-3); font-weight: var(--fw-regular); margin-top: 1px; }

/* contributions */
.pf-contrib-h { font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--fg-3); font-weight: var(--fw-bold); margin-bottom: 10px; }
.pf-crow { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border-subtle); }
.pf-crow:last-child { border-bottom: none; }
.pf-crow .dot { width: 8px; height: 8px; border-radius: 3px; flex-shrink: 0; }
.pf-crow .t { flex: 1; min-width: 0; font-size: var(--fs-small); font-weight: var(--fw-medium); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-crow .v { font-weight: var(--fw-bold); font-size: var(--fs-small); display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.pf-crow .v .ic { width: 13px; height: 13px; color: var(--accent); }
.pf-empty { font-size: var(--fs-small); color: var(--fg-2); line-height: var(--lh-body); background: var(--accent-wash); border-radius: var(--radius-md); padding: 14px 16px; }

/* ---------- Card detail modal ---------- */
.card-title { cursor: pointer; transition: color var(--dur-fast) var(--ease-standard); }
.card-title:hover { color: var(--cat, var(--accent)); }
.clink.dm-link { transition: color var(--dur-fast) var(--ease-standard); }
.clink.dm-link:hover, .clink.dm-link:hover .ic { color: var(--cat, var(--accent)); }

.detail-modal { max-width: 640px; }
.detail-modal .mhead h2 { font-size: 23px; line-height: 1.18; }
.dm-author { display: flex; align-items: center; gap: 9px; margin-top: 12px; color: rgba(255,255,255,0.72); font-size: var(--fs-small); font-weight: var(--fw-medium); }
.dm-author .av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: var(--fw-bold); font-size: 10px; font-family: var(--font-display); }

.dm-block { display: flex; flex-direction: column; gap: 9px; }
.dm-label { display: flex; align-items: center; justify-content: space-between; font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: var(--tracking-wide); font-weight: var(--fw-bold); color: var(--fg-3); }
.dm-label > span { display: inline-flex; align-items: center; gap: 7px; }
.dm-label .ic { width: 14px; height: 14px; color: var(--cat, var(--accent)); }
.dm-copy { display: inline-flex; align-items: center; gap: 5px; background: none; border: 1px solid var(--border-default); border-radius: var(--radius-pill); padding: 4px 10px; font-size: var(--fs-micro); font-weight: var(--fw-semibold); color: var(--fg-2); text-transform: none; letter-spacing: 0; transition: all var(--dur-fast) var(--ease-standard); }
.dm-copy:hover { border-color: var(--cat, var(--accent)); color: var(--cat, var(--accent)); }
.dm-copy .ic { width: 13px; height: 13px; color: currentColor; }
.dm-prompt {
  margin: 0; font-family: var(--font-mono); font-size: var(--fs-small); line-height: 1.55; color: var(--fg-1);
  background: var(--bg-dark-surface, #1a1714); color: #ece3d4; border-radius: var(--radius-md);
  padding: 14px 16px; white-space: pre-wrap; word-break: break-word; border: 1px solid rgba(150,118,76,0.3);
}
/* claude skill link card */
.dm-skill { display: flex; align-items: center; gap: 13px; text-decoration: none; padding: 14px 16px; border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, var(--cat, var(--accent)) 30%, var(--border-default));
  background: color-mix(in srgb, var(--cat, var(--accent)) 6%, #fff);
  transition: border-color var(--dur-fast) var(--ease-standard), box-shadow var(--dur-fast) var(--ease-standard), transform var(--dur-fast) var(--ease-standard); }
.dm-skill:hover { border-color: var(--cat, var(--accent)); transform: translateY(-1px); box-shadow: 0 10px 22px -12px color-mix(in srgb, var(--cat, var(--accent)) 55%, transparent); }
.dm-skill-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--cat, var(--accent)); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.dm-skill-ic .ic { width: 19px; height: 19px; }
.dm-skill-main { flex: 1; min-width: 0; }
.dm-skill-name { display: block; font-weight: var(--fw-bold); font-size: var(--fs-body); color: var(--fg-1); }
.dm-skill-url { display: block; font-size: var(--fs-micro); color: var(--fg-3); font-family: var(--font-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.dm-skill-go { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-small); font-weight: var(--fw-bold); color: var(--cat, var(--accent)); flex-shrink: 0; }
.dm-skill-go .ic { width: 14px; height: 14px; }
.dm-arrow { display: flex; align-items: center; gap: 12px; }
.dm-arrow::before, .dm-arrow::after { content: ""; height: 1px; flex: 1; background: var(--border-default); }
.dm-arrow span { font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: var(--tracking-wide); font-weight: var(--fw-bold); color: var(--cat, var(--accent)); }
.dm-output {
  font-size: var(--fs-small); line-height: 1.6; color: var(--fg-1); white-space: pre-wrap; word-break: break-word;
  background: color-mix(in srgb, var(--cat, var(--accent)) 7%, #fff); border: 1px solid color-mix(in srgb, var(--cat, var(--accent)) 26%, var(--border-default));
  border-radius: var(--radius-md); padding: 14px 16px;
}
.dm-hint { font-size: var(--fs-micro); color: var(--fg-3); font-weight: var(--fw-medium); text-transform: none; letter-spacing: 0; }
.dm-shot { margin: 0; border: 1px solid var(--border-strong); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-md); background: #fff; }
.dm-shot-bar { display: flex; align-items: center; gap: 7px; padding: 9px 13px; background: #f1e8da; border-bottom: 1px solid rgba(150,118,76,0.28); }
.dm-shot-bar i { width: 10px; height: 10px; border-radius: 50%; }
.dm-shot-bar i:nth-child(1) { background: #E5484D; }
.dm-shot-bar i:nth-child(2) { background: #E0A526; }
.dm-shot-bar i:nth-child(3) { background: #1F8A5B; }
.dm-shot-bar span { margin-left: 6px; font-size: var(--fs-micro); color: var(--fg-3); font-weight: var(--fw-semibold); }
.dm-shot image-slot { display: block; width: 100%; }
.dm-shot-img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: contain; background: var(--bg-2); }
.submit-shot-preview { display: block; width: 100%; max-height: 180px; object-fit: contain; margin-top: 10px; border-radius: var(--radius-md); border: 1px solid var(--border-subtle); background: var(--bg-2); }
.dm-output-cap { display: flex; gap: 10px; align-items: flex-start; margin-top: 11px; font-size: var(--fs-small); line-height: 1.55; color: var(--fg-2); }
.dm-output-cap .cap-tag { flex-shrink: 0; font-size: 10px; font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: 0.06em; color: var(--cat, var(--accent)); background: color-mix(in srgb, var(--cat, var(--accent)) 12%, #fff); border: 1px solid color-mix(in srgb, var(--cat, var(--accent)) 28%, transparent); padding: 3px 8px; border-radius: var(--radius-pill); margin-top: 1px; }
.dm-output-cap .cap-text { white-space: pre-wrap; word-break: break-word; }
.dm-foot { flex-wrap: wrap; }
.dm-foot .btn .ic { width: 16px; height: 16px; }
.dm-repo { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-micro); font-weight: var(--fw-semibold); color: var(--fg-3); margin-left: auto; text-decoration: none; }
.dm-repo:hover { color: var(--fg-1); }
.dm-repo .ic { width: 12px; height: 12px; }

/* ---------- Admin dashboard ---------- */
.admin { padding: 0 0 90px; background: linear-gradient(180deg, #f1e8d9 0%, #f6f1e8 46%, #f2ebdd 100%); }
.ahero { background: var(--spigen-black); color: #fff; padding: 40px 0 30px; }
.ahero .wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.ahero .eyebrow { color: var(--accent); margin-bottom: 12px; }
.ahero h1 { color: #fff; font-size: 38px; letter-spacing: -0.025em; }
.ahero p { color: rgba(255,255,255,0.6); margin-top: 8px; font-size: var(--fs-body); }
.ahero .period { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); padding: 9px 16px; border-radius: var(--radius-pill); font-size: var(--fs-small); }
.ahero .period .ic { width: 16px; height: 16px; color: var(--accent); }

.admin .wrap { padding-top: 28px; }
.admin-body { position: relative; }
.admin-body::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 100vw; height: 150px; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='150' viewBox='0 0 120 150'%3E%3Cg fill='none' stroke='%237a5a30' stroke-width='2' stroke-opacity='0.16'%3E%3Cline x1='10' y1='0' x2='10' y2='150'/%3E%3Cline x1='110' y1='0' x2='110' y2='150'/%3E%3Cline x1='60' y1='0' x2='60' y2='150'/%3E%3Cpath d='M10 150V70a50 50 0 0 1 100 0v80'/%3E%3Cpath d='M10 70h100'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x; background-position: top center; background-size: 120px 150px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 88%); mask-image: linear-gradient(to bottom, #000 0%, transparent 88%);
}
.admin-body > * { position: relative; z-index: 1; }

/* KPI cards */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
@media (max-width: 980px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.kpis { align-items: stretch; }
.kpi { background: linear-gradient(180deg, #fbf7ef 0%, #f5edde 100%); border: 1px solid rgba(150,118,76,0.22); border-radius: var(--radius-lg); padding: 20px; display: flex; flex-direction: column; height: 100%; }
.kpi .kt { font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--fg-3); font-weight: var(--fw-semibold); display: flex; align-items: center; justify-content: space-between; min-height: 32px; }
.kpi .kt .star { color: var(--accent); }
.kpi .kv { font-family: var(--font-display); font-weight: 800; font-size: 40px; letter-spacing: -0.03em; margin: 10px 0 4px; line-height: 1; }
.kpi .kv .unit { font-size: 18px; color: var(--fg-3); font-weight: var(--fw-bold); }
.kpi .ktarget { font-size: var(--fs-micro); color: var(--fg-2); display: flex; align-items: center; gap: 6px; min-height: 32px; }
.kpi .meterbar { height: 6px; border-radius: 3px; background: rgba(120,90,50,0.14); margin-top: auto; overflow: hidden; }
.kpi .meterbar i { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
.kpi .pill-ok { color: #1F8A5B; font-weight: var(--fw-bold); }
.kpi .pill-ok .ic, .kpi .ktarget .ic { width: 13px; height: 13px; }

/* dashboard grid */
.dash { display: grid; grid-template-columns: 1.55fr 1fr; gap: 16px; margin-top: 16px; align-items: start; }
@media (max-width: 980px) { .dash { grid-template-columns: 1fr; } }
.dcard { background: linear-gradient(180deg, #fbf7ef 0%, #f5edde 100%); border: 1px solid rgba(150,118,76,0.22); border-radius: var(--radius-lg); padding: 22px; }
.dcard .dh { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.dcard .dh h3 { font-size: var(--fs-h4); }
.dcard .dh .sub { font-size: var(--fs-micro); color: var(--fg-3); }

/* bar chart (submissions over weeks) */
.chart { display: flex; align-items: flex-end; gap: 14px; height: 180px; padding-top: 8px; }
.chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.chart .bars { width: 100%; display: flex; gap: 4px; align-items: flex-end; justify-content: center; flex: 1; }
.chart .bar { width: 26px; border-radius: 4px 4px 0 0; transition: height var(--dur-slow) var(--ease-out); position: relative; }
.chart .bar.seed { background: var(--gray-300); }
.chart .bar.groupb { background: var(--ink); }
.chart .bar.groupc { background: var(--accent); }
.chart .clabel { font-size: var(--fs-micro); color: var(--fg-3); font-weight: var(--fw-medium); }
.chart .cval { font-size: var(--fs-small); font-weight: var(--fw-bold); }
.legend { display: flex; gap: 18px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border-subtle); }
.legend .li { display: flex; align-items: center; gap: 7px; font-size: var(--fs-micro); color: var(--fg-2); font-weight: var(--fw-medium); }
.legend .sw { width: 11px; height: 11px; border-radius: 3px; }

/* participation donut-ish split */
.split { display: flex; flex-direction: column; gap: 14px; }
.split .splitbar { height: 38px; border-radius: var(--radius-md); overflow: hidden; display: flex; }
.split .splitbar > div { display: grid; place-items: center; color: #fff; font-weight: var(--fw-bold); font-size: var(--fs-small); }
.split .sc { background: var(--accent); }
.split .sb { background: var(--ink); }
.split .sn { background: var(--gray-300); color: var(--fg-2); }
.split .splegend { display: flex; flex-direction: column; gap: 10px; }
.split .sl { display: flex; align-items: center; gap: 10px; font-size: var(--fs-small); }
.split .sl .sw { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }
.split .sl .lname { flex: 1; }
.split .sl .lname b { font-weight: var(--fw-semibold); }
.split .sl .lname span { color: var(--fg-3); font-size: var(--fs-micro); display: block; }
.split .sl .lval { font-weight: var(--fw-bold); }

/* spotlight candidates */
.spot { display: flex; flex-direction: column; gap: 0; }
.spot-item { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border-subtle); }
.spot-item:last-child { border-bottom: none; }
.spot-item .rk { width: 30px; height: 30px; border-radius: 8px; background: var(--bg-2); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 14px; color: var(--fg-2); flex-shrink: 0; }
.spot-item.lead .rk { background: var(--accent); color: #fff; }
.spot-item .sm { flex: 1; min-width: 0; }
.spot-item .sm .t { font-size: var(--fs-small); font-weight: var(--fw-semibold); }
.spot-item .sm .a { font-size: var(--fs-micro); color: var(--fg-3); }
.spot-item .sv { font-weight: var(--fw-bold); font-size: var(--fs-small); display: flex; align-items: center; gap: 5px; }
.spot-item .sv .ic { width: 13px; height: 13px; color: var(--accent); }
.spot-item .pickbtn { border: 1.5px solid var(--border-default); background: #fff; border-radius: var(--radius-pill); padding: 6px 13px; font-size: var(--fs-micro); font-weight: var(--fw-semibold); color: var(--fg-2); transition: all var(--dur-fast); }
.spot-item .pickbtn:hover { border-color: var(--accent); color: var(--accent); }
.spot-item .pickbtn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }

/* health row mini-stats */
.health { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.health .hs { background: rgba(120,90,50,0.09); border: 1px solid rgba(150,118,76,0.16); border-radius: var(--radius-md); padding: 14px 16px; }
.health .hs .v { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; }
.health .hs .l { font-size: var(--fs-micro); color: var(--fg-2); margin-top: 2px; }

/* category bars */
.catbars { display: flex; flex-direction: column; gap: 12px; }
.catbar { display: grid; grid-template-columns: 130px 1fr 38px; align-items: center; gap: 12px; }
.catbar .cn { font-size: var(--fs-small); font-weight: var(--fw-medium); }
.catbar .ct { height: 10px; border-radius: 5px; background: rgba(120,90,50,0.14); overflow: hidden; }
.catbar .ct i { display: block; height: 100%; border-radius: 5px; background: var(--accent); }
.catbar .cc { font-size: var(--fs-small); font-weight: var(--fw-bold); text-align: right; color: var(--fg-2); }

/* department bars (wider labels) */
.deptbars { display: flex; flex-direction: column; gap: 10px; }
.deptbars .catbar { grid-template-columns: 132px 1fr 26px; gap: 12px; }
.deptbars .catbar .cn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* quarterly bar chart (single bar per column) */
.qchart .bars { justify-content: center; }
.qchart .bar { width: 44px; border-radius: 6px 6px 0 0; }
.qchart .bar.quarter { background: rgba(120,90,50,0.32); }
.qchart .bar.quarter.cur { background: var(--accent); }

/* line chart */
.linechart { width: 100%; height: auto; display: block; overflow: visible; margin-top: 4px; }
.lc-grid { stroke: rgba(120,90,50,0.14); stroke-width: 1; }
.lc-xl { font-size: 12px; fill: var(--fg-3); font-family: var(--font-body); }
.lc-end { font-size: 13px; font-family: var(--font-display); font-weight: 800; }

/* =========================================================================
   Season / quarterly tournament
   ========================================================================= */
.season { padding-bottom: 0; background: linear-gradient(180deg, #f1e8d9 0%, #f6f1e8 46%, #f2ebdd 100%); }

/* phase tracker in the hero */
.phase-track { display: flex; align-items: center; margin-top: 30px; max-width: 760px; }
.phase-step { display: flex; align-items: center; gap: 11px; }
.phase-step .dot {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  background: rgba(255,255,255,0.1); border: 2px solid rgba(255,255,255,0.2);
  font-family: var(--font-display); font-weight: 800; font-size: 12px; color: rgba(255,255,255,0.6);
}
.phase-step .dot .ic { width: 15px; height: 15px; color: #fff; }
.phase-step .pl { font-size: var(--fs-small); font-weight: var(--fw-semibold); color: rgba(255,255,255,0.55); white-space: nowrap; }
.phase-step.done .dot { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.3); color: #fff; }
.phase-step.done .pl { color: rgba(255,255,255,0.8); }
.phase-step.now .dot { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 0 5px var(--accent-ring); }
.phase-step.now .pl { color: #fff; }
.phase-line { flex: 1; height: 2px; background: rgba(255,255,255,0.15); margin: 0 12px; min-width: 24px; border-radius: 1px; }
.phase-line.done { background: rgba(255,255,255,0.4); }

.season-meta { display: flex; gap: 14px; align-items: center; margin-top: 26px; flex-wrap: wrap; }
.live-pill {
  display: inline-flex; align-items: center; gap: 9px; background: var(--accent); color: #fff; white-space: nowrap;
  padding: 9px 16px 9px 13px; border-radius: var(--radius-pill); font-size: var(--fs-small); font-weight: var(--fw-semibold);
}
.live-pill .blip { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,0.7); animation: blip 1.6s infinite; }
@keyframes blip { 0%{box-shadow:0 0 0 0 rgba(255,255,255,0.6)} 70%{box-shadow:0 0 0 8px rgba(255,255,255,0)} 100%{box-shadow:0 0 0 0 rgba(255,255,255,0)} }
.count-pill {
  display: inline-flex; align-items: center; gap: 9px; background: rgba(255,255,255,0.08); white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.16); padding: 9px 16px; border-radius: var(--radius-pill); font-size: var(--fs-small);
}
.count-pill .ic { width: 15px; height: 15px; color: var(--accent); }
.count-pill b { font-family: var(--font-mono); font-weight: var(--fw-bold); }

/* ---------- Bracket ---------- */
.bracket-wrap { background: var(--bg-2); padding: 46px 0 52px; border-bottom: 1px solid var(--border-default); }
.bracket-scroll { overflow-x: auto; padding-bottom: 6px; }
.bracket { display: flex; align-items: stretch; min-width: 940px; min-height: 460px; }
.rd { flex: 1; display: flex; flex-direction: column; min-width: 200px; }
.rd-h { text-align: center; font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: var(--tracking-wide); font-weight: var(--fw-bold); color: var(--fg-3); height: 18px; margin-bottom: 18px; }
.rd-body { flex: 1; display: flex; flex-direction: column; justify-content: space-around; }

.cnx { flex: 0 0 34px; display: flex; flex-direction: column; justify-content: space-around; padding-top: 36px; }
.cnx .br { border: 2px solid var(--border-strong); border-left: 0; border-radius: 0 12px 12px 0; position: relative; }
.cnx[data-r="qf"] .br { height: 25%; }
.cnx[data-r="sf"] .br { height: 50%; }
.cnx .br::after { content: ""; position: absolute; left: 100%; top: 50%; width: 18px; height: 2px; background: var(--border-strong); transform: translateY(-1px); }
.cnx.straight { justify-content: center; }
.cnx.straight .line { height: 2px; width: 100%; background: var(--border-strong); position: relative; }
.cnx.straight .line::after { content: ""; position: absolute; right: -2px; top: 50%; width: 8px; height: 8px; border-top: 2px solid var(--border-strong); border-right: 2px solid var(--border-strong); transform: translateY(-50%) rotate(45deg); }

/* match card */
.match { background: #fff; border: 1px solid var(--border-default); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-xs); }
.match.live { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.match.pending { border-style: dashed; background: transparent; box-shadow: none; }
.mstat { font-size: 9px; font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: 0.1em; padding: 6px 12px; color: var(--fg-3); background: var(--bg-2); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.match.live .mstat { background: var(--accent); color: #fff; }
.match.live .mstat .blip { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blip 1.6s infinite; }
.mrow { display: flex; align-items: center; gap: 10px; padding: 11px 13px; position: relative; }
.mrow + .mrow { border-top: 1px solid var(--border-subtle); }
.mrow.win { background: color-mix(in srgb, var(--accent) 7%, #fff); }
.mrow .seed { font-size: 10px; font-weight: var(--fw-bold); color: var(--fg-3); width: 14px; flex-shrink: 0; text-align: center; }
.mrow .mdot { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
.mrow .mname { flex: 1; min-width: 0; font-size: var(--fs-small); font-weight: var(--fw-semibold); line-height: 1.18; }
.mrow .mname .who { display: block; font-size: var(--fs-micro); color: var(--fg-3); font-weight: var(--fw-regular); margin-top: 2px; }
.mrow .mtrophy { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; }
.mrow .mv { font-family: var(--font-display); font-weight: 800; font-size: 16px; color: var(--fg-3); width: 28px; text-align: right; flex-shrink: 0; }
.mrow.win .mv { color: var(--accent); }
.mrow.pend { color: var(--fg-3); font-size: var(--fs-small); font-style: italic; padding: 15px 13px; }
.match .pbar { height: 4px; display: flex; }
.match .pbar .pa { background: var(--accent); }
.match .pbar .pb { background: var(--gray-300); }

/* champion column */
.champ-col { display: flex; flex-direction: column; }
.champ-card { flex: 1; max-height: 300px; background: var(--spigen-black); color: #fff; border-radius: var(--radius-lg); padding: 26px 18px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; position: relative; overflow: hidden; }
.champ-card::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 50% 0%, var(--accent-wash), transparent 60%); }
.champ-card .tw { width: 52px; height: 52px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; position: relative; z-index: 1; }
.champ-card .tw .ic { width: 28px; height: 28px; color: #fff; }
.champ-card .ct { font-size: 10px; text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--accent); font-weight: var(--fw-bold); position: relative; z-index: 1; }
.champ-card .cn { font-size: var(--fs-h4); font-family: var(--font-display); font-weight: 800; position: relative; z-index: 1; }
.champ-card .cd { font-size: var(--fs-micro); color: rgba(255,255,255,0.6); position: relative; z-index: 1; line-height: var(--lh-body); }

/* =========================================================================
   Season leaderboard (standings)
   ========================================================================= */
.lboard-wrap { background: #efe6d6; padding: 46px 0 52px; border-bottom: 1px solid rgba(150,118,76,0.28); position: relative; }
.lboard-wrap::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 150px; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='150' viewBox='0 0 120 150'%3E%3Cg fill='none' stroke='%237a5a30' stroke-width='2' stroke-opacity='0.16'%3E%3Cline x1='10' y1='0' x2='10' y2='150'/%3E%3Cline x1='110' y1='0' x2='110' y2='150'/%3E%3Cline x1='60' y1='0' x2='60' y2='150'/%3E%3Cpath d='M10 150V70a50 50 0 0 1 100 0v80'/%3E%3Cpath d='M10 70h100'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x; background-position: top center; background-size: 120px 150px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 88%); mask-image: linear-gradient(to bottom, #000 0%, transparent 88%);
}
.lboard-wrap > .wrap { position: relative; z-index: 1; }

/* leader spotlight */
.lead-spot {
  display: flex; gap: 26px; align-items: center; background: var(--spigen-black); color: #fff;
  border-radius: var(--radius-xl); padding: 26px 30px; position: relative; overflow: hidden; margin-bottom: 22px;
}
.lead-spot::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 130% at 88% -20%, var(--accent-wash), transparent 55%); pointer-events: none; }
.lead-spot .ls-rank { display: flex; flex-direction: column; align-items: center; gap: 4px; flex-shrink: 0; position: relative; z-index: 1; }
.lead-spot .ls-rank .crown { width: 34px; height: 34px; color: var(--accent); }
.lead-spot .ls-rank .n { font-family: var(--font-display); font-weight: 800; font-size: 52px; line-height: 0.9; letter-spacing: -0.04em; }
.lead-spot .ls-rank .lbl { font-size: 9px; text-transform: uppercase; letter-spacing: 0.14em; color: rgba(255,255,255,0.5); font-weight: var(--fw-bold); }
.lead-spot .ls-divider { width: 1px; align-self: stretch; background: rgba(255,255,255,0.12); position: relative; z-index: 1; }
.lead-spot .ls-main { flex: 1; min-width: 0; position: relative; z-index: 1; }
.lead-spot .ls-cat { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: 0.1em; color: #fff; background: var(--cat, var(--accent)); padding: 4px 11px; border-radius: var(--radius-pill); margin-bottom: 10px; }
.lead-spot .ls-main h3 { color: #fff; font-size: 24px; line-height: 1.15; letter-spacing: -0.02em; }
.lead-spot .ls-author { display: flex; align-items: center; gap: 9px; margin-top: 12px; }
.lead-spot .ls-author .av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: var(--fw-bold); font-size: 11px; font-family: var(--font-display); }
.lead-spot .ls-author .nm { font-size: var(--fs-small); font-weight: var(--fw-semibold); }
.lead-spot .ls-author .tm { font-size: var(--fs-micro); color: rgba(255,255,255,0.55); }
.lead-spot .ls-score { text-align: right; flex-shrink: 0; position: relative; z-index: 1; }
.lead-spot .ls-score .v { font-family: var(--font-display); font-weight: 800; font-size: 44px; letter-spacing: -0.03em; line-height: 1; }
.lead-spot .ls-score .v .u { font-size: 15px; color: rgba(255,255,255,0.55); font-weight: var(--fw-bold); margin-left: 4px; }
.lead-spot .ls-score .lead-by { margin-top: 8px; font-size: var(--fs-micro); color: var(--accent); font-weight: var(--fw-semibold); display: inline-flex; align-items: center; gap: 5px; background: var(--accent-wash); padding: 5px 11px; border-radius: var(--radius-pill); }

/* ranked list */
.lboard { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lrow {
  display: grid; grid-template-columns: 44px 1fr 190px 66px 58px; align-items: center; gap: 18px;
  background: linear-gradient(180deg, #fcf8f1 0%, #f6efe1 100%); border: 1px solid rgba(150,118,76,0.2); border-radius: var(--radius-md); padding: 13px 18px;
  transition: box-shadow var(--dur-fast) var(--ease-standard), transform var(--dur-fast) var(--ease-standard), border-color var(--dur-fast) var(--ease-standard);
}
.lrow:hover { box-shadow: var(--shadow-sm); transform: translateX(2px); border-color: rgba(150,118,76,0.42); }
.lrow.clickable { cursor: pointer; }
.lrow .lrank { font-family: var(--font-display); font-weight: 800; font-size: 19px; color: var(--fg-3); text-align: center; }
.lrow.t1 .lrank, .lrow.t2 .lrank, .lrow.t3 .lrank { color: #fff; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; margin: 0 auto; }
.lrow.t1 .lrank { background: var(--accent); }
.lrow.t2 .lrank { background: #8A8A8E; }
.lrow.t3 .lrank { background: #B0793E; }
.lcell-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lcell-main .mdot { width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0; }
.lcell-main .lt { min-width: 0; }
.lcell-main .lt .t { font-size: var(--fs-small); font-weight: var(--fw-semibold); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lcell-main .lt .a { font-size: var(--fs-micro); color: var(--fg-3); margin-top: 2px; }
.lbar { height: 8px; border-radius: 4px; background: rgba(120,90,50,0.14); overflow: hidden; }
.lbar i { display: block; height: 100%; border-radius: 4px; background: var(--cat, var(--accent)); transition: width var(--dur-slow) var(--ease-out); }
.lscore { font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: -0.02em; text-align: right; }
.lscore .u { font-size: 10px; color: var(--fg-3); font-weight: var(--fw-bold); display: block; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 1px; }
.lmove { display: inline-flex; align-items: center; justify-content: center; gap: 3px; font-size: var(--fs-small); font-weight: var(--fw-bold); }
.lmove.up { color: #1F8A5B; }
.lmove.down { color: #C0492F; }
.lmove.same { color: var(--gray-300); }
.lmove .tri { font-size: 10px; }
.lboard-note { margin-top: 18px; font-size: var(--fs-micro); color: var(--fg-3); display: flex; align-items: center; gap: 8px; }
.lboard-note .ic { width: 14px; height: 14px; color: var(--accent); }
@media (max-width: 760px) {
  .lrow { grid-template-columns: 36px 1fr 60px 48px; }
  .lrow .lbar-cell { display: none; }
}

/* season lower panels */
.season-panels { padding: 40px 0 80px; }
.season-panels .wrap { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 980px) { .season-panels .wrap { grid-template-columns: 1fr; } }
.spanel { background: linear-gradient(180deg, #fbf7ef 0%, #f5edde 100%); border: 1px solid rgba(150,118,76,0.22); border-radius: var(--radius-lg); padding: 22px; }
.spanel > h3 { font-size: var(--fs-h4); display: flex; align-items: center; gap: 9px; margin-bottom: 4px; }
.spanel > h3 .ic { width: 19px; height: 19px; color: var(--accent); }
.spanel > .sub { font-size: var(--fs-small); color: var(--fg-3); margin-bottom: 18px; }

/* rubric */
.rubric { display: flex; flex-direction: column; gap: 14px; }
.rubric .ri { }
.rubric .ri .rt { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 5px; }
.rubric .ri .rt b { font-size: var(--fs-small); font-weight: var(--fw-semibold); }
.rubric .ri .rt .rw { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-small); color: var(--accent); }
.rubric .ri .rbar { height: 7px; border-radius: 4px; background: rgba(120,90,50,0.14); overflow: hidden; }
.rubric .ri .rbar i { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.rubric .ri .rn { font-size: var(--fs-micro); color: var(--fg-3); margin-top: 5px; }
.rubric-note { margin-top: 16px; padding: 12px 14px; background: var(--accent-wash); border-radius: var(--radius-md); font-size: var(--fs-micro); color: var(--fg-1); line-height: var(--lh-body); }

/* cadence steps */
.cadence { display: flex; flex-direction: column; gap: 0; }
.cad-step { display: flex; gap: 13px; padding-bottom: 18px; position: relative; }
.cad-step:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: -2px; width: 2px; background: var(--border-default); }
.cad-step .cn { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 12px; flex-shrink: 0; z-index: 1; }
.cad-step .cb b { font-size: var(--fs-small); font-weight: var(--fw-semibold); display: block; }
.cad-step .cb span { font-size: var(--fs-micro); color: var(--fg-2); line-height: var(--lh-body); }
.cad-step .cb .wk { font-size: 10px; text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--accent); font-weight: var(--fw-bold); }

/* hall of champions */
.hoc { display: flex; flex-direction: column; gap: 12px; }
.hoc-item { display: flex; align-items: center; gap: 13px; padding: 13px; border: 1px solid var(--border-default); border-radius: var(--radius-md); border-left: 4px solid var(--cat, var(--accent)); }
.hoc-item .medal { width: 34px; height: 34px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; flex-shrink: 0; }
.hoc-item .medal .ic { width: 18px; height: 18px; color: var(--cat, var(--accent)); }
.hoc-item .hm { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hoc-item .hm .hlabel { font-size: 10px; text-transform: uppercase; letter-spacing: var(--tracking-wide); font-weight: var(--fw-bold); color: var(--fg-3); }
.hoc-item .hm .ht { display: block; font-size: var(--fs-small); font-weight: var(--fw-semibold); line-height: 1.25; }
.hoc-item .hm .ha { display: block; font-size: var(--fs-micro); color: var(--fg-3); }

/* =========================================================================
   Season — quarterly timeline (no competition)
   ========================================================================= */
.season-progress-wrap { background: #efe6d6; padding: 40px 0 18px; border-bottom: 1px solid rgba(150,118,76,0.2); }
.sprog-card { background: linear-gradient(180deg, #fdfaf4 0%, #f6efe2 100%); border: 1px solid rgba(150,118,76,0.24); border-radius: var(--radius-xl); padding: 24px 26px; box-shadow: var(--shadow-sm); }
.sprog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.sprog-label { font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.sprog-sub { font-size: var(--fs-small); color: var(--fg-3); margin-top: 2px; }
.sprog-pct { font-family: var(--font-display); font-weight: 800; font-size: 38px; line-height: 1; letter-spacing: -0.03em; color: var(--accent); }
.sprog-pct span { font-size: 20px; }
.sprog-track { position: relative; height: 14px; border-radius: var(--radius-pill); background: var(--bg-3); box-shadow: inset 0 1px 2px rgba(0,0,0,0.09); overflow: visible; }
.sprog-fill { position: relative; height: 100%; border-radius: var(--radius-pill); background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 65%, #fff), var(--accent)); }
.sprog-knob { position: absolute; right: 0; top: 50%; transform: translate(50%, -50%); width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); box-shadow: var(--shadow-sm); }
.sprog-knob .sk-label { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: var(--fs-micro); font-weight: var(--fw-bold); color: #fff; background: var(--accent); padding: 3px 9px; border-radius: var(--radius-pill); }
.sprog-knob .sk-label::after { content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 5px solid transparent; border-top-color: var(--accent); }
.sprog-ends { display: flex; justify-content: space-between; margin-top: 14px; font-size: var(--fs-small); color: var(--fg-2); }
.sprog-ends b { color: var(--fg-1); font-weight: var(--fw-bold); }

.sstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; }
@media (max-width: 720px) { .sstats { grid-template-columns: 1fr; } }
.sstat { background: linear-gradient(180deg, #fdfaf4 0%, #f6efe2 100%); border: 1px solid rgba(150,118,76,0.24); border-radius: var(--radius-lg); padding: 18px 20px; }
.sstat .v { font-family: var(--font-display); font-weight: 800; font-size: 34px; letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.sstat .l { font-size: var(--fs-small); color: var(--fg-2); margin-top: 6px; }

.season-lb-wrap { background: #efe6d6; padding: 44px 0 50px; border-bottom: 1px solid rgba(150,118,76,0.2); }
.season-tl-wrap { padding: 40px 0 80px; }
.s-timeline { list-style: none; margin: 0; padding: 0; }
.st-item { display: grid; grid-template-columns: 40px 1fr; gap: 18px; }
.st-rail { display: flex; flex-direction: column; align-items: center; }
.st-dot { width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 2px solid var(--border-strong); display: grid; place-items: center; flex-shrink: 0; z-index: 1; color: var(--fg-3); }
.st-dot .ic { width: 16px; height: 16px; }
.st-item.done .st-dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.st-item.now .st-dot { background: #fff; border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-wash); }
.st-item.end .st-dot { background: var(--ink); border-color: var(--ink); color: #fff; }
.st-pulse { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); animation: stpulse 1.6s var(--ease-standard) infinite; }
@keyframes stpulse { 0% { box-shadow: 0 0 0 0 var(--accent-ring); } 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.st-item:not(:last-child) .st-rail::after { content: ""; flex: 1; width: 2px; background: var(--border-default); margin: 4px 0; min-height: 26px; }
.st-item.done:not(:last-child) .st-rail::after { background: var(--accent); }
.st-body { padding-bottom: 26px; min-width: 0; }
.st-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 5px; }
.st-top .st-date, .st-top .st-tag { white-space: nowrap; }
.st-tag { font-size: 10px; font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--accent); }
.st-date { font-size: var(--fs-micro); color: var(--fg-3); font-weight: var(--fw-semibold); }
.st-badge { font-size: 10px; font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: 0.06em; color: #fff; background: var(--accent); padding: 3px 9px; border-radius: var(--radius-pill); }
.st-title { font-size: var(--fs-h4); letter-spacing: -0.01em; }
.st-item.now .st-title { color: var(--accent); }
.st-desc { font-size: var(--fs-small); color: var(--fg-2); line-height: var(--lh-body); margin: 5px 0 0; max-width: 64ch; }
.st-item.done .st-body, .st-item.todo .st-body { opacity: 0.92; }

/* file attach (mission composer) + attachment display */
.file-drop { display: flex; align-items: center; gap: 10px; width: 100%; padding: 13px 15px; border: 1.5px dashed var(--border-strong); border-radius: var(--radius-md); background: var(--bg-2); cursor: pointer; font-size: var(--fs-small); font-weight: var(--fw-semibold); color: var(--fg-2); text-align: left; transition: all var(--dur-fast) var(--ease-standard); }
.file-drop:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-wash); }
.file-drop .ic { width: 17px; height: 17px; flex-shrink: 0; }
.file-drop .fd-hint { display: block; font-weight: var(--fw-regular); font-size: var(--fs-micro); color: var(--fg-3); }
.file-chip { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1.5px solid var(--accent-ring); border-radius: var(--radius-md); background: var(--accent-wash); }
.file-chip .ic { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }
.file-chip .fc-name { flex: 1; min-width: 0; font-size: var(--fs-small); font-weight: var(--fw-semibold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-chip .fc-x { background: none; border: none; cursor: pointer; color: var(--fg-3); padding: 2px; display: grid; place-items: center; border-radius: 50%; }
.file-chip .fc-x:hover { color: var(--fg-1); background: rgba(0,0,0,0.06); }
.file-chip .fc-x .ic { width: 14px; height: 14px; color: inherit; }
.fl-file { display: flex; align-items: center; gap: 10px; padding: 11px 13px; margin-bottom: 16px; border: 1px solid rgba(150,118,76,0.28); border-radius: var(--radius-md); background: rgba(120,90,50,0.06); text-decoration: none; transition: border-color var(--dur-fast) var(--ease-standard); }
.fl-file:hover { border-color: var(--accent); }
.fl-file .ic { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; }
.fl-file .ff-name { flex: 1; min-width: 0; font-size: var(--fs-small); font-weight: var(--fw-semibold); color: var(--fg-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-file .ff-dl { color: var(--fg-3); }

/* footer */
.foot { background: var(--spigen-black); color: rgba(255,255,255,0.5); padding: 26px 0; font-size: var(--fs-micro); }
.foot .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot .word { display: flex; align-items: center; color: #fff; }
.foot .foot-logo { height: 22px; width: auto; display: block; }

/* utility */
.spark { display: inline-block; }
.muted { color: var(--fg-3); }

/* =========================================================================
   Competition / seasonal missions
   ========================================================================= */
.competition { background: linear-gradient(180deg, #f1e8d9 0%, #f6f1e8 46%, #f2ebdd 100%); padding-bottom: 80px; flex: 1 0 auto; }

.comp-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.role-switch { display: inline-flex; align-items: center; gap: 4px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); border-radius: var(--radius-pill); padding: 4px; }
.role-switch .rs-label { font-size: var(--fs-micro); color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: var(--tracking-wide); font-weight: var(--fw-semibold); padding: 0 8px 0 10px; }
.role-switch button { display: inline-flex; align-items: center; gap: 6px; border: none; background: transparent; color: rgba(255,255,255,0.7); font-size: var(--fs-small); font-weight: var(--fw-semibold); padding: 7px 14px; border-radius: var(--radius-pill); transition: all var(--dur-fast) var(--ease-standard); }
.role-switch button .ic { width: 14px; height: 14px; }
.role-switch button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.role-switch button:hover[aria-pressed="false"] { color: #fff; }

.competition .ghero h1 { margin-top: 16px; }
.post-av { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-weight: var(--fw-bold); font-size: 9px; font-family: var(--font-display); margin-right: 4px; }
.comp-reward { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; background: var(--accent-wash); border: 1px solid var(--accent-ring); color: #fff; padding: 11px 18px; border-radius: var(--radius-pill); font-size: var(--fs-small); }
.comp-reward .ic { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.comp-reward b { color: var(--accent); font-weight: var(--fw-bold); }

.comp-body { padding: 38px 0 0; }
.comp-body .wrap { display: grid; grid-template-columns: 1fr 320px; gap: 36px; align-items: start; }
@media (max-width: 1060px) { .comp-body .wrap { grid-template-columns: 1fr; } }
.comp-main { display: flex; flex-direction: column; gap: 30px; min-width: 0; }
.comp-aside { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 132px; }

/* mission brief */
.mbrief { background: linear-gradient(180deg, #fdfaf4 0%, #f6efe2 100%); border: 1px solid rgba(150,118,76,0.24); border-radius: var(--radius-xl); padding: 26px; }
.mbrief-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.mbrief-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: var(--tracking-wide); font-weight: var(--fw-bold); color: var(--accent); }
.mbrief-eyebrow .ic { width: 16px; height: 16px; }
.mbrief-tags { display: flex; gap: 7px; flex-wrap: wrap; }
.mtag { font-size: 11px; font-weight: var(--fw-semibold); color: var(--fg-2); background: rgba(120,90,50,0.08); border: 1px solid rgba(150,118,76,0.2); padding: 4px 11px; border-radius: var(--radius-pill); }
.mbrief-lede { font-family: var(--font-display); font-weight: 700; font-size: 22px; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 12px; text-wrap: pretty; }
.mbrief-detail { font-size: var(--fs-body); color: var(--fg-2); line-height: var(--lh-body); margin: 0 0 22px; max-width: 64ch; }
.mbrief-prompts { background: rgba(120,90,50,0.05); border: 1px solid rgba(150,118,76,0.16); border-radius: var(--radius-lg); padding: 18px 20px; }
.mp-label { font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: var(--tracking-wide); font-weight: var(--fw-bold); color: var(--fg-3); margin-bottom: 12px; }
.mp-row { display: flex; align-items: flex-start; gap: 12px; padding: 7px 0; }
.mp-num { width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; background: var(--accent); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 12px; }
.mp-text { font-size: var(--fs-small); color: var(--fg-1); line-height: var(--lh-snug); padding-top: 2px; }

/* entries */
.comp-entries .section-head { margin-bottom: 18px; }
.comp-entries .section-head h2 { font-size: 22px; }
.comp-entries .section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.head-actions .btn .ic { width: 16px; height: 16px; }

/* edit / delete manage buttons (entries + missions) */
.manage-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-subtle); }
.manage-btn { white-space: nowrap; }
.manage-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--border-default); border-radius: var(--radius-pill); padding: 6px 13px; font-size: var(--fs-micro); font-weight: var(--fw-semibold); color: var(--fg-2); cursor: pointer; transition: all var(--dur-fast) var(--ease-standard); }
.manage-btn:hover { border-color: var(--fg-2); color: var(--fg-1); }
.manage-btn.danger:hover { border-color: #E5484D; color: #E5484D; background: rgba(229,72,77,0.06); }
.manage-btn .ic { width: 13px; height: 13px; }
.exec-mission-actions { display: flex; flex-direction: column; gap: 10px; }
.exec-mission-actions .ema-row { display: flex; gap: 8px; }
.exec-mission-actions .ema-row .manage-btn { flex: 1; justify-content: center; }
.entry-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; align-items: stretch; }
.entry-grid .entry-card { height: 100%; }
@media (max-width: 720px) { .entry-grid { grid-template-columns: 1fr; } }
/* entry cards reuse the .card vocabulary; just ensure comfortable internal rhythm */
.entry-card.card { gap: 12px; }
.entry-card.card .desc { -webkit-line-clamp: 4; }
.entry-card.is-winner { border-color: #E0A93B; box-shadow: 0 0 0 1.5px #E0A93B inset, var(--shadow-card); }
.winner-pill { display: inline-flex; align-items: center; gap: 5px; background: linear-gradient(90deg, #F3C969, #E0A93B); color: #4A3208; font-size: var(--fs-micro); font-weight: var(--fw-bold); padding: 3px 10px; border-radius: var(--radius-pill); }
.winner-pill .ic { width: 12px; height: 12px; }
.manage-btn.on { background: linear-gradient(90deg, #F3C969, #E0A93B); border-color: #E0A93B; color: #4A3208; }

/* Hall of Fame — gold induction action + curated showcase page */
.cm-btn.hof { border-color: #E0A93B; color: #9A6B12; }
.cm-btn.hof:hover { border-color: #E0A93B; color: #4A3208; background: rgba(224,169,59,0.1); }
.cm-btn.hof.on { background: linear-gradient(90deg, #F3C969, #E0A93B); border-color: #E0A93B; color: #4A3208; }
.manage-btn.hof { border-color: #E0A93B; color: #9A6B12; }
.manage-btn.hof:hover { border-color: #E0A93B; color: #4A3208; background: rgba(224,169,59,0.1); }
.manage-btn.hof.on { background: linear-gradient(90deg, #F3C969, #E0A93B); border-color: #E0A93B; color: #4A3208; }
.manage-btn.archive:hover { border-color: #6B7280; color: #374151; background: rgba(107,114,128,0.08); }

.app > .hof { flex: 1 0 auto; display: flex; flex-direction: column; }
.app > .hof .gbody { flex: 1 0 auto; }
.hof-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
@media (max-width: 900px) { .hof-cols { grid-template-columns: 1fr; } }
.hof-cols .hof-grid { grid-template-columns: 1fr; }
.hof-section { margin-bottom: 0; }
.hof-section .section-head h2 { display: flex; align-items: center; gap: 8px; }
.hof-section .section-head h2 .ic { width: 16px; height: 16px; flex-shrink: 0; }
.hof-sub { font-size: var(--fs-small); margin: 2px 0 20px; max-width: 62ch; }
.hof-grid { align-items: stretch; }
.hof-card { height: 100%; }
.hof-badge { display: inline-flex; align-items: center; gap: 5px; background: linear-gradient(90deg, #F3C969, #E0A93B); color: #4A3208; font-size: var(--fs-micro); font-weight: var(--fw-bold); padding: 3px 10px; border-radius: var(--radius-pill); text-transform: uppercase; letter-spacing: 0.04em; }
.hof-badge .ic { width: 12px; height: 12px; }
.hof-votes { display: inline-flex; align-items: center; gap: 5px; font-weight: var(--fw-bold); color: var(--fg-2); font-size: var(--fs-small); }
.hof-votes .ic { width: 14px; height: 14px; }
.points-pick button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.winner-lock { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 11px 14px; border-radius: var(--radius-md); background: rgba(120,90,50,0.06); border: 1px dashed rgba(120,90,50,0.28); font-size: var(--fs-small); color: var(--fg-2); }
.winner-lock .ic { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; }
.winner-lock b { color: var(--ink); }

/* Competition landing — live tournaments as cards */
.comp-back { display: inline-flex; align-items: center; gap: 6px; background: none; border: none; color: var(--fg-2); font-size: var(--fs-small); font-weight: var(--fw-semibold); cursor: pointer; padding: 0; margin-bottom: 14px; }
.comp-back:hover { color: var(--ink); }
.comp-back .ic { width: 14px; height: 14px; }
.comp-landing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 18px; align-items: stretch; }
@media (max-width: 720px) { .comp-landing-grid { grid-template-columns: 1fr; } }
.comp-landing-card { text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 10px; border-top: 3px solid var(--cat, var(--accent)); transition: transform var(--dur-fast) var(--ease-standard), box-shadow var(--dur-fast) var(--ease-standard); }
.comp-landing-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-card-hover, 0 8px 24px rgba(60,40,20,0.12)); }
.clc-top { display: flex; align-items: center; justify-content: space-between; }
.clc-no { font-size: var(--fs-micro); font-weight: var(--fw-bold); letter-spacing: 0.04em; text-transform: uppercase; color: var(--cat, var(--accent)); }
.clc-live { display: inline-flex; align-items: center; gap: 5px; font-size: var(--fs-micro); font-weight: var(--fw-semibold); color: var(--fg-2); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #2FAE66; box-shadow: 0 0 0 3px rgba(47,174,102,0.18); }
.clc-title { font-size: var(--fs-h3); font-weight: var(--fw-bold); color: var(--ink); margin: 0; }
.clc-brief { font-size: var(--fs-small); color: var(--fg-2); line-height: var(--lh-body); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.clc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.clc-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border-subtle); }
.clc-poster { display: inline-flex; align-items: center; gap: 7px; font-size: var(--fs-small); font-weight: var(--fw-medium); color: var(--fg-1); }
.clc-poster .av { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 10px; font-weight: var(--fw-bold); }
.clc-meta { font-size: var(--fs-micro); color: var(--fg-3); }
.clc-reward { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-micro); font-weight: var(--fw-semibold); color: var(--cat, var(--accent)); }
.clc-reward .ic { width: 13px; height: 13px; }

/* mission switcher strip */
.mission-strip { background: #efe6d6; border-bottom: 1px solid rgba(150,118,76,0.28); }
.mission-strip .wrap { display: flex; align-items: center; gap: 18px; padding-top: 14px; padding-bottom: 14px; }
.ms-label { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: var(--tracking-wide); font-weight: var(--fw-bold); color: var(--fg-3); flex-shrink: 0; }
.ms-label .ic { width: 15px; height: 15px; color: var(--accent); }
.ms-rail { display: flex; gap: 12px; flex: 1; overflow-x: auto; padding-bottom: 2px; }
.ms-chip { display: flex; align-items: center; gap: 11px; padding: 10px 16px 10px 11px; background: #fff; border: 1.5px solid rgba(150,118,76,0.22); border-radius: var(--radius-lg); cursor: pointer; transition: all var(--dur-fast) var(--ease-standard); flex-shrink: 0; position: relative; text-align: left; }
.ms-chip:hover { border-color: color-mix(in srgb, var(--cat) 50%, var(--border-strong)); transform: translateY(-1px); }
.ms-chip.on { border-color: var(--cat); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cat) 18%, transparent); }
.ms-av { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-weight: var(--fw-bold); font-size: 12px; font-family: var(--font-display); flex-shrink: 0; }
.ms-meta { display: flex; flex-direction: column; min-width: 0; }
.ms-title { font-weight: var(--fw-bold); font-size: var(--fs-small); color: var(--fg-1); white-space: nowrap; }
.ms-sub { font-size: var(--fs-micro); color: var(--fg-3); white-space: nowrap; }
.ms-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cat); flex-shrink: 0; box-shadow: 0 0 0 3px color-mix(in srgb, var(--cat) 22%, transparent); }
.ms-chip:not(.on) .ms-dot { opacity: 0.35; }
.ms-new { display: inline-flex; align-items: center; gap: 7px; padding: 0 18px; align-self: stretch; background: var(--accent-wash); border: 1.5px dashed var(--accent-ring); border-radius: var(--radius-lg); cursor: pointer; font-weight: var(--fw-bold); font-size: var(--fs-small); color: var(--accent); flex-shrink: 0; transition: all var(--dur-fast) var(--ease-standard); }
.ms-new:hover { background: color-mix(in srgb, var(--accent) 14%, #fff); }
.ms-new .ic { width: 16px; height: 16px; }

/* executive picker (mission composer) */
.exec-pick { flex-direction: column; gap: 8px; }
.exec-pick button { display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px 13px; text-align: left; }
.ep-av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: var(--fw-bold); font-size: 11px; font-family: var(--font-display); flex-shrink: 0; }
.ep-meta { display: flex; flex-direction: column; line-height: 1.25; }
.ep-meta b { font-weight: var(--fw-bold); font-size: var(--fs-small); }
.ep-meta span { font-size: var(--fs-micro); color: var(--fg-3); }
.exec-pick button[aria-pressed="true"] .ep-meta span { color: color-mix(in srgb, var(--accent) 70%, var(--fg-3)); }

/* discussion */
.comp-discussion .section-head { margin-bottom: 16px; }
.comp-discussion .section-head h2 { font-size: 22px; display: flex; align-items: center; gap: 10px; }
.disc-ic { width: 20px; height: 20px; color: var(--accent); }
.comp-discussion .cthread { background: linear-gradient(180deg, #fdfaf4 0%, #f6efe2 100%); border: 1px solid rgba(150,118,76,0.24); border-radius: var(--radius-lg); padding: 18px; }
.exec-banner { display: flex; align-items: center; gap: 9px; background: var(--accent-wash); border: 1px solid var(--accent-ring); border-radius: var(--radius-md); padding: 11px 14px; font-size: var(--fs-small); color: var(--fg-1); margin-bottom: 14px; }
.exec-banner .ic { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }
.cmt-team { color: var(--fg-3); }
.cmt .cmt-meta b + .cmt-team::before { content: "· "; }

/* aside panels */
.comp-aside .panel { background: linear-gradient(180deg, #fdfaf4 0%, #f6efe2 100%); border: 1px solid rgba(150,118,76,0.24); }
.tag.exec { background: var(--accent); color: #fff; }
.from-leadership .fl-body { padding: 16px 18px 18px; }
.fl-poster { display: flex; align-items: center; gap: 11px; padding-bottom: 14px; border-bottom: 1px solid rgba(150,118,76,0.18); margin-bottom: 14px; }
.fl-poster .av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: var(--fw-bold); font-size: 13px; font-family: var(--font-display); }
.fl-poster .nm { font-weight: var(--fw-bold); font-size: var(--fs-small); }
.fl-poster .tm { font-size: var(--fs-micro); color: var(--fg-3); }
.fl-rows { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.fl-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: var(--fs-small); }
.fl-row .k { display: inline-flex; align-items: center; gap: 7px; color: var(--fg-3); }
.fl-row .k .ic { width: 14px; height: 14px; }
.fl-row .v { font-weight: var(--fw-semibold); text-align: right; }
.fl-how { background: rgba(120,90,50,0.05); border-radius: var(--radius-md); padding: 14px 16px; }
.fl-how b { font-size: var(--fs-small); display: block; margin-bottom: 8px; }
.fl-how ol { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-small); color: var(--fg-2); line-height: var(--lh-snug); }

/* mission composer (modal reuses .modal/.field vocabulary) */
.mc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn-block { width: 100%; justify-content: center; margin-top: 4px; }

/* past missions */
.past-missions .pm-item { display: flex; gap: 12px; padding: 14px 18px; border-bottom: 1px solid rgba(150,118,76,0.16); }
.past-missions .pm-item:last-child { border-bottom: none; }
.pm-no { width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; display: grid; place-items: center; background: rgba(120,90,50,0.1); color: var(--fg-2); font-family: var(--font-display); font-weight: 800; font-size: 13px; }
.pm-main { min-width: 0; }
.pm-title { font-weight: var(--fw-bold); font-size: var(--fs-small); }
.pm-win { display: flex; align-items: center; gap: 6px; font-size: var(--fs-micro); color: var(--fg-2); margin: 3px 0; line-height: var(--lh-snug); }
.pm-win .ic { width: 13px; height: 13px; color: var(--accent); flex-shrink: 0; }
.pm-meta { font-size: var(--fs-micro); color: var(--fg-3); }
.pm-empty { padding: 16px 18px 18px; font-size: var(--fs-small); color: var(--fg-3); line-height: var(--lh-body); }

/* oauth login page */
.login-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(70% 50% at 16% -6%, rgba(255,106,0,0.18) 0%, transparent 55%),
    radial-gradient(130% 80% at 50% 122%, rgba(255,106,0,0.20) 0%, rgba(255,106,0,0.05) 34%, transparent 62%),
    linear-gradient(180deg, #161618 0%, #050505 82%);
}
/* coliseum arcade along the bottom + fine dot-grid texture, fading upward */
.login-page::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='60'%20height='96'%20viewBox='0%200%2060%2096'%3E%3Cg%20fill='none'%20stroke='%23ffb27a'%20stroke-width='2'%20stroke-opacity='0.5'%3E%3Cline%20x1='0'%20y1='28'%20x2='60'%20y2='28'%20stroke-opacity='0.28'/%3E%3Cpath%20d='M8%2096%20L8%2058%20A22%2022%200%200%201%2052%2058%20L52%2096'/%3E%3Cline%20x1='30'%20y1='38'%20x2='30'%20y2='52'%20stroke-opacity='0.32'/%3E%3C/g%3E%3C/svg%3E"),
    radial-gradient(circle at center, rgba(255,255,255,0.05) 1px, transparent 1.4px);
  background-repeat: repeat-x, repeat;
  background-position: bottom center, top left;
  background-size: 80px 120px, 24px 24px;
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,0.35) 60%, transparent 100%);
  mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,0.35) 60%, transparent 100%);
}
.login-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 440px);
  gap: 48px;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 28px;
}
.login-shell--center { display: grid; place-items: center; }
.login-loading { color: #fff; font-size: var(--fs-body); }
.login-hero { color: #fff; padding: 12px 8px; }
.login-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.login-logo { height: 30px; width: auto; display: block; }
.login-word {
  font-family: var(--font-display); font-weight: 800; font-style: italic;
  font-size: 32px; letter-spacing: -0.02em;
}
.login-sep { width: 1px; height: 24px; background: rgba(255,255,255,0.28); }
.login-product {
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  letter-spacing: var(--tracking-wide); text-transform: uppercase;
  color: rgba(255,255,255,0.78); display: flex; align-items: center; gap: 7px;
}
.login-glyph { color: var(--spigen-orange); font-size: 17px; }
.login-hero-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.08;
  margin: 0 0 14px;
  max-width: 18ch;
  color: var(--spigen-orange);
}
.login-hero-copy {
  margin: 0 0 22px;
  max-width: 42ch;
  color: rgba(255,255,255,0.78);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
}
.login-bullets {
  margin: 0;
  padding-left: 18px;
  color: rgba(255,255,255,0.68);
  font-size: var(--fs-small);
  line-height: 1.7;
}
.login-panel { display: flex; flex-direction: column; gap: 14px; }
.login-card { width: 100%; }
.login-card h2 { font-size: 24px; margin: 8px 0 10px; }
.login-foot {
  margin: 0;
  text-align: center;
  font-size: var(--fs-micro);
  color: rgba(255,255,255,0.5);
}
.oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 13px 18px;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(150,118,76,0.28);
  background: #fff;
  font-weight: var(--fw-semibold);
  font-size: var(--fs-small);
  color: var(--ink);
  transition: transform var(--dur-fast) var(--ease-standard), box-shadow var(--dur-fast) var(--ease-standard);
}
.oauth-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(60,40,10,0.1);
}
.oauth-btn:disabled { opacity: 0.65; cursor: not-allowed; }
.oauth-icon { width: 20px; height: 20px; flex-shrink: 0; }
.oauth-google-wrap { min-height: 44px; }
.auth-hint {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted, #6b7280);
}
.auth-hint code {
  font-size: 0.72rem;
  word-break: break-all;
}
.btn-block { width: 100%; justify-content: center; }
.field-label {
  display: block;
  font-size: var(--fs-micro);
  font-weight: var(--fw-semibold);
  color: var(--fg-3);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}
.auth-card code {
  font-size: 0.92em;
  background: rgba(120,90,50,0.08);
  padding: 1px 5px;
  border-radius: 4px;
}
@media (max-width: 860px) {
  .login-shell {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 18px 40px;
  }
  .login-hero { text-align: center; }
  .login-brand, .login-bullets { justify-content: center; }
  .login-hero-title, .login-hero-copy { margin-left: auto; margin-right: auto; }
  .login-bullets { display: inline-block; text-align: left; }
}

/* auth gate + supabase banners */
.auth-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background: linear-gradient(180deg, #fdfaf4 0%, #f0e6d4 100%);
}
.auth-card {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid rgba(150,118,76,0.24);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: 0 18px 48px rgba(60,40,10,0.08);
}
.auth-card h1 { font-size: 26px; margin: 8px 0 10px; }
.auth-card p { color: var(--fg-2); font-size: var(--fs-small); line-height: var(--lh-body); margin-bottom: 20px; }
.auth-google { width: 100%; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--fg-3); font-size: var(--fs-micro); }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: rgba(150,118,76,0.22); }
.auth-email { display: flex; flex-direction: column; gap: 10px; }
.auth-email input {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid rgba(150,118,76,0.28);
  border-radius: var(--radius-md);
  font-size: var(--fs-small);
}
.auth-error {
  background: #fff0f0;
  border: 1px solid #f0b4b4;
  color: #8a2020;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  font-size: var(--fs-small);
  margin-bottom: 14px;
}
.auth-sent { font-size: var(--fs-small); color: var(--fg-2); }
.strip { position: relative; }
.strip-signout {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 11px;
  cursor: pointer;
}
.strip-signout:hover { background: rgba(255,255,255,0.08); }
.db-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: #fff4e8;
  border-bottom: 1px solid rgba(255,106,0,0.25);
  color: #6a3a00;
  font-size: var(--fs-small);
}
.db-banner button {
  background: transparent;
  border: 1px solid rgba(106,58,0,0.25);
  border-radius: var(--radius-md);
  padding: 4px 10px;
  font-size: var(--fs-micro);
  cursor: pointer;
}

/* ---------- Guide / points page ---------- */
.guide-section { margin-bottom: 40px; }
.guide-section .section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.guide-section .section-head h2 { display: flex; align-items: center; gap: 10px; font-size: 20px; margin: 0; }
.guide-section .section-head h2 .ic { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }
.guide-section > .muted { margin: 0 0 16px; max-width: 70ch; }

.guide-steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.gs-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid rgba(150,118,76,0.2);
  border-radius: var(--radius-lg, 14px);
  padding: 16px 18px;
}
.gs-ic {
  width: 40px; height: 40px; flex-shrink: 0;
  border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,106,0,0.1); color: var(--accent);
}
.gs-ic .ic { width: 22px; height: 22px; }
.gs-t { font-weight: 700; font-size: 15px; margin-bottom: 3px; }
.gs-d { color: var(--gray-600); font-size: var(--fs-small); line-height: var(--lh-body, 1.55); }
.guide-sublist {
  margin: 10px 0 0; padding-left: 1.1rem;
  color: var(--gray-600); font-size: var(--fs-small); line-height: 1.55;
}
.guide-sublist li { margin-bottom: 4px; }

.guide-panel {
  background: #fff;
  border: 1px solid rgba(150,118,76,0.2);
  border-radius: var(--radius-lg, 14px);
  padding: 18px 20px;
}
.guide-panel .muted { margin: 0 0 12px; max-width: none; color: var(--fg-2); }
.guide-panel .muted:last-child { margin-bottom: 0; }
.guide-panel .muted strong { color: var(--fg-1); }
.guide-panel .guide-list { margin: 4px 0 0; max-width: none; color: var(--gray-600); }

.guide-list {
  margin: 8px 0 0; padding-left: 1.25rem; max-width: 70ch;
  color: var(--fg-2, #555); font-size: var(--fs-small); line-height: 1.55;
}
.guide-list li { margin-bottom: 6px; }

.guide-points { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px; }
.gp-card {
  display: flex; align-items: center; gap: 14px;
  background: #fff;
  border: 1px solid rgba(150,118,76,0.2);
  border-radius: var(--radius-lg, 14px);
  padding: 16px 18px;
}
.gp-ic {
  width: 38px; height: 38px; flex-shrink: 0;
  border-radius: 10px; display: grid; place-items: center;
  background: rgba(255,106,0,0.1); color: var(--accent);
}
.gp-ic .ic { width: 20px; height: 20px; }
.gp-body { flex: 1; min-width: 0; }
.gp-label { font-weight: 700; font-size: 15px; }
.gp-note { color: var(--gray-600); font-size: var(--fs-micro); line-height: 1.45; margin-top: 2px; }
.gp-pts {
  flex-shrink: 0; font-family: var(--font-display); font-weight: 800;
  font-size: 18px; color: var(--accent); white-space: nowrap;
}
.guide-note { margin: 14px 0 0; font-size: var(--fs-micro); }

.guide-ladder { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 4px; }
.gl-rung {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  background: #fff;
  border: 1px solid rgba(150,118,76,0.2);
  border-top: 3px solid var(--tier, var(--accent));
  border-radius: var(--radius-lg, 14px);
  padding: 16px 10px;
}
.gl-gem { color: var(--tier, var(--accent)); }
.gl-gem .ic { width: 30px; height: 30px; }
.gl-name { font-weight: 700; font-size: 14px; }
.gl-min { color: var(--gray-600); font-size: var(--fs-micro); }

@media (max-width: 760px) {
  .guide-points { grid-template-columns: 1fr; }
  .guide-ladder { grid-template-columns: repeat(2, 1fr); }
}
