/* this-or-that.hoshibi.de – flach, Hoshibi Dark. Keine Inline-Styles (CSP). Zwei Auswahlfarben: A Koralle, B Türkis. */
:root {
  --bg: #09090b; --bar: #0d0f14; --surf: #11131a; --raise: #161922; --raise2: #1c202b;
  --line: rgba(255, 255, 255, .08); --line2: rgba(255, 255, 255, .16);
  --tx: #f4f4f6; --mute: #9ca3af;
  --accent: #a78bfa; --a: #e8825a; --b: #4fb8b0;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); color: var(--tx); font: 16px/1.5 var(--sans); }
[hidden] { display: none !important; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--mute); }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 50; background: var(--tx); color: var(--bg); padding: 8px 12px; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1 { font-size: 26px; line-height: 1.2; margin: 4px 0 6px; }
h2 { font-size: 17px; margin: 22px 0 8px; }

.top { background: var(--bar); border-bottom: 1px solid var(--line); }
.top-in { max-width: 720px; margin: 0 auto; height: 52px; padding: 0 12px; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; white-space: nowrap; }
.mark { width: 26px; height: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.mark i { border-radius: 3px; background: var(--a); }
.mark i + i { background: var(--b); }
.eco { display: flex; gap: 14px; margin-left: 6px; font-size: 14px; }
.eco a { color: var(--mute); text-decoration: none; padding: 4px 0; }
.eco a:hover { color: var(--tx); }
.top .btn { margin-left: auto; }

.btn { background: var(--raise); border: 1px solid var(--line2); border-radius: 4px; padding: 9px 16px; font-size: 14px; font-weight: 600; min-height: 40px; }
.btn:hover:not(:disabled) { background: var(--raise2); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.pri { background: var(--tx); color: var(--bg); border-color: var(--tx); }
.btn.pri:hover:not(:disabled) { background: #fff; }
.btn.ghost { background: none; }
.btn.wide { width: 100%; }
.ic { width: 36px; height: 36px; background: none; border: 0; border-radius: 4px; color: var(--mute); }
.ic:hover { color: var(--tx); background: var(--raise); }

main { flex: 1; width: 100%; max-width: 720px; margin: 0 auto; padding: 16px 12px 24px; position: relative; }
.banner { border: 1px solid var(--line2); border-left: 3px solid var(--a); background: var(--surf); padding: 10px 12px; font-size: 14px; margin-bottom: 12px; }
.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 60; background: var(--tx); color: var(--bg); padding: 8px 14px; border-radius: 4px; font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .15s; max-width: 92%; }
.toast.on { opacity: 1; }

.field { margin: 18px 0; }
.lab { display: block; font-size: 13px; color: var(--mute); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.seg { display: inline-flex; border: 1px solid var(--line2); border-radius: 4px; overflow: hidden; }
.seg button { background: none; border: 0; padding: 9px 18px; color: var(--mute); font-size: 14px; min-height: 40px; }
.seg button + button { border-left: 1px solid var(--line2); }
.seg button[aria-pressed="true"] { background: var(--raise2); color: var(--tx); box-shadow: inset 0 -2px 0 var(--accent); }
.players { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-bottom: 8px; }
.pl { display: flex; border: 1px solid var(--line2); border-radius: 4px; background: var(--surf); }
.pl input { flex: 1; min-width: 0; background: none; border: 0; padding: 9px 10px; }
.pl button { background: none; border: 0; color: var(--mute); padding: 0 10px; }
.pl button:hover { color: var(--tx); }
.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.pk { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); background: var(--surf); border-radius: 4px; padding: 10px 12px; cursor: pointer; }
.pk:has(input:checked) { border-color: var(--accent); background: var(--raise); }
.pk input { margin-top: 5px; accent-color: var(--accent); }
.pk b { display: block; }
.pk small { color: var(--mute); display: block; line-height: 1.35; }
.pk .num { color: var(--mute); font-size: 12px; }

.hud { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; font-size: 14px; flex-wrap: wrap; }
.hud .turn { flex: 1; text-align: center; font-weight: 700; font-size: 16px; }
.duel { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.opt { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; text-align: center; min-height: min(46dvh, 300px); padding: 18px 12px; background: var(--raise); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; word-break: break-word; }
button.opt:hover { background: var(--raise2); }
.opt.a { border-top: 3px solid var(--a); } .opt.b { border-top: 3px solid var(--b); }
.opt .txt { font-size: clamp(20px, 5vw, 30px); font-weight: 800; line-height: 1.2; position: relative; }
.opt .key { position: absolute; top: 8px; left: 10px; font-size: 12px; color: var(--mute); }
.opt .fill { position: absolute; left: 0; right: 0; bottom: 0; height: 0; transition: height .35s ease-out; opacity: .22; }
.a .fill { background: var(--a); } .b .fill { background: var(--b); }
.opt .pct { position: relative; font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: clamp(26px, 7vw, 44px); font-weight: 700; }
.a .pct { color: var(--a); } .b .pct { color: var(--b); }
.opt .sub { position: relative; font-size: 13px; color: var(--mute); }
.opt.mine { outline: 2px solid var(--tx); outline-offset: -2px; }
.opt .who { position: relative; font-size: 13px; display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.opt .who span { border: 1px solid var(--line2); border-radius: 3px; padding: 1px 8px; }
.ctrl { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.ctrl .pri { margin-left: auto; min-width: 120px; }
.hint { font-size: 12px; margin-top: 18px; }
@media (max-width: 440px) { .duel { grid-template-columns: 1fr; } .opt { min-height: 20dvh; } .hint { display: none; } }

.nums { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 12px 0; }
.nums div { background: var(--surf); border: 1px solid var(--line); border-radius: 4px; padding: 10px 12px; }
.nums dt { font-size: 12px; color: var(--mute); text-transform: uppercase; letter-spacing: .05em; }
.nums dd { margin: 2px 0 0; font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 22px; font-weight: 700; }
.log { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.log li { display: grid; grid-template-columns: 2.2em 1fr auto; gap: 10px; align-items: baseline; background: var(--surf); border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; font-size: 14px; }
.log .n { color: var(--mute); }
.log .a { color: var(--a); } .log .b { color: var(--b); }
.log .r { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--mute); font-size: 13px; text-align: right; }

.foot { border-top: 1px solid var(--line); background: var(--bar); padding: 14px 12px; display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; font-size: 13px; color: var(--mute); }
.foot a { text-decoration: none; } .foot a:hover { color: var(--tx); }

dialog { background: var(--surf); color: var(--tx); border: 1px solid var(--line2); border-radius: 6px; padding: 0; width: min(560px, calc(100% - 24px)); max-height: 86dvh; }
dialog::backdrop { background: rgba(0, 0, 0, .65); }
.dh { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.dh h2 { margin: 0; }
.db { padding: 14px; }
.own-in { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; }
.own-in input { width: 100%; background: var(--bg); border: 1px solid var(--line2); border-radius: 4px; padding: 9px 10px; min-height: 40px; }
.own-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.own-list li { display: flex; gap: 10px; align-items: center; background: var(--raise); border: 1px solid var(--line); border-radius: 4px; padding: 6px 6px 6px 10px; font-size: 14px; }
.own-list span { flex: 1; word-break: break-word; }
@media (max-width: 520px) { .own-in { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .opt .fill, .toast { transition: none; } }
.top .btn { white-space: nowrap; padding: 8px 12px; }
@media (max-width: 440px) { .eco a:last-child { display: none; } }
.push { margin-left: auto; font-size: 13px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; color: var(--mute); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.tbl th, .tbl td { padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.tbl .r { text-align: right; white-space: nowrap; }
.ca { color: var(--a); } .cb { color: var(--b); }
.link { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; }
.priv h3 { margin: 16px 0 4px; font-size: 15px; }
.priv p, .priv li { color: var(--mute); font-size: 14px; margin: 4px 0; }
.priv ul { padding-left: 18px; margin: 4px 0; }
.btn.danger { border-color: var(--a); color: var(--a); }

/* ---- Überarbeitung 2026-11-24: größere Typo, volle Farbflächen für A/B, klare Startfläche. Weiterhin flach, keine Effekte. ---- */
.top-in, main { max-width: 880px; }
.top { border-bottom: 2px solid var(--accent); }
.top-in { height: 58px; }
.brand { font-size: 18px; letter-spacing: .01em; }
.mark { width: 30px; height: 30px; }
h1 { font-size: clamp(34px, 7vw, 58px); line-height: 1.05; font-weight: 800; letter-spacing: -.02em; margin: 10px 0 12px; }
h1::after { content: ""; display: block; width: 64px; height: 6px; background: linear-gradient(90deg, var(--a) 50%, var(--b) 50%); margin-top: 14px; }
#v-setup > .muted { font-size: 18px; max-width: 34em; }
.lab { color: var(--tx); font-weight: 700; font-size: 12px; letter-spacing: .1em; }
.field { margin: 26px 0; }
.seg button[aria-pressed="true"] { background: var(--accent); color: #0b0a10; box-shadow: none; font-weight: 700; }
.seg button { min-height: 44px; }
.packs { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.pk { position: relative; padding: 14px 14px 14px 18px; border-left: 4px solid var(--line2); }
.pk:has(input:checked) { border-left-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surf)); border-color: var(--accent); border-left-width: 4px; }
.pk b { font-size: 17px; }
.pk .num { margin-top: 4px; }
.btn { border-radius: 4px; }
.btn.pri { background: var(--accent); border-color: var(--accent); color: #0b0a10; }
.btn.pri:hover:not(:disabled) { background: #b9a2ff; }
#s-start { min-height: 56px; font-size: 18px; font-weight: 800; margin-top: 8px; position: sticky; bottom: 12px; }
.hud { font-size: 15px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.hud .turn { font-size: 20px; }
.duel { position: relative; gap: 12px; }
.duel::after { content: "oder"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--bg); border: 2px solid var(--line2); padding: 6px 12px; font-weight: 800; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--tx); z-index: 2; }
.opt { min-height: min(52dvh, 360px); border: 2px solid transparent; padding: 24px 18px; }
.opt.a { background: color-mix(in srgb, var(--a) 18%, var(--bg)); border-color: var(--a); border-top-width: 2px; }
.opt.b { background: color-mix(in srgb, var(--b) 18%, var(--bg)); border-color: var(--b); border-top-width: 2px; }
button.opt.a:hover { background: color-mix(in srgb, var(--a) 28%, var(--bg)); }
button.opt.b:hover { background: color-mix(in srgb, var(--b) 28%, var(--bg)); }
.opt .txt { font-size: clamp(24px, 5.2vw, 40px); font-weight: 800; letter-spacing: -.01em; }
.opt .key { font-size: 13px; }
.opt .fill { opacity: .34; }
.opt.mine { outline: 3px solid var(--tx); }
.ctrl { margin-top: 18px; }
.nums div { border-left: 3px solid var(--accent); }
.log li { padding: 10px 12px; }
.foot { margin-top: 24px; }
@media (max-width: 440px) { .duel::after { top: calc(50% - 6px); } .opt { min-height: 22dvh; } h1 { font-size: 34px; } }
