/* ================================================================ Modus „Kunststück!“: die Mal-Show
   Atelier-Look: Kraftpapier mit Bleistift-Kritzeleien und Farbklecksen, Skizzenbuch-Karten mit Klebeband,
   Holz-Staffelei, Goldrahmen für die Galerie, Handschrift „Kalam“. Quizzly mit Zeitungs-Malerhut, Pinsel und Palette.
   Gilt für Host (body.host) und Handy (body.play), sobald body[data-mode="draw"] gesetzt ist. */

body[data-mode="draw"] {
  --chip-bg: rgba(58, 34, 14, 0.45); --chip-bd: rgba(255, 250, 240, 0.32);
  --ink: #2b2118;
  --ink-soft: #6b5846;
  --bg1: #9a6534;
  --bg2: #c99561;
  --paper: #fffaf0;
  --paper-2: #f6ecda;
  --pink: #ff5f7e;
  --blue: #3b6fd8;
  --yellow: #ffc53d;
  --green: #36a35a;
  --orange: #ff7a2f;
  --teal: #1fb5a6;
  --purple: #8e5cd8;
  --red: #e5483b;
  --gold: #ffc53d;
  --opt-0: #e5483b;
  --opt-1: #3b6fd8;
  --opt-2: #f2a516;
  --opt-3: #2f9a52;
  --accent: #ff7a2f;
  --radius: 16px;
  --shadow: 0 6px 0 rgba(58, 34, 14, 0.5);
  --shadow-sm: 0 3px 0 rgba(58, 34, 14, 0.5);
  --font-art: 'Kalam', 'Caveat', 'Fredoka', cursive;
  --wood: linear-gradient(160deg, #c48a4f, #9c6331 55%, #7e4d23);
  --tape: rgba(255, 213, 120, 0.82);
}

/* ------------------------------------------------------------ Hintergrund: Kraftpapier, Kritzeleien, Farbkleckse */
body[data-mode="draw"] .bg {
  background:
    radial-gradient(ellipse 60% 45% at 25% 12%, rgba(255, 226, 170, 0.55), transparent 70%),
    radial-gradient(ellipse 70% 50% at 90% 105%, rgba(110, 60, 20, 0.45), transparent 70%),
    linear-gradient(165deg, #d6a571 0%, #b98450 55%, #9d6838 100%);
}
body[data-mode="draw"] .bg::before {
  inset: -10%;
  opacity: 1;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='420' viewBox='0 0 520 420'%3E%3Cg fill='none' stroke='%23fff6e6' stroke-opacity='0.2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M40 60 l14 28 l30 4 l-22 22 l6 30 l-28 -14 l-28 14 l6 -30 l-22 -22 l30 -4z'/%3E%3Cpath d='M300 70 c-20 -10 -40 10 -30 30 c10 20 40 20 50 0 c10 -30 -30 -60 -60 -40 c-40 25 -20 85 30 85'/%3E%3Cpath d='M150 250 c-10 -25 25 -40 35 -15 c10 -25 45 -10 35 15 c-8 22 -35 38 -35 38 s-27 -16 -35 -38z'/%3E%3Cpath d='M380 300 q20 -30 40 0 t40 0 t40 0'/%3E%3Cpath d='M60 350 l40 -40 l40 40 v40 h-80z M85 390 v-25 h30 v25'/%3E%3Ccircle cx='440' cy='160' r='26'/%3E%3Cpath d='M430 152 v4 M450 152 v4 M428 168 q12 10 24 0'/%3E%3Cpath d='M230 160 l60 -10 M235 175 l55 -6 M240 190 l45 -4'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.3 0 0 0 0 0.18 0 0 0 0 0.05 0 0 0 0.22 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 780px 630px, 220px 220px;
  animation: artDrift 140s linear infinite;
}
@keyframes artDrift { to { background-position: 780px 315px, 0 0; } }
/* Farbkleckse in den Ecken */
body[data-mode="draw"] .bg::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath fill='%23e5483b' d='M100 30c20 0 25 25 45 20s30 20 15 35 10 35-10 45-15 35-40 30-30-25-50-25-35-5-30-30-25-30-5-45 15-30 75-30z'/%3E%3Ccircle cx='170' cy='40' r='9' fill='%23e5483b'/%3E%3Ccircle cx='30' cy='170' r='6' fill='%23e5483b'/%3E%3C/svg%3E") -5vmin -6vmin / 26vmin no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath fill='%233b6fd8' d='M90 20c25-5 40 20 60 25s35 30 20 50 5 40-20 50-30 30-55 20-40-10-55-30-25-40-5-60 30-50 55-55z'/%3E%3Ccircle cx='20' cy='30' r='8' fill='%233b6fd8'/%3E%3Ccircle cx='180' cy='180' r='7' fill='%233b6fd8'/%3E%3C/svg%3E") calc(100% + 7vmin) calc(100% + 8vmin) / 30vmin no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath fill='%23ffc53d' d='M100 40c18-8 40 5 45 25s25 30 10 50-10 40-35 40-35-15-55-25-30-30-15-50 32-32 50-40z'/%3E%3Ccircle cx='170' cy='150' r='7' fill='%23ffc53d'/%3E%3C/svg%3E") calc(100% + 4vmin) -8vmin / 22vmin no-repeat;
  opacity: 0.55;
}
body[data-mode="draw"] .bg .blob { opacity: 0.18; }
body[data-mode="draw"] .bg .blob.b1 { background: #ffd28a; }
body[data-mode="draw"] .bg .blob.b2 { background: #ff7a2f; }
body[data-mode="draw"] .bg .blob.b3 { background: #1fb5a6; }

/* ------------------------------------------------------------ Grundbausteine */
body[data-mode="draw"] .card { border-width: 3px; }
body[data-mode="draw"] .intro .rname, body[data-mode="draw"] .scores h1, body[data-mode="draw"] .podium h1 { font-family: var(--font-art); font-weight: 700; letter-spacing: 0.01em; }
body[data-mode="draw"] .logo { font-family: var(--font-art); font-weight: 700; }
body[data-mode="draw"] .logo span:nth-child(4n + 1) { color: #ffd04d !important; }
body[data-mode="draw"] .logo span:nth-child(4n + 2) { color: #ff8a6b !important; }
body[data-mode="draw"] .logo span:nth-child(4n + 3) { color: #7fd1f5 !important; }
body[data-mode="draw"] .logo span:nth-child(4n) { color: #9ee6a8 !important; }
body[data-mode="draw"] .logo-sub, body[data-mode="draw"] .editionbadge {
  font-family: var(--font-art);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: #fffaf0;
  text-shadow: 0 2px 0 rgba(58, 34, 14, 0.6);
}
body[data-mode="draw"] .splash .logo-sub { font-size: clamp(2rem, min(3.6vw, 6.2vh), 3.8rem); opacity: 1; transform: rotate(-3deg); animation: stamp 0.6s 0.3s var(--ease-back) both; }
body[data-mode="draw"] .editionbadge { display: inline-block; position: absolute; left: calc(6.5rem + 1.6rem); bottom: -1.4rem; font-size: 1.9rem; line-height: 1; white-space: nowrap; transform: rotate(-3deg); animation: stamp 0.5s var(--ease-back) both; pointer-events: none; }
body[data-mode="draw"] .lobby .brand { position: relative; }
body[data-mode="draw"] .insertcoin { display: block; font-family: var(--font-art); font-weight: 700; font-size: 1.55rem; line-height: 1.1; letter-spacing: 0; text-transform: none; color: var(--orange); margin-top: 0.6rem; transform: rotate(-2deg); text-shadow: none; animation: none; }
body[data-mode="draw"] :is(.lobby, .votescreen) { --lacc: var(--yellow); --lacc-ink: var(--ink); --lpanel: rgba(62, 36, 16, 0.58); --lline: rgba(255, 240, 210, 0.22); }
/* Antwort-Rückmeldung am Handy (Hintergrund ist hier hell) */
body.play[data-mode="draw"] .feedback { text-shadow: none; }
body.play[data-mode="draw"] .feedback.wrong, body.play[data-mode="draw"] .feedback.close { display: inline-block; align-self: center; padding: 2px 14px; border-radius: 99px; background: var(--paper); border: 2px solid var(--ink); }
body.play[data-mode="draw"] .feedback.wrong { color: var(--red); }
body.play[data-mode="draw"] .feedback.close { color: #b26a00; }
body.play[data-mode="draw"] .feedback:empty { display: none; }

/* Klebeband auf Karten */
.tape { position: relative; }
.tape::before { content: ''; position: absolute; top: -0.7em; left: 50%; width: 5.2em; height: 1.4em; transform: translateX(-50%) rotate(-3deg); background: var(--tape); border-left: 2px dashed rgba(255, 255, 255, 0.4); border-right: 2px dashed rgba(255, 255, 255, 0.4); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15); }

/* Quizzly als Maler: Zeitungshut, Pinsel, Palette */
body[data-mode="draw"] .quizzly .qz-paperhat, body[data-mode="draw"] .quizzly .qz-painter { display: inline; }
body[data-mode="draw"] .quizzly .qz-cap, body[data-mode="draw"] .quizzly .qz-bow { display: none; }
body[data-mode="draw"] .quizzly .qz-brush { transform-origin: 176px 44px; animation: artBrush 3.2s ease-in-out infinite; }
@keyframes artBrush { 0%, 100% { rotate: 0deg; } 50% { rotate: 6deg; } }

/* Handy-Lobby */
.lobbyv .drawnote { display: none; font-family: 'Kalam', cursive; font-weight: 700; color: #fffaf0; font-size: 30px; line-height: 1; transform: rotate(-3deg); text-shadow: 0 2px 0 rgba(58, 34, 14, 0.5); }
body.play[data-mode="draw"] .lobbyv .drawnote { display: block; }
body.play[data-mode="draw"] .phead { background: rgba(62, 36, 16, 0.5); }

/* ------------------------------------------------------------ Rundenintro: Titel (Requisit: Staffelei, unten) */
body[data-mode="draw"] .intro .rname { color: #fffaf0; -webkit-text-stroke: 0.05em var(--ink); }
body[data-mode="draw"] .intro .rnum { background: rgba(62, 36, 16, 0.45); font-family: var(--font-art); font-weight: 700; letter-spacing: 0.06em; text-transform: none; }

/* ------------------------------------------------------------ Gemeinsames Gerüst: Seite – Staffelei – Seite */
.skwrap { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(12rem, 17rem) minmax(0, 1fr) minmax(12rem, 17rem); gap: 1.4rem; align-items: stretch; }
.sk-side { min-height: 0; min-width: 0; display: flex; flex-direction: column; gap: 0.9rem; overflow: hidden; }
.sk-side h3 { font-family: var(--font-art); font-weight: 700; font-size: 1.35rem; color: #fffaf0; text-shadow: 0 2px 0 rgba(58, 34, 14, 0.5); }
.sk-mid { min-width: 0; min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; position: relative; }
.sk-stage { flex: 1; min-height: 0; width: 100%; position: relative; display: grid; place-items: center; }
.sk-sign { min-height: 3.6rem; display: flex; align-items: center; justify-content: center; position: relative; max-width: 100%; }
.sk-sign .sk-mine { display: none; }
.sk-sign .sk-mine.on { display: flex; }
.sk-sign .sk-mine.on + .x, .sk-sign:has(.sk-mine.on) .sk-mask { display: none; }

/* Staffelei: Holzrahmen mit Klammern, Leinwand weiß */
.easel { position: relative; padding: 0.75rem; background: var(--wood); border: 3px solid var(--ink); border-radius: 10px; box-shadow: 0 8px 0 rgba(58, 34, 14, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.25); }
.easel .ea-canvas { position: relative; background: #fff; border-radius: 3px; box-shadow: inset 0 0 0 2px rgba(43, 33, 24, 0.25); overflow: hidden; }
.easel .ea-clip { position: absolute; top: -0.9rem; width: 2.2rem; height: 1.5rem; background: #6b4423; border: 3px solid var(--ink); border-radius: 6px 6px 3px 3px; }
.easel .ea-clip.l { left: 22%; }
.easel .ea-clip.r { right: 22%; }
.easel.paper .ea-canvas { background: #fffdf5; }
.sketch, .sketch canvas { width: 100%; height: 100%; display: block; }
.sketch canvas { image-rendering: auto; }
.sketch.pad canvas { cursor: crosshair; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.sketch.pad { overscroll-behavior: contain; }
.sketch.pad-off canvas { cursor: not-allowed; }
.sketch.pad.blind canvas { opacity: 0; }
.easel.hc-blind .sketch.pad::after { content: '🙈 Du malst blind!'; position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-art); font-size: 2rem; color: rgba(43, 33, 24, 0.25); pointer-events: none; }
.sk-stage .sk-over { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.sk-stage .sk-over > * { pointer-events: auto; max-width: calc(var(--cw, 100%) * 0.94); }

/* Schlüsselloch: nur ein wanderndes Loch der Leinwand ist zu sehen */
.easel.keyhole .ea-canvas, .dp-stage.keyhole .dp-frame .ea-canvas {
  -webkit-mask-image: radial-gradient(circle at var(--kx, 50%) var(--ky, 50%), #000 calc(var(--kr, 20%) - 1%), transparent calc(var(--kr, 20%) + 0.5%));
  mask-image: radial-gradient(circle at var(--kx, 50%) var(--ky, 50%), #000 calc(var(--kr, 20%) - 1%), transparent calc(var(--kr, 20%) + 0.5%));
}
.easel.keyhole, .dp-stage.keyhole .dp-frame { background: #2b2118; }
.easel.keyhole .ea-canvas { background: #2b2118; }
/* Wer malt, sieht das ganze Bild – und als Ring, wo das Schlüsselloch gerade ist (PC: auf der Show-Leinwand) */
.screen.pc-drawer .easel.keyhole .ea-canvas { -webkit-mask-image: none; mask-image: none; background: #fff; }
.screen.pc-drawer .easel.keyhole .ea-canvas::after, .dp-stage.keyring .dp-frame .ea-canvas::after {
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(circle at var(--kx, 50%) var(--ky, 50%), transparent calc(var(--kr, 20%) - 0.8%), rgba(232, 87, 42, 0.9) calc(var(--kr, 20%) - 0.7%), rgba(232, 87, 42, 0.9) calc(var(--kr, 20%) + 0.4%), rgba(43, 33, 24, 0.14) calc(var(--kr, 20%) + 0.5%));
}

/* Begriffs-Maske: Buchstabenfelder */
.wmask { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 0.5rem 1.3rem; padding: 0.35rem 1.2rem 0.45rem; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 14px; box-shadow: var(--shadow-sm); position: relative; transform: rotate(-1deg); }
.wmask .ww { display: flex; gap: 0.5rem; }
.wmask .wl { display: grid; place-items: end center; width: 1.3rem; height: 2.1rem; border-bottom: 0.22rem solid var(--ink); border-radius: 0 0 2px 2px; font-family: var(--font-art); font-weight: 700; font-style: normal; font-size: 1.7rem; line-height: 1; padding-bottom: 0.1rem; }
.wmask .wl.on { color: var(--red); animation: pop 0.45s var(--ease-back) both; }
.wmask .wp { font-family: var(--font-art); font-size: 1.6rem; align-self: flex-end; }
.wmask .wcount { position: absolute; top: -0.75rem; right: -0.75rem; min-width: 1.8rem; height: 1.8rem; padding: 0 0.35rem; border-radius: 99px; background: var(--yellow); border: 2px solid var(--ink); display: grid; place-items: center; font-size: 0.9rem; font-weight: 900; transform: rotate(6deg); }
.wmask.solved { background: #e9f9e7; transform: rotate(-1deg) scale(1.04); animation: jelly 0.7s ease; }
.wmask .wword { font-family: var(--font-art); font-weight: 700; font-size: 2.1rem; line-height: 1.15; color: #1f7a3c; }
.wmask.solved .wcount { display: none; }
.sk-mask.hint .wmask { animation: jelly 0.6s ease; }
.wmask.small { gap: 0.3rem 0.7rem; padding: 4px 10px 6px; border-width: 2px; border-radius: 10px; transform: none; }
.wmask.small .ww { gap: 5px; }
.wmask.small .wl { width: 14px; height: 22px; font-size: 18px; border-bottom-width: 3px; }
.wmask.small .wp { font-size: 18px; }
.wmask.small .wcount { top: -9px; right: -9px; min-width: 22px; height: 22px; font-size: 11px; }

/* Sterne (Schwierigkeit) */
.stars { color: #f2a516; letter-spacing: 0.05em; font-style: normal; text-shadow: 0 1px 0 rgba(43, 33, 24, 0.35); }
.stars i { font-style: normal; color: rgba(43, 33, 24, 0.22); text-shadow: none; }

/* Künstler-Karte (links) */
.sk-artist { padding: 0.9rem 1rem; display: flex; flex-direction: column; gap: 0.6rem; transform: rotate(-1.5deg); }
.sk-artist:empty { display: none; }
.sk-who { display: flex; align-items: center; gap: 0.7rem; }
.sk-who b { display: block; font-family: var(--font-head); font-size: 1.35rem; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; }
.sk-who small { display: block; font-family: var(--font-art); font-size: 1.1rem; color: var(--ink-soft); }
.sk-who > div { min-width: 0; }
.sk-meta { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; font-size: 1.2rem; }
.sk-cat { font-size: 0.85rem; font-weight: 900; background: var(--paper-2); border: 2px solid var(--ink); border-radius: 99px; padding: 0.05rem 0.6rem; }
.sk-hc { display: flex; gap: 0.6rem; align-items: center; background: #fff1d6; border: 2px dashed var(--orange); border-radius: 12px; padding: 0.45rem 0.6rem; }
.sk-hc .ic { font-size: 1.8rem; }
.sk-hc b { display: block; font-family: var(--font-head); font-size: 1.05rem; }
.sk-hc small { display: block; font-size: 0.82rem; line-height: 1.25; color: var(--ink-soft); }

/* Erraten-Liste (links unten) */
/* Liste in em und mit fester Resthöhe: fitList setzt sie bei vielen Erratenen dichter */
.sk-solvedbox { display: flex; flex-direction: column; gap: 0.45rem; min-height: 0; flex: 1 1 auto; }
.sk-solved { display: flex; flex-direction: column; gap: 0.35em; overflow: hidden; flex: 1 1 auto; min-height: 0; }
.sk-sv .avatar { --size: 1.9em !important; }
.sk-sv { display: flex; align-items: center; gap: 0.5em; flex: none; background: rgba(255, 250, 240, 0.92); color: var(--ink); border: 2px solid var(--ink); border-radius: 12px; padding: 0.2rem 0.55rem 0.2rem 0.3rem; animation: slideUp 0.4s var(--ease-back) both; }
.sk-sv .rk { width: 1.6rem; text-align: center; font-weight: 900; }
.sk-sv .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; }
.sk-sv small { font-weight: 800; color: var(--ink-soft); }
.sk-sv em { font-style: normal; font-weight: 900; color: var(--green); }
.sk-none { font-family: var(--font-art); font-size: 1.2rem; color: rgba(255, 250, 240, 0.75); }
.sk-none.hidden { display: none; }

/* Ratespalte (rechts) */
.sk-feed { display: flex; flex-direction: column; gap: 0.45rem; overflow: hidden; min-height: 0; mask-image: linear-gradient(#000 70%, transparent); -webkit-mask-image: linear-gradient(#000 70%, transparent); }
.sk-tip { display: flex; align-items: center; gap: 0.5rem; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 16px 16px 16px 4px; padding: 0.25rem 0.7rem 0.25rem 0.3rem; animation: tipIn 0.4s var(--ease-back) both; box-shadow: var(--shadow-sm); }
.sk-tip > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-art); font-weight: 700; font-size: 1.25rem; line-height: 1.1; }
.sk-tip > span small { display: block; font-family: var(--font-body); font-size: 0.72rem; font-weight: 800; color: var(--ink-soft); }
.sk-tip.ok { background: #dff5df; border-color: #1f7a3c; }
.sk-tip.ok > span { font-family: var(--font-head); font-size: 1rem; }
@keyframes tipIn { from { opacity: 0; transform: translateX(1.5rem) scale(0.9); } to { opacity: 1; transform: none; } }

/* „Gleich malt …“ mit Handicap-Rad */
.sk-ready { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; color: var(--ink); text-align: center; }
.sk-ready > small { font-family: var(--font-art); font-size: 1.6rem; }
.sk-ready > b { font-family: var(--font-head); font-size: 2.2rem; }
.sk-slot { --cell: 4.6rem; width: 5.4rem; height: var(--cell); overflow: hidden; background: #fff1d6; border: 3px solid var(--ink); border-radius: 16px; box-shadow: var(--shadow-sm); }
.sk-slot .reel { display: flex; flex-direction: column; }
.sk-slot .reel i { height: var(--cell); display: grid; place-items: center; font-size: 2.8rem; font-style: normal; }
.sk-hcname { min-height: 3.6rem; display: flex; flex-direction: column; align-items: center; }
.sk-hcname b { font-family: var(--font-art); font-size: 2rem; color: var(--orange); animation: stamp 0.5s var(--ease-back) both; }
.sk-hcname span { font-weight: 800; color: var(--ink-soft); animation: fadeIn 0.4s 0.2s both; }

/* Begriffswahl: drei verdeckte Karten */
.sk-pick { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.sk-cards { display: flex; gap: 1.2rem; max-width: 100%; }
.sk-card { width: 9.5rem; flex: 0 1 9.5rem; min-width: 0; min-height: 11rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.8rem; background: repeating-linear-gradient(45deg, #fff1d6 0 12px, #ffe7b8 12px 24px); color: var(--ink); border: 3px solid var(--ink); border-radius: 16px; box-shadow: var(--shadow); font-size: 1.6rem; animation: cardIn 0.5s var(--ease-back) both; transition: transform 0.25s var(--ease-back), opacity 0.3s; position: relative; }
.sk-card small { font-size: 0.9rem; font-weight: 900; color: var(--ink-soft); }
.sk-card .sk-word:empty { display: none; }
.sk-card .sk-word { font-family: var(--font-art); font-weight: 700; font-size: 1.5rem; line-height: 1.1; text-align: center; display: flex; flex-direction: column; }
.sk-card .sk-word small { font-family: var(--font-body); font-size: 0.75rem; }
.sk-card:nth-child(1) { transform: rotate(-4deg); }
.sk-card:nth-child(3) { transform: rotate(4deg); }
@keyframes cardIn { from { opacity: 0; transform: translateY(2rem) scale(0.8); } }
.sk-pick.picked .sk-card { opacity: 0.45; transform: scale(0.9); }
.sk-pickhint { display: flex; align-items: center; gap: 0.5rem; font-weight: 800; color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 99px; padding: 0.25rem 1rem 0.25rem 0.3rem; }
.sk-away { font-family: var(--font-art); font-size: 2rem; color: var(--ink); background: var(--paper); border: 3px solid var(--ink); border-radius: 16px; padding: 0.6rem 1.4rem; box-shadow: var(--shadow); animation: jelly 0.6s ease; }

/* Museumsschild unter dem Bild */
.sk-plaque { min-height: 0; display: flex; justify-content: center; }
.sk-plaque:empty { display: none; }
.plaque { display: flex; flex-direction: column; align-items: center; padding: 0.4rem 1.6rem 0.5rem; background: linear-gradient(160deg, #f6dd8c, #d8ab43); color: #3b2a0a; border: 3px solid #6b4a12; border-radius: 8px; box-shadow: var(--shadow); animation: stamp 0.55s var(--ease-back) both; }
.plaque b { font-family: var(--font-art); font-weight: 700; font-size: 1.7rem; line-height: 1.15; }
.plaque span { font-weight: 800; font-size: 0.95rem; }
.plaque em { font-style: normal; color: #14662f; }
.plaque.good { background: linear-gradient(160deg, #c8f1c4, #7ccf86); border-color: #1f6b33; }
.plaque.bad { background: linear-gradient(160deg, #ffd1c6, #f08a73); border-color: #7a2414; }

/* ------------------------------------------------------------ Quizzly malt */
.qart, .qart svg { width: 100%; height: 100%; display: block; }
.qart .qa-fill { transition: opacity 0.35s ease; }
.qart .qa-pen circle { r: 6px; fill: var(--orange); stroke: var(--ink); stroke-width: 2.5px; }
.qart .qa-pen { opacity: 0; transition: opacity 0.2s; }
.qart .qa-pen.on { opacity: 1; }
.qd-style { padding: 0.8rem 1rem; transform: rotate(-1.5deg); }
.qd-st { display: flex; align-items: center; gap: 0.7rem; }
.qd-st .ic { font-size: 2.4rem; }
.qd-st b { display: block; font-family: var(--font-art); font-size: 1.5rem; line-height: 1.1; }
.qd-st small { display: block; color: var(--ink-soft); font-weight: 700; font-size: 0.9rem; }
.qd-ready { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; color: var(--ink); }
.qd-ready .qd-bear { font-size: 4.5rem; animation: bounce 1.2s ease-in-out infinite; }
.qd-ready b { font-family: var(--font-art); font-size: 2.2rem; }

/* Finale: Die Auktion – Los-Karte mit fallendem Preis, Sammlungen */
.au-info { padding: 0.8rem 0.9rem; display: flex; flex-direction: column; gap: 0.5rem; min-height: 0; overflow: hidden; }
.au-head { font-family: var(--font-art); font-weight: 700; font-size: 1.35rem; }
.au-price { display: flex; flex-direction: column; align-items: center; padding: 0.3rem 0.6rem 0.4rem; background: linear-gradient(160deg, #f6dd8c, #d8ab43); color: #3b2a0a; border: 3px solid #6b4a12; border-radius: 10px; box-shadow: var(--shadow-sm); line-height: 1.1; }
.au-price small { font-weight: 900; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; }
.au-price b { font-family: var(--font-head); font-size: clamp(1.6rem, calc(var(--vq) * 4.2), 2.6rem); font-variant-numeric: tabular-nums; }
.au-price span { font-weight: 800; font-size: 0.8rem; opacity: 0.75; }
.au-rows { display: flex; flex-direction: column; gap: 0.3rem; min-height: 0; overflow: hidden; }
.au-row { display: flex; align-items: center; gap: 0.45rem; font-weight: 800; font-size: 0.95rem; flex: none; }
.au-row > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.au-row i { font-style: normal; font-size: 0.85rem; white-space: nowrap; }
.au-rows:has(> .au-row:nth-child(8)) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.15rem 0.4rem; }
.au-rows:has(> .au-row:nth-child(8)) .au-row { font-size: 0.75rem; gap: 0.25rem; }
.au-rows:has(> .au-row:nth-child(8)) .au-row .avatar { --size: 1.4rem !important; }
.au-lot { text-align: center; max-width: 90%; }
.au-lot .gavel { font-size: 4.5rem; transform-origin: 70% 70%; animation: gavel 1.6s ease-in-out infinite; }
.au-lot > span:last-child { font-weight: 800; color: var(--ink-soft); }
.au-lot em { font-style: normal; font-family: var(--font-head); color: #8a5a00; }
@keyframes gavel { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-28deg); } 80% { transform: rotate(6deg); } }
.dp-price b { font-family: var(--font-head); font-size: 17px; color: var(--yellow); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ Finale: Das Staffelei-Duell */
/* Oben die Thronleiste, darunter zwei Staffeleien (Meister*in links, Herausforderung rechts), dazwischen VS + Ratespalte */
.duwrap { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: clamp(0.3rem, calc(var(--vq) * 1.2), 0.9rem); position: relative; }
.du-top { flex: none; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 1rem; min-height: clamp(2.6rem, calc(var(--vq) * 6.5), 3.8rem); }
.du-throne { justify-self: start; display: flex; align-items: center; gap: 0.5rem; min-width: 0; max-width: 100%; padding: 0.15rem 1rem 0.15rem 0.3rem; background: linear-gradient(160deg, #fff3c4, var(--gold)); color: var(--ink); border: 3px solid var(--ink); border-radius: 99px; box-shadow: var(--shadow-sm); }
.du-throne:empty { display: none; }
.du-throne.swap { animation: jelly 0.8s ease; }
.du-throne .avatar { --size: clamp(1.8rem, calc(var(--vq) * 5), 2.5rem) !important; }
.du-av { position: relative; display: inline-flex; flex: none; }
.du-crown { position: absolute; left: 50%; top: -0.75em; transform: translateX(-50%) rotate(-12deg); font-style: normal; font-size: 1.15em; line-height: 1; filter: drop-shadow(0 2px 0 rgba(43, 33, 24, 0.5)); pointer-events: none; }
.du-nm { display: flex; flex-direction: column; min-width: 0; line-height: 1.1; }
.du-nm b { font-family: var(--font-head); font-size: clamp(1rem, calc(var(--vq) * 2.6), 1.35rem); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.du-nm small { font-family: var(--font-art); font-weight: 700; font-size: 0.95rem; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.du-title { justify-self: center; text-align: center; min-width: 0; }
.du-num { font-family: var(--font-art); font-weight: 700; font-size: clamp(1.3rem, calc(var(--vq) * 3.4), 2rem); color: #fffaf0; text-shadow: 0 2px 0 rgba(58, 34, 14, 0.6); white-space: nowrap; }
.du-banner { display: inline-block; padding: 0.15rem 1.4rem 0.25rem; border-radius: 10px; border: 3px solid var(--ink); box-shadow: var(--shadow); font-family: var(--font-art); font-weight: 700; font-size: clamp(1.2rem, calc(var(--vq) * 3), 1.9rem); line-height: 1.15; color: var(--ink); background: var(--paper); animation: stamp 0.55s var(--ease-back) both; max-width: 100%; }
.du-banner.keep { background: linear-gradient(160deg, #fff3c4, var(--gold)); }
.du-banner.swap { background: linear-gradient(160deg, #ffd9c2, #ff8a5c); }
.du-queue { justify-self: end; display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.du-queue small { font-family: var(--font-art); font-weight: 700; font-size: 1.05rem; color: #fffaf0; text-shadow: 0 2px 0 rgba(58, 34, 14, 0.5); white-space: nowrap; }
.du-line { display: flex; padding-left: 0.4rem; }
.du-line .avatar { margin-left: -0.4rem; --size: clamp(1.5rem, calc(var(--vq) * 4.2), 2rem) !important; }

.du-arena { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) clamp(10rem, 17%, 15.5rem) minmax(0, 1fr); gap: clamp(0.6rem, 1.4%, 1.2rem); }
.du-side { min-width: 0; min-height: 0; display: flex; flex-direction: column; align-items: center; gap: clamp(0.25rem, calc(var(--vq) * 0.8), 0.6rem); transition: opacity 0.5s, filter 0.5s; }
.du-head { flex: none; display: flex; align-items: center; gap: 0.55rem; max-width: 100%; min-height: 2.4rem; padding: 0.15rem 0.9rem 0.15rem 0.25rem; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 99px; box-shadow: var(--shadow-sm); }
.du-head:empty { visibility: hidden; }
.du-side.champ .du-head { background: linear-gradient(160deg, #fff3c4, var(--gold)); }
.du-head .avatar { --size: clamp(1.9rem, calc(var(--vq) * 5.4), 3.2rem) !important; }
.du-pts { font-style: normal; font-family: var(--font-head); font-size: 1.3rem; color: #14662f; white-space: nowrap; }
.du-pts:empty { display: none; }
.du-sign { flex: none; max-width: 100%; min-height: clamp(2rem, calc(var(--vq) * 5.2), 3.2rem); display: flex; align-items: center; justify-content: center; }
.du-sign .sk-mask { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.3rem 0.6rem; max-width: 100%; }
.du-cat { font-size: 0.85rem; font-weight: 900; background: var(--paper-2); color: var(--ink); border: 2px solid var(--ink); border-radius: 99px; padding: 0.05rem 0.6rem; white-space: nowrap; }
.wmask.du { gap: 0.3rem 0.8rem; padding: 0.2rem 0.8rem 0.3rem; }
.wmask.du .ww { gap: 0.3rem; }
.wmask.du .wl { width: clamp(0.8rem, calc(var(--vq) * 1.8), 1.1rem); height: clamp(1.3rem, calc(var(--vq) * 2.8), 1.75rem); font-size: clamp(1rem, calc(var(--vq) * 2.4), 1.45rem); border-bottom-width: 0.18rem; }
.wmask.du .wp { font-size: 1.2rem; }
.du-sign .wmask.solved .wword { font-size: clamp(1.3rem, calc(var(--vq) * 3.2), 2rem); }
.du-stage { flex: 1; min-height: 0; width: 100%; position: relative; display: grid; place-items: center; }
.du-stage .easel { transition: box-shadow 0.4s, background 0.4s; }
.du-stamp { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 3; }
.du-stamp span { display: flex; flex-direction: column; align-items: center; padding: 0.2rem 1.4rem 0.4rem; font-family: var(--font-head); font-size: clamp(2rem, calc(var(--vq) * 6), 3.6rem); line-height: 1; color: var(--red); background: rgba(255, 250, 240, 0.92); border: 0.3rem solid var(--red); border-radius: 12px; animation: stamp 0.5s var(--ease-back) both; }
.du-stamp span small { font-family: var(--font-art); font-size: 0.4em; color: var(--ink); }
.du-hits { flex: none; display: flex; justify-content: center; align-items: center; min-height: clamp(1.6rem, calc(var(--vq) * 4.6), 2.4rem); max-width: 100%; padding-left: 0.4rem; overflow: hidden; }
.du-hits > .avatar, .du-hits > * > .avatar { --size: clamp(1.5rem, calc(var(--vq) * 4.4), 2.2rem) !important; }
.du-hits > .avatar { margin-left: -0.4rem; }
.du-hit { display: flex; align-items: center; gap: 0.15rem; margin-left: -0.2rem; padding: 0.05rem 0.45rem 0.05rem 0.1rem; background: rgba(255, 250, 240, 0.92); color: var(--ink); border: 2px solid var(--ink); border-radius: 99px; animation: slideUp 0.4s var(--ease-back) both; }
.du-hit small { font-weight: 900; font-size: 0.75rem; white-space: nowrap; }
.du-hits:has(> .du-hit:nth-child(6)) .du-hit small { display: none; }
/* Gewonnen: Goldrahmen mit Krone, verloren: blasser */
.du-side.won .easel { background: linear-gradient(160deg, #fff3c4, #e8b730 45%, #b07d12); box-shadow: 0 0 0 0.25rem var(--gold), 0 0 2.2rem 0.6rem rgba(255, 197, 61, 0.65), 0 8px 0 rgba(58, 34, 14, 0.5); }
.du-side.won .du-stage::before { content: '👑'; position: absolute; left: 50%; top: -0.15em; z-index: 4; font-size: clamp(2rem, calc(var(--vq) * 5.5), 3.4rem); line-height: 1; transform: translateX(-50%) rotate(-8deg); animation: pop 0.6s 0.4s var(--ease-back) both; }
.du-side.won .du-stamp { display: none; }
.du-side.lost, .du-arena.closed .du-side:not(.hit) { opacity: 0.6; filter: grayscale(0.4); }
/* Mitte: VS, eigener Begriff (PC), Werkzeuge (PC), Ratespalte */
.du-mid { min-width: 0; min-height: 0; display: flex; flex-direction: column; align-items: stretch; gap: 0.6rem; }
.du-vs { flex: none; align-self: center; font-family: var(--font-head); font-size: clamp(2rem, calc(var(--vq) * 6), 3.6rem); line-height: 1; color: var(--gold); -webkit-text-stroke: 0.05em var(--ink); paint-order: stroke fill; text-shadow: 0 0.08em 0 var(--ink); transform: rotate(-6deg); }
.du-mid .sk-sign { min-height: 0; }
.du-mid .sk-sign:not(:has(.sk-mine.on)) { display: none; }
.du-mid .sk-yours { flex-direction: column; align-items: center; gap: 0; text-align: center; padding: 0.2rem 0.7rem 0.3rem; }
.du-mid .sk-yours b { font-size: 1.5rem; overflow-wrap: anywhere; }
.du-feed { flex: 1; min-height: 0; }
.du-feed .sk-tip > span { font-size: 1.05rem; }
.du-feed .sk-tip.ok > span { font-size: 0.85rem; white-space: normal; }
.du-mid:has(.sk-toolslot:not(:empty)) .du-vs { display: none; }
.du-mid .sk-toolslot .sk-colors { grid-template-columns: repeat(4, 1fr); }
/* Ansage „Herausforderung!“ über beiden Staffeleien */
.du-over { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; pointer-events: none; border-radius: 18px; }
.du-over:empty { display: none; }
.du-over:not(:empty) { background: radial-gradient(ellipse at 50% 50%, rgba(43, 33, 24, 0.55), rgba(43, 33, 24, 0.82)); animation: fadeIn 0.4s both; }
.du-splash { display: flex; align-items: center; justify-content: center; gap: clamp(1rem, 4%, 3.5rem); max-width: 100%; padding: 1rem; }
.du-fighter { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; min-width: 0; color: #fffaf0; text-align: center; }
.du-fighter .avatar { --size: clamp(4.5rem, calc(var(--vq) * 15), 7.5rem) !important; }
.du-fighter .du-crown { font-size: clamp(2rem, calc(var(--vq) * 6), 3.2rem); top: -0.6em; }
.du-fighter b { font-family: var(--font-head); font-size: clamp(1.4rem, calc(var(--vq) * 3.6), 2.3rem); text-shadow: 0 3px 0 rgba(0, 0, 0, 0.45); max-width: 14rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.du-fighter small { font-family: var(--font-art); font-weight: 700; font-size: 1.2rem; color: var(--gold); }
.du-fighter.champ { animation: duInL 0.6s var(--ease-back) both; }
.du-fighter.chall { animation: duInR 0.6s 0.5s var(--ease-back) both; }
.du-bang { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; }
.du-bang i { font-style: normal; font-size: clamp(3rem, calc(var(--vq) * 9), 5rem); animation: pop 0.5s 0.9s var(--ease-back) both; }
.du-bang span { font-family: var(--font-art); font-weight: 700; font-size: clamp(1.8rem, calc(var(--vq) * 5.5), 3.4rem); line-height: 1; color: var(--gold); -webkit-text-stroke: 0.04em var(--ink); paint-order: stroke fill; text-shadow: 0 0.07em 0 var(--ink); white-space: nowrap; animation: stamp 0.6s 1.2s var(--ease-back) both; }
@keyframes duInL { from { opacity: 0; transform: translateX(-3rem) scale(0.8); } }
@keyframes duInR { from { opacity: 0; transform: translateX(3rem) scale(0.8); } }
/* Handy: beide Bilder nebeneinander */
.dp-duo { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.dp-dside { min-width: 0; min-height: 0; display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
.dp-dhead { text-align: center; font-weight: 800; font-size: 14px; color: #fffaf0; text-shadow: 0 1px 0 rgba(58, 34, 14, 0.5); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-dside > .dp-cat { align-self: center; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 800; }
.dp-stage.duo { flex: 1 1 auto; min-height: 70px; }
.dp-dside .dp-mask .wmask.small { gap: 3px 6px; padding: 3px 6px 4px; }
.dp-dside .dp-mask .wmask.small .ww { gap: 3px; }
.dp-dside .dp-mask .wmask.small .wl { width: 11px; height: 18px; font-size: 14px; }
.dp-dside.got .dp-dhead::after { content: ' ✓'; color: #9ee6a8; }
.dp-dside.got .dp-frame { box-shadow: 0 0 0 3px #36a35a, 0 4px 0 rgba(58, 34, 14, 0.45); }
.dp-dside.won .dp-frame { box-shadow: 0 0 0 3px var(--gold), 0 0 14px 4px rgba(255, 197, 61, 0.6); }

/* ------------------------------------------------------------ Stille Post: Kette im Kreis */
.phwrap { flex: 1; min-height: 0; display: flex; align-items: stretch; justify-content: center; gap: 1.5rem; position: relative; }
.phwrap.ready { align-items: center; }
/* Ring als Ellipse im freien Platz (Container-Einheiten): in breiten, niedrigen Bühnen (PC mit Antwortleiste) wird er
   breiter statt winzig; Avatare, Namen und Mitte wachsen mit dem Abstand der Plätze */
.ph-ring { --n: 6; --Rx: min(19rem, 40cqw, 16rem + 18cqw); --Ry: min(16rem, 34cqh); --gap: calc(min(var(--Rx), var(--Ry)) * 6.28 / var(--n)); container-type: size; position: relative; flex: 1; max-width: 70rem; min-height: 0; display: grid; place-items: center; }
.ph-orbit { position: absolute; width: calc(var(--Rx) * 2); height: calc(var(--Ry) * 2); border-radius: 50%; border: 0.25rem dashed rgba(255, 250, 240, 0.55); }
.ph-seat { --a: calc(360deg / var(--n) * var(--i) - 90deg); position: absolute; left: calc(50% + cos(var(--a)) * var(--Rx)); top: calc(50% + sin(var(--a)) * var(--Ry)); display: flex; flex-direction: column; align-items: center; gap: 0.15rem; transform: translate(-50%, -50%); transition: left 0.4s var(--ease-back), top 0.4s var(--ease-back); }
.ph-seat .avatar { --size: clamp(2rem, calc(var(--gap) * 0.62), 70px) !important; }
@container (max-height: 22rem) { .ph-seat .ph-nm { display: none; } .ph-center .ph-ic, .ph-center p { display: none; } }
.ph-ring .ph-center { max-width: min(22rem, calc(var(--Rx) * 1.3)); }
.ph-ring .ph-center:not(.solo) h2 { font-size: clamp(1.1rem, calc(var(--Ry) * 0.22), 2.4rem); line-height: 1.1; }
/* Name höchstens so breit wie der Abstand der Plätze – sonst liegt er unter dem Nachbarn (viele Spieler) */
.ph-seat .ph-nm { font-weight: 800; font-size: clamp(0.72rem, calc(var(--gap) * 0.16), 0.9rem); background: rgba(62, 36, 16, 0.6); border-radius: 99px; padding: 0 0.45rem; max-width: max(4.5rem, calc(var(--gap) * 1.05)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-seat .ph-st { position: absolute; top: -0.4rem; right: -0.4rem; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); font-size: 1rem; animation: bounce 1.4s ease-in-out infinite; }
.ph-seat.ok .ph-st { background: var(--green); color: #fff; animation: pop 0.35s var(--ease-back) both; font-weight: 900; }
.ph-seat.ok .avatar { filter: saturate(1.1); transform: scale(1.05); }
.ph-center { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.3rem; max-width: 22rem; }
.ph-center .ph-ic { font-size: 3.6rem; animation: bounce 1.6s ease-in-out infinite; }
.ph-center h2 { font-family: var(--font-art); font-weight: 700; font-size: 2.4rem; color: #fffaf0; text-shadow: 0 3px 0 rgba(58, 34, 14, 0.55); }
.ph-center p { font-weight: 800; color: #fffaf0; text-shadow: 0 2px 0 rgba(58, 34, 14, 0.4); }
.ph-center.solo h2 { font-size: 3.2rem; }
.ph-steps { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.25rem; margin-bottom: 0.3rem; }
.ph-steps i { font-style: normal; width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 250, 240, 0.35); border: 2px solid rgba(43, 33, 24, 0.35); font-size: 1rem; }
.ph-steps i.done { background: rgba(255, 250, 240, 0.7); opacity: 0.6; }
.ph-steps i.cur { background: var(--yellow); border-color: var(--ink); transform: scale(1.18); }
.ph-steps b { color: rgba(255, 250, 240, 0.7); }
.ph-me:empty { display: none; }

/* Präsentation */
.phshow { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 0.9rem; }
.ph-head { display: flex; align-items: center; gap: 0.7rem; justify-content: center; }
.ph-head b { font-family: var(--font-art); font-weight: 700; font-size: 2.1rem; color: #fffaf0; text-shadow: 0 3px 0 rgba(58, 34, 14, 0.55); }
.ph-kc { font-weight: 900; font-size: 0.9rem; background: rgba(62, 36, 16, 0.55); border-radius: 99px; padding: 0.15rem 0.8rem; }
.ph-panels { --cols: 3; flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 1rem 2rem; align-content: center; }
.ph-panels.one { grid-auto-rows: minmax(0, 0.8fr); align-content: center; }
.ph-panels .ph-arrow { display: none; }
.ph-panel { position: relative; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 0.35rem; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 14px; padding: 0.45rem 0.55rem 0.55rem; box-shadow: var(--shadow); opacity: 0; transform: translateY(1.5rem) rotate(-2deg) scale(0.92); transition: opacity 0.4s, transform 0.5s var(--ease-back); }
.ph-panel:nth-of-type(even) { --r: 1.5deg; }
.ph-panel.in { opacity: 1; transform: rotate(var(--r, -1deg)); }
.ph-panel::after { content: ''; position: absolute; top: -0.65rem; left: 50%; width: 3.8rem; height: 1.1rem; transform: translateX(-50%) rotate(-4deg); background: var(--tape); }
.ph-by { display: flex; align-items: center; gap: 0.4rem; font-weight: 800; font-size: 0.85rem; }
.ph-by > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-by em { margin-left: auto; font-style: normal; font-size: 0.75rem; color: var(--ink-soft); }
.ph-art { height: 100%; min-height: 0; aspect-ratio: 4 / 3; justify-self: center; align-self: center; max-width: 100%; background: #fff; border: 2px solid rgba(43, 33, 24, 0.25); border-radius: 6px; overflow: hidden; display: grid; place-items: center; }
.ph-art .sketch { width: 100%; height: 100%; }
.ph-empty { font-family: var(--font-art); font-size: 1.4rem; color: var(--ink-soft); }
.ph-text { min-height: 0; display: grid; place-items: center; text-align: center; padding: 0.3rem; }
.ph-text span { font-family: var(--font-art); font-weight: 700; font-size: clamp(1.3rem, 2.2vw, 2.1rem); line-height: 1.15; }
.ph-panel.text { background: #fff7d6; }
.ph-heart { position: absolute; right: -0.6rem; bottom: -0.6rem; display: none; align-items: center; gap: 0.15rem; background: #fff; border: 2px solid var(--ink); border-radius: 99px; padding: 0.05rem 0.45rem; font-weight: 900; }
.ph-heart i { font-style: normal; }
.ph-panel.liked .ph-heart { display: flex; }
.ph-heart.bump { animation: jelly 0.6s ease; }
.ph-foot { min-height: 3.2rem; display: flex; justify-content: center; }
.ph-sum { display: flex; flex-direction: column; align-items: center; gap: 0.1rem; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 14px; padding: 0.35rem 1.2rem; box-shadow: var(--shadow-sm); font-weight: 700; animation: stamp 0.5s var(--ease-back) both; }
.ph-sum b { font-family: var(--font-art); font-size: 1.25rem; }

/* Auflösung: Lieblinge */
.phhall { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.phhall h2 { font-family: var(--font-art); font-weight: 700; font-size: 2.6rem; color: #fffaf0; text-shadow: 0 3px 0 rgba(58, 34, 14, 0.55); }
.ph-top { flex: 1; min-height: 0; display: flex; gap: 1.6rem; align-items: center; justify-content: center; width: 100%; }
.ph-tp { position: relative; width: min(24rem, 30%); display: flex; flex-direction: column; gap: 0.5rem; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 14px; padding: 0.6rem; box-shadow: var(--shadow); animation: slideUp 0.6s var(--ease-back) both; }
.ph-tp:first-child { width: min(28rem, 36%); transform: rotate(-1.5deg); }
.ph-tp .ph-text { min-height: 9rem; }
.ph-tp .ph-by > b { margin-left: auto; }
.ph-medal { position: absolute; top: -1.2rem; left: -1rem; font-size: 2.6rem; }
/* Stille Post: Punktequellen, Treffer-Stempel, Herz-Aufruf, Punktetabelle */
.ph-pts { display: flex; flex-direction: column; gap: 0.15rem; margin-top: 0.7rem; background: rgba(62, 36, 16, 0.6); border-radius: 14px; padding: 0.45rem 0.9rem; font-weight: 700; font-size: 0.85rem; line-height: 1.25; color: #fffaf0; text-align: left; }
.ph-pts b { color: var(--yellow); }
.ph-center.solo .ph-pts { font-size: 1rem; max-width: 30rem; }
/* Arbeitsphasen: neben dem Ring (in der Mitte würde der Kasten die Plätze überdecken) */
.phwrap > .ph-pts { position: absolute; right: 0.5rem; top: 50%; transform: translateY(-50%); max-width: min(17rem, 22vw); margin: 0; }
.screen.pc-studio-on .ph-pts { display: none; }
.ph-stamp { position: absolute; right: -0.9rem; top: -1.2rem; width: max-content; max-width: 92%; z-index: 3; display: none; flex-direction: column; align-items: center; background: var(--green); color: #fff; border: 3px solid var(--ink); border-radius: 12px; padding: 0.1rem 0.7rem 0.2rem; font-family: var(--font-art); font-weight: 700; font-size: 1.35rem; line-height: 1.1; box-shadow: var(--shadow-sm); pointer-events: none; }
.ph-stamp small { font-family: inherit; font-size: 0.85rem; font-weight: 700; }
.ph-panel.hit .ph-stamp { display: flex; animation: stamp 0.5s var(--ease-back) both; }
.ph-panel.hit { box-shadow: 0 0 0 0.3rem var(--green), var(--shadow); }
.ph-foot { gap: 1rem; align-items: center; flex-wrap: wrap; }
.ph-vote { font-weight: 900; color: var(--ink); background: #ffe2ea; border: 3px solid var(--ink); border-radius: 99px; padding: 0.35rem 1.1rem; box-shadow: var(--shadow-sm); animation: jelly 0.8s ease 0.3s both; }
.ph-vote small { font-weight: 900; color: var(--pink); }
.phhall { overflow: hidden; }
.ph-score { display: grid; gap: 0.25rem; width: min(54rem, 100%); flex: 0 0 auto; }
.ph-sr { display: grid; grid-template-columns: auto minmax(0, 1fr) repeat(3, 7.2rem) 5.5rem; align-items: center; gap: 0.7rem; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 10px; padding: 0.15rem 0.7rem; font-weight: 800; font-size: 0.95rem; animation: slideUp 0.4s var(--ease-back) both; }
.ph-sr .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-sr .z { opacity: 0.35; }
.ph-sr b { text-align: right; font-size: 1.1rem; color: #1f7a3d; }
.ph-score:has(.ph-sr:nth-child(7)) .ph-sr { font-size: 0.8rem; padding: 0 0.6rem; }
.ph-nolikes, .ph-arrived, .gb-salon { font-weight: 800; color: #fffaf0; background: rgba(62, 36, 16, 0.55); border-radius: 99px; padding: 0.4rem 1.2rem; }

/* ------------------------------------------------------------ Der Fälscher */
.fk-cat { padding: 0.7rem 1rem; text-align: center; transform: rotate(-2deg); }
.fk-cat small { display: block; font-weight: 900; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.fk-cat b { display: block; font-family: var(--font-art); font-size: 1.7rem; line-height: 1.15; }
.fk-order { display: flex; flex-direction: column; gap: 0.35rem; min-height: 0; overflow: hidden; }
.fk-p { position: relative; display: flex; align-items: center; gap: 0.5rem; background: rgba(255, 250, 240, 0.9); color: var(--ink); border: 2px solid var(--ink); border-radius: 12px; padding: 0.2rem 0.6rem 0.2rem 0.3rem; font-weight: 800; transition: transform 0.3s var(--ease-back); overflow: hidden; }
.fk-p .dot { width: 0.9rem; height: 0.9rem; border-radius: 50%; background: var(--pc); border: 2px solid var(--ink); flex: none; }
.fk-p > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fk-p em { font-style: normal; font-size: 0.8rem; }
.fk-p.cur { transform: translateX(0.6rem) scale(1.04); background: #fff; box-shadow: 0 0 0 3px var(--pc), var(--shadow-sm); }
.fk-clock { position: absolute; left: 0; right: 0; bottom: 0; height: 0.3rem; background: rgba(43, 33, 24, 0.15); }
.fk-clock i { display: block; height: 100%; background: var(--pc); transform-origin: left; }
.fk-panel { display: flex; flex-direction: column; gap: 0.8rem; }
.fk-note { padding: 0.9rem 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.fk-note > b { font-family: var(--font-art); font-weight: 700; font-size: 1.45rem; line-height: 1.1; }
.fk-note p { margin: 0; font-weight: 700; font-size: 0.95rem; line-height: 1.35; color: var(--ink-soft); }
.fk-note.caught { background: #ffe2dc; }
.fk-now { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; }
.fk-pass { font-weight: 900; font-size: 0.85rem; color: var(--ink-soft); }
.fk-voters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.fk-vt { display: flex; flex-direction: column; align-items: center; gap: 0.1rem; width: 4.4rem; position: relative; opacity: 0.55; transition: opacity 0.3s; }
.fk-vt small { font-size: 0.72rem; font-weight: 800; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fk-vt.ok { opacity: 1; }
.fk-vt.ok::after { content: '✓'; position: absolute; top: -0.3rem; right: 0.3rem; width: 1.3rem; height: 1.3rem; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; font-size: 0.75rem; font-weight: 900; border: 2px solid var(--ink); }
.fk-guesses { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.fk-guesses span { background: #fff; border: 2px solid var(--red); color: var(--red); border-radius: 99px; padding: 0 0.7rem; font-weight: 800; }
.fk-guesses span.ok { border-color: var(--green); color: var(--green); }
.fk-role { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; color: var(--ink); text-align: center; max-width: 80%; }
.fk-role .fk-env { font-size: 5rem; animation: jelly 1.4s ease infinite; }
.fk-role b { font-family: var(--font-art); font-size: clamp(1.4rem, calc(var(--cw, 40rem) / 22), 2.3rem); line-height: 1.1; }
.fk-role span { font-weight: 800; color: var(--ink-soft); }
.fk-sus { display: flex; flex-direction: column; gap: 0.35rem; }
.fk-s { display: flex; align-items: center; gap: 0.5rem; padding: 0.2rem 0.5rem 0.2rem 0.25rem; border-radius: 12px; border: 2px solid transparent; animation: slideUp 0.4s var(--ease-back) both; }
.fk-s > span { flex: 1; font-weight: 800; }
.fk-s b { font-weight: 900; font-size: 0.85rem; }
.fk-s.faker { border-color: var(--red); background: #ffe2dc; animation: jelly 0.6s ease; }
.fk-reveal { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; background: rgba(255, 250, 240, 0.92); border: 3px solid var(--ink); border-radius: 20px; padding: 1rem 2rem; color: var(--ink); box-shadow: var(--shadow); animation: stamp 0.55s var(--ease-back) both; }
.fk-reveal > b { font-family: var(--font-head); font-size: 2.2rem; }
.fk-reveal > span { font-family: var(--font-art); font-size: 1.6rem; }
.fk-reveal.free { background: #ffe2dc; }

/* ------------------------------------------------------------ Titel-Bluff: Atelier und Galerie */
.gbstudio { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 1.4rem; }
.gb-head { text-align: center; }
.gb-head h2 { font-family: var(--font-art); font-weight: 700; font-size: 2.4rem; color: #fffaf0; text-shadow: 0 3px 0 rgba(58, 34, 14, 0.55); }
.gb-head p { font-weight: 800; color: #fffaf0; }
.gb-easels { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem; max-width: 90rem; }
.gb-easel { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; width: 9rem; font-weight: 800; }
.gb-easel > span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gb-cloth { width: 100%; aspect-ratio: 4 / 3; border: 0.45rem solid #8b5a2b; border-radius: 6px; background: repeating-linear-gradient(100deg, #e9dcc3 0 10px, #dccaa8 10px 20px); display: grid; place-items: center; font-size: 2.2rem; box-shadow: var(--shadow-sm); position: relative; }
.gb-cloth span { animation: artScribble 0.9s ease-in-out infinite; }
@keyframes artScribble { 0%, 100% { transform: rotate(-10deg) translateX(-0.3rem); } 50% { transform: rotate(10deg) translateX(0.3rem); } }
.gb-easel.ok .gb-cloth { background: #fffaf0; }
.gb-easel.ok .gb-cloth span { animation: none; }
.gb-easel.ok .gb-cloth span::before { content: '✓'; }
.gb-easel.ok .gb-cloth span { font-size: 0; }
.gb-easel.ok .gb-cloth span::before { font-size: 2.6rem; color: var(--green); font-weight: 900; }
.gb-me:empty { display: none; }
.gbart { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(18rem, 1fr); gap: 2rem; }
.gb-left { min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 0.8rem; }
.gb-stage { flex: 1; min-height: 0; width: 100%; display: grid; place-items: center; }
.gb-frame { padding: 1.1rem; background: linear-gradient(145deg, #f3d27a, #c39232 40%, #f3d27a 60%, #a8781f); border: 3px solid #5a3d0c; border-radius: 6px; box-shadow: 0 10px 0 rgba(58, 34, 14, 0.5), inset 0 0 0 0.35rem rgba(90, 61, 12, 0.35); }
.gb-frame .ea-canvas { background: #fff; box-shadow: inset 0 0 0 3px rgba(90, 61, 12, 0.35); }
.gb-label { display: flex; align-items: center; gap: 0.6rem; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 99px; padding: 0.2rem 1rem 0.2rem 0.3rem; font-weight: 800; }
.gb-label > span { color: var(--ink-soft); }
.gb-right { min-height: 0; display: flex; flex-direction: column; gap: 1rem; justify-content: center; }
.gb-task { padding: 0.9rem 1.1rem; }
.gb-task b { font-family: var(--font-art); font-weight: 700; font-size: 1.7rem; }
.gb-task p { margin: 0.2rem 0 0; font-weight: 700; color: var(--ink-soft); }
.gb-writers { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.gb-w { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; width: 5.2rem; position: relative; font-weight: 800; font-size: 0.85rem; opacity: 0.6; }
.gb-w > span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gb-w i { position: absolute; top: -0.4rem; right: 0.2rem; font-style: normal; width: 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 2px solid var(--ink); color: var(--ink); font-size: 0.85rem; }
.gb-w.ok { opacity: 1; }
.gb-w.ok i { background: var(--green); color: #fff; font-weight: 900; }
.gb-opts { display: flex; flex-direction: column; gap: 0.6rem; }
.gb-opt { position: relative; display: flex; flex-direction: column; gap: 0.25rem; background: linear-gradient(160deg, #fbf3dc, #efe0b6); color: var(--ink); border: 3px solid #6b4a12; border-radius: 10px; padding: 0.55rem 0.9rem; box-shadow: var(--shadow-sm); animation: slideUp 0.45s var(--ease-back) both; }
.gb-opt > span { font-family: var(--font-art); font-weight: 700; font-size: 1.45rem; line-height: 1.15; }
.gb-opt .who { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.gb-opt .who:empty, .gb-opt .by:empty { display: none; }
.gb-opt .by { font-weight: 800; font-size: 0.9rem; }
.gb-opts.res .gb-opt { opacity: 0.35; transform: scale(0.97); transition: opacity 0.3s, transform 0.4s var(--ease-back), background 0.3s; }
.gb-opts.res .gb-opt.open { opacity: 1; transform: none; }
.gb-opts.res .gb-opt.open.fake { background: linear-gradient(160deg, #ffe4dc, #f6c0b2); border-color: #7a2414; }
.gb-opts.res .gb-opt.open.real { background: linear-gradient(160deg, #dcf6d8, #a7e3a6); border-color: #1f6b33; transform: scale(1.03); }
.gb-pickers { display: flex; flex-wrap: wrap; gap: 0.3rem; min-height: 2rem; }
.gb-sum { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.2rem; width: 100%; max-width: 90rem; align-content: center; }
.gb-tile { display: flex; flex-direction: column; gap: 0.4rem; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 12px; padding: 0.55rem; box-shadow: var(--shadow); animation: slideUp 0.5s var(--ease-back) both; }
.gb-tile b { font-family: var(--font-art); font-size: 1.25rem; line-height: 1.15; }
.gb-tile > span { display: flex; align-items: center; gap: 0.35rem; font-weight: 800; font-size: 0.85rem; }
.gb-tile em { font-style: normal; color: var(--green); }

/* ================================================================ Handy */
body.play[data-mode="draw"] #main:has(> .view.drawv) { padding: 10px 12px 12px; }
.view.dpv { gap: 10px; }
.view.drawv { gap: 8px; }
.dp-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.dp-head b { font-family: 'Kalam', cursive; font-weight: 700; font-size: 25px; line-height: 1.1; color: #fffaf0; text-shadow: 0 2px 0 rgba(58, 34, 14, 0.55); }
.dp-head span { font-weight: 800; font-size: 14px; color: #fffaf0; opacity: 0.95; }
.dp-wait { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 18px 16px; }
.dp-wait .ic { font-size: 46px; }
.dp-wait b { font-family: var(--font-head); font-size: 21px; }
.dp-wait span { font-weight: 700; color: var(--ink-soft); }
.dp-wait.small { padding: 10px 14px; flex-direction: row; text-align: left; gap: 10px; }
.dp-wait.small .ic { font-size: 30px; }
.dp-done, .dp-solved { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 12px 14px; font-family: var(--font-head); font-size: 19px; font-weight: 600; background: #e3f6df; animation: pop 0.4s var(--ease-back) both; }
.dp-done small, .dp-solved small { font-family: var(--font-body); font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.dp-hc { margin-top: 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; background: #fff1d6; border: 2px dashed var(--orange); border-radius: 12px; padding: 8px 12px; font-size: 22px; }
.dp-hc b { font-family: var(--font-head); font-size: 18px; }
.dp-hc small { font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.dp-hc.big { margin: 0; flex-direction: row; flex-wrap: wrap; justify-content: center; text-align: center; gap: 6px; }
.dp-hc.big small { width: 100%; }

/* Begriff wählen */
.dp-picks { display: flex; flex-direction: column; gap: 10px; }
.dp-pick { display: grid; grid-template-columns: 1fr auto; grid-template-areas: 'n s' 'c s'; align-items: center; gap: 0 10px; text-align: left; padding: 12px 16px; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 16px; box-shadow: var(--shadow); transition: transform 0.15s, opacity 0.2s; }
.dp-pick b { grid-area: n; font-family: 'Kalam', cursive; font-weight: 700; font-size: 26px; line-height: 1.1; }
.dp-pick em { grid-area: c; font-style: normal; font-size: 13px; font-weight: 800; color: var(--ink-soft); }
.dp-pick > span { grid-area: s; display: flex; flex-direction: column; align-items: flex-end; font-size: 20px; }
.dp-pick > span small { font-size: 12px; font-weight: 900; color: var(--ink-soft); }
.dp-pick:active { transform: translateY(3px); box-shadow: var(--shadow-sm); }
.dp-pick.d1 { background: #f1fbe9; }
.dp-pick.d2 { background: #fff6dc; }
.dp-pick.d3 { background: #ffe7df; }
.dp-picks.chosen .dp-pick:not(.sel) { opacity: 0.35; }
.dp-picks.chosen .dp-pick.sel { transform: scale(1.03); box-shadow: 0 0 0 4px var(--yellow), var(--shadow); }
.dp-note { font-weight: 800; color: #fffaf0 !important; opacity: 1 !important; }

/* Begriff beim Malen */
.dp-term { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 4px 10px; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 14px; padding: 4px 12px 6px; box-shadow: var(--shadow-sm); text-align: center; }
.dp-term small { font-weight: 900; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.dp-term b { font-family: 'Kalam', cursive; font-weight: 700; font-size: 24px; line-height: 1.1; }
.dp-hcchip { color: var(--ink); text-shadow: none; font-size: 12px; font-weight: 900; background: #fff1d6; border: 2px dashed var(--orange); border-radius: 99px; padding: 1px 8px; }
.dp-info { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 10px; font-weight: 800; font-size: 14px; color: #fffaf0; text-shadow: 0 1px 0 rgba(58, 34, 14, 0.5); }
.dp-info .stars i { color: rgba(255, 250, 240, 0.35); }
.dp-cat { background: var(--paper); color: var(--ink); text-shadow: none; border: 2px solid var(--ink); border-radius: 99px; padding: 0 9px; font-size: 13px; }
.dp-mask { display: flex; justify-content: center; min-height: 0; }
.dp-mask:empty { display: none; }

/* Leinwand am Handy: füllt den freien Platz (4:3) */
.dp-stage { flex: 1 1 auto; min-height: 120px; display: grid; place-items: start center; position: relative; }
.dp-stage.small { flex: 0 1 auto; height: min(34dvh, 240px); min-height: 110px; }
.dp-frame { padding: 5px; background: var(--wood); border: 2px solid var(--ink); border-radius: 8px; box-shadow: 0 4px 0 rgba(58, 34, 14, 0.45); }
.dp-frame .ea-canvas { background: #fff; border-radius: 3px; overflow: hidden; position: relative; }
.dp-stage.paper .dp-frame .ea-canvas { background: #fffdf5; }
.dp-blind { position: absolute; inset: 0; display: grid; place-items: center; font-family: 'Kalam', cursive; font-size: 24px; color: rgba(43, 33, 24, 0.35); pointer-events: none; }
.dp-status { text-align: center; font-weight: 800; font-size: 14px; color: #fffaf0; text-shadow: 0 1px 0 rgba(58, 34, 14, 0.5); min-height: 20px; }
.dp-guess { display: flex; flex-direction: column; gap: 6px; }
.dp-guess.hidden { display: none; }
.dp-fin { align-self: stretch; font-size: 18px; padding: 10px; }

/* Werkzeuge */
.sktools { display: flex; flex-direction: column; gap: 6px; --pen: #1f1d2b; }
.sk-colors { display: grid; grid-template-columns: repeat(7, minmax(0, 38px)); justify-content: space-between; gap: 5px; }
.sk-colors button { aspect-ratio: 1; width: 100%; border-radius: 50%; border: 2px solid var(--ink); background: var(--c); padding: 0; box-shadow: 0 2px 0 rgba(58, 34, 14, 0.4); transition: transform 0.12s; }
.sk-colors button.on { transform: scale(1.08); box-shadow: 0 0 0 2px #fffaf0, 0 0 0 4px var(--ink); }
.sk-row { display: flex; align-items: center; gap: 8px; }
.sk-sizes, .sk-tools { display: flex; gap: 3px; min-width: 0; }
.sk-sizes { flex: 4; }
.sk-tools { flex: 5; }
.sktools button { color: var(--ink); }
.sk-sizes button, .sk-tools button { position: relative; flex: 1 1 0; min-width: 0; height: 38px; border-radius: 10px; border: 2px solid var(--ink); background: var(--paper); display: grid; place-items: center; padding: 0 4px; font-size: 18px; box-shadow: 0 2px 0 rgba(58, 34, 14, 0.4); }
.sk-sizes button i { width: var(--s); height: var(--s); border-radius: 50%; background: var(--pen); border: 1px solid rgba(0, 0, 0, 0.35); }
.sk-sizes button.on, .sk-tools button.on { background: var(--yellow); transform: translateY(-2px); }
.sk-tools button:disabled { opacity: 0.4; }
.sktools kbd { display: none; }

/* Stille Post am Handy */
.dp-steps { display: flex; justify-content: center; gap: 6px; }
.dp-steps i { font-style: normal; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; background: rgba(255, 250, 240, 0.35); border: 2px solid rgba(43, 33, 24, 0.3); }
.dp-steps i.done { opacity: 0.55; }
.dp-steps i.cur { background: var(--yellow); border-color: var(--ink); transform: scale(1.15); }
.dp-write { display: flex; flex-direction: column; gap: 8px; }
.dp-write textarea { resize: none; font-family: 'Kalam', cursive; font-size: 22px; line-height: 1.2; }
.dp-write .btn.white { align-self: center; padding: 6px 16px; font-size: 16px; }
.dpshow { gap: 8px; }
.dp-chain { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: start; }
.dp-ctitle { grid-column: 1 / -1; text-align: center; font-weight: 900; color: #fffaf0; }
.dp-cs { position: relative; visibility: hidden; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 12px; padding: 5px; box-shadow: var(--shadow-sm); min-height: 0; }
.dp-cs.in { visibility: visible; animation: slideUp 0.4s var(--ease-back) both; }
.dp-cs.text { background: #fff7d6; display: grid; place-items: center; }
.dp-cbody { aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; }
.dp-cs p { margin: 0; padding: 2px 4px; text-align: center; font-family: 'Kalam', cursive; font-weight: 700; font-size: 17px; line-height: 1.12; overflow: hidden; }
.dp-art { width: 100%; height: 100%; background: #fff; border-radius: 6px; overflow: hidden; }
.dp-empty { font-family: 'Kalam', cursive; font-size: 16px; color: var(--ink-soft); padding: 6px; text-align: center; }
.dp-cs.hit { box-shadow: 0 0 0 3px var(--green), var(--shadow-sm); }
.dp-hit { position: absolute; left: -6px; top: -8px; background: var(--green); color: #fff; border: 2px solid var(--ink); border-radius: 99px; padding: 0 7px; font-size: 12px; font-weight: 900; }
.dp-like { position: absolute; right: -6px; bottom: -6px; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; font-size: 16px; filter: grayscale(1); opacity: 0.75; transition: transform 0.15s; }
.dp-like.on { filter: none; opacity: 1; background: #ffe2ea; transform: scale(1.15); }

/* Fälscher am Handy */
.dp-role { display: flex; align-items: center; gap: 10px; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 14px; padding: 6px 12px; box-shadow: var(--shadow-sm); }
.dp-role .ic { font-size: 28px; }
.dp-role b { display: block; font-family: 'Kalam', cursive; font-size: 22px; line-height: 1.1; }
.dp-role small { display: block; font-size: 12px; font-weight: 800; color: var(--ink-soft); }
.dp-role.faker { background: #ffe2dc; }
.dp-rolebig { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); animation: roleIn 0.6s var(--ease-back) both; }
@keyframes roleIn { from { opacity: 0; transform: rotateY(90deg) scale(0.8); } to { opacity: 1; transform: none; } }
.dp-rolebig .ic { font-size: 70px; }
.dp-rolebig h2 { font-family: 'Kalam', cursive; font-weight: 700; font-size: 38px; line-height: 1.05; }
.dp-rolebig > b { font-family: 'Kalam', cursive; font-size: 32px; color: var(--orange); }
.dp-rolebig p { margin: 0; font-weight: 700; }
.dp-rolebig.faker { background: #ffe2dc; }
.dp-turn { text-align: center; font-weight: 800; font-size: 15px; padding: 8px 10px; border-radius: 12px; background: rgba(62, 36, 16, 0.45); }
.dp-turn .pen { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink); vertical-align: -2px; margin: 0 2px; }
.dp-turn.mine { background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); animation: jelly 0.6s ease; }
.dp-vote { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dp-v { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 14px; font-weight: 800; font-size: 16px; text-align: left; box-shadow: var(--shadow-sm); }
.dp-v i { width: 16px; height: 16px; border-radius: 50%; background: var(--pc); border: 2px solid var(--ink); flex: none; }
.dp-v span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-vote.chosen .dp-v:not(.sel) { opacity: 0.4; }
.dp-vote.chosen .dp-v.sel { box-shadow: 0 0 0 4px var(--yellow), var(--shadow-sm); }
.dp-guesses { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.dp-guesses span { border: 2px solid var(--red); color: var(--red); border-radius: 99px; padding: 0 10px; font-weight: 800; }
.dp-guesses span.ok { border-color: var(--green); color: var(--green); }

/* Titel-Bluff am Handy */
.dp-titles { display: flex; flex-direction: column; gap: 8px; }
.dp-t { padding: 10px 14px; text-align: left; background: linear-gradient(160deg, #fbf3dc, #efe0b6); color: var(--ink); border: 3px solid #6b4a12; border-radius: 12px; font-family: 'Kalam', cursive; font-weight: 700; font-size: 19px; line-height: 1.15; box-shadow: var(--shadow-sm); }
.dp-titles.chosen .dp-t:not(.sel) { opacity: 0.4; }
.dp-titles.chosen .dp-t.sel { box-shadow: 0 0 0 4px var(--yellow), var(--shadow-sm); }

/* ================================================================ Am PC in der Show (pc-draw.js) */
/* Wer malt: Werkzeuge links neben der Leinwand statt der Künstler-Karte, eigener Begriff im Schild */
.screen.pc-drawer .sk-artist, .screen.pc-drawer .sk-solvedbox h3 { display: none; }
.sk-toolslot:empty { display: none; }
.sk-toolslot .sktools { background: var(--paper); border: 3px solid var(--ink); border-radius: 16px; padding: 0.7rem; box-shadow: var(--shadow); gap: 0.6rem; }
.sk-toolslot .sk-colors { grid-template-columns: repeat(4, 1fr); gap: 0.4rem; }
.sk-toolslot .sk-colors button { max-height: none; }
.sk-toolslot .sk-row { flex-direction: column; align-items: stretch; gap: 0.5rem; }
.sk-toolslot .sk-sizes, .sk-toolslot .sk-tools { justify-content: space-between; flex-wrap: wrap; }
.sk-toolslot .sk-sizes button, .sk-toolslot .sk-tools button { min-width: 2.5rem; height: 2.5rem; font-size: 1.15rem; flex: 1; }
.sk-toolslot kbd { display: block; position: absolute; bottom: -0.55rem; right: -0.3rem; font-size: max(0.55rem, 9px); font-family: var(--font-body); font-weight: 900; background: var(--ink); color: #fff; border-radius: 4px; padding: 0 0.2rem; line-height: 1.3; }
.sk-yours { display: flex; align-items: baseline; gap: 0.7rem; background: #fff1d6; color: var(--ink); border: 3px solid var(--ink); border-radius: 14px; padding: 0.25rem 1.1rem 0.35rem; box-shadow: var(--shadow-sm); transform: rotate(-1deg); }
.sk-yours small { font-weight: 900; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.sk-yours b { font-family: var(--font-art); font-weight: 700; font-size: 2rem; line-height: 1.05; }
.sk-yours.faker { background: #ffe2dc; }
.sk-pick.mine .sk-card { cursor: pointer; background: var(--paper); }
.sk-pick.mine .sk-card:hover { transform: translateY(-0.4rem) rotate(0); }
.sk-pick.mine .sk-card.pc-mine { box-shadow: 0 0 0 0.3rem var(--yellow), var(--shadow); }
.sk-card .pc-key { position: absolute; bottom: -0.7rem; }
/* Eigene Leinwand in der Mitte (Stille Post, Titel-Bluff); die anderen rücken zusammen */
.screen.pc-studio-on .ph-ring { --Rx: min(10rem, 40cqw); --Ry: min(10rem, 36cqh); flex: 0 0 auto; width: 24rem; }
.screen.pc-studio-on .ph-center h2, .screen.pc-studio-on .ph-center p, .screen.pc-studio-on .ph-center .ph-ic { display: none; }
.screen.pc-studio-on .ph-steps i { width: 1.6rem; height: 1.6rem; font-size: 0.75rem; }
.screen.pc-studio-on .ph-seat .avatar { --size: clamp(1.8rem, calc(var(--gap) * 0.6), 2.6rem) !important; }
.screen.pc-studio-on .ph-seat .ph-nm { font-size: 0.7rem; }
.screen.pc-studio-on .gbstudio { gap: 0.5rem; }
/* Wer fertig ist, zeigt am PC die Spielerleiste (✓) – die Staffelreihe macht Platz für die eigene Leinwand */
.screen.pc-studio-on .gb-head, .screen.pc-studio-on .gb-easels { display: none; }
.ph-me, .gb-me { flex: 1; min-width: 0; min-height: 0; display: flex; }
.gb-me { width: 100%; }
.pc-studio { flex: 1; min-width: 0; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, 19rem); grid-template-rows: auto minmax(0, 1fr); gap: 0.6rem 1rem; }
.pc-studio .pcs-tools { min-height: 0; align-self: center; }
.pc-studio .pcs-title { grid-column: 1 / -1; justify-self: center; font-family: var(--font-art); font-weight: 700; font-size: 1.6rem; background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: 14px; padding: 0.15rem 1.2rem 0.25rem; box-shadow: var(--shadow-sm); text-align: center; }
.pc-studio .pcs-title b { color: var(--orange); }
.pc-studio .pcs-stage { min-height: 0; display: grid; place-items: center; }
.pc-studio .pcs-frame { padding: 0.6rem; background: var(--wood); border: 3px solid var(--ink); border-radius: 10px; box-shadow: var(--shadow); }
.pc-studio .pcs-frame .ea-canvas { background: #fff; }
.pc-studio:not(:has(.pcs-tools)) { grid-template-columns: minmax(0, 1fr); }
.pcs-tools .sktools { background: var(--paper); border: 3px solid var(--ink); border-radius: 16px; padding: 0.7rem; box-shadow: var(--shadow); gap: 0.6rem; }
.pcs-tools .sk-colors { grid-template-columns: repeat(7, 1fr); gap: 0.3rem; }
.pcs-tools .sk-colors button { max-height: none; }
.pcs-tools .sk-row { flex-direction: column; align-items: stretch; gap: 0.5rem; }
.pcs-tools .sk-sizes button, .pcs-tools .sk-tools button { min-width: 2.5rem; height: 2.5rem; font-size: 1.15rem; flex: 1; }
.pcs-tools kbd { display: block; position: absolute; bottom: -0.55rem; right: -0.3rem; font-size: 0.55rem; font-family: var(--font-body); font-weight: 900; background: var(--ink); color: #fff; border-radius: 4px; padding: 0 0.2rem; line-height: 1.3; }
/* Herzen per Klick in der Präsentation */
.ph-panel.pc-likeable { cursor: pointer; }
.ph-panel.pc-likeable:hover { box-shadow: 0 0 0 0.25rem var(--pink), var(--shadow); }
.ph-panel.pc-liked::before { content: '❤️'; position: absolute; top: -0.9rem; right: -0.6rem; font-size: 1.6rem; animation: pop 0.35s var(--ease-back) both; z-index: 2; }
/* Fälscher: Verdächtige anklicken */
.fk-voters.pc-open .fk-vt.pc-item { cursor: pointer; opacity: 1; }
.fk-voters.pc-open .fk-vt.pc-item:hover .avatar { transform: scale(1.12); }
.fk-vt.pc-mine .avatar { box-shadow: 0 0 0 0.25rem var(--yellow); border-radius: 50%; }
.fk-vt.pc-blocked { opacity: 0.3; }
/* Titel-Bluff: Schilder anklicken */
.gb-opts.pc-open .gb-opt.pc-item:not(.pc-blocked) { cursor: pointer; }
.gb-opts.pc-open .gb-opt.pc-item:not(.pc-blocked):hover { transform: translateX(0.4rem); }
.gb-opt.pc-mine { box-shadow: 0 0 0 0.3rem var(--yellow), var(--shadow-sm); }
.gb-opt.pc-blocked { opacity: 0.5; }
.gb-opt .pc-key { position: absolute; right: -0.6rem; top: -0.6rem; }
.sktools:not(:has(button)) { display: none; }

/* Am PC (Antwortleiste darunter): Punkte-Erklärung der Stille Post steht in den Regeln */
.screen.pc-has-answer .ph-pts { display: none; }
/* Viele Spieler: „Erraten“-Liste ab 7 Einträgen zweispaltig und dichter, sonst fehlen die Letzten */
.sk-solved:has(> .sk-sv:nth-child(7)) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.25em; align-content: start; }
.sk-solved:has(> .sk-sv:nth-child(7)) .sk-sv { padding: 0.1em 0.35em 0.1em 0.15em; gap: 0.3em; font-size: 0.85em; }
.sk-solved:has(> .sk-sv:nth-child(7)) .sk-sv .avatar { --size: 1.75em !important; }
.sk-solved:has(> .sk-sv:nth-child(7)) .sk-sv :is(small, em) { display: none; }

/* ------------------------------------------------ Rundenintro: Requisit (intro-props.js) */
/* Kunststück!: Staffelei mit gemalter Nummer */
.rp-easel { width: 44em; height: 56em; }
.rp-easel .leg { position: absolute; top: 2em; width: 2.4em; height: 54em; background: var(--wood); border: 0.35em solid var(--ink); border-radius: 1em; }
.rp-easel .leg.l { left: 9em; transform: rotate(8deg); }
.rp-easel .leg.r { right: 9em; transform: rotate(-8deg); }
.rp-easel .leg.b { left: 50%; margin-left: -1.2em; height: 50em; filter: brightness(0.7); }
.rp-easel .tray { position: absolute; left: 3em; right: 3em; top: 37em; height: 2.6em; background: var(--wood); border: 0.35em solid var(--ink); border-radius: 0.6em; }
.rp-easel .cv { position: absolute; left: 3.5em; right: 3.5em; top: 2em; height: 35em; display: grid; place-items: center; overflow: hidden; background: #fffdf7 repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.025) 0 0.3em, transparent 0.3em 0.6em); border: 0.9em solid #8a5a2b; outline: 0.35em solid var(--ink); box-shadow: 0 1.2em 0 rgba(58, 34, 14, 0.5); transform: rotate(-2deg); }
.rp-easel svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.rp-easel path { fill: none; stroke: var(--rc); stroke-width: 16; stroke-linecap: round; opacity: 0.3; stroke-dasharray: 400; animation: rpSwash 0.8s 0.9s ease-out both; }
@keyframes rpSwash { from { stroke-dashoffset: 400; } }
.rp-easel .num { position: relative; font-family: var(--font-art); font-weight: 700; font-size: 20em; line-height: 1; color: var(--rc); transform: rotate(-6deg); text-shadow: 0.03em 0.03em 0 rgba(0, 0, 0, 0.15); animation: popIn 0.5s 1.3s var(--ease-back) both; }
.rp-easel .cap { position: absolute; left: 0; right: 0; bottom: 1.4em; text-align: center; }
.rp-easel .cap span { font-family: var(--font-art); font-size: 3em; color: var(--ink-soft); }
.rp-easel .sp { position: absolute; border-radius: 50% 45% 55% 40%; animation: popIn 0.35s var(--ease-back) both; }
.rp-easel .sp.a { left: 2.4em; top: 3em; width: 5em; height: 4.4em; background: var(--yellow); animation-delay: 1.5s; }
.rp-easel .sp.b { right: 3em; top: 6em; width: 3.4em; height: 3em; background: var(--teal); animation-delay: 1.65s; }
.rp-easel .sp.c { left: 5em; bottom: 6.5em; width: 3em; height: 3.4em; background: var(--pink); animation-delay: 1.8s; }
.rp-easel .rp-ic { right: -4em; top: 30em; transform: rotate(10deg); }

