:root {
  --bg: #120407;
  --bg-2: #1a0609;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-2: rgba(255, 255, 255, 0.08);
  --edge: rgba(255, 255, 255, 0.10);
  --edge-hi: rgba(255, 255, 255, 0.18);
  --ink: #fbeee6;
  --ink-2: #cdb6a6;
  --muted: #8e7466;
  --blue: #d6453c;
  --violet: #b8323f;
  --pink: #ec6fb0;
  --gold: #f0bd4f;
  --gold-hi: #ffdb84;
  --gold-lo: #c88a1c;
  --ok: #34d399;
  --bad: #f87171;
  --grad: linear-gradient(90deg, var(--blue), var(--violet) 50%, var(--pink));
  --display: "Sora", "Segoe UI", system-ui, sans-serif;
  --sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --wrap: 1200px;
  --r: 20px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* ---------- animated gradient mesh ---------- */
.mesh { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.mesh i { position: absolute; width: 52vmax; height: 52vmax; border-radius: 50%; filter: blur(90px); opacity: .22; animation: drift 28s ease-in-out infinite alternate; }
.mesh i:nth-child(1) { background: var(--blue); left: -12vmax; top: 10vh; }
.mesh i:nth-child(2) { background: var(--violet); right: -14vmax; top: 40vh; animation-duration: 34s; }
.mesh i:nth-child(3) { background: var(--pink); left: 30vw; bottom: -30vmax; opacity: .14; animation-duration: 40s; }
@keyframes drift { to { transform: translate(8vmax, -6vmax) scale(1.15); } }

/* ---------- buttons ---------- */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent; font: 600 14.5px/1 var(--sans); letter-spacing: .01em; white-space: nowrap; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s; }
.btn svg { width: 19px; height: 19px; fill: currentColor; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 13.5px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 15.5px; }
.btn-block { width: 100%; }
.btn-gold { color: #2a1903; background: linear-gradient(180deg, var(--gold-hi), var(--gold) 60%, var(--gold-lo)); border-color: rgba(255,230,160,.6);
  box-shadow: 0 8px 28px rgba(240,189,79,.28), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(240,189,79,.45), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-glass { color: var(--ink); background: var(--glass-2); border-color: var(--edge); backdrop-filter: blur(10px); }
.btn-glass:hover { border-color: var(--edge-hi); background: rgba(255,255,255,.12); }
.btn-discord { color: #fff; background: linear-gradient(180deg, #7480ff, #5865f2); border-color: rgba(255,185,160,.45); box-shadow: 0 8px 26px rgba(88,101,242,.3); }
.btn-discord:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(88,101,242,.45); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.shine::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%);
  transform: translateX(-120%); animation: shine 3.6s ease-in-out infinite; }
@keyframes shine { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }

/* ---------- floating pill nav ---------- */
.nav { position: fixed; z-index: 50; top: 14px; left: 50%; transform: translateX(-50%); width: min(var(--wrap), calc(100% - 28px));
  display: flex; align-items: center; gap: 20px; height: 62px; padding: 0 10px 0 16px; border-radius: 999px;
  background: rgba(24, 6, 9, .55); border: 1px solid var(--edge); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 10px 40px rgba(0,0,0,.35); transition: height .25s, top .25s, background .25s; }
.nav.small { top: 8px; height: 54px; background: rgba(24, 6, 9, .82); }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand .word { width: auto; filter: drop-shadow(0 1px 2px rgba(0,0,0,.8)); }
.links { display: flex; gap: 4px; margin: 0 auto; }
.links a { padding: 8px 12px; border-radius: 999px; font: 500 14px/1 var(--sans); color: var(--ink-2); transition: color .15s, background .15s; }
.links a:hover { color: var(--ink); background: rgba(255,255,255,.07); }
.nav-end { display: flex; align-items: center; gap: 8px; }
.nav-end [hidden] { display: none; }
.live-chip { display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; height: 38px; border-radius: 999px; font-size: 13px; color: var(--ink-2);
  background: rgba(255,255,255,.04); border: 1px solid var(--edge); white-space: nowrap; }
.live-chip b { color: var(--ink); font-weight: 600; }
.live-chip i, .pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.live-chip.on i, .pulse { background: var(--ok); }
.live-chip.on i::after, .pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ok); animation: ping 1.8s ease-out infinite; }
.live-chip.off i { background: var(--bad); }
@keyframes ping { to { transform: scale(3); opacity: 0; } }
.burger { display: none; width: 42px; height: 42px; margin-left: auto; border-radius: 50%; border: 1px solid var(--edge); background: var(--glass-2); cursor: pointer; }
.burger span { display: block; width: 16px; height: 2px; margin: 4px auto; background: var(--ink); border-radius: 2px; transition: transform .2s; }
.nav.open .burger span:first-child { transform: translateY(3px) rotate(45deg); }
.nav.open .burger span:last-child { transform: translateY(-3px) rotate(-45deg); }

/* ---------- 1 · hero ---------- */
.hero { position: relative; height: clamp(560px, 46vw, 860px); display: flex; align-items: flex-end; justify-content: center; padding: 0 20px 40px; }
.hero-art { position: absolute; inset: 0; overflow: hidden; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; animation: kenburns 24s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.07); } }
.hero-art::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,4,7,.55) 0%, transparent 22%, transparent 45%, rgba(18,4,7,.75) 78%, var(--bg) 100%); }
.notice { position: absolute; z-index: 2; top: 92px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 10px;
  max-width: calc(100% - 32px); padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(24,6,9,.7); border: 1px solid rgba(255,219,132,.4);
  backdrop-filter: blur(12px); font-size: 14px; white-space: nowrap; }
.notice[hidden] { display: none; }
.notice span { font: 700 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #2a1903; background: var(--gold-hi); padding: 6px 10px; border-radius: 999px; }
.notice b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.notice em { font-style: normal; color: var(--gold-hi); }
.hero-panel { position: relative; z-index: 2; width: min(var(--wrap), 100%); display: flex; align-items: center; justify-content: space-between; gap: 28px;
  padding: 26px 30px; border-radius: 26px; background: rgba(24,6,9,.58); border: 1px solid var(--edge);
  backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3); box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.kicker { font: 600 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--pink); }
.hero h1 { margin-top: 12px; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.15; font-weight: 700; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { margin-top: 10px; color: var(--ink-2); font-size: 16px; }
.hero-cta { display: flex; gap: 12px; flex-shrink: 0; }

/* ---------- sections ---------- */
.block { position: relative; width: min(var(--wrap), calc(100% - 40px)); margin: 0 auto; padding: 90px 0 0; }
.block-head { text-align: center; margin-bottom: 36px; }
.block-head h2 { margin-top: 12px; font-size: clamp(28px, 3vw, 40px); font-weight: 700; }

/* gradient-edged glass tile */
.tile, .glass { position: relative; border-radius: var(--r); background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.tile::before, .glass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(255,255,255,.22), rgba(255,255,255,.04) 40%, rgba(190,40,60,.25) 75%, rgba(236,111,176,.3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }

/* ---------- 2 · bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(120px, auto); gap: 16px; }
.tile { padding: 22px 24px; transition: transform .25s, background .25s; }
.tile:hover { transform: translateY(-3px); background: rgba(255,255,255,.065); }
.tile header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 16px; }
.tile h3 { font-size: 16px; font-weight: 600; }
.more { font-size: 13px; font-weight: 600; color: var(--ink-2); transition: color .15s; }
.more:hover { color: var(--gold-hi); }
.muted { color: var(--muted); font-size: 14px; }
.t-news { grid-column: span 2; grid-row: span 2; }
.t-podium { grid-row: span 2; }
.t-online { grid-row: span 2; display: flex; flex-direction: column; }
.t-online header { margin-bottom: 4px; }
.t-online .more { margin-top: auto; padding-top: 12px; }

.news li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.06); }
.news li:first-child { border-top: 0; padding-top: 4px; }
.news .tag { font: 700 10.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px;
  color: #fff; background: color-mix(in srgb, var(--c, var(--blue)) 75%, transparent); }
.news a { font-weight: 500; line-height: 1.35; transition: color .15s; }
.news a:hover { color: var(--gold-hi); }
.news time { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.news .pin { color: var(--gold-hi); margin-right: 6px; }

.podium { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 8px; height: calc(100% - 40px); min-height: 190px; }
.podium .p { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-width: 0; }
.podium .p a { font: 600 13.5px/1.2 var(--sans); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium .p small { font-size: 12px; color: var(--ink-2); }
.podium .p img { width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.06); }
.podium .step { width: 100%; border-radius: 12px 12px 4px 4px; display: grid; place-items: start center; padding-top: 8px; font: 800 18px/1 var(--display); }
.podium .p1 .step { height: 92px; color: #2a1903; background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo)); }
.podium .p2 .step { height: 66px; color: #2a0d10; background: linear-gradient(180deg, #f5ebe3, #a88f82); }
.podium .p3 .step { height: 50px; color: #2b1606; background: linear-gradient(180deg, #e9a46a, #9a5a2c); }
.podium .empty { grid-column: 1 / -1; align-self: center; text-align: center; }

.big { font: 800 52px/1 var(--display); letter-spacing: -0.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.names { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.names li { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.names li b { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.t-stat { display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.t-stat span { font: 600 11.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.t-stat b { font: 700 26px/1.1 var(--display); letter-spacing: -0.02em; }
.t-launcher b { font-size: 20px; background: linear-gradient(90deg, var(--gold-hi), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- 3 · start playing ---------- */
.play { padding-bottom: 20px; }
.play-bg { position: absolute; z-index: -1; left: 50%; transform: translateX(-50%); top: 40px; bottom: -40px; width: 100vw;
  background: url('/site/assets/world.jpg') center / cover no-repeat; opacity: .28;
  -webkit-mask: linear-gradient(180deg, transparent, #000 25%, #000 70%, transparent); mask: linear-gradient(180deg, transparent, #000 25%, #000 70%, transparent); }
.play-grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 28px; align-items: stretch; }
.form { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.form h3 { font-size: 20px; margin-bottom: 4px; }
.form label { display: flex; flex-direction: column; gap: 7px; font: 600 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.form input { height: 48px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--edge); background: rgba(0,0,0,.35); color: var(--ink);
  font: 500 15px var(--sans); letter-spacing: 0; text-transform: none; outline: none; transition: border-color .15s, box-shadow .15s; }
.form input::placeholder { color: #7a5e52; }
.form input:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(190,40,60,.25); }
.form.is-closed input { opacity: .45; pointer-events: none; }
.form-msg { min-height: 20px; font-size: 14px; }
.form-msg.ok { color: var(--ok); } .form-msg.err { color: var(--bad); }
.form-foot { text-align: center; font-size: 14px; color: var(--ink-2); }
.form-foot a { color: var(--gold-hi); font-weight: 600; }
.form-closed { text-align: center; font-size: 14px; color: var(--bad); }
.form-closed[hidden], .form-foot[hidden] { display: none; }

.play-side { display: flex; flex-direction: column; justify-content: center; gap: 34px; padding: 10px 6px; }
.stepper { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stepper::before { content: ""; position: absolute; top: 22px; left: 16.6%; right: 16.6%; height: 2px; background: var(--grad); opacity: .6; }
.stepper li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.stepper span { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; font: 700 17px var(--display);
  background: var(--bg-2); border: 2px solid rgba(190,40,60,.6); box-shadow: 0 0 0 6px rgba(190,40,60,.12); }
.stepper li.done span { color: #2a1903; background: linear-gradient(180deg, var(--gold-hi), var(--gold-lo)); border-color: transparent; box-shadow: 0 0 0 6px rgba(240,189,79,.15); }
.stepper b { margin-top: 6px; font: 600 16px var(--display); }
.stepper small { font-size: 13.5px; color: var(--ink-2); max-width: 210px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 500;
  background: var(--glass); border: 1px solid var(--edge); }
.chips svg { width: 17px; height: 17px; fill: var(--pink); }

/* ---------- 4 · footer ---------- */
.footer { width: min(var(--wrap), calc(100% - 40px)); margin: 90px auto 0; padding: 0 0 40px; }
.footer-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 22px 26px; border-radius: var(--r);
  background: var(--glass); border: 1px solid var(--edge); }
.footer-cta img { width: min(460px, 100%); height: auto; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 30px; }
.footer .links { margin: 0; flex-wrap: wrap; }
.legal { margin-top: 18px; font-size: 12.5px; color: var(--muted); }

.sticky-cta { display: none; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .links a:nth-child(4), .links a:nth-child(5) { display: none; }
  .hero-panel { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 900px) {
  .nav { height: 56px; padding: 0 8px 0 14px; }
  .links, .nav-end { display: none; }
  .burger { display: block; }
  .nav.open { border-radius: 22px; height: auto; flex-wrap: wrap; padding: 8px 8px 14px 14px; }
  .nav.open .links { display: flex; flex-direction: column; width: 100%; order: 3; margin: 6px 0 0; }
  .nav.open .links a { display: block; padding: 12px 10px; font-size: 15px; }
  .nav.open .nav-end { display: flex; order: 4; width: 100%; flex-wrap: wrap; padding: 6px 10px 0; }
  .hero { height: auto; min-height: 92svh; padding: 0 14px 22px; }
  .hero-art img { object-position: 50% 30%; }
  .hero-panel { padding: 22px; border-radius: 22px; }
  .hero-cta { width: 100%; flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .notice { top: 82px; }
  .block { padding-top: 70px; }
  /* bento becomes swipeable rows */
  .bento { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -20px; padding: 4px 20px 14px; scrollbar-width: none; }
  .bento::-webkit-scrollbar { display: none; }
  .tile { flex: 0 0 82%; scroll-snap-align: center; }
  .t-stat { flex-basis: 44%; }
  .play-grid { grid-template-columns: 1fr; }
  .stepper { grid-template-columns: 1fr; gap: 16px; }
  .stepper::before { left: 22px; right: auto; top: 22px; bottom: 22px; width: 2px; height: auto; }
  .stepper li { flex-direction: row; text-align: left; align-items: flex-start; gap: 14px; }
  .stepper li > :not(span) { }
  .stepper b { margin-top: 0; }
  .stepper li { display: grid; grid-template-columns: 46px 1fr; column-gap: 14px; }
  .stepper li span { grid-row: span 2; }
  .stepper small { max-width: none; }
  .footer-cta { justify-content: center; }
  .sticky-cta { display: flex; position: fixed; z-index: 40; left: 14px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom));
    height: 52px; transform: translateY(140%); transition: transform .3s; }
  .sticky-cta.show { transform: none; }
  body { padding-bottom: 80px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* hero fixes: keep the art's logo clear of the floating menu; notice sits just above the panel */
.hero { flex-direction: column; align-items: center; gap: 14px; height: clamp(620px, 52vw, 920px); }
.hero-art { top: 84px; }
.hero-art img { object-position: center top; }
.hero-art::after { background: linear-gradient(180deg, var(--bg) 0%, transparent 6%, transparent 52%, rgba(18,4,7,.78) 80%, var(--bg) 100%); }
.notice { position: relative; top: auto; left: auto; transform: none; margin-top: auto; }
@media (max-width: 900px) {
  .hero { height: auto; min-height: 0; padding-top: 0; }
  .hero-art { position: relative; top: 0; margin: 76px -14px 0; width: calc(100% + 28px); aspect-ratio: 3 / 1.25; }
  .hero-panel { margin-top: -40px; }
  .notice { margin-top: 0; white-space: normal; }
}
@media (max-width: 900px) {
  .news li { grid-template-columns: auto 1fr; row-gap: 8px; }
  .news li a { grid-column: 1 / -1; grid-row: 2; }
  .news li time { justify-self: end; }
}
@media (max-width: 900px) {
  .hero-panel { margin-top: 0; }
  .notice[hidden] + .hero-panel { margin-top: -40px; }
}

/* ===== images shown whole, at their own aspect ratio, no zoom or re-crop ===== */
.hero { height: auto; min-height: 0; display: block; padding: 84px 0 0; }
.hero-art { position: relative; top: auto; inset: auto; width: 100%; overflow: visible; }
.hero-art img { width: 100%; height: auto; object-fit: contain; animation: none; transform: none; }
.hero-art::after { background: linear-gradient(180deg, transparent 70%, var(--bg) 100%); }
.hero .notice { display: flex; width: max-content; margin: -22px auto 12px; position: relative; z-index: 3; }
.hero .notice[hidden] { display: none; }
.hero-panel { margin: -6px auto 0; width: min(var(--wrap), calc(100% - 40px)); }
.notice[hidden] + .hero-panel { margin-top: -70px; }

.map, .party { margin: 0; border-radius: var(--r); overflow: hidden; border: 1px solid var(--edge); box-shadow: 0 30px 80px rgba(0,0,0,.45); background: #1a0609; }
.map img, .party img { width: 100%; height: auto; display: block; }
.world { padding-top: 90px; }
.party { border-radius: 16px; }
.play-side { justify-content: flex-start; gap: 26px; padding: 0; }

@media (max-width: 900px) {
  .hero { padding-top: 76px; }
  .hero-art { margin: 0; width: 100%; aspect-ratio: auto; }
  .hero-panel { margin-top: 0; width: calc(100% - 28px); }
  .notice[hidden] + .hero-panel { margin-top: -24px; }
  .hero .notice { width: calc(100% - 28px); margin: 8px auto 12px; }
  .world { padding-top: 70px; }
  .map { border-radius: 14px; }
}

/* faint world map behind the whole page (stays put while scrolling) */
.mapbg { position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background: url('/site/assets/worldmap-bg.webp') center / cover no-repeat; opacity: .13; filter: saturate(.85) blur(1px); }
.mapbg::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 40%, transparent 30%, rgba(18,4,7,.75) 100%); }
.mesh { z-index: -1; }
.mesh i { opacity: .16; }
body { background: var(--bg); }
@media (max-width: 900px) { .mapbg { background-size: auto 100%; opacity: .11; } }

/* nav pill hugs its content: no empty gaps between logo, links and buttons */
.nav { width: auto; max-width: calc(100% - 28px); gap: 18px; padding: 0 8px 0 14px; }
.links { margin: 0; }
@media (max-width: 900px) { .nav { width: calc(100% - 28px); } }

/* footer bar: one centred group */
.footer-cta { justify-content: center; gap: 28px 36px; }
.footer-cta img { width: min(400px, 100%); }
.footer-cta-text { display: flex; flex-direction: column; gap: 2px; padding-left: 28px; border-left: 1px solid var(--edge); }
.footer-cta-text b { font: 600 15px var(--display); }
.footer-cta-text span { font-size: 14px; color: var(--ink-2); }
@media (max-width: 900px) { .footer-cta-text { padding-left: 0; border-left: 0; text-align: center; } }

/* register: rules + agree */
.rules { margin-top: 4px; padding: 16px 18px; border-radius: 14px; background: rgba(0,0,0,.25); border: 1px solid var(--edge); }
.rules-title { font: 600 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-hi); margin-bottom: 10px; }
.rules ul { display: flex; flex-direction: column; gap: 7px; }
.rules li { position: relative; padding-left: 18px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.rules li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--pink); }
.form label.agree { flex-direction: row; align-items: center; gap: 10px; margin-top: 14px; font: 500 13.5px/1.35 var(--sans);
  letter-spacing: 0; text-transform: none; color: var(--ink); cursor: pointer; }
.agree input { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--gold); cursor: pointer; }

/* nav: buttons never squeeze; links give way first on narrower screens */
.nav { padding: 0 10px 0 14px; gap: 14px; }
.nav > *, .nav-end > * { flex-shrink: 0; }
.links { flex-shrink: 1; min-width: 0; overflow: hidden; }
.links a { padding: 8px 11px; white-space: nowrap; }
@media (max-width: 1360px) { .links a:nth-child(6) { display: none; } }
@media (max-width: 1220px) { .links a:nth-child(4) { display: none; } }

/* root cause: a fixed element at left:50% only gets half the screen to size itself in.
   Centre it with left/right 0 + auto margins so it can take its full natural width. */
.nav { left: 0; right: 0; transform: none; margin: 0 auto; width: fit-content; max-width: calc(100% - 28px); }
.links { flex-shrink: 0; overflow: visible; }
@media (max-width: 1360px) { .links a:nth-child(6) { display: inline-block; } }
@media (max-width: 1220px) { .links a:nth-child(4) { display: inline-block; } }
@media (max-width: 1100px) { .links a:nth-child(5), .links a:nth-child(6) { display: none; } }
@media (max-width: 900px) { .nav { width: calc(100% - 28px); } }

/* =====================================================================
   FANTASY GAME WINDOWS (bento): navy steel frames, gold corners, bevels
   ===================================================================== */
.fantasy { --navy-1: #3a0e14; --navy-2: #2a0a0e; --gold-line: rgba(240,189,79,.55); --parch: #f3e4c2; --parch-2: #e2cc9b; --ink-brown: #3b2a14; perspective: 1200px; }
#live { position: relative; }
.sparks { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.sparks i { position: absolute; border-radius: 50%; background: radial-gradient(circle, #ffe9a8, rgba(240,189,79,0) 70%);
  box-shadow: 0 0 8px rgba(255,214,120,.7); opacity: 0; animation: mote linear infinite; }
@keyframes mote { 0% { transform: translateY(20px); opacity: 0; } 15% { opacity: .9; } 85% { opacity: .6; } 100% { transform: translateY(-160px) translateX(20px); opacity: 0; } }
.fantasy .tile { position: relative; z-index: 1; padding: 0 22px 20px; border-radius: 14px;
  background: linear-gradient(180deg, var(--navy-1), var(--navy-2));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), inset 0 -3px 0 rgba(0,0,0,.45), inset 0 0 0 1px rgba(240,189,79,.18),
              0 2px 0 #100306, 0 22px 44px rgba(0,0,0,.55);
  transform: rotateX(var(--rx, 0)) rotateY(var(--ry, 0)); transform-style: preserve-3d; transition: transform .35s ease, box-shadow .35s; backdrop-filter: none; }
.fantasy .tile.tilting { transition: transform .08s linear; }
.fantasy .tile:hover { background: linear-gradient(180deg, #3e0f15, #2a090e); }
.fantasy .tile::before { padding: 1.5px; background: linear-gradient(160deg, var(--gold-line), rgba(240,189,79,.12) 35%, rgba(240,189,79,.08) 65%, var(--gold-line)); }
.fantasy .tile::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255,226,150,.12), transparent 45%); }
.fantasy .tile.tilting::after { opacity: 1; }
/* gold corner ornaments */
.cn { position: absolute; width: 22px; height: 22px; pointer-events: none; z-index: 2;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 22V8c0-3.3 2.7-6 6-6h14' fill='none' stroke='%23f0bd4f' stroke-width='2'/%3E%3Cpath d='M6 22V11c0-2.8 2.2-5 5-5h11' fill='none' stroke='%23f0bd4f' stroke-opacity='.45'/%3E%3Cpath d='M1 1h5L1 6Z' fill='%23f0bd4f'/%3E%3Ccircle cx='9.5' cy='9.5' r='1.7' fill='%23ffdb84'/%3E%3C/svg%3E") center / contain no-repeat; }
.cn.tl { top: 3px; left: 3px; } .cn.tr { top: 3px; right: 3px; transform: scaleX(-1); }
.cn.bl { bottom: 3px; left: 3px; transform: scaleY(-1); } .cn.br { bottom: 3px; right: 3px; transform: scale(-1); }
/* title bar like an in-game window */
.fantasy .bar { margin: 0 -22px 16px; padding: 14px 22px 12px; border-bottom: 1px solid rgba(240,189,79,.35);
  background: linear-gradient(180deg, rgba(240,189,79,.14), rgba(240,189,79,.02)); border-radius: 14px 14px 0 0; position: relative; }
.fantasy .bar::after { content: "◆"; position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); font-size: 10px; color: #f0bd4f; text-shadow: 0 0 6px rgba(240,189,79,.8); }
.fantasy .bar h3 { font: 700 15px/1.2 "Cinzel", serif; letter-spacing: .06em; color: #ffe3a3; text-shadow: 0 1px 0 #000; }
.fantasy .more { color: #c9b98f; }
.fantasy .more:hover { color: #ffdb84; }
.engraved, .orb b, .podium .step { font-family: "Cinzel", serif !important; }

/* notice board: parchment notes pinned with gold tacks, wax-seal tags */
.board { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.board li { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 16px 12px 14px;
  border-radius: 4px; color: var(--ink-brown);
  background: radial-gradient(circle at 20% 30%, rgba(255,255,255,.35), transparent 40%), linear-gradient(180deg, var(--parch), var(--parch-2));
  box-shadow: 0 6px 14px rgba(0,0,0,.45), inset 0 0 0 1px rgba(120,80,30,.25), inset 0 0 18px rgba(140,95,40,.25); }
.board li:nth-child(odd) { transform: rotate(-.5deg); } .board li:nth-child(even) { transform: rotate(.45deg); }
.board li::before { content: ""; position: absolute; top: -5px; left: 50%; width: 11px; height: 11px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff1c4, #d99b2b 55%, #7a5212); box-shadow: 0 2px 3px rgba(0,0,0,.5); }
.board .tag { width: 58px; height: 58px; flex-shrink: 0; display: grid; place-items: center; text-align: center; padding: 0 4px; border-radius: 50%;
  font: 800 8.5px/1.1 "Cinzel", serif; letter-spacing: .04em; text-transform: uppercase; color: #fff4dc;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--seal, #9b2c2c) 65%, #fff 20%), var(--seal, #9b2c2c) 55%, color-mix(in srgb, var(--seal, #9b2c2c) 70%, #000));
  box-shadow: 0 2px 4px rgba(0,0,0,.4), inset 0 0 0 3px rgba(0,0,0,.15), inset 0 0 0 5px rgba(255,255,255,.08); }
.board .tag { width: 52px; height: 52px; }
.board a { font: 600 15px/1.35 var(--sans); color: var(--ink-brown); }
.board a:hover { color: #8a3b0f; }
.board time { font: 600 12px var(--sans); color: #7a6239; }
.board .pin { color: #b0761a; }
.board .muted { background: none; box-shadow: none; color: var(--muted); transform: none; }
.board .muted::before { display: none; }

/* hall of heroes: carved stone pillars, laurel and light for the champion */
.stone .p { position: relative; }
.stone .step { position: relative; border-radius: 6px 6px 2px 2px !important; font-size: 22px !important;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.35), inset 0 -6px 10px rgba(0,0,0,.35), 0 8px 14px rgba(0,0,0,.5);
  background-blend-mode: multiply; }
.stone .step::after { content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: .35; mix-blend-mode: multiply;
  background: repeating-linear-gradient(115deg, rgba(0,0,0,.18) 0 2px, transparent 2px 9px), repeating-linear-gradient(25deg, rgba(0,0,0,.12) 0 1px, transparent 1px 7px); }
.stone .p1::before { content: ""; position: absolute; left: 50%; bottom: 40px; width: 180px; height: 180px; transform: translateX(-50%); pointer-events: none; z-index: -1;
  background: conic-gradient(from 0deg, transparent 0 8deg, rgba(255,220,130,.22) 10deg 14deg, transparent 16deg 38deg, rgba(255,220,130,.18) 40deg 44deg, transparent 46deg 68deg,
    rgba(255,220,130,.22) 70deg 74deg, transparent 76deg 98deg, rgba(255,220,130,.18) 100deg 104deg, transparent 106deg 360deg);
  -webkit-mask: radial-gradient(circle, #000 20%, transparent 70%); mask: radial-gradient(circle, #000 20%, transparent 70%); animation: spin 26s linear infinite; }
@keyframes spin { to { transform: translateX(-50%) rotate(360deg); } }
.laurel { width: 58px; height: 29px; margin-bottom: -4px; filter: drop-shadow(0 0 6px rgba(240,189,79,.6)); }
.stone .p a { color: #fff0cf; }

/* adventurers online: crystal orb + party list */
.orb { position: relative; width: 112px; height: 112px; margin: 2px auto 14px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: radial-gradient(circle at 35% 28%, rgba(255,255,255,.75), rgba(255,190,170,.35) 18%, rgba(190,40,40,.55) 48%, rgba(90,16,22,.95) 78%);
  box-shadow: inset 0 -10px 20px rgba(0,0,0,.45), inset 0 6px 14px rgba(255,255,255,.25), 0 0 0 3px rgba(240,189,79,.55), 0 0 30px rgba(210,60,50,.45); }
.orb-glow { position: absolute; inset: -14px; border-radius: 50%; background: radial-gradient(circle, rgba(220,70,55,.35), transparent 65%); animation: breathe 3.2s ease-in-out infinite; z-index: -1; }
@keyframes breathe { 50% { transform: scale(1.12); opacity: .6; } }
.orb b { font: 800 40px/1 "Cinzel", serif; color: #fff; text-shadow: 0 2px 8px rgba(110,10,16,.9); }
.orb small { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #ffd0c8; }
.party { display: flex; flex-direction: column; gap: 8px; }
.party li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; font-size: 13.5px; color: var(--ink-2); }
.party li b { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.party .hp { grid-column: 1 / -1; height: 4px; border-radius: 3px; background: rgba(0,0,0,.45); box-shadow: inset 0 0 0 1px rgba(240,189,79,.2); overflow: hidden; }
.party .hp i { display: block; height: 100%; background: linear-gradient(90deg, #3fbf6a, #a6e36a); }
.party .muted { display: block; }

/* stat tiles with drawn icons */
.fantasy .t-stat { flex-direction: row; align-items: center; justify-content: flex-start; gap: 16px; padding: 20px 22px; }
.fantasy .t-stat > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fantasy .t-stat span { color: #b9a982; }
.ico { width: 48px; height: 48px; flex-shrink: 0; filter: drop-shadow(0 3px 4px rgba(0,0,0,.5)); }
.engraved { font-size: 26px !important; letter-spacing: .02em; color: #ffe3a3;
  text-shadow: 0 1px 0 #6b4a12, 0 2px 0 #3a2706, 0 3px 6px rgba(0,0,0,.6); display: inline-flex; align-items: center; gap: 8px; }
.flag-my { width: 24px; height: 12px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.3); }
.hourglass { animation: flip 6s ease-in-out infinite; }
@keyframes flip { 0%, 80% { transform: rotate(0); } 90%, 100% { transform: rotate(180deg); } }
.compass .needle { transform-origin: 24px 24px; animation: sway 5s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(-14deg); } 50% { transform: rotate(18deg); } }
.glowtxt { font: 700 20px "Cinzel", serif; color: #ffdb84; text-shadow: 0 0 10px rgba(255,200,90,.7); animation: glow 2.4s ease-in-out infinite; }
@keyframes glow { 50% { text-shadow: 0 0 18px rgba(255,200,90,1); } }
.chest { animation: rattle 4s ease-in-out infinite; }
@keyframes rattle { 0%, 88%, 100% { transform: rotate(0); } 91% { transform: rotate(-5deg); } 94% { transform: rotate(5deg); } 97% { transform: rotate(-3deg); } }

@media (max-width: 900px) {
  .fantasy .tile { transform: none; }
  .board .tag { width: 46px; height: 46px; font-size: 7.5px; }
  .board li { grid-template-columns: auto 1fr; }
  .board li a { grid-column: 2; grid-row: 1; }
  .board li time { grid-column: 2; grid-row: 2; justify-self: start; }
}
/* wax seal as a pill so long tags (MAINTENANCE) fit */
.board .tag, .board .tag { width: auto; height: 26px; padding: 0 12px; border-radius: 999px; font-size: 9.5px; letter-spacing: .08em; white-space: nowrap; }
@media (max-width: 900px) { .board .tag { width: auto; height: 24px; font-size: 8.5px; } }

/* ===== hall of heroes: top 10 list ===== */
.heroes { display: flex; flex-direction: column; gap: 4px; counter-reset: none; }
.heroes li { display: grid; grid-template-columns: 30px 22px 1fr auto auto; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 8px;
  background: rgba(255,255,255,.025); border: 1px solid transparent; transition: background .2s, border-color .2s; }
.heroes li:hover { background: rgba(240,189,79,.07); border-color: rgba(240,189,79,.25); }
.heroes .rk { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font: 700 12.5px/1 "Cinzel", serif; color: #c9b98f;
  background: rgba(0,0,0,.35); box-shadow: inset 0 0 0 1px rgba(240,189,79,.25); }
.heroes .h1 .rk, .heroes .h2 .rk, .heroes .h3 .rk { width: 28px; height: 30px; border-radius: 6px 6px 50% 50% / 6px 6px 60% 60%; font-size: 14px; color: #2a1903;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 2px 4px rgba(0,0,0,.5); }
.heroes .h1 .rk { background: linear-gradient(180deg, #ffe9a8, #f0bd4f 50%, #b47a14); }
.heroes .h2 .rk { background: linear-gradient(180deg, #ffffff, #e0cfc4 50%, #a68d80); color: #2a0d10; }
.heroes .h3 .rk { background: linear-gradient(180deg, #ffd0a6, #d08a4f 50%, #8c4f22); }
.heroes .h1 { background: linear-gradient(90deg, rgba(240,189,79,.14), rgba(240,189,79,.02)); border-color: rgba(240,189,79,.3); }
.heroes img, .heroes .noicon { width: 22px; height: 22px; border-radius: 6px; }
.heroes .noicon { display: block; background: radial-gradient(circle at 35% 35%, rgba(240,189,79,.5), rgba(240,189,79,.08)); box-shadow: inset 0 0 0 1px rgba(240,189,79,.3); }
.heroes a { font-weight: 600; font-size: 14px; color: #fff0cf; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.heroes a:hover { color: #ffdb84; }
.heroes em { font-style: normal; font-size: 12.5px; color: #b8a294; }
.heroes b { font: 700 13px "Cinzel", serif; color: #ffe3a3; min-width: 52px; text-align: right; }
.heroes-wrap .empty { padding: 30px 0; text-align: center; }

/* ===== game-window frame on every card outside the bento ===== */
.win { position: relative; }
.hero-panel.win, .form.win, .footer-cta.win {
  background: linear-gradient(180deg, rgba(64,14,20,.92), rgba(42,10,14,.94)); border: 0; border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), inset 0 -3px 0 rgba(0,0,0,.45), inset 0 0 0 1.5px rgba(240,189,79,.35), 0 2px 0 #100306, 0 22px 44px rgba(0,0,0,.55); }
.form.win::before { padding: 1.5px; background: linear-gradient(160deg, rgba(240,189,79,.55), rgba(240,189,79,.12) 35%, rgba(240,189,79,.08) 65%, rgba(240,189,79,.55)); }
.form.win { padding-top: 0; }
.win > .bar { margin: 0 -28px 6px; padding: 14px 28px 12px; border-bottom: 1px solid rgba(240,189,79,.35);
  background: linear-gradient(180deg, rgba(240,189,79,.14), rgba(240,189,79,.02)); border-radius: 14px 14px 0 0; position: relative; }
.win > .bar::after { content: "◆"; position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); font-size: 10px; color: #f0bd4f; text-shadow: 0 0 6px rgba(240,189,79,.8); }
.win > .bar h3 { font: 700 16px/1.2 "Cinzel", serif; letter-spacing: .06em; color: #ffe3a3; text-shadow: 0 1px 0 #000; margin: 0; }
.hero-panel.win .kicker { color: #f0bd4f; }
.rules { background: rgba(0,0,0,.3); border-color: rgba(240,189,79,.2); }
@media (max-width: 900px) { .win > .bar { margin: 0 -22px 6px; padding: 14px 22px 12px; } }
.heroes li { grid-template-columns: 30px 22px minmax(0, 1fr) auto; }

/* ===== adventurers online: compact summary + roster ===== */
.online-sum { display: flex; align-items: center; gap: 16px; padding: 4px 2px 14px; margin-bottom: 6px; border-bottom: 1px solid rgba(240,189,79,.18); }
.orb.sm { width: 64px; height: 64px; margin: 0; flex-shrink: 0; box-shadow: inset 0 -6px 12px rgba(0,0,0,.45), inset 0 4px 10px rgba(255,255,255,.25), 0 0 0 2px rgba(240,189,79,.6), 0 0 18px rgba(210,60,50,.45); }
.orb.sm b { font-size: 26px; }
.orb.sm .orb-glow { inset: -8px; }
.online-sum p { display: flex; flex-direction: column; margin: 0; }
.online-sum p b { font: 700 17px "Cinzel", serif; color: #ffe3a3; letter-spacing: .03em; }
.online-sum p span { font-size: 13px; color: #b8a294; }
.roster { display: flex; flex-direction: column; gap: 2px; background: none; border: 0; padding: 0; }
.roster li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; transition: background .2s; }
.roster li:hover { background: rgba(240,189,79,.07); }
.roster .av { position: relative; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font: 700 13px "Cinzel", serif; color: #2a1903;
  background: linear-gradient(180deg, #ffe9a8, #c88a1c); box-shadow: 0 0 0 1.5px rgba(255,227,163,.5), 0 2px 4px rgba(0,0,0,.5); }
.roster .av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.roster .av i { position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 2px #300b10; }
.roster .who { display: flex; flex-direction: column; min-width: 0; }
.roster .who a { font-weight: 600; font-size: 14px; color: #fff0cf; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roster .who a:hover { color: #ffdb84; }
.roster .who small { font-size: 12px; color: #a99083; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.roster .lv { font: 700 12px "Cinzel", serif; color: #ffe3a3; padding: 4px 9px; border-radius: 999px; background: rgba(0,0,0,.35); box-shadow: inset 0 0 0 1px rgba(240,189,79,.3); }
.roster .more-row { display: block; text-align: center; font-size: 13px; color: #b8a294; padding: 8px; }
.roster .muted { display: block; padding: 16px 4px; }
/* notice board fills the tile: list on top, Discord call-out pinned to the bottom */
.fantasy .t-news { display: flex; flex-direction: column; }
.board-foot { margin-top: auto; display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 10px;
  background: linear-gradient(90deg, rgba(88,101,242,.22), rgba(88,101,242,.06)); box-shadow: inset 0 0 0 1px rgba(255,170,150,.35); transition: background .2s; }
.board-foot:hover { background: linear-gradient(90deg, rgba(88,101,242,.32), rgba(88,101,242,.1)); }
.board-foot svg { width: 30px; height: 30px; fill: #aab3ff; flex-shrink: 0; }
.board-foot span { display: flex; flex-direction: column; min-width: 0; }
.board-foot b { font: 700 14px "Cinzel", serif; color: #f6e3d8; letter-spacing: .03em; }
.board-foot small { font-size: 12.5px; color: #cdb3a3; }
.board-foot em { margin-left: auto; font-style: normal; font-weight: 600; font-size: 13px; color: #f3d7c4; white-space: nowrap; }
.board { margin-bottom: 16px; }

/* =====================================================================
   FRAME A · ROYAL GILDED (thin): slim gold gradient border with a double
   inner line, filigree corners with a sapphire, small ruby studs, and the
   round ArjunaRO emblem as the crest on titled cards.
   ===================================================================== */
.win, .fantasy .tile {
  border: 2.5px solid transparent !important;
  background:
    linear-gradient(180deg, #3a0d12, #2a0a0e) padding-box,
    linear-gradient(145deg, #fff0bf, #e6b44a 18%, #8f5f12 38%, #f6d27a 55%, #a87418 75%, #ffe6a3) border-box !important;
  box-shadow: inset 0 0 0 1px rgba(255,227,163,.45), inset 0 0 0 4px #2a0a0e, inset 0 0 0 5px rgba(240,189,79,.28),
              inset 0 10px 30px rgba(0,0,0,.35), 0 2px 0 #100306, 0 22px 44px rgba(0,0,0,.55) !important;
}
.fantasy .tile::before, .form.win::before { display: none; }
.fantasy .tile:hover { background:
    linear-gradient(180deg, #45101a, #2d0a0f) padding-box,
    linear-gradient(145deg, #fff0bf, #e6b44a 18%, #8f5f12 38%, #f6d27a 55%, #a87418 75%, #ffe6a3) border-box !important; }

/* filigree corners (gold scroll + sapphire), smaller than the comparison sample */
.cn { width: 30px; height: 30px; z-index: 3;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 46 46'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23fff0bf'/%3E%3Cstop offset='.45' stop-color='%23e6b44a'/%3E%3Cstop offset='1' stop-color='%238f5f12'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M3 43V14C3 7.9 7.9 3 14 3h29' fill='none' stroke='url(%23g)' stroke-width='3'/%3E%3Cpath d='M9 43V18c0-5 4-9 9-9h25' fill='none' stroke='url(%23g)' stroke-width='1.2' opacity='.8'/%3E%3Cpath d='M14 22c0-5 3-8 8-8M22 14c-4 3-5 7-3 11M14 22c3-1 6 0 8 3' fill='none' stroke='url(%23g)' stroke-width='1.6' stroke-linecap='round'/%3E%3Ccircle cx='14' cy='14' r='4' fill='%23b3151f' stroke='url(%23g)' stroke-width='2'/%3E%3Ccircle cx='12.8' cy='12.8' r='1.2' fill='%23ffd0c8'/%3E%3C/svg%3E") center / contain no-repeat; }
.cn.tl { top: -5px; left: -5px; } .cn.tr { top: -5px; right: -5px; } .cn.bl { bottom: -5px; left: -5px; } .cn.br { bottom: -5px; right: -5px; }

/* ruby studs on the side edges */
.stud { position: absolute; top: 50%; width: 10px; height: 10px; border-radius: 50%; transform: translateY(-50%); z-index: 3; pointer-events: none;
  background: radial-gradient(circle at 35% 30%, #ffb3b3, #d0262f 45%, #5a0b10); box-shadow: 0 0 0 1.5px #f0bd4f, 0 0 6px rgba(208,38,47,.65); }
.stud.l { left: -6px; } .stud.r { right: -6px; }

/* crest: round emblem sitting on the top edge, centred over the title bar */
.bar { position: relative; }
.crest { position: absolute; top: -27px; left: 50%; width: 42px; height: 42px; transform: translateX(-50%); z-index: 4; border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 0 2px #f0bd4f, 0 0 0 4px rgba(42,10,14,.9), 0 0 0 5px rgba(240,189,79,.5), 0 6px 12px rgba(0,0,0,.6), 0 0 18px rgba(240,189,79,.35); }
.fantasy .tile:has(.crest), .form.win:has(.crest) { margin-top: 14px; }
.fantasy .bar, .win > .bar { padding-top: 22px; }
.fantasy .bar::after, .win > .bar::after { display: none; }
.t-stat .stud { display: none; }
.stud { display: none !important; }
.form.win > .bar { display: block; text-align: center; }
.form.win > .bar h3 { text-align: center; }

/* =====================================================================
   FINAL TUNING: one fantasy voice. Cinzel for headings and numbers,
   Inter for reading. Palette: night blue + gold + warm parchment cream.
   ===================================================================== */
:root {
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --ink: #f4ecd6;
  --ink-2: #cfc4a8;
  --muted: #8e8670;
  --violet: #c9952e;
  --pink: #f0bd4f;
  --grad: linear-gradient(180deg, #fff3cf 0%, #ffdb84 40%, #f0bd4f 70%, #b47a14 100%);
}
.mesh i:nth-child(1) { background: #7a1418; opacity: .22; }
.mesh i:nth-child(2) { background: #b8861d; opacity: .10; }
.mesh i:nth-child(3) { background: #5a1218; opacity: .18; }

/* headings */
.hero h1, .block-head h2 { font-family: var(--display); letter-spacing: .01em; font-weight: 700; }
.hero h1 { font-size: clamp(24px, 2.4vw, 34px); color: #f7efd9; }
.block-head h2 { color: #f7efd9; text-shadow: 0 2px 14px rgba(0,0,0,.6); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub, .stepper small, .chips li { color: var(--ink-2); }

/* small labels: gold with diamonds */
.kicker { color: #f0bd4f; display: inline-flex; align-items: center; gap: 10px; }
.kicker::before, .kicker::after { content: "◆"; font-size: 8px; opacity: .8; }
.hero .kicker::before { display: none; }

/* links and icons */
.more, .footer .links a, .links a { transition: color .15s; }
.more:hover, .footer .links a:hover, .links a:hover { color: #ffdb84; }
.chips svg { fill: #f0bd4f; }
.chips li { border-color: rgba(240,189,79,.25); background: rgba(42,10,14,.6); }

/* stepper in gold */
.stepper::before { background: linear-gradient(90deg, transparent, #f0bd4f, transparent); opacity: .7; }
.stepper span { color: #ffe3a3; background: #2a0a0e; border-color: rgba(240,189,79,.7); box-shadow: 0 0 0 6px rgba(240,189,79,.10); }
.stepper b { font-family: var(--display); color: #ffe3a3; }

/* form focus + messages */
.form input:focus { border-color: #f0bd4f; box-shadow: 0 0 0 3px rgba(240,189,79,.22); }
.form-foot a, .form-closed a { color: #ffdb84; }

/* online chip + notice keep their colours; footer text warm */
.legal { color: #8e8670; }
.footer-cta-text b { font-family: var(--display); color: #ffe3a3; }
@media (max-width: 900px) { .stepper::before { background: linear-gradient(180deg, transparent, #f0bd4f, transparent); } }
.hero .kicker::after { display: none; }
/* final polish */
.footer .links a { display: inline-block !important; }
.board .pin { margin-right: 6px; }
@media (max-width: 1280px) and (min-width: 901px) {
  .fantasy .bar h3 { font-size: 13px; }
  .fantasy .bar .more { font-size: 12px; white-space: nowrap; }
  .fantasy .bar { gap: 8px; }
}
@media (max-width: 900px) {
  .tile { flex-basis: 88%; }
  .board li { grid-template-columns: 1fr auto; row-gap: 6px; }
  .board li .tag { grid-column: 1; grid-row: 1; justify-self: start; }
  .board li time { grid-column: 2; grid-row: 1; justify-self: end; }
  .board li a { grid-column: 1 / -1; grid-row: 2; }
  .fantasy .bar h3 { font-size: 13.5px; }
  .fantasy .bar .more { font-size: 12px; white-space: nowrap; }
  .board-foot small { display: none; }
}

/* =====================================================================
   LARGE SCREENS: scale the whole page up a step per screen class so it
   fills 1440p / 4K like it does a laptop, and never stretch the hero art
   past its own 2000px width (it fades into the background at the sides).
   ===================================================================== */
@media (min-width: 1800px) {
  body { zoom: 1.12; }
  .hero-art { max-width: calc(2000px / 1.12); margin: 0 auto; }
  .hero-art img { -webkit-mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
}
@media (min-width: 2200px) {
  body { zoom: 1.3; }
  .hero-art { max-width: calc(2000px / 1.3); }
}
@media (min-width: 3000px) {
  body { zoom: 1.6; }
  .hero-art { max-width: calc(2000px / 1.6); }
}

/* hero polish: panel only kisses the bottom edge of the art; headline on one line on wide screens */
.notice[hidden] + .hero-panel { margin-top: -22px; }
.hero-copy { flex: 1; min-width: 0; }
@media (min-width: 1280px) {
  .hero h1 { white-space: nowrap; font-size: clamp(24px, 2.05vw, 31px); }
}
@media (max-width: 900px) { .notice[hidden] + .hero-panel { margin-top: -14px; } }

/* pre-launch banner in the hero panel */
.phase { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 8px 12px; border-radius: 10px;
  background: rgba(240,189,79,.10); box-shadow: inset 0 0 0 1px rgba(240,189,79,.35); font-size: 13.5px; color: #e4d9bb; }
.phase b { flex-shrink: 0; font: 700 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #1b1206;
  padding: 6px 10px; border-radius: 999px; background: linear-gradient(180deg, #ffdb84, #f0bd4f); }
body:not([data-phase="prelaunch"]) .phase { display: none; }
.live-chip.pre i { background: #f0bd4f; }
.live-chip.pre i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #f0bd4f; animation: ping 1.8s ease-out infinite; }
.live-chip.pre b { color: #ffdb84; }

/* password strength */
.pw-meter { display: flex; align-items: center; gap: 10px; margin-top: -6px; font-size: 12.5px; color: var(--ink-2); }
.pw-meter i { position: relative; flex: 1; height: 5px; border-radius: 3px; background: rgba(0,0,0,.4); overflow: hidden; }
.pw-meter i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 3px; transition: width .2s, background .2s; }
.pw-meter.l1 i::after { width: 20%; background: #e05757; }
.pw-meter.l2 i::after { width: 45%; background: #e08a2c; }
.pw-meter.l3 i::after { width: 72%; background: #f0bd4f; }
.pw-meter.l4 i::after { width: 100%; background: #3fbf6a; }
.pw-meter span { white-space: nowrap; }
@media (max-width: 900px) { .phase { align-items: flex-start; } }
/* password meter: hint only until the player types; then a full-width bar with the verdict under it */
.pw-meter { flex-direction: column; align-items: stretch; gap: 6px; margin-top: -4px; }
.pw-meter i { flex: none; width: 100%; height: 4px; }
.pw-meter:not(.l1):not(.l2):not(.l3):not(.l4) i { display: none; }
.pw-meter span { color: #b8a294; font-size: 12.5px; white-space: normal; }
.pw-meter.l1 span { color: #ff9a9a; } .pw-meter.l2 span { color: #f0a85a; }
.pw-meter.l3 span { color: #ffdb84; } .pw-meter.l4 span { color: #6fdca3; }
/* keep the bar visible at all times as a faint full-width track (fills with colour as the player types) */
.pw-meter:not(.l1):not(.l2):not(.l3):not(.l4) i { display: block; }
.pw-meter i { background: rgba(240,189,79,.12); box-shadow: inset 0 0 0 1px rgba(240,189,79,.22); }
