/* ALT Studios Year-End Awards 2026 — charcoal, concrete and chrome. */
:root {
  --bg: #161616;
  --bg-2: #1e1e1e;
  --card: #232323;
  --card-2: #2a2a2a;
  --line: #3a3a3a;
  --text: #ececec;
  --muted: #9a9a9a;
  --white: #f4f4f4;
  --chrome: linear-gradient(180deg, #ffffff 0%, #d9d9d9 45%, #a9a9a9 100%);
  --ok: #cfe9d6;
  --warn: #f1dfb6;
  --danger: #ff8a80;
  --radius: 18px;
  --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 700px at 8% -10%, rgba(255,255,255,.10), transparent 60%),
    radial-gradient(900px 600px at 100% 120%, rgba(255,255,255,.05), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 15px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
/* Diagonal window-light shadows, like the artwork. */
.spotlight {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: repeating-linear-gradient(115deg, transparent 0 140px, rgba(0,0,0,.18) 140px 175px, transparent 175px 320px);
  mask-image: radial-gradient(900px 700px at 0% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(900px 700px at 0% 0%, #000 0%, transparent 75%);
}
/* Soft studio lights behind the content, so the glass tiles have something to frost */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(460px 340px at 14% 42%, rgba(255,255,255,.09), transparent 70%),
    radial-gradient(560px 400px at 88% 58%, rgba(255,255,255,.07), transparent 70%),
    radial-gradient(420px 300px at 52% 100%, rgba(255,255,255,.06), transparent 70%);
}
.wrap { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 48px 16px 140px; }
.wrap.wide { max-width: 1280px; padding-bottom: 80px; }
a { color: var(--white); }
code { background: #000; padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Masthead ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font: 400 22px/1 var(--display); letter-spacing: .02em; color: var(--white); }
.logo svg { width: 26px; height: 23px; }
.logo b { font-weight: 800; }
.masthead { text-align: center; margin-bottom: 28px; }
.masthead h1, .thanks h1 {
  position: relative; display: inline-block;
  margin: 22px 0 6px;
  font: italic 900 clamp(40px, 8vw, 92px)/.95 var(--display);
  text-transform: uppercase; letter-spacing: -.01em;
  background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.swoosh { position: absolute; right: -78px; bottom: -6px; width: 78px; color: var(--white); opacity: .9; }
.edition { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 10px 0 0; color: #cfcfcf; font: 500 13px/1 var(--display); letter-spacing: .55em; text-transform: uppercase; }
.edition::before, .edition::after { content: ''; width: min(110px, 14vw); height: 1px; background: #777; }

.whoami { text-align: center; color: var(--muted); margin: 0 0 18px; }
.whoami b { color: var(--white); }
.whoami a { margin-left: 8px; font-size: 13px; color: var(--muted); }

.notice { max-width: 760px; margin: 0 auto 18px; padding: 14px 18px; border: 1px solid var(--line); background: rgba(255,255,255,.04); border-radius: 12px; text-align: center; }
.notice.error { border-color: #6b3b38; background: rgba(255,138,128,.08); color: #ffd2cd; }
.notice.warn { border-color: #5d5236; background: rgba(241,223,182,.07); color: var(--warn); }
.wide .notice { max-width: none; text-align: left; }

/* ---------- Award cards ---------- */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
/* Frosted-glass tiles */
.award {
  --glass-edge: rgba(255,255,255,.14);
  display: flex; flex-direction: column;
  position: relative; isolation: isolate;
  padding: 10px;
  background:
    linear-gradient(155deg, rgba(255,255,255,.13) 0%, rgba(255,255,255,.04) 38%, rgba(255,255,255,.02) 62%, rgba(255,255,255,.06) 100%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid var(--glass-edge); border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.28),      /* lit top edge */
    inset 0 -1px 0 rgba(255,255,255,.05),
    inset 0 0 0 1px rgba(255,255,255,.02),
    0 30px 60px -30px rgba(0,0,0,.95);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
  animation: rise .6s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i) * 60ms);
}
/* Diagonal sheen across the glass; slides a little on hover */
.award::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,.10) 32%, transparent 44%);
  background-size: 250% 100%; background-position: 100% 0;
  transition: background-position .9s ease;
}
.award:hover::before { background-position: 0 0; }
.award:hover { transform: translateY(-4px); --glass-edge: rgba(255,255,255,.24); }
.award.picked {
  --glass-edge: rgba(255,255,255,.45);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.4),
    0 0 0 1px rgba(255,255,255,.12),
    0 0 40px -8px rgba(255,255,255,.18),
    0 30px 60px -30px rgba(0,0,0,.95);
}
.award:focus-within { z-index: 5; }
.trophy {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  border-radius: calc(var(--radius) - 8px);
}
.trophy img {
  width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease;
  /* fade the photo's bottom edge into the glass */
  -webkit-mask-image: linear-gradient(#000 70%, transparent 100%);
  mask-image: linear-gradient(#000 70%, transparent 100%);
}
.award:hover .trophy img { transform: scale(1.03); }
.award.picked .trophy::before {
  content: '✓'; position: absolute; z-index: 2; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--white); color: #111; font-weight: 800;
}
.award-body { display: flex; flex-direction: column; flex: 1; padding: 14px 10px 10px; position: relative; text-align: center; }
.award h2 { text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.award h2 { margin: 0 0 6px; font: 800 19px/1.2 var(--display); text-transform: uppercase; letter-spacing: .02em; color: var(--white); }
.award p { margin: 0 0 18px; color: #bdbdbd; font-size: 14px; flex: 1; }

.pick select {
  width: 100%; appearance: none; -webkit-appearance: none;
  padding: 14px 44px 14px 16px; border-radius: 12px;
  background: #111 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23eee' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat right 16px center;
  border: 1px solid #444; color: var(--white); font: 600 15px var(--body); cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.pick select:hover { border-color: #777; }
.pick select:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.pick select:invalid { color: var(--muted); }
.pick select option { color: #111; background: #fff; }

/* Type-to-search name picker (replaces the select once JS loads) */
.combo { position: relative; text-align: left; }
.combo-input {
  width: 100%; padding: 14px 44px 14px 16px; border-radius: 12px;
  background: rgba(0,0,0,.38); border: 1px solid rgba(255,255,255,.16); color: var(--white); font: 600 15px var(--body);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.4);
  transition: border-color .2s;
}
.combo-input::placeholder { color: var(--muted); font-weight: 500; }
.combo-input:hover { border-color: #777; }
.combo-input:focus { outline: none; border-color: var(--white); box-shadow: 0 0 0 3px rgba(255,255,255,.12); }
.combo-toggle {
  position: absolute; top: 0; right: 0; width: 44px; height: 100%; border: 0; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23eee' stroke-width='2' fill='none'/%3E%3C/svg%3E") no-repeat center;
  transition: transform .2s;
}
.combo.open .combo-toggle { transform: rotate(180deg); }
.combo-list {
  position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px);
  max-height: 264px; overflow-y: auto; margin: 0; padding: 6px; list-style: none;
  background: rgba(22,22,22,.82); border: 1px solid rgba(255,255,255,.16); border-radius: 12px;
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 24px 48px -12px rgba(0,0,0,.9);
}
.combo.up .combo-list { top: auto; bottom: calc(100% + 6px); }
.combo-list li { padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: 15px; color: #e6e6e6; }
.combo-list li.active { background: #2e2e2e; color: var(--white); }
.combo-list li[aria-selected="true"] { font-weight: 700; }
.combo-list li[aria-selected="true"]::after { content: ' ✓'; color: var(--muted); }
.combo-list li.combo-empty { cursor: default; color: var(--muted); font-style: italic; }
.combo-list mark { background: none; color: var(--white); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Submit bar ---------- */
.submitbar {
  position: fixed; z-index: 10; left: 50%; bottom: 18px; transform: translateX(-50%);
  width: min(720px, calc(100% - 32px));
  display: flex; align-items: center; gap: 18px; padding: 12px 12px 12px 22px;
  background: rgba(18,18,18,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid #3a3a3a; border-radius: 999px; box-shadow: 0 20px 50px -10px rgba(0,0,0,.8);
}
.progress { flex: 1; font-size: 13px; color: var(--muted); }
.progress span { color: var(--white); font-weight: 700; }
.bar { height: 4px; margin-top: 6px; background: #333; border-radius: 4px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--chrome); transition: width .35s ease; }

.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none;
  padding: 14px 26px; border-radius: 999px;
  background: var(--chrome); color: #111;
  font: 800 14px/1 var(--display); letter-spacing: .08em; text-transform: uppercase;
  transition: transform .15s ease, opacity .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -8px rgba(255,255,255,.35); }
.btn:disabled { opacity: .45; cursor: default; transform: none; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--white); border: 1px solid #555; }
.submitbar .btn { opacity: .6; }
.submitbar .btn.ready { opacity: 1; }

/* ---------- Thanks / messages ---------- */
body.center .wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-bottom: 48px; }
.thanks-crown { width: 220px; margin: 28px 0 0; border-radius: 20px; mask-image: radial-gradient(closest-side, #000 70%, transparent); -webkit-mask-image: radial-gradient(closest-side, #000 70%, transparent); animation: pop .8s cubic-bezier(.2,1.4,.4,1) both; }
.thanks h1 { margin-top: 12px; font-size: clamp(40px, 7vw, 76px); }
.thanks .lead { max-width: 520px; margin: 26px auto 8px; font-size: 18px; color: #dedede; }
.thanks .muted { max-width: 460px; }
.msg-h { font: italic 800 28px var(--display); text-transform: uppercase; color: var(--white); margin: 24px 0 0; }

/* ---------- Admin ---------- */
.admin-head { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; margin-bottom: 28px; }
.admin-head h1 { margin: 0; font: italic 900 clamp(32px, 5vw, 52px)/1 var(--display); text-transform: uppercase; background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent; }
.admin-head .edition { justify-content: flex-start; letter-spacing: .4em; font-size: 11px; }
.admin-head .edition::before { display: none; }
.stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 18px; }
.stat { padding: 18px 20px; background: var(--card); border: 1px solid #303030; border-radius: 14px; }
.stat b { display: block; font: 800 34px/1 var(--display); color: var(--white); }
.stat b small { font-size: 18px; color: var(--muted); }
.stat span { color: var(--muted); font-size: 13px; }
.mail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 36px; }
.mail-actions form { margin: 0; }
.section-h { font: 800 15px var(--display); text-transform: uppercase; letter-spacing: .2em; color: #cfcfcf; margin: 40px 0 14px; }
.boards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.board { display: flex; gap: 14px; padding: 14px; background: var(--card); border: 1px solid #303030; border-radius: 14px; }
.board > img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; flex: none; }
.board > div { flex: 1; min-width: 0; }
.board h3 { margin: 2px 0 8px; font: 800 14px var(--display); text-transform: uppercase; letter-spacing: .04em; color: var(--white); }
.board ol { list-style: none; margin: 0; padding: 0; }
.board li { display: grid; grid-template-columns: 18px minmax(0, 1fr) 70px 24px; gap: 8px; align-items: center; padding: 4px 0; font-size: 13.5px; }
.board li.empty { display: block; color: var(--muted); }
.board li:first-child .nm { color: var(--white); font-weight: 700; }
.board .rank { color: var(--muted); font-size: 12px; }
.board .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board .meter { height: 6px; background: #333; border-radius: 6px; overflow: hidden; }
.board .meter i { display: block; height: 100%; background: var(--chrome); }
.board li b { text-align: right; }
.tablewrap { overflow-x: auto; border: 1px solid #303030; border-radius: 14px; }
table.people { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
.people th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; background: #1c1c1c; }
.people th, .people td { padding: 12px 14px; border-bottom: 1px solid #2c2c2c; vertical-align: top; }
.people tr:last-child td { border-bottom: 0; }
.people .muted { font-size: 12.5px; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #3a2b2b; color: #ffcfc9; }
.pill.ok { background: #233528; color: var(--ok); }
.actions { white-space: nowrap; text-align: right; }
.actions form { display: inline; }
.link { background: none; border: 0; padding: 0 0 0 12px; color: var(--white); font: 600 13px var(--body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link.danger { color: var(--danger); }
.import textarea { width: 100%; padding: 14px; border-radius: 12px; background: #111; border: 1px solid #444; color: var(--white); font: 14px/1.5 ui-monospace, Menlo, monospace; margin: 4px 0 12px; }

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.7) rotate(-6deg); } to { opacity: 1; transform: none; } }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.award.shake { animation: shake .4s ease; border-color: var(--danger); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

@media (max-width: 600px) {
  .wrap { padding-top: 32px; }
  .swoosh { display: none; }
  .edition { letter-spacing: .35em; font-size: 11px; }
  .submitbar { gap: 12px; padding-left: 16px; }
  .btn { padding: 13px 18px; }
  .boards { grid-template-columns: 1fr; }
}
