body[data-theme='pizarra'] {
  color: #fff6fc;
  background:
    radial-gradient(ellipse at 50% 25%, #4e389f 0%, transparent 65%),
    radial-gradient(ellipse at 8% 100%, #446be1, transparent 45%),
    radial-gradient(ellipse at 94% 90%, #6c32a3, transparent 45%),
    linear-gradient(145deg, #182765, #140f42 65%);
  background-attachment: fixed;
}
body[data-theme='pizarra'] :focus-visible { outline-color: #fff0ab; }
body[data-theme='pizarra'] .game-shell { position: relative; isolation: isolate; width: min(100%, 1220px); }
body[data-theme='pizarra'] .game-title {
  position: relative;
  color: #ffbef2;
  font-family: 'Luckiest Guy', Baloo, sans-serif;
  font-weight: 400;
  font-size: clamp(2.3rem, 5.5vw, 4.9rem);
  line-height: 1.15;
  paint-order: stroke fill;
  -webkit-text-stroke: .11em #681779;
  text-shadow: 0 .08em 0 #330a67, 0 0 .23em #f15fe1;
  filter: drop-shadow(0 2px 0 #f775e0) drop-shadow(0 -1px 0 #f775e0);
}
body[data-theme='pizarra'] .game-instruction, body[data-theme='pizarra'] .game-status, .board-help {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
}
.neon-studio { display: grid; grid-template-columns: 112px minmax(0, 1fr) 112px; gap: clamp(10px, 2.2vw, 24px); align-items: center; margin-top: 14px; }
.neon-scene { position: relative; min-width: 0; }
.neon-board {
  position: relative;
  overflow: hidden;
  border: 3px solid #b5faff;
  border-radius: clamp(18px, 3.2vw, 34px);
  background: radial-gradient(ellipse at 53% 43%, #1d1554, #0b082a 78%);
  box-shadow: 0 0 0 5px #159dda, 0 0 0 9px #0d255c, 0 0 32px #1bd5ffac, 0 18px 24px #100930a8;
}
.neon-board canvas {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 3 / 2;
  cursor: crosshair;
  touch-action: none;
}
.neon-board .neon-fx { position: absolute; z-index: 2; inset: 0; pointer-events: none; }
.neon-board:focus-within { outline: 3px solid #fff0ab; outline-offset: 8px; }
.neon-board canvas:focus-visible { outline: none; }
.neon-tools { display: grid; justify-items: stretch; gap: 9px; padding: 10px; border: 2px solid #a176e5; border-radius: 24px; background: #221c64; box-shadow: inset 0 2px 0 #ebe1ff28, 0 5px 0 #141044; }
.neon-tools .creative-tool {
  color: #fff4ff;
  min-height: 52px;
  min-width: 48px;
  padding: 2px;
  border: 2px solid #9065ca;
  border-radius: 17px;
  background: linear-gradient(#4b368e, #2c246b 70%);
  box-shadow: inset 0 3px 0 #d799ec40, 0 3px 0 #171344;
}
.neon-tools .creative-tool[aria-pressed='true'] { border-color: #fff19a; background: linear-gradient(#6042ac, #453184); box-shadow: inset 0 3px 0 #e1b6ff66, 0 0 10px #fff4a75e; }
.neon-tools .creative-tool svg { display: block; width: 44px; height: 40px; overflow: visible; }
.neon-tools .neon-wand { margin-bottom: 3px; border-color: #f5c568; background: linear-gradient(#8c3fd0, #5b2596); }
.neon-tools .neon-erase { background: linear-gradient(#ffacd5, #da4288 82%); color: #420e3c; }
.neon-actions { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.neon-goals { margin: 12px auto 0; max-width: 52ch; text-align: center; color: #f2deff; line-height: 1.35; }
.neon-actions .creative-tool { display: flex; align-items: center; gap: 7px; min-height: 48px; padding: 5px 14px; border-color: #8353bb; color: #492455; font-size: 1rem; }
.neon-actions .creative-tool[aria-disabled='true'] { opacity: .65; }
.neon-actions svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.7; stroke-linecap: round; stroke-linejoin: round; }
.neon-sky { position: absolute; z-index: -1; inset: 100px 0 0; overflow: hidden; pointer-events: none; }
.neon-sky span { position: absolute; left: var(--x); top: var(--y); color: var(--color); font-size: var(--size); text-shadow: 0 0 12px currentColor; }
.board-invite { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; pointer-events: none; }
.board-invite svg { width: min(68vw, 410px); height: auto; filter: drop-shadow(0 0 14px #be6dff75); }
.board-invite p { margin: 0; color: #ebd6ff; font-weight: 700; font-size: clamp(1.1rem, 2.5vw, 1.5rem); }
.board-invite .hint-hand { display: inline-block; color: #fff4c4; font-size: 1.5em; line-height: .9; animation: show-pencil 2.5s ease-in-out infinite; }
.neon-cursor { position: absolute; z-index: 3; width: 24px; height: 24px; border: 2px dashed #fff; border-radius: 50%; box-shadow: 0 0 0 2px #150a42, 0 0 8px #70eaff; transform: translate(-50%, -50%); pointer-events: none; }
@keyframes show-pencil { 50% { transform: translate(9px, -4px) rotate(-12deg); } }
@media (min-width: 961px) {
  body[data-theme='pizarra'] .game-toolbar { position: absolute; inset: 0 0 auto; }
  body[data-theme='pizarra'] .game-title { margin-top: 18px; padding-inline: 160px; }
}
@media (max-width: 760px) {
  .neon-studio { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 10px; }
  .neon-scene { grid-row: 1; margin: 0 4px 2px; }
  .neon-tools { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; width: min(100%, 460px); justify-self: center; padding: 5px; border-radius: 16px; }
  .neon-tools--stamps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .neon-tools .creative-tool { padding: 0; min-width: 0; min-height: 48px; border-radius: 12px; }
  .neon-tools .creative-tool svg { width: min(100%, 36px); height: 34px; }
  .neon-tools .neon-wand { margin: 0; }
  .neon-actions { margin-top: 12px; }
}
@media (max-width: 355px) {
  .neon-tools { gap: 4px; padding-inline: 4px; }
  .neon-tools:not(.neon-tools--stamps) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-height: 500px) and (min-width: 761px) {
  .neon-studio { align-items: start; margin: 12px auto 0; max-width: 810px; }
  .neon-board canvas { width: 100%; }
}
