/* DUO Arcade home. style.css locks the game pages to one screen; this page scrolls. */
html, body.arcade-page { height: auto; min-height: 100%; overflow-x: hidden; overflow-y: auto; background: #04050c; }
.arcade-page a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Top bar: the GAMES button sits top-left (menu.js), so the brand starts after it. */
.arcade-bar { position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: max(12px, env(safe-area-inset-top)) 16px 12px 132px; pointer-events: none; }
.arcade-bar > * { pointer-events: auto; }
.arcade-brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: italic 900 18px/1 "Arial Black", "Segoe UI Black", system-ui, sans-serif; letter-spacing: 4px; color: #fff; }
.arcade-brand img { width: 30px; height: auto; filter: drop-shadow(0 0 8px #5ee0e680); }
.arcade-bar .account-button { min-height: 40px; padding: 8px 16px; background: #0b1020cc; backdrop-filter: blur(6px); border-color: #5ee0e655; }

/* The reel fills the first screen: landscape on desktop, tall on phones. */
.arcade-hero { position: relative; height: min(100svh, max(560px, 56.25vw)); min-height: 520px; overflow: hidden; background: #04050c; }
.reel-frame { position: absolute; inset: 0; }
#reel { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.narrow-only { display: none; }
.hero-overlay { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 0 clamp(16px, 4vw, 48px) clamp(84px, 11vh, 120px); pointer-events: none; }
.hero-overlay > * { pointer-events: auto; }
.hero-kicker { margin: 0; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #04050cb3; border: 1px solid #ffffff1f; backdrop-filter: blur(6px); font-size: 13px; font-weight: 700; letter-spacing: .5px; }
.hero-kicker .live-dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 10px #3ddc84; display: inline-block; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions a { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 14px; text-decoration: none; font-weight: 800; letter-spacing: .3px; transition: transform .15s, box-shadow .15s, background .15s; }
.hero-play { background: linear-gradient(90deg, #5ee0e6, #ff9fdc); color: #05060d !important; box-shadow: 0 8px 30px #5ee0e655; }
.hero-play:hover { transform: translateY(-2px); box-shadow: 0 12px 36px #ff9fdc66; }
.hero-ghost { background: #04050cb3; border: 1px solid #ffffff33; backdrop-filter: blur(6px); }
.hero-ghost:hover { background: #18223a; }

/* Games */
.arcade-games { position: relative; max-width: 1240px; margin: 0 auto; padding: 56px 16px 32px; }
.arcade-games::before { content: ""; position: absolute; inset: -80px 0 auto; height: 80px; background: linear-gradient(#04050c00, #04050c); pointer-events: none; }
.games-head { max-width: 680px; margin-bottom: 28px; }
.games-head h2 { margin: 6px 0 10px; font: italic 900 clamp(30px, 5vw, 48px)/1.05 "Arial Black", "Segoe UI Black", system-ui, sans-serif; background: linear-gradient(90deg, #fff, #5ee0e6 60%, #ff9fdc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.games-head p { margin: 0; font-size: 16px; line-height: 1.6; }
.section-kicker { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: 3px; }
.game-group { margin-top: 36px; }
.group-title { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; color: var(--muted); font-size: 13px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; }
.group-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, #ffffff26, #ffffff00); }
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; }

.game-card { --accent: #5ee0e6; position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 22px; text-decoration: none; background: #0b0f1f; border: 1px solid #ffffff14; transition: transform .2s, border-color .2s, box-shadow .2s; }
.game-card:hover, .game-card:focus-visible { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 70%, transparent); box-shadow: 0 18px 50px -12px color-mix(in srgb, var(--accent) 45%, transparent); outline: none; }
.game-art { position: relative; flex-shrink: 0; height: 230px; display: grid; place-items: center; overflow: hidden; background:
  radial-gradient(ellipse at 50% 120%, color-mix(in srgb, var(--accent) 45%, transparent), transparent 65%),
  repeating-linear-gradient(90deg, #ffffff08 0 1px, transparent 1px 32px),
  repeating-linear-gradient(0deg, #ffffff08 0 1px, transparent 1px 32px), #070a16; }
.game-art::after { content: ""; position: absolute; left: -40%; top: 0; width: 30%; height: 100%; background: linear-gradient(100deg, transparent, #ffffff22, transparent); transform: skewX(-18deg); transition: left .6s; }
.game-card:hover .game-art::after { left: 120%; }
.game-art img { position: absolute; inset: 0; margin: auto; width: 76%; height: 82%; object-fit: contain; filter: drop-shadow(0 8px 24px #000a); transition: transform .3s; }
.game-card:hover .game-art img { transform: scale(1.06) rotate(-1.5deg); }
.game-info { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 24px 26px 26px; }
.game-kind { margin: 0; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
.game-live { color: #3ddc84; letter-spacing: 1px; }
.game-info h4 { margin: 0; font: italic 900 26px/1.1 "Arial Black", "Segoe UI Black", system-ui, sans-serif; color: #fff; }
.game-pitch { margin: 0; color: #c3cde0; font-size: 15px; line-height: 1.55; flex: 1; }
.game-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.game-tags li { padding: 4px 10px; border-radius: 999px; background: #ffffff0d; border: 1px solid #ffffff1a; color: #dbe3f0; font-size: 12px; font-weight: 600; }
/* Like the ChainLens Arcade cards: a full-width play bar along the bottom. */
.game-play { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; padding: 12px 18px; border-radius: 12px; background: var(--accent); color: #05060d; font-weight: 800; transition: filter .2s; }
.game-card:hover .game-play { filter: brightness(1.12); }
.game-tags { margin-bottom: 14px !important; }
/* The Poker logo is navy on green, so its card gets a light table like on ChainLens. */
.game-card[data-game="poker"] .game-art { background: radial-gradient(ellipse at 15% 20%, #bceee4, transparent 70%), radial-gradient(ellipse at 50% 120%, #ffd16680, transparent 65%), #e5edf7; }
.game-card[data-game="poker"] .game-art img { filter: drop-shadow(0 8px 18px #0003); }

.arcade-foot { max-width: 1240px; margin: 0 auto; padding: 28px 16px max(36px, env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #ffffff14; }
.foot-chainlens { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; color: var(--muted) !important; min-height: 44px; }
.foot-chainlens:hover { color: #fff !important; }
.foot-chainlens img { border-radius: 5px; }

@media (max-width: 700px) {
  /* On a phone the buttons sit under the reel so they never cover it. */
  .arcade-hero { height: auto; min-height: 0; }
  .reel-frame { position: relative; height: min(76svh, 640px); min-height: 500px; }
  .hero-overlay { position: relative; padding: 14px 16px 0; }
  .wide-only { display: none; }
  .narrow-only { display: inline; }
  .arcade-bar { padding-left: 124px; }
  .arcade-brand span { display: none; }
  .hero-kicker { font-size: 12px; }
  .hero-actions { width: 100%; }
  .hero-actions a { flex: 1; justify-content: center; padding: 12px 14px; }
  .arcade-games { padding-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .game-card, .game-art img, .game-art::after { transition: none; }
}
