:root {
  --ink: #153e50;
  --cream: #fff7e6;
  --coral: #f67e59;
  --yellow: #ffe191;
  --muted: #62858e;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font:
    15px/1.5 Arial,
    Helvetica,
    sans-serif;
}
button {
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
  border: 0;
  color: var(--ink);
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
[hidden] {
  display: none !important;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
canvas:focus-visible {
  outline: 3px solid #f2995b;
  outline-offset: 3px;
}
.preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 19px 4vw;
  border-bottom: 1px solid #153e5020;
}
.brand {
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -1.5px;
  color: var(--ink);
  text-decoration: none;
}
.brand span {
  font-size: 9px;
  letter-spacing: 2px;
  margin-inline-start: 17px;
  vertical-align: middle;
}
.preview-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.4px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.preview-label i {
  width: 6px;
  height: 6px;
  background: #dc8354;
  border-radius: 50%;
}
main {
  max-width: 1480px;
  margin: auto;
  padding: 28px 4vw;
}
.game-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 16px;
  background: #159eb4;
  box-shadow: 0 18px 50px #153e501c;
  isolation: isolate;
}
canvas {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.utility {
  position: absolute;
  inset-block-start: 20px;
  inset-inline-end: 20px;
  display: flex;
  gap: 7px;
  z-index: 8;
}
.utility button {
  background: #f7f9dfbd;
  backdrop-filter: blur(10px);
  height: 38px;
  min-width: 38px;
  padding: 0 11px;
  font-size: 11px;
  border: 1px solid #ffffff70;
  border-radius: 8px;
}
.utility #fullscreen,
.utility #pause {
  font-size: 22px;
}
.menu {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(24, 106, 124, 0.2), transparent 65%);
  display: flex;
  align-items: center;
}
.menu-copy {
  position: relative;
  padding: 4% 7%;
  width: 64%;
}
.edition {
  font-size: 10px;
  letter-spacing: 2.8px;
  font-weight: 800;
  color: #245970;
}
.menu h1 {
  position: relative;
  font-size: clamp(54px, 8.7vw, 130px);
  line-height: 0.79;
  font-weight: 950;
  font-style: italic;
  letter-spacing: -8px;
  margin: 28px 0 24px;
  color: #fff8dc;
  transform: rotate(-5deg);
  text-shadow:
    3px 7px 0 #1a7a9c,
    0 14px 20px #186e8725;
}
.menu h1 em {
  font-style: italic;
  color: #ffe297;
}
.sun-stamp {
  display: inline-block;
  font-style: normal;
  font-size: 0.46em;
  position: absolute;
  top: -0.3em;
  inset-inline-start: 3.9em;
  text-shadow: none;
  color: #ffdd8e;
  transform: rotate(20deg);
}
.menu-copy > p {
  color: #123f56;
  font-size: clamp(16px, 2vw, 28px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.6px;
  margin: 0 0 22px;
}
.play-button,
.primary {
  background: var(--coral);
  color: #193f50;
  border-radius: 10px;
  box-shadow: 0 5px 0 #b64e3c;
  padding: 15px 25px;
  font-size: 17px;
  min-height: 52px;
}
.play-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  min-width: 235px;
}
.play-button span {
  font-size: 27px;
}
.play-button:hover,
.primary:hover {
  background: #ffae78;
}
.menu-controls {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 9px;
  letter-spacing: 1px;
  font-weight: 800;
  margin-top: 20px;
  color: #154459;
}
.menu small {
  display: block;
  margin-top: 12px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #17485bd9;
}
.menu-note {
  position: absolute;
  bottom: 6%;
  right: 4%;
  display: grid;
  gap: 3px;
  text-align: end;
  color: #ecfff2;
  transform: rotate(-3deg);
  font-size: 10px;
  letter-spacing: 2px;
}
.menu-note strong {
  font-size: 16px;
  letter-spacing: 0.7px;
}
.hud {
  position: absolute;
  inset: 23px 24px auto;
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-right: 195px;
  z-index: 3;
  color: #fff9dc;
  text-shadow: 0 2px 4px #144d6980;
}
.score-block {
  display: grid;
  line-height: 1.08;
}
.score-block > span {
  font-size: 10px;
  letter-spacing: 2px;
}
.score-block strong {
  font-size: 35px;
  letter-spacing: -1.5px;
  font-variant-numeric: tabular-nums;
}
.score-block small {
  font-size: 11px;
  margin-top: 6px;
}
.combo-block {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}
.combo-block b {
  font-size: 38px;
  color: #ffe4a6;
  font-style: italic;
}
.combo-block span {
  font-size: 9px;
  letter-spacing: 1.8px;
  margin-top: 6px;
}
.lives {
  font-size: 30px;
  letter-spacing: 4px;
  color: #fff0c5;
}
.powers {
  position: absolute;
  top: 82px;
  left: 0;
  font-size: 10px;
  letter-spacing: 0.7px;
  color: #ffedae;
}
.touch-controls {
  position: absolute;
  bottom: 14px;
  left: 22px;
  right: 22px;
  display: flex;
  justify-content: center;
  gap: 18px;
  z-index: 5;
}
.touch-controls button {
  border-radius: 50px;
  min-height: 49px;
  min-width: 68px;
  background: #f7ffff4a;
  border: 1px solid #e3ffff87;
  color: #f3ffed;
  backdrop-filter: blur(3px);
  font-size: 18px;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.touch-controls #jump {
  min-width: 113px;
  font-size: 12px;
  letter-spacing: 1px;
}
.touch-controls button:active {
  background: #fff6aaad;
}
.countdown {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 4;
}
.countdown strong {
  font-size: 100px;
  font-style: italic;
  color: #fff5c5;
  text-shadow: 4px 7px 0 #127d9e;
}
.panel {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: #073d54d9;
  backdrop-filter: blur(7px);
  color: var(--cream);
  padding: 25px;
}
.panel h2 {
  font-size: clamp(30px, 5vw, 70px);
  line-height: 1;
  letter-spacing: -3px;
  font-style: italic;
  margin: 16px 0 10px;
}
.panel h1 {
  font-size: 48px;
  font-style: italic;
  letter-spacing: -3px;
}
.panel > p {
  margin: 0 0 28px;
  color: #c8e7e5;
}
.panel-eyebrow {
  font-size: 9px;
  letter-spacing: 2px;
  color: #abd3d1;
}
.secondary-actions {
  display: flex;
  gap: 20px;
  margin-top: 22px;
}
.secondary-actions button,
.text-button {
  background: none;
  color: #d4eeeb;
  min-height: 44px;
  padding: 8px 12px;
  font-size: 11px;
  letter-spacing: 1px;
}
.final-score {
  display: flex;
  flex-direction: column;
  margin: 8px 0 18px;
  line-height: 1;
}
.final-score > span {
  font-size: 10px;
  letter-spacing: 2px;
}
.final-score strong {
  font-size: 65px;
  letter-spacing: -3px;
  color: #ffe298;
  margin-top: 8px;
}
.result-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-bottom: 25px;
}
.result-grid div {
  display: grid;
  gap: 5px;
}
.result-grid span {
  font-size: 9px;
  letter-spacing: 1px;
  color: #aad2d1;
}
.result-grid b {
  font-size: 18px;
}
.results .primary {
  font-size: 13px;
}
.loading-track {
  height: 7px;
  width: 220px;
  background: #ffffff40;
  border-radius: 4px;
  overflow: hidden;
}
.loading-track span {
  display: block;
  width: 85%;
  height: 100%;
  background: #ffe298;
}
.field-guide {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 35px;
  margin: 50px 0 35px;
}
.field-guide .kicker {
  font-size: 9px;
  letter-spacing: 2px;
  font-weight: 800;
  color: var(--muted);
}
.field-guide h2 {
  font:
    italic 32px Georgia,
    serif;
  letter-spacing: -1px;
  margin: 10px 0;
}
.field-guide p {
  font-size: 13px;
  color: #51717b;
  margin: 0;
}
.guide-card {
  border-top: 2px solid #d4ded5;
  padding-top: 18px;
}
.guide-card b {
  font-size: 10px;
  letter-spacing: 1.3px;
  display: block;
  margin-bottom: 14px;
}
.rules {
  border-top: 1px solid #153e5025;
  padding: 20px 0;
  font-size: 12px;
  color: #52737a;
}
.rules summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 35px;
}
.rules p {
  max-width: 1000px;
}
footer {
  padding: 22px 4vw;
  border-top: 1px solid #153e5025;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--muted);
}
.game-shell:fullscreen {
  border-radius: 0;
  width: 100vw;
  height: 100vh;
  aspect-ratio: auto;
  display: grid;
  place-content: center;
}
.game-shell:fullscreen canvas {
  width: min(100vw, 177.778vh);
  height: min(100vh, 56.25vw);
}
@media (max-width: 900px) {
  .brand span {
    display: none;
  }
  .preview-bar {
    padding: 14px 18px;
  }
  main {
    padding: 18px;
  }
  .field-guide {
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 30px;
  }
  .menu h1 {
    letter-spacing: -4px;
    margin: 19px 0;
  }
  .menu-copy {
    padding: 4% 6%;
  }
  .edition {
    font-size: 7px;
    letter-spacing: 1.3px;
  }
  .menu-controls {
    font-size: 8px;
    gap: 9px;
    margin-top: 14px;
  }
  .play-button {
    min-width: 185px;
    padding: 10px 18px;
    min-height: 43px;
    font-size: 13px;
    gap: 20px;
  }
  .menu small {
    font-size: 7px;
    margin-top: 8px;
  }
  .utility {
    top: 12px;
    right: 12px;
  }
  .utility button {
    height: 32px;
    min-width: 32px;
    padding: 0 7px;
    font-size: 8px;
  }
  .hud {
    inset: 15px 16px auto;
    padding-right: 155px;
  }
  .score-block strong {
    font-size: 27px;
  }
  .lives {
    font-size: 24px;
  }
  .combo-block b {
    font-size: 29px;
  }
  .powers {
    top: 68px;
    font-size: 8px;
  }
  .menu-note {
    font-size: 7px;
  }
  .menu-note strong {
    font-size: 11px;
  }
  .panel h2 {
    font-size: 42px;
    margin: 8px 0;
  }
  .panel > p {
    margin-bottom: 15px;
    font-size: 13px;
  }
  .final-score strong {
    font-size: 43px;
  }
  .result-grid {
    gap: 19px;
    margin-bottom: 15px;
  }
  .result-grid b {
    font-size: 14px;
  }
  .panel .primary {
    min-height: 40px;
    padding: 10px 20px;
  }
  .touch-controls {
    bottom: 8px;
  }
  .touch-controls button {
    min-height: 43px;
    min-width: 57px;
  }
  .touch-controls #jump {
    min-width: 98px;
  }
  .countdown strong {
    font-size: 75px;
  }
}
@media (max-width: 600px) and (orientation: portrait) {
  main {
    padding: 10px;
  }
  .preview-bar {
    padding: 11px 14px;
  }
  .preview-label {
    font-size: 7px;
    letter-spacing: 0.7px;
  }
  .game-shell {
    aspect-ratio: 4/5;
    border-radius: 12px;
    background: #0a7d9f;
  }
  canvas {
    object-fit: cover;
    object-position: center;
  }
  .menu-copy {
    width: 100%;
    padding: 10%;
  }
  .menu {
    background: linear-gradient(90deg, #226a7b36, transparent);
  }
  .menu h1 {
    font-size: 78px;
    letter-spacing: -5px;
    margin: 24px 0;
  }
  .menu-copy > p {
    font-size: 21px;
  }
  .edition {
    font-size: 8px;
  }
  .play-button {
    min-width: 205px;
    font-size: 15px;
    min-height: 50px;
  }
  .menu-controls {
    font-size: 8px;
  }
  .menu-note {
    display: none;
  }
  .utility {
    top: 10px;
    right: 10px;
  }
  .menu small {
    font-size: 8px;
  }
  .hud {
    inset: 60px 14px auto;
    padding-right: 0;
  }
  .score-block strong {
    font-size: 25px;
  }
  .score-block > span {
    font-size: 8px;
  }
  .score-block small {
    font-size: 9px;
  }
  .combo-block {
    left: 53%;
  }
  .combo-block b {
    font-size: 28px;
  }
  .combo-block span {
    font-size: 7px;
  }
  .lives {
    font-size: 21px;
    letter-spacing: 2px;
  }
  .powers {
    top: 65px;
    font-size: 8px;
    max-width: 290px;
  }
  .touch-controls {
    left: 12px;
    right: 12px;
    bottom: 14px;
    gap: 20px;
  }
  .touch-controls button {
    min-height: 51px;
    min-width: 66px;
  }
  .touch-controls #jump {
    min-width: 100px;
  }
  .panel {
    padding: 20px 12px;
  }
  .panel h2 {
    font-size: 48px;
  }
  .panel-eyebrow {
    font-size: 8px;
  }
  .result-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px 38px;
    margin-bottom: 23px;
  }
  .result-grid span {
    font-size: 8px;
  }
  .final-score strong {
    font-size: 61px;
  }
  .final-score {
    margin: 16px 0 23px;
  }
  .field-guide {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .guide-card {
    padding-top: 14px;
  }
  .field-guide > div:first-child {
    margin-bottom: 6px;
  }
  footer {
    gap: 15px;
    flex-wrap: wrap;
  }
}
@media (max-height: 500px) and (orientation: landscape) {
  .surfing .preview-bar {
    display: none;
  }
  .surfing main {
    padding: 0;
  }
  .surfing .game-shell {
    border-radius: 0;
    width: min(100vw, 177.778svh);
    margin: auto;
  }
  .menu h1 {
    font-size: 72px;
    letter-spacing: -4px;
    margin: 18px 0;
  }
  .menu-copy {
    padding: 3% 6%;
  }
  .menu-copy > p {
    font-size: 18px;
    margin-bottom: 14px;
  }
  .menu small {
    display: none;
  }
  .menu-controls {
    margin-top: 12px;
  }
  .panel {
    padding: 12px;
  }
  .panel h2 {
    font-size: 35px;
  }
  .final-score {
    margin: 7px 0 12px;
  }
  .final-score strong {
    font-size: 39px;
  }
  .result-grid {
    gap: 18px;
    margin-bottom: 13px;
  }
  .result-grid span {
    font-size: 8px;
  }
  .secondary-actions {
    margin-top: 10px;
  }
  .touch-controls {
    bottom: 6px;
  }
  .touch-controls button {
    min-height: 39px;
  }
  .hud {
    top: 12px;
  }
  .utility {
    top: 10px;
  }
  .countdown strong {
    font-size: 75px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}

/* Keep fullscreen controls clear of notches and the home indicator. */
.game-shell:fullscreen .utility {
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
}
.game-shell:fullscreen .hud {
  left: max(16px, env(safe-area-inset-left));
  right: max(16px, env(safe-area-inset-right));
}
.game-shell:fullscreen .touch-controls {
  bottom: max(14px, env(safe-area-inset-bottom));
}
/* Public navigation and fully translated page content. */
.site-nav > div {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.site-nav a,
.breadcrumbs a,
.public-info a {
  color: var(--ink);
}
.site-nav select {
  font: inherit;
  max-width: 150px;
  padding: 7px;
  border: 1px solid #648991;
  border-radius: 6px;
  background: #fffaf0;
  color: var(--ink);
}
.language-control {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumbs {
  font-size: 12px;
  margin-bottom: 12px;
}
.game-summary {
  max-width: 920px;
  margin: 0 0 20px;
}
.public-info {
  border-top: 1px solid #153e5025;
  padding: 24px 0;
  max-width: 1200px;
}
.public-info h2 {
  font-size: 25px;
}
.public-info p {
  max-width: 1000px;
  color: #365c68;
}
.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.facts-grid dt {
  font-weight: bold;
}
.facts-grid dd {
  margin: 4px 0;
  color: #365c68;
}
.faq details {
  padding: 12px 0;
  border-top: 1px solid #153e5020;
}
.faq summary {
  cursor: pointer;
  min-height: 32px;
  font-weight: bold;
}
.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.related-links a,
.related-links button {
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #648991;
  border-radius: 6px;
  background: #fffaf0;
}
.no-js {
  padding: 20px;
  background: #fff7e6;
}
.game-shell {
  direction: ltr;
}
html[dir="rtl"] .menu-copy,
html[dir="rtl"] .panel {
  direction: rtl;
}
html[dir="rtl"] .menu h1 {
  direction: ltr;
  text-align: left;
}
html:not([lang="en"]) .menu-copy > p {
  line-height: 1.3;
  letter-spacing: 0;
}
html:not([lang="en"]) .menu-controls {
  letter-spacing: 0;
}
html:not([lang="en"]) .panel h2 {
  letter-spacing: 0;
  font-size: clamp(24px, 4vw, 54px);
}
html:not([lang="en"]) .play-button {
  min-width: 0;
  max-width: 100%;
  gap: 12px;
}
html:not([lang="en"]) .utility #sound {
  max-width: 110px;
  font-size: 9px;
}
html:not([lang="en"]) .hud {
  padding-right: 215px;
}
.powers {
  max-width: 65%;
  line-height: 1.4;
}
.game-shell:fullscreen .powers {
  max-width: 80%;
}
@media (max-width: 900px) {
  html:not([lang="en"]) .hud {
    padding-right: 180px;
  }
}
@media (max-width: 600px) {
  .site-nav > div {
    gap: 10px;
  }
  .site-nav select {
    max-width: 120px;
  }
  .language-control {
    font-size: 11px;
  }
  .facts-grid {
    grid-template-columns: 1fr 1fr;
  }
  .game-summary {
    font-size: 13px;
  }
  .preview-bar {
    gap: 8px;
  }
  .powers {
    max-width: 90%;
  }
}
@media (max-width: 600px) and (orientation: portrait) {
  html:not([lang="en"]) .hud {
    padding-right: 0;
  }
  html:not([lang="en"]) .menu h1 {
    font-size: 70px;
  }
  html:not([lang="en"]) .menu-copy > p {
    font-size: 18px;
  }
  html:not([lang="en"]) .play-button {
    font-size: 13px;
  }
  .menu-controls {
    gap: 7px;
  }
  .panel > p {
    margin-bottom: 12px;
  }
  .secondary-actions {
    gap: 8px;
  }
  .panel .primary {
    max-width: 100%;
  }
}
