:root {
  --bg: #f7f3ea;
  --panel: #fffcf6;
  --text: #202d51;
  --muted: #5d6577;
  --brand: #365cdb;
  --brand-dark: #2548bb;
  --red: #d44e40;
  --red-text: #c24436;
  --line: #dcdcd5;
  --soft-blue: #e9edf9;
  --radius: 26px;
  --sidebar: 228px;
  --space: clamp(24px, 4.3vw, 72px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
body.dialog-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
button, .button { touch-action: manipulation; }
button:not(:disabled), a { cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
button:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--brand); outline-offset: 5px; }
button:disabled { cursor: not-allowed; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.12; }
.skip-link { position: fixed; top: -100px; left: 20px; padding: 12px 20px; background: var(--text); color: white; z-index: 20; border-radius: 10px; }
.skip-link:focus { top: 12px; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); padding: 43px 28px 28px; border-right: 1px solid var(--line); display: flex; flex-direction: column; z-index: 5; background: var(--bg); }
.brand { display: block; }
.brand img { width: 176px; }
.main-nav { margin-top: 70px; display: flex; flex-direction: column; gap: 12px; }
.main-nav a { display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 10px 15px; border-radius: 12px; font-size: 15px; font-weight: 700; }
.main-nav a:hover { background: #eae7df; }
.main-nav a.is-active { background: var(--soft-blue); color: var(--brand); }
.nav-icon { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar-note { margin-top: auto; padding: 24px 4px 0; font-size: 12px; color: var(--muted); }
.sidebar-note .mini-mark { display: block; width: 25px; height: 25px; margin-bottom: 17px; color: var(--red); }
.sidebar-note p { font-size: 16px; line-height: 1.5; color: var(--text); margin-bottom: 22px; }
.page { margin-left: var(--sidebar); padding: 0 var(--space); }
.page-inner { max-width: 1120px; margin: 0 auto; }
.topline { display: flex; align-items: center; justify-content: space-between; padding: 39px 0 0; gap: 20px; }
.eyebrow { font-size: 11px; line-height: 1.5; font-weight: 700; letter-spacing: 2.3px; text-transform: uppercase; }
.topline .eyebrow { color: var(--muted); }
.tiny-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin-right: 9px; }
.topline-note { font-size: 12px; color: var(--muted); }
.hero { position: relative; padding: 76px 0 69px; }
.hero h1 { max-width: 820px; font-size: clamp(48px, 5.45vw, 84px); font-weight: 750; letter-spacing: -4.3px; line-height: 1.04; }
.hero h1 .last-line { display: block; }
.hero h1 .period { color: var(--red); }
.hero p { max-width: 560px; font-size: 17px; color: var(--muted); margin-top: 25px; }
.hero .button { margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 22px; min-height: 50px; padding: 13px 23px; border: 1px solid transparent; border-radius: 100px; background: var(--brand); color: #fff; font-size: 14px; line-height: 1.5; font-weight: 700; transition: background .18s, transform .18s; }
.button:hover { background: var(--brand-dark); transform: translateY(-2px); }
.button svg { width: 18px; height: 18px; flex-shrink: 0; }
.button-dark { background: var(--text); }
.button-dark:hover { background: #344675; }
.button-outline { color: var(--text); background: transparent; border-color: var(--text); }
.button-outline:hover { background: var(--text); color: #fff; }
.button:disabled { background: #e5e7ec; color: #616777; border-color: #d5d8df; transform: none; }
.hero-doodle { width: 116px; height: 133px; position: absolute; right: 12px; bottom: 61px; transform: rotate(9deg); }
.catalog { padding: 22px 0 70px; scroll-margin-top: 26px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.section-heading h2 { font-size: 28px; letter-spacing: -1px; }
.section-heading .section-note { font-size: 12px; color: var(--muted); }
.game-list { display: flex; flex-direction: column; gap: 20px; }
.game-row { display: flex; align-items: center; gap: 30px; padding: 30px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .18s; }
.game-row:hover { border-color: #aeb8d0; }
.game-icon { width: 148px; height: 148px; flex-shrink: 0; border-radius: 25px; }
.game-copy { flex: 1; min-width: 0; }
.category { display: inline-flex; padding: 4px 11px; background: var(--soft-blue); color: var(--brand-dark); border-radius: 7px; font-size: 11px; font-weight: 700; line-height: 1.5; letter-spacing: .5px; }
.game-copy h3 { font-size: 32px; letter-spacing: -1px; margin: 12px 0 9px; }
.game-copy p { color: var(--muted); font-size: 15px; }
.game-row > .button { flex-shrink: 0; }
.contact { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 30px; padding: 48px 0 51px; border-top: 1px solid var(--line); }
.contact .eyebrow { color: var(--red-text); margin-bottom: 13px; }
.contact h2 { font-size: 36px; letter-spacing: -1.3px; margin-bottom: 14px; }
.contact p { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.email { font-size: 16px; text-decoration: underline; text-decoration-color: #b8bed0; text-underline-offset: 5px; overflow-wrap: anywhere; }
.email:hover { color: var(--brand); }
.footer { border-top: 1px solid var(--line); padding: 24px 0 27px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; font-size: 11px; color: var(--muted); }
.footer a { overflow-wrap: anywhere; }
.footer a:hover { color: var(--brand); text-decoration: underline; }
.back-link { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; padding: 12px 0; }
.back-link svg { width: 17px; height: 17px; }
.back-link:hover { color: var(--brand); }
.detail-topline { padding-top: 25px; }
.detail-title { display: flex; gap: 23px; align-items: center; padding: 36px 0 33px; }
.detail-title img { width: 88px; height: 88px; border-radius: 20px; }
.detail-title h1 { font-size: 53px; letter-spacing: -2.5px; margin-top: 8px; }
.banner { width: 100%; height: auto; border-radius: var(--radius); }
.game-intro { padding: 38px 0 45px; display: grid; grid-template-columns: 1fr 1.12fr; gap: 36px; align-items: start; }
.game-intro h2 { font-size: 32px; letter-spacing: -1.2px; max-width: 370px; }
.game-intro p { color: var(--muted); font-size: 16px; }
.screenshots { padding: 10px 0 48px; }
.gallery-controls { display: flex; gap: 8px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; border: 1px solid #b9c0cf; color: var(--text); background: transparent; border-radius: 50%; }
.icon-button svg { width: 18px; height: 18px; }
.icon-button:not(:disabled):hover { color: white; background: var(--text); }
.icon-button:disabled { opacity: .35; }
.gallery { display: flex; gap: 18px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-color: #a1aac0 var(--line); scrollbar-width: thin; padding: 4px 4px 20px; }
.screenshot-link { flex: 0 0 auto; width: 213.75px; scroll-snap-align: start; border-radius: 18px; overflow: hidden; background: #e8edf4; }
.screenshot-link img { width: 100%; height: auto; transition: opacity .18s; }
.screenshot-link:hover img { opacity: .88; }
.gallery-hint { color: var(--muted); font-size: 12px; margin-top: 13px; }
.download-section { display: flex; justify-content: space-between; gap: 26px; align-items: center; border: 1px solid #d3daeb; background: var(--soft-blue); padding: 33px; border-radius: var(--radius); margin: 5px 0 54px; }
.download-section h2 { font-size: 30px; letter-spacing: -1px; margin: 8px 0 11px; }
.download-section p { font-size: 14px; color: var(--muted); max-width: 440px; }
.download-section .button { flex-shrink: 0; }
.lightbox { padding: 0; border: 1px solid #455371; border-radius: 20px; color: #fff; background: #17223b; max-width: min(920px, calc(100vw - 24px)); width: fit-content; max-height: calc(100dvh - 24px); }
.lightbox::backdrop { background: #10192ee8; }
.lightbox-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 12px 15px; font-size: 13px; }
.lightbox .icon-button { color: white; border-color: #7c879c; }
.lightbox-image { max-height: calc(100dvh - 174px); width: auto; height: auto; max-width: calc(100vw - 50px); margin: 0 auto; object-fit: contain; }
.lightbox-bottom { display: flex; justify-content: center; align-items: center; gap: 22px; padding: 13px; }
.lightbox-counter { font-size: 12px; min-width: 45px; text-align: center; }
.not-found { padding: 100px 0; }
.not-found h1 { font-size: clamp(42px, 5vw, 72px); letter-spacing: -2px; margin: 20px 0; }
.not-found p { color: var(--muted); margin-bottom: 30px; }
.policy-page { max-width: 850px; padding: 38px 0 64px; }
.policy-page h1 { margin-bottom: 31px; font-size: clamp(38px, 4.5vw, 58px); letter-spacing: -2px; }
.policy-body { line-height: 1.85; overflow-wrap: anywhere; }
.policy-body h2 { margin: 42px 0 18px; font-size: 24px; line-height: 1.35; letter-spacing: -.5px; scroll-margin-top: 110px; }
.policy-body p { margin: 0 0 17px; }
.policy-body strong { font-weight: 700; }
.policy-body a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 3px; }
.policy-body a:hover { color: var(--text); }
@media (min-width: 1600px) { .hero h1 { font-size: 88px; } }
@media (max-width: 1160px) {
  :root { --sidebar: 202px; --space: 34px; }
  .sidebar { padding-left: 22px; padding-right: 22px; }
  .brand img { width: 158px; }
  .hero h1 { font-size: 63px; letter-spacing: -3.5px; }
  .hero-doodle { width: 80px; right: 0; bottom: 42px; }
  .hero p { max-width: 450px; }
  .game-row { gap: 22px; padding: 25px; }
  .game-icon { width: 116px; height: 116px; border-radius: 21px; }
  .game-copy h3 { font-size: 28px; }
  .game-row .button { padding: 12px 19px; gap: 13px; }
}
@media (max-width: 900px) and (min-width: 761px) {
  .hero h1 { font-size: 52px; }
  .hero-doodle { display: none; }
  .game-row { flex-wrap: wrap; }
  .game-row > .button { margin-left: 138px; }
  .download-section { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 760px) {
  :root { --space: 24px; --radius: 22px; }
  html { scroll-padding-top: 110px; }
  .sidebar { position: sticky; top: 0; inset-inline: 0; width: 100%; padding: 16px 24px; flex-direction: row; align-items: center; justify-content: space-between; gap: 18px; border-right: none; border-bottom: 1px solid var(--line); }
  .brand img { width: 143px; }
  .main-nav { margin: 0; flex-direction: row; gap: 3px; }
  .main-nav a { min-height: 42px; padding: 9px 11px; font-size: 12px; }
  .nav-icon, .sidebar-note { display: none; }
  .page { margin-left: 0; }
  .topline { padding-top: 27px; }
  .topline-note { display: none; }
  .hero { padding: 47px 0 52px; }
  .hero h1 { font-size: clamp(45px, 9vw, 66px); letter-spacing: -2.8px; line-height: 1.04; }
  .hero h1 .last-line { display: inline; }
  .hero p { font-size: 16px; line-height: 1.7; max-width: 380px; margin-top: 24px; }
  .hero .button { margin-top: 25px; }
  .hero-doodle { width: 59px; height: 68px; bottom: 44px; right: 4px; }
  .catalog { padding: 19px 0 43px; scroll-margin-top: 110px; }
  .section-heading { margin-bottom: 21px; }
  .section-heading h2 { font-size: 26px; }
  .section-heading .section-note { display: none; }
  .game-row { padding: 23px; gap: 21px; flex-direction: column; align-items: flex-start; }
  .game-icon { width: 108px; height: 108px; border-radius: 20px; }
  .game-copy h3 { font-size: 32px; }
  .game-copy p { font-size: 15px; }
  .game-row > .button { align-self: stretch; margin-top: 3px; justify-content: space-between; }
  .contact { grid-template-columns: 1fr; gap: 25px; padding: 35px 0 37px; scroll-margin-top: 95px; }
  .contact h2 { font-size: 32px; }
  .contact > .button { justify-self: start; }
  .email { font-size: 15px; }
  .footer { flex-direction: column; gap: 7px; font-size: 11px; padding-bottom: 26px; }
  .detail-topline { padding-top: 13px; }
  .detail-title { padding: 26px 0 28px; gap: 17px; }
  .detail-title img { width: 73px; height: 73px; border-radius: 17px; }
  .detail-title h1 { font-size: 40px; letter-spacing: -1.8px; }
  .banner { border-radius: 15px; }
  .game-intro { padding: 29px 0 34px; grid-template-columns: 1fr; gap: 18px; }
  .game-intro h2 { max-width: 320px; font-size: 31px; }
  .game-intro p { font-size: 15px; }
  .screenshots { padding-bottom: 36px; }
  .screenshot-link { width: 202.5px; }
  .gallery { gap: 14px; }
  .download-section { flex-direction: column; align-items: flex-start; padding: 25px; margin-bottom: 38px; }
  .download-section h2 { font-size: 29px; }
  .download-section .button { width: 100%; padding-inline: 13px; }
}
@media (max-width: 360px) {
  :root { --space: 20px; }
  .sidebar { padding: 14px 18px; gap: 5px; }
  .brand img { width: 125px; }
  .main-nav a { padding-inline: 9px; }
  .hero h1 { font-size: 43px; }
  .hero-doodle { width: 45px; right: 0; }
  .button { padding-inline: 19px; gap: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
