/* Mini-jeux de la 2e vague : Wobble Tower, Draw & Guess, Save the Potato, Laser Dodge.
   Volontairement hors de la direction YourName : chaque jeu a son univers coloré (variables --fun-*). */
@font-face { font-family: 'Wobble'; src: url('../fonts/wobble.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Marker'; src: url('../fonts/marker.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Neon'; src: url('../fonts/neon.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Potato'; src: url('../fonts/potato.woff2') format('woff2'); font-display: swap; }

/* ---------- Commun ---------- */
.ag.fun { background: var(--fun-bg); color: var(--fun-ink); grid-template-columns: minmax(0, 1fr); }
.ag.fun::before { display: none; }
.ag.fun .ag-title { font-family: var(--fun-font); color: var(--fun-title, #fff); text-shadow: 3px 3px 0 var(--fun-shadow, var(--fun-ink)); rotate: -2deg; font-size: clamp(1.15rem, 5.5vw, 1.7rem); letter-spacing: .02em; }
.ag.fun .ag-info { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ag.fun .ag-info { color: var(--fun-ink); font-family: var(--fun-font); font-weight: 400; font-size: .95rem; }
.ag.fun .mg-quit { background: var(--fun-btn); color: var(--fun-btn-ink, var(--fun-ink)); border: 3px solid var(--fun-line); box-shadow: 3px 3px 0 var(--fun-line); }
.ag.fun .ag-body { padding: 0; overflow: hidden; }

.fun-dialog-wrap { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; padding: 16px; background: #0006; animation: fadeIn .2s; }
.fun-dialog-wrap.out { animation: fadeOut .2s both; }
.fun-dialog { width: min(420px, 100%); padding: 22px 20px 18px; border-radius: 22px; background: var(--fun-card); color: var(--fun-ink); border: 4px solid var(--fun-line);
  box-shadow: 6px 7px 0 var(--fun-line); text-align: center; animation: funPop .45s cubic-bezier(.3, 1.6, .5, 1); }
.fun-title { font-family: var(--fun-font); font-weight: 400; font-size: 2rem; line-height: 1.05; color: var(--fun-accent); text-shadow: 2px 2px 0 var(--fun-line); margin-bottom: 6px; }
.fun-sub { font-weight: 700; font-size: .92rem; opacity: .85; margin: 6px 0; }
.fun-big { font-family: var(--fun-font); font-size: 4.2rem; line-height: 1; margin: 6px 0; color: var(--fun-ink); }
.fun-big small { font-size: 1.3rem; }
.fun-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.fun-btn { font-family: var(--fun-font); font-size: 1.1rem; padding: 10px 18px; border-radius: 14px; border: 3px solid var(--fun-line); background: var(--fun-card); color: var(--fun-ink);
  box-shadow: 0 5px 0 var(--fun-line); cursor: pointer; transition: transform .12s, box-shadow .12s; }
.fun-btn.is-main { background: var(--fun-btn); color: var(--fun-btn-ink, var(--fun-ink)); }
.fun-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 7px 0 var(--fun-line); }
.fun-btn:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 var(--fun-line); }
.fun-btn:disabled { opacity: .45; cursor: default; }
.fun-shout { position: absolute; left: 50%; top: 42%; z-index: 8; pointer-events: none; transform: translate(-50%, -50%); font-family: var(--fun-font); font-size: clamp(2.4rem, 11vw, 5rem);
  color: var(--fun-title, #fff); -webkit-text-stroke: 3px var(--fun-line); paint-order: stroke fill; text-shadow: 4px 5px 0 var(--fun-line); white-space: nowrap; animation: funShout 1.3s both; }
.fun-shout.is-count { font-size: clamp(4rem, 20vw, 8rem); animation-duration: .8s; }
.fun-shout.is-bad { color: var(--fun-bad, #ff4f6d); }
.fun-shout.is-good { color: var(--fun-good, #7dff6b); }
.fun-shout.is-info { font-size: clamp(1.1rem, 5vw, 1.8rem); top: 30%; -webkit-text-stroke: 2px var(--fun-line); text-shadow: 2px 3px 0 var(--fun-line); }
@keyframes funShout { 0% { transform: translate(-50%, -50%) scale(.2) rotate(-12deg); opacity: 0; } 18% { transform: translate(-50%, -50%) scale(1.15) rotate(3deg); opacity: 1; } 30% { transform: translate(-50%, -50%) scale(1) rotate(-2deg); } 80% { opacity: 1; } 100% { transform: translate(-50%, -60%) scale(1); opacity: 0; } }
@keyframes funPop { from { transform: scale(.6) rotate(-4deg); opacity: 0; } to { transform: none; opacity: 1; } }
.ag-gamepick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0; }

/* ---------- Wobble Tower : ciel bonbon et jouets ---------- */
.ag-tower { --fun-font: 'Wobble', 'Display', sans-serif; --fun-bg: linear-gradient(180deg, #5ee7df, #b8f0ff 50%, #ffb6e1); --fun-ink: #2b1d52; --fun-line: #2b1d52;
  --fun-accent: #ff6fa8; --fun-card: #fff; --fun-btn: #ffd84a; --fun-title: #ffd84a; }
.tw-wrap { position: relative; height: 100%; }
.tw-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: pointer; }
.tw-score { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); display: grid; justify-items: center; pointer-events: none; font-family: var(--fun-font); line-height: .9; }
.tw-score b { font-size: 4.2rem; color: #fff; -webkit-text-stroke: 4px var(--fun-line); paint-order: stroke fill; text-shadow: 4px 5px 0 var(--fun-line); }
.tw-score small { font-size: 1rem; color: var(--fun-line); }
.tw-score.bump b { animation: twBump .4s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes twBump { from { transform: scale(1.5) rotate(-6deg); } }
.tw-best { position: absolute; top: 10px; right: 12px; padding: 4px 12px; border-radius: 999px; background: #fff; border: 3px solid var(--fun-line); box-shadow: 2px 3px 0 var(--fun-line); font-family: var(--fun-font); font-size: .95rem; pointer-events: none; }
.tw-best b { color: var(--fun-accent); font-weight: 400; }
.tw-hint { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); width: max-content; max-width: 90%; text-align: center; padding: 8px 16px; border-radius: 999px; background: #fff; border: 3px solid var(--fun-line);
  font-family: var(--fun-font); font-size: 1rem; pointer-events: none; animation: twFloat 1.4s ease-in-out infinite; }
@keyframes twFloat { 50% { transform: translate(-50%, -6px); } }

/* ---------- Laser Dodge : néon synthwave ---------- */
.ag-laser { --fun-font: 'Neon', sans-serif; --fun-bg: #12062b; --fun-ink: #f4ecff; --fun-line: #ff2bd6; --fun-accent: #22e6ff; --fun-card: #1a0638; --fun-btn: #22e6ff; --fun-btn-ink: #12062b;
  --fun-title: #ff2bd6; --fun-shadow: #22e6ff88; --fun-bad: #ff2bd6; --fun-good: #22e6ff; }
.ag-laser .ag-title { font-size: 1.3rem; text-shadow: 0 0 12px #ff2bd6, 2px 2px 0 #22e6ff88; }
.ag-laser .mg-quit { box-shadow: 0 0 12px #22e6ff; border-color: #22e6ff; }
.ag-laser .fun-dialog { box-shadow: 0 0 0 2px #22e6ff, 0 0 30px #ff2bd688; border-width: 3px; }
.ag-laser .fun-title { font-size: 1.5rem; text-shadow: 0 0 14px #22e6ff; }
.ag-laser .fun-btn { font-size: .9rem; box-shadow: 0 0 12px #ff2bd666; }
.ag-laser .fun-btn:hover:not(:disabled) { box-shadow: 0 0 18px #22e6ff; }
.ag-laser .fun-btn:active:not(:disabled) { box-shadow: 0 0 6px #22e6ff; }
.ag-laser .fun-shout { -webkit-text-stroke: 0; text-shadow: 0 0 18px currentColor, 0 0 40px currentColor; font-size: clamp(2rem, 9vw, 4rem); }
.ag-laser .fun-shout.is-info { font-size: clamp(.9rem, 4vw, 1.3rem); color: #fff; }
.lz-wrap { position: relative; height: 100%; }
.lz-canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
@media (pointer: fine) { .lz-canvas { cursor: none; } }
.lz-hud { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); display: grid; justify-items: center; pointer-events: none; font-family: 'Neon', sans-serif; }
.lz-hud b { font-size: 2.2rem; color: #22e6ff; text-shadow: 0 0 14px #22e6ff, 0 0 30px #22e6ff88; }
.lz-hud small { font-size: .8rem; color: #ff2bd6; text-shadow: 0 0 8px #ff2bd6; letter-spacing: .1em; }
.lz-panel { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 16px; background: #12062bcc; }
.lz-roster { list-style: none; padding: 0; display: grid; gap: 8px; margin: 12px 0 4px; text-align: left; }
.lz-roster li { display: grid; grid-template-columns: 22px auto 1fr auto; gap: 10px; align-items: center; padding: 6px 10px; border-radius: 12px; border: 2px solid var(--c); box-shadow: 0 0 10px color-mix(in srgb, var(--c) 50%, transparent); }
.lz-roster .name { font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lz-roster b { font-family: 'Neon', sans-serif; color: var(--c); }
.lz-roster small { opacity: .7; }
.lz-h svg { width: 22px; height: 20px; filter: drop-shadow(0 0 4px var(--c)); }

/* ---------- Save the Potato : cuisine de dessin animé ---------- */
.ag-potato { --fun-font: 'Potato', 'Display', sans-serif; --fun-bg: radial-gradient(circle at 50% 30%, #ffb347, #ff7b1f 70%); --fun-ink: #3a1a08; --fun-line: #3a1a08;
  --fun-accent: #ff7b1f; --fun-card: #fff4dc; --fun-btn: #8fd14f; --fun-title: #fff4dc; --fun-bad: #ff4f4f; --fun-good: #8fd14f; }
.ag-potato .ag-title { color: #8fd14f; }
.pt-wrap { height: 100%; display: grid; place-items: center; padding: 6px 8px 12px; }
.pt-stage { position: relative; container-type: size; overflow: hidden; border-radius: 22px; border: 5px solid var(--fun-line); box-shadow: 6px 8px 0 #3a1a0866;
  background: linear-gradient(#0000 62%, #c9e98f 62%, #a9d86a), repeating-conic-gradient(#fff4dc 0 25%, #ffe1b0 0 50%) 0 0 / 12cqw 12cqw; touch-action: none; user-select: none; }
.pt-stage::after { content: ''; position: absolute; left: 0; right: 0; top: 62%; height: 1.4cqw; background: #3a1a08; opacity: .8; }
.pt-top { position: absolute; z-index: 4; left: 3cqw; right: 3cqw; top: 2.4cqw; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.pt-lives { display: flex; gap: 1cqw; }
.pt-lives span { width: 11cqw; transition: transform .3s; }
.pt-lives .is-lost { filter: grayscale(1); opacity: .45; transform: rotate(-20deg) scale(.85); }
.pt-score { display: grid; justify-items: end; font-family: var(--fun-font); line-height: .9; }
.pt-score b { font-size: 11cqw; color: #fff4dc; -webkit-text-stroke: 1cqw var(--fun-line); paint-order: stroke fill; }
.pt-score small { font-size: 3.4cqw; }
.pt-timer { position: absolute; z-index: 4; left: 3cqw; right: 3cqw; top: 16cqw; height: 3cqw; border-radius: 99px; background: #3a1a0833; overflow: hidden; border: .7cqw solid var(--fun-line); }
.pt-timer i { position: absolute; inset: 0; background: #8fd14f; transform-origin: left; }
.pt-timer.is-low i { background: #ff4f4f; animation: ptBlink .3s infinite alternate; }
@keyframes ptBlink { to { filter: brightness(1.4); } }
.pt-scene { position: absolute; inset: 0; z-index: 2; }
.pt-sp { position: absolute; transform: translate(-50%, -50%); pointer-events: none; }
.pt-sp > svg, .pt-sp > span > svg { display: block; width: 100%; height: auto; overflow: visible; }
.pt-target { z-index: 2; filter: drop-shadow(0 1.2cqw 0 #3a1a0844); }
.pt-foe { z-index: 3; animation: ptWiggle .25s ease-in-out infinite alternate; }
.pt-foe svg { transform: scaleX(var(--flip, 1)); }
.pt-foe.is-bonked { animation: ptBonk .55s forwards; }
@keyframes ptWiggle { from { rotate: -8deg; } to { rotate: 8deg; } }
@keyframes ptBonk { to { transform: translate(-50%, -260%) rotate(540deg) scale(.4); opacity: 0; } }
.pt-fork { z-index: 3; }
.pt-plate { z-index: 1; animation: ptGlow 1s ease-in-out infinite alternate; }
@keyframes ptGlow { to { filter: drop-shadow(0 0 2cqw #fff); } }
.pt-target.is-held { transform: translate(-50%, -50%) scale(1.15); z-index: 4; }
.pt-masher { z-index: 3; }
.pt-masher.is-pushed svg { animation: ptPush .15s; }
@keyframes ptPush { 50% { transform: translateY(-4%) scaleY(.94); } }
.pt-sprout { z-index: 3; transform-origin: bottom; animation: ptGrow .35s cubic-bezier(.3, 1.8, .5, 1) both; }
.pt-sprout.is-plucked { animation: ptPluck .4s forwards; }
@keyframes ptGrow { from { transform: translate(-50%, -50%) scale(0); } }
@keyframes ptPluck { to { transform: translate(-50%, -300%) rotate(80deg); opacity: 0; } }
.pt-bowl { z-index: 3; transition: left .3s ease-in-out, top .25s ease-out; }
.pt-bowl.is-front { z-index: 4; }
.pt-target[style*="opacity"] { transition: opacity .2s; }
.pt-sun { animation: ptSpin 6s linear infinite; }
@keyframes ptSpin { to { rotate: 360deg; } }
.pt-parasol { z-index: 3; }
.pt-heat { height: 2.4cqw; border-radius: 99px; background: #3a1a0833; border: .5cqw solid var(--fun-line); overflow: hidden; }
.pt-heat i { display: block; height: 100%; width: calc(var(--h, 0) * 100%); background: linear-gradient(90deg, #ffd84a, #ff4f4f); }
.pt-spin svg { animation: ptSpin .8s linear infinite; }
.pt-cushion.is-squash svg { animation: ptSquash .35s; }
@keyframes ptSquash { 50% { transform: scaleY(.6) scaleX(1.15); } }
.pt-cat { z-index: 1; animation: ptStare 2s ease-in-out infinite; }
@keyframes ptStare { 50% { transform: translate(-50%, -50%) scale(1.04); } }
.pt-tremble svg { animation: ptTremble .08s infinite alternate; }
@keyframes ptTremble { to { transform: translateX(1.5%); } }
.pt-bait { z-index: 5; text-align: center; animation: ptGrow .3s cubic-bezier(.3, 1.8, .5, 1); }
.pt-bait span { display: inline-block; white-space: nowrap; padding: 2cqw 3cqw; border-radius: 3cqw; background: #ff4f8a; color: #fff; font-family: var(--fun-font); font-size: 4.2cqw; border: .8cqw solid var(--fun-line); box-shadow: 0 1.2cqw 0 var(--fun-line); }
.pt-pow { z-index: 6; aspect-ratio: 1; }
.pt-pow i { position: absolute; left: 50%; top: 50%; width: 18%; height: 18%; border-radius: 50%; background: #ffd84a; border: .5cqw solid var(--fun-line); animation: ptPow .5s forwards; }
.pt-pow i:nth-child(1) { --dx: -150%; --dy: -150%; } .pt-pow i:nth-child(2) { --dx: 150%; --dy: -150%; } .pt-pow i:nth-child(3) { --dx: 200%; --dy: 40%; }
.pt-pow i:nth-child(4) { --dx: -200%; --dy: 40%; } .pt-pow i:nth-child(5) { --dx: 0%; --dy: -230%; } .pt-pow i:nth-child(6) { --dx: 0%; --dy: 200%; }
@keyframes ptPow { to { transform: translate(var(--dx), var(--dy)) scale(.3); opacity: 0; } }
.pt-card { position: absolute; inset: 0; z-index: 7; display: grid; place-content: center; justify-items: center; gap: 2cqw; text-align: center; padding: 6cqw; animation: ptCard .35s cubic-bezier(.3, 1.6, .5, 1); }
.pt-card b { font-family: var(--fun-font); font-size: 15cqw; line-height: 1; color: #fff4dc; -webkit-text-stroke: 1.4cqw var(--fun-line); paint-order: stroke fill; text-shadow: 1.2cqw 1.6cqw 0 var(--fun-line); rotate: -4deg; }
.pt-card small { font-family: var(--fun-font); font-size: 5cqw; color: var(--fun-line); background: #fff4dc; padding: 2cqw 4cqw; border-radius: 4cqw; border: .8cqw solid var(--fun-line); }
.pt-card svg { width: 36cqw; }
.pt-card.is-intro { background: #ff7b1fe6; }
.pt-card.is-intro b { color: #8fd14f; }
.pt-card.is-ok { background: #8fd14fcc; }
.pt-card.is-bad { background: #ff4f4fcc; }
.pt-card.is-speed { background: #3a1a08cc; }
.pt-card.is-speed b { color: #ffd84a; animation: ptShake .1s infinite alternate; }
@keyframes ptShake { to { transform: translateX(2cqw); } }
@keyframes ptCard { from { transform: scale(1.4); opacity: 0; } }
.pt-potato.is-scared { animation: ptTremble .1s infinite alternate; }

/* ---------- Draw & Guess : cahier jaune et feutres ---------- */
.ag-draw { --fun-font: 'Marker', 'Hand', sans-serif; --fun-bg: repeating-linear-gradient(#0000 0 31px, #1e90ff33 31px 33px), linear-gradient(90deg, #0000 54px, #ff3b5c55 54px 57px, #0000 57px), #ffd60a;
  --fun-ink: #1d1d2b; --fun-line: #1d1d2b; --fun-accent: #ff3b5c; --fun-card: #fffbe6; --fun-btn: #ff3b5c; --fun-btn-ink: #fff; --fun-title: #fff; }
.ag-draw .ag-title { color: #ff3b5c; text-shadow: 2px 2px 0 #fff; }
.ag.fun.ag-draw .ag-body { overflow: hidden; padding: 4px 12px 10px; }
.ag-draw .fun-dialog { rotate: -1deg; }
.dg-wait { text-align: center; font-family: var(--fun-font); font-size: 1.3rem; margin-top: 30vh; }
.dg-lobby-wrap { height: 100%; overflow-y: auto; display: grid; place-items: center; padding: 10px 0; }
.dg-rank { list-style: none; padding: 0; display: grid; gap: 8px; margin: 12px 0 4px; text-align: left; }
.dg-rank li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 6px 10px; border-radius: 12px; background: #fff; border: 3px solid var(--fun-line); }
.dg-rank.is-over li { grid-template-columns: 28px auto 1fr auto; }
.dg-rank.is-over li:first-child { background: #ffd60a; transform: scale(1.04) rotate(-1deg); }
.dg-rank .name { font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dg-rank b { font-family: var(--fun-font); font-weight: 400; color: var(--fun-accent); }
.dg-pos { font-family: var(--fun-font); font-size: 1.4rem; }
.dg-game { height: 100%; display: grid; gap: 8px; max-width: 1400px; margin: 0 auto; grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto auto; grid-template-areas: 'head' 'paper' 'tools' 'side'; }
@media (orientation: landscape) and (min-width: 640px) {
  /* Paysage (Discord sur ordinateur) : outils et discussion à droite, le papier prend toute la hauteur */
  .dg-game { grid-template-columns: minmax(0, 1fr) clamp(220px, 28vw, 320px); grid-template-rows: auto auto minmax(0, 1fr); grid-template-areas: 'head head' 'paper tools' 'paper side'; }
  .dg-tools { justify-content: flex-start; }
  .dg-side { overflow-y: auto; align-content: start; }
  .dg-guess { flex-direction: column; }
}
/* Écrans peu hauts : en-tête et outils plus compacts */
@media (max-height: 480px) {
  .ag.fun.ag-draw .ag-hud { padding: 6px 12px 2px; }
  .dg-wordbox { padding: 3px 10px; }
  .dg-word, .dg-mask i { font-size: 1rem; } .dg-word b { font-size: 1.15rem; } .dg-mask i { height: 22px; width: 16px; }
  .dg-clock { width: 42px; height: 42px; } .dg-clock b { font-size: 1.1rem; }
  .dg-ink { width: 22px; height: 22px; } .dg-size { width: 28px; height: 24px; }
  .dg-tools { gap: 5px; } .dg-tools .fun-btn { padding: 4px 9px; font-size: .8rem; }
  .dg-guess input { padding: 6px 10px; font-size: 1rem; }
}
.dg-head { grid-area: head; display: flex; align-items: center; gap: 12px; }
.dg-wordbox { flex: 1; min-width: 0; padding: 8px 14px; border-radius: 14px; background: var(--fun-card); border: 3px solid var(--fun-line); box-shadow: 3px 4px 0 var(--fun-line); rotate: -.6deg; }
.dg-word { font-family: var(--fun-font); font-size: 1.3rem; }
.dg-word b { color: var(--fun-accent); font-weight: 400; font-size: 1.6rem; }
.dg-word.is-found b { color: #2ecc71; }
.dg-mask { display: inline-flex; flex-wrap: wrap; gap: 5px; vertical-align: middle; }
.dg-mask i { display: inline-grid; place-items: end center; width: 20px; height: 30px; border-bottom: 4px solid var(--fun-line); font-family: var(--fun-font); font-style: normal; font-size: 1.3rem; text-transform: uppercase; }
.dg-mask i.sp { width: 10px; border: 0; }
.dg-len { margin-left: 10px; font-weight: 900; opacity: .6; }
.dg-clock { --p: 1; flex: none; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; border: 4px solid var(--fun-line);
  background: radial-gradient(var(--fun-card) 58%, #0000 60%), conic-gradient(#2ecc71 calc(var(--p) * 360deg), #1d1d2b22 0); }
.dg-clock b { font-family: var(--fun-font); font-size: 1.5rem; font-weight: 400; }
.dg-clock.is-low { animation: ptShake .15s infinite alternate; background: radial-gradient(var(--fun-card) 58%, #0000 60%), conic-gradient(#ff3b5c calc(var(--p) * 360deg), #1d1d2b22 0); }
.dg-stage { grid-area: paper; min-height: 0; min-width: 0; overflow: hidden; display: grid; place-items: center; padding-top: 10px; }
.dg-paper { position: relative; width: 300px; height: 225px; background: #fff; border: 4px solid var(--fun-line); border-radius: 6px; box-shadow: 6px 8px 0 #1d1d2b44; rotate: .4deg; }
.dg-paper canvas { display: block; width: 100%; height: 100%; touch-action: none; border-radius: 3px; }
.dg-game.is-drawer canvas { cursor: crosshair; }
.dg-tape { position: absolute; width: 90px; height: 26px; background: #9ee7ffaa; border: 1px solid #1d1d2b22; pointer-events: none; }
.dg-tape.a { top: -12px; left: 18px; rotate: -8deg; } .dg-tape.b { top: -12px; right: 18px; rotate: 6deg; }
.dg-who { position: absolute; left: 10px; bottom: 8px; font-family: var(--fun-font); font-size: 1rem; color: #1d1d2b88; pointer-events: none; }
.dg-tools { grid-area: tools; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.dg-tools .fun-btn { font-size: .95rem; padding: 7px 12px; }
.dg-inks, .dg-sizes { display: flex; gap: 6px; padding: 6px 8px; border-radius: 14px; background: var(--fun-card); border: 3px solid var(--fun-line); }
.dg-ink { width: 30px; height: 30px; border-radius: 50%; background: var(--c); border: 3px solid var(--fun-line); cursor: pointer; transition: transform .15s; }
.dg-ink.is-eraser { background: repeating-linear-gradient(45deg, #fff 0 5px, #ffb3c4 5px 10px); }
.dg-ink.is-on, .dg-size.is-on { transform: scale(1.22); box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--fun-line); }
.dg-size { width: 34px; height: 30px; display: grid; place-items: center; border-radius: 10px; border: 2px solid var(--fun-line); background: #fff; cursor: pointer; }
.dg-size i { display: block; border-radius: 50%; background: var(--fun-line); }
.dg-guess { grid-area: tools; display: flex; gap: 8px; }
.dg-guess input { flex: 1; min-width: 0; font-family: var(--fun-font); font-size: 1.2rem; padding: 10px 14px; border-radius: 14px; border: 3px solid var(--fun-line); background: #fff; color: var(--fun-ink); }
.dg-guess input:focus { outline: 3px solid var(--fun-accent); }
.dg-side { grid-area: side; display: grid; gap: 8px; min-height: 0; grid-template-rows: auto minmax(0, 1fr); }
.dg-players { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
@media (orientation: landscape) and (min-width: 640px) { .dg-players { display: grid; align-content: start; max-height: 40vh; overflow-y: auto; } }
.dg-players li { display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--fun-card); border: 2.5px solid var(--fun-line); font-size: .85rem; }
.dg-players li.is-me { background: #fff; }
.dg-players li.is-drawer { background: #9ee7ff; }
.dg-players li.is-found { background: #b8f5c9; }
.dg-players .name { font-weight: 900; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dg-players b { font-family: var(--fun-font); font-weight: 400; color: var(--fun-accent); }
.dg-tag { font-style: normal; font-size: .7rem; font-weight: 900; padding: 1px 6px; border-radius: 6px; background: var(--fun-line); color: #fff; }
.dg-tag.is-ok { background: #2ecc71; }
.dg-chat { list-style: none; padding: 8px 10px; margin: 0; max-height: 96px; min-height: 0; overflow-y: auto; border-radius: 14px; background: #fffbe6; border: 3px solid var(--fun-line); display: grid; gap: 3px; align-content: start; font-size: .9rem; }
@media (orientation: landscape) and (min-width: 640px) { .dg-chat { max-height: none; } }
.dg-chat li { overflow-wrap: anywhere; }
.dg-chat .is-ok { color: #1f9d55; font-weight: 900; }
.dg-chat .is-close { color: #e67e00; font-weight: 900; }
.dg-chat .is-sys { color: #1e90ff; font-family: var(--fun-font); }
