/* Chess Arena website — Ivan's design (Oct 15 mock-ups): his arena hall
   behind the whole site, gold 3D headings, glowing gold-rimmed panels with
   his round gold icons. Built by tools/build_site.js. */

@font-face { font-family: 'Fraunces'; src: url('fonts/fraunces-900.woff2') format('woff2'); font-weight: 900; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('fonts/fraunces-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Alegreya'; src: url('fonts/alegreya-latin-400.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Alegreya'; src: url('fonts/alegreya-latin-ext-400.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Alegreya'; src: url('fonts/alegreya-cyrillic-400.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Alegreya'; src: url('fonts/alegreya-latin-500.woff2') format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Alegreya'; src: url('fonts/alegreya-latin-ext-500.woff2') format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Alegreya'; src: url('fonts/alegreya-cyrillic-500.woff2') format('woff2'); font-weight: 500; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Alegreya'; src: url('fonts/alegreya-latin-700.woff2') format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Alegreya'; src: url('fonts/alegreya-latin-ext-700.woff2') format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Alegreya'; src: url('fonts/alegreya-cyrillic-700.woff2') format('woff2'); font-weight: 700; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

/* layout: the hall stays still behind everything; content in a 1180px column */
:root {
  --hall: #0B0604;            /* the room in the dark */
  --panel: rgba(18, 10, 5, 0.72);
  --panel-solid: #160D07;
  --line: rgba(232, 182, 92, 0.55);
  --line-soft: rgba(232, 182, 92, 0.25);
  --gold: #F2C765;
  --gold-hi: #FFE9A8;
  --gold-deep: #B9821F;
  --ivory: #F5EBD8;
  --ivory-dim: #CDBB98;

  --display: 'Fraunces', 'Georgia', 'Times New Roman', serif;
  --body: 'Alegreya', 'Georgia', 'Times New Roman', serif;

  --step--1: 0.88rem;
  --step-0: 1rem;
  --step-1: 1.15rem;
  --step-2: clamp(1.7rem, 1.2rem + 1.5vw, 2.6rem);
  --step-3: clamp(2.2rem, 1.2rem + 2.6vw, 3.7rem);

  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--hall);
  color: var(--ivory);
  font: 400 var(--step-0)/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* the hall: a fixed layer (works on iPhones too, unlike background-attachment) */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -2;
  background: url('img/hall.webp') center 40% / cover no-repeat;
}
body::after {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8,4,2,0.82) 0%, rgba(8,4,2,0.55) 45%, rgba(8,4,2,0.25) 75%, rgba(8,4,2,0.45) 100%),
    linear-gradient(180deg, rgba(8,4,2,0.15), rgba(8,4,2,0.1) 30%, rgba(8,4,2,0.55));
}
body.text-page::after { background: rgba(8,4,2,0.84); }
@media (max-width: 820px) {
  body::before { background-image: url('img/hall-s.webp'); background-position: 62% center; }
  body::after { background: linear-gradient(180deg, rgba(8,4,2,0.72), rgba(8,4,2,0.62) 40%, rgba(8,4,2,0.8)); }
}

img { max-width: 100%; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-hi); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap {
  max-width: 1080px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { font-family: var(--display); font-weight: 900; line-height: 1.05; text-wrap: balance; margin: 0; }
p { margin: 0; }

/* gold 3D lettering, as in the mock-ups */
.gold, .gold-lines > span {
  color: var(--gold);
  /* each line is painted on its own, so every line gets the full shine;
     the padding keeps the tails of g, y, p inside the painted area */
  display: inline-block; padding: 0.04em 0.08em 0.16em 0.02em; margin: -0.04em -0.08em -0.16em -0.02em;
  background: linear-gradient(180deg, #FFFBEA 0%, #FFEDB0 20%, #F8CF66 42%, #E0A235 58%, #C27F1D 70%, #EDBB55 84%, #FFE9A3 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 #4A2A06) drop-shadow(0 4px 6px rgba(0,0,0,0.6)) drop-shadow(0 0 22px rgba(255,200,100,0.45));
}
.gold-lines { display: grid; justify-items: start; }
.centered .gold-lines, .band-head.centered h2 { justify-items: center; }
.gold.pale { background: linear-gradient(180deg, #FFFFFF 0%, #FFF4DC 45%, #EED39C 75%, #FBEBC4 100%); -webkit-background-clip: text; background-clip: text; }
.hero h1 .gold { padding-bottom: 0.1em; margin-bottom: -0.1em; }
h2.gold, h2.gold-lines { font-size: clamp(2rem, 1.3rem + 2vw, 3.2rem); }
h3 { font-family: var(--display); font-weight: 700; color: var(--gold); font-size: var(--step-1); line-height: 1.15; }

/* eyebrow with the fine gold rule and diamond */
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--body); font-weight: 500; font-size: 0.82rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ivory);
}
.eyebrow .lbl { white-space: nowrap; }
.rule { position: relative; min-width: 40px; height: 1px; flex: 0 1 130px; background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent); }
.rule::after { content: ''; position: absolute; left: 50%; top: -3px; width: 7px; height: 7px; background: var(--gold-hi); transform: translateX(-50%) rotate(45deg); box-shadow: 0 0 8px var(--gold); }
.centered { text-align: center; justify-content: center; }
.crown { width: 52px; margin: 0 auto -4px; }

/* ---- header ---- */
.top { position: relative; z-index: 10; background: none; }
.nav a:not(.pill-gold) { text-shadow: 0 1px 2px rgba(0,0,0,0.9), 0 0 12px rgba(0,0,0,0.85); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-weight: 900; font-size: 1.55rem; }
.brand img { width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 0 14px rgba(242,199,101,0.35); }
.nav { display: flex; align-items: center; gap: 26px; font-size: 1rem; }
.nav a { color: var(--ivory); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); }
.pill-gold {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap;
  padding: 9px 28px; border-radius: 999px; font-weight: 700; font-size: 1rem; color: #2A1606 !important;
  background: linear-gradient(180deg, #FFE7A0, #F2BF4E 50%, #D99A27);
  border: 1px solid #FFE6A4;
  box-shadow: 0 0 0 1px #6B4110, 0 0 18px rgba(255,190,80,0.45);
}
.pill-gold:hover { filter: brightness(1.06); }
.pill-gold svg { width: 15px; height: 15px; }
@media (max-width: 900px) { .nav { gap: 18px; font-size: 1rem; } .nav .hide-m { display: none; } }
@media (max-width: 560px) {
  .brand { font-size: 1.3rem; } .brand img { width: 40px; height: 40px; }
  .nav .hide-s { display: none; }
  .pill-gold { padding: 8px 16px; font-size: 0.95rem; }
}

/* ---- buttons ---- */
.btn-store {
  display: inline-flex; align-items: center; gap: 18px; text-decoration: none;
  padding: 10px 20px 10px 22px; border-radius: 999px; color: var(--gold-hi);
  background: linear-gradient(180deg, rgba(40,22,8,0.92), rgba(14,8,3,0.95));
  border: 2px solid #F0C463;
  box-shadow: 0 0 0 1px #5E3A0E, 0 0 26px rgba(255,190,80,0.45), inset 0 0 18px rgba(255,200,100,0.12);
}
.btn-store:hover { color: #fff; }
.btn-store .apple { width: 22px; height: 27px; fill: var(--ivory); flex: none; }
.btn-store .t { display: grid; line-height: 1.2; }
.btn-store .t b { font-family: var(--display); font-weight: 700; font-size: 1.02rem; color: var(--gold); }
.btn-store .t span { color: var(--ivory); font-size: 0.82rem; }
.btn-store .chev { width: 14px; height: 22px; stroke: var(--ivory); fill: none; stroke-width: 2.4; margin-left: 6px; }
.btn-store.soon { cursor: default; }
.btn-line {
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
  padding: 13px 30px; border-radius: 999px; font-family: var(--display); font-weight: 700; font-size: 1rem; color: var(--ivory);
  background: rgba(12,6,2,0.7); border: 2px solid #E9BC5C; box-shadow: 0 0 16px rgba(255,190,80,0.25);
}
.btn-line:hover { color: var(--gold-hi); }

/* ---- hero ---- */
.hero .wrap { display: grid; grid-template-columns: 1.45fr 0.55fr; gap: 40px; align-items: center; padding-block: 18px 20px; }
.hero .intro { width: fit-content; max-width: 100%; }
.hero .intro .crown { margin: 0 auto -4px; }
.hero .eyebrow { margin-top: 2px; }
.eyebrow.framed { position: relative; justify-content: center; padding: 9px 26px 11px; margin-top: 0; font-size: 0.9rem; letter-spacing: 0.26em; }
.eyebrow.framed::before, .eyebrow.framed::after { content: ''; position: absolute; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent); }
.eyebrow.framed::before { top: 0; }
.eyebrow.framed::after { bottom: 0; }
.hero .intro .crown { position: relative; z-index: 1; }
.framed + h1 { position: relative; }
.eyebrow.framed .dia { position: absolute; left: 50%; bottom: -3px; width: 7px; height: 7px; background: var(--gold-hi); transform: translateX(-50%) rotate(45deg); box-shadow: 0 0 8px var(--gold); }
.hero h1 { font-size: var(--step-3); margin-top: 12px; display: grid; }
@media (min-width: 900px) { .hero h1 span { white-space: nowrap; } }
.hero .lead { margin-top: 10px; padding-top: 14px; position: relative; font-size: 1.08rem; max-width: 36em; }
.hero .lead::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent); }
.hero .lead b { color: var(--gold); font-weight: 700; }
.hero .cta { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.perks { margin-top: 26px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 560px; }
.perk { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 0 8px; font-family: var(--display); font-weight: 700; font-size: 0.9rem; line-height: 1.15; color: var(--ivory); }
.perk + .perk { border-left: 1px solid var(--line-soft); }
.perk img { width: 52px; height: 52px; }
.down { display: block; width: 40px; margin: 6px auto 0; color: var(--gold); text-align: center; }
.down svg { width: 34px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2.4; }

/* the headline block is Ivan's own art, cut from his picture (Oct 15):
   crown, eyebrow, gold title and ornament line; the text below is live */
.hero .intro { width: min(616px, 100%); }
.hero .intro .headline-img { margin: 0; line-height: 0; }
.hero .intro .headline-img img { width: 100%; height: auto; }
.hero .intro .lead { margin: 6px 0 0 3%; padding-top: 0; max-width: none; color: #F3EBDD; font-size: 1.25rem; line-height: 1.45; }
.hero .intro .lead::before { content: none; }
.hero .intro .lead b { color: #F7C531; font-weight: 600; }
@media (max-width: 700px) { .hero .intro .lead .br-d, .hero .intro .lead br { display: none; } .hero .intro .lead { margin-left: 0; } }

/* header from Ivan's picture (Oct 15): logo, links, Download button and the
   gold line with its ornament are his art */
.top .wrap { flex-wrap: wrap; row-gap: 0; padding-block: 8px 0; }
.brand-img img { width: 305px; height: auto; }
.top .nav { gap: 30px; }
.nav-img img { height: 24px; width: auto; }
.nav-img:hover img, .nav-img[aria-current="page"] img { filter: brightness(1.25) sepia(0.6) saturate(2.2) hue-rotate(-8deg); }
.dl-img { margin-left: 0; }
.dl-img img { width: 196px; height: auto; filter: drop-shadow(0 0 10px rgba(255,190,80,0.35)); }
.dl-img:hover img { filter: brightness(1.07) drop-shadow(0 0 12px rgba(255,190,80,0.5)); }
.hdr-line { flex: 0 0 auto; width: calc(100% + 40px); max-width: none; height: auto; margin: -9px -20px 0; }
@media (max-width: 900px) { .brand-img img { width: 230px; } .dl-img img { width: 160px; } .top .nav { gap: 22px; } }
@media (max-width: 560px) { .brand-img img { width: 190px; } .dl-img img { width: 128px; } .top .wrap { column-gap: 8px; } }

/* the Download box */
.dl-box { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(4,2,1,0.78); }
.dl-box[hidden] { display: none; }
.dl-panel {
  position: relative; width: min(420px, 100%); padding: 30px 26px 26px; border-radius: 16px; text-align: center;
  background: linear-gradient(180deg, rgba(14,8,4,0.97), rgba(8,4,2,0.98));
  border: 2px solid #F0C566; box-shadow: 0 0 0 1px #3B250A, 0 0 28px rgba(255,195,90,0.5), 0 0 60px rgba(255,180,70,0.2);
}
.dl-panel::before { content: ''; position: absolute; inset: 4px; border-radius: 12px; border: 1px solid rgba(255,225,150,0.75); pointer-events: none; }
.dl-panel h2 { font-size: 1.7rem; }
.dl-list { display: grid; gap: 12px; margin-top: 20px; }
.dl-list .btn-store { justify-content: flex-start; }
.dl-list .btn-store .t { justify-items: start; text-align: left; }
.dl-list .btn-store .chev { margin-left: auto; }
.dl-close { position: absolute; top: 10px; right: 14px; z-index: 1; background: none; border: 0; color: var(--gold); font-size: 1.8rem; line-height: 1; cursor: pointer; }

/* the phone is Ivan's picture (Oct 15) with the game screen set into it */
.hero .wrap { grid-template-columns: minmax(0, 616px) 1fr; }
.phone-img { justify-self: center; }
.phone-img img { width: 360px; height: auto; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .phone-img img { width: min(300px, 78vw); } }

/* section headings made from Ivan's art (Oct 15): crown, gold title and
   ornament lines are his picture; the text under it is live */
.art-head { text-align: center; margin-bottom: 26px; }
.art-head h2 { margin: 0 auto; width: min(800px, 100%); line-height: 0; }
.art-head h2 img { width: 100%; height: auto; }
.art-head.wide h2 { width: min(920px, 100%); }
.art-head.look h2 { width: min(700px, 100%); }
.art-head.look { margin-bottom: 6px; }
.art-head p { margin: 10px auto 0; max-width: 46em; color: #F3EBDD; font-size: 1.22rem; line-height: 1.6; }
@media (max-width: 700px) { .art-head p { font-size: 1.08rem; } .art-head .br-d { display: none; } }

/* the row of tables uses the full width of the screen (up to 1480px), and
   the pictures are cut to a shorter frame without their soft top (Oct 15) */
@media (min-width: 901px) { .tables-wrap { margin-inline: calc(50% - min(740px, 50vw - 20px)); } }
.table .pic { aspect-ratio: 400 / 520; }
.table .pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 84%; }
.table .cap { padding: 11px 6px 12px; }
.table .cap .n { white-space: nowrap; font-size: min(1.1rem, calc(var(--card-w, 220px) / 10.5)); }

/* fit the top of the page in the screen (the scale is set by a small script on the home page) */
@media (min-width: 901px) { .top, .hero { zoom: var(--fit, 1); } }

.phone {
  justify-self: center; width: min(290px, 80vw); aspect-ratio: 9 / 19.5; border-radius: 44px; padding: 10px; position: relative;
  background: linear-gradient(140deg, #FFE7A8, #C9902E 18%, #6E4612 40%, #E7B85A 62%, #8E5E1C 85%, #F6D488);
  box-shadow: 0 40px 90px rgba(0,0,0,0.75), 0 0 0 2px #2A1806, inset 0 0 0 2px #1A0F06, 0 0 50px rgba(255,190,90,0.22);
  transform: perspective(1400px) rotateY(-14deg) rotateZ(2deg);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 35px; background: #000; }
.phone::before { content: ''; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 34%; height: 22px; border-radius: 14px; background: #050302; z-index: 1; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-block: 20px 36px; }
  .phone { width: min(280px, 70vw); transform: rotateZ(2deg); }
}
@media (max-width: 560px) {
  .hero .lead { font-size: 1.15rem; }
  .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .perk:nth-child(3) { border-left: 0; }
  .btn-line { padding: 14px 30px; }
}

/* ---- sections ---- */
.band { padding-block: 50px; }
.band-head { display: grid; gap: 12px; margin-bottom: 30px; justify-items: center; text-align: center; }
.band-head .crown { margin-bottom: -2px; }
.band-head .under { position: relative; width: min(420px, 70%); height: 1px; margin-top: 2px; background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent); }
.band-head .under::after { content: ''; position: absolute; left: 50%; top: -3.5px; width: 8px; height: 8px; background: var(--gold-hi); transform: translateX(-50%) rotate(45deg); box-shadow: 0 0 8px var(--gold); }
.band-head p { font-size: 1.08rem; max-width: 40em; text-align: center; margin-top: 6px; }
.band-head.centered { justify-items: center; }

/* the 24 tables (Ivan's mock-up, Oct 15): gold-framed cards with an inner
   gold line, diamond ornaments top, middle and bottom; big round arrow
   buttons either side */
.tables-wrap { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; }
.tables {
  display: grid; grid-auto-flow: column; grid-auto-columns: var(--card-w, 220px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 14px 4px 16px;
}
.tables::-webkit-scrollbar { display: none; }
.table {
  margin: 0; scroll-snap-align: start; position: relative; display: flex; flex-direction: column;
  border-radius: 16px; padding: 5px; background: #0B0603;
  border: 2px solid #F0C566;
  box-shadow: 0 0 0 1px #3B250A, 0 0 28px rgba(255,195,90,0.6), 0 0 60px rgba(255,180,70,0.25), 0 10px 30px rgba(0,0,0,0.6);
}
/* the thin inner gold line */
.table::before { content: ''; position: absolute; inset: 4px; border-radius: 12px; border: 1px solid rgba(255,225,150,0.85); pointer-events: none; z-index: 2; }
.table .pic { border-radius: 11px 11px 0 0; overflow: hidden; }
.table img { width: 100%; height: auto; display: block; }
.orn { position: absolute; left: 50%; width: 46px; height: 12px; transform: translateX(-50%); z-index: 3; pointer-events: none;
  background:
    linear-gradient(90deg, transparent, #F3CD74) left center / 17px 1px no-repeat,
    linear-gradient(90deg, #F3CD74, transparent) right center / 17px 1px no-repeat; }
.orn::after { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; transform: translate(-50%, -50%) rotate(45deg);
  border: 1px solid #FFE9A8; background: linear-gradient(135deg, #FFF6D2, #D9A13A); box-shadow: 0 0 7px rgba(255,205,100,0.95); }
.orn.top { top: -7px; }
.orn.bot { bottom: -7px; }
.orn.mid { top: -6px; }
.table .cap {
  position: relative; flex: 1; text-align: center; padding: 14px 10px 16px;
  background: linear-gradient(180deg, #1A0F08, #090503); border-top: 1px solid #E9BE62; border-radius: 0 0 11px 11px;
}
.table .n { font-family: var(--body); font-weight: 700; color: #F6D27A; font-size: 1.18rem; line-height: 1.15; text-shadow: 0 1px 2px rgba(0,0,0,0.8); }
.table .c { color: #F3E9D2; font-size: 0.92rem; margin-top: 3px; }
.table .sep { display: block; position: relative; height: 1px; margin: 9px auto 9px; width: 78%; background: linear-gradient(90deg, transparent, rgba(243,205,116,0.9), transparent); }
.table .sep::after { content: ''; position: absolute; left: 50%; top: -2.5px; width: 6px; height: 6px; background: #F3CD74; transform: translateX(-50%) rotate(45deg); box-shadow: 0 0 5px rgba(255,205,100,0.9); }
.table .bet { display: inline-flex; align-items: center; gap: 9px; font-size: 1rem; color: #F6D27A; font-variant-numeric: tabular-nums; }
.coin { width: 22px; height: 22px; flex: none;
  background: url('img/icons/coin.webp') center / contain no-repeat; filter: drop-shadow(0 0 4px rgba(255,200,90,0.55)); } /* the game's own coin */
.round {
  appearance: none; cursor: pointer; width: 34px; height: 34px; border-radius: 50%; padding: 0; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 40%, #2A1A0C, #0A0603); border: 1.5px solid #E9BE62; box-shadow: 0 0 10px rgba(255,190,80,0.35);
}
.round.big { width: 54px; height: 54px; border-width: 2px; box-shadow: 0 0 0 1px #3B250A, 0 0 16px rgba(255,195,90,0.5); }
.round svg { width: 16px; height: 16px; fill: none; stroke: #F6D27A; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.round.big svg { width: 24px; height: 24px; stroke-width: 2.6; }
.round:hover svg { stroke: var(--gold-hi); }
.scroll-note { margin-top: 14px; display: flex; justify-content: center; align-items: center; gap: 14px; font-size: 1rem; text-align: center; }
.scroll-note b { color: var(--gold); }
.scroll-note .tip { position: relative; flex: none; width: 70px; height: 1px; }
.scroll-note .tip.l { background: linear-gradient(90deg, transparent, var(--gold)); }
.scroll-note .tip.r { background: linear-gradient(90deg, var(--gold), transparent); }
.scroll-note .tip::after { content: ''; position: absolute; top: -3px; width: 6px; height: 6px; border: 1px solid var(--gold); transform: rotate(45deg); }
.scroll-note .tip.l::after { right: -2px; }
.scroll-note .tip.r::after { left: -2px; }
@media (max-width: 640px) {
  .tables-wrap { grid-template-columns: 1fr; }
  .round.big { display: none; }
  .scroll-note .tip { width: 30px; } .scroll-note { font-size: 0.92rem; }
}

/* a small gold crest: used on the screenshot cards and the footer frame */
.crest { position: absolute; left: 50%; transform: translateX(-50%); width: 46px; height: 16px; z-index: 3; pointer-events: none; }
.crest::before { content: ''; position: absolute; left: 50%; top: 0; width: 12px; height: 12px; transform: translateX(-50%) rotate(45deg);
  background: linear-gradient(135deg, #FFF6D2, #E0A638); border: 1px solid #FFEBB4; box-shadow: 0 0 9px rgba(255,205,100,0.95); }
.crest::after { content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 1px;
  background: linear-gradient(90deg, transparent, #F3CD74 30%, transparent 46%, transparent 54%, #F3CD74 70%, transparent); }

/* inside the arena */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature {
  display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; align-items: start;
  padding: 20px 20px 22px; border-radius: 18px; background: var(--panel);
  border: 1px solid var(--line); box-shadow: 0 0 22px rgba(255,190,80,0.16), inset 0 1px 0 rgba(255,230,170,0.12);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.feature img { width: 72px; height: 72px; }
.feature h3 { margin-top: 2px; }
.feature p { margin-top: 6px; font-size: 0.98rem; }
@media (max-width: 1000px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } .feature { grid-template-columns: 76px minmax(0, 1fr); } .feature img { width: 76px; height: 76px; } }

/* screenshots */
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: 196px; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 16px 4px 16px; }
.shots::-webkit-scrollbar { display: none; }
.shot {
  margin: 0; position: relative; scroll-snap-align: start; padding: 5px; border-radius: 16px; background: #0B0603;
  border: 2px solid #F0C566;
  box-shadow: 0 0 0 1px #3B250A, 0 0 28px rgba(255,195,90,0.6), 0 0 60px rgba(255,180,70,0.25), 0 10px 30px rgba(0,0,0,0.6);
}
.shot::before { content: ''; position: absolute; inset: 4px; border-radius: 12px; border: 1px solid rgba(255,225,150,0.85); pointer-events: none; z-index: 2; }
.shot img { width: 100%; height: auto; border-radius: 11px; display: block; }
.shot .crest { top: -9px; }
.slim-bar { margin: 6px auto 0; max-width: 640px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; }
.chev { appearance: none; border: 0; background: none; padding: 4px; cursor: pointer; }
.chev svg { width: 18px; height: 18px; fill: none; stroke: var(--gold); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; display: block; }
.chev:hover svg { stroke: var(--gold-hi); }
.track {
  position: relative; height: 10px; border-radius: 999px; cursor: pointer; touch-action: none;
  border: 1px solid #C99A45; background: linear-gradient(180deg, #120A05, #1E1309);
  box-shadow: 0 0 0 1px #3A2408, inset 0 1px 3px rgba(0,0,0,0.8);
}
.thumb {
  position: absolute; left: 0; top: 1px; height: 6px; border-radius: 999px; will-change: transform;
  background: linear-gradient(180deg, #FFF3C4, #F4C24F 45%, #C68A1E);
  box-shadow: 0 0 10px rgba(255,200,90,0.85);
}

/* ---- text pages (privacy, terms, support) ---- */
.doc { padding-block: 48px 72px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(2.4rem, 1.6rem + 3vw, 3.8rem); }
.doc .updated { margin-top: 10px; color: var(--ivory-dim); font-size: var(--step--1); }
.doc h2 { font-family: var(--display); font-weight: 700; color: var(--gold); font-size: 1.45rem; margin-top: 34px; scroll-margin-top: 90px; }
.doc p { margin-top: 10px; }
.doc .toc { margin-top: 24px; padding: 16px 20px; border: 1px solid var(--line-soft); border-radius: 14px; background: var(--panel); columns: 2 220px; column-gap: 28px; font-size: 1rem; }
.doc .toc a { display: block; padding: 3px 0; color: var(--ivory-dim); text-decoration: none; break-inside: avoid; }
.doc .toc a:hover { color: var(--gold); }
.contact-card { margin-top: 22px; padding: 24px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 0 22px rgba(255,190,80,0.16); display: grid; gap: 10px; }
.contact-card .mail { font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: var(--gold); word-break: break-all; }
.steps { margin: 10px 0 0; padding-left: 1.3em; display: grid; gap: 6px; }

/* ---- footer: a gold-framed panel (Ivan's mock-up, Oct 15) ---- */
.foot { padding-block: 40px 44px; color: var(--ivory); font-size: 0.98rem; }
.foot .panel {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1.3fr) auto; align-items: center; gap: 0;
  padding: 22px 30px; border-radius: 16px; background: linear-gradient(180deg, rgba(14,8,4,0.92), rgba(8,4,2,0.96));
  border: 2px solid #F0C566; box-shadow: 0 0 0 1px #3B250A, 0 0 28px rgba(255,195,90,0.5), 0 0 60px rgba(255,180,70,0.2);
}
.foot .panel::before { content: ''; position: absolute; inset: 4px; border-radius: 12px; border: 1px solid rgba(255,225,150,0.75); pointer-events: none; }
.foot .crest.top { top: -9px; }
.foot .crest.bot { bottom: -9px; }
.foot .col { padding: 6px 28px; }
.foot .col + .col { border-left: 1px solid rgba(240,197,102,0.55); }
.foot .brandcol { padding-left: 4px; display: grid; justify-items: start; gap: 6px; }
.foot .brand { font-size: 1.9rem; gap: 14px; }
.foot .brand img { width: 64px; height: 64px; box-shadow: 0 0 16px rgba(242,199,101,0.5); }
.foot .brandline { position: relative; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent); }
.foot .brandline::after { content: ''; position: absolute; left: 50%; top: -3px; width: 6px; height: 6px; background: var(--gold-hi); transform: translateX(-50%) rotate(45deg); }
.foot .legalcol p { line-height: 1.5; }
.foot .legal { margin-top: 6px; color: var(--ivory-dim); max-width: 44em; }
.foot .linkcol { display: grid; gap: 10px; justify-items: center; }
.foot .links { display: flex; align-items: center; gap: 16px; white-space: nowrap; }
.foot .links a { color: var(--gold); text-decoration: none; font-size: 1.02rem; }
.foot .links a:hover { color: var(--gold-hi); }
.foot .vbar { width: 1px; height: 18px; background: rgba(240,197,102,0.6); }
.foot .mail { display: inline-flex; align-items: center; gap: 10px; color: var(--ivory); text-decoration: none; }
.foot .mail:hover { color: var(--gold); }
.mail-ic { width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linejoin: round; }
@media (max-width: 900px) {
  .foot .panel { grid-template-columns: 1fr; gap: 14px; padding: 22px 18px; }
  .foot .col { padding: 6px 0; }
  .foot .col + .col { border-left: 0; border-top: 1px solid rgba(240,197,102,0.45); padding-top: 14px; }
  .foot .linkcol { justify-items: start; }
  .foot .links { flex-wrap: wrap; white-space: normal; }
}

/* the table cards wear Ivan's gold frame (Oct 15): the ring stretches to the
   card, the crest sits on top in the middle */
.tables { padding-top: 28px; }
.table { --cw: var(--card-w, 220px); padding: 8.46% 8.46% 9.6%; background: none; border: 0; border-radius: 0; box-shadow: none; }
.table::before {
  content: ''; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  border: calc(var(--cw) * 0.158) solid transparent; border-radius: 0;
  border-image: url('img/hero/frame-ring.webp') 70 stretch;
}
.table::after {
  content: ''; position: absolute; left: 50%; top: calc(var(--cw) * -0.088); z-index: 5; pointer-events: none;
  width: calc(var(--cw) * 0.347); height: calc(var(--cw) * 0.232); transform: translateX(-50%);
  background: url('img/hero/frame-crest.webp') center / 100% 100% no-repeat;
}
.table .orn.top, .table .orn.bot { display: none; }
.table .pic { border-radius: calc(var(--cw) * 0.05) calc(var(--cw) * 0.05) 0 0; }
.table .cap { border-radius: 0 0 calc(var(--cw) * 0.05) calc(var(--cw) * 0.05); }

/* the bet sits on the same bottom row on every card, the coin after the number */
.table .cap { display: flex; flex-direction: column; align-items: center; }
.table .cap .bet { margin-top: auto; white-space: nowrap; gap: 6px; font-size: min(1.05rem, calc(var(--cw) / 11)); }
.table .cap .bet .coin { width: 1.25em; height: 1.25em; }

/* the "A look around" screenshots wear the same gold frame as the tables,
   with the same big round arrows either side (Oct 15) */
.shots { grid-auto-columns: 220px; padding-top: 28px; }
.shot { --cw: 220px; padding: 8.46% 8.46% 9.6%; background: none; border: 0; border-radius: 0; box-shadow: none; }
.shot::before {
  content: ''; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  border: calc(var(--cw) * 0.158) solid transparent; border-radius: 0;
  border-image: url('img/hero/frame-ring.webp') 70 stretch;
}
.shot::after {
  content: ''; position: absolute; left: 50%; top: calc(var(--cw) * -0.088); z-index: 5; pointer-events: none;
  width: calc(var(--cw) * 0.347); height: calc(var(--cw) * 0.232); transform: translateX(-50%);
  background: url('img/hero/frame-crest.webp') center / 100% 100% no-repeat;
}
.shot img { border-radius: calc(var(--cw) * 0.05); }

/* footer: Ivan's bar on computers, the gold panel on phones */
.foot-art { display: none; position: relative; width: min(100%, 1672px); margin: 0 auto; }
.foot-art img { width: 100%; height: auto; display: block; }
.foot-art .hots { position: absolute; inset: 0; }
.foot-art .hot { position: absolute; display: block; border-radius: 6px; }
.foot-art .hot:hover { background: rgba(255,215,120,0.12); }
@media (min-width: 901px) { .foot-art { display: block; } .foot-m { display: none; } .foot { padding-block: 10px 0; } }

/* ---- phones: every section fits one screen (Oct 16) ---- */
.shots { grid-auto-columns: var(--shot-w, 220px); }
.shot { --cw: var(--shot-w, 220px); }
@media (max-width: 700px) {
  /* top of the page: header + hero = one screen; the phone picture takes the room left */
  .hero { height: calc(100svh - var(--top-h, 52px)); min-height: 560px; display: flex; flex-direction: column; }
  .hero .wrap { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding-block: 4px 0; }
  .hero .intro { width: 100%; }
  .hero .intro .lead { margin-top: 4px; font-size: 0.97rem; line-height: 1.4; }
  .perks { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 12px; row-gap: 0; max-width: none; }
  .perk { font-size: 0.66rem; gap: 4px; padding: 0 3px; }
  .perk img { width: 36px; height: 36px; }
  .perk:nth-child(3) { border-left: 1px solid var(--line-soft); }
  .phone-img { flex: 1; min-height: 0; display: flex; justify-content: center; }
  .phone-img img { height: 100%; width: auto; max-width: 100%; object-fit: contain; }
  .down { margin: 0 auto 4px; }
  .down svg { width: 28px; height: 16px; }

  /* the other sections: one screen each, content in the middle */
  main > section.band { min-height: 100svh; padding-block: 18px; display: flex; flex-direction: column; justify-content: center; }
  .art-head { margin-bottom: 8px; }
  .art-head p { margin-top: 6px; font-size: 0.95rem; line-height: 1.45; }
  .tables { gap: 12px; }
  .scroll-note { display: block; margin: 8px auto 0; max-width: 300px; font-size: 0.85rem; line-height: 1.4; }
  .scroll-note .tip { display: none; }

  /* the six features: two columns of small tiles */
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .feature { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 6px; padding: 12px 10px 13px; border-radius: 14px; }
  .feature img { width: 44px; height: 44px; }
  .feature h3 { margin: 0; font-size: 0.95rem; }
  .feature h3 br { display: none; }
  .feature p { margin-top: 3px; font-size: 0.8rem; line-height: 1.35; }
  .art-head.wide { margin-bottom: 12px; }
}
