:root {
  color-scheme: light;
  --background: #fcfbf8;
  --navy: #12274a;
  --muted: #53698a;
  --rule: #d9d7d2;
  --badge: #ffebc1;
}
* { box-sizing: border-box; }
html { min-width: 320px; }
body {
  margin: 0;
  color: var(--navy);
  background: var(--background);
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; }
.page-shell {
  width: min(1174px, calc(100% - 56px));
  min-height: 100svh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.site-header {
  display: flex;
  justify-content: center;
  padding: 39px 0 59px;
}
.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  width: min(330px, 100%);
}
.brand-frog {
  width: 41%;
  height: auto;
  display: block;
}
.brand-wordmark {
  width: 59%;
  height: auto;
  display: block;
}
.rule { height: 1px; flex: 0 0 1px; background: var(--rule); }
.game-section {
  text-align: center;
  padding: 45px 0 67px;
}
.game-icon-button {
  display: block;
  width: min(312px, 76vw);
  aspect-ratio: 1;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 23%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.game-icon-button:focus-visible, .site-footer a:focus-visible, .dialog-close:focus-visible, .brand:focus-visible {
  outline: 3px solid #528fc2;
  outline-offset: 6px;
}
.game-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 23%;
  transition: transform .16s ease;
}
.game-icon-button:hover .game-icon { transform: translateY(-2px); }
h1 {
  margin: 39px 0 10px;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.22;
  letter-spacing: -.025em;
  font-weight: 750;
}
.game-description {
  color: var(--muted);
  font-size: clamp(15px, 1.55vw, 20px);
  margin: 0 auto;
  line-height: 1.5;
}
.coming-soon {
  display: inline-block;
  background: var(--badge);
  color: var(--navy);
  border-radius: 999px;
  margin-top: 23px;
  padding: 10px 31px;
  font-size: 16px;
  letter-spacing: .13em;
  font-weight: 600;
}
.site-footer {
  margin-top: auto;
  padding: 45px 0 45px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  font-size: 16px;
  color: var(--muted);
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.game-dialog {
  width: min(440px, calc(100vw - 34px));
  border: 0;
  border-radius: 22px;
  padding: 20px;
  background: var(--background);
  color: var(--navy);
  box-shadow: 0 18px 70px rgba(12, 29, 54, .20);
  text-align: center;
}
.game-dialog::backdrop { background: rgba(14, 25, 40, .58); }
.game-dialog > img { display: block; width: min(210px, 65%); height: auto; margin: 15px auto 0; border-radius: 23%; }
.dialog-close {
  position: absolute; right: 14px; top: 11px;
  width: 32px; height: 32px; border-radius: 50%;
  border: none; background: #f1eee7; color: var(--navy);
  font-size: 23px; cursor: pointer; line-height: 1;
}
.dialog-content h2 { font-size: 23px; margin: 22px 0 10px; }
.dialog-content p { font-size: 16px; line-height: 1.55; color: var(--muted); margin: 0; }
.dialog-content .coming-soon { margin: 22px 0 7px; }
/* Privacy page uses the same minimal palette and footer, with a readable text column. */
.legal-header { padding: 26px 0; }
.legal-header .brand { width: 250px; }
.legal-page { max-width: 800px; width: 100%; align-self: center; padding: 44px 0 68px; }
.legal-page h1 { font-size: 36px; margin: 0 0 12px; }
.legal-page h2 { font-size: 21px; margin: 31px 0 10px; }
.legal-page p, .legal-page li { font-size: 16px; line-height: 1.7; color: #344967; }
.legal-page p { margin: 10px 0; }
.legal-page a { text-underline-offset: 3px; }
.legal-date { font-size: 14px !important; color: var(--muted) !important; }
.legal-page ul { padding-left: 24px; }
@media(max-width: 640px) {
  .page-shell { width: min(100% - 36px, 1174px); }
  .site-header { padding: 31px 0 33px; }
  .brand { width: min(296px, 100%); }
  .game-section { padding: 42px 0 43px; }
  .game-icon-button { width: min(278px, 76vw); }
  h1 { margin-top: 31px; }
  .game-description { max-width: 320px; }
  .coming-soon { margin-top: 22px; }
  .site-footer { padding: 34px 0; }
  .legal-page { padding: 32px 0 50px; }
  .legal-page h1 { font-size: 30px; }
}
@media(max-width: 375px) {
  .game-icon-button { width: min(235px, 72vw); }
  .brand { width: 262px; }
  h1 { font-size: 23px; }
  .game-section { padding: 35px 0; }
}
@media(prefers-reduced-motion: reduce) { .game-icon { transition: none; } }
