/* Internal City Awards 2026 - navy velvet, gold and silver, like the poster */
:root {
  --bg: #03071a;
  --bg2: #071036;
  --panel: rgba(9, 18, 56, .72);
  --panel-solid: #0a1440;
  --line: rgba(233, 185, 73, .35);
  --blue: #2f6bff;
  --blue-glow: #4fa3ff;
  --gold: #f0c35a;
  --gold-deep: #b9862a;
  --silver: #dfe6f2;
  --text: #e8ecf7;
  --muted: #9aa6c7;
  --danger: #ff6b7a;
  --ok: #57e0a0;
  --radius: 14px;
  --serif: "Cinzel", "Trajan Pro", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.55;
}
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ---- stage backdrop: velvet curtains, spotlights, sparkle ---- */
.backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background:
    radial-gradient(ellipse 45% 55% at 20% -5%, rgba(255, 214, 140, .20), transparent 70%),
    radial-gradient(ellipse 45% 55% at 80% -5%, rgba(255, 214, 140, .20), transparent 70%),
    radial-gradient(ellipse 80% 50% at 50% 110%, rgba(47, 107, 255, .25), transparent 70%),
    linear-gradient(180deg, #02040f 0%, var(--bg2) 55%, #02040f 100%);
}
.backdrop::before, .backdrop::after { content: ""; position: absolute; top: 0; bottom: 0; width: 16vw; max-width: 240px;
  background: repeating-linear-gradient(90deg, #06104a 0 18px, #1638b8 26px, #0a1a6a 34px, #040a30 46px);
  filter: saturate(1.2) brightness(.9);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 100%);
  opacity: .75;
}
.backdrop::before { left: 0; border-bottom-right-radius: 100% 30%; }
.backdrop::after { right: 0; border-bottom-left-radius: 100% 30%; }
.sparkles span { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #ffe39a;
  box-shadow: 0 0 8px 2px rgba(255, 210, 110, .8); opacity: 0; animation: twinkle 4s infinite ease-in-out; }
@keyframes twinkle { 0%,100% { opacity: 0; transform: scale(.4); } 50% { opacity: .95; transform: scale(1); } }

/* ---- layout ---- */
.wrap { width: min(1120px, 92vw); margin: 0 auto; }
header.nav { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(3,7,26,.92), rgba(3,7,26,.6)); border-bottom: 1px solid rgba(233,185,73,.18); }
header.nav .wrap { display: flex; align-items: center; gap: 22px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; color: var(--silver); letter-spacing: .06em; }
.brand img { width: 38px; height: auto; }
.brand b { color: var(--gold); font-weight: 700; }
nav.links { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
nav.links a { color: var(--muted); padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: 15px; }
nav.links a:hover, nav.links a.active { color: var(--text); background: rgba(47,107,255,.15); text-decoration: none; }
.who { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.who img { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--gold-deep); }
main { padding: 36px 0 80px; }
footer { border-top: 1px solid rgba(233,185,73,.15); color: var(--muted); font-size: 13px; padding: 28px 0 40px; text-align: center; }

/* ---- type ---- */
.serif { font-family: var(--serif); }
.metal-silver { background: linear-gradient(180deg, #ffffff 0%, #c9d2e3 45%, #8d98b0 55%, #eef2fa 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.metal-gold { background: linear-gradient(180deg, #fff1bf 0%, #f5c85a 40%, #b47f1f 60%, #ffd77a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
h1, h2, h3 { font-family: var(--serif); letter-spacing: .03em; line-height: 1.15; }
h2.section { text-align: center; font-size: clamp(24px, 3.4vw, 36px); margin: 64px 0 8px; }
.sub { text-align: center; color: var(--muted); margin: 0 auto 28px; max-width: 640px; }
.divider { display: flex; align-items: center; gap: 14px; justify-content: center; color: var(--gold); margin: 14px auto; }
.divider::before, .divider::after { content: ""; height: 1px; width: min(180px, 22vw); background: linear-gradient(90deg, transparent, var(--gold)); }
.divider::after { transform: scaleX(-1); }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; font: 600 15px var(--sans);
  padding: 12px 22px; border-radius: 999px; color: #1b1203; text-decoration: none !important;
  background: linear-gradient(180deg, #ffe08a, #e2a93a 55%, #c48a24); box-shadow: 0 6px 24px rgba(240,195,90,.25), inset 0 1px 0 rgba(255,255,255,.6);
  transition: transform .15s, box-shadow .15s, filter .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(240,195,90,.35); }
.btn:disabled { filter: grayscale(.8) brightness(.7); cursor: not-allowed; transform: none; }
.btn.blue { color: #fff; background: linear-gradient(180deg, #5b8cff, #2a5cf0 60%, #1c45c8); box-shadow: 0 6px 24px rgba(47,107,255,.35), inset 0 1px 0 rgba(255,255,255,.35); }
.btn.ghost { color: var(--text); background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.btn.small { padding: 7px 14px; font-size: 13px; }
.btn.danger { color: #fff; background: linear-gradient(180deg, #ff7f8c, #d8394b); box-shadow: none; }
.discord-btn { background: #5865f2; color: #fff; box-shadow: 0 6px 24px rgba(88,101,242,.35); }

/* ---- hero ---- */
.hero { text-align: center; padding: 10px 0 10px; position: relative; }
.hero .emblem { width: 150px; margin: 0 auto -8px; filter: drop-shadow(0 0 30px rgba(79,163,255,.55)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px); } }
.hero h1 { margin: 0; font-size: clamp(44px, 9vw, 104px); font-weight: 900; letter-spacing: .04em; filter: drop-shadow(0 4px 18px rgba(0,0,0,.6)); }
.hero h1 .l2 { display: block; font-size: .62em; margin-top: -.08em; }
.hero .year { font-family: var(--serif); letter-spacing: .5em; color: var(--silver); font-size: 15px; margin-top: 8px; padding-left: .5em; }
.hero .tag { max-width: 700px; margin: 18px auto 0; color: #c8d1ea; font-size: 18px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* ---- countdown ---- */
.count-card { margin: 38px auto 0; max-width: 760px; padding: 26px 22px 22px; text-align: center;
  background: linear-gradient(180deg, rgba(10,20,64,.9), rgba(4,9,32,.9)); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 20px 60px rgba(0,0,0,.5), inset 0 0 40px rgba(47,107,255,.12); position: relative; }
.count-card::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(233,185,73,.15); border-radius: 14px; pointer-events: none; }
.count-label { font-family: var(--serif); letter-spacing: .35em; text-transform: uppercase; font-size: 14px; color: var(--silver); }
.countdown { display: flex; justify-content: center; gap: clamp(8px, 2.4vw, 22px); margin: 14px 0 6px; }
.countdown .u { min-width: clamp(64px, 14vw, 110px); }
.countdown .n { font-family: var(--serif); font-weight: 700; font-size: clamp(36px, 7vw, 64px); line-height: 1;
  color: #e9f3ff; text-shadow: 0 0 22px rgba(79,163,255,.75); font-variant-numeric: tabular-nums; }
.countdown .t { font-size: 11px; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.count-note { color: var(--muted); font-size: 14px; }

.dates { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 22px; }
.date { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid rgba(233,185,73,.25); }
.date .ic { font-size: 28px; }
.date b { display: block; font-family: var(--serif); font-size: 20px; color: var(--gold); letter-spacing: .04em; }
.date span { color: var(--muted); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; }
.date.now { border-color: var(--blue-glow); box-shadow: 0 0 24px rgba(79,163,255,.25); }

/* ---- category grid ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.cat { padding: 22px 20px; border-radius: var(--radius); position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(20,40,120,.55), rgba(6,12,40,.85)); border: 1px solid rgba(255,255,255,.08);
  transition: transform .2s, border-color .2s, box-shadow .2s; }
.cat:hover { transform: translateY(-3px); border-color: var(--line); box-shadow: 0 12px 34px rgba(0,0,0,.45), 0 0 30px rgba(240,195,90,.12); }
.cat .emoji { font-size: 34px; }
.cat h3 { margin: 10px 0 6px; font-size: 19px; color: var(--silver); }
.cat p { margin: 0; color: var(--muted); font-size: 14px; }
.cat.mystery { border-style: dashed; border-color: rgba(233,185,73,.4); display: flex; flex-direction: column; justify-content: center; text-align: center; }
.cat.mystery .emoji { font-size: 44px; animation: float 4s ease-in-out infinite; }
.pill { display: inline-block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px;
  background: rgba(240,195,90,.14); color: var(--gold); border: 1px solid rgba(240,195,90,.35); }
.pill.blue { background: rgba(79,163,255,.12); color: #9cc8ff; border-color: rgba(79,163,255,.4); }
.pill.grey { background: rgba(255,255,255,.06); color: var(--muted); border-color: rgba(255,255,255,.15); }
.pill.red { background: rgba(255,107,122,.12); color: var(--danger); border-color: rgba(255,107,122,.4); }

.intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: 34px; align-items: center; margin-top: 70px; }
.intro .poster { border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 60px rgba(47,107,255,.2); }
.intro ul { list-style: none; padding: 0; margin: 16px 0; }
.intro li { padding: 6px 0 6px 28px; position: relative; color: #cfd7ee; }
.intro li::before { content: "★"; position: absolute; left: 0; color: var(--gold); }
.big-q { font-family: var(--serif); font-size: 22px; line-height: 1.5; color: var(--silver); margin-top: 18px; }
.big-q span { display: block; }
.big-q span:nth-child(2) { color: var(--gold); }
@media (max-width: 820px) { .intro { grid-template-columns: 1fr; } }

/* ---- panels / forms ---- */
.panel { background: var(--panel); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 22px; }
.gate { text-align: center; padding: 46px 24px; max-width: 640px; margin: 0 auto; }
.gate h2 { margin-top: 0; }
.page-head { text-align: center; margin-bottom: 30px; }
.page-head h1 { font-size: clamp(30px, 5vw, 48px); margin: 0; }
.progress { height: 8px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; max-width: 420px; margin: 14px auto 6px; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--gold)); transition: width .4s; }
input, textarea, select { width: 100%; font: 15px var(--sans); color: var(--text); background: rgba(2,6,24,.75);
  border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 11px 13px; outline: none; }
input:focus, textarea:focus, select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(240,195,90,.15); }
textarea { resize: vertical; min-height: 64px; }
label { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 6px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row > * { flex: 1; }
.row > .btn, .row > .shrink { flex: 0 0 auto; }

.cat-block { margin-bottom: 18px; }
.cat-block .head { display: flex; align-items: center; gap: 14px; }
.cat-block .head .emoji { font-size: 30px; }
.cat-block .head h3 { margin: 0; font-size: 21px; }
.cat-block .head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.cat-block .head .state { margin-left: auto; }

.search { position: relative; }
.results-dd { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 10; background: var(--panel-solid);
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: none; max-height: 300px; overflow-y: auto; }
.results-dd.open { display: block; }
.results-dd button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; background: none; color: var(--text); cursor: pointer; text-align: left; font: 14px var(--sans); }
.results-dd button:hover, .results-dd button.hl { background: rgba(47,107,255,.2); }
.results-dd img { width: 28px; height: 28px; border-radius: 50%; }
.results-dd small { color: var(--muted); }
.results-dd .empty { padding: 10px 12px; color: var(--muted); font-size: 14px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 6px 4px 4px; border-radius: 999px; background: rgba(240,195,90,.12); border: 1px solid rgba(240,195,90,.4); font-size: 14px; }
.chip img { width: 26px; height: 26px; border-radius: 50%; }
.chip button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1; }
.done-note { display: flex; gap: 10px; align-items: center; margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(87,224,160,.08); border: 1px solid rgba(87,224,160,.3); font-size: 14px; }
.done-note img { width: 26px; height: 26px; border-radius: 50%; }

/* ---- nominee cards (vote + ceremony) ---- */
.noms { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 16px; }
.nom { position: relative; cursor: pointer; text-align: center; padding: 16px 10px 14px; border-radius: 12px;
  background: rgba(3,8,30,.7); border: 1px solid rgba(255,255,255,.1); color: var(--text); font: inherit; transition: all .18s; }
.nom:hover { border-color: rgba(240,195,90,.5); transform: translateY(-2px); }
.nom .avs { display: flex; justify-content: center; }
.nom .avs img, .nom .avs .ph { width: 64px; height: 64px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); object-fit: cover; background: #0b1745; }
.nom .avs img + img { margin-left: -16px; }
.nom .avs .ph { display: grid; place-items: center; font-size: 28px; }
.nom .name { margin-top: 10px; font-weight: 600; font-size: 15px; word-break: break-word; }
.nom.picked { border-color: var(--gold); background: linear-gradient(180deg, rgba(240,195,90,.18), rgba(3,8,30,.8)); box-shadow: 0 0 0 1px var(--gold), 0 0 26px rgba(240,195,90,.35); }
.nom.picked::after { content: "✓ Your vote"; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); font-size: 11px; font-weight: 700;
  letter-spacing: .05em; padding: 2px 9px; border-radius: 99px; background: var(--gold); color: #1b1203; white-space: nowrap; }
.nom:disabled { cursor: default; }

/* ---- results ---- */
.result { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; padding: 22px; margin-bottom: 16px; }
.result .trophy { font-size: 46px; filter: drop-shadow(0 0 14px rgba(240,195,90,.6)); }
.result .cat-name { font-family: var(--serif); color: var(--muted); letter-spacing: .14em; text-transform: uppercase; font-size: 13px; }
.result .winner { font-family: var(--serif); font-size: 28px; margin: 4px 0; }
.result .winner img { width: 44px; height: 44px; border-radius: 50%; display: inline-block; vertical-align: middle; margin-right: 8px; border: 2px solid var(--gold); }
.result .runner { color: var(--muted); font-size: 14px; }

/* ---- toast ---- */
#toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(30px); opacity: 0; z-index: 99;
  padding: 12px 20px; border-radius: 12px; background: #0d1a52; border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0,0,0,.6);
  transition: all .25s; font-weight: 500; max-width: 90vw; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.err { border-color: var(--danger); color: #ffd3d8; }

/* ---- admin ---- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.1); }
.tabs button { background: none; border: 0; color: var(--muted); font: 600 14px var(--sans); padding: 10px 14px; cursor: pointer; border-bottom: 2px solid transparent; }
.tabs button.active { color: var(--gold); border-bottom-color: var(--gold); }
.tab { display: none; }
.tab.active { display: block; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { padding: 16px; border-radius: 12px; background: var(--panel); border: 1px solid rgba(255,255,255,.08); }
.stat b { display: block; font-family: var(--serif); font-size: 30px; color: var(--gold); }
.stat span { color: var(--muted); font-size: 13px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 9px 8px; border-bottom: 1px solid rgba(255,255,255,.07); text-align: left; vertical-align: middle; }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
td .avs { display: flex; }
td .avs img { width: 28px; height: 28px; border-radius: 50%; }
td .avs img + img { margin-left: -8px; }
.bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.08); min-width: 80px; }
.bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--blue), var(--gold)); }
details.reasons summary { cursor: pointer; color: var(--muted); font-size: 12px; }
details.reasons div { font-size: 13px; color: #cfd7ee; padding: 4px 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 820px) { .grid2 { grid-template-columns: 1fr; } }
.audit { font-size: 13px; color: var(--muted); max-height: 360px; overflow: auto; }
.audit div { padding: 4px 0; border-bottom: 1px dashed rgba(255,255,255,.06); }
.ceremony-ctrl .btn { margin: 4px 4px 4px 0; }
.check { display: flex; align-items: center; gap: 8px; margin: 10px 0; color: var(--text); font-size: 14px; }
.check input { width: auto; }

@media (max-width: 720px) {
  header.nav .wrap { height: auto; padding: 10px 0; flex-wrap: wrap; gap: 8px; }
  nav.links { order: 3; flex-basis: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .backdrop::before, .backdrop::after { width: 10vw; }
}
