/* Generated by eisbach-surf-game/tools/build-shopify.py from index.html. Do not edit here; edit the game repo and rebuild. */

/* Layout: full-bleed canvas game (river wave seen from the Prinzregentenstraße bridge), HTML panels for menu and score card.
   Single visual world: always the same park-green / river-teal palette, independent of the viewer's theme. */
:root {
  --park: #1f5f47;
  --park-deep: #133e30;
  --river: #3f97a8;
  --cream: #fbf6ea;
  --coral: #ef5a43;
  --sun: #f6d55c;
  --ink: #1d2b2a;
  --stone: #d9cfc4;
  --display: "Bowlby One", "Arial Black", Impact, system-ui, sans-serif;
  --body: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
html, body { height: 100%; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--park-deep);
  color: var(--cream);
  font-family: var(--body);
  overflow: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
#stage { position: fixed; inset: 0; display: grid; place-items: center; }
#game { display: block; }

.overlay {
  position: fixed; inset: 0;
  display: grid; place-items: center;
  padding-top: max(16px, env(safe-area-inset-top, 0px));
  padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  background: rgba(19, 62, 48, 0.55);
  overflow-y: auto;
  touch-action: auto;
}
.panel {
  background: var(--cream);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 18px;
  box-shadow: 0 8px 0 var(--ink);
  width: 100%;
  max-width: 440px;
  padding: 22px 24px 20px;
  display: grid;
  gap: 12px;
  box-sizing: border-box;
}
.eyebrow { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--coral); }
h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(38px, 9vw, 56px); line-height: 0.95; text-wrap: balance; color: var(--ink); }
h1 span { color: var(--river); }
.lede { margin: 0; font-size: 15px; line-height: 1.45; }
.controls { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14px; }
.controls li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
kbd {
  font-family: var(--body); font-weight: 800; font-size: 12px;
  background: #fff; border: 2px solid var(--ink); border-bottom-width: 4px; border-radius: 6px;
  padding: 1px 7px; min-width: 14px; text-align: center;
}
.touch-only { display: none; }
@media (pointer: coarse) { .touch-only { display: grid; } .key-only { display: none; } }
/* standalone page vs. page in the Shopify store */
html.on-shop [data-host="standalone"], html:not(.on-shop) [data-host="shop"] { display: none !important; }
.toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  top: calc(64px + env(safe-area-inset-top, 0px));
  width: min(460px, calc(100% - 32px)); box-sizing: border-box; margin: 0;
  background: var(--cream); color: var(--ink); border: 3px solid var(--ink); border-radius: 12px; box-shadow: 0 4px 0 var(--ink);
  padding: 10px 14px; font-size: 14px; font-weight: 600; line-height: 1.4; text-align: center; z-index: 20;
}
a.hudbtn { text-decoration: none; display: inline-block; }
/* one language visible at a time */
html:not([data-lang="de"]) [data-l="de"], html[data-lang="de"] [data-l="en"] { display: none !important; }
/* landscape only on phones and tablets */
.rotate-lock {
  display: none; position: fixed; inset: 0; z-index: 30; place-items: center;
  background: var(--park-deep);
  padding-top: max(16px, env(safe-area-inset-top, 0px));
  padding-bottom: max(16px, env(safe-area-inset-bottom, 0px));
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (orientation: portrait) and (pointer: coarse) { .rotate-lock { display: grid; } }
.legal-links { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.legal-links .linkbtn { padding: 0; font-size: 12px; }
.help-panel a { color: var(--river); font-weight: 600; overflow-wrap: anywhere; }
.row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  font-family: var(--display); font-size: 20px; letter-spacing: 0.02em;
  color: var(--cream); background: var(--coral);
  border: 3px solid var(--ink); border-radius: 12px; box-shadow: 0 5px 0 var(--ink);
  padding: 10px 18px; cursor: pointer; flex: 1 1 auto;
  transition: transform 0.08s, box-shadow 0.08s;
}
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--ink); }
.btn.ghost { background: var(--sun); color: var(--ink); }
.btn:focus-visible, .hudbtn:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.best { margin: 0; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fine { margin: 0; font-size: 12px; color: #4b5b58; }
.share-wrap { display: flex; align-items: center; justify-content: center; gap: 28px; width: 100%; max-width: 1000px; }
.share-preview { display: flex; flex-direction: column; align-items: center; gap: 10px; flex: none; min-width: 0; }
#cardImg { display: block; width: auto; height: min(68vh, 580px); max-width: 40vw; object-fit: contain; border-radius: 14px; border: 3px solid var(--ink); box-shadow: 0 6px 0 var(--ink); background: var(--park-deep); }
.seg { display: flex; background: var(--park-deep); border: 3px solid var(--ink); border-radius: 999px; padding: 3px; }
.seg-btn { font: 800 13px var(--body); color: var(--cream); background: transparent; border: 0; border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.seg-btn[aria-pressed="true"] { background: var(--sun); color: var(--ink); }
.seg-btn:focus-visible, .share-btn:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.share-panel { max-width: 540px; flex: 1 1 380px; min-width: 0; }
.share-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.share-btn { display: flex; align-items: center; gap: 8px; min-width: 0; font: 800 14px var(--body); color: var(--ink); background: #ffffff; border: 2px solid var(--ink); border-radius: 12px; padding: 8px 10px; box-shadow: 0 3px 0 var(--ink); cursor: pointer; text-decoration: none; }
.share-btn.util { background: var(--sun); }
.share-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.share-btn .ico { width: 26px; height: 26px; flex: none; border-radius: 8px; color: #ffffff; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.share-btn .ico.round { border-radius: 50%; }
.trash-note { margin: 0; background: #e6f6e0; border: 2px solid var(--ink); border-radius: 12px; padding: 8px 12px; font-size: 13px; font-weight: 600; line-height: 1.4; }
@media (max-height: 560px) {
  #cardImg { height: calc(100vh - 96px); }
  .share-panel { padding: 14px 16px; gap: 8px; }
  .share-panel h2 { font-size: 24px; }
  .share-panel .lede, .share-hint { display: none; }
  .share-btn { padding: 6px 8px; font-size: 12px; }
  .share-btn .ico { width: 22px; height: 22px; }
}
@media (max-width: 720px) { .share-wrap { flex-direction: column; } #cardImg { max-width: 70vw; height: auto; max-height: 60vh; } }
.note { margin: 0; min-height: 1.2em; font-size: 13px; font-weight: 600; text-align: center; }
.share-panel .row { width: 100%; }
.overlay { z-index: 10; }
.btn.small { font-size: 16px; padding: 8px 14px; }
.stack { display: grid; gap: 10px; }
h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 32px; line-height: 1; color: var(--ink); }
.help-panel { max-width: 620px; }
.help-panel h3 { margin: 6px 0 0; font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--coral); }
.help-panel p, .help-panel li { margin: 0; font-size: 14px; line-height: 1.45; }
.help-panel ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.table-wrap { overflow-x: auto; }
.help-panel table { width: 100%; border-collapse: collapse; font-size: 13px; font-family: var(--body); color: var(--ink); }
.help-panel th, .help-panel td { text-align: left; padding: 5px 6px; border-bottom: 1px solid #e3dccd; vertical-align: top; }
.help-panel th { font-weight: 800; }
.help-panel td.num { text-align: right; font-variant-numeric: tabular-nums; }
.coach {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  width: min(560px, calc(100% - 32px)); box-sizing: border-box;
  background: var(--cream); color: var(--ink);
  border: 3px solid var(--ink); border-radius: 14px; box-shadow: 0 5px 0 var(--ink);
  padding: 10px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  z-index: 4; font-size: 15px; line-height: 1.35;
}
.coach p { margin: 0; flex: 1 1 260px; min-width: 0; }
.coach .prog { font-weight: 800; color: var(--coral); font-variant-numeric: tabular-nums; white-space: nowrap; }
.linkbtn { background: none; border: none; font: 600 13px var(--body); color: #4b5b58; text-decoration: underline; cursor: pointer; padding: 4px; }
.hudbar {
  position: fixed;
  right: calc(12px + env(safe-area-inset-right, 0px));
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex; gap: 8px; z-index: 5;
}
.hudbtn {
  font-family: var(--body); font-weight: 800; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink); background: var(--cream);
  border: 2px solid var(--ink); border-radius: 999px; padding: 6px 12px; cursor: pointer; z-index: 5;
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
