/* 1xbet4vw.xyz — премиум-лендинг 1xBet / 1хБет «Икс-Гамбит». Палитра: «Шахматная партия» (оникс + кобальт + слоновая кость-золото) */

:root {
  --bg: #0b0c10;
  --bg-2: #12141b;
  --bg-3: #191c26;
  --line: #262a36;
  --line-2: #363c4d;
  --txt: #eef0f4;
  --txt-d: #a4abbb;
  --txt-dd: #6f7689;
  --cobalt: #3568ef;
  --cobalt-d: #2247c0;
  --gold: #d9c89a;
  --hot: #6f8dff;
  --r: 12px;
  --r-s: 8px;
}

* { box-sizing: border-box }
html { scroll-behavior: smooth }
body {
  margin: 0;
  font: 16px/1.62 "PT Root UI", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Arial, sans-serif;
  color: var(--txt);
  background:
    radial-gradient(1000px 580px at 92% -10%, rgba(53, 104, 239, .16) 0%, transparent 62%),
    radial-gradient(820px 580px at -10% 60%, rgba(217, 200, 154, .07) 0%, transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; height: auto }
a { color: var(--cobalt); text-decoration: none }
a:hover { text-decoration: underline }

.tothegame {
  position: absolute; top: -42px; left: 8px;
  padding: 8px 12px; background: var(--gold); color: #0a0d0a;
  border-radius: 6px; z-index: 100; font-weight: 700;
}
.tothegame:focus { top: 8px }

/* ===== TOP BAR ===== */
.gambitbar {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 12, 16, .84);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 50;
}
.pawn { display: flex; align-items: center; gap: 11px; color: var(--txt) }
.pawn:hover { text-decoration: none }
.pawn__svg {
  width: 30px; height: 30px; flex: none;
  filter: drop-shadow(0 0 10px rgba(53, 104, 239, .6));
}
.pawn__t {
  font-family: "Oranienbaum", "PT Root UI", system-ui, serif;
  font-weight: 400; line-height: 1; letter-spacing: .2px; font-size: 19px;
}
.pawn__sub {
  display: block; font-size: 10px; color: var(--txt-d);
  letter-spacing: 2.4px; font-weight: 600; margin-top: 4px;
  text-transform: uppercase; font-family: "PT Root UI", system-ui, sans-serif;
}
.flank { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap }
.flank a {
  color: var(--txt-d); font-size: 14px; padding: 4px 0;
  border-bottom: 1px solid transparent; transition: color .15s, border-color .15s;
}
.flank a:hover { color: var(--cobalt); border-bottom-color: var(--cobalt); text-decoration: none }

/* ===== CTA / castling ===== */
.castling {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 20px; border-radius: 8px;
  font-family: "PT Root UI", system-ui, sans-serif;
  font-weight: 600; font-size: 14px;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform .15s, box-shadow .2s, background .2s;
  cursor: pointer; letter-spacing: -.1px;
}
.castling:hover { text-decoration: none; transform: translateY(-1px) }
.castling--small { background: var(--bg-3); color: var(--txt); border-color: var(--line) }
.castling--small:hover { background: var(--bg-2); border-color: var(--cobalt) }
.castling--big { padding: 15px 28px; font-size: 15px; border-radius: 10px }
.castling--hot {
  background: linear-gradient(120deg, #3f74f3 0%, #2247c0 100%);
  color: #f4f6ff; border: 0;
  box-shadow: 0 12px 30px -10px rgba(53, 104, 239, .75);
  font-weight: 700;
}
.castling--hot:hover { box-shadow: 0 16px 38px -8px rgba(53, 104, 239, .95) }
.castling--ghost { background: transparent; color: var(--txt); border-color: var(--line) }
.castling--ghost:hover { border-color: var(--cobalt); color: var(--cobalt) }

/* ===== AGGREGATE COUNTER STRIP (партия за сутки) ===== */
.clockbar {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 0; padding: 10px 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(53, 104, 239, .05), rgba(217, 200, 154, .03));
  font-size: 13px;
}
.clockbar__cell {
  display: flex; flex-direction: column; gap: 2px;
  padding: 6px 14px;
  border-right: 1px solid var(--line);
  align-items: flex-start;
}
.clockbar__cell:last-child { border-right: 0 }
.clockbar__num {
  font-family: "Oranienbaum", "PT Root UI", system-ui, serif;
  font-weight: 400; font-size: 17px; color: var(--cobalt);
  letter-spacing: .2px;
}
.clockbar__lbl { font-size: 11px; color: var(--txt-d); letter-spacing: .6px; text-transform: uppercase }

/* ===== HERO / opening ===== */
.opening {
  display: grid; grid-template-columns: 1.18fr 1fr; gap: 36px;
  padding: 48px 22px 32px;
  max-width: 1240px; margin: 0 auto;
  align-items: center;
}
.gambitchip {
  display: inline-block;
  font-size: 11px; letter-spacing: 1.4px; color: var(--cobalt);
  background: rgba(53, 104, 239, .08);
  border: 1px solid rgba(53, 104, 239, .28);
  padding: 6px 12px; border-radius: 4px;
  margin: 0 0 18px;
  text-transform: uppercase; font-weight: 700;
}
h1 {
  font-family: "Oranienbaum", "PT Root UI", system-ui, serif;
  font-size: clamp(30px, 4.4vw, 50px); line-height: 1.08;
  margin: 0 0 18px; letter-spacing: -.4px; font-weight: 400;
}
.xacc { color: var(--cobalt) }
.opening__sub {
  color: var(--txt-d); font-size: 16px; margin: 0 0 14px; line-height: 1.65;
}
.opening__btns { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 28px }
.opening__pic { margin: 0 }
.opening__pic-svg {
  display: block; width: 100%; height: auto;
  border-radius: var(--r); border: 1px solid var(--line);
  background:
    radial-gradient(420px 320px at 28% 30%, rgba(53, 104, 239, .26), transparent 60%),
    radial-gradient(360px 280px at 78% 78%, rgba(217, 200, 154, .16), transparent 65%),
    linear-gradient(135deg, #0e1018 0%, #15161f 100%);
  aspect-ratio: 16 / 11;
  box-shadow: 0 24px 64px -22px rgba(53, 104, 239, .45);
}
.opening__pic figcaption {
  margin-top: 12px; font-size: 12px; color: var(--txt-dd);
  font-style: italic; text-align: right;
}

/* KPI inline блок / checkrow */
.checkrow {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  padding: 18px 0 0; border-top: 1px solid var(--line);
}
.checkrow__item { display: flex; flex-direction: column; gap: 2px }
.checkrow__num {
  font-family: "Oranienbaum", system-ui, serif;
  font-size: 28px; font-weight: 400;
  color: var(--cobalt); letter-spacing: .2px;
}
.checkrow__lbl { font-size: 11px; color: var(--txt-d); text-transform: uppercase; letter-spacing: 1.2px }

/* ===== SECTIONS GENERAL ===== */
section {
  max-width: 1240px; margin: 0 auto;
  padding: 56px 22px;
}
section.opening, section.openingbox { padding-top: 36px }
.zugzwang {
  display: inline-block;
  font-size: 11px; letter-spacing: 2.6px; text-transform: uppercase;
  color: var(--gold); font-weight: 700;
  margin: 0 0 10px;
}
h2 {
  font-family: "Oranienbaum", "PT Root UI", system-ui, serif;
  font-size: clamp(24px, 3.2vw, 36px); line-height: 1.2;
  margin: 0 0 16px; letter-spacing: -.2px; font-weight: 400;
}
h3 {
  font-family: "Oranienbaum", "PT Root UI", system-ui, serif;
  font-size: clamp(17px, 2vw, 22px); line-height: 1.32;
  margin: 26px 0 10px; color: var(--cobalt); font-weight: 400; letter-spacing: 0;
}
p { margin: 0 0 14px; color: var(--txt) }
.gambitlead { color: var(--txt-d); font-size: 16px; margin-bottom: 24px; max-width: 790px }

/* ===== WELCOME / openingbox ===== */
.openingbox {
  background:
    radial-gradient(720px 360px at 82% 28%, rgba(217, 200, 154, .07) 0%, transparent 70%),
    rgba(18, 20, 27, .55);
  border: 1px solid var(--line);
  border-radius: var(--r);
  margin: 32px 22px;
  max-width: none;
}
.openingbox__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin: 22px 0 24px;
}
.matebox {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px 20px;
  position: relative; overflow: hidden;
  transition: border-color .2s, transform .15s;
}
.matebox:hover { border-color: var(--cobalt); transform: translateY(-2px) }
.matebox::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(53, 104, 239, .07), transparent 60%);
  pointer-events: none;
}
.matebox__step {
  font-family: "PT Root UI", system-ui, sans-serif;
  font-size: 11px; color: var(--gold); font-weight: 700;
  letter-spacing: 2px; margin-bottom: 8px; text-transform: uppercase;
}
.matebox__pct {
  font-family: "Oranienbaum", system-ui, serif;
  font-size: 32px; font-weight: 400; line-height: 1;
  color: var(--cobalt); letter-spacing: .2px;
  margin-bottom: 8px;
}
.matebox__title { font-weight: 700; font-size: 15px; margin-bottom: 6px }
.matebox__sub { font-size: 13px; color: var(--txt-d); line-height: 1.5 }
.matebox--note {
  max-width: none; margin: 32px 22px; display: block;
  background: rgba(18, 20, 27, .5);
}
.matebox--note .gambitlead { max-width: 920px; margin-bottom: 0 }
.matebox--note::before { display: none }

/* ===== THREE STEPS / endgame ===== */
.endgame__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 22px;
}
.sicilian {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 24px;
  position: relative;
}
.sicilian__num {
  font-family: "Oranienbaum", system-ui, serif;
  position: absolute; top: 14px; right: 22px;
  font-size: 58px; font-weight: 400; line-height: 1;
  color: var(--bg-3);
}
.sicilian__head {
  font-size: 18px; font-weight: 700; margin-bottom: 12px;
  color: var(--cobalt);
}
.sicilian p { color: var(--txt-d); font-size: 14px; margin: 0 }

/* ===== SLOT GRID / checkergrid ===== */
.checkergrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px; margin: 24px 0;
}
.knightcard {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform .15s, border-color .2s, box-shadow .25s;
  display: flex; flex-direction: column;
}
.knightcard:hover {
  transform: translateY(-3px);
  border-color: var(--cobalt);
  box-shadow: 0 18px 36px -14px rgba(53, 104, 239, .42);
}
.knightcard__cover {
  width: 100%; aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  font-family: "Oranienbaum", system-ui, serif;
  font-weight: 400; font-size: 23px; color: rgba(238, 240, 244, .94);
  text-align: center; padding: 14px;
  letter-spacing: .2px; line-height: 1.15;
  position: relative; overflow: hidden;
}
.knightcard__cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(160deg, transparent 40%, rgba(0,0,0,.35) 100%);
  pointer-events: none;
}
.tempocap-1 { background: linear-gradient(135deg, #0c1a40 0%, #3568ef 100%) }
.tempocap-2 { background: linear-gradient(135deg, #2a2410 0%, #d9c89a 100%); color: #0a0d0a }
.tempocap-3 { background: linear-gradient(135deg, #14163a 0%, #6f8dff 100%) }
.tempocap-4 { background: linear-gradient(135deg, #1a1530 0%, #8a7bff 100%) }
.tempocap-5 { background: linear-gradient(135deg, #2a1208 0%, #e08a3a 100%) }
.tempocap-6 { background: linear-gradient(135deg, #082838 0%, #4dc6ff 100%) }
.tempocap-7 { background: linear-gradient(135deg, #102540 0%, #3568ef 100%) }
.tempocap-8 { background: linear-gradient(135deg, #082a24 0%, #39e0b0 100%); color: #08160c }
.tempocap-9 { background: linear-gradient(135deg, #2a0a1a 0%, #e23d8a 100%) }
.tempocap-10 { background: linear-gradient(135deg, #2a2410 0%, #e7b53e 100%); color: #0a0d0a }
.tempocap-11 { background: linear-gradient(135deg, #18203a 0%, #2247c0 100%) }
.tempocap-12 { background: linear-gradient(135deg, #1a1428 0%, #d9c89a 100%); color: #0a0d0a }

.knightcard h3 { font-size: 15px; margin: 12px 14px 4px; color: var(--txt); font-weight: 600; font-family: "PT Root UI", system-ui, sans-serif }
.knightcard p { font-size: 12px; color: var(--txt-d); margin: 0 14px 12px; line-height: 1.4 }
.knightcard__btn {
  display: block; padding: 10px;
  margin: auto 12px 12px;
  background: var(--bg-3); color: var(--txt);
  text-align: center; border-radius: 6px; font-size: 13px; font-weight: 600;
  border: 1px solid var(--line); transition: all .15s;
}
.knightcard__btn:hover { background: var(--cobalt); border-color: var(--cobalt); color: #f4f6ff; text-decoration: none }

.fianchetto { margin: 22px 0 0 }
.fianchetto__title { font-size: 12px; color: var(--gold); margin-bottom: 10px; letter-spacing: 1.4px; text-transform: uppercase; font-weight: 700 }
.fianchetto__list { display: flex; flex-wrap: wrap; gap: 8px }
.fianchetto__list span {
  padding: 6px 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 12px; color: var(--txt-d);
}

/* ===== LOYALTY ===== */
.ranks__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
  margin-top: 22px;
}
.rookbox {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px 24px;
  transition: border-color .2s;
}
.rookbox:hover { border-color: var(--gold) }
.rookbox__h { font-weight: 700; font-size: 17px; margin-bottom: 10px; color: var(--gold) }
.rookbox p { color: var(--txt-d); font-size: 14px; margin: 0; line-height: 1.6 }

/* VIP-лестница разрядов как стек ступеней */
.queenstep {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 6px; margin-top: 14px;
}
.queenstep__step {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 8px;
  text-align: center;
  position: relative;
}
.queenstep__step:nth-child(1) { transform: translateY(0) }
.queenstep__step:nth-child(2) { transform: translateY(-8px) }
.queenstep__step:nth-child(3) { transform: translateY(-16px) }
.queenstep__step:nth-child(4) { transform: translateY(-23px); border-color: var(--cobalt); background: var(--bg-2) }
.queenstep__step:nth-child(5) { transform: translateY(-31px); border-color: var(--cobalt); background: var(--bg-2) }
.queenstep__step:nth-child(6) { transform: translateY(-40px); border-color: var(--gold); background: linear-gradient(135deg, var(--bg-2), rgba(217, 200, 154, .08)) }
.queenstep__name {
  font-family: "Oranienbaum", system-ui, serif;
  font-size: 14px; font-weight: 400; color: var(--txt);
  display: block; line-height: 1; margin-bottom: 5px;
}
.queenstep__cb { font-size: 11px; color: var(--txt-d) }
.queenstep__step:nth-child(6) .queenstep__name { color: var(--gold) }

/* ===== TOUR / tempo ===== */
.tempo {
  background:
    radial-gradient(640px 360px at 50% 50%, rgba(53, 104, 239, .1) 0%, transparent 70%),
    var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  margin: 32px 22px; max-width: none;
  text-align: center;
}
.tempo__btns { margin: 22px 0 28px }
.tempo__kpi {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-top: 22px;
}
.tempo__kpi > div {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  text-align: center;
}
.tempo__kpi span {
  font-family: "Oranienbaum", system-ui, serif;
  font-size: 24px; font-weight: 400; color: var(--cobalt);
  margin-bottom: 4px; letter-spacing: .2px;
}
.tempo__kpi .capturetag { font-size: 14px; font-weight: 700; color: var(--txt); border: 0; background: transparent; padding: 0 }
.tempo__kpi i { font-size: 12px; color: var(--txt-d); font-style: normal; line-height: 1.4 }

/* ===== LIVE GALLERY / bishoprow ===== */
.livehall__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px; margin-top: 22px;
}
.bishoprow {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  position: relative;
  transition: transform .15s, border-color .2s, box-shadow .25s;
}
.bishoprow:hover {
  transform: translateY(-3px);
  border-color: var(--hot);
  box-shadow: 0 18px 36px -14px rgba(111, 141, 255, .4);
}
.bishoprow__cover {
  width: 100%; aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center;
  font-family: "Oranienbaum", system-ui, serif;
  font-weight: 400; font-size: 19px; color: rgba(238, 240, 244, .94);
  padding: 12px; text-align: center; letter-spacing: .2px;
  position: relative; overflow: hidden;
}
.liv-1 { background: linear-gradient(135deg, #0a1a3a 0%, #3568ef 100%) }
.liv-2 { background: linear-gradient(135deg, #1a1430 0%, #6f8dff 100%) }
.liv-3 { background: linear-gradient(135deg, #0a2a24 0%, #39e0b0 100%); color: #08160c }
.liv-4 { background: linear-gradient(135deg, #2a2410 0%, #d9c89a 100%); color: #0a0d0a }
.liv-5 { background: linear-gradient(135deg, #2a0a1a 0%, #e23d8a 100%) }
.liv-6 { background: linear-gradient(135deg, #18203a 0%, #2247c0 100%) }

.bishoprow__b { padding: 14px 16px 16px; position: relative }
.bishoprow__t { font-weight: 700; font-size: 16px; margin-bottom: 4px }
.bishoprow__s { font-size: 12px; color: var(--txt-d); margin-bottom: 10px }
.bishoprow__m { font-size: 13px; color: var(--gold); font-weight: 600; margin-bottom: 4px }
.bishoprow__p { font-size: 12px; color: var(--txt-dd) }
.bishoprow__live {
  position: absolute; top: 12px; right: 16px;
  background: var(--hot); color: #0a0d0a;
  padding: 3px 10px; border-radius: 4px;
  font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
}

/* ===== BRAND OVERVIEW / scoresheet ===== */
.scoresheet h3 {
  border-left: 3px solid var(--cobalt);
  padding-left: 14px; margin-top: 30px;
}
.scoresheet p { color: var(--txt); line-height: 1.7 }
.filecol__op, .filecol__name { color: var(--cobalt); font-weight: 600 }
.capturetags {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line);
}
.capturetag {
  padding: 7px 13px;
  background: var(--bg-2);
  border: 1px solid var(--cobalt);
  border-radius: 4px;
  font-size: 12px; color: var(--txt);
  letter-spacing: .4px;
}

/* ===== REVIEWS / kingseat ===== */
.notes__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 22px;
}
.kingseat {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.kingseat__stars { color: var(--gold); font-size: 16px; letter-spacing: 4px }
.kingseat__stars--four .star-dim { color: var(--line-2); }
.kingseat__q { font-size: 14px; line-height: 1.6; color: var(--txt); margin: 0 }
.kingseat__meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--txt-d);
  border-top: 1px solid var(--line); padding-top: 14px;
}
.kingseat__a {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--cobalt), var(--gold));
  border-radius: 50%; color: #0a0d0a; font-weight: 700; font-size: 14px;
  flex: none;
}

/* ===== PAYMENTS / perpetual ===== */
.cashier__grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px;
  margin: 22px 0 22px;
}
.perpetual {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  padding: 18px 14px;
  text-align: center;
  display: flex; flex-direction: column; gap: 4px; align-items: center;
}
.perpetual .capturetag { font-size: 15px; color: var(--txt); font-weight: 700; border: 0; background: transparent; padding: 0 }
.perpetual i { font-size: 11px; color: var(--txt-d); font-style: normal; text-transform: uppercase; letter-spacing: 1px }

.cashier__times {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin-top: 8px;
}
.cashier__times > div {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  padding: 14px 18px;
  display: flex; flex-direction: column; gap: 4px;
}
.cashier__times .capturetag {
  font-family: "Oranienbaum", system-ui, serif;
  font-size: 18px; color: var(--cobalt); font-weight: 400;
  border: 0; background: transparent; padding: 0;
}
.cashier__times i { font-size: 12px; color: var(--txt-d); font-style: normal }

/* ===== FINAL CTA / endcta ===== */
.endcta {
  text-align: center; padding: 56px 22px;
  background:
    radial-gradient(620px 320px at 50% 50%, rgba(53, 104, 239, .15) 0%, transparent 70%),
    var(--bg-2);
  border-radius: var(--r);
  margin: 32px 22px;
  border: 1px solid var(--line);
  max-width: none;
}
.endcta h2 { margin-bottom: 10px }
.endcta p { color: var(--txt-d); margin-bottom: 24px }

/* ===== FAQ / blunderqa ===== */
.blunderqa h2 { margin-bottom: 22px }
details {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  padding: 16px 20px;
  margin: 0 0 10px;
  transition: border-color .2s;
}
details[open] { border-color: var(--cobalt) }
summary {
  cursor: pointer; font-weight: 600; list-style: none;
  position: relative; padding-right: 32px;
  display: flex; align-items: center; min-height: 24px;
}
summary::-webkit-details-marker { display: none }
summary::after {
  content: "♞"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 22px; height: 22px;
  border: 1px solid var(--line); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--cobalt); font-size: 13px;
  transition: transform .25s;
}
details[open] summary::after { transform: translateY(-50%) rotate(90deg); border-color: var(--cobalt) }
details p { margin: 12px 0 0; color: var(--txt-d); font-size: 15px; line-height: 1.65 }

/* ===== FOOTER / filecol ===== */
.filecol {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  background: rgba(11, 12, 16, .6);
}
.filecol__top {
  max-width: 1240px; margin: 0 auto;
  padding: 42px 22px 26px;
  display: grid; grid-template-columns: 1.4fr 2fr; gap: 36px;
}
.filecol__brand { font-size: 14px; color: var(--txt-d); line-height: 1.65 }
.filecol__logo {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
}
.filecol__logo span { display: flex; flex-direction: column; line-height: 1.1 }
.filecol__name { color: var(--txt); font-size: 16px; font-weight: 700; margin-bottom: 2px }
.filecol__legal { font-size: 12px; color: var(--txt-dd); margin: 0; line-height: 1.65 }
.filecol__cols {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.filecol__col h4 {
  font-family: "PT Root UI", system-ui, sans-serif;
  font-size: 12px; color: var(--gold); font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.6px;
  margin: 0 0 12px;
}
.filecol__col ul { list-style: none; padding: 0; margin: 0 }
.filecol__col li {
  font-size: 13px; color: var(--txt-d);
  padding: 4px 0; cursor: default;
  transition: color .15s;
}
.filecol__col li:hover { color: var(--txt) }
.filecol__bottom {
  border-top: 1px solid var(--line);
  padding: 16px 22px;
  max-width: 1240px; margin: 0 auto;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  font-size: 12px; color: var(--txt-dd);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .openingbox__grid { grid-template-columns: repeat(2, 1fr) }
  .cashier__grid { grid-template-columns: repeat(3, 1fr) }
  .tempo__kpi { grid-template-columns: repeat(2, 1fr) }
  .notes__grid { grid-template-columns: 1fr }
  .filecol__top { grid-template-columns: 1fr }
  .clockbar { grid-template-columns: repeat(3, 1fr) }
  .clockbar__cell:nth-child(4), .clockbar__cell:nth-child(5) { border-top: 1px solid var(--line); padding-top: 8px }
  .queenstep { grid-template-columns: repeat(3, 1fr) }
  .queenstep__step { transform: none !important }
}

@media (max-width: 880px) {
  .opening { grid-template-columns: 1fr; gap: 24px; padding-top: 32px }
  .opening__pic { order: -1 }
  .flank { display: none }
  .gambitbar { padding: 11px 14px }
  section { padding: 36px 16px }
  .openingbox, .tempo, .endcta, .matebox--note { padding: 36px 18px; margin: 22px 14px }
  .openingbox__grid { grid-template-columns: 1fr }
  .endgame__grid { grid-template-columns: 1fr }
  .ranks__grid { grid-template-columns: 1fr }
  .filecol__top { padding: 30px 16px 22px; gap: 22px }
  .filecol__cols { grid-template-columns: repeat(2, 1fr); gap: 18px }
  .clockbar { padding: 8px 14px; grid-template-columns: repeat(2, 1fr); font-size: 12px }
  .clockbar__cell { padding: 4px 10px }
  .cashier__times { grid-template-columns: 1fr }
  .checkrow { grid-template-columns: repeat(2, 1fr) }
}

@media (max-width: 480px) {
  .checkergrid { grid-template-columns: repeat(2, 1fr); gap: 10px }
  .livehall__grid { grid-template-columns: 1fr }
  .knightcard h3 { font-size: 13px }
  .knightcard p { font-size: 11px }
  .knightcard__cover { font-size: 17px }
  .opening__btns { flex-direction: column; align-items: stretch }
  .castling--big { width: 100% }
  .cashier__grid { grid-template-columns: repeat(2, 1fr) }
  .tempo__kpi { grid-template-columns: 1fr }
  .filecol__cols { grid-template-columns: 1fr }
  .queenstep { grid-template-columns: repeat(2, 1fr) }
}
