:root {
  color-scheme: dark;
  --background: #101512;
  --surface: #1a211b;
  --line: #303b31;
  --ink: #f7f5e8;
  --muted: #b8c0b5;
  --accent: #d5f18a;
  font-family: Inter, system-ui, "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--background);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.topbar { border-bottom: 1px solid #242d25; }
.topbar-inner { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 770; letter-spacing: .03em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--accent); color: #202918; font-size: 13px; padding-left: 2px; }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 14px; }
.nav-link:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.hero { position: relative; display: grid; align-items: center; min-height: 380px; margin-top: 30px; border: 1px solid var(--line); border-radius: 26px; isolation: isolate; overflow: hidden; background: #102028; }
.hero-art { position: absolute; z-index: -1; inset: 0 0 0 34%; background: url('art/fishing-hero.webp') right 44% / cover no-repeat; mask-image: linear-gradient(90deg, transparent 2%, #000 48%); }
.hero-copy { max-width: 435px; padding: 32px 0 32px clamp(26px, 5.8vw, 74px); }
.kicker { color: var(--accent); font-size: 14px; font-weight: 700; letter-spacing: .12em; margin: 0 0 13px; }
.hero h1 { font-size: clamp(56px, 8vw, 91px); font-weight: 850; letter-spacing: .035em; line-height: 1.06; margin: 0 0 16px; }
html[lang="en"] .hero h1 { font-size: clamp(46px, 6vw, 76px); letter-spacing: -.035em; }
.hero-copy > p:not(.kicker) { max-width: 286px; color: #e0e6e2; font-size: 17px; line-height: 1.75; margin: 0 0 23px; }
.button { appearance: none; font: inherit; font-weight: 750; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 47px; border-radius: 11px; padding: 10px 19px; border: 1px solid var(--line); color: var(--ink); background: var(--surface); }
.button:hover { filter: brightness(1.12); }
.primary { border-color: transparent; color: #1e2a15; background: var(--accent); }
.button > span { font-size: 13px; }
.button > .button-label { font-size: inherit; }
.shelf { margin-block: 38px 60px; }
.shelf-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.shelf-title h2 { margin: 0; font-size: clamp(24px, 3.8vw, 29px); letter-spacing: .035em; }
.shelf-title p { margin: 0; font-size: 13px; color: var(--muted); }
.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.game-card { display: flex; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); }
.game-card:hover { border-color: #748869; }
.game-link { display: flex; flex: 1; flex-direction: column; min-width: 0; border-radius: inherit; }
.game-link img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: 16px 16px 0 0; }
.game-info { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 13px 15px 0; }
.category { color: #b2c39d; font-size: 12px; margin: 0 0 5px; }
.game-info h3 { font-size: clamp(17px, 2vw, 21px); line-height: 1.35; margin: 0; }
.play-icon { flex: none; display: grid; place-items: center; width: 43px; height: 43px; border: 1px solid #51644a; border-radius: 50%; color: var(--accent); font-size: 13px; padding-left: 2px; }
.game-description { margin: 8px 15px 17px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.footer { border-top: 1px solid #242d25; padding: 19px 0 25px; font-size: 13px; color: var(--muted); }

.play-page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.player-header { padding-top: env(safe-area-inset-top); }
.player-header .wrap { min-height: 58px; }
.player-title { margin: 0; font-size: clamp(14px, 3.8vw, 19px); text-align: center; }
.player-nav { white-space: nowrap; }
.player-control { min-height: 41px; padding-inline: 11px; font-size: 13px; }
.fullscreen-control > span:first-child { font-size: 17px; }
.player-control[hidden] { display: none; }
.player { display: grid; flex: 1; min-height: 0; place-items: center; padding: 12px; }
.stage { width: min(100%, 540px); height: calc(100vh - 84px); height: calc(100dvh - 84px - env(safe-area-inset-top)); background: #0a0e0b; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.stage[hidden] { display: none; }
.stage:fullscreen { width: 100%; height: 100%; border: 0; border-radius: 0; display: grid; place-items: center; }
.stage:fullscreen iframe { max-width: 600px; }
.stage iframe { display: block; width: 100%; height: 100%; border: 0; }
.player-message { color: var(--muted); text-align: center; padding: 22px; }

@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .hero { min-height: 330px; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
  .player { padding: 0; width: 100%; }
  .stage { border: 0; border-radius: 0; height: calc(100vh - 59px); height: calc(100dvh - 59px - env(safe-area-inset-top)); }
}
@media (max-width: 520px) {
  .topbar-inner { min-height: 56px; }
  .brand { font-size: 17px; }
  .hero { min-height: 365px; margin-top: 18px; align-items: end; border-radius: 19px; }
  .hero-art { inset: 0; mask-image: none; background: linear-gradient(0deg, #101b20 5%, #101b20de 29%, #101b2020 79%), url('art/fishing-hero.webp') 81% top / auto 77% no-repeat; }
  .hero-copy { padding: 24px; }
  .hero h1 { font-size: 55px; margin-bottom: 9px; }
  .hero-copy > p:not(.kicker) { font-size: 15px; margin-bottom: 16px; }
  .kicker { font-size: 12px; margin-bottom: 6px; }
  .shelf { margin-block: 25px 32px; }
  .game-grid { grid-template-columns: 1fr; }
  .game-info h3 { font-size: 19px; }
  .player-header .wrap { width: calc(100% - 20px); gap: 8px; }
  .player-nav { font-size: 13px; }
  .header-actions { gap: 8px; }
  .fullscreen-control { min-width: 42px; }
  .fullscreen-control .fullscreen-label { display: none; }
}
