/* the title font, from fonts/ */
/* the handwriting (notes, the rowing hint) */
@font-face {
  font-family: "Pecita";
  src: url("../fonts/Pecita.woff2") format("woff2"), url("../fonts/Pecita.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "DT World Tour";
  src: url("../fonts/DTWorldTour-Regular.woff2") format("woff2"), url("../fonts/DTWorldTour-Regular.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
/* Night Row: one full-screen WebGL canvas (three.js), one quiet hint at the foot, and the game's
   start / game-over screens. Single dark look, by choice. (The essay's own styles: essay.css.) */
:root {
  --bg: #030303;
  --ink: #e6e6e6;
  --dim: #6a6a6a;
  --key: #1a1a1a;
  /* Sekuya for the titles; Averia Serif (made by averaging every font on Google Fonts) for the text: an
     essay about AI pulling everything to the middle, set in the average. */
  /* --title: "Sekuya", "Averia Serif Libre", system-ui, sans-serif; */   /* (the old title font: put back, and its link in index.html) */
  --title: "DT World Tour", "Averia Serif Libre", system-ui, sans-serif;   /* titles (one weight; fonts/) */
  --body: "Averia Serif Libre", Georgia, serif;        /* the essay's text: Light (300), Bold (700) for emphasis */
  color-scheme: dark;
}
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--ink); }
/* holding on the water is how you row (on a phone): no selecting, magnifying glass, callout menu, tap
   flash or double-tap zoom getting in the way */
html, body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; touch-action: manipulation; overscroll-behavior: none; }
/* the cover while the models load (main.js lifts it): just dark, then the scene fades up */
#loader { position: fixed; inset: 0; z-index: 1000; background: #000; transition: opacity 1.2s ease; }
#loader.gone { opacity: 0; pointer-events: none; }
canvas { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
#hint {
  position: fixed; left: 0; right: 0; bottom: 0;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  text-align: center; font: 400 clamp(16px, 1.7vw, 20px)/1.4 "Pecita", cursive;   /* handwritten, like the notes */
  color: var(--ink); opacity: .85; pointer-events: none; transition: opacity 1.4s ease;
}
.screen {
  position: fixed; inset: 0; display: grid; place-content: center; gap: 22px; justify-items: center;
  padding: 16px; background: rgba(0,0,0,0.62); text-align: center;
  font: 700 12px/1.5 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--dim);
  opacity: 0; transition: opacity 1.2s ease;
}
.screen.show { opacity: 1; }
.screen[hidden] { display: none; }
.screen p { margin: 0; }
.screen h2 { margin: 0; font: inherit; font-size: 20px; letter-spacing: .2em; color: var(--ink); }
.screen button {
  font: inherit; color: var(--ink); background: var(--key); border: 1px solid #333; border-radius: 3px;
  padding: .7em 1.4em; cursor: pointer; letter-spacing: inherit; text-transform: inherit;
}
.screen .choices { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.screen button:hover, .screen button:focus-visible { border-color: var(--dim); outline: none; }
#boatBtn {
  position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  font: 700 12px/1.5 var(--body); letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); background: var(--key); border: 1px solid #333; border-radius: 3px; padding: .6em 1.1em; cursor: pointer;
}
#boatBtn:hover, #boatBtn:focus-visible { border-color: var(--dim); outline: none; }
#boatBtn[hidden] { display: none; }
#air {
  position: fixed; left: 50%; bottom: calc(56px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  width: min(160px, 40vw); height: 4px; background: #222; border-radius: 2px; overflow: hidden;
  opacity: 0; transition: opacity .6s ease; pointer-events: none;
}
#air i { display: block; height: 100%; width: 100%; background: var(--ink); transform-origin: left; }
#hint kbd {   /* the keys: scribbled boxes */
  font: inherit; color: var(--ink); background: transparent;
  border: 1.5px solid currentColor; border-radius: 4px 7px 5px 8px / 7px 4px 8px 5px; padding: 0 .35em; margin: 0 .12em;
}
[hidden] { display: none !important; }
