/* === TechTacular === Jeopardy-Board, Farben über zentrale Theme-Tokens (theme.css): Dark = Grün-Neon, Light = heller Grund + Magenta. Feste Viewport-Höhe (kein Scrollen). */ /* Overlay-Einblendung (kam früher aus style.css). */ @keyframes fadeInUp { 0% { opacity: 0; transform: translateY(20px); } 100% { opacity: 1; transform: translateY(0); } } /* body bekommt Layout (Shell füllt 100vh über flex:1). Farben/Hintergrund liefert theme.css. */ body.tt-body { height: 100vh; min-height: 100vh; overflow: hidden; display: flex; flex-direction: column; color: var(--text); } .tt-shell { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 0.6rem 0.85rem; gap: 0.55rem; } /* --- Kopf + Leiste --- */ .tt-header { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 1.1rem; background-color: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--g-soft), 0 0 8px var(--glow-w); } .tt-header-tools { display: flex; align-items: center; gap: 0.7rem; } .tt-title { font-size: 1.3rem; color: var(--accent); margin: 0; text-shadow: 0 0 8px var(--glow-s); } .tt-back, .tt-logout { text-decoration: none; font-weight: bold; } .tt-back { color: var(--accent); } .tt-logout { color: var(--danger); } .tt-bar { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.55rem 0.85rem; } .tt-bar-group { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; } .tt-btn { padding: 0.5rem 1.1rem; border: 0; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 0.95rem; cursor: pointer; text-decoration: none; display: inline-block; box-shadow: 0 0 14px var(--glow-w); transition: filter 0.25s ease, transform 0.15s ease, background-color 0.25s ease; } .tt-btn:hover { filter: brightness(1.08); transform: translateY(-2px); } .tt-btn[hidden] { display: none; } .tt-btn-secondary { background: var(--surface-2); border: 1px solid var(--border-accent); color: var(--text); box-shadow: none; } .tt-btn-cancel { background: rgba(255, 107, 107, 0.14); border: 1px solid rgba(255, 107, 107, 0.55); color: var(--danger); box-shadow: none; } .tt-btn-cancel:hover { background: rgba(255, 107, 107, 0.28); color: #fff; } .tt-hud { gap: 0.4rem; } .tt-stat { display: inline-flex; align-items: baseline; gap: 0.4rem; padding: 0.35rem 0.7rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); white-space: nowrap; } .tt-stat b { font-size: 1.05rem; color: var(--accent); } /* --- Board --- */ .tt-stage { flex: 1; min-height: 0; display: flex; justify-content: center; overflow: hidden; } .tt-board { display: grid; gap: clamp(0.3rem, 1vmin, 0.7rem); width: 100%; height: 100%; min-height: 0; /* grid-template-columns wird per JS gesetzt (eine Spalte je Kategorie) */ } .tt-col { display: flex; flex-direction: column; gap: clamp(0.3rem, 1vmin, 0.7rem); min-height: 0; } .tt-cat-title { flex: 0 0 3.5rem; min-height: 3.5rem; display: flex; align-items: center; justify-content: center; text-align: center; padding: 0.5rem 0.4rem; background: var(--surface-2); border: 1px solid var(--border-accent); border-radius: 8px; color: var(--accent); font-weight: 800; font-size: clamp(0.7rem, 1.1vw, 0.95rem); line-height: 1.15; hyphens: auto; } .tt-tile { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border-accent); border-radius: 8px; background: linear-gradient(145deg, var(--surface), var(--surface-2)); color: var(--accent); font-weight: 800; font-size: clamp(1rem, 2.2vw, 1.8rem); cursor: pointer; transition: transform 0.12s ease, box-shadow 0.2s ease, border-color 0.2s ease; } .tt-tile:hover:not(.answered) { border-color: var(--accent); box-shadow: 0 0 14px var(--glow-s), inset 0 0 18px var(--glow-w); transform: translateY(-2px); } .tt-tile.answered { cursor: default; font-size: clamp(1.2rem, 3vw, 2rem); } .tt-tile.answered.correct { border-color: var(--success); color: var(--success); background: color-mix(in srgb, var(--success) 10%, transparent); } .tt-tile.answered.wrong { border-color: var(--danger); color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); } /* --- Overlays --- */ .tt-overlay { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--bg-glow), rgba(0, 0, 0, 0.55); backdrop-filter: blur(4px); z-index: 1000; padding: 1rem; } .tt-overlay[hidden] { display: none; } .tt-q-card, .tt-result-card { background: var(--surface); border: 1px solid var(--border-accent); border-radius: 16px; padding: 1.5rem 1.8rem; width: min(640px, 94vw); max-height: 90vh; overflow-y: auto; box-shadow: 0 0 30px var(--glow-w); animation: fadeInUp 0.4s ease-out; } .tt-q-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.6rem; } .tt-q-cat { color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.85rem; } .tt-q-points { color: var(--accent); font-weight: 800; font-size: 1.3rem; } .tt-q-instruction { color: var(--muted); font-size: 0.85rem; font-weight: 700; margin-bottom: 0.35rem; } .tt-q-text { color: var(--heading); font-size: 1.3rem; margin-bottom: 1.1rem; line-height: 1.4; border-left: 3px solid var(--accent); padding-left: 0.75rem; font-style: italic; } .tt-q-answers { display: grid; gap: 0.6rem; } .tt-answer { text-align: left; padding: 0.75rem 1rem; border: 1px solid var(--border-accent); border-radius: 10px; background: var(--surface-2); color: var(--text); font-size: 1rem; cursor: pointer; transition: border-color 0.2s ease, background 0.2s ease; } .tt-answer:hover:not(:disabled) { border-color: var(--accent); background: var(--surface); } .tt-answer:disabled { cursor: default; } .tt-answer.correct { border-color: var(--success); background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success); } .tt-answer.wrong { border-color: var(--danger); background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); } .tt-q-feedback { margin-top: 0.9rem; font-weight: 700; min-height: 1.2rem; } .tt-q-feedback.correct { color: var(--success); } .tt-q-feedback.correct::before { content: "\2713 "; font-weight: 800; } .tt-q-feedback.wrong { color: var(--danger); } .tt-q-feedback.wrong::before { content: "\2717 "; font-weight: 800; } .tt-q-actions { display: flex; justify-content: flex-end; margin-top: 1rem; } .tt-result-card { text-align: center; width: min(440px, 94vw); } .tt-result-card h2 { color: var(--accent); margin-bottom: 0.6rem; } .tt-result-score { font-size: 1.4rem; margin-bottom: 0.4rem; color: var(--text); } .tt-result-score strong { color: var(--accent); } .tt-result-detail { color: var(--muted); margin-bottom: 0.6rem; } .tt-result-high { color: var(--accent); font-weight: 800; margin-bottom: 1rem; } .tt-result-high[hidden] { display: none; } .tt-result-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-top: 1rem; } .tt-idle { margin: auto; color: var(--muted); text-align: center; padding: 2rem 1rem; } @media (max-width: 600px) { .tt-title { font-size: 1.15rem; } .tt-stat { font-size: 0.62rem; padding: 0.3rem 0.5rem; } .tt-q-text { font-size: 1.05rem; } } /* Auf Touch/Handy scrollbar: das "alles passt ohne Scrollen"-Layout bricht bei 100vh (iOS-Adressleiste) und 5x5-Board -> untere Reihen (500) unerreichbar. Hier: Seite scrollbar, Kacheln mit fester Mindesthöhe statt flex-fill. */ @media (max-width: 820px) { body.tt-body { height: auto; min-height: 100vh; min-height: 100dvh; overflow-y: auto; } .tt-stage { overflow: visible; } .tt-board { height: auto; } .tt-tile { flex: 0 0 auto; min-height: clamp(58px, 12vw, 86px); } }