/* © 2026 epicthemusical-germany.com – all rights reserved. Do not copy or reuse without written permission. (Fan project, not affiliated with EPIC: The Musical.) */

/* ── "Flucht vor Poseidon" minigame + highscore page ─────────────────────── */

/* Clickable ship in the footer (easter egg) */
.ship-egg {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 18px; padding: 6px 10px;
  background: none; border: 0; cursor: pointer;
  color: var(--text-dim); opacity: 0.55;
  transition: opacity 0.2s, color 0.2s;
}
.ship-egg img { height: 30px; width: auto; display: block; pointer-events: none; -webkit-user-drag: none; animation: ship-bob 3.4s ease-in-out infinite; transform-origin: 50% 80%; }
.ship-egg:hover, .ship-egg:focus-visible { opacity: 1; color: var(--blue-bright); }
@keyframes ship-bob {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-3px) rotate(3deg); }
}

/* Ocean takeover */
html.og-lock, html.og-lock body { overflow: hidden; }
/* keep the scrollbar's space while the page is locked, so nothing jumps sideways when the game opens or closes */
html.og-lock { scrollbar-gutter: stable; }

#ocean-foam, #ocean-overlay {
  position: fixed; inset: 0;
  display: none;
}
#ocean-foam {
  z-index: 4999; pointer-events: none;
  background: rgba(205, 240, 255, 0.9);
}
#ocean-overlay {
  z-index: 5000;
  background: #02050e;
  touch-action: none;
  user-select: none; -webkit-user-select: none;
  outline: none;
}
#ocean-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.og-hud {
  position: absolute; top: 14px; left: calc(var(--og-bar, 0px) + 18px);
  display: flex; flex-direction: column; gap: 2px;
  pointer-events: none;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}
.og-score { font-size: 1.9rem; font-weight: 700; color: var(--text-primary); letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.og-best  { font-size: 0.85rem; color: var(--blue-bright); opacity: 0.85; font-variant-numeric: tabular-nums; }

.og-close {
  position: absolute; top: 12px; right: calc(var(--og-bar, 0px) + 14px);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(2, 5, 14, 0.55); color: var(--text-primary);
  border: 1px solid var(--saga-border); font-size: 1.1rem; cursor: pointer;
  transition: background 0.15s;
}
.og-close:hover { background: rgba(30, 77, 122, 0.8); }
.og-pause {
  position: absolute; top: 12px; right: calc(var(--og-bar, 0px) + 62px);
  width: 40px; height: 40px; border-radius: 50%; padding: 0 0 1px;
  background: rgba(2, 5, 14, 0.55); color: var(--text-primary);
  border: 1px solid var(--saga-border); font-size: 0.8rem; letter-spacing: -2px; cursor: pointer;
  opacity: 0; pointer-events: none; transition: background 0.15s, opacity 0.2s;
  outline: none; -webkit-tap-highlight-color: transparent;
}
.og-pause.show { opacity: 1; pointer-events: auto; }
.og-pause:hover { background: rgba(30, 77, 122, 0.8); }

.og-msg {
  position: absolute; left: 0; right: 0; top: 24%;
  text-align: center; padding: 0 24px; pointer-events: none;
  color: var(--text-primary); text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
  transition: opacity 0.4s;
}
.og-msg strong { display: block; font-size: 1.4rem; margin-bottom: 6px; }
.og-msg span   { font-size: 0.95rem; color: var(--blue-bright); }
.og-msg.hidden { opacity: 0; }
.og-msg small.og-copy { display: block; margin-top: 18px; font-size: 0.7rem; color: var(--text-dim, #8fa3cc); opacity: 0.75; letter-spacing: 0.04em; }   /* copyright line on the start screen */
.og-mutes { display: flex; justify-content: center; gap: 14px; margin-top: 16px; }
.og-mute {
  pointer-events: auto; width: 44px; height: 44px; border-radius: 50%; padding: 0;
  display: flex; align-items: center; justify-content: center; font-size: 20px; line-height: 1; cursor: pointer;
  background: rgba(8, 28, 52, 0.7); border: 1px solid rgba(94, 176, 229, 0.5); color: #fff;
  -webkit-tap-highlight-color: transparent; transition: background 0.2s, opacity 0.2s;
}
.og-mute, .og-mute:hover, .og-mute:active, .og-mute:focus, .og-mute:focus-visible { outline: none; -webkit-tap-highlight-color: transparent; user-select: none; }   /* no click / tap highlight */
.og-mute:hover, .og-mute:active, .og-mute:focus { background: rgba(8, 28, 52, 0.7); }
.og-mute.off { opacity: 0.55; border-style: dashed; }
.og-msg.hidden .og-mute { pointer-events: none; }

.og-panel {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(380px, calc(100vw - 32px));
  padding: 24px 22px 20px; text-align: center;
  background: rgba(2, 8, 20, 0.92);
  border: 1px solid var(--saga-border); border-radius: 16px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  animation: og-pop 0.35s ease-out;
}
.og-panel[hidden] { display: none; }
@keyframes og-pop { from { opacity: 0; transform: translate(-50%, -46%) scale(0.95); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.og-panel h3 { font-size: 1.25rem; color: var(--blue-bright); margin-bottom: 10px; }
.og-panel p  { color: var(--text-secondary); font-size: 0.92rem; margin-bottom: 14px; }
.og-panel p b { color: var(--text-primary); }
.og-submit { display: flex; gap: 8px; margin-bottom: 8px; }
.og-submit input {
  flex: 1; min-width: 0; padding: 9px 12px; border-radius: 8px;
  background: rgba(30, 77, 122, 0.25); border: 1px solid var(--saga-border);
  color: var(--text-primary); font: inherit; font-size: 0.95rem;
}
.og-submit input:focus { outline: none; border-color: var(--blue-bright); }
.og-btn {
  padding: 9px 16px; border-radius: 8px; cursor: pointer;
  background: var(--blue-dim); color: var(--text-primary);
  border: 1px solid var(--saga-border); font: inherit; font-size: 0.92rem;
  text-decoration: none; display: inline-block;
  transition: background 0.15s, border-color 0.15s;
}
.og-btn:hover:not(:disabled) { background: var(--blue); border-color: var(--blue-bright); }
.og-btn:disabled { opacity: 0.5; cursor: default; }
.og-status { min-height: 1.2em; font-size: 0.85rem !important; margin-bottom: 10px !important; }
.og-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* Highscore page */
.hs-intro { color: var(--text-secondary); margin: 6px 0 18px; }
.hs-play  { margin-bottom: 22px; }
.hs-table { width: 100%; border-collapse: collapse; }
.hs-table th, .hs-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border-subtle); }
.hs-table th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.8px; color: var(--text-dim); font-weight: 600; }
.hs-table td { color: var(--text-primary); font-variant-numeric: tabular-nums; }
.hs-table td.hs-rank { width: 56px; color: var(--text-secondary); }
.hs-table td.hs-score { font-weight: 700; color: var(--blue-bright); white-space: nowrap; }
.hs-table td.hs-date  { color: var(--text-dim); font-size: 0.85rem; white-space: nowrap; }
.hs-table tbody tr:nth-child(-n+3) td { background: var(--song-bg); }
.hs-empty { color: var(--text-secondary); padding: 24px 0; text-align: center; }

@media (max-width: 560px) {
  /* phones: the date column stays visible, the table just gets tighter so everything still fits */
  .hs-table th, .hs-table td { padding: 9px 5px; }
  .hs-table td.hs-rank { width: 34px; }
  .hs-table td.hs-name { letter-spacing: 0.06em; }
  .hs-table td.hs-date { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .ship-egg img { animation: none; }
  .og-panel { animation: none; }
}

/* 3-letter arcade initials */
.og-submit input { text-transform: uppercase; text-align: center; letter-spacing: 0.5em; padding-left: calc(12px + 0.5em); font-weight: 700; font-size: 1.1rem; }
.hs-table td.hs-name { letter-spacing: 0.2em; font-weight: 600; }

/* Ship that sails around the page: just a white ship, nothing around it */
.ship-roam {
  position: fixed; left: 0; top: 0; z-index: 150;
  /* size is set in game.js (ROAM_W / ROAM_H) */
  padding: 0; margin: 0;
  background: transparent !important; border: 0 !important; box-shadow: none; outline: none;
  -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent;
  color: #fff; opacity: 0.92; cursor: pointer; transition: opacity 0.2s;
}
.ship-roam:hover, .ship-roam:focus-visible { opacity: 1; }
.ship-roam:focus-visible { outline: 2px solid rgba(255, 255, 255, 0.7); outline-offset: 2px; border-radius: 10px; }
.ship-roam img { width: 100%; height: 100%; display: block; object-fit: contain; pointer-events: none; -webkit-user-drag: none; user-select: none; }

/* Hide the heavy page underneath while the ocean covers it (big win on phones) */
html.og-open #app, html.og-open .sticky-bar { visibility: hidden; }

@media (hover: none) {
  .og-panel { backdrop-filter: none; background: rgba(2, 8, 20, 0.97); }
}


/* ── 8-bit arcade look for everything that belongs to the game ──────────────────────────────────────────
   "ArcadePixel" is a hand-drawn 5x7 pixel font made for this site (no third-party font, no download, no
   request to anyone — it is embedded right here). It has capitals only (lowercase shows as capitals). */
@font-face {
  font-family: 'ArcadePixel';
  src: url(data:font/woff2;base64,d09GMgABAAAAAAa0AAoAAAAAOKwAAAZlAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAAgTQK23zHFAE2AiQDgxoLgVAABCAFg28HiBgbwiwjETZ6USpAUKsEetp5XihMU6Szq658H5ZmXlZ/v4utvP5BjJHBUCR4qrXP1wOfZnsPaQ6FOQkcILcqdEQyiOXDCo2LT0VHMgkTlaqhGN4fJR5bIOPBv9/y9+ZTXXM4/MRhBMKx6yi5B6EQEr8jPSUxAs3BtQnzn7dOx/+CBweNTJyjHoybN3CaAFnb7kUEvARCJFWy2vfLmt1/O32ZrJCXHJbySWhQAjf77n7NzgZ1IVoKlYKbnv9mav6GOk3IQoYos6M8QmNMiA5jonHYKCQOhdKcplNndw2jS7ASC1znIMd2hsAp6Vo/+h3r12dfFawZcQuPQ9n6KlhgusfucvYNEAfO7c30EI4vZRVgMLJowClqFrHsfs0dT4GhIg7HYIdb6DzPeMErPvCZH/zjf2yOHbE3jux5SkBkuIWWeo03xfbY/XEkfU1f0of0Pj1Jd9P1dCldSGfSelr6cuDL3i+7v0x9KhKUwQ0e/BLsLcino/45lOuNe/oSjoyAZilTpprHIhjKaGUqhqiCorIYqebwsbHGmdOmalk92MPOffXUkR3Vc6PRkXq02mqIy2JObhYcSYexZfc3qUXc1ski2rINRtGerYvmJVAYb0J9UWKhb7GtaoJdNOa5WCzSbO2CGQvNQmO0BowHqRbf8goqkqb6EauAaL4Qm6o3d6QD1RdobdQbaUnL2WkL9G3UbTa+gBfW+nYcAdt2sP6JRFMVKWCnxhbjs9fHYrdBZxUpGuyUZF0TVhMkoYoHN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yc1PjF0r0D8jN3r1Tm/d4duR9EPnvwuju1ZmF9UnMOMvM7FtA+hk6ele2g3ACitIdp7h+9/JBQIRWKJVCZXKFVqjVanNxhNZovVZndwdHJ2cXVzl5WTV1BUUlZRVVMHgSFQGByBRKExGppa2jq6evoGWByeQCSRKVQancFksTlcnqGRsYmpmbmFpZW1ja0dXyAUiSXzeQcUCDEIDIXBEUgUGoPFBb+GAQgCQ6AwOAKJQmOwuODXCABBYAgUBkcgUWgMFhf8GgUgCAyBwuAIJCr4NYYgMAQKgyOQKDQGiwt+jQMQBIZAYXAEMqh6m4eHnF4agw+k+gG+/OEb/JMYgkBisMENkS0QEgAA) format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
.og-hud, .og-msg, .og-panel, .og-btn, .og-submit input, .hs-page {
  font-family: 'ArcadePixel', 'Courier New', monospace;
  font-weight: 400; font-synthesis: none;
  -webkit-font-smoothing: none; font-smooth: never;
}
.og-score { font-size: 30px; font-weight: 400; letter-spacing: 0; line-height: 1.2; }
.og-best  { font-size: 16px; }
.og-msg strong { font-size: 20px; font-weight: 400; line-height: 1.5; }
.og-msg span   { font-size: 14px; line-height: 1.7; }
.og-msg small.og-copy { font-size: 10px; line-height: 1.6; }
.og-panel h3 { font-size: 20px; font-weight: 400; line-height: 1.5; }
.og-panel p  { font-size: 14px; line-height: 1.8; }
.og-status   { font-size: 12px !important; }
.og-btn      { font-size: 14px; }
.og-submit input { font-size: 20px; font-weight: 400; letter-spacing: 0.15em; padding-left: calc(12px + 0.15em); }   /* room for 8 characters */
.hs-page h2.song-page-title { font-size: 24px; font-weight: 400; line-height: 1.5; }
.hs-intro, .hs-empty { font-size: 14px; line-height: 1.8; }
.hs-table th { font-size: 12px; letter-spacing: 0; }
.hs-table td { font-size: 16px; }
.hs-table td.hs-name { letter-spacing: 0.1em; font-weight: 400; }
.hs-table td.hs-date { font-size: 12px; }

/* Phones: the game-over panel sits near the TOP so the on-screen keyboard can never hide the buttons */
@media (pointer: coarse) {
  .og-panel { top: 8%; transform: translate(-50%, 0); animation-name: og-pop-top; }
}
@keyframes og-pop-top {
  from { opacity: 0; transform: translate(-50%, 10px) scale(0.97); }
  to   { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

/* muted music: the note stays, with a diagonal strike through it */
.og-mute { position: relative; }
.og-mute.off::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 30px; height: 3px; border-radius: 2px;
  background: #ff6b6b; box-shadow: 0 0 0 1px rgba(8, 28, 52, 0.9); transform: translate(-50%, -50%) rotate(-45deg);
}

/* "That would be rank N!" shown above the name field on the game-over panel */
.og-place { min-height: 1.2em; font-size: 0.95rem !important; color: var(--blue-bright); margin-bottom: 6px !important; }

/* highscore list: the obstacle the run ended on, as a small icon */
.hs-table th.hs-by, .hs-table td.hs-by { width: 40px; text-align: center; padding-left: 4px; padding-right: 4px; }
.hs-table td.hs-by { font-size: 18px; line-height: 1; }
.hs-table td.hs-by img.hs-icon { width: 32px; height: 32px; display: block; margin: 0 auto; border-radius: 6px; }
