:root {
  --paper: #f6f1e6;
  --paper-light: #fffdf7;
  --ink: #243744;
  --muted: #61717a;
  --green: #265953;
  --accent: #d76e49;
  --line: #d9dfd5;
  --shadow: 0 22px 60px -38px #294c47a8;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 400 16px/1.6 system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
body.night { --paper: #161e2e; --paper-light: #202b3b; --ink: #f5f1e7; --muted: #bdc9ca; --green: #d4ead5; --accent: #f1a479; --line: #455667; --shadow: 0 22px 60px -38px #000; }
button, select { font: inherit; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
img { max-width: 100%; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.nav { min-height: 76px; padding: 12px max(24px, calc((100vw - var(--max)) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--paper-light); border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.brand { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 1.02rem; font-weight: 850; letter-spacing: .035em; }
.brand-mark { color: var(--accent); font-size: 1.13em; }
.nav-links { display: flex; align-items: center; gap: clamp(12px, 2.1vw, 28px); font-size: .91rem; font-weight: 700; }
.nav-links > a { white-space: nowrap; color: var(--muted); }
.nav-links > a:hover { color: var(--accent); }
.language-select, .daynight { border: 1px solid var(--line); background: var(--paper-light); color: var(--ink); border-radius: 999px; height: 38px; cursor: pointer; }
.language-wrap { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.language-label { color: var(--muted); font-size: .78rem; font-weight: 850; letter-spacing: .03em; }
.language-select { max-width: 132px; padding: 0 28px 0 12px; font-weight: 700; }
.daynight { min-width: 38px; padding: 0 12px; font-weight: 700; }
.hero { padding: clamp(36px, 5vw, 60px) 24px; background: var(--paper); }
.hero-inner { width: min(100%, var(--max)); min-height: 330px; margin: auto; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(220px, .65fr); align-items: center; gap: clamp(24px, 4vw, 64px); position: relative; overflow: hidden; border: 1px solid #bfd8c8; border-radius: 32px; padding: clamp(32px, 5vw, 64px); background: radial-gradient(circle at 93% 16%, #c4e9d7 0, transparent 32%), radial-gradient(circle at 62% 100%, #f4ddaf 0, transparent 37%), #e5f1e4; box-shadow: 0 22px 46px -39px #315c4b; }
.hero-copy { max-width: 650px; position: relative; z-index: 1; }
.eyebrow, .kicker { margin: 0 0 16px; color: var(--accent); font-size: .8rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.hero-title { margin: 0; max-width: 16ch; font-size: clamp(2.4rem, 4.5vw, 4.3rem); line-height: 1.08; font-weight: 850; letter-spacing: -.045em; text-wrap: balance; }
.hero-sub { max-width: 48ch; margin: 18px 0 25px; font-size: clamp(1rem, 1.4vw, 1.14rem); font-weight: 550; color: #4d6870; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 24px; border-radius: 13px; background: var(--accent); color: white; font-weight: 800; box-shadow: 0 9px 20px -12px #a95439; transition: transform .2s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 15px 24px -13px #a95439; }
.hero-playfield { position: relative; justify-self: center; width: 250px; height: 250px; transform: rotate(-8deg); }
.playfield-orbit { position: absolute; inset: 12px; border: 2px dashed #5c9c8280; border-radius: 50%; }
.orbit-two { inset: 43px; border-color: #f1a367b8; transform: rotate(30deg); }
.playfield-tile { position: absolute; display: grid; place-items: center; width: 93px; height: 93px; border: 4px solid #fff9ed; border-radius: 24px; color: #fff9ed; font-size: 3rem; box-shadow: 0 17px 25px -18px #22423988; animation: tile-float 5.2s ease-in-out infinite; }
.tile-one { top: 2px; left: 70px; background: #e8885c; }
.tile-two { right: 0; bottom: 23px; background: #387b77; animation-delay: -1.3s; }
.tile-three { bottom: 4px; left: 0; background: #e2b450; animation-delay: -2.6s; }
.playfield-spark { position: absolute; color: #e78659; font-size: 2rem; animation: spark-breathe 4s ease-in-out infinite; }
.spark-one { top: 28px; right: 8px; }.spark-two { bottom: 20px; left: 108px; animation-delay: -2s; }
@keyframes tile-float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-7px) rotate(2deg); } }
@keyframes spark-breathe { 0%, 100% { opacity: .5; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.1); } }
.games { background: #e7efe8; padding: 48px 24px 64px; }
.section-head, .game-grid, .catalog-note, .studio-inner { width: min(100%, var(--max)); margin-inline: auto; }
.section-head { margin-bottom: 27px; }
h2 { margin: 0; font-size: clamp(2rem, 3.7vw, 3.2rem); line-height: 1.2; font-weight: 820; letter-spacing: -.025em; text-wrap: balance; }
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.game-card { display: block; max-width: 360px; min-width: 0; padding: 12px 12px 22px; background: var(--paper-light); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 18px 36px -31px #294c47a8; transition: transform .22s ease, box-shadow .22s ease; }
.game-card:hover { transform: translateY(-5px) rotate(-.4deg); box-shadow: 0 24px 42px -28px #294c47aa; }
.g-tile { height: 215px; display: grid; place-items: center; overflow: hidden; border-radius: 12px; background: repeating-linear-gradient(90deg, #dce4d2 0 22px, #e8ecd9 22px 24px); }
.g-tile img { width: auto; height: 100%; object-fit: contain; box-shadow: 0 8px 28px #21423d38; transition: transform .25s ease; }
.game-card:hover .g-tile img { transform: scale(1.04); }
.game-copy { padding: 18px 7px 0; }
.g-tag { color: var(--accent); font-size: .76rem; font-weight: 850; letter-spacing: .03em; }
.game-card h3 { margin: 7px 0 8px; font-size: 1.55rem; line-height: 1.2; }
.game-card p { margin: 0 0 16px; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.game-more { display: inline-block; color: var(--accent); font-weight: 850; }
.catalog-note { margin-top: 20px; color: #5a736b; font-size: .9rem; }
.studio { padding: 68px 24px 72px; background: var(--paper); }
.studio-row { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
.studio h2 { max-width: 14ch; font-size: clamp(1.7rem, 3vw, 2.7rem); }
.studio-text { margin: 0; max-width: 47ch; color: var(--muted); font-size: 1.05rem; }
.footer { padding: 28px 24px; background: var(--paper-light); border-top: 1px solid var(--line); }
.foot-bottom { width: min(100%, var(--max)); margin: auto; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--muted); font-size: .83rem; }
.foot-bottom strong { color: var(--ink); font-size: .95rem; letter-spacing: .025em; }
.foot-bottom a { color: var(--accent); font-weight: 800; }
@media (max-width: 780px) {
  .nav { padding: 11px 16px; min-height: 62px; flex-wrap: wrap; }
  .nav-links { gap: 8px; }
  .nav-links > a { display: none; }
  .brand { font-size: .86rem; gap: 5px; }
  .language-select { max-width: 100px; height: 36px; padding-left: 9px; padding-right: 20px; font-size: .8rem; }
  .daynight { width: 36px; height: 36px; padding: 0; }
  .hero { padding: 24px 18px 32px; }
  .hero-inner { min-height: 0; grid-template-columns: 1fr; gap: 12px; padding: 32px 25px 22px; }
  .hero-copy { padding: 0; }
  .hero-title { max-width: 16ch; font-size: clamp(2.25rem, 8vw, 3.7rem); }
  .hero-sub { margin: 17px 0 22px; }
  .hero-playfield { width: 150px; height: 112px; transform: scale(.55) rotate(-8deg); transform-origin: top center; margin-bottom: -42px; }
  .games { padding: 48px 18px 58px; }
  .studio { padding: 56px 18px; }
  .studio-row { grid-template-columns: 1fr; gap: 14px; }
  .foot-bottom { flex-wrap: wrap; }
}
@media (max-width: 520px) { .brand { width: 100%; } .nav-links { width: 100%; justify-content: space-between; } .language-wrap { margin-left: auto; } }
@media (max-width: 370px) { .nav { padding-inline: 13px; } .brand { font-size: .8rem; } .language-select { max-width: 102px; padding-left: 7px; padding-right: 18px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .game-card, .g-tile img { transition: none; } .playfield-tile, .playfield-spark { animation: none; } }


body.night .hero { background: var(--paper); }
body.night .hero-inner { background: radial-gradient(circle at 93% 16%, #27554e 0, transparent 33%), #263c3d; border-color: #45665e; }
body.night .hero-sub { color: var(--muted); }
body.night .games { background: #1c3035; }
body.night .catalog-note { color: var(--muted); }
