/* Tresörchen Rubbellos „Alle Neune?“ – Schwarzlicht-Neon wie der Kegelbahn-Kasten (tb-uv).
   Rahmen nach Website-Standard: 15 px vom Rand, Inhalt 46 px (Handy 10/35). */
.ts-teaser, .ts-card, .ts-modal { --uv: #b45cff; --pink: #ff4fd8; --cyan: #5ff2ff; --gold: #ffe45c; --ink: #050308; box-sizing: border-box; }
.ts-teaser *, .ts-card *, .ts-modal * { box-sizing: border-box; }

/* ---------- Abschnitt auf der Startseite ---------- */
.ts-teaser { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 50px; align-items: center; padding: 46px; background: var(--ink); color: #fff; overflow: hidden; }
.ts-teaser::before { content: ""; position: absolute; inset: 15px; border: 1px solid rgba(214, 150, 255, .9); box-shadow: 0 0 6px rgba(180, 92, 255, .9), 0 0 18px rgba(180, 92, 255, .45), inset 0 0 6px rgba(180, 92, 255, .6), inset 0 0 18px rgba(180, 92, 255, .2); pointer-events: none; animation: tsGlow 4s ease-in-out infinite; }
.ts-teaser::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 85% 50%, rgba(255, 79, 216, .2), transparent 55%), radial-gradient(ellipse at 10% 0%, rgba(180, 92, 255, .22), transparent 55%); pointer-events: none; }
.ts-teaser > * { position: relative; z-index: 1; }
@keyframes tsGlow { 50% { box-shadow: 0 0 8px rgba(180, 92, 255, 1), 0 0 26px rgba(180, 92, 255, .6), inset 0 0 8px rgba(180, 92, 255, .7), inset 0 0 24px rgba(180, 92, 255, .3); } }
.ts-teaser-text { display: flex; flex-direction: column; align-items: flex-start; }
.ts-teaser p, .ts-card p { margin: 0; padding: 0 !important; }
.ts-kicker { color: #d9b3ff !important; font-size: 13px; letter-spacing: 3px; line-height: 1.4; text-transform: uppercase; }
.ts-teaser-title, .ts-title { margin: 12px 0 0 !important; padding: 0 !important; color: #fff !important; font-family: bebas_neuebold, 'Bebas Neue', Impact, sans-serif; font-weight: 400; letter-spacing: 1px; line-height: .95; text-shadow: 0 0 4px rgba(255, 255, 255, .5), 0 0 14px rgba(180, 92, 255, .95), 0 0 34px rgba(180, 92, 255, .6); }
.ts-teaser-title { font-size: 70px; }
.ts-teaser-title span, .ts-title span { color: #ffd9f6; text-shadow: 0 0 4px rgba(255, 255, 255, .5), 0 0 14px rgba(255, 79, 216, .95), 0 0 32px rgba(255, 79, 216, .55); }
.ts-teaser-lead { margin-top: 22px !important; color: rgba(255, 255, 255, .86); font-size: 16px; line-height: 1.8; }
.ts-teaser-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; margin: 30px 0 0 !important; padding: 0 !important; border-top: 1px solid rgba(214, 150, 255, .35); border-bottom: 1px solid rgba(214, 150, 255, .35); list-style: none; }
.ts-teaser .ts-teaser-facts li { display: flex; flex-direction: column; gap: 4px; margin: 0 !important; padding: 16px 12px 16px 0 !important; list-style: none; }
.ts-teaser .ts-teaser-facts li + li { padding-left: 12px !important; border-left: 1px solid rgba(214, 150, 255, .35); }
.ts-teaser .ts-teaser-facts li::before { content: none !important; }
.ts-teaser-facts strong { color: #fff; font-family: bebas_neuebold, 'Bebas Neue', sans-serif; font-size: 34px; font-weight: 400; line-height: 1; text-shadow: 0 0 12px rgba(180, 92, 255, .8); }
.ts-teaser-facts span { color: rgba(255, 255, 255, .7); font-size: 12px; letter-spacing: 1px; line-height: 1.3; text-transform: uppercase; }
.ts-teaser-pins { display: block; width: 100%; max-width: 440px; justify-self: center; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; transition: transform .3s; }
.ts-teaser-pins:hover { transform: scale(1.03); }
.ts-teaser-svg { display: block; width: 100%; height: auto; overflow: visible; }

/* Buttons */
.ts-btn { display: inline-block; margin-top: 30px; padding: 15px 30px 13px; border: 1px solid #e3c2ff; border-radius: 0; background: rgba(180, 92, 255, .12); color: #fff !important; font-family: bebas_neuebold, 'Bebas Neue', sans-serif; font-size: 18px; letter-spacing: 3px; line-height: 1; text-decoration: none !important; text-transform: uppercase; cursor: pointer; transition: background-color .2s, box-shadow .2s; }
.ts-btn:hover:not(:disabled) { background: rgba(180, 92, 255, .3); box-shadow: 0 0 16px rgba(180, 92, 255, .9), inset 0 0 12px rgba(180, 92, 255, .4); }
.ts-btn:disabled { opacity: .45; cursor: not-allowed; }
.ts-btn-ghost { background: transparent; }

@media (max-width: 1024px) {
	.ts-teaser { grid-template-columns: 1fr; gap: 40px; }
	.ts-teaser-pins { order: -1; max-width: 360px; }
	.ts-teaser-title { font-size: 60px; }
}
@media (max-width: 767px) {
	.ts-teaser { gap: 30px; padding: 35px; }
	.ts-teaser::before { inset: 10px; }
	.ts-teaser-title { font-size: 48px; }
	.ts-teaser-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ts-teaser .ts-teaser-facts li:nth-child(3) { padding-left: 0 !important; border-left: 0; }
	.ts-teaser .ts-teaser-facts li:nth-child(n+3) { border-top: 1px solid rgba(214, 150, 255, .35); }
	.ts-teaser-facts strong { font-size: 30px; }
	.ts-teaser .ts-btn { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .ts-teaser::before { animation: none; } .ts-teaser-pins { transition: none; } }

/* ---------- Vollbild-Ebene ---------- */
html.ts-noscroll, html.ts-noscroll body { overflow: hidden !important; }
.ts-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(5, 3, 8, .86); opacity: 0; transition: opacity .25s; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ts-modal[hidden] { display: none; }
.ts-modal.is-open { opacity: 1; }
.ts-dialog { position: relative; width: 100%; max-width: 470px; max-height: 100%; overflow-y: auto; overscroll-behavior: contain; }
.ts-close { position: absolute; top: 22px; right: 22px; z-index: 5; display: grid; place-items: center; width: 40px; height: 40px; margin: 0; padding: 0; border: 1px solid rgba(214, 150, 255, .6); border-radius: 50%; background: rgba(5, 3, 8, .7); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.ts-close:hover { box-shadow: 0 0 12px rgba(180, 92, 255, .9); }
@media (max-width: 767px) {
	.ts-modal { align-items: stretch; padding: 0; background: var(--ink); }
	.ts-dialog { max-width: none; height: 100%; height: 100dvh; }
	.ts-dialog > [data-ts-game] { display: flex; min-height: 100%; } /* Neon-Rahmen bis zum unteren Bildschirmrand */
	.ts-dialog > [data-ts-game] > .ts-card { flex: 1; padding-bottom: calc(35px + env(safe-area-inset-bottom)); }
	.ts-close { top: calc(20px + env(safe-area-inset-top)); right: 20px; }
}

/* ---------- Los ---------- */
.ts-card { position: relative; padding: 46px; background: var(--ink); color: #fff; text-align: center; }
.ts-card::before { content: ""; position: absolute; inset: 15px; border: 1px solid rgba(214, 150, 255, .9); box-shadow: 0 0 6px rgba(180, 92, 255, .9), 0 0 18px rgba(180, 92, 255, .4), inset 0 0 6px rgba(180, 92, 255, .5); pointer-events: none; }
.ts-card > * { position: relative; }
.ts-title { font-size: 56px; }
.ts-board { position: relative; width: 100%; max-width: 360px; aspect-ratio: 1; margin: 20px auto 0; overflow: hidden; box-shadow: 0 0 0 1px rgba(214, 150, 255, .5), 0 0 24px rgba(180, 92, 255, .45); user-select: none; -webkit-user-select: none; }
.ts-pins { display: block; width: 100%; height: 100%; }
.ts-pin { transition: transform .5s cubic-bezier(.3, 1.4, .5, 1) var(--d, 0ms); }
.ts-board.is-win .ts-pin { animation: tsPin 1.2s ease-in-out infinite alternate; }
@keyframes tsPin { to { opacity: .55; } }
.ts-scratch { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; transition: opacity .6s; } /* Handy: über dem Los scrollen … */
.ts-board.is-live .ts-scratch { touch-action: none; cursor: crosshair; } /* … nur beim Rubbeln nicht */
.ts-scratch.is-gone { opacity: 0; pointer-events: none; }
.ts-verdict { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 34px 10px 14px; background: linear-gradient(transparent, rgba(5, 3, 8, .88) 45%); pointer-events: none; }
.ts-verdict[hidden] { display: none; }
.ts-verdict strong { color: #fff; font-family: bebas_neuebold, 'Bebas Neue', Impact, sans-serif; font-size: 50px; font-weight: 400; letter-spacing: 1px; line-height: 1; text-shadow: 0 0 4px #fff, 0 0 16px var(--pink), 0 0 36px var(--pink); animation: tsPop .5s cubic-bezier(.3, 1.6, .5, 1); }
.ts-verdict span { color: rgba(255, 255, 255, .85); font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; }
.ts-board.is-win .ts-verdict strong { color: #fff6c2; text-shadow: 0 0 4px #fff, 0 0 16px var(--gold), 0 0 40px var(--pink); }
@keyframes tsPop { from { opacity: 0; transform: scale(.6); } }
.ts-burst { position: absolute; left: 50%; top: 45%; pointer-events: none; }
.ts-burst i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); opacity: 0; }
.ts-burst.is-on i { animation: tsBurst 1.1s ease-out var(--t) forwards; }
@keyframes tsBurst { 0% { opacity: 1; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(.4); } }

.ts-panel { margin-top: 24px; }
.ts-msg { color: rgba(255, 255, 255, .86); font-size: 15px; line-height: 1.7; }
.ts-small { margin-top: 14px !important; color: rgba(255, 255, 255, .6); font-size: 13px; line-height: 1.5; }
.ts-note { margin-bottom: 12px !important; color: #d9b3ff; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; }
.ts-err { margin-top: 12px !important; color: #ffb3c8; font-size: 14px; }
.ts-consent { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 12px 14px; border: 1px solid rgba(214, 150, 255, .35); color: rgba(255, 255, 255, .86); font-size: 14px; line-height: 1.5; text-align: left; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.ts-consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--pink); }
.ts-consent.is-attention { border-color: var(--pink); box-shadow: 0 0 14px rgba(255, 79, 216, .7); }
.ts-panel .ts-btn { margin-top: 16px; }
.ts-go { color: #ffd9f6; font-family: bebas_neuebold, 'Bebas Neue', sans-serif; font-size: 30px; letter-spacing: 1px; text-shadow: 0 0 12px var(--pink); }
.ts-link { margin-top: 8px; padding: 6px; border: 0; background: none; color: rgba(255, 255, 255, .6); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ts-code-label { color: #d9b3ff; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; }
.ts-card .ts-code { display: inline-block; margin: 8px 0 0 !important; padding: 12px 18px !important; border: 1px dashed var(--gold); color: #fff6c2; font: 700 34px/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: 3px; text-shadow: 0 0 12px rgba(255, 228, 92, .8); user-select: all; }
.ts-prize { margin-top: 14px !important; color: #fff; font-family: bebas_neuebold, 'Bebas Neue', sans-serif; font-size: 26px; letter-spacing: 1px; line-height: 1.1; }
.ts-panel .ts-msg { margin-top: 10px !important; }
.ts-tip { margin-top: 10px !important; color: rgba(255, 255, 255, .6); font-size: 13px; }
.ts-rules { margin-top: 24px; color: rgba(255, 255, 255, .7); font-size: 13px; line-height: 1.6; text-align: left; }
.ts-rules summary { color: rgba(255, 255, 255, .8); text-align: center; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ts-rules div { margin-top: 12px; }
.ts-rules p { margin: 0 0 8px !important; }

@media (max-width: 767px) {
	.ts-card { min-height: 100%; padding: 35px; padding-top: calc(35px + env(safe-area-inset-top)); }
	.ts-card::before { inset: 10px; }
	.ts-title { font-size: 46px; }
	.ts-board { margin-top: 18px; }
	.ts-verdict strong { font-size: 42px; }
	.ts-code { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { .ts-pin, .ts-scratch { transition: none; } .ts-board.is-win .ts-pin, .ts-verdict strong { animation: none; } }

/* ---------- Eigene Seite /spiel ---------- */
body.ts-page, body.ts-page *, body.ts-page *::before, body.ts-page *::after { box-sizing: border-box; } /* sonst ist .ts-page-main 100 % + Innenabstand breit → seitliches Verschieben auf dem Handy */
body.ts-page { overflow-x: hidden; margin: 0; min-height: 100vh; background: #050308; color: #fff; font-family: Roboto, Figtree, system-ui, -apple-system, 'Segoe UI', sans-serif; }
.ts-page-head { display: flex; justify-content: center; padding: 18px 16px 8px; }
.ts-page-head img { display: block; width: 150px; height: auto; filter: drop-shadow(0 0 2px rgba(255, 255, 255, .55)) drop-shadow(0 0 8px rgba(255, 79, 216, .75)) drop-shadow(0 0 22px rgba(180, 92, 255, .6)); } /* Original-Logo freigestellt, Neon-Leuchten */
.ts-page-head { padding-top: calc(22px + env(safe-area-inset-top)); }
.ts-page-head a { color: #fff; font-family: bebas_neuebold, 'Bebas Neue', sans-serif; font-size: 28px; text-decoration: none; }
.ts-page-main { width: 100%; max-width: 470px; margin: 0 auto; padding: 8px 16px calc(24px + env(safe-area-inset-bottom)); }
.ts-page .ts-card { min-height: 0; }
.ts-page-foot { margin: 18px 0 0; color: rgba(255, 255, 255, .55); font-size: 13px; text-align: center; }
.ts-page-foot a { color: rgba(255, 255, 255, .8); }
@media (max-width: 767px) { .ts-page .ts-card { padding-top: 35px; } }

/* Gewinn deutlich zeigen (über dem Los und im Startseiten-Abschnitt) */
.ts-win { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 18px auto 0 !important; padding: 16px 18px !important; max-width: 360px; border: 1px solid rgba(255, 228, 92, .85); box-shadow: 0 0 12px rgba(255, 228, 92, .35), inset 0 0 10px rgba(255, 228, 92, .12); color: var(--gold); text-align: left; }
.ts-win .ts-shot { flex: none; width: 34px; height: 34px; filter: drop-shadow(0 0 6px rgba(255, 228, 92, .8)); }
.ts-win span { display: flex; flex-direction: column; gap: 2px; color: rgba(255, 246, 194, .8); font-size: 11px; letter-spacing: 2px; line-height: 1.2; text-transform: uppercase; }
.ts-win strong { color: #fff6c2; font-family: bebas_neuebold, 'Bebas Neue', sans-serif; font-size: 24px; font-weight: 400; letter-spacing: 1px; line-height: 1; text-transform: none; text-shadow: 0 0 10px rgba(255, 228, 92, .6); }
.ts-teaser .ts-win { align-self: stretch; justify-content: flex-start; margin: 22px 0 0 !important; max-width: none; }
@media (max-width: 767px) { .ts-win strong { font-size: 21px; } .ts-win .ts-shot { width: 30px; height: 30px; } }
.ts-win em { color: rgba(255, 246, 194, .75); font-size: 12px; font-style: normal; letter-spacing: .5px; text-transform: none; }
.ts-card .ts-win, .ts-teaser .ts-win { padding: 16px 18px !important; } /* sonst greift „.ts-card p { padding: 0 }“ */
.ts-page-head img { width: 115px; }
/* QR-Code beim Gewinn (seit 04.11.2026): weiß hinterlegt, damit jede Kamera ihn liest */
.ts-qr { width: 190px; max-width: 70%; margin: 12px auto 4px; padding: 10px; background: #fff; border-radius: 6px; box-shadow: 0 0 18px rgba(255, 228, 92, .45); }
.ts-qr svg { display: block; width: 100%; height: auto; }
