/* ---------- Gratis-Dreh (skyfunity.de/gratis) - baut auf stil.css auf ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.g-band { min-height: 100vh; min-height: 100svh; padding: clamp(6.5rem, 12vw, 8rem) 16px 4rem; }
.g-navi a { white-space: nowrap; }

.g-karte {
  position: relative; max-width: 900px; margin: 0 auto; text-align: center;
  background: radial-gradient(ellipse 70% 50% at 50% 0, rgba(139, 61, 255, .28), transparent 70%), rgba(20, 6, 44, .88);
  border: var(--rand); box-shadow: 8px 8px 0 var(--stadt); padding: clamp(1.4rem, 4vw, 2.6rem) clamp(1rem, 3vw, 2.2rem);
}
.g-pille { display: inline-flex; align-items: center; gap: .55rem; font: 800 .75rem/1 var(--kopf); letter-spacing: .14em; text-transform: uppercase; color: var(--gruen); border: 2px solid rgba(62, 224, 138, .45); padding: .45rem .8rem; }
.g-pille .punkt { width: 8px; height: 8px; }
.g-titel { margin-top: 1rem; font: 900 clamp(1.8rem, 5vw, 3rem)/1.1 var(--kopf); letter-spacing: -.02em; background: linear-gradient(100deg, #ffd27a, var(--rosa) 55%, var(--lila)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.g-unter { margin: .8rem auto 0; max-width: 56ch; color: var(--hell-leise); }
.g-unter strong { color: #ffd27a; }

.g-kacheln { margin-top: 1.8rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; text-align: left; }
.g-kachel { background: rgba(7, 1, 15, .45); border: 2px solid rgba(255, 143, 214, .18); padding: .9rem 1rem; }
.g-k-kopf { font: 800 .7rem/1 var(--kopf); letter-spacing: .12em; text-transform: uppercase; color: var(--hell-leise); display: flex; gap: .45rem; align-items: center; }
.g-k-wert { margin-top: .55rem; font: 900 1.6rem/1 var(--kopf); }
.g-k-wert small { font-size: .9rem; color: var(--hell-leise); }
.g-k-wert.klein { font-size: 1.15rem; color: var(--gruen); }
.g-k-text { margin-top: .5rem; font-size: .85rem; color: var(--hell-leise); line-height: 1.45; }
.g-k-text strong { color: #ffd27a; }
.g-balken { margin-top: .6rem; height: 6px; background: rgba(255, 255, 255, .08); }
.g-balken span { display: block; height: 100%; background: linear-gradient(90deg, var(--gruen), #9cffc8); transition: width .5s ease; }

/* Rolle */
.g-rolle { position: relative; margin-top: 1.6rem; overflow: hidden; border: 2px solid rgba(255, 143, 214, .2); background: rgba(7, 1, 15, .55); padding: 14px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.g-streifen { display: flex; gap: 12px; width: max-content; will-change: transform; }
.g-feld { flex: none; width: 150px; height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .7rem; background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(0, 0, 0, .25)); border: 2px solid rgba(255, 255, 255, .08); border-top: 3px solid var(--f); }
.g-feld i { font-size: 2.4rem; color: var(--f); filter: drop-shadow(0 0 10px color-mix(in srgb, var(--f) 60%, transparent)); }
.g-feld span { font: 800 .78rem/1.2 var(--kopf); text-transform: uppercase; letter-spacing: .03em; padding: 0 .5rem; }
.g-feld.episch { box-shadow: inset 0 0 22px rgba(139, 61, 255, .35); }
.g-feld.legendaer { box-shadow: inset 0 0 28px rgba(255, 210, 122, .4); }
.g-feld.gewinn { border-color: var(--f); box-shadow: 0 0 0 3px var(--f), 0 0 30px var(--f); }
.g-zeiger { position: absolute; left: 50%; z-index: 2; width: 0; height: 0; border-left: 9px solid transparent; border-right: 9px solid transparent; transform: translateX(-50%); }
.g-zeiger.oben { top: 0; border-top: 12px solid #ffb547; }
.g-zeiger.unten { bottom: 0; border-bottom: 12px solid #ffb547; }
.g-rolle::after { content: ""; position: absolute; left: 50%; top: 10px; bottom: 10px; width: 2px; background: #ffb547; transform: translateX(-50%); opacity: .8; }

.g-ergebnis { min-height: 1.6em; margin-top: 1rem; font: 800 1.1rem/1.4 var(--kopf); }
.g-ergebnis.fehler { color: #ff7a8e; font: 600 1rem/1.4 var(--text); }

/* Login / Knöpfe */
.g-hinweis { font-weight: 600; }
.g-hinweis i { color: var(--lila); margin-right: .35rem; }
.g-hinweis code, .g-klein code { background: rgba(139, 61, 255, .25); padding: .05rem .4rem; }
.g-codezeile { margin: 1rem auto 0; display: flex; justify-content: center; gap: .7rem; flex-wrap: wrap; }
.g-codezeile input { width: 11rem; text-align: center; font: 800 1.5rem/1 var(--kopf); letter-spacing: .25em; color: var(--hell); background: rgba(7, 1, 15, .6); border: var(--rand); padding: .65rem .5rem; }
.g-codezeile input:focus { outline: none; border-color: var(--pink); }
.g-knopf { display: inline-flex; align-items: center; gap: .6rem; border: 0; cursor: pointer; font: 800 1rem/1 var(--kopf); color: #2a0d12; padding: .95rem 1.4rem; background: linear-gradient(100deg, #ffd27a, #ff9a4d); box-shadow: 4px 4px 0 var(--stadt); transition: transform .1s ease, filter .15s ease; }
.g-knopf:hover { filter: brightness(1.08); }
.g-knopf:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--stadt); }
.g-knopf.gross { margin-top: .4rem; font-size: 1.2rem; padding: 1.1rem 2.2rem; }
.g-knopf:disabled { background: #3a2458; color: var(--hell-leise); cursor: not-allowed; transform: none; filter: none; }
.g-klein { margin-top: .8rem; font-size: .85rem; color: var(--hell-leise); }
.g-klein strong { color: var(--hell); }
.g-link { background: none; border: 0; color: var(--rosa); text-decoration: underline; cursor: pointer; font-size: inherit; }

/* Ticker */
.g-ticker { margin-top: 2rem; display: flex; align-items: stretch; border: 2px solid rgba(255, 143, 214, .18); background: rgba(7, 1, 15, .45); text-align: left; }
.g-ticker-kopf { flex: none; display: flex; align-items: center; gap: .5rem; padding: .6rem .9rem; font: 800 .7rem/1 var(--kopf); letter-spacing: .12em; text-transform: uppercase; color: #ffd27a; border-right: 2px solid rgba(255, 143, 214, .18); }
.g-ticker-band { overflow: hidden; flex: 1; display: flex; align-items: center; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.g-ticker-inhalt { display: flex; gap: 2.2rem; white-space: nowrap; padding: .6rem 1rem; font-size: .88rem; color: var(--hell-leise); animation: g-lauf 40s linear infinite; }
.g-ticker-inhalt i { color: var(--lila); }
.g-ticker-inhalt strong { color: var(--hell); }
.g-ticker-inhalt em { font-style: normal; font-weight: 700; color: var(--rosa); }
@keyframes g-lauf { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Infos */
.g-infos { max-width: 900px; margin: 1.6rem auto 0; display: grid; gap: .9rem; }
.g-details { background: rgba(20, 6, 44, .82); border: var(--rand); box-shadow: var(--schatten); padding: .9rem 1.1rem; }
.g-details summary { cursor: pointer; font: 800 1rem/1.3 var(--kopf); display: flex; gap: .6rem; align-items: center; }
.g-details summary i { color: var(--pink); }
.g-tabelle { width: 100%; margin-top: .9rem; border-collapse: collapse; font-size: .92rem; }
.g-tabelle th, .g-tabelle td { text-align: left; padding: .45rem .3rem; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.g-tabelle th { font: 800 .7rem/1 var(--kopf); letter-spacing: .1em; text-transform: uppercase; color: var(--hell-leise); }
.g-tabelle td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.g-tabelle .selten { color: #7EC8E3; }
.g-tabelle .episch { color: #C77DFF; }
.g-tabelle .legendaer { color: #ffd27a; font-weight: 700; }

@media (max-width: 720px) {
  .g-kacheln { grid-template-columns: 1fr; }
  .g-feld { width: 120px; height: 120px; }
  .g-feld i { font-size: 1.9rem; }
  .g-ticker { flex-direction: column; }
  .g-ticker-kopf { border-right: 0; border-bottom: 2px solid rgba(255, 143, 214, .18); }
}
@media (prefers-reduced-motion: reduce) {
  .g-ticker-inhalt { animation: none; }
  .g-balken span { transition: none; }
}

/* ---------- Gratis-Dreh als Popup im Shop ---------- */
.g-dialog { border: 0; padding: 0; background: transparent; color: var(--hell); width: min(940px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto; margin: auto; }
.g-dialog::backdrop { background: rgba(7, 1, 15, .78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.g-dialog[open] { animation: g-auf .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes g-auf { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
.g-dialog .g-karte { margin: 0; }
.g-zu { position: absolute; z-index: 3; top: 14px; right: 14px; width: 40px; height: 40px; display: grid; place-items: center; background: rgba(7, 1, 15, .6); border: 2px solid rgba(255, 143, 214, .3); color: var(--hell); font-size: 1.1rem; cursor: pointer; }
.g-zu:hover { border-color: var(--pink); }
.g-dialog { position: fixed; }
.g-mehr { text-align: center; margin: .9rem 0 .2rem; font-size: .9rem; }
.g-mehr a { color: var(--rosa); }
@media (prefers-reduced-motion: reduce) { .g-dialog[open] { animation: none; } }
