:root {
  /* The mark of this style sheet: boot.js looks for it to know that the file arrived and is in use. */
  --css-main: 1;
  --bg: #0c0e12;
  --bg2: #11141a;
  --card: #161a21;
  --card2: #1b2029;
  --line: #262c37;
  --line2: #323a47;
  --text: #ebe8e3;
  --muted: #9198a3;
  --red: #d6402b;
  --red2: #b2321f;
  --redsoft: rgba(214, 64, 43, .14);
  --gold: #e3b04b;
  --silver: #c3cbd6;
  --bronze: #c98a56;
  --green: #4cbb7f;
  --greensoft: rgba(76, 187, 127, .14);
  --blue: #5aa7e6;
  --bluesoft: rgba(90, 167, 230, .14);
  --amber: #e6a23c;
  --ambersoft: rgba(230, 162, 60, .14);
  --radius: 12px;
  --head: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 var(--body); min-height: 100vh; display: flex; flex-direction: column; }
a { color: #f08a72; }
a:hover { color: #ffad99; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 600; letter-spacing: .01em; margin: 0; line-height: 1.15; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
.mono { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: .92em; }
.break { word-break: break-all; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.pad { padding: 12px 16px; }
.grow { flex: 1; min-width: 0; }
.grow b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }

/* header */
.top { position: sticky; top: 0; z-index: 30; background: rgba(12, 14, 18, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1180px; margin: 0 auto; padding: 0 16px; height: 60px; display: flex; align-items: center; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 22px var(--head); letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.brand:hover { color: var(--text); }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 500; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.nav a:hover { color: var(--text); background: var(--card); }
.nav a.on { color: var(--text); background: var(--card2); box-shadow: inset 0 -2px 0 var(--red); }
.top-right { display: flex; align-items: center; gap: 8px; }
.me-link { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; padding: 4px 10px 4px 4px; border-radius: 99px; border: 1px solid var(--line); }
.me-link:hover { color: var(--text); border-color: var(--line2); }
.me-name { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.bell { position: relative; background: none; border: 1px solid var(--line); border-radius: 99px; width: 40px; height: 40px; cursor: pointer; }
.bell:hover { border-color: var(--line2); }
.bell .count { position: absolute; top: -4px; right: -4px; }
.count { background: var(--red); color: #fff; border-radius: 99px; font-size: 11px; font-weight: 600; min-width: 18px; height: 18px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.demo-bar { background: var(--ambersoft); color: #f3c47a; text-align: center; font-size: 14px; padding: 6px 16px; border-bottom: 1px solid rgba(230, 162, 60, .25); }

/* layout */
.wrap { max-width: 1180px; width: 100%; margin: 0 auto; padding: 22px 16px 40px; flex: 1; }
.view { margin-top: 22px; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wrapflex { flex-wrap: wrap; }
.section-title { font-size: 26px; }

/* panel */
.panel { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; padding: 30px; border-radius: 16px; border: 1px solid var(--line); overflow: hidden;
  background: radial-gradient(120% 140% at 0% 0%, rgba(214, 64, 43, .22), transparent 55%), linear-gradient(160deg, #191c23, #121419 70%); }
.panel::after { content: ''; position: absolute; inset: auto -60px -80px auto; width: 300px; height: 300px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .04); pointer-events: none; }
.panel.phase-reservation { background: radial-gradient(120% 140% at 0% 0%, rgba(214, 64, 43, .34), transparent 55%), linear-gradient(160deg, #1d1a1c, #121419 70%); border-color: rgba(214, 64, 43, .45); }
.panel.phase-full, .panel.phase-cancelled { background: radial-gradient(120% 140% at 0% 0%, rgba(145, 152, 163, .16), transparent 55%), linear-gradient(160deg, #191c23, #121419 70%); }
.panel.phase-live { background: radial-gradient(120% 140% at 0% 0%, rgba(76, 187, 127, .18), transparent 55%), linear-gradient(160deg, #171c1b, #121419 70%); }
.panel.phase-results { background: radial-gradient(120% 140% at 0% 0%, rgba(227, 176, 75, .2), transparent 55%), linear-gradient(160deg, #1c1b17, #121419 70%); }
.panel-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.eyebrow { color: var(--muted); font-size: 14px; letter-spacing: .04em; text-transform: uppercase; font-weight: 500; }
.panel h1 { font-size: 44px; font-weight: 700; text-transform: uppercase; letter-spacing: .01em; }
.phase-live h1::before { content: ''; display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--green); margin-right: 12px; vertical-align: middle; box-shadow: 0 0 0 0 rgba(76, 187, 127, .7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(76, 187, 127, 0); } 100% { box-shadow: 0 0 0 0 rgba(76, 187, 127, 0); } }
.lead { font-size: 18px; color: #d6d2cc; max-width: 560px; }
.notes { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 15px; }
.notes .iclock { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; }
.panel-me { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; color: #d6d2cc; }
.panel-side { display: flex; flex-direction: column; justify-content: center; gap: 10px; min-width: 0; }
.clock-label { color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: .06em; font-weight: 500; }
.clock { display: flex; gap: 10px; }
.cbox { flex: 1; max-width: 104px; background: rgba(0, 0, 0, .32); border: 1px solid var(--line2); border-radius: 10px; padding: 10px 6px 8px; text-align: center; }
.cbox b { display: block; font: 700 46px/1 var(--head); font-variant-numeric: tabular-nums; }
.cbox small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.clock-at { color: var(--muted); font-size: 14px; }
.seats { margin-top: 8px; }
.seats-top { display: flex; justify-content: space-between; font-size: 15px; color: var(--muted); }
.seats-top b { color: var(--text); font: 700 20px var(--head); }
.bar { height: 10px; border-radius: 99px; background: rgba(0, 0, 0, .35); border: 1px solid var(--line2); overflow: hidden; display: flex; margin-top: 6px; }
.bar .fill { background: linear-gradient(90deg, var(--red2), var(--red)); transition: width .4s; }
.bar .held { background: repeating-linear-gradient(45deg, rgba(230, 162, 60, .55) 0 6px, rgba(230, 162, 60, .25) 6px 12px); transition: width .4s; }
.seats-note { color: var(--amber); font-size: 13px; margin-top: 6px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line2); background: var(--card2); color: var(--text); padding: 9px 16px; border-radius: 9px; cursor: pointer; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, transform .05s; }
.btn:hover { border-color: #46505f; color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn.primary:hover { background: #e14c36; border-color: #e14c36; }
.btn.ghost { background: transparent; }
.btn.lg { padding: 13px 22px; font-size: 17px; }
.btn.sm { padding: 6px 12px; font-size: 14px; }
.btn.block { width: 100%; }
.btn.icon { padding: 6px 9px; font-size: 18px; line-height: 1; background: transparent; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .conv:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* chips */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 13px; font-weight: 600; background: var(--card2); color: var(--muted); border: 1px solid var(--line2); white-space: nowrap; }
.chip.ok { background: var(--greensoft); color: #7fd6a6; border-color: rgba(76, 187, 127, .3); }
.chip.warn { background: var(--ambersoft); color: #f0bd6e; border-color: rgba(230, 162, 60, .3); }
.chip.blue { background: var(--bluesoft); color: #8cc4f0; border-color: rgba(90, 167, 230, .3); }
.chip.red { background: var(--redsoft); color: #f08a72; border-color: rgba(214, 64, 43, .35); }
.chip.bad { background: var(--redsoft); color: #f08a72; border-color: rgba(214, 64, 43, .35); }
.chip.tiny { font-size: 11px; padding: 1px 7px; margin-left: 6px; }

/* cards and lists */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; }
.card-head { margin-bottom: 14px; }
.card-head .muted { font-size: 14px; }
.list { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--line); min-width: 0; }
.row:last-child { border-bottom: 0; }
.row.mine { background: linear-gradient(90deg, var(--redsoft), transparent 60%); border-radius: 8px; }
.me-row { border: 1px dashed var(--line2); border-radius: 10px; padding: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.me-row .actions { margin: 0; }
.seatno { width: 34px; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 14px; }
.cb-space { width: 18px; flex: none; }
.row input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--red); flex: none; }
.empty { color: var(--muted); padding: 14px 4px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 14px 0 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; min-width: 0; }
.how { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; color: #d6d2cc; }
.how b { color: var(--text); }
.prize { width: 100%; border-collapse: collapse; }
.prize td { padding: 10px 0; border-bottom: 1px solid var(--line); font: 600 22px var(--head); }
.prize td.num { text-align: right; }
.place { display: inline-block; min-width: 46px; font-family: var(--head); font-weight: 700; }
.place.p1 { color: var(--gold); }
.place.p2 { color: var(--silver); }
.place.p3 { color: var(--bronze); }

/* avatars */
.av { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; background: var(--card2); border: 1px solid var(--line2); }
.av-xs { width: 26px; height: 26px; font-size: 11px !important; }
.av-sm { width: 30px; height: 30px; font-size: 12px !important; }
.av-lg { width: 64px; height: 64px; font-size: 22px !important; }
.av-xl { width: 88px; height: 88px; font-size: 30px !important; }
.av-letters { display: inline-flex; align-items: center; justify-content: center; font: 600 14px var(--head); color: #fff; background: hsl(var(--hue, 10) 38% 32%); border-color: hsl(var(--hue, 10) 38% 42%); }
.av-support { background: var(--red2); border-color: var(--red); }
.av-match { background: #2b3442; border-color: #3a4556; font-size: 13px; }
.av-wrap { position: relative; display: inline-flex; flex: none; }
.dot { position: absolute; right: 0; bottom: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--green); border: 2px solid var(--card); }
.who { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }

/* tables */
.table-wrap { overflow-x: auto; }
.results { width: 100%; border-collapse: collapse; }
.results th { text-align: left; color: var(--muted); font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; padding: 8px 8px; border-bottom: 1px solid var(--line2); }
.results td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.results tr.mine td { background: var(--redsoft); }
.results .num { text-align: right; white-space: nowrap; }
.results td:first-child { white-space: nowrap; }
.rooms { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.room { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 14px; min-width: 0; }
.room-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }

/* forms */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.label { font-size: 14px; color: #c9c5bf; font-weight: 500; }
.help { font-size: 13px; color: var(--muted); }
/* "Confirm password": the line under the second field tells, while typing, whether both passwords are the same */
.pw-match.ok { color: var(--green); }
.pw-match.bad { color: #ffb3a3; }
.pw-pair { align-items: start; }
input, select, textarea { background: var(--bg2); border: 1px solid var(--line2); border-radius: 9px; padding: 10px 12px; width: 100%; min-width: 0; }
input:focus, select:focus, textarea:focus { border-color: #4b5565; outline: none; }
input[type=search] { max-width: 300px; }
textarea { resize: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--red); flex: none; }
.warn { background: var(--ambersoft); border: 1px solid rgba(230, 162, 60, .35); color: #f3c47a; border-radius: 9px; padding: 10px 12px; font-size: 14px; }
.form-error { background: var(--redsoft); border: 1px solid rgba(214, 64, 43, .4); color: #ffb3a3; border-radius: 9px; padding: 10px 12px; font-size: 14px; }
.optional { border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; }
.optional summary { cursor: pointer; padding: 12px 0; color: #c9c5bf; font-weight: 500; }
.optional[open] { padding-bottom: 14px; }
.optional .av-row { margin-bottom: 12px; }
.av-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ta-row { display: flex; gap: 8px; align-items: flex-start; }

/* modal */
.modal-back { position: fixed; inset: 0; z-index: 60; background: rgba(5, 6, 9, .72); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 24px; overflow-y: auto; animation: fade .15s; }
.modal { width: 100%; max-width: 460px; background: var(--card); border: 1px solid var(--line2); border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); animation: rise .18s; }
.modal.wide { max-width: 620px; }
/* The window itself takes the keyboard focus when it opens (so Tab and Enter stay inside it); no ring around the whole window. */
.modal:focus { outline: none; }
/* First moment of a page load, before the site has said how it runs. */
.loading-line { padding: 70px 0; }
/* Before the page's program runs (and while its first data is on the way): "Loading…", and after 8 seconds a
   second line that says what to do. Plain CSS, so it works even when the script files did not arrive. */
.boot { text-align: center; padding: 70px 16px; color: var(--muted); }
.boot p { margin: 0 auto 12px; max-width: 520px; }
.boot .loading-line { padding: 0; }
.boot .boot-late { opacity: 0; visibility: hidden; animation: boot-late .4s ease 8s forwards; }
.boot .boot-late a { color: var(--text); text-decoration: underline; white-space: nowrap; }
.boot .btn { margin-top: 6px; }
.boot-page { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; }
@keyframes boot-late { to { opacity: 1; visibility: visible; } }
.top-wait { padding: 8px 4px; white-space: nowrap; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 22px; }
.modal-body { padding: 20px; }
.x { background: none; border: 0; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px; }
.x:hover { color: var(--text); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } }
.rules { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; color: #d6d2cc; }

/* pay */
.pay { display: flex; flex-direction: column; gap: 14px; }
.pay-grid { display: flex; gap: 16px; align-items: flex-start; }
.qr { background: #fff; border-radius: 10px; padding: 6px; flex: none; width: 150px; height: 150px; }
.pay-fields { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.copyline { display: flex; align-items: center; gap: 8px; background: var(--bg2); border: 1px solid var(--line2); border-radius: 9px; padding: 8px 8px 8px 12px; }
.copyline .mono { flex: 1; min-width: 0; }
.hold { font-size: 15px; }
.hold .iclock { font: 700 20px var(--head); color: var(--amber); font-variant-numeric: tabular-nums; }
.pay-status { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line2); border-top-color: var(--red); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.pay-result { border-radius: 10px; padding: 16px; margin-bottom: 14px; border: 1px solid var(--line2); }
.pay-result h4 { font-size: 22px; margin-bottom: 6px; }
.pay-result.ok { background: var(--greensoft); border-color: rgba(76, 187, 127, .35); }
.pay-result.warn { background: var(--ambersoft); border-color: rgba(230, 162, 60, .35); }
.pay-result.bad { background: var(--redsoft); border-color: rgba(214, 64, 43, .4); }
.invite-modal { text-align: center; }
.invite-mark { font-size: 44px; }
.invite-modal h4 { font-size: 24px; }
/* friend step: the window with the Steam Friend ID of the room */
.friend-modal { text-align: center; }
.friend-modal h4 { font-size: 22px; }
.friend-id { justify-content: center; gap: 14px; padding: 12px 14px; border-color: rgba(227, 176, 75, .55); }
.friend-id .mono { flex: none; font-size: clamp(24px, 7vw, 36px); font-weight: 700; letter-spacing: .06em; color: #f6d58b; user-select: all; }
.friend-steps { text-align: left; margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; color: #d6d2cc; }
.friend-wait { justify-content: center; }
.room-enter { margin-top: 2px; }

/* wallet */
.bal-chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 12px; border-radius: 99px; border: 1px solid rgba(76, 187, 127, .35); background: var(--greensoft); color: #9be3bb; text-decoration: none; white-space: nowrap; }
.bal-chip:hover { color: #c3f0d6; border-color: rgba(76, 187, 127, .6); }
.bal-chip b { font: 700 17px var(--head); color: #c3f0d6; font-variant-numeric: tabular-nums; }
.bal-label, .bal-cur { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.wallet-hero { background: radial-gradient(120% 160% at 0% 0%, rgba(76, 187, 127, .16), transparent 55%), var(--card); display: flex; flex-direction: column; gap: 12px; }
.wallet-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.wallet-top .actions { margin: 0; }
.wallet-amount { font: 700 52px/1 var(--head); font-variant-numeric: tabular-nums; margin-top: 6px; }
.wallet-amount span { font-size: 22px; color: var(--muted); font-weight: 600; }
.results td.plus { color: #7fd6a6; font-weight: 600; }
.results td.minus { color: #d6d2cc; }
.opt { border: 1px solid var(--line2); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--bg2); }
.opt-head { display: flex; flex-direction: column; gap: 2px; }
.opt-head b { font: 600 19px var(--head); }
.opt-head .muted { font-size: 14px; }
.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; margin-top: 6px; }
.seg .btn { width: 100%; min-width: 0; }
.modal .seg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 480px) { .modal .seg { grid-template-columns: 1fr; } }
.wallet-pay { display: flex; flex-direction: column; gap: 10px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.or::before, .or::after { content: ''; flex: 1; border-top: 1px solid var(--line2); }
.block-warn { display: block; }
.amount-row { display: flex; align-items: flex-end; gap: 8px; }
.amount-row .field { flex: 1; }
.amount-row .btn { margin-bottom: 24px; }

/* notifications */
.notes-list { display: flex; flex-direction: column; gap: 2px; max-height: 60vh; overflow-y: auto; }
.note { padding: 10px 12px; border-radius: 9px; }
.note.unseen { background: var(--card2); }
.note-title { font-weight: 600; }
.note-body { color: #d6d2cc; font-size: 15px; }

/* toasts */
/* Short messages are only read, never clicked: a click goes through them to the button underneath. */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 80; display: flex; flex-direction: column; gap: 8px; max-width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.toast { background: var(--card2); border: 1px solid var(--line2); border-left: 4px solid var(--blue); border-radius: 10px; padding: 12px 14px; font-size: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); animation: rise .2s; transition: opacity .4s, transform .4s; overflow-wrap: anywhere; }
.toast.ok { border-left-color: var(--green); }
.toast.bad { border-left-color: var(--red); }
.toast.warn { border-left-color: var(--amber); }
.toast.out { opacity: 0; transform: translateY(8px); }

/* players select bar */
.selbar { position: sticky; bottom: 16px; z-index: 20; align-self: center; display: flex; align-items: center; gap: 12px; background: var(--card2); border: 1px solid var(--line2); border-radius: 99px; padding: 8px 10px 8px 18px; box-shadow: 0 14px 40px rgba(0, 0, 0, .5); }

/* chat */
.chat { display: grid; grid-template-columns: 300px 1fr; padding: 0; height: min(72vh, 720px); min-height: 460px; overflow: hidden; }
.conv-list { border-right: 1px solid var(--line); overflow-y: auto; }
.conv-head { padding: 16px; border-bottom: 1px solid var(--line); }
.conv { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 12px 14px; cursor: pointer; }
.conv:hover { background: var(--card2); }
.conv.on { background: var(--card2); box-shadow: inset 3px 0 0 var(--red); }
.conv-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.conv-title { font-weight: 600; display: flex; align-items: center; gap: 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.conv-last { color: var(--muted); font-size: 14px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.thread { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.thread-empty { margin: auto; text-align: center; padding: 20px; }
.thread-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.thread-head .back { display: none; }
.msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { display: flex; gap: 8px; align-items: flex-end; max-width: 80%; }
.msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.bubble { background: var(--card2); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 8px 12px; min-width: 0; }
.msg.mine .bubble { background: #3a1d19; border-color: #5a2a22; border-radius: 14px 14px 4px 14px; }
.msg.support .bubble { border-color: rgba(214, 64, 43, .45); }
.msg-name { font-size: 13px; font-weight: 600; color: #f08a72; }
.msg-body { white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; }
.msg-time { font-size: 11px; color: var(--muted); text-align: right; margin-top: 2px; }
.safety { align-self: center; text-align: center; font-size: 13px; color: var(--muted); background: var(--bg2); border: 1px solid var(--line); border-radius: 9px; padding: 8px 12px; margin: 4px 16px; max-width: 520px; }
.composer { display: flex; gap: 8px; align-items: flex-end; padding: 12px; border-top: 1px solid var(--line); }
.composer textarea { min-height: 42px; max-height: 140px; }
.emoji-wrap { position: relative; }
.emoji-pop { position: absolute; bottom: 44px; left: 0; z-index: 40; width: 300px; max-height: 240px; overflow-y: auto; display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; background: var(--card2); border: 1px solid var(--line2); border-radius: 12px; padding: 8px; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
.ta-row .emoji-pop { bottom: auto; top: 44px; left: auto; right: 0; }
.emo { background: none; border: 0; font-size: 21px; padding: 4px; border-radius: 6px; cursor: pointer; line-height: 1.2; }
.emo:hover { background: var(--line); }

/* profile */
.av-edit { display: flex; }
.facts + .form { margin-top: 18px; }

/* footer */
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.foot-in { max-width: 1180px; margin: 0 auto; padding: 18px 16px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.foot-links { display: flex; gap: 16px; }

/* responsive */
@media (max-width: 900px) {
  .panel { grid-template-columns: 1fr; padding: 22px; gap: 20px; }
  .panel h1 { font-size: 34px; }
  .grid2 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .top-in { height: auto; flex-wrap: wrap; gap: 8px 12px; padding: 10px 16px 0; }
  .brand { font-size: 20px; flex: 1; }
  .nav { order: 3; flex-basis: 100%; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 8px 6px; justify-content: space-between; gap: 0; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 7px 7px; font-size: 14.5px; }
  .me-name { display: none; }
  .bal-label { display: none; }
  .bal-chip { padding: 5px 10px; }
  .wallet-amount { font-size: 40px; }
  .wallet-top .actions { width: 100%; }
  .wallet-top .actions .btn { flex: 1; }
  .me-link { padding: 3px; }
  .wrap { padding-top: 16px; }
  .panel { padding: 18px; border-radius: 14px; }
  .panel h1 { font-size: 30px; }
  .lead { font-size: 16px; }
  .cbox b { font-size: 34px; }
  .cbox { padding: 8px 4px 6px; }
  .grid3 { grid-template-columns: 1fr; }
  .card { padding: 16px; }
  input[type=search] { max-width: none; }
  .row { gap: 10px; }
  .row .chip { font-size: 12px; padding: 2px 8px; }
  .players-list .row { flex-wrap: wrap; }
  .players-list .row .grow { flex: 1 1 calc(100% - 110px); }
  .seatno { width: 26px; }
  .chat { grid-template-columns: 1fr; height: calc(100vh - 150px); min-height: 420px; }
  .conv-list { border-right: 0; }
  .chat .thread { display: none; }
  .chat.show-thread .conv-list { display: none; }
  .chat.show-thread .thread { display: flex; }
  .thread-head .back { display: inline-flex; }
  .msg { max-width: 92%; }
  .pay-grid { flex-direction: column; align-items: center; }
  .pay-fields { width: 100%; }
  .rooms { grid-template-columns: 1fr; }
  .room { padding: 10px; overflow-x: auto; }
  .results { font-size: 14px; }
  .results th, .results td { padding: 7px 4px; }
  .results .who { gap: 6px; }
  .selbar { padding-left: 14px; gap: 8px; }
  .modal-back { padding-top: 16px; }
  .emoji-pop { width: 264px; }
}

/* ================= home (landing page) ================= */
html, body { overflow-x: clip; }
body.on-home .wrap { padding-top: 0; }
body.on-home .view { margin-top: 0; }
.home { display: flex; flex-direction: column; }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.bgv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.hero { position: relative; margin: 0 calc(50% - 50vw); min-height: min(92vh, 860px); display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero-shade { position: absolute; inset: 0; z-index: 1; background:
  radial-gradient(1200px 600px at 75% 30%, rgba(214,64,43,.18), transparent 60%),
  linear-gradient(90deg, rgba(8,9,12,.92) 0%, rgba(8,9,12,.7) 45%, rgba(8,9,12,.35) 100%),
  linear-gradient(180deg, rgba(12,14,18,0) 60%, var(--bg) 100%); }
.hero-in { position: relative; z-index: 2; width: 100%; max-width: 1180px; margin: 0 auto; padding: 70px 16px 90px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.hero-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.badge-fire, .badge-ed { font: 600 13px var(--head); letter-spacing: .12em; text-transform: uppercase; padding: 6px 12px; border-radius: 99px; }
.badge-fire { background: linear-gradient(90deg, #d6402b, #ff8a3d); color: #fff; box-shadow: 0 0 24px rgba(214,64,43,.45); }
.badge-ed { border: 1px solid rgba(227,176,75,.5); color: var(--gold); background: rgba(227,176,75,.08); }
.hero-title { font: 700 clamp(48px, 8vw, 104px)/.92 var(--head); text-transform: uppercase; letter-spacing: .01em; display: flex; flex-direction: column; margin-bottom: 14px; }
.fire-text { background: linear-gradient(180deg, #ffd27a 0%, #ff8a3d 40%, #d6402b 80%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 24px rgba(214,64,43,.45)); animation: flicker 3.2s ease-in-out infinite; }
@keyframes flicker { 0%,100% { filter: drop-shadow(0 4px 24px rgba(214,64,43,.45)); } 50% { filter: drop-shadow(0 4px 36px rgba(255,138,61,.7)); } }
.hero-sub { font: 600 clamp(18px, 2.4vw, 26px) var(--head); letter-spacing: .06em; text-transform: uppercase; color: #f1d8c8; margin-bottom: 22px; }
.hero-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 24px; max-width: 620px; }
.hero-facts div { background: rgba(22,26,33,.72); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; padding: 12px 14px; backdrop-filter: blur(6px); }
.hero-facts b { display: block; font: 700 24px var(--head); color: #fff; white-space: nowrap; }
.hero-facts span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.hero-clock { background: rgba(14,16,21,.72); border: 1px solid rgba(255,255,255,.1); border-radius: 18px; padding: 24px; backdrop-filter: blur(10px); box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.05); }
.hero-clock .clock { margin: 10px 0 14px; }
.hero-when { display: flex; flex-direction: column; gap: 2px; margin-bottom: 6px; }
.hero-when b { font: 600 20px var(--head); color: #fff; }
.hero-when span { color: var(--muted); font-size: 14px; }
.hero-clock .seats { margin-top: 16px; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(214,64,43,.18); color: #ffb3a5; border: 1px solid rgba(214,64,43,.45); border-radius: 99px; padding: 5px 12px; font-weight: 600; font-size: 13px; margin-bottom: 12px; }
.live-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #ff5a40; animation: pulse 1.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,90,64,.7); } 100% { box-shadow: 0 0 0 10px rgba(255,90,64,0); } }
.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 22px; transform: translateX(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; color: #fff; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

.sec { position: relative; padding: 80px 0; }
.sec-head { max-width: 720px; margin: 0 auto 36px; text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.sec h2 { font: 700 clamp(32px, 4.4vw, 52px)/1 var(--head); text-transform: uppercase; }
.sec h2.big { font-size: clamp(34px, 5.4vw, 64px); max-width: 900px; margin: 10px auto; }
.kicker { font: 600 14px var(--head); letter-spacing: .2em; text-transform: uppercase; color: #ff8a3d; }
.path { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.step { position: relative; background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line); border-radius: 16px; padding: 22px 20px; display: flex; flex-direction: column; gap: 8px; transition: transform .3s, border-color .3s, box-shadow .3s; }
.step h3 { font-size: 22px; text-transform: uppercase; }
.step p { color: var(--muted); font-size: 15px; }
.step-ico { position: relative; width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--redsoft); color: #ff8a72; margin-bottom: 6px; }
.step-ico .ico { width: 28px; height: 28px; }
.step-no { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line2); font: 700 13px var(--head); display: grid; place-items: center; color: var(--text); }
.step.done { opacity: .75; }
.step.done .step-ico { background: var(--greensoft); color: var(--green); }
.step.now { border-color: rgba(255,138,61,.7); box-shadow: 0 0 0 1px rgba(255,138,61,.35), 0 20px 50px rgba(214,64,43,.25); transform: translateY(-4px); }
.step.now .step-ico { background: linear-gradient(135deg, #d6402b, #ff8a3d); color: #fff; box-shadow: 0 0 24px rgba(255,138,61,.5); }
.step-now { align-self: flex-start; margin-top: 4px; font: 600 12px var(--head); letter-spacing: .14em; text-transform: uppercase; color: #ffb27a; border: 1px solid rgba(255,178,122,.4); border-radius: 99px; padding: 3px 10px; animation: glow 2s ease-in-out infinite; }
@keyframes glow { 0%,100% { box-shadow: 0 0 0 rgba(255,138,61,0); } 50% { box-shadow: 0 0 16px rgba(255,138,61,.45); } }
.path-action { display: flex; justify-content: center; margin-top: 30px; }

.sec-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.sec-split.rev > :first-child { order: 0; }
.sec-split > div { display: flex; flex-direction: column; gap: 14px; }
.split-media img, img.rounded { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(0,0,0,.5); }
.timeline { list-style: none; padding: 0; margin: 6px 0; display: flex; flex-direction: column; gap: 0; }
.timeline li { display: flex; gap: 14px; padding: 12px 0; border-left: 2px solid var(--line2); padding-left: 18px; margin-left: 10px; position: relative; }
.timeline li .ico { position: absolute; left: -12px; top: 12px; background: var(--bg); color: #ff8a3d; width: 22px; height: 22px; }
.timeline li > div { display: flex; flex-direction: column; margin-left: 8px; }
.timeline b { font: 600 18px var(--head); text-transform: uppercase; letter-spacing: .04em; }
.timeline span { color: #f1d8c8; }
.timeline small { color: var(--muted); font-size: 13px; }

.prizes-sec, .sec-video { margin: 0 calc(50% - 50vw); overflow: hidden; isolation: isolate; }
.sec-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.sec-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, var(--bg) 0%, rgba(10,11,15,.82) 20%, rgba(10,11,15,.82) 80%, var(--bg) 100%); }
.sec-in { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 900px; margin: 0 auto 18px; align-items: end; }
.pod { border-radius: 18px; padding: 26px 18px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; background: rgba(22,26,33,.8); border: 1px solid var(--line); backdrop-filter: blur(6px); }
.pod .ico { width: 44px; height: 44px; }
.pod b { font: 700 clamp(26px, 3.4vw, 38px) var(--head); }
.pod-place { text-transform: uppercase; letter-spacing: .12em; font: 600 14px var(--head); color: var(--muted); }
.pod.p1 { order: 2; padding-top: 44px; border-color: rgba(227,176,75,.6); box-shadow: 0 0 60px rgba(227,176,75,.18); }
.pod.p1 .ico, .pod.p1 b { color: var(--gold); }
.pod.p2 { order: 1; } .pod.p2 .ico, .pod.p2 b { color: var(--silver); }
.pod.p3 { order: 3; } .pod.p3 .ico, .pod.p3 b { color: var(--bronze); }
.sec-video .sec-shade { background: linear-gradient(90deg, rgba(8,9,12,.9), rgba(8,9,12,.65)), linear-gradient(180deg, var(--bg), transparent 15%, transparent 85%, var(--bg)); }
.sec-video .grid2 { align-items: center; gap: 48px; }
.sec-video .grid2 > div { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.ticks { list-style: none; padding: 0; margin: 4px 0 8px; display: flex; flex-direction: column; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .ico { color: var(--green); margin-top: 2px; }
.rules-list { margin: 4px 0 10px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.rules-list li::marker { color: #ff8a3d; font-weight: 700; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 10px calc(50% - 50vw); padding: 0 10px; }
.gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; filter: saturate(1.1) contrast(1.05); }
.faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
.faq details[open] { border-color: var(--line2); }
.faq summary { cursor: pointer; padding: 16px 0; font: 600 19px var(--head); letter-spacing: .02em; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; color: #ff8a3d; font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: '\2212'; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { padding: 0 0 16px; color: #cfd3da; }
.final { padding: 110px 0; }
.final .sec-in { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.final .actions, .path-action .actions { justify-content: center; }
.mini-steps { margin: 4px 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; color: var(--muted); }
.mini-steps .done { color: var(--green); text-decoration: line-through; }
.mini-steps .now { color: #fff; font-weight: 600; }
.reg-intro { margin-bottom: 12px; }

@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; padding: 50px 16px 80px; }
  .path { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec-split, .sec-video .grid2 { grid-template-columns: 1fr; gap: 28px; }
  .sec-split.rev > :first-child { order: 2; }
}
@media (max-width: 600px) {
  .hero { min-height: auto; }
  .hero-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .path { grid-template-columns: 1fr; }
  .podium { grid-template-columns: 1fr; }
  .pod.p1, .pod.p2, .pod.p3 { order: 0; padding-top: 22px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec { padding: 56px 0; }
  .hero-clock { padding: 18px; }
  .scroll-cue { display: none; }
}

/* ===== event artwork version (user images, 2026-11-12) ===== */
.hero.hero-art { display: block; min-height: 0; background: #07080c; }
.hero-pic { display: block; }
.hero-pic img { display: block; width: 100%; height: auto; aspect-ratio: 1672 / 941; object-fit: cover; }
/* The dock overlaps only the crowd at the bottom of the artwork (never the title), then can grow below it. */
.hero-dock { position: relative; z-index: 2; margin-top: calc(-1 * min(190px, 12vw)); padding: 0 16px 34px;
  background: linear-gradient(180deg, rgba(7,8,12,0) 0, rgba(7,8,12,.85) 90px, var(--bg) 100%); }
.dock { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; align-items: stretch;
  background: rgba(10,12,18,.72); border: 1px solid rgba(227,176,75,.28); border-radius: 18px; padding: 18px 20px;
  backdrop-filter: blur(10px); box-shadow: 0 24px 60px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.06); }
.dock-main { display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.dock-tag { font: 700 clamp(18px, 2vw, 26px) var(--head); letter-spacing: .06em; text-transform: uppercase;
  background: linear-gradient(180deg, #ffe7a8, #e3b04b 60%, #c98a2a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dock-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.dock-facts span { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 99px; padding: 5px 12px; font-size: 14px; color: var(--muted); }
.dock-facts b { color: #fff; font-weight: 600; }
.dock .actions { margin: 0; }
.dock-clock { border-left: 1px solid rgba(255,255,255,.08); padding-left: 18px; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.dock-clock .clock { margin: 0; }
.dock-clock .cbox { padding: 8px 4px; }
.dock-clock .cbox b { font-size: 30px; }
.dock-clock .hero-when { flex-direction: row; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; margin: 0; }
.dock-clock .hero-when b { font-size: 18px; }
.dock-clock .hero-when span { font-size: 13px; }
.dock .bar { margin-top: 2px; }
.dock .live-pill { align-self: flex-start; margin: 0; }

.band { margin: 0 calc(50% - 50vw); overflow: hidden; isolation: isolate; }
.band .sec-bg { filter: saturate(1.05); }
.band .sec-shade { background: linear-gradient(180deg, var(--bg) 0%, rgba(8,9,13,.55) 18%, rgba(8,9,13,.55) 82%, var(--bg) 100%); }
.band.side-shade .sec-shade { background: linear-gradient(90deg, rgba(8,9,13,.88) 0%, rgba(8,9,13,.55) 60%, rgba(8,9,13,.35) 100%), linear-gradient(180deg, var(--bg), transparent 18%, transparent 82%, var(--bg)); }
.band .sec-in > .sec-split { display: grid; }
.band .step, .band .faq details, .band .warn { backdrop-filter: blur(6px); }
.band .step { background: linear-gradient(180deg, rgba(27,32,41,.82), rgba(22,26,33,.82)); }
.band .faq details { background: rgba(22,26,33,.85); }
.sec-video .grid2, .band .grid2 { align-items: center; gap: 48px; }
.band .grid2 > div { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.final .final-in { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.gallery img { filter: none; }

@media (max-width: 960px) {
  .dock { grid-template-columns: 1fr; }
  .dock-clock { border-left: 0; border-top: 1px solid rgba(255,255,255,.08); padding: 14px 0 0; }
  .band .grid2 { grid-template-columns: 1fr; gap: 28px; }
}
/* Phones: the tall poster. The dock starts on the arena at the bottom (under the title and tagline). */
@media (max-width: 760px) {
  .hero-pic img { aspect-ratio: 941 / 1672; }
  .hero-dock { margin-top: -44vw; padding: 0 12px 26px; background: linear-gradient(180deg, rgba(7,8,12,0) 0, rgba(7,8,12,.9) 34vw, var(--bg) 100%); }
  .dock { padding: 16px; gap: 14px; }
  .dock-tag { font-size: 18px; }
  .dock .actions { flex-direction: column; align-items: stretch; }
  .dock .actions .btn { width: 100%; justify-content: center; }
  .dock-clock .cbox b { font-size: 24px; }
}

/* compact dock: details | countdown | buttons, fits inside the crowd area of the artwork */
.dock { grid-template-columns: minmax(0, 1.15fr) auto minmax(0, .8fr); gap: 20px; padding: 14px 18px; align-items: center; }
.dock-main { gap: 8px; }
.dock-tag { font-size: clamp(17px, 1.6vw, 22px); }
.dock-facts span { padding: 4px 10px; font-size: 13px; }
.dock-clock { gap: 6px; padding-left: 20px; }
.dock-clock .clock-label { font-size: 12px; }
.dock-clock .clock { gap: 6px; }
.dock-clock .cbox { padding: 6px 4px; min-width: 58px; }
.dock-clock .cbox b { font-size: 24px; }
.dock-clock .cbox small { font-size: 10px; }
.dock-clock .hero-when b { font-size: 15px; }
.dock-clock .hero-when span { font-size: 12px; }
.dock-cta .actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; margin: 0; }
.dock-cta .btn { width: 100%; justify-content: center; }
.dock-cta .btn.lg { padding-top: 11px; padding-bottom: 11px; }
.dock-cta .panel-me { margin: 0; }
@media (max-width: 1100px) {
  .dock { grid-template-columns: minmax(0, 1fr) auto; }
  .dock-cta { grid-column: 1 / -1; }
  .dock-cta .actions { flex-direction: row; }
  .dock-cta .btn { width: auto; flex: 1; }
}
@media (max-width: 760px) {
  .dock { grid-template-columns: 1fr; }
  .dock-clock { border-left: 0; border-top: 1px solid rgba(255,255,255,.08); padding: 12px 0 0; }
  .dock-cta .actions { flex-direction: column; }
  .dock-cta .btn { width: 100%; }
}

/* big screens: never taller than the screen, so the buttons are always visible without scrolling */
@media (min-width: 761px) {
  .hero-pic img { max-height: calc(100svh - 96px); object-position: center 42%; }
}

/* hero = picture only (user request); the details panel is its own section right below */
@media (min-width: 761px) { .hero-pic img { max-height: none; } }
.band.intro { padding: 44px 0; }
.band.intro .dock { border-color: rgba(227,176,75,.35); }
@media (max-width: 760px) { .band.intro { padding: 28px 0; } }

/* ================= v3: event lettering, card art, motion (2026-11-12) ================= */
:root { --blade: 'Cinzel', 'Trajan Pro', Georgia, serif; }
h1, h2, h3, .brand { font-family: var(--blade); letter-spacing: .02em; }
.blade { font-family: var(--blade); font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  background: linear-gradient(180deg, #fff4cf 0%, #f1c46a 38%, #c9702a 70%, #8e1d12 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(60,8,4,.9)) drop-shadow(0 0 22px rgba(214,64,43,.35)); }
.title-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; perspective: 600px; }
.title-wrap h2 { font-size: clamp(34px, 5vw, 64px); line-height: 1.05; text-align: center; margin: 0; }
.title-wrap .w { display: inline-block; opacity: 0; transform: translateY(.55em) rotateX(55deg); filter: blur(8px);
  transition: opacity .7s ease, transform .9s cubic-bezier(.2,.8,.2,1), filter .8s ease; transition-delay: calc(var(--i) * 90ms); }
.title-wrap.in .w { opacity: 1; transform: none; filter: none; }
.sword-line { width: min(320px, 70%); height: 24px; overflow: visible; }
.sword-line path { fill: none; stroke: #e3b04b; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1;
  filter: drop-shadow(0 0 6px rgba(227,176,75,.7)); transition: stroke-dashoffset 1.4s cubic-bezier(.6,0,.2,1) .35s; }
.title-wrap.in .sword-line path { stroke-dashoffset: 0; }
.grid2 .title-wrap, .final-in .title-wrap { align-items: flex-start; }
.grid2 .title-wrap h2, .final-in .title-wrap h2 { text-align: left; }
.lead-line { font-size: 18px; color: #e4ddd2; max-width: 720px; text-align: center; margin: 0 auto; }
.grid2 .lead-line, .final-in .lead-line { text-align: left; margin: 0; }
.sec-head { gap: 16px; }

/* reveal variants with a delay per card */
.reveal { transition-delay: var(--d, 0ms); }
.reveal-left { transform: translateX(-60px); }
.reveal-right { transform: translateX(60px); }
.reveal-zoom { transform: scale(.92); }
.reveal.in { transform: none; }

/* scroll progress + embers */
.scroll-bar { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 60; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, #8e1d12, #d6402b, #f1c46a); box-shadow: 0 0 12px rgba(214,64,43,.8); }
canvas.embers { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 3; pointer-events: none; mix-blend-mode: screen; opacity: .75; }

/* hero picture: slow push in, gold light sweep */
.hero-art { position: relative; overflow: hidden; }
.hero-pic img { will-change: transform; animation: heroIn 1.6s cubic-bezier(.2,.7,.2,1) both; }
@keyframes heroIn { from { opacity: 0; transform: scale(1.08); filter: brightness(.4); } to { opacity: 1; transform: none; filter: none; } }
.hero-shine { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(255,226,160,.22) 50%, transparent 65%);
  background-size: 250% 100%; mix-blend-mode: screen; animation: sweep 7s ease-in-out 1.5s infinite; }
@keyframes sweep { 0% { background-position: 150% 0; } 45%, 100% { background-position: -50% 0; } }

/* buttons: shimmer */
.btn.primary { position: relative; overflow: hidden; }
.btn.primary::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); animation: btnShine 4.5s ease-in-out infinite; pointer-events: none; }
@keyframes btnShine { 0%, 60% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }

/* countdown digits flip */
.cbox b.flip { animation: flip .5s cubic-bezier(.3,1.4,.5,1); }
@keyframes flip { 0% { transform: rotateX(90deg); opacity: .2; } 100% { transform: none; opacity: 1; } }

/* intro panel */
.dock-tag.blade { font-size: clamp(20px, 2.2vw, 30px); }
.dock-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.dock-stats div { display: flex; flex-direction: column; background: rgba(255,255,255,.04); border: 1px solid rgba(227,176,75,.22); border-radius: 12px; padding: 10px 12px; }
.dock-stats b { font: 800 clamp(22px, 2.4vw, 30px) var(--blade); color: #f6d58b; white-space: nowrap; }
.dock-stats span { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.pay-state { font-weight: 600; color: #f3c47a; }
.pay-state.on { color: #7ee2a8; }
.pay-state.on::before { content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #4cbb7f; margin-right: 8px; animation: pulse 1.4s infinite; vertical-align: 1px; }

/* step cards with art */
.path { gap: 20px; perspective: 1200px; }
.step { padding: 0; overflow: hidden; gap: 0; transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease, border-color .3s, box-shadow .3s, opacity .8s, filter .3s; }
.step.reveal { opacity: 0; transform: translateY(40px) rotateX(12deg); }
.step.reveal.in { opacity: 1; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.step-art { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.step-art img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.2); transition: transform 1.6s cubic-bezier(.2,.7,.2,1); }
.step.in .step-art img { transform: scale(1); }
.step-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(14,16,21,.95)); }
.step-art .step-no { position: absolute; top: auto; right: auto; left: 16px; bottom: -6px; z-index: 2; width: auto; height: auto; background: none; border: 0;
  font: 900 64px/1 var(--blade); color: transparent; -webkit-text-stroke: 1.5px #f1c46a; text-shadow: 0 0 22px rgba(241,196,106,.45); }
.step-done { position: absolute; z-index: 2; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(76,187,127,.9); color: #fff; box-shadow: 0 0 18px rgba(76,187,127,.6); }
.step-done .ico { width: 24px; height: 24px; stroke-width: 3; }
.step-body { padding: 16px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.step h3.blade { font-size: 22px; }
.step p { color: #c9c3ba; }
.step.done { opacity: .8; filter: saturate(.7); }
.step.now { border-color: transparent; box-shadow: 0 0 0 2px #e3b04b, 0 0 40px rgba(241,196,106,.35), 0 30px 70px rgba(214,64,43,.35); }
.step.now::before { content: ''; position: absolute; inset: -2px; border-radius: 18px; padding: 2px; z-index: 3; pointer-events: none;
  background: conic-gradient(from var(--ang, 0deg), #8e1d12, #f1c46a, #d6402b, #fff1c4, #8e1d12); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spinB 4s linear infinite; }
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes spinB { to { --ang: 360deg; } }
.step-now { position: absolute; top: 14px; left: 14px; z-index: 2; margin: 0; padding: 6px 14px; border: 0; border-radius: 8px;
  background: linear-gradient(90deg, #8e1d12, #d6402b); color: #fff; font: 700 14px var(--blade); letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 6px 20px rgba(214,64,43,.5); }

/* chronicle (schedule) */
.chron { list-style: none; margin: 0 auto; padding: 0; max-width: 980px; position: relative; display: flex; flex-direction: column; gap: 28px; --p: 0; }
.chron::before, .chron::after { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; border-radius: 3px; }
.chron::before { background: rgba(255,255,255,.08); }
.chron::after { background: linear-gradient(180deg, #f1c46a, #d6402b); box-shadow: 0 0 14px rgba(214,64,43,.8); transform-origin: top; transform: scaleY(var(--p)); }
.chron-item { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.chron-item:nth-child(even) .chron-art { order: 2; }
.chron-item::before { content: ''; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; z-index: 1;
  background: #0c0e12; border: 3px solid #f1c46a; box-shadow: 0 0 16px rgba(241,196,106,.7); }
.chron-art { border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 10; border: 1px solid rgba(227,176,75,.35); box-shadow: 0 20px 50px rgba(0,0,0,.55);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease; }
.chron-art img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: transform 1.8s cubic-bezier(.2,.7,.2,1); }
.chron-item.in .chron-art img { transform: scale(1); }
.chron-text { display: flex; flex-direction: column; gap: 4px; }
.chron-item:nth-child(even) .chron-text { text-align: right; align-items: flex-end; }
.chron-text h3.blade { font-size: clamp(22px, 2.6vw, 32px); }
.chron-text span { font-size: 18px; color: #f1e2c8; }
.chron-text small { color: var(--muted); }
.chron-line { display: none; }

/* prizes */
.podium { gap: 22px; max-width: 980px; }
.pod { padding: 0 0 22px; overflow: hidden; position: relative; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease, opacity .8s, box-shadow .3s; }
.pod.reveal { transform: translateY(60px); }
.pod.reveal.in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.pod-art { width: 100%; aspect-ratio: 4 / 3; overflow: hidden; }
.pod-art img { width: 100%; height: 100%; object-fit: cover; }
.pod.p1 .pod-art { aspect-ratio: 4 / 3.6; }
.pod-emblem { width: 72px; height: 72px; margin-top: -38px; position: relative; z-index: 2; filter: drop-shadow(0 0 14px rgba(241,196,106,.6)); }
.pod .pod-place { font-size: 20px; color: transparent; }
.pod-sum { font: 900 clamp(28px, 3.4vw, 42px) var(--blade); color: #f6d58b; }
.pod.p1 { box-shadow: 0 0 0 2px rgba(241,196,106,.7), 0 0 60px rgba(241,196,106,.3); animation: crown 3s ease-in-out infinite; }
@keyframes crown { 0%,100% { box-shadow: 0 0 0 2px rgba(241,196,106,.7), 0 0 40px rgba(241,196,106,.2); } 50% { box-shadow: 0 0 0 2px rgba(255,231,168,1), 0 0 80px rgba(241,196,106,.45); } }

/* emblems */
.emblem { width: 56px; height: 56px; flex: none; overflow: visible; }
.emblem path { stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 1.6s ease .2s; }
.in .emblem path, .emblem.drawn path, .invite-mark .emblem path { stroke-dashoffset: 0; }
.perks { list-style: none; padding: 0; margin: 8px 0 14px; display: flex; flex-direction: column; gap: 16px; }
.perks li { display: flex; gap: 16px; align-items: center; }
.perks li > div { display: flex; flex-direction: column; }
.perks b { font: 700 19px var(--blade); color: #f6d58b; }
.perks span { color: #cfc8bd; }
.art-frame { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid rgba(227,176,75,.45); box-shadow: 0 0 0 6px rgba(10,12,18,.6), 0 30px 80px rgba(0,0,0,.6), 0 0 50px rgba(214,64,43,.25);
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease, opacity .8s; }
.art-frame.reveal-right { transform: translateX(60px); }
.art-frame.reveal-left { transform: translateX(-60px); }
.art-frame.in { transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.art-frame img { width: 100%; display: block; aspect-ratio: 4 / 3; object-fit: cover; }
.rule-grid { list-style: none; padding: 0; margin: 0 0 26px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.rule { background: rgba(14,16,22,.78); border: 1px solid rgba(227,176,75,.22); border-radius: 16px; padding: 22px 18px; display: flex; flex-direction: column; gap: 12px; backdrop-filter: blur(6px); font-size: 16px; color: #e4ddd2; }
.rule .emblem { width: 52px; height: 52px; }

/* moving card strip */
.gallery-run { margin: 0 calc(50% - 50vw); padding: 30px 0; display: flex; flex-direction: column; gap: 14px; overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: run 60s linear infinite; }
.marquee.rev .marquee-track { animation-direction: reverse; animation-duration: 70s; }
.marquee img { width: 280px; height: 190px; object-fit: cover; border-radius: 14px; border: 1px solid rgba(227,176,75,.25); }
.gallery-run:hover .marquee-track { animation-play-state: paused; }
@keyframes run { to { transform: translateX(-50%); } }

/* questions */
.faq-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; max-width: 1180px; margin: 0 auto; align-items: start; }
.faq-group { background: rgba(10,12,18,.7); border: 1px solid rgba(227,176,75,.2); border-radius: 18px; padding: 20px; backdrop-filter: blur(6px); display: flex; flex-direction: column; gap: 12px; }
.faq-group h3.blade { font-size: 24px; }
.faq-group .faq { max-width: none; }
.faq summary { font: 600 17px var(--body); }
.faq details[open] p { animation: faqIn .45s ease; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* last section */
.final-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.final .final-in { align-items: flex-start; text-align: left; }
.final .title-wrap h2 { font-size: clamp(30px, 3.8vw, 50px); }

.invite-mark .emblem { width: 72px; height: 72px; }
.bell-icon .ico { width: 20px; height: 20px; }

@media (max-width: 960px) {
  .rule-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-groups, .final-grid { grid-template-columns: 1fr; }
  .chron::before, .chron::after { left: 14px; }
  .chron-item { grid-template-columns: 1fr; gap: 14px; padding-left: 40px; }
  .chron-item::before { left: 14px; top: 24px; }
  .chron-item:nth-child(even) .chron-art { order: 0; }
  .chron-item:nth-child(even) .chron-text { text-align: left; align-items: flex-start; }
}
@media (max-width: 600px) {
  .dock-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rule-grid { grid-template-columns: 1fr; }
  .marquee img { width: 200px; height: 140px; }
  .step-art .step-no { font-size: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .title-wrap .w, .sword-line path, .emblem path { transition: none; opacity: 1; transform: none; filter: none; stroke-dashoffset: 0; }
  .hero-shine, .btn.primary::after, .marquee-track, .step.now::before, .pod.p1, .hero-pic img { animation: none; }
  canvas.embers { display: none; }
}

/* fixes after review */
.sec .title-wrap h2.blade, .title-wrap h2.blade { font-family: var(--blade); font-weight: 800; }
.blade { -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.dock .dock-tag { grid-column: 1 / -1; text-align: center; margin: 0 0 4px; font-size: clamp(20px, 2.4vw, 34px); }
.dock { grid-template-columns: minmax(0, 1.25fr) auto minmax(220px, .7fr); }
.dock-stats b { font-size: clamp(20px, 2vw, 28px); }
.dock-stats span { font-size: 12px; }
@media (max-width: 1100px) { .dock .dock-tag { grid-column: 1 / -1; } }

/* ================= rooms mode ================= */
.room-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 10px 0 26px; }
.room-card { position: relative; border-radius: 18px; overflow: hidden; background: rgba(12,14,20,.85); border: 1px solid rgba(227,176,75,.25);
  box-shadow: 0 24px 60px rgba(0,0,0,.5); transition: opacity .8s, transform .8s cubic-bezier(.2,.7,.2,1), box-shadow .3s; backdrop-filter: blur(6px); }
.room-card.reveal { transform: translateY(40px) scale(.97); }
.room-card.reveal.in { transform: none; }
.room-art { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.room-art img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: transform 1.6s cubic-bezier(.2,.7,.2,1); }
.room-card.in .room-art img { transform: scale(1); }
.room-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(12,14,20,.95)); }
.room-no { position: absolute; left: 16px; bottom: 10px; z-index: 2; font-size: 28px; }
.room-state { position: absolute; top: 12px; right: 12px; z-index: 2; font: 700 13px var(--blade); letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 8px; color: #fff; background: rgba(76,187,127,.85); box-shadow: 0 4px 16px rgba(0,0,0,.4); }
.st-filling .room-state { background: linear-gradient(90deg, #b8742a, #e3b04b); animation: glow 2s ease-in-out infinite; }
.st-started .room-state { background: linear-gradient(90deg, #8e1d12, #d6402b); }
.st-private .room-state { background: rgba(60,64,80,.9); }
.room-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.room-count b { font: 900 32px var(--blade); color: #f6d58b; }
.room-count span { color: var(--muted); margin-left: 6px; }
.slots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.slot { aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed rgba(255,255,255,.18); display: grid; place-items: center; overflow: hidden; transition: all .4s; }
.slot.on { border: 1.5px solid #e3b04b; background: radial-gradient(circle, rgba(241,196,106,.35), rgba(214,64,43,.25)); box-shadow: 0 0 10px rgba(241,196,106,.35); }
.slot.me { border-color: #7ee2a8; box-shadow: 0 0 14px rgba(126,226,168,.6); }
.slot .av { width: 100%; height: 100%; border-radius: 50%; }
.room-names { line-height: 1.4; max-height: 3.6em; overflow: hidden; }
.room-mine { font: 700 14px var(--blade); color: #7ee2a8; letter-spacing: .04em; }
.room-card.mine { border-color: #7ee2a8; box-shadow: 0 0 0 2px rgba(126,226,168,.6), 0 24px 60px rgba(0,0,0,.5); }
.st-started .slot.on { animation: pulseSlot 2.4s ease-in-out infinite; }
@keyframes pulseSlot { 0%,100% { box-shadow: 0 0 6px rgba(214,64,43,.4); } 50% { box-shadow: 0 0 16px rgba(214,64,43,.8); } }
.rooms-page .title-wrap { margin: 10px 0; }
.rooms-page .room-card { opacity: 1; }
.who-list { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 1100px) { .room-board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .room-board { grid-template-columns: 1fr; } }
