@font-face { font-family: 'Cormorant'; src: url(fonts/cormorant-garamond-latin-500-normal.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url(fonts/cormorant-garamond-latin-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url(fonts/cormorant-garamond-latin-500-italic.woff2) format('woff2'); font-weight: 500; font-style: italic; font-display: swap; }
@font-face { font-family: 'Roboto'; src: url(fonts/roboto-latin-300-normal.woff2) format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Roboto'; src: url(fonts/roboto-latin-500-normal.woff2) format('woff2'); font-weight: 500; font-display: swap; }

/* Eismond-Look, Farben wie beim Verbiege-Barometer */
:root {
  --nacht: #09080a;
  --akzent: #BD0075;
  --wein: #55012E;
  --rosa: #FAC1E4;
  --hell: #FFE6F5;
  --text: #e9e3e7;
  --leise: #a79ca3;
  --gold: #c9a96e;
  --linie: rgba(201, 169, 110, .35);
  --glut: 0 0 14px rgba(189, 0, 117, .85), 0 0 34px rgba(189, 0, 117, .5);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body { min-height: 100dvh; background: var(--nacht); color: var(--text); font: 300 17px/1.6 'Roboto', system-ui, sans-serif; overflow-x: hidden; }
.versteckt { display: none !important; }

.himmel { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.himmel .sterne { position: absolute; inset: 0; opacity: .5;
  background-image: radial-gradient(1px 1px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 78% 12%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 64% 38%, var(--rosa), transparent), radial-gradient(1px 1px at 22% 62%, #fff, transparent),
    radial-gradient(1px 1px at 88% 70%, #fff, transparent), radial-gradient(1.5px 1.5px at 40% 85%, var(--rosa), transparent),
    radial-gradient(1px 1px at 55% 8%, #fff, transparent), radial-gradient(1px 1px at 5% 90%, #fff, transparent); }
.rauch { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: treiben 38s ease-in-out infinite alternate; }
.rauch.r1 { width: 70vmax; height: 45vmax; left: -20vmax; top: -10vmax; background: radial-gradient(closest-side, #3a363c, transparent); }
.rauch.r2 { width: 60vmax; height: 50vmax; right: -25vmax; top: 20vh; background: radial-gradient(closest-side, #2d2a30, transparent); animation-duration: 46s; }
.rauch.r3 { width: 55vmax; height: 40vmax; left: 10vw; bottom: -20vmax; background: radial-gradient(closest-side, rgba(85, 1, 46, .8), transparent); animation-duration: 52s; }
.rauch.r4 { width: 35vmax; height: 30vmax; right: 5vw; top: -8vmax; background: radial-gradient(closest-side, rgba(189, 0, 117, .25), transparent); animation-duration: 30s; }
@keyframes treiben { from { transform: translate(0, 0) scale(1); } to { transform: translate(6vw, 4vh) scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .rauch { animation: none; } }

main { position: relative; z-index: 1; max-width: 480px; margin: 0 auto; padding: calc(18px + env(safe-area-inset-top)) 16px calc(48px + env(safe-area-inset-bottom)); }
.marke { text-align: center; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 0 0 18px; }
.screen { display: none; animation: auftauchen .6s ease; }
.screen.aktiv { display: block; }
@keyframes auftauchen { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

h1, h2 { font-family: 'Cormorant', Georgia, serif; font-weight: 500; color: var(--hell); line-height: 1.1; text-align: center; margin: 0 0 .3em; text-shadow: 0 0 28px rgba(189, 0, 117, .55); }
h1 { font-size: clamp(44px, 12vw, 64px); }
h2 { font-size: clamp(32px, 8vw, 42px); }
.unterzeile { font-family: 'Cormorant', Georgia, serif; font-style: italic; font-size: 22px; color: var(--rosa); text-align: center; margin: 0 0 24px; }
.leise { color: var(--leise); font-size: 15px; }
.karte-box { background: rgba(20, 18, 22, .72); border: 1px solid var(--linie); border-radius: 18px; padding: 24px 20px; text-align: center; box-shadow: 0 0 40px rgba(0,0,0,.5); }
.bestwert { color: var(--gold); font-weight: 500; }
.bestwert:empty { display: none; }
.knopf { display: block; margin: 20px auto 0; border: 1px solid var(--akzent); background: var(--akzent); color: #fff; border-radius: 999px; padding: 14px 34px; font: 500 17px Roboto, sans-serif; cursor: pointer; box-shadow: var(--glut); }
.knopf:active { transform: scale(.97); }

/* Spielfeld */
.leiste { display: flex; justify-content: space-between; color: var(--leise); font-size: 15px; margin-bottom: 14px; }
.feld { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; perspective: 900px; }
.kachel { aspect-ratio: 1; border: 0; padding: 0; background: none; cursor: pointer; }
.innen { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .45s ease; }
.kachel.auf .innen { transform: rotateY(180deg); }
.rueck, .vorn { position: absolute; inset: 0; border-radius: 14px; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: grid; place-items: center; }
.rueck {
  background: radial-gradient(circle at 50% 45%, rgba(189,0,117,.35), transparent 60%), linear-gradient(160deg, #1d1a20, #120f14);
  border: 1px solid var(--linie);
}
.rueck::after { content: ''; width: 34%; aspect-ratio: 1; border: 1.5px solid var(--gold); transform: rotate(45deg); opacity: .55; border-radius: 3px; }
.vorn {
  transform: rotateY(180deg); background: #1a1219; border: 1.5px solid var(--rosa); color: var(--hell);
  font: 500 clamp(26px, 8vw, 36px)/1 'Roboto', sans-serif; flex-direction: column; align-content: center; gap: 2px;
}
.vorn small { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--leise); }
.kachel.treffer .vorn { background: var(--akzent); border-color: var(--hell); box-shadow: var(--glut); animation: gluehen 2.4s ease-in-out infinite; }
.kachel.treffer .vorn small { color: var(--hell); }
.kachel.falsch .vorn { border-color: #7a5a66; color: var(--leise); }
@keyframes gluehen { 50% { box-shadow: 0 0 20px rgba(189,0,117,1), 0 0 48px rgba(189,0,117,.6); } }
.meldung { text-align: center; min-height: 3.4em; margin: 18px 0 0; color: var(--rosa); }
.meldung b { color: var(--hell); font-family: 'Cormorant', Georgia, serif; font-size: 24px; font-weight: 600; }

/* Ende */
.neu-best { text-align: center; color: var(--gold); font-weight: 500; margin-top: -10px; }
.liste { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.liste li { display: flex; gap: 14px; align-items: center; background: rgba(20, 18, 22, .72); border: 1px solid var(--linie); border-radius: 12px; padding: 10px 14px; font-size: 15px; }
.liste b { color: var(--hell); background: var(--akzent); border-radius: 8px; padding: 2px 8px; box-shadow: 0 0 10px rgba(189,0,117,.6); font-weight: 500; }
.liste b { white-space: nowrap; min-width: 62px; text-align: center; }
/* Zentrums-Karten (Tor-Zentren-Memory) */
.kachel.ist-zentrum .vorn { border-color: var(--gold); }
.zname { font: 500 clamp(11px, 3.4vw, 14px)/1.2 'Roboto', sans-serif; text-align: center; padding: 0 4px; color: var(--hell); hyphens: none; }
.kachel.treffer.ist-zentrum .vorn { border-color: var(--hell); }

.marke a { display: inline-block; padding: 7px 16px; border: 1px solid var(--linie); border-radius: 999px; background: rgba(20,18,22,.8); color: var(--gold); text-decoration: none; }
.marke a:active { background: var(--akzent); color: var(--hell); }

.fuss { position: relative; z-index: 1; text-align: center; font-size: 12px; color: var(--leise); padding: 0 16px calc(24px + env(safe-area-inset-bottom)); }
.fuss a { color: var(--gold); text-decoration: none; }
