/* Crillion Devil · Coming-soon-Seite
   Farben aus dem Spiel: Ballfarben game_manager.gd, Titel-Cyan main_menu.tscn, Grund background.gd */

@font-face {
  font-family: "Dungeon Mode";
  src: url("../fonts/dungeon-mode.woff2") format("woff2");
  font-display: swap;
}

:root {
  --grund: #0a0a1f;
  --grund-2: #0f0f2e;
  --cyan: #00e6cc;
  --rot: #ff2640;
  --blau: #2680ff;
  --gelb: #ffe61a;
  --gruen: #1aff59;
  --text: #e8ecff;
  --leise: #9aa3d6;
  --pixel: "Dungeon Mode", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--grund);
  color: var(--text);
  font-family: var(--pixel);
  overflow: hidden;
  -webkit-font-smoothing: none;
  font-smooth: never;
}

body {
  min-height: 100dvh;
  background: linear-gradient(var(--grund), #1a0808);
}

#szene {
  position: fixed;
  inset: 0;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  z-index: 0;
  touch-action: none;
}

/* Röhrenbild wie im Spiel: Zeilen und dunkle Ränder */
.crt {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0 2px, rgba(0,0,0,.22) 2px 3px),
    radial-gradient(ellipse at center, rgba(0,0,0,0) 55%, rgba(0,0,0,.55) 100%);
  mix-blend-mode: multiply;
}

.titel {
  position: fixed;
  left: 0; right: 0;
  top: max(6vh, 56px);
  z-index: 2;
  text-align: center;
  padding: 0 16px;
  pointer-events: none;
}

.logo {
  margin: 0;
  font-weight: normal;
  line-height: .9;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.logo span { display: block; }

.logo-crillion {
  font-size: clamp(40px, min(10.5vw, 12vh), 136px);
  color: var(--cyan);
  text-shadow:
    0 0 6px rgba(0,230,204,.9),
    0 0 22px rgba(0,230,204,.55),
    0 6px 0 #00463e;
}

.logo-devil {
  font-size: clamp(48px, min(13vw, 14.5vh), 168px);
  color: var(--rot);
  text-shadow:
    0 0 8px rgba(255,38,64,.9),
    0 0 30px rgba(255,38,64,.5),
    0 7px 0 #4a0010;
  animation: flackern 6s steps(1) 2.4s infinite;
}

.claim {
  margin: 18px auto 0;
  max-width: 46ch;
  font-size: clamp(15px, 2.1vw, 22px);
  line-height: 1.45;
  color: var(--text);
  text-shadow: 0 2px 0 #000, 0 0 12px rgba(0,0,0,.8);
}

.claim span { display: inline-block; }

.bald {
  display: inline-block;
  margin: 18px 0 0;
  padding: 10px 18px 8px;
  font-size: clamp(16px, 2.2vw, 24px);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gelb);
  border: 3px solid var(--gelb);
  box-shadow: 0 0 0 3px #000, 0 0 18px rgba(255,230,26,.35), inset 0 0 12px rgba(255,230,26,.15);
  background: rgba(10,10,31,.72);
}

.aktion {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px 18px;
  margin-top: 18px;
}
.aktion .bald {
  margin: 0;
  height: 50px;
  display: inline-flex;
  align-items: center;
  padding: 2px 18px 0;
}
.video-knopf {
  pointer-events: auto;
  height: 50px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(14px, 1.7vw, 18px);
  letter-spacing: .06em;
}
.play {
  width: 0; height: 0;
  border-left: 12px solid currentColor;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}

.video-fenster {
  width: min(96vw, 1024px, calc((100dvh - 120px) * 4 / 3));
  max-width: none;
  padding: 0;
  color: var(--text);
  background: var(--grund);
  border: 3px solid var(--cyan);
  box-shadow: 0 0 0 3px #000, 0 0 40px rgba(0,230,204,.35);
}
.video-fenster::backdrop { background: rgba(4,4,14,.82); }
.video-kopf {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 8px 8px 16px;
}
.video-knoepfe { display: flex; gap: 10px; }
.ton-symbol { font-family: system-ui, sans-serif; font-size: 20px; line-height: 1; }
#video-ton[aria-pressed="true"] .ton-symbol { text-decoration: line-through; opacity: .6; }
.video-kopf h2 { margin: 0; font-weight: normal; font-size: 16px; color: var(--cyan); letter-spacing: .06em; }
.video-fenster video {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  background: #000;
}

.cursor { animation: blinken 1s steps(1) infinite; }

.leiste {
  position: fixed;
  top: 12px; right: 16px;
  z-index: 4;
  display: flex;
  gap: 10px;
}

.knopf {
  min-width: 44px;
  height: 44px;
  padding: 0 10px;
  font: inherit;
  font-size: 16px;
  color: var(--cyan);
  background: rgba(10,10,31,.8);
  border: 2px solid var(--cyan);
  box-shadow: 0 3px 0 #00463e;
  cursor: pointer;
  transition: transform .08s steps(2), box-shadow .08s steps(2), background-color .15s;
}
.knopf:hover { transform: translateY(-2px); box-shadow: 0 5px 0 #00463e; background: rgba(0,70,62,.6); }
.knopf:active { transform: translateY(3px); box-shadow: 0 0 0 #00463e; }
.knopf:focus-visible { outline: 3px solid var(--gelb); outline-offset: 3px; }

.pause-symbol {
  display: inline-block;
  width: 14px; height: 16px;
  border-left: 5px solid currentColor;
  border-right: 5px solid currentColor;
  vertical-align: middle;
}
#video-spiel[aria-pressed="false"] .pause-symbol,
#pause[aria-pressed="true"] .pause-symbol {
  width: 0; height: 0;
  border-left: 14px solid currentColor;
  border-right: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.fuss {
  position: fixed;
  left: 0; right: 0;
  bottom: 10px;
  z-index: 4;
  text-align: center;
  font-size: 13px;
  color: #c9cff5;
  text-shadow: 0 2px 0 #000;
}
.fuss a {
  display: inline-block;
  padding: 12px 2px;
  margin: -12px 0;
  color: var(--cyan);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - 9px) / 0 2px no-repeat;
  transition: background-size .25s steps(5);
}
.fuss a:hover { background-size: 100% 2px; }
.fuss a:focus-visible { outline: 3px solid var(--gelb); outline-offset: 2px; }

/* Einflug beim Laden, einmal */
[data-enter] { animation: einflug .7s steps(7) both; }
.claim[data-enter] { animation-delay: .35s; }
.aktion[data-enter] { animation-delay: .7s; }

@keyframes einflug {
  from { opacity: 0; transform: translateY(-28px); }
  to { opacity: 1; transform: none; }
}
@keyframes blinken { 50% { opacity: 0; } }
@keyframes flackern {
  0%, 100% { opacity: 1; transform: none; }
  2% { opacity: .55; transform: translateX(3px); }
  3% { opacity: 1; transform: translateX(-2px); }
  4% { transform: none; }
}

body.ruhe .logo-devil, body.ruhe .cursor { animation: none; }

@media (prefers-reduced-motion: reduce) {
  [data-enter], .logo-devil, .cursor { animation: none !important; }
}

@media (max-height: 520px) {
  .titel { top: 12px; }
  .claim { display: none; }
  .aktion { margin-top: 10px; }
}

@media (max-width: 600px) {
  .titel { top: 72px; }
  .claim { margin-top: 14px; }
}
