/* Kalemo — Leuchtspur + Skizzenbuch */
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/v1/caveat-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Caveat'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/v1/caveat-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 200 1000; font-display: swap; src: url(../fonts/v1/nunito-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 200 1000; font-display: swap; src: url(../fonts/v1/nunito-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper: #F7F1E3; --paper-2: #EFE6D2; --ink: #1E2A3A; --pencil: #6B7280; --night: #13203A; --night-2: #0E1830;
  --der: #3B82F6; --die: #EF4444; --das: #22C55E; --plural: #FACC15; --gold: #FFC857;
  --der-t: #1D4ED8; --die-t: #B91C1C; --das-t: #15803D; --plural-t: #A16207;
  --hand: 'Caveat', 'Comic Sans MS', cursive; --ui: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 18px; --shadow: 0 1px 0 rgba(30,42,58,.08), 0 10px 30px -12px rgba(30,42,58,.35);
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--ui); color: var(--ink); background: var(--night); -webkit-font-smoothing: antialiased; overflow: hidden; overscroll-behavior: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--der-t); outline-offset: 3px; border-radius: 10px; }

.screen { position: fixed; inset: 0; overflow: hidden; }
.paper { background: var(--paper); overflow-y: auto; }
.paper::before { content: ''; position: fixed; inset: 0; pointer-events: none; opacity: .06; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); z-index: 0; }
.paper > * { position: relative; z-index: 1; }

/* Buttons */
.btn { min-height: 48px; padding: 10px 20px; border-radius: 14px; border: 2px solid var(--ink); background: #FFFDF7; font-weight: 800; font-size: 1.05rem; cursor: pointer; box-shadow: 3px 3px 0 var(--ink); transition: transform .12s, box-shadow .12s; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn.primary { background: var(--gold); }
.btn.big { min-height: 64px; font-size: 1.3rem; width: 100%; }
.btn.ghost { box-shadow: none; border-color: transparent; background: transparent; text-decoration: underline; }
.icon-btn { width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,251,239,.1); display: grid; place-items: center; cursor: pointer; color: #FFFBEF; }
.icon-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.linkbtn { background: none; border: 0; text-decoration: underline; cursor: pointer; padding: 8px; min-height: 44px; }
.badge { font-size: .85rem; background: var(--ink); color: var(--gold); padding: 2px 10px; border-radius: 999px; }

/* Start */
.start-wrap { min-height: 100%; max-width: 560px; margin: 0 auto; padding: calc(16px + var(--safe-t)) 16px calc(16px + var(--safe-b)); display: flex; flex-direction: column; gap: 14px; }
.logo { font-family: var(--hand); font-weight: 700; font-size: clamp(3.2rem, 14vw, 5rem); line-height: .9; margin: 6px 0 0; text-align: center; position: relative; }
.logo-trail { display: block; width: 3.4em; height: .42em; margin: -.12em auto 0; overflow: visible; }
.logo-trail path { fill: none; stroke: var(--gold); stroke-width: 5; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(255,200,87,.8)); stroke-dasharray: 1; stroke-dashoffset: 1; animation: trail 1.4s .3s cubic-bezier(.6,0,.2,1) forwards, glowpulse 3.6s 1.8s ease-in-out infinite; }
@keyframes trail { to { stroke-dashoffset: 0; } }
@keyframes glowpulse { 50% { filter: drop-shadow(0 0 9px rgba(255,200,87,1)); } }
.btn.loading { opacity: .8; cursor: progress; animation: breathe 1.4s ease-in-out infinite; }
.btn .ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.paper { box-shadow: inset 18px 0 30px -18px rgba(30,42,58,.22), inset -6px 0 14px -10px rgba(30,42,58,.12); }
@media (min-width: 900px) { .start-wrap { max-width: 620px; } }
.tagline { font-family: var(--hand); font-size: 1.7rem; margin: 0; text-align: center; min-height: 2.2rem; }
.attract { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); background: var(--night); overflow: hidden; box-shadow: var(--shadow); }
.attract canvas { width: 100%; height: 100%; display: block; }
.attract-bubble { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); background: #FFFDF7; border-radius: 16px; padding: 4px 16px 6px; font-family: var(--hand); font-weight: 700; font-size: clamp(1.3rem, 5vw, 1.7rem); white-space: nowrap; opacity: 0; transition: opacity .25s; box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.attract-bubble.pop { animation: pop .32s cubic-bezier(.3,1.6,.5,1); }
.tagline.fade { animation: tagfade 9.2s ease-in-out infinite; }
@keyframes tagfade { 0% { opacity: 0; transform: translateY(6px); } 6% { opacity: 1; transform: none; } 92% { opacity: 1; } 100% { opacity: 0; } }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pair-col { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: .95rem; }
.seg { display: flex; border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; }
.seg button { flex: 1; min-height: 44px; border: 0; background: #FFFDF7; font-weight: 800; cursor: pointer; }
.seg button[aria-checked="true"] { background: var(--ink); color: var(--paper); }
.seg button:disabled { opacity: .35; cursor: default; }
.start-actions { display: flex; flex-direction: column; gap: 10px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border: 2px dashed var(--pencil); border-radius: 14px; background: transparent; cursor: pointer; min-height: 48px; }
.foot { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; justify-content: center; font-size: .85rem; color: var(--pencil); margin-top: auto; }
.foot a { color: inherit; padding: 8px 2px; }
.by { display: inline-flex; align-items: center; gap: 6px; }

/* Runde */
.stage-screen { background: var(--night); color: #FFFBEF; }
.stage { position: absolute; inset: 0; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.stage canvas.cam { filter: brightness(.55); }
.stage canvas.fx { pointer-events: none; }
.help-btn { position: absolute; left: 12px; bottom: calc(26px + var(--safe-b)); min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid rgba(255,251,239,.35); background: rgba(14,24,48,.55); color: #FFFBEF; font-weight: 800; cursor: pointer; animation: rise .4s ease both; }
@media (max-width: 700px) { .help-btn { bottom: calc(26px + var(--safe-b)); font-size: .85rem; max-width: 46vw; } }
.alive-wrap { position: relative; }
.card.hit .alive-wrap canvas.alive { animation: land .6s cubic-bezier(.2,1.2,.4,1) both; }
@keyframes land { 0% { transform: scale(1.8) translateY(-30px); opacity: 0; filter: drop-shadow(0 0 18px #FFC857); } 60% { opacity: 1; } 100% { transform: none; filter: none; } }
.to-dict { position: absolute; right: 4px; bottom: 2px; display: inline-flex; align-items: center; gap: 4px; background: var(--ink); color: var(--paper); border-radius: 999px; padding: 3px 10px 3px 7px; font-weight: 800; font-size: .78rem; animation: chip .5s 1.1s cubic-bezier(.3,1.7,.5,1) both; }
.to-dict svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; }
@keyframes chip { from { transform: scale(0) rotate(-12deg); } }
.paper::before { transform: translate(var(--px, 0px), var(--py, 0px)); transition: transform .6s ease-out; }
.stage canvas.ink.squash { animation: squash .42s cubic-bezier(.3,1.5,.5,1); transform-origin: 50% 55%; }
@keyframes squash { 0% { transform: scale(1); } 35% { transform: scale(1.25); } 70% { transform: scale(.95); } 100% { transform: scale(1); } }
body[data-mode="air"] .stage::after { content: ''; position: absolute; inset: 0; background: rgba(15,23,42,.35); pointer-events: none; }
body[data-mode="air"] .stage canvas.ink, body[data-mode="air"] .stage canvas.fx { z-index: 1; }
.round-top { position: absolute; left: 0; right: 0; top: 0; padding: calc(10px + var(--safe-t)) 12px 10px; display: grid; grid-template-columns: 48px 1fr auto 48px; grid-template-areas: 'close word timer speaker' 'slots slots slots slots'; gap: 8px; align-items: center; pointer-events: none; }
.round-top > * { pointer-events: auto; }
#round-close { grid-area: close; } #round-speaker { grid-area: speaker; }
.slots { grid-area: slots; display: flex; gap: 6px; justify-content: center; }
.slots i { width: 22px; height: 6px; border-radius: 3px; background: rgba(255,251,239,.28); transition: background .3s, width .3s; }
.slots i.on { width: 34px; }
.slots i.on { background: var(--gold); } .slots i.hit { background: #86EFAC; } .slots i.miss { background: rgba(255,251,239,.45); }
.word-card { grid-area: word; justify-self: center; text-align: center; }
.word { font-family: var(--hand); font-weight: 700; font-size: clamp(2.4rem, 9vw, 3.6rem); line-height: 1; text-shadow: 0 0 18px rgba(255,200,87,.35); }
.word-sub { display: block; font-size: .9rem; opacity: .75; }
.timer { grid-area: timer; position: relative; width: 48px; height: 48px; display: grid; place-items: center; font-weight: 800; }
.timer svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.timer circle { fill: none; stroke-width: 4; } .timer .track { stroke: rgba(255,251,239,.15); }
.timer .bar { stroke: var(--gold); stroke-dasharray: 119.4; stroke-dashoffset: 0; stroke-linecap: round; }
.bubble { position: absolute; left: 50%; bottom: calc(26px + var(--safe-b)); transform: translateX(-50%); background: #FFFDF7; color: var(--ink); border-radius: 22px; padding: 8px 22px 10px; font-family: var(--hand); font-weight: 700; font-size: clamp(1.8rem, 6vw, 2.4rem); white-space: nowrap; box-shadow: var(--shadow); }
.bubble::after { content: ''; position: absolute; left: 50%; top: -12px; margin-left: -12px; border: 12px solid transparent; border-top: 0; border-bottom-color: #FFFDF7; }
.bubble.pop { animation: pop .32s cubic-bezier(.3,1.6,.5,1); }
@keyframes pop { 0% { transform: translateX(-50%) scale(.6); } 100% { transform: translateX(-50%) scale(1); } }
.overlay { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(19,32,58,.55); }
.card { background: var(--paper); color: var(--ink); border-radius: 22px; padding: 22px 20px; width: min(520px, 100%); box-shadow: var(--shadow); text-align: center; max-height: calc(100% - 20px); overflow-y: auto; }
.card h3 { font-family: var(--hand); font-size: 2.2rem; margin: 0 0 8px; line-height: 1.05; }
.card .langs { display: flex; flex-direction: column; gap: 2px; font-family: var(--hand); font-size: 2rem; margin: 8px 0 14px; }
.card .langs small { font-family: var(--ui); font-size: .8rem; color: var(--pencil); margin-right: 6px; }
.others { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 14px; }
.others canvas { width: 100%; aspect-ratio: 1; background: #FFFDF7; border-radius: 12px; border: 1.5px solid rgba(30,42,58,.15); }

/* Tagesende */
.page { max-width: 640px; margin: 0 auto; padding: calc(16px + var(--safe-t)) 16px calc(24px + var(--safe-b)); }
.h-hand { font-family: var(--hand); font-size: 2.6rem; margin: 8px 0; text-align: center; }
.dayend-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.dayend-grid figure { margin: 0; background: #FFFDF7; border-radius: 14px; padding: 6px; box-shadow: var(--shadow); text-align: center; }
.dayend-grid canvas { width: 100%; aspect-ratio: 1; display: block; }
.dayend-grid figcaption { font-family: var(--hand); font-size: 1.7rem; font-weight: 700; line-height: 1.1; }
.daily-hint { margin: -4px 0 2px; text-align: center; color: var(--pencil); font-weight: 700; font-size: .92rem; }
.score-line, .streak-line, .funny { text-align: center; font-size: 1.15rem; font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 12px; }
.toast { position: fixed; left: 50%; bottom: calc(20px + var(--safe-b)); transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 12px; z-index: 50; font-weight: 700; }
.inapp { position: fixed; top: 0; left: 0; right: 0; z-index: 60; background: var(--gold); color: var(--ink); padding: calc(8px + var(--safe-t)) 16px 8px; text-align: center; font-size: .95rem; }

/* Karten, Sheets, Systeme */
.sheet { position: fixed; inset: 0; z-index: 40; background: rgba(19,32,58,.55); display: grid; place-items: center; padding: calc(16px + var(--safe-t)) 16px calc(16px + var(--safe-b)); }
.sheet-card { background: var(--paper); color: var(--ink); border-radius: 22px; padding: 20px; width: min(560px, 100%); max-height: 100%; overflow-y: auto; box-shadow: var(--shadow); text-align: center; animation: rise .28s cubic-bezier(.2,1.3,.5,1); }
@keyframes rise { from { transform: translateY(24px) scale(.97); opacity: 0; } }
.sheet-card h3, .sheet-card h4 { font-family: var(--hand); font-size: 2rem; margin: 4px 0 10px; }
.sheet-card h4 { font-size: 1.6rem; margin-top: 14px; }
.share-img { width: 100%; max-height: 56vh; object-fit: contain; border-radius: 14px; box-shadow: var(--shadow); }
.hint.ok { color: var(--das-t); }
.lang-line { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; border: 0; background: transparent; font-family: var(--hand); font-size: 1.9rem; padding: 2px 10px; border-radius: 12px; cursor: pointer; color: var(--ink); text-align: left; }
.lang-line.first { font-size: 2.4rem; font-weight: 700; }
.lang-line:hover { background: rgba(30,42,58,.06); }
.lang-line small { font-family: var(--ui); font-size: .78rem; font-weight: 800; color: var(--pencil); min-width: 26px; }
.lang-line span { flex: 1; }
.lang-line svg { width: 22px; height: 22px; fill: none; stroke: var(--pencil); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card .langs { gap: 0; }
.card canvas.alive, .dict-detail canvas.big { width: min(300px, 78%); aspect-ratio: 4 / 3; display: block; margin: 0 auto; }
.lang-line[data-say="de"][style] span { color: var(--ac); }
.attract::before, .attract::after { content: ''; position: absolute; z-index: 2; width: 74px; height: 22px; background: rgba(255,200,87,.55); box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.attract::before { top: 8px; left: -16px; transform: rotate(-32deg); }
.attract::after { bottom: 10px; right: -16px; transform: rotate(-32deg); }
.attract { overflow: visible; }
.attract canvas { border-radius: var(--r); }
body[data-mode="air"] .round-top { background: linear-gradient(rgba(10,16,32,.55), rgba(10,16,32,0)); padding-bottom: 28px; }
.tipcard { background: #FFF6D6; border: 2px dashed var(--plural-t); border-radius: 14px; padding: 10px 14px; font-weight: 800; color: var(--ink); margin: 0 0 14px; }
.streak-line { display: flex; align-items: center; justify-content: center; gap: 8px; }
.flame { width: 30px; height: 40px; animation: flicker 1.2s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes flicker { 30% { transform: scale(1.06, .95) rotate(-3deg); } 60% { transform: scale(.96, 1.05) rotate(2deg); } }
.funny { display: flex; flex-direction: column; font-family: var(--hand); font-size: 1.8rem; font-weight: 700; }
.funny small { font-family: var(--ui); font-size: .85rem; color: var(--pencil); }
.dayend-grid figure { animation: rise .4s both; animation-delay: var(--d); }
.dayend-grid figure.miss { opacity: .75; }
.dayend-grid figcaption small { font-family: var(--ui); font-size: .8rem; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; margin-bottom: 10px; }
.pick { border: 2px solid var(--ink); border-radius: 14px; background: #FFFDF7; padding: 6px; cursor: pointer; font-family: var(--hand); font-size: 1.3rem; display: flex; flex-direction: column; align-items: center; min-height: 44px; }
.pick canvas { width: 100%; aspect-ratio: 1; }
.lead { text-align: center; font-weight: 800; font-size: 1.15rem; }
.word-picks { display: grid; gap: 12px; margin: 14px 0; }
.word-pick { min-height: 72px; border: 3px solid var(--c); border-radius: 18px; background: #FFFDF7; font-family: var(--hand); font-weight: 700; font-size: 2.4rem; cursor: pointer; box-shadow: 4px 4px 0 var(--ink); transition: transform .12s; }
.word-pick:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.answer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn.answer { font-family: var(--hand); font-size: 1.8rem; font-weight: 700; min-height: 64px; }
.btn.answer.right { background: #BBF7D0; border-color: var(--das-t); }
.btn.answer.picked { opacity: .55; }
.times { font-weight: 800; color: var(--pencil); }
.link-box { background: #FFFDF7; border: 2px dashed var(--pencil); border-radius: 12px; padding: 10px; word-break: break-all; font-size: .8rem; text-align: left; max-height: 7.5em; overflow: auto; }
.dict-head { display: flex; align-items: center; gap: 10px; }
.dict-head .h-hand { flex: 1; text-align: left; margin: 0; }
.dict-head .count { font-weight: 800; color: var(--pencil); }
.icon-btn.ink { color: var(--ink); background: rgba(30,42,58,.07); }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; }
.chip-f { flex: none; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--ink); background: #FFFDF7; font-weight: 800; cursor: pointer; }
.chip-f[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.dict-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin: 6px 0 14px; }
.dict-cell { background: #FFFDF7; border: 0; border-radius: 14px; box-shadow: var(--shadow); padding: 6px 6px 8px; cursor: pointer; display: flex; flex-direction: column; align-items: center; }
.dict-cell canvas { width: 100%; aspect-ratio: 1; }
.dict-cell span { font-family: var(--hand); font-weight: 700; font-size: 1.45rem; line-height: 1.1; }
.dict-cell small { color: var(--pencil); font-size: .8rem; }
.empty { text-align: center; padding: 30px 10px; }
.empty-art { width: 200px; height: 160px; }
.plural-line { margin: 6px 0 0; font-size: 1.05rem; }
.amb { background: #EEF2FF; border-radius: 12px; padding: 8px 12px; font-weight: 700; }
.toggle { display: flex; align-items: center; gap: 12px; min-height: 48px; text-align: left; font-weight: 700; cursor: pointer; }
.toggle input { width: 22px; height: 22px; accent-color: var(--ink); }

a.btn { color: var(--ink); text-decoration: none; }
.overlay.duel { background: transparent; align-items: end; padding-bottom: calc(16px + var(--safe-b)); }
.overlay.duel .card { box-shadow: 0 -8px 40px rgba(0,0,0,.35); animation: rise .3s cubic-bezier(.2,1.3,.5,1); }
body.replay #timer, body.replay #mode-toggle, body.replay #round-speaker { visibility: hidden; }
#duel-body { text-align: center; }
.word-pick { animation: float 3.2s ease-in-out infinite; }
.word-pick:nth-child(2) { animation-delay: -1.1s; } .word-pick:nth-child(3) { animation-delay: -2.2s; }
@keyframes float { 50% { transform: translateY(-5px) rotate(-.4deg); } }
.score-line .count { margin: 0 6px; }
.duel-stage { width: 100%; max-width: 560px; aspect-ratio: 16 / 8; margin: 4px auto 6px; display: block; border-radius: 18px; background: var(--night); box-shadow: var(--shadow); }
.dayend-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 10px 0 6px; }
.dayend-grid figure { position: relative; }
.dayend-grid figure.ok::after { content: ''; position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; background: #DCFCE7 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 13l4 4 10-11' fill='none' stroke='%2315803D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/16px no-repeat; }
.dayend-grid figure.miss { opacity: 1; border: 2px dashed rgba(107,114,128,.55); box-shadow: none; background: transparent; }
.score-line { font-size: 1.25rem; }
.score-line .count { font-family: var(--hand); font-size: 3.4rem; font-weight: 700; line-height: 1; vertical-align: -6px; color: var(--ink); }
@media (min-width: 900px) { #screen-dayend .page { max-width: 1000px; padding-top: 5vh; } .dayend-grid { grid-template-columns: repeat(5, 1fr); } }
.chips { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 40px; }

/* Luft-Modus, Onboarding, Artikel */
@media (max-width: 700px) { .bubble { bottom: calc(92px + var(--safe-b)); } .word { font-size: clamp(2.8rem, 12vw, 3.6rem); } }
.mode-toggle { position: absolute; right: 12px; bottom: calc(26px + var(--safe-b)); display: flex; gap: 4px; background: rgba(14,24,48,.6); padding: 4px; border-radius: 999px; }
.chip { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 0; background: transparent; color: #FFFBEF; font-weight: 800; cursor: pointer; }
.chip[aria-pressed="true"] { background: #FFFBEF; color: var(--night); }
.progress { height: 10px; border-radius: 5px; background: rgba(30,42,58,.12); overflow: hidden; margin: 12px 0; }
.progress i { display: block; height: 100%; background: var(--gold); transition: width .2s; }
.overlay.clear { background: transparent; pointer-events: none; }
.overlay.clear .card { background: transparent; box-shadow: none; color: #FFFBEF; }
.handcheck .hc-ring { width: 180px; height: 180px; margin: 0 auto 10px; border-radius: 50%; border: 4px dashed rgba(255,251,239,.7); display: grid; place-items: center; animation: breathe 2.4s ease-in-out infinite; }
.clear-card.ok .hc-ring { border-color: #86EFAC; border-style: solid; box-shadow: 0 0 40px rgba(134,239,172,.6); }
@keyframes breathe { 50% { transform: scale(1.06); } }
.precam { display: grid; grid-template-columns: 1fr 1fr; justify-items: center; align-items: end; gap: 0 12px; margin-bottom: 6px; }
.precam .pose { grid-row: 2; margin: 0; font-weight: 800; font-size: .95rem; }
.precam svg:nth-of-type(1) { grid-column: 1; } .precam svg:nth-of-type(2) { grid-column: 2; grid-row: 1; }
.precam .pose:nth-of-type(1) { grid-column: 1; } .precam .pose:nth-of-type(2) { grid-column: 2; }
.art-q { font-size: 1.7rem !important; color: var(--pencil); margin-bottom: 0 !important; }
.art-noun { font-family: var(--hand); font-weight: 700; font-size: clamp(3rem, 12vw, 4.2rem); line-height: 1; margin: 0 0 14px; }
.art-noun::before { content: '___ '; color: rgba(30,42,58,.28); letter-spacing: -2px; }
.art-card svg, .precam svg { animation: bob 2.2s ease-in-out infinite; transform-origin: 50% 90%; }
.art-card:nth-child(2) svg { animation-delay: -.7s; } .art-card:nth-child(3) svg { animation-delay: -1.4s; }
.precam svg:nth-of-type(2) { animation: wave 1.8s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-3deg); } }
@keyframes wave { 25% { transform: rotate(-9deg); } 75% { transform: rotate(9deg); } }
:focus:not(:focus-visible) { outline: none; }
body:not(.kbd) .btn:focus-visible { outline: none; }
.art-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.art-card { position: relative; border: 3px solid var(--c); border-radius: 18px; background: #FFFDF7; padding: 10px 4px 8px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 44px; transition: transform .15s, box-shadow .15s; box-shadow: 3px 3px 0 var(--ct); }
.art-card:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ct); }
.art-card .art-label { font-family: var(--hand); font-weight: 700; font-size: 2.2rem; color: var(--ct); line-height: 1; }
.art-card .art-n { font-size: .8rem; color: var(--pencil); font-weight: 700; }
.art-card .ring { position: absolute; inset: -3px; border-radius: 18px; background: conic-gradient(var(--c) calc(var(--p) * 360deg), transparent 0); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; padding: 5px; pointer-events: none; }
.art-card.live { transform: translateY(-4px); }
.art-card.flash { animation: flash .6s ease; background: var(--c); } .art-card.flash .art-label, .art-card.flash .art-n { color: #fff; }
.art-card.flash svg { animation: hop .5s ease; }
.art-card.wobble { animation: wobble .5s ease; }
@keyframes flash { 0% { box-shadow: 0 0 0 0 var(--c); } 40% { box-shadow: 0 0 0 14px transparent; transform: scale(1.06); } }
@keyframes hop { 40% { transform: translateY(-10px); } }
@keyframes wobble { 20% { transform: translateX(-8px) rotate(-3deg); } 40% { transform: translateX(7px) rotate(2deg); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
.hint { color: var(--pencil); font-weight: 700; margin: 10px 0 0; }
.real-card .x2, .x2 { font-family: var(--hand); font-weight: 700; font-size: 5rem; color: var(--die-t); transform: rotate(-12deg); display: inline-block; border: 5px solid var(--die-t); border-radius: 16px; padding: 0 16px; animation: stamp .35s cubic-bezier(.3,1.7,.5,1); }
@keyframes stamp { 0% { transform: rotate(-12deg) scale(2.2); opacity: 0; } 100% { transform: rotate(-12deg) scale(1); opacity: 1; } }

.demo-hand { position: absolute; left: 50%; top: 18%; transform: translateX(-50%); z-index: 30; pointer-events: none; animation: bob 1.4s ease-in-out infinite; filter: drop-shadow(0 0 16px rgba(255,200,87,.5)); }
body.demo #mode-toggle { visibility: hidden; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
