:root {
  color-scheme: dark;
  --page: #121b15;
  --deep: #0e1711;
  --ink: #f6eed9;
  --muted: #c6c8b6;
  --gold: #ffc27e;
  --line: #ffffff24;
  --sans: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --display: Georgia, "Times New Roman", serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--sans); line-height: 1.6; }
a { color: inherit; }
:is(a, button, [role="tabpanel"]):focus-visible { outline: 3px solid var(--gold); outline-offset: 5px; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
.wrap { width: min(1152px, 100% - 88px); margin-inline: auto; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 3; transform: translateY(-150%); background: var(--gold); color: #191611; padding: 8px 12px; }
.skip:focus { transform: none; }
.site-header { background: #111a14; border-bottom: 1px solid var(--line); position: relative; z-index: 1; }
.header-row, .footer-row { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.18rem; font-weight: 750; text-decoration: none; white-space: nowrap; line-height: 1.1; }
.brand b { color: var(--gold); }
.site-header nav, .site-footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(14px, 3vw, 32px); font-weight: 650; font-size: .93rem; }
.site-header nav a, .site-footer nav a { text-decoration: none; color: var(--muted); }
.site-header nav a:hover, .site-footer nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.hero { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at 78% 47%, #284b34, transparent 65%), #14221a; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .43; background: repeating-linear-gradient(132deg, #fff0 0 4px, #ffffff09 4px 5px); }
.hero-grid { min-height: 620px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 26px; }
.hero-copy { z-index: 1; padding: 70px 0 76px; }
h1, h2 { font-family: var(--display); font-weight: 500; letter-spacing: -.055em; }
.hero h1 { font-size: clamp(5rem, 8.9vw, 8.5rem); line-height: .87; }
.hero h1 em { color: var(--gold); font-weight: inherit; }
.hero-copy p { max-width: 402px; margin-top: 31px; font-size: clamp(1.12rem, 1.65vw, 1.28rem); color: var(--muted); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; margin-top: 29px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; background: var(--gold); color: #23190e; padding: .8rem 1.18rem; min-height: 48px; border-radius: 6px; font-weight: 800; text-decoration: none; }
.button:hover { background: #ffd5a7; }
.hero-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--muted); font-size: .92rem; text-decoration: none; }
.hero-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.hero-art { --x: 0; --y: 0; display: grid; place-items: center; min-height: 600px; position: relative; perspective: 900px; }
.table-ring { position: absolute; width: min(530px, 100%); aspect-ratio: 1; border: 1px solid #93ad8458; border-radius: 50%; background: radial-gradient(circle, #487a48b3, #1a362695 70%); box-shadow: inset 0 0 32px #0e2219; }
.table-ring::after { content: ""; position: absolute; inset: 18px; border: 1px dashed #aac39b66; border-radius: inherit; }
.phone { width: clamp(200px, 41.5%, 248px); position: relative; z-index: 2; transform: rotate(6deg); padding: 5px; margin-top: -10px; background: #111415; border: 2px solid #73776e; border-radius: 32px; box-shadow: 2px 20px 45px #080c09bd, 0 0 0 1px #0e1511; }
.phone img { width: 100%; height: auto; border-radius: 25px; }
.hero-card { position: absolute; z-index: 1; width: clamp(84px, 24%, 138px); height: auto; border-radius: 9px; filter: drop-shadow(4px 16px 14px #0b160ea0); }
.card-back { transform: rotate(-23deg); left: 7%; top: 53%; }
.card-face { transform: rotate(21deg); right: 6%; top: 24%; }
@media (prefers-reduced-motion: no-preference) {
  .phone, .hero-card { transition: transform .33s cubic-bezier(.2,.75,.25,1); }
  .phone { transform: translate(calc(var(--x) * 34px),calc(var(--y) * 32px)) rotateY(calc(var(--x) * 15deg)) rotateX(calc(var(--y) * -11deg)) rotateZ(calc(6deg + var(--x) * 4deg)); }
  .card-back { transform: translate(calc(var(--x) * -50px),calc(var(--y) * -36px)) rotate(calc(-23deg - var(--x) * 10deg)); }
  .card-face { transform: translate(calc(var(--x) * -66px),calc(var(--y) * -46px)) rotate(calc(21deg - var(--x) * 12deg)); }
}
.section { padding-block: 74px; scroll-margin-top: 22px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 28px; }
.section h2, .how-section h2, .reading h1 { font-size: clamp(2.6rem, 5.2vw, 4.5rem); line-height: 1; }
.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.game { min-height: 218px; isolation: isolate; overflow: hidden; position: relative; border: 1px solid #ffffff25; border-radius: 16px; background: var(--game); }
.game-copy { position: relative; z-index: 1; width: 61%; padding: 27px 0 24px 28px; }
.game h3 { font-size: clamp(1.65rem, 3vw, 2.65rem); line-height: 1.1; letter-spacing: -.045em; padding-block: 6px 11px; }
.game-detail { color: var(--game-accent); font-size: .83rem; font-weight: 725; }
.game p { color: #e0ddca; font-size: .98rem; }
.game-screen { width: 33%; position: absolute; right: 6%; top: 29px; transform: rotate(8deg); background: #111818; padding: 4px; border: 1px solid #ffffff52; border-radius: 19px; box-shadow: 0 11px 23px #0009; }
.game-screen img { width: 100%; height: auto; border-radius: 14px; }
.truco { --game: #1d3628; --game-accent: #f6d295; }
.dane { --game: #243042; --game-accent: #b9dfeb; }
.dutch { --game: #473126; --game-accent: #fac19c; }
.sueca { --game: #352b43; --game-accent: #ebd4f5; }
.games[data-enhanced] {
  display: grid;
  grid-template-columns: minmax(295px, .78fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: clamp(24px, 5vw, 76px);
  align-items: center;
}
.games[data-enhanced] .section-heading { grid-column: 1; grid-row: 1; align-self: end; margin-block: 17px 31px; }
.game-tabs { display: flex; grid-row: 2; gap: 9px; align-self: start; margin-top: 12px; padding-inline: 3px; }
.game-tab {
  --angle: 0deg;
  flex: 1; min-width: 0; display: grid; align-content: center; gap: 6px;
  height: clamp(94px, 11vw, 136px); padding: 5px; border: 1px solid #f0e1bb;
  border-radius: 7px; color: #32251d; background: #f3e7cd; font: 750 clamp(.76rem, 1.3vw, .96rem) var(--sans);
  cursor: pointer; box-shadow: 2px 6px 10px #080b0980, inset 0 0 0 3px #c3ab842e;
  transform: rotate(var(--angle));
}
.game-tab:nth-child(1) { --angle: -7deg; }
.game-tab:nth-child(2) { --angle: -2deg; }
.game-tab:nth-child(3) { --angle: 3deg; }
.game-tab:nth-child(4) { --angle: 7deg; }
.game-tab span { font: clamp(1.65rem, 4vw, 3.15rem)/1 var(--display); }
.game-tab:is(.dane, .dutch) span { color: #9d3928; }
.game-tab:hover { background: #fff2d4; }
.game-tab[aria-selected="true"] { background: var(--game-accent); border-color: var(--game-accent); transform: translateY(-10px) rotate(0deg); }
.games[data-enhanced] .game-grid { display: block; grid-column: 2; grid-row: 1 / 3; }
.games[data-enhanced] .game {
  min-height: 365px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .75fr);
  gap: 16px; align-items: center; padding: 24px clamp(18px, 4vw, 48px);
  background: radial-gradient(ellipse at 78% 50%, #ffffff12, transparent 64%), var(--game);
  border-radius: 17px; box-shadow: inset 0 1px #ffffff15, 0 14px 28px #080c092c;
}
.games[data-enhanced] .game-copy { padding: 0; width: auto; }
.games[data-enhanced] .game h3 { font: 500 clamp(2rem, 5vw, 4rem)/1 var(--display); }
.games[data-enhanced] .game-screen { position: static; width: 100%; max-width: 150px; transform: rotate(6deg); justify-self: center; }
@media (prefers-reduced-motion: no-preference) {
  .game-tab { transition: transform .25s, background-color .2s; }
  .game-tab:not([aria-selected="true"]):hover { transform: translateY(-6px) rotate(var(--angle)); }
  .games[data-enhanced] .game:not([hidden]) > * { animation: deal-in .32s cubic-bezier(.2,.75,.25,1) both; }
  @keyframes deal-in { from { opacity: 0; translate: 0 9px; } to { opacity: 1; translate: 0; } }
}
.how-section { background: #1b2b20; border-block: 1px solid var(--line); scroll-margin-top: 22px; }
.how-grid { display: grid; grid-template-columns: 1fr 1.11fr; gap: clamp(32px, 6vw, 86px); align-items: center; padding-block: 72px; }
.how-section h2 { font-size: clamp(2.4rem,4.35vw,4.05rem); }
.steps { padding: 0; margin: 23px 0 0; list-style: none; counter-reset: step; display: grid; gap: 17px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 33px 1fr; column-gap: 12px; }
.steps li::before { content: counter(step); grid-row: span 2; border: 1px solid #ffc27e56; color: var(--gold); font-weight: 750; width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; }
.steps strong { font-size: 1.05rem; }
.steps span, .how-footnote { color: var(--muted); font-size: .96rem; }
.how-footnote { margin-top: 19px; }
.tablet-frame { background: #121515; border: 2px solid #647264; border-radius: 20px; padding: 7px; box-shadow: 4px 18px 36px #0e1711ae; transform: rotate(-3deg); }
.tablet-frame img { width: 100%; height: auto; border-radius: 12px; }
.future-list { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.future-list li { display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 15px; border-bottom: 1px solid var(--line); padding-block: 15px; }
.future-card { width: 34px; height: 43px; display: grid; place-items: center; border: 1px solid #ddc3a55b; border-radius: 5px; color: var(--gold); font-size: 1.3rem; }
.future-list h3 { font-size: 1.25rem; letter-spacing: -.025em; }
.future-list p { color: var(--muted); font-size: .93rem; }
.site-footer { border-top: 1px solid var(--line); background: var(--deep); }
.footer-row { min-height: 90px; }
.reading { max-width: 755px; padding-block: 69px 80px; }
.reading h1 { margin-bottom: 19px; }
.reading .intro { margin-bottom: 29px; font-size: 1.16rem; color: var(--muted); }
.reading h2 { font-family: var(--sans); font-size: clamp(1.22rem, 3vw, 1.58rem); font-weight: 750; letter-spacing: -.025em; margin: 31px 0 8px; }
.reading p + p, .reading li + li { margin-top: 8px; }
.reading ul { margin: 9px 0; padding-left: 22px; }
.reading a:not(.button) { color: var(--gold); text-underline-offset: 4px; }
.reading address { font-style: normal; }
@media (max-width: 920px) {
  .wrap { width: min(100% - 56px, 1152px); }
  .hero-grid { min-height: 510px; }
  .hero-art { min-height: 510px; }
  .game-copy { padding-left: 20px; width: 64%; }
  .game-screen { width: 32%; right: 5%; top: 53px; }
}
@media (max-width: 690px) {
  .wrap { width: calc(100% - 38px); }
  .header-row { min-height: 64px; gap: 10px; }
  .brand { font-size: 1rem; gap: 6px; }
  .brand img { width: 25px; height: 25px; }
  .site-header nav { gap: 11px; font-size: .8rem; }
  .hero-grid, .how-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 0; }
  .hero-copy { padding: 51px 0 0; }
  .hero h1 { font-size: clamp(4.2rem, 14vw, 6rem); }
  .hero-copy p { margin-top: 22px; }
  .hero-actions { margin-top: 21px; }
  .hero-art { min-height: 420px; max-width: 450px; width: 100%; margin-inline: auto; }
  .table-ring { width: min(370px, 98%); }
  .phone { width: clamp(151px, 41%, 181px); border-radius: 23px; padding: 4px; margin-top: 0; }
  .phone img { border-radius: 17px; }
  .card-face { right: 9%; }
  .card-back { left: 9%; }
  .section { padding-block: 48px; }
  .section-heading { margin-bottom: 20px; }
  .game-grid { grid-template-columns: 1fr; gap: 12px; }
  .game { min-height: 200px; }
  .game-copy { padding-top: 24px; }
  .game-screen { width: 31%; top: 32px; right: 7%; max-width: 155px; }
  .games[data-enhanced] { display: block; }
  .games[data-enhanced] .section-heading { margin-block: 0 22px; }
  .game-tabs { margin: 0 0 19px; gap: 8px; }
  .games[data-enhanced] .game { min-height: 230px; padding-block: 18px; }
  .games[data-enhanced] .game-screen { max-width: 111px; }
  .how-grid { gap: 28px; padding-block: 48px; }
  .tablet-frame { width: 98%; transform: none; }
  .future-list li { gap: 10px; grid-template-columns: 34px 1fr; }
  .footer-row { min-height: 75px; gap: 13px; }
  .site-footer nav { font-size: .8rem; gap: 11px; }
  .reading { padding-block: 47px 58px; }
}
@media (max-width: 375px) {
  .wrap { width: calc(100% - 30px); }
  .site-header nav { gap: 8px; font-size: .76rem; }
  .hero-art { min-height: 370px; }
  .game-detail { font-size: .76rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
