/* Home page only. Colours and font names come from collection-tokens.css. The feedback and 404 pages use styles.css. */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("./fonts/inter-latin-400-2026-09-30.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("./fonts/inter-latin-700-2026-09-30.woff2") format("woff2"); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 300px; background: var(--dojo-page); color: var(--dojo-ink); font: 400 17px/1.55 var(--dojo-font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul { margin: 0; }
a { color: inherit; }
a:focus-visible, select:focus-visible { outline: 3px solid var(--dojo-cyan); outline-offset: 4px; border-radius: 6px; }
.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip-link { position: fixed; z-index: 9; top: 8px; left: 8px; padding: 12px 16px; background: var(--dojo-ink); color: var(--dojo-page); transform: translateY(-200%); }
.skip-link:focus { transform: none; }

.site-header { display: flex; align-items: center; gap: 28px; padding-block: 20px; }
.wordmark { display: flex; align-items: center; min-height: 44px; gap: 12px; margin-right: auto; font-weight: 700; font-size: 20px; text-decoration: none; }
.site-header nav { display: flex; gap: 4px; }
.site-header nav a { padding: 11px 14px; text-decoration: none; color: var(--dojo-muted); }
.site-header nav a:hover { color: var(--dojo-ink); }
.language-picker select { min-height: 44px; padding: 0 12px; border: 1px solid var(--dojo-border); border-radius: 8px; background: var(--dojo-surface); color: var(--dojo-ink); font: inherit; font-size: 15px; }

h1 { padding-block: 36px 32px; font-size: clamp(32px, 4.2vw, 48px); line-height: 1.12; letter-spacing: -0.025em; text-wrap: balance; }
h2 { font-size: 28px; line-height: 1.2; letter-spacing: -0.015em; }
h3 { font-size: 21px; line-height: 1.3; }
.small { color: var(--dojo-muted); font-size: 15px; }
/* Break lines between words, not inside them. */
:lang(ja) :is(h1, h2, h3, p, a) { line-break: strict; word-break: auto-phrase; }
:lang(ja) :is(h1, .feature-line) { word-break: keep-all; overflow-wrap: anywhere; }
:lang(ko) :is(h1, h2, h3, p, a) { word-break: keep-all; }
.text-link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.text-link:hover { color: var(--dojo-cyan); }

/* Slick Brick Breaker, in the game's own colours */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: center; padding: 48px; border-radius: 16px; background: #2a1a10; color: #fbf1dd; }
.feature-copy { display: grid; justify-items: start; gap: 16px; }
.feature h2 img { width: min(340px, 100%); }
.feature-line { font-size: 23px; font-weight: 700; line-height: 1.3; text-wrap: balance; }
.feature .small { color: #d9c4a3; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 10px; background: #f3c969; color: #23140a; font-weight: 700; text-decoration: none; }
.button:hover { background: #ffdc8a; }
.phones { display: grid; grid-template-columns: 1fr 1.18fr 1fr; gap: 14px; align-items: center; }
.phones img { width: 100%; border-radius: 14px; }

.block { padding-top: 72px; }
.block h2 { margin-bottom: 22px; }
.block-heading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 24px; }
.last-game-link { display: inline-flex; gap: 0.35em; align-items: center; min-height: 44px; margin-bottom: 8px; text-underline-offset: 4px; }
.last-game-link[hidden] { display: none; }
.two, .three { display: grid; gap: 28px; }
.two { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 24px; }
.three { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 24px; }
.game { text-decoration: none; }
.game img { width: 100%; border-radius: 12px; margin-bottom: 16px; object-fit: cover; }
.two .game img { aspect-ratio: 16 / 9; }
.three .game img { aspect-ratio: 3 / 2; }
.game p { margin-top: 4px; color: var(--dojo-muted); text-wrap: pretty; }
.game:hover h3 { text-decoration: underline; text-underline-offset: 4px; }

.company { display: grid; grid-template-columns: 2fr 2fr 1fr; gap: 40px; margin-top: 84px; padding-block: 44px; border-top: 1px solid var(--dojo-border); }
.company h2 { margin-bottom: 12px; font-size: 21px; }
.company p { margin-bottom: 10px; color: var(--dojo-muted); }
.follow { padding: 0; list-style: none; }
.social-link { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 24px 40px; border-top: 1px solid var(--dojo-border); color: var(--dojo-muted); font-size: 15px; }
.site-footer nav a { margin-left: 12px; }

@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 32px; padding: 32px 28px; }
  .company { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 36px); }
  .site-header { flex-wrap: wrap; gap: 8px 12px; padding-block: 14px 0; }
  .site-header nav { order: 3; width: 100%; margin-left: -14px; }
  h1 { padding-block: 22px 26px; }
  .feature { width: 100%; border-radius: 0; padding: 32px 18px 28px; }
  .phones { gap: 8px; }
  .phones img { border-radius: 8px; }
  .stores { width: 100%; }
  .button { flex: 1 1 130px; padding: 0 12px; }
  .block { padding-top: 52px; }
  .two, .three { grid-template-columns: minmax(0, 1fr); }
  .three { gap: 18px; }
  .three .game { display: grid; grid-template-columns: 120px minmax(0, 1fr); column-gap: 16px; align-content: center; }
  .three .game img { grid-row: 1 / 3; height: 80px; margin: 0; }
  .three .game h3 { align-self: end; font-size: 19px; }
  .three .game p { margin: 0; font-size: 15px; line-height: 1.4; }
  .company { grid-template-columns: 1fr; gap: 30px; margin-top: 56px; }
  .company .text-link, .site-footer a, .feature .text-link, .small .text-link { display: inline-flex; align-items: center; min-height: 44px; }
  .small .text-link { display: flex; width: fit-content; }
  .site-footer nav span { display: block; }
  .follow { display: flex; flex-wrap: wrap; gap: 0 24px; }
  .site-footer nav a { margin: 0 12px 0 0; }
}
@media (max-width: 360px) {
  .site-header nav { margin-left: -8px; }
  .site-header nav a { padding-inline: 8px; font-size: 15px; white-space: nowrap; }
  .language-picker select { width: 130px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
