/* FindYourSense – Gaming-Look: dunkel, Neon, große Ziele (Konsolen-tauglich) */
@font-face { font-family: 'Chakra Petch'; font-weight: 500; font-display: swap; src: url(../fonts/chakra-500.woff2) format('woff2'); }
@font-face { font-family: 'Chakra Petch'; font-weight: 600; font-display: swap; src: url(../fonts/chakra-600.woff2) format('woff2'); }
@font-face { font-family: 'Chakra Petch'; font-weight: 700; font-display: swap; src: url(../fonts/chakra-700.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 400 700; font-display: swap; src: url(../fonts/inter.woff2) format('woff2'); }

:root {
  --bg: #07080d; --bg2: #0c0f1a; --panel: #111628; --panel2: #161c33; --line: #232b4a;
  --text: #e8ecff; --muted: #8e98c0; --dim: #5d6690;
  --cyan: #00e5ff; --pink: #ff3df2; --lime: #b6ff3c; --amber: #ffb020; --red: #ff4d6d;
  --grad: linear-gradient(100deg, var(--cyan), #7a6bff 50%, var(--pink));
  --radius: 16px; --glow: 0 0 24px rgba(0, 229, 255, .35);
  --head: 'Chakra Petch', system-ui, sans-serif; --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: 16px; scroll-behavior: auto; -webkit-text-size-adjust: 100%; }
html.tv { font-size: 21px; }
html.big { font-size: 19px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); line-height: 1.55; min-height: 100vh; overflow-x: hidden; }
body.in-test { overflow: hidden; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2.4rem, 7vw, 5rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--muted); }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
b, strong { color: var(--text); }
.wrap { width: min(1180px, 100% - 2.4rem); margin: 0 auto; }
.sr { position: absolute; left: -9999px; }

/* Fokus – gut sichtbar für D-Pad-Navigation */
a:focus, button:focus, input:focus, select:focus, [tabindex]:focus, [data-focus]:focus { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 12px; box-shadow: 0 0 0 6px rgba(182, 255, 60, .18); }

/* Hintergrund */
.bg-grid { position: fixed; inset: 0; z-index: -2; background:
  radial-gradient(900px 500px at 80% -10%, rgba(122, 107, 255, .22), transparent 60%),
  radial-gradient(800px 500px at 0% 10%, rgba(0, 229, 255, .14), transparent 60%),
  radial-gradient(700px 500px at 50% 110%, rgba(255, 61, 242, .12), transparent 60%), var(--bg); }
.bg-lines { position: fixed; inset: 0; z-index: -1; opacity: .5; pointer-events: none;
  background-image: linear-gradient(rgba(120, 140, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 140, 255, .06) 1px, transparent 1px);
  background-size: 48px 48px; -webkit-mask-image: linear-gradient(#000, transparent 85%); mask-image: linear-gradient(#000, transparent 85%); }

/* Header */
.top { position: sticky; top: 0; z-index: 30; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(7, 8, 13, .72); border-bottom: 1px solid rgba(35, 43, 74, .8); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; }
.logo { display: flex; align-items: center; gap: .6rem; font-family: var(--head); font-weight: 700; font-size: 1.25rem; letter-spacing: .06em; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo svg { width: 34px; height: 34px; }
.logo em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; gap: .3rem; flex-wrap: wrap; }
.nav a { color: var(--muted); padding: .5rem .85rem; border-radius: 10px; font-weight: 500; font-size: .95rem; }
.nav a:hover, .nav a.on { color: var(--text); background: rgba(255, 255, 255, .06); text-decoration: none; }
.pill { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .8rem; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font-size: .82rem; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); display: inline-block; }
.pill.ok i { background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.pill.ok { color: var(--text); }

/* Buttons */
.btn { font-family: var(--head); font-weight: 600; font-size: 1.05rem; letter-spacing: .04em; cursor: pointer; border: 1px solid var(--line); background: var(--panel2); color: var(--text); padding: .85rem 1.5rem; border-radius: 12px; transition: transform .12s, background .15s, box-shadow .15s; text-transform: uppercase; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; text-decoration: none; }
.btn:hover { background: #1d2547; text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--grad); border: 0; color: #05060a; box-shadow: 0 8px 30px rgba(0, 229, 255, .25); }
.btn-primary:hover { background: var(--grad); filter: brightness(1.1); }
.btn-ghost { background: transparent; }
.btn-lg { font-size: 1.2rem; padding: 1.05rem 2.1rem; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btns { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.4rem; }

/* Hero */
.hero { padding: clamp(2.5rem, 7vw, 6rem) 0 3rem; display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: center; }
.hero h1 .g { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.2rem; max-width: 36rem; color: #b6bfe6; }
.tag { display: inline-block; font-family: var(--head); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); border: 1px solid rgba(0, 229, 255, .4); border-radius: 99px; padding: .3rem .85rem; margin-bottom: 1.2rem; background: rgba(0, 229, 255, .06); }
.reticle { position: relative; aspect-ratio: 1; width: min(100%, 420px); margin: 0 auto; }
.reticle svg { width: 100%; height: 100%; }
.reticle .spin { transform-origin: 50% 50%; animation: spin 24s linear infinite; }
.reticle .spin2 { transform-origin: 50% 50%; animation: spin 14s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.stats { display: flex; gap: 2.2rem; flex-wrap: wrap; margin-top: 2.2rem; }
.stats div { font-family: var(--head); }
.stats b { display: block; font-size: 2rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; }

section.s { padding: 3rem 0; }
.sec-h { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.sec-h p { margin: 0; max-width: 34rem; }

/* Karten */
.grid { display: grid; gap: 1.1rem; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g5 { grid-template-columns: repeat(5, 1fr); }
.card { background: linear-gradient(180deg, rgba(22, 28, 51, .9), rgba(17, 22, 40, .9)); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; position: relative; }
a.card, button.card, .card.click { cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .15s; color: var(--text); text-align: left; font: inherit; display: block; width: 100%; }
a.card:hover, button.card:hover, .card.click:hover { transform: translateY(-3px); border-color: var(--acc, var(--cyan)); box-shadow: 0 10px 40px -10px var(--acc, var(--cyan)); text-decoration: none; }
.card.sel { border-color: var(--acc, var(--cyan)); box-shadow: inset 0 0 0 2px var(--acc, var(--cyan)), 0 10px 40px -14px var(--acc, var(--cyan)); background: linear-gradient(180deg, rgba(30, 38, 70, .95), rgba(20, 26, 48, .95)); }
.step-n { font-family: var(--head); font-size: 3rem; font-weight: 700; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ico { font-size: 2.2rem; line-height: 1; margin-bottom: .6rem; }
.game { --acc: var(--cyan); padding: 1.1rem 1.2rem; }
.game .badge { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-family: var(--head); font-weight: 700; font-size: 1.15rem; color: #05060a; background: var(--acc); margin-bottom: .8rem; box-shadow: 0 0 22px -4px var(--acc); }
.game h3 { margin-bottom: .15rem; font-size: 1.1rem; }
.game small { color: var(--muted); }
.conf { display: inline-block; font-size: .72rem; padding: .15rem .55rem; border-radius: 99px; border: 1px solid; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.conf.high { color: var(--lime); border-color: rgba(182, 255, 60, .5); }
.conf.medium { color: var(--amber); border-color: rgba(255, 176, 32, .5); }
.conf.low { color: var(--red); border-color: rgba(255, 77, 109, .5); }

/* Wizard */
.wiz { padding: 2rem 0 4rem; }
.wiz-prog { display: flex; gap: .4rem; margin: 0 0 1.6rem; }
.wiz-prog i { flex: 1; height: 5px; border-radius: 4px; background: var(--line); }
.wiz-prog i.on { background: var(--grad); }
.field { margin: 0 0 1.6rem; }
.field > label, .field > .lbl { display: block; font-family: var(--head); font-weight: 600; font-size: 1.05rem; margin-bottom: .2rem; letter-spacing: .02em; }
.field .help { color: var(--muted); font-size: .9rem; margin-bottom: .6rem; }
.chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.chip { cursor: pointer; font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--line); padding: .6rem 1.05rem; border-radius: 12px; font-weight: 500; transition: .12s; }
.chip:hover { border-color: var(--cyan); }
.chip.sel { background: rgba(0, 229, 255, .14); border-color: var(--cyan); color: #fff; box-shadow: 0 0 18px -6px var(--cyan); }
.chip small { display: block; color: var(--muted); font-weight: 400; font-size: .78rem; }
.stepper { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); }
.stepper button { width: 3.2rem; font-size: 1.5rem; background: var(--panel2); color: var(--text); border: 0; cursor: pointer; font-family: var(--head); }
.stepper button:hover { background: #222c55; }
.stepper input { width: 8.5rem; text-align: center; background: transparent; border: 0; color: var(--text); font-family: var(--head); font-size: 1.35rem; font-weight: 600; padding: .6rem; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.row { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.note { border-left: 3px solid var(--amber); background: rgba(255, 176, 32, .07); padding: .8rem 1rem; border-radius: 0 10px 10px 0; color: #e8d5ae; font-size: .92rem; margin: 1rem 0; }
.note.info { border-color: var(--cyan); background: rgba(0, 229, 255, .06); color: #bfeaf2; }
.note.bad { border-color: var(--red); background: rgba(255, 77, 109, .07); color: #ffc7d2; }
.note b { color: inherit; }
.kbd { display: inline-block; padding: .05rem .5rem; border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 6px; background: var(--panel); font-family: var(--head); font-size: .85em; color: var(--text); }

/* Modus-Wahl */
.mode { padding: 1.6rem; }
.mode h3 { font-size: 1.5rem; }
.mode .time { font-family: var(--head); font-size: 2.4rem; font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mode ul { padding-left: 1.1rem; margin: .8rem 0 0; color: var(--muted); }
.mode li { margin: .25rem 0; }

/* Ergebnis */
.res-hero { text-align: center; padding: 2.4rem 1rem; border-radius: 24px; border: 1px solid rgba(0, 229, 255, .4); background: radial-gradient(600px 240px at 50% 0, rgba(0, 229, 255, .16), transparent 70%), var(--panel); }
.res-num { font-family: var(--head); font-weight: 700; font-size: clamp(3rem, 10vw, 6.5rem); line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.res-unit { font-family: var(--head); font-size: 1.3rem; color: var(--muted); letter-spacing: .1em; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .9rem; margin-top: 1.6rem; }
.kv > div { background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; text-align: left; }
.kv small { display: block; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.kv b { font-family: var(--head); font-size: 1.4rem; }
table.t { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.t th, table.t td { text-align: left; padding: .65rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t th { color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
table.t td b { font-family: var(--head); font-size: 1.1rem; color: var(--cyan); }
table.t tr.hl td { background: rgba(0, 229, 255, .07); }
.scroll-x { overflow-x: auto; }
.chart { width: 100%; height: auto; display: block; }
.warn { color: var(--amber); font-size: .85rem; }

/* Spiele-Detail */
.kvlist { display: grid; grid-template-columns: 11rem 1fr; gap: .45rem 1rem; margin: 0; }
.kvlist dt { color: var(--muted); font-size: .88rem; }
.kvlist dd { margin: 0; }
details.acc { border: 1px solid var(--line); border-radius: 12px; padding: .2rem 1rem; margin: .5rem 0; background: rgba(255, 255, 255, .02); }
details.acc summary { cursor: pointer; padding: .7rem 0; font-family: var(--head); font-weight: 600; }

/* Footer */
footer { border-top: 1px solid var(--line); margin-top: 3rem; padding: 2rem 0 3rem; color: var(--dim); font-size: .9rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
footer a { color: var(--muted); margin-right: 1.2rem; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(4, 5, 10, .85); display: grid; place-items: center; padding: 1rem; }
.modal .box { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 1.8rem; max-width: 560px; width: 100%; max-height: 90vh; overflow: auto; }

/* ===== Test-Overlay ===== */
#test { position: fixed; inset: 0; z-index: 100; background: #05060a; cursor: none; user-select: none; -webkit-user-select: none; }
#tcanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#tHud { position: absolute; left: 0; right: 0; top: 0; padding: 1rem 1.4rem; pointer-events: none; display: flex; flex-direction: column; gap: .5rem; background: linear-gradient(rgba(5, 6, 10, .8), transparent); }
#tTitle { font-family: var(--head); font-weight: 700; letter-spacing: .15em; color: var(--cyan); font-size: 1.1rem; }
#tHint { color: var(--muted); font-size: .95rem; min-height: 1.4em; }
#tProg { height: 4px; background: rgba(255, 255, 255, .1); border-radius: 4px; overflow: hidden; }
#tProgBar { height: 100%; width: 0; background: var(--grad); transition: width .3s; }
#tMsg { position: absolute; left: 0; right: 0; bottom: 14%; text-align: center; color: var(--text); font-family: var(--head); font-size: 1.4rem; text-shadow: 0 2px 12px #000; pointer-events: none; padding: 0 2rem; }
#tMsg .big { font-size: 1.9rem; font-weight: 700; }
#tFoot { position: absolute; left: 0; right: 0; bottom: 0; padding: .45rem 1rem; text-align: center; font-size: .8rem; color: var(--dim); background: linear-gradient(transparent, rgba(5, 6, 10, .85)); pointer-events: none; letter-spacing: .03em; }
#tCount { position: absolute; left: 0; right: 0; top: 30%; text-align: center; font-family: var(--head); font-weight: 700; font-size: 7rem; color: #fff; text-shadow: 0 0 40px var(--cyan); pointer-events: none; }
#tStat { position: absolute; left: 0; right: 0; bottom: 4%; display: flex; gap: .7rem; justify-content: center; padding: 0 1rem; }
.rate-opt { width: 9.5rem; padding: .8rem .5rem; text-align: center; border: 2px solid var(--line); border-radius: 14px; background: rgba(17, 22, 40, .92); color: var(--muted); }
.rate-opt b { display: block; font-family: var(--head); font-size: 1.6rem; color: var(--text); }
.rate-opt span { font-size: .85rem; }
.rate-opt.sel { border-color: var(--lime); color: var(--text); box-shadow: 0 0 24px -4px var(--lime); transform: translateY(-6px); }
#tCard { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(5, 6, 10, .82); cursor: default; padding: 1rem; }
#tCard .box { background: var(--panel); border: 1px solid var(--cyan); border-radius: 22px; padding: 2rem; max-width: 620px; box-shadow: var(--glow); }
#tCard h2 { margin-bottom: .6rem; }
#tCardBtns { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.4rem; }

.fade-in { animation: fadein .35s ease both; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .reticle { width: 240px; order: -1; }
  .g3, .g4, .g5 { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .kvlist { grid-template-columns: 1fr; }
  .rate-opt { width: 6.2rem; }
  .rate-opt span { font-size: .72rem; }
}
@media (max-width: 560px) {
  .g2, .g3, .g4, .g5 { grid-template-columns: 1fr 1fr; }
  .g2 { grid-template-columns: 1fr; }
  #tCount { font-size: 4.5rem; }
}
@media (prefers-reduced-motion: reduce) { .reticle .spin, .reticle .spin2, .fade-in { animation: none; } }

/* Konto-Formulare */
.auth { display: grid; place-items: start center; }
.authbox { width: min(520px, 100%); }
.inp { width: 100%; background: #0a0d18; border: 1px solid #3a4572; color: var(--text); font: inherit; font-size: 1.05rem; padding: .85rem 1rem; border-radius: 12px; }
.inp:focus { border-color: var(--cyan); outline: 3px solid rgba(0, 229, 255, .25); outline-offset: 2px; box-shadow: none; }
.chk { display: flex; gap: .6rem; align-items: flex-start; margin: 1rem 0; color: var(--muted); font-size: .92rem; cursor: pointer; }
.chk input { width: 1.3rem; height: 1.3rem; margin-top: .1rem; accent-color: var(--cyan); }
#accLink { text-decoration: none; cursor: pointer; }
#accLink:hover { color: var(--text); border-color: var(--cyan); text-decoration: none; }
