@charset "UTF-8";

@font-face {
  font-family: "Baloo 2";
  src: url("../game/assets/fonts/Baloo2-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Baloo 2";
  src: url("../game/assets/fonts/Baloo2-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --sand: #f2e8d8;
  --ivory: #fffcf6;
  --ink: #163c46;
  --copper: #ba754b;
  --link: #92522f;
  --muted: #52636a;
  --line: #ded1be;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--sand);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid currentColor; outline-offset: 5px; }
.shell { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.content-shell { width: min(940px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: absolute; top: -100px; left: 20px; z-index: 10; padding: 14px; background: var(--ivory); }
.skip-link:focus { top: 12px; }
.site-header { background: var(--ink); color: var(--ivory); border-bottom: 1px solid #31515a; }
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 34px/1 "Baloo 2", Arial, sans-serif; letter-spacing: -.8px; white-space: nowrap; }
.brand img { flex-shrink: 0; }
.brand-accent { color: var(--copper); }
nav { display: flex; align-items: center; gap: 32px; font-size: 15px; }
nav a { display: inline-flex; align-items: center; min-height: 44px; border-bottom: 2px solid transparent; padding: 8px 4px; }
nav a:hover, nav a:focus-visible { border-bottom-color: var(--copper); }
main { position: relative; isolation: isolate; padding-bottom: 48px; }
main::before { content: ""; position: absolute; z-index: -1; inset: 0 0 auto; height: 980px; max-height: 100%; background: url("../images/oasis-landscape.svg") center top / cover no-repeat; pointer-events: none; }
h1, h2, .tagline { font-family: "Baloo 2", Arial, sans-serif; font-weight: 600; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 6px; font-size: clamp(36px, 4.7vw, 58px); line-height: 1.12; letter-spacing: -2px; }
.intro h1 { font-weight: 700; letter-spacing: -1.5px; }
h2 { margin-bottom: 18px; font-size: 36px; line-height: 1.2; letter-spacing: -1px; }
.eyebrow { margin: 0 0 12px; font: 700 11px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 1.8px; }
section { scroll-margin-top: 20px; }
.game-section { padding-top: 24px; text-align: center; }
.intro p { margin-bottom: 16px; font-size: 19px; line-height: 1.5; }
.game-panel { width: min(100%, 940px, calc(177.78svh - 460px)); min-width: min(100%, 560px); margin-inline: auto; padding: 0 18px 14px; border: 1px solid #f5eee3; border-radius: 16px; background: var(--ivory); box-shadow: 0 8px 32px #784b2020; }
.game-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding-inline: 10px; }
.game-heading .eyebrow { margin: 0; text-align: left; }
.fullscreen-button { min-height: 44px; padding: 8px 0 8px 10px; border: 0; background: transparent; color: var(--link); font: 700 11px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.fullscreen-button:hover { color: var(--ink); }
.fullscreen-button:disabled { color: var(--muted); cursor: not-allowed; }
.game-frame { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: 9px; background: #062c50; box-shadow: 0 0 0 1px #163c461a; }
.game-frame:fullscreen { width: 100vw; height: 100vh; min-height: 0; max-height: none; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
.game-benefits { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 12px 0 0; font-size: 13px; line-height: 1.6; }
.game-benefits::before, .game-benefits::after { content: ""; width: 48px; height: 1px; margin-inline: 8px; background: #ba754b80; }
.game-benefits span { color: var(--link); }
.game-support { margin-top: 6px; font-size: 12px; line-height: 1.6; }
.game-open { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; display: inline-block; padding: 6px; }
.game-open:hover { color: var(--ink); }
.game-hint { margin: 8px auto; max-width: 560px; color: var(--muted); }
.game-hint:empty { display: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.tagline { margin-block: 24px 44px; text-align: center; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.25; letter-spacing: -1px; }
.how-to-play { padding: 36px; border: 1px solid var(--line); border-radius: 16px; background: var(--ivory); }
.section-intro, .about p:not(.eyebrow), .how-to-note { font-size: 15px; line-height: 1.85; }
.section-intro { max-width: 720px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin: 28px 0 24px; padding: 0; list-style: none; counter-reset: steps; }
.steps li { border-top: 1px solid var(--line); padding-top: 18px; counter-increment: steps; }
.steps li::before { content: "0" counter(steps); color: var(--link); font: 700 20px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.steps h3 { margin: 14px 0 10px; font-size: 17px; line-height: 1.4; font-weight: 600; }
.steps p { margin-bottom: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.how-to-note { margin-bottom: 0; padding-top: 20px; border-top: 1px solid var(--line); }
.about { max-width: 720px; padding-top: 48px; text-align: center; }
.back-to-play { display: inline-flex; align-items: center; gap: 18px; min-height: 44px; margin-top: 4px; padding: 12px 24px; border-radius: 6px; background: var(--ink); color: var(--ivory); font-size: 14px; }
.back-to-play:hover { background: #245460; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 28px; border-top: 1px solid var(--line); }
.footer-brand { font-size: 24px; gap: 5px; }
.footer-brand .brand-accent { color: var(--link); }
.site-footer p { margin: 0; color: var(--muted); font-size: 12px; }
.footer-suits { word-spacing: 8px; font-size: 17px; }
.footer-suits span { color: var(--link); }

.contact { max-width: 720px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 13px; line-height: 1.7; }
.contact h2 { margin-bottom: 8px; font: 600 16px/1.5 Arial, Helvetica, sans-serif; letter-spacing: 0; }
.contact p { margin-bottom: 4px; }
.contact a, .feedback-page a:not(.back-to-play) { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.contact a { display: inline-block; padding-block: 10px; }
.feedback-page { max-width: 720px; padding-top: 48px; line-height: 1.7; }
.feedback-page h1 { margin-bottom: 20px; }
.feedback-form { margin-top: 28px; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--ivory); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; }
.form-group input, .form-group select, .form-group textarea { display: block; width: 100%; min-height: 44px; padding: 10px; border: 1px solid var(--muted); border-radius: 6px; background: var(--ivory); color: var(--ink); font: inherit; }
.form-group textarea { resize: vertical; }
.form-group input:focus-visible, .form-group select:focus-visible, .form-group textarea:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
.form-help, .form-privacy { color: var(--muted); font-size: 13px; }
.form-help { margin: 6px 0 0; }
.feedback-submit { min-height: 44px; padding: 12px 24px; border: 0; border-radius: 6px; background: var(--ink); color: var(--ivory); cursor: pointer; }
.feedback-submit:hover { background: #245460; }
.feedback-submit:disabled { opacity: .65; cursor: wait; }
.form-status { margin: 16px 0 0; font-weight: 600; }
.form-status:empty { display: none; }

@media (max-width: 680px) {
  .shell { width: calc(100% - 20px); }
  .content-shell { width: calc(100% - 32px); }
  .header-inner { min-height: 68px; gap: 8px; }
  .brand { font-size: 25px; gap: 6px; letter-spacing: -.8px; }
  .brand img { width: 32px; height: 40px; }
  nav { gap: 8px; font-size: 12px; }
  nav a { padding-inline: 2px; }
  .game-section { padding-top: 20px; }
  h1 { font-size: clamp(28px, 6.7vw, 42px); letter-spacing: -1px; }
  .intro p { max-width: 340px; margin: 8px auto 14px; font-size: 14px; }
  .game-panel { width: 100%; min-width: 0; padding: 0 8px 8px; border-radius: 12px; }
  .game-heading { padding-inline: 4px; gap: 8px; }
  .game-frame { aspect-ratio: 9 / 14; min-height: 440px; max-height: 760px; border-radius: 7px; }
  .game-benefits { gap: 7px; font-size: 11px; }
  .game-benefits::before, .game-benefits::after { display: none; }
  .tagline { margin-block: 24px 30px; }
  h2 { font-size: 30px; }
  .how-to-play { padding: 24px; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .steps h3 { margin-top: 10px; }
  .about { padding-top: 36px; }
  .site-footer { flex-wrap: wrap; padding: 24px 8px; }
  .site-footer p { order: 3; width: 100%; }
}
@media (max-width: 380px) {
  .header-inner { flex-wrap: wrap; justify-content: center; padding-top: 8px; gap: 0 16px; }
  nav { gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
