/* Home — hero «two doors», plaque, section bodies. Moved from the mockup; the
 * blocks marked "new" are built on the same tokens (brief §5 sections the mockup
 * did not draw). */

/* ---------- hero: two doors (mockup) ---------- */
.hero { --hero-h: max(760px, calc(100svh - var(--header-h) + 64px)); --off: calc(var(--hero-h) * var(--tan) / 2); --gap: 4px; position: relative; height: var(--hero-h); isolation: isolate; overflow: hidden; background: var(--bg); transition: --split .6s var(--ease); }
.hero[data-door="casino"], .hero:has(.door--casino:hover) { --split: 60%; }
.hero[data-door="sports"], .hero:has(.door--sports:hover) { --split: 40%; }
.door { position: absolute; inset: 0; overflow: hidden; }
.door--casino { clip-path: polygon(0 0, calc(var(--split) + var(--off) - var(--gap)) 0, calc(var(--split) - var(--off) - var(--gap)) 100%, 0 100%); }
.door--sports { clip-path: polygon(calc(var(--split) + var(--off) + var(--gap)) 0, 100% 0, 100% 100%, calc(var(--split) - var(--off) + var(--gap)) 100%); }
.door__media { position: absolute; inset: 0; z-index: -1; }
.door__media picture { position: absolute; inset: 0; }
.door__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1) brightness(.95); transform: scale(1.04); transition: transform 1.2s var(--ease), filter .6s var(--ease); }
.door:hover .door__media img { transform: scale(1.08); filter: grayscale(1) contrast(1.15) brightness(1.05); }
.door__media::before { content: ""; position: absolute; inset: 0; z-index: 1; mix-blend-mode: color; }
.door--casino .door__media::before { background: var(--brand); }
.door--sports .door__media::before { background: var(--accent); }
.door__media::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.door--casino .door__media img { object-position: 30% 50%; }
.door--casino .door__media::after { background: radial-gradient(120% 80% at 10% 100%, color-mix(in oklab, var(--bg) 88%, var(--brand)), transparent 60%), linear-gradient(180deg, color-mix(in oklab, var(--brand) 30%, transparent), color-mix(in oklab, var(--brand) 18%, transparent) 40%, color-mix(in oklab, var(--bg) 70%, transparent)); }
.door--sports .door__media::after { background: radial-gradient(100% 80% at 95% 0%, rgb(16 19 28 / .78), transparent 60%), linear-gradient(180deg, color-mix(in oklab, var(--accent) 14%, transparent), color-mix(in oklab, var(--accent) 30%, transparent) 50%, rgb(16 19 28 / .7)); }

.door__body { position: absolute; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; max-width: 380px; }
.door--casino .door__body { left: max(var(--gutter), calc((100% - 1400px) / 2)); bottom: 150px; }
.door--sports .door__body { right: max(var(--gutter), calc((100% - 1400px) / 2)); top: 56px; align-items: flex-end; text-align: right; }
.door__word { font: 800 var(--fs-door)/.86 var(--font-display); font-stretch: 76%; letter-spacing: -.035em; text-transform: uppercase; transform: skewX(calc(-1 * var(--angle))); transform-origin: left bottom; }
.door--sports .door__word { transform-origin: right top; }
.door__lead { color: color-mix(in oklab, #fff 86%, transparent); max-width: 32ch; }
.door__list { display: flex; flex-wrap: wrap; gap: 6px; }

/* door widgets (mockup: live table → now a live-lobby card without invented results) */
.door__widget { position: absolute; width: 300px; left: max(var(--gutter), calc((100% - 1400px) / 2)); top: 56px; }
.widget__row { display: flex; align-items: center; gap: 12px; }
.widget__stack { display: flex; flex: none; }
.widget__stack img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; box-shadow: 0 0 0 2px var(--surface-1); }
.widget__stack picture + picture { margin-left: -14px; }
.widget__title { font: 700 .95rem/1.2 var(--font-text); }
.widget__meta { font-size: var(--fs-xs); color: var(--text-2); margin-top: 3px; }
.widget__live { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font: 700 10px/1 var(--font-text); letter-spacing: .08em; text-transform: uppercase; padding: 6px 8px; border-radius: var(--radius-pill); background: var(--casino-soft); color: var(--casino-text); }
.widget__live .dot { width: 6px; height: 6px; }
.widget__link { position: relative; display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding: 10px 12px; border-radius: var(--radius-1); background: var(--surface-3); font: 700 var(--fs-sm)/1 var(--font-text); transition: background-color .2s; }
.widget__link:hover { background: var(--casino-ink); }
.match { margin-top: 6px; text-align: left; width: 320px; }
.match__top { display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: var(--fs-xs); color: var(--text-2); }
.match__teams { display: grid; gap: 6px; margin: 12px 0; font: 700 .98rem/1.2 var(--font-text); transition: color .2s; }
.match__teams:hover { color: var(--accent); }
.match__teams span { display: flex; align-items: center; gap: 10px; }

/* centre plaque (mockup) */
.plaque { position: absolute; z-index: 3; left: 50%; top: clamp(150px, 25%, 230px); transform: translateX(-50%); width: min(600px, 42vw); padding: 30px 32px 28px; border-radius: var(--radius-3); text-align: center; background: color-mix(in oklab, var(--bg) 84%, transparent); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--hair-2); }
.plaque::before { content: ""; position: absolute; left: 50%; top: -1px; width: 120px; height: 3px; margin-left: -60px; border-radius: 2px; background: linear-gradient(90deg, var(--brand) 50%, var(--accent) 50%); transform: skewX(calc(-1 * var(--angle))); }
.plaque h1 { font-size: var(--fs-h1); font-stretch: 88%; font-weight: 800; letter-spacing: -.035em; line-height: .98; }
.plaque h1 .amp { display: inline-block; transform: skewX(calc(-1 * var(--angle))); color: var(--text-2); font-weight: 500; }
.plaque > p { margin: 14px auto 0; max-width: 44ch; color: var(--text-2); }
.seg { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; margin-top: 22px; padding: 4px; border-radius: var(--radius-pill); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--hair); }
.seg__thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: var(--radius-pill); background: var(--casino-ink); opacity: 0; transition: transform .35s var(--spring), background-color .3s var(--ease), opacity .2s; }
.seg[data-on="casino"] .seg__thumb { opacity: 1; }
.seg[data-on="sports"] .seg__thumb { opacity: 1; transform: translateX(100%); background: var(--accent); }
.seg button { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 22px; border-radius: var(--radius-pill); font: 700 var(--fs-sm)/1 var(--font-text); color: var(--text-2); transition: color .25s; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { color: #fff; }
.seg[data-on="sports"] button[aria-pressed="true"] { color: var(--on-sports); }
.seg__hint { margin-top: 12px; font-size: var(--fs-sm); color: var(--text-2); min-height: 1.5em; }

/* ---------- sections (mockup) ---------- */
.sec--games { background: radial-gradient(60% 50% at 90% 0%, color-mix(in oklab, var(--brand) 30%, transparent), transparent 70%), color-mix(in oklab, var(--surface-1) 70%, var(--surface)); }
.sec--sports { background: radial-gradient(60% 50% at 8% 0%, color-mix(in oklab, var(--accent) 20%, transparent), transparent 70%), var(--bg); }
.sec--live { background: radial-gradient(60% 50% at 92% 0%, color-mix(in oklab, var(--brand) 26%, transparent), transparent 70%), color-mix(in oklab, var(--surface-1) 70%, var(--surface)); padding-bottom: 120px; }
.sec--sports .tabs { margin-top: 36px; }

/* new: sub-block "Popular slots" */
.subsec { margin-top: 64px; }
.subsec__head { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; margin-bottom: 22px; }
.h3 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.25rem); font-stretch: 84%; font-weight: 800; }
.h3 em { font-style: normal; display: inline-block; transform: skewX(calc(-1 * var(--angle))); color: color-mix(in oklab, var(--brand), #fff 28%); }
.subsec .chips { max-width: 100%; }

/* sportsbook block (mockup) */
.sb { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px; margin-top: 24px; }
.sb__side { position: relative; isolation: isolate; border-radius: var(--radius-3); overflow: hidden; min-height: 440px; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; box-shadow: var(--shadow-2), inset 0 0 0 1px var(--hair); background: var(--surface-2); }
.sb__side picture { position: absolute; inset: 0; z-index: -2; }
.sb__side img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.3); }
.sb__side::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(16 19 28 / .1), rgb(16 19 28 / .92) 78%), color-mix(in oklab, var(--accent) 22%, transparent); }
.sb__pattern { position: absolute; inset: 0; z-index: -2; display: grid; place-items: center; background: repeating-linear-gradient(-78deg, transparent 0 22px, color-mix(in oklab, var(--accent) 12%, transparent) 22px 24px), var(--surface-2); color: color-mix(in oklab, var(--accent) 40%, transparent); }
.sb__pattern .ic { width: 45%; height: 45%; stroke-width: .6; }
.sb__sport { font: 800 clamp(2.4rem, 1.6rem + 2vw, 3.6rem)/.9 var(--font-display); font-stretch: 76%; text-transform: uppercase; letter-spacing: -.03em; transform: skewX(calc(-1 * var(--angle))); transform-origin: left bottom; }
.sb__stats { display: flex; gap: 24px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--hair-2); }
.sb__stats b { display: block; font: 800 1.6rem/1 var(--font-display); font-variant-numeric: tabular-nums; color: var(--accent); }
.sb__stats span { font-size: var(--fs-xs); color: var(--text-2); }

/* new: live casino tiles */
.live-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: repeat(2, minmax(220px, auto)); gap: 20px; margin-top: 36px; }
.live-tile { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: 220px; padding: 22px; border-radius: var(--radius-3); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--hair); transition: transform .25s var(--spring), box-shadow .25s; }
.live-tile--big { grid-row: span 2; }
.live-tile picture { position: absolute; inset: 0; z-index: -2; }
.live-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.live-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(16 19 28 / .05) 20%, rgb(16 19 28 / .92) 85%), color-mix(in oklab, var(--brand) 16%, transparent); }
.live-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-2), inset 0 0 0 1px var(--casino-line); }
.live-tile:hover img { transform: scale(1.05); }
.live-tile__body { display: grid; gap: 8px; justify-items: start; }
.live-tile__body .widget__live { margin: 0; }
.live-tile__body b { font: 800 clamp(1.4rem, 1.1rem + 1vw, 2rem)/1 var(--font-display); font-stretch: 84%; }
.live-tile__body > span:not(.widget__live):not(.link) { color: var(--text-2); font-size: var(--fs-sm); max-width: 36ch; }

/* new: exclusive games note */
.exclusive { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; margin-top: 28px; padding: 22px 24px; border-radius: var(--radius-3); background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--hair); }
.exclusive h3 { font-size: 1.25rem; font-weight: 800; }
.exclusive p { margin-top: 6px; color: var(--text-2); font-size: var(--fs-sm); max-width: 80ch; }
.exclusive__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--radius-2); background: var(--casino-soft); color: var(--casino-text); }

/* new: payments + responsible gambling band */
.band { padding: 96px 0; background: var(--bg); }
.band__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; }
.band__card { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 32px; border-radius: var(--radius-3); background: var(--surface-2); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--hair); }
.band__card > p { color: var(--text-2); }
.band__h { font-size: clamp(1.8rem, 1.3rem + 1.4vw, 2.6rem); }
.band__card--rg { background: radial-gradient(80% 60% at 100% 0%, var(--sports-soft), transparent 70%), var(--surface-2); box-shadow: var(--shadow-1), inset 0 0 0 1px var(--sports-line); }
.band__card--rg .h2 em { color: var(--accent); }
.band__card:not(.band__card--rg) .h2 em { color: var(--casino-text); }
.pay-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; width: 100%; }
.pay-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-2); background: var(--surface-1); box-shadow: inset 0 0 0 1px var(--hair); }
.pay-list__logo { display: grid; place-items: center; width: 56px; height: 36px; flex: none; border-radius: 8px; background: #fff; }
.pay-list__logo img { max-width: 44px; max-height: 22px; width: auto; height: auto; }
.pay-list b { display: block; font-size: var(--fs-sm); }
.pay-list small { color: var(--text-2); font-size: var(--fs-xs); }
.rg-list { display: grid; gap: 10px; }
.rg-list li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.rg-list .ic { color: var(--accent); }
.band__card--rg .btn { margin-top: auto; }

/* ---------- ≤1180 ---------- */
@media (max-width: 1180px) {
  .door__widget { display: none; }
  .sb { grid-template-columns: 1fr; }
  .sb__side { min-height: 280px; }
  .live-grid { grid-template-columns: 1fr 1fr; }
  .live-tile--big { grid-row: auto; grid-column: 1 / -1; min-height: 320px; }
  .band__grid { grid-template-columns: 1fr; }
}

/* ---------- ≤900: stacked doors (mockup) ---------- */
@media (max-width: 900px) {
  .hero { height: auto; overflow: visible; display: flex; flex-direction: column; --mcut: calc(100vw * var(--tan)); }
  .plaque { position: relative; left: auto; top: auto; transform: none; width: auto; margin: 20px 16px; padding: 24px 20px; order: -1; }
  .door { position: relative; inset: auto; min-height: 440px; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 20px; }
  .door--casino { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--mcut)), 0 100%); padding-bottom: calc(var(--mcut) + 28px); padding-top: 40px; }
  .door--sports { clip-path: polygon(0 var(--mcut), 100% 0, 100% calc(100% - var(--mcut)), 0 100%); margin-top: calc(-1 * var(--mcut) + 6px); padding-top: calc(var(--mcut) + 28px); padding-bottom: calc(var(--mcut) + 40px); justify-content: flex-start; }
  .door__body { position: relative; left: auto !important; right: auto !important; top: auto !important; bottom: auto !important; max-width: none; }
  .door--sports .door__body { align-items: flex-end; }
  .match { width: 100%; }
  .door.is-active .door__media img { transform: scale(1.08); }
  .door--casino .door__media::after { background: linear-gradient(180deg, color-mix(in oklab, var(--brand) 26%, transparent), color-mix(in oklab, var(--bg) 62%, var(--brand)) 45%, color-mix(in oklab, var(--bg) 90%, var(--brand)) 75%); opacity: .95; }
  .door--sports .door__media::after { background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 22%, transparent), rgb(16 19 28 / .8) 60%, color-mix(in oklab, var(--accent) 20%, transparent)); }
  .sec--live { padding-bottom: 72px; }
  .sb__side { min-height: 240px; }
  .live-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .live-tile, .live-tile--big { min-height: 240px; grid-column: auto; }
  .exclusive { grid-template-columns: 1fr; }
  .band { padding: 56px 0; }
  .band__card { padding: 24px 20px; }
  .subsec { margin-top: 44px; }
}
@media (max-width: 420px) {
  .door__word { font-size: 3.6rem; }
}
/* fill the 3×2 grid: the last tile takes the free cell (checked in render) */
@media (min-width: 1181px) { .live-tile:last-child { grid-column: span 2; } }
.door__widget { width: 340px; }
.widget__meta { white-space: nowrap; }
/* live tiles: four equal tiles (no orphan cell), 2×2 below 1180, stacked on mobile */
.live-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: none; }
.live-tile, .live-tile--big { grid-row: auto; grid-column: auto !important; min-height: 360px; }
@media (max-width: 1180px) { .live-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .live-tile, .live-tile--big { min-height: 260px; } }
@media (max-width: 900px) { .live-grid { grid-template-columns: 1fr; } .live-tile, .live-tile--big { min-height: 220px; } }
.pay-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pay-list li:last-child:nth-child(4n + 1) { grid-column: span 2; }
@media (max-width: 1180px) { .pay-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pay-list li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.pay-list li > span:last-child { min-width: 0; }
.pay-list b, .pay-list small { overflow-wrap: anywhere; }
