/* Opositown · estilos. Paleta cálida de madera, pergamino y verde del campus. */
:root {
  --wood-900: #2a1d14;
  --wood-800: #3b2a1e;
  --wood-700: #553b28;
  --wood-500: #8a6240;
  --gold: #f2c14e;
  --parch: #f7eedb;
  --parch-2: #efe1c2;
  --ink: #2b2118;
  --ink-soft: #5e4d3d;
  --green: #3f7d3a;
  --green-soft: #d9ecd2;
  --red: #a83a2c;
  --red-soft: #f6d9d3;
  --blue: #2f5e8c;
  --amber-soft: #fbe8b8;
  --violet-soft: #e6dcf3;
  --radius: 10px;
  --hud-h: 64px;
  --fs: 17px;
  --tap: 48px;
  color-scheme: light;
}
html[data-texto="grande"] { --fs: 19px; }
html[data-texto="muy-grande"] { --fs: 22px; }

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font: var(--fs)/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #2d4a26;
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--blue); }
.skip { position: absolute; left: -999px; top: 0; z-index: 1000; background: #fff; padding: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- HUD ---------- */
.hud {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  min-height: var(--hud-h);
  padding: 6px max(10px, env(safe-area-inset-right)) 6px max(10px, env(safe-area-inset-left));
  padding-top: max(6px, env(safe-area-inset-top));
  display: flex; align-items: center; gap: 10px;
  background: linear-gradient(#4a3424, var(--wood-800));
  border-bottom: 3px solid var(--wood-900);
  box-shadow: 0 2px 0 #6b4a31 inset, 0 3px 8px rgba(0,0,0,.35);
  color: #fbeed3;
}
.hud-brand { display: flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; flex: none; }
.portrait {
  width: 46px; height: 46px; object-fit: cover; object-position: center 20%;
  image-rendering: pixelated; background: #4f8fc0;
  border: 3px solid #c99a5b; border-radius: 8px; box-shadow: 0 0 0 2px var(--wood-900);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { letter-spacing: .06em; font-size: .95em; }
.brand-text small { opacity: .8; font-size: .72em; }
.chips { display: flex; gap: 6px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: flex; align-items: center; gap: 6px; flex: none;
  padding: 4px 10px; border-radius: 9px;
  background: #2b1e15; border: 2px solid #6b4a31;
  font-size: .78em; position: relative;
}
.chip-icon { font-size: 1.15em; }
.chip-text { display: flex; flex-direction: column; line-height: 1.15; white-space: nowrap; }
.chip-label { opacity: .8; }
.chip-value { font-weight: 700; }
.chip .bar { position: absolute; left: 8px; right: 8px; bottom: 2px; height: 3px; background: #4b382a; border-radius: 2px; }
.chip .bar span { display: block; height: 100%; background: #5fb0f0; border-radius: 2px; }
.chip-link { text-decoration: none; color: inherit; }
.hud-actions { display: flex; gap: 4px; flex: none; }
.hud .btn.icon { background: #6b4a31; border-color: var(--wood-900); color: #fff; text-decoration: none; }

/* ---------- Mapa ---------- */
.map { position: fixed; inset: 0; top: var(--hud-h); }
.world { position: absolute; inset: 0; overflow: hidden; touch-action: none; background: radial-gradient(ellipse at center, #2f5a26, #1f3a19); cursor: grab; user-select: none; -webkit-user-select: none; }
.world:active { cursor: grabbing; }
.stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.campus { display: block; width: 100%; height: 100%; pointer-events: none; -webkit-user-drag: none; }
.hotspot {
  position: absolute; background: transparent; border: 0; padding: 0; cursor: pointer;
  border-radius: 14px; z-index: 6000; /* por encima de las capas de luz y tiempo */
}
.hotspot:hover, .hotspot:focus-visible { background: rgba(255, 240, 180, .14); box-shadow: 0 0 0 3px rgba(255, 220, 120, .8) inset; }
.hotspot-label {
  position: absolute; left: 50%; top: -6px; transform: translate(-50%, -100%);
  white-space: nowrap; font-size: 15px; background: rgba(43, 30, 21, .9); color: #fff;
  padding: 3px 8px; border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity .15s;
}
.hotspot:hover .hotspot-label, .hotspot:focus-visible .hotspot-label { opacity: 1; }
.player { position: absolute; pointer-events: none; }
.player-sprite { position: absolute; inset: 0; background-repeat: no-repeat; }
.player-shadow { position: absolute; left: 15%; right: 15%; bottom: 0; height: 9px; border-radius: 50%; background: rgba(0,0,0,.28); }
.debug-layer { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9999; }
.map-controls {
  position: absolute; right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 6px; z-index: 10;
}
.map-controls .btn { background: rgba(59, 42, 30, .92); color: #fff; border-color: var(--wood-900); font-size: 22px; }

/* ---------- Panel ---------- */
.panel {
  position: fixed; inset: 0; top: var(--hud-h); z-index: 40;
  display: flex; justify-content: center; align-items: stretch;
  background: rgba(20, 30, 15, .45);
  padding: 14px max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
}
.panel[hidden] { display: none; }
.panel-inner {
  width: 100%; max-width: 1000px; display: flex; flex-direction: column;
  background: var(--parch); border: 4px solid var(--wood-700); border-radius: 14px;
  box-shadow: 0 0 0 3px var(--wood-900), 0 10px 30px rgba(0,0,0,.4);
  overflow: hidden;
}
.panel-head {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  background: var(--parch-2); border-bottom: 3px solid #d5bd8f;
}
.panel-head h1 { flex: 1; margin: 0; font-size: 1.15em; line-height: 1.2; outline: none; }
.panel-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 16px 18px 40px; overscroll-behavior: contain; }
.alto-contraste .panel-inner { background: #fff; }
.alto-contraste .muted { color: #222 !important; }

/* ---------- Componentes ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: var(--tap); padding: 8px 16px; border-radius: 9px;
  background: #fff8ea; border: 2px solid var(--wood-500); color: var(--ink);
  text-decoration: none; cursor: pointer; font-weight: 600;
  box-shadow: 0 3px 0 var(--wood-500);
  touch-action: manipulation;
}
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--wood-500); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: var(--green); color: #fff; border-color: #2c5a28; box-shadow: 0 3px 0 #2c5a28; }
.btn.danger { background: var(--red); color: #fff; border-color: #7a2a20; box-shadow: 0 3px 0 #7a2a20; }
.btn.icon { width: var(--tap); padding: 0; font-size: 20px; }
.btn.small { min-height: 38px; padding: 4px 10px; font-size: .9em; }
.btn.icon.small { width: 38px; }
.btn.wide { width: 100%; justify-content: space-between; text-align: left; flex-wrap: wrap; }
label.btn input[type=file] { display: none; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.row.end { justify-content: flex-end; }
.grow { flex: 1; min-width: 160px; }
.muted { color: var(--ink-soft); }
.small { font-size: .88em; }
.big { font-size: 2.2em; font-weight: 800; margin: .2em 0; }
.ok { color: var(--green); }
.ko { color: var(--red); }
.warn { color: #9a6200; }
h2 { font-size: 1.1em; margin: 0 0 .5em; }
h3 { font-size: 1.05em; }
h4 { margin: .8em 0 .3em; font-size: .98em; }
.card {
  background: #fffaf0; border: 2px solid #dcc69c; border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 14px;
}
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.grid2 > .card { margin: 0; }
.span2 { grid-column: 1 / -1; }
.note { background: var(--amber-soft); border: 2px solid #e2c27a; border-radius: var(--radius); padding: 10px 12px; }
.tag { display: inline-block; font-size: .75em; padding: 2px 8px; border-radius: 99px; background: #eee3cc; border: 1px solid #cdb68a; vertical-align: middle; white-space: nowrap; font-weight: 600; }
.tag-texto { background: #dcebf8; border-color: #9cc0e2; color: #1d4a72; }
.tag-proto { background: var(--violet-soft); border-color: #bba7dc; color: #4b2f7a; }
.tag-ok { background: var(--green-soft); border-color: #9fcb93; color: #24521f; }
.tag-pend { background: #ece6dc; border-color: #c9bda8; color: #6d6150; }
.tag-adapt { background: var(--amber-soft); border-color: #e2c27a; color: #6c4a00; }
.badge { margin-left: 8px; background: var(--red); color: #fff; font-size: .72em; padding: 1px 7px; border-radius: 99px; }
.state { font-size: .75em; padding: 2px 8px; border-radius: 6px; white-space: nowrap; font-weight: 600; }
.state.st0 { background: #ece6dc; color: #6d6150; }
.state.st1 { background: #fbe8b8; color: #6c4a00; }
.state.st2 { background: #dcebf8; color: #1d4a72; }
.state.st3 { background: #d9ecd2; color: #24521f; }
.state.st4 { background: #3f7d3a; color: #fff; }
.cita { margin: .5em 0; padding: 8px 12px; background: #f3f7fb; border-left: 4px solid #7aa7d2; border-radius: 0 8px 8px 0; font-style: normal; }
.cita-label { display: block; font-size: .72em; text-transform: uppercase; letter-spacing: .05em; color: #4a6f93; font-weight: 700; }
.ideas { list-style: none; padding: 0; }
.list-nav { list-style: none; padding: 0; display: grid; gap: 8px; }
.tbl { width: 100%; border-collapse: collapse; font-size: .92em; }
.tbl th, .tbl td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #e3d3b2; vertical-align: top; }
.history { padding-left: 1.2em; font-size: .92em; }
.history time { color: var(--ink-soft); font-size: .9em; }
.checklist { list-style: none; padding: 0; }
.checklist li { padding: 4px 0; }
input[type=checkbox] { width: 24px; height: 24px; vertical-align: middle; accent-color: var(--green); }
input[type=text], select, textarea { border: 2px solid #cdb68a; border-radius: 8px; padding: 8px 10px; background: #fff; min-height: 44px; }
textarea { width: 100%; resize: vertical; }
.switch { display: flex; align-items: center; gap: 8px; min-height: var(--tap); }
.dialog { border: 4px solid var(--wood-700); border-radius: 12px; background: var(--parch); max-width: 460px; }
.dialog::backdrop { background: rgba(0,0,0,.45); }
.fatal { padding: 2rem; color: #fff; }

/* Casa / agentes */
.room {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px;
  padding: 16px; border-radius: 12px;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.06) 0 2px, transparent 2px 64px),
    repeating-linear-gradient(0deg, #b98a5a 0 30px, #b2834f 30px 32px);
  border: 4px solid #7a5434;
}
.agent {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px;
  background: rgba(255, 248, 230, .92); border: 2px solid #8a6240; border-radius: 10px; cursor: pointer;
  text-align: center; position: relative; min-height: 250px; touch-action: manipulation;
}
.agent.activo { border-color: var(--green); box-shadow: 0 0 0 3px rgba(63,125,58,.35); }
.agent:not(.activo) .sprite { filter: saturate(.7); opacity: .85; }
.agent-title { font-size: .85em; font-weight: 600; line-height: 1.25; }
.plaque { position: absolute; top: 8px; left: 8px; background: #6b4a31; color: #fbe6b5; font-weight: 800; border-radius: 6px; padding: 0 8px; font-size: .9em; }
.sprite { background-repeat: no-repeat; flex: none; }
.idle-bob { animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-3px); } }
.theme-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.theme-row { display: flex; align-items: center; gap: 12px; background: #fffaf0; border: 2px solid #dcc69c; border-radius: 10px; padding: 8px 12px; flex-wrap: wrap; }
.theme-row > span:nth-child(2) { flex: 1; min-width: 180px; }
.silhouette { width: 40px; height: 40px; border-radius: 50%; background: #c9bda8; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; flex: none; }
.silhouette.big { width: 110px; height: 110px; font-size: 40px; }

/* Agente */
.agent-intro { display: flex; gap: 16px; align-items: flex-end; margin-bottom: 14px; flex-wrap: wrap; }
.bubble { flex: 1; min-width: 240px; background: #fff; border: 3px solid var(--wood-700); border-radius: 14px; padding: 10px 14px; position: relative; }
.bubble p { margin: .3em 0; }
.activities { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; margin-bottom: 12px; }
.activity {
  display: flex; gap: 12px; align-items: center; padding: 14px; min-height: 72px;
  background: #fffaf0; border: 2px solid var(--wood-500); border-radius: 12px; box-shadow: 0 3px 0 var(--wood-500);
  color: var(--ink); text-decoration: none;
}
.activity:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--wood-500); }
.activity strong { display: block; }
.activity small { color: var(--ink-soft); }
.activity-icon { font-size: 28px; width: 40px; text-align: center; flex: none; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .85em; margin-bottom: 10px; }
.topic-map { list-style: none; padding: 0; display: grid; gap: 8px; }
.topic-map details { background: #fffaf0; border: 2px solid #dcc69c; border-radius: 10px; }
.topic-map summary { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; cursor: pointer; min-height: var(--tap); }
.sec-num { font-weight: 800; min-width: 1.8em; }
.sec-title { flex: 1; font-weight: 600; min-width: 180px; }
.sec-body { padding: 0 14px 12px; }
.abc { padding-left: 1.2em; }
.abc b { color: var(--wood-700); }

/* Preguntas */
.question { margin: 8px 0; }
.q-text { font-size: 1.08em; font-weight: 600; }
.q-meta { min-height: 4px; }
.options { display: grid; gap: 8px; }
.option {
  text-align: left; min-height: var(--tap); padding: 10px 14px; border-radius: 10px; cursor: pointer;
  background: #fff; border: 2px solid #cdb68a; touch-action: manipulation;
}
.option:hover:not(:disabled) { border-color: var(--wood-500); background: #fffaf0; }
.option.correct { background: var(--green-soft); border-color: var(--green); }
.option.wrong { background: var(--red-soft); border-color: var(--red); }
.option:disabled { cursor: default; color: var(--ink); }
.hint { margin-top: 8px; }
.hint-text { background: var(--amber-soft); padding: 6px 10px; border-radius: 8px; }
.verdict { font-weight: 800; }
.verdict.ok { color: var(--green); }
.verdict.ko { color: var(--red); }
.checks { list-style: none; padding: 0; }
.checks li.ok { color: var(--green); }
.checks li.ko { color: var(--red); }
.checks.cols { columns: 2 220px; }
.recall { min-height: 90px; }
.scene { font-size: 1.08em; background: #fff; padding: 10px 12px; border-radius: 10px; border: 2px dashed #cdb68a; }
.critico { background: var(--red-soft); padding: 6px 10px; border-radius: 8px; color: #6e1f15; }

/* Juegos */
.order { list-style: none; padding: 0; display: grid; gap: 8px; counter-reset: ord; }
.order-item { display: flex; gap: 8px; align-items: center; counter-increment: ord; }
.order-item::before { content: counter(ord); font-weight: 800; width: 1.6em; text-align: right; color: var(--wood-700); }
.order-main {
  flex: 1; text-align: left; min-height: var(--tap); padding: 8px 12px; border-radius: 10px; cursor: pointer;
  background: #fff; border: 2px solid #cdb68a; touch-action: manipulation;
}
.order-item.selected .order-main { border-color: var(--blue); background: #e7f0fa; box-shadow: 0 0 0 3px rgba(47,94,140,.25); }
.order-item.correct .order-main { background: var(--green-soft); border-color: var(--green); }
.order-item.wrong .order-main { background: var(--red-soft); border-color: var(--red); }
.order-arrows { display: flex; gap: 4px; }
.bridge { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: stretch; margin: 10px 0; }
.bridge-end { display: flex; flex-direction: column; gap: 2px; background: #fff; border: 2px solid var(--wood-500); border-radius: 10px; padding: 10px; }
.bridge-end small { font-weight: 800; color: var(--wood-700); }
.bridge-gap { display: flex; align-items: center; justify-content: center; padding: 0 8px; font-weight: 800; color: var(--ink-soft); border-top: 4px dashed var(--wood-500); align-self: center; min-width: 70px; }
.transition { margin-top: 12px; padding-top: 10px; border-top: 2px dashed #dcc69c; }

/* Escritura */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-bottom: 6px; }
.anchors { background: #fff; border: 2px dashed #cdb68a; border-radius: 10px; padding: 6px 12px; margin: 8px 0; }
.editor { min-height: 46vh; line-height: 1.6; font-size: 1em; }
.editor-status { font-size: .88em; color: var(--ink-soft); margin-top: 4px; }
.report { margin: 8px 0; }
.rubric { margin-top: 14px; padding-top: 10px; border-top: 2px dashed #dcc69c; display: grid; gap: 6px; }
.rubric-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.model { margin: 12px 0; }
.model summary, .history-box summary, details > summary { cursor: pointer; min-height: 40px; padding: 6px 0; font-weight: 600; }
.reader { max-width: 70ch; }
.reader p { margin: .5em 0; }
.prev-text { white-space: pre-wrap; background: #fff; padding: 8px; border-radius: 8px; border: 1px solid #e3d3b2; }
.checkgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 6px; margin: 8px 0; }
.check { display: flex; align-items: center; gap: 8px; min-height: var(--tap); background: #fff; border: 2px solid #e3d3b2; border-radius: 8px; padding: 4px 10px; }
.feedback-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.audio-list { list-style: none; padding: 0; }
.lyrics { white-space: pre-wrap; font: inherit; background: #fff; padding: 10px; border-radius: 8px; }

/* Avisos */
.toasts { position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 200; display: grid; gap: 6px; pointer-events: none; }
.toast { background: rgba(43, 30, 21, .95); color: #fff; padding: 8px 16px; border-radius: 10px; box-shadow: 0 4px 12px rgba(0,0,0,.3); transition: opacity .5s; text-align: center; }
.toast.xp { background: #6a3fb0; font-weight: 800; }
.toast.error { background: var(--red); }
.toast.out { opacity: 0; }

/* Movimiento reducido */
.reduce-motion *, .reduce-motion *::before { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { .idle-bob { animation: none; } }

/* Pantallas estrechas (iPad vertical, móvil) */
@media (max-width: 900px) {
  .brand-text { display: none; }
  .chip { padding: 4px 8px; font-size: .74em; }
}
@media (max-width: 700px) { .chip-label { display: none; } }
@media (max-width: 640px) {
  :root { --hud-h: 112px; }
  .hud { flex-wrap: wrap; }
  .chips { order: 3; flex-basis: 100%; }
  .hud-actions { margin-left: auto; }
  .panel { padding: 0; }
  .panel-inner { border-radius: 0; border-width: 0; box-shadow: none; }
  .bridge { grid-template-columns: 1fr; }
  .bridge-gap { border-top: 0; border-left: 4px dashed var(--wood-500); min-height: 30px; }
}
@media (max-width: 1240px) { .brand-text { display: none; } }

/* ---------- Escenas (campus e interiores) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.world:focus { outline: none; }
.world:focus-visible { box-shadow: 0 0 0 3px rgba(255, 220, 120, .9) inset; }
.panel[data-kind="escena"] { padding: 0; background: #1c120b; }
.panel[data-kind="escena"] .panel-inner { max-width: none; border-radius: 0; border-width: 0; box-shadow: none; background: #1c120b; }
.panel[data-kind="escena"] .panel-head { background: var(--wood-800, #4a3221); border-bottom-color: var(--wood-900); color: #fff; padding: 6px 10px; }
.panel[data-kind="escena"] .panel-body { padding: 0; overflow: hidden; position: relative; }
.scene-wrap, .scene-host { position: absolute; inset: 0; }
.scene-host .world { background: #1c120b; }
.scene-host .campus, .scene-host .primer-plano { image-rendering: pixelated; }
.npc {
  position: absolute; padding: 0; border: 0; background: transparent; cursor: pointer;
}
.npc-sprite { position: absolute; inset: 0; background-repeat: no-repeat; }
.npc-shadow { position: absolute; left: 14%; right: 14%; bottom: -3px; height: 12px; border-radius: 50%; background: rgba(0,0,0,.3); }
.npc-name {
  position: absolute; left: 50%; top: -8px; transform: translate(-50%, -100%);
  white-space: nowrap; font-size: 20px; font-weight: 700; color: #fff; background: rgba(43, 30, 21, .82);
  padding: 2px 10px; border-radius: 8px; border: 2px solid #6b4a31; pointer-events: none;
}
.npc[data-estado="disponible"] .npc-name { background: #2f6b3a; border-color: #ffd36a; }
.npc[data-estado="disponible"] .npc-name::after { content: ' ★'; color: #ffd36a; }
.npc[data-estado="pendiente"] .npc-sprite { filter: saturate(.75) brightness(.92); }
.npc:hover .npc-name, .npc:focus-visible .npc-name, .npc.near .npc-name { box-shadow: 0 0 0 3px #ffd36a; }
.npc:focus-visible { outline: 3px solid #ffd36a; outline-offset: 4px; border-radius: 8px; }
.talk-btn {
  position: absolute; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  z-index: 20; font-size: 1.05em; padding: 12px 20px; box-shadow: 0 4px 14px rgba(0,0,0,.45);
}
.dialog-box {
  position: absolute; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(880px, calc(100% - 24px)); z-index: 30; display: flex; gap: 14px; align-items: flex-start;
  background: #fbf3df; color: #2b1e15; border: 4px solid #6b4a31; border-radius: 12px;
  box-shadow: 0 0 0 3px #2b1e15, 0 10px 30px rgba(0,0,0,.5); padding: 12px 14px;
  max-height: 70%; overflow-y: auto;
}
.dialog-box[hidden] { display: none; }
.dialog-portrait { flex: none; width: 96px; height: 96px; border: 3px solid #6b4a31; border-radius: 8px; background: #e9d8b4; overflow: hidden; }
.dialog-portrait img { width: 100%; height: 100%; object-fit: contain; image-rendering: auto; }
.dialog-main { flex: 1; min-width: 0; }
.dialog-name { margin: 0 0 4px; font-weight: 700; color: #6b3f22; }
.dialog-text { margin: 0 0 10px; white-space: pre-line; line-height: 1.45; min-height: 3em; cursor: pointer; }
.dialog-options { display: flex; flex-wrap: wrap; gap: 8px; }
.dialog-option { text-decoration: none; }
@media (max-width: 640px) {
  .dialog-portrait { width: 60px; height: 60px; }
  .dialog-box { gap: 10px; padding: 10px; }
  .dialog-option { flex: 1 1 calc(50% - 8px); }
}
.talk-btn[hidden] { display: none; }
.scene-host .hotspot-label { opacity: 1; top: auto; bottom: 6px; transform: translate(-50%, 0); font-size: 20px; }

/* ---------- Respuestas escritas: comentario ---------- */
.prompt-text { font-size: 1.15em; font-weight: 600; margin: 4px 0; }
.card.hint { background: #fff8e1; border-color: #e6c66a; }
.feedback { margin-top: 12px; }
.feedback-head h2 { margin-bottom: 4px; }
.feedback-status { font-weight: 700; margin: 4px 0; }
.feedback-status.ok { color: #2f6b3a; }
.feedback-status.warn { color: #9a5b00; }
.feedback-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 10px 0; }
.fb { border-radius: 10px; padding: 10px 12px; border: 2px solid; background: #fffdf6; }
.fb h3 { margin: 0 0 6px; font-size: 1em; }
.fb ul { margin: 0; padding-left: 1.1em; }
.fb li { margin: 4px 0; }
.fb q { font-style: italic; }
.fb-bien { border-color: #6aa86f; background: #f2faf1; }
.fb-falta { border-color: #d29a4a; background: #fff6ea; }
.fb-mejorar { border-color: #6b8fc4; background: #f1f5fc; }
.fb-mejorar li.ko { color: #8e2f2f; }
.tag-must { background: #8e2f2f; color: #fff; }
.tag-key { background: #e7dcc4; color: #3b2a1e; }
@media (max-width: 900px) { .feedback-grid { grid-template-columns: 1fr; } }

/* ---------- Animaciones ambientales (hojas de fotogramas; tools/build-anim.mjs) ---------- */
.primer-plano { position: absolute; pointer-events: none; -webkit-user-drag: none; user-select: none; }
.anim { position: absolute; pointer-events: none; z-index: 2; background-repeat: no-repeat; background-position: 0 0;
  animation-name: anim-sheet; animation-iteration-count: infinite; }
@keyframes anim-sheet { from { background-position: 0 0; } to { background-position: 0 var(--sheet-h); } }
.anim-off .anim { animation-play-state: paused; }

/* ---------- Sonido ---------- */
.range { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(120px, 2fr) 4.5em; gap: 10px; align-items: center; margin: 6px 0 10px; }
.range input[type="range"] { width: 100%; accent-color: var(--wood-700); min-height: 32px; }
.range output { text-align: right; font-variant-numeric: tabular-nums; }
.sound-toggle[aria-pressed="false"] { opacity: .8; }

/* ---------- Iluminación y tiempo (js/ambiente.js) ---------- */
.amb-capa { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }
.amb-tinte { z-index: 5000; mix-blend-mode: multiply; background: #fff; transition: background-color 25s linear; }
.amb-luces { z-index: 5001; opacity: 0; transition: opacity 25s linear; -webkit-user-drag: none; }
.amb-halo { z-index: 5002; opacity: 0; mix-blend-mode: screen; image-rendering: pixelated; transition: opacity 25s linear; -webkit-user-drag: none; }
.amb-niebla { z-index: 5003; opacity: 0; transition: opacity 25s linear; image-rendering: pixelated;
  background: rgba(222, 230, 242, .6); }
.amb-flash { z-index: 5004; background: #eef3ff; opacity: 0; mix-blend-mode: screen; }
.amb-flash.rayo { animation: amb-rayo 1s steps(1) 1; }
.amb-flash.rayo-interior.rayo { animation-name: amb-rayo-int; }
@keyframes amb-rayo { 0% { opacity: .55; } 8% { opacity: 0; } 16% { opacity: .38; } 26% { opacity: 0; } 100% { opacity: 0; } }
@keyframes amb-rayo-int { 0% { opacity: .18; } 8% { opacity: 0; } 16% { opacity: .12; } 26% { opacity: 0; } 100% { opacity: 0; } }
.amb-vidrio { z-index: 5005; mix-blend-mode: multiply; transition: background-color 25s linear; }
.amb-vidrio-clima { z-index: 5006; image-rendering: pixelated; }
.amb-clima { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 7; image-rendering: pixelated; }
.amb-rapido .amb-tinte, .amb-rapido .amb-luces, .amb-rapido .amb-halo, .amb-rapido .amb-niebla, .amb-rapido .amb-vidrio { transition-duration: 1.2s; }
.amb-capa[hidden], .amb-clima[hidden] { display: none; }
.amb-estado { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; font-size: .95em; }
.amb-estado dt { color: var(--ink-soft); }
.amb-estado dd { margin: 0; }
.lugares-resultado { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }

/* ---------- Habitantes: etiquetas y bocadillos (js/habitantes.js) ---------- */
.actor-capa { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 6100; pointer-events: none; }
.actor-textos { position: absolute; transform: translate(-50%, -100%); display: flex; flex-direction: column-reverse; align-items: center; gap: calc(4px * var(--inv, 1)); padding-bottom: calc(3px * var(--inv, 1)); }
.actor-etiqueta { font-size: calc(12px * var(--inv, 1)); font-weight: 700; white-space: nowrap; color: #fff; background: rgba(43, 30, 21, .72); padding: .05em .55em; border-radius: .6em; }
.actor-etiqueta.disponible { background: rgba(47, 107, 58, .88); }
.actor-etiqueta.disponible::after { content: ' ★'; color: #ffd36a; }
.bocadillo { position: relative; font-size: calc(14px * var(--inv, 1)); line-height: 1.3; width: max-content; max-width: 17em; background: #fffaf0; color: #2b1e15;
  border: calc(2px * var(--inv, 1)) solid #2b1e15; border-radius: .6em; padding: .35em .6em; box-shadow: 0 .15em 0 rgba(0, 0, 0, .25); animation: bocadillo-in .18s steps(3) 1; }
.bocadillo b { color: #6b3f22; }
.bocadillo::after { content: ''; position: absolute; left: 50%; bottom: -.55em; width: .7em; height: .7em; background: #fffaf0; border-right: inherit; border-bottom: inherit; transform: translateX(-50%) rotate(45deg); }
.bocadillo[hidden] { display: none; }
@keyframes bocadillo-in { from { opacity: 0; transform: translateY(.3em); } to { opacity: 1; transform: none; } }
.reduce-motion .bocadillo { animation: none; }
.npc.near .npc-sprite { filter: drop-shadow(0 0 3px #ffd36a) drop-shadow(0 0 1px #ffd36a); }
.llamar-btn { position: absolute; left: max(10px, env(safe-area-inset-left)); top: 10px; z-index: 20; }
.llamar-menu { position: absolute; left: max(10px, env(safe-area-inset-left)); top: 58px; z-index: 25; width: min(420px, calc(100% - 20px)); max-height: calc(100% - 80px); overflow-y: auto;
  background: #fbf3df; color: #2b1e15; border: 4px solid #6b4a31; border-radius: 12px; box-shadow: 0 0 0 3px #2b1e15, 0 10px 30px rgba(0,0,0,.5); padding: 10px 12px; }
.llamar-menu[hidden] { display: none; }
.llamar-menu h3 { margin: 0 0 6px; font-size: 1em; }
.llamar-fila { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid #e2cfa6; }
.llamar-fila img { width: 40px; height: 40px; object-fit: contain; flex: none; }
.llamar-fila .info { flex: 1; min-width: 0; }
.llamar-fila .info small { display: block; color: var(--ink-soft); }
.dialog-sub { margin: -2px 0 6px; font-size: .9em; color: var(--ink-soft); }
.dialog-progreso { font-size: .8em; color: var(--ink-soft); margin-left: auto; }
#map .dialog-box, #map .talk-btn { z-index: 40; }
.actor-textos.sin-etiqueta .actor-etiqueta { display: none; }

/* con un diálogo abierto nunca se muestra el botón «Hablar con…» (no se superponen) */
.dialog-box:not([hidden]) ~ .talk-btn { display: none !important; }

/* ---------- Valen · Tema 4: relación, pistas, escritura guiada ---------- */
.match { display: grid; gap: 8px; margin: 10px 0; }
.match-row { display: grid; grid-template-columns: minmax(90px, 1fr) auto minmax(0, 2fr); gap: 8px; align-items: center;
  padding: 8px 10px; border: 2px solid #dcc69c; border-radius: var(--radius); background: #fffaf0; }
.match-row select { width: 100%; min-height: 44px; font: inherit; }
.match-row.correct { background: var(--green-soft); border-color: var(--green); }
.match-row.wrong { background: var(--red-soft); border-color: var(--red); }
.match-row.fijada { border-style: dashed; }
.match-flecha { color: var(--ink-soft); }
@media (max-width: 560px) { .match-row { grid-template-columns: 1fr; } .match-flecha { display: none; } }
.option.descartada { opacity: .45; text-decoration: line-through; }
.citas { display: grid; gap: 6px; }
.anclas { background: #f4efe4; border-radius: var(--radius); padding: 8px 12px; margin: 8px 0; }
.anclas ul { margin: 4px 0 0; }
label.paso { display: grid; gap: 4px; margin: 10px 0; }
label.paso textarea { width: 100%; font: inherit; min-height: 64px; }
.escrito { white-space: pre-wrap; background: #fffdf7; border: 1px solid #e4d5b6; border-radius: var(--radius); padding: 10px 12px; }
.escrito.preview { min-height: 3em; }
fieldset.rubric-row { border: 1px solid #e4d5b6; border-radius: var(--radius); padding: 6px 10px; margin: 0; display: block; }
fieldset.rubric-row legend { padding: 0 4px; }
.chip-radio { display: inline-flex; align-items: center; gap: 4px; padding: 6px 10px; min-height: 40px; border: 1px solid #dcc69c; border-radius: 999px; cursor: pointer; }
.chip-radio:has(input:checked) { background: var(--amber-soft); border-color: #c99a3a; font-weight: 600; }
.btn[aria-pressed="true"] { background: var(--amber-soft); border-color: #c99a3a; font-weight: 700; box-shadow: inset 0 0 0 1px #c99a3a; }

/* ---------- Portada ---------- */
/* La ilustración se ve entera (contain) sobre una versión desenfocada de sí misma; el botón real cubre el
   botón «JUGAR» dibujado (en la imagen de 1672×941: x 618–1048, y 673–776). */
.portada { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; overflow: hidden;
  background: #2d4a26; opacity: 1; transition: opacity .45s ease; }
.portada.saliendo { opacity: 0; pointer-events: none; }
.portada-fondo { position: absolute; inset: -40px; background: url("../assets/portada/portada.webp") center / cover no-repeat;
  filter: blur(18px) brightness(.62) saturate(1.1); }
.portada-arte { position: absolute; left: 50%; top: 50%; translate: -50% -50%; aspect-ratio: 1672 / 941;
  width: min(100vw, calc(100vh * 1672 / 941)); width: min(100vw, calc(100dvh * 1672 / 941)); box-shadow: 0 10px 40px rgba(0, 0, 0, .45); }
/* en vertical (móvil) la ilustración se amplía y se recortan solo los bordes laterales: el título y el botón quedan enteros */
@media (max-aspect-ratio: 4/5) { .portada-arte { width: 160vw; } }
.portada-arte img { display: block; width: 100%; height: 100%; -webkit-user-drag: none; user-select: none; }
.portada-jugar { position: absolute; left: 49.82%; top: 76.99%; width: 25.72%; height: 10.95%; min-width: 88px; min-height: 44px;
  transform: translate(-50%, -50%); padding: 0; border: 0; border-radius: 14% / 40%; background: transparent; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: transform .12s ease, box-shadow .2s ease, background-color .2s ease; }
.portada-jugar:hover { background: rgba(255, 240, 190, .16); box-shadow: 0 0 0 3px rgba(255, 214, 120, .75), 0 0 22px rgba(255, 214, 120, .55); }
.portada-jugar:active { transform: translate(-50%, -50%) scale(.96); background: rgba(80, 40, 10, .14); }
.portada-jugar:focus-visible { outline: 4px solid #fff3c4; outline-offset: 3px; box-shadow: 0 0 0 7px rgba(59, 42, 30, .8); }
@media (prefers-reduced-motion: reduce) { .portada, .portada-jugar { transition: none; } }

/* ===================== v0.8 · Planificador, Academia Central y Club de Juegos ===================== */
.hud-sesion { white-space: nowrap; font-weight: 700; }
@media (max-width: 760px) { .hud-sesion-txt { display: none; } }
.linkbtn { background: none; border: 0; padding: 0; color: var(--blue); text-decoration: underline; cursor: pointer; font-size: inherit; }
.min-input { width: 6em; }
.tag-imp { background: var(--red-soft); border-color: #dea79d; color: #7a2418; }
.small-intro { margin-top: 0; }

/* acceso a la sesión sobre el pueblo (no bloquea) y vuelta a la sesión */
.sesion-cta {
  /* deja libre la columna de zoom (+ − ⤢) de la derecha */
  position: fixed; z-index: 40; left: 16px; right: 76px; margin: 0 auto; max-width: 560px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  background: var(--parch); border: 3px solid var(--wood-700); border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.sesion-cta > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sesion-cta small { color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sesion-cta[hidden] { display: none; }
.volver-sesion { position: fixed; z-index: 60; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 4px 14px rgba(0,0,0,.35); background: var(--gold); border-color: var(--wood-700); font-weight: 700; }
.volver-sesion[hidden] { display: none; }

/* Mi sesión de hoy */
.sesion-cabecera h2 { margin-top: 0; }
.duraciones { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.duraciones .btn.primary[aria-pressed="true"] { background: var(--green); color: #fff; border-color: #2c5a28; box-shadow: inset 0 0 0 2px var(--wood-900); }
.progreso-sesion { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; }
.bar.big { display: block; height: 10px; background: #e3d3b2; border-radius: 6px; overflow: hidden; position: relative; }
.bar.big > span { display: block; height: 100%; background: var(--green); border-radius: 6px; }
.tareas { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.tarea { display: flex; gap: 12px; align-items: flex-start; background: #fffaf0; border: 2px solid #e3d3b2; border-radius: var(--radius); padding: 10px 12px; }
.tarea.siguiente { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242,193,78,.35); }
.tarea.hecha { background: var(--green-soft); border-color: #9fcb93; }
.tarea.hecha .tarea-titulo { text-decoration: line-through; text-decoration-color: rgba(0,0,0,.35); }
.tarea.omitida, .tarea.aplazada { opacity: .65; }
.tarea.en_curso { border-color: var(--blue); }
.tarea-icono { flex: none; width: 48px; height: 48px; border-radius: 8px; background: var(--parch-2); display: grid; place-items: center; font-size: 24px; overflow: hidden; }
.tarea-icono img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.tarea-main { flex: 1; min-width: 0; }
.tarea-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tarea-titulo { font-weight: 700; margin: 4px 0; }
.estado-tarea { margin-left: auto; font-size: .82em; padding: 1px 8px; border-radius: 999px; background: #ece6dc; color: #6d6150; }
.estado-tarea.en_curso { background: #dcebf8; color: #1d4a72; }
.estado-tarea.hecha { background: var(--green); color: #fff; }
.siguiente-box { border-color: var(--gold); background: #fff6dc; }
.recreo-mini { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.big-btn { font-size: 1.15em; padding: 12px 22px; }

/* Academia Central */
.academia-zonas { position: absolute; z-index: 5; top: 8px; left: 8px; right: 8px; display: flex; flex-wrap: wrap; gap: 6px; pointer-events: none; }
.academia-zonas > * { pointer-events: auto; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.fases-linea { position: relative; height: 34px; margin: 12px 0 18px; background: #e3d3b2; border-radius: 8px; overflow: visible; }
.fases-linea .fase { position: absolute; top: 0; bottom: 0; display: grid; place-items: center; font-size: .8em; font-weight: 700; color: #fff; overflow: hidden; white-space: nowrap; }
.fase.f1 { background: var(--blue); border-radius: 8px 0 0 8px; }
.fase.f2 { background: #8a5fb8; }
.fase.f3 { background: var(--red); border-radius: 0 8px 8px 0; }
.hoy-marca { position: absolute; top: -6px; bottom: -6px; width: 4px; margin-left: -2px; background: var(--gold); border: 1px solid var(--wood-900); border-radius: 2px; }
.calendario { width: 100%; border-collapse: separate; border-spacing: 3px; table-layout: fixed; font-size: .85em; }
.calendario th { font-weight: 600; color: var(--ink-soft); }
.calendario td { background: #fffaf0; border: 1px solid #e3d3b2; border-radius: 6px; padding: 4px; vertical-align: top; height: 3.2em; }
.calendario td.libre { background: #ece6dc; color: #8a7d6a; }
.calendario td.hecho { background: var(--green-soft); border-color: #9fcb93; }
.calendario td.perdido { background: #fbeae6; }
.calendario td.hoy { outline: 3px solid var(--gold); }
.calendario .num { font-weight: 700; display: block; }
.calendario .mini { display: block; font-size: .78em; color: var(--ink-soft); line-height: 1.2; }
.ficha { border-left: 6px solid var(--wood-500); }
.ficha .fechas { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .9em; color: var(--ink-soft); }
.dims { width: 100%; border-collapse: collapse; font-size: .88em; margin: 6px 0; }
.dims th, .dims td { padding: 3px 6px; border-bottom: 1px solid #e3d3b2; text-align: left; }
.progreso-tema { margin: 6px 0; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.cta-config { border-color: var(--gold); background: #fff6dc; }

/* asistente de configuración */
.wizard-pasos { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; padding: 0; margin: 0 0 12px; }
.wizard-pasos li { font-size: .8em; padding: 3px 10px; border-radius: 999px; background: #ece6dc; color: #6d6150; }
.wizard-pasos li.activo { background: var(--wood-700); color: #fff; }
.wizard-pasos li.hecho { background: var(--green-soft); color: #24521f; }
.campo { display: flex; flex-direction: column; gap: 4px; margin: 10px 0; }
.campo > span { font-weight: 600; }
.campo input[type="date"], .campo select { max-width: 260px; }
.prioridades { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.prioridad-fila { display: flex; align-items: center; gap: 8px; padding: 4px 6px; border: 1px solid #e3d3b2; border-radius: 6px; background: #fffaf0; }
.prioridad-fila.off { opacity: .55; }
.prioridad-fila > label { flex: 1; min-width: 0; }
.flechas { display: flex; gap: 2px; }
.flechas .btn { min-width: 40px; padding: 4px; }

/* Primero, recuerda · autoevaluación */
.criterios-auto { background: var(--parch-2); border-radius: 8px; padding: 8px 10px; margin: 8px 0; }
.autoeval { margin-top: 8px; }
.ok-box { background: var(--green-soft); border: 2px solid #9fcb93; border-radius: var(--radius); padding: 10px 12px; }

/* La hoja en blanco */
.indice { padding-left: 1.4em; }
.seg { display: inline-flex; flex-wrap: wrap; border: 2px solid var(--wood-500); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; border-right: 1px solid #d8c7a6; background: #fffaf0; padding: 6px 10px; min-height: 40px; cursor: pointer; }
.seg button:last-child { border-right: 0; }
.seg button[aria-checked="true"], .seg button.on { background: var(--wood-700); color: #fff; }
.diff { margin-top: 8px; }
.diff-texto { white-space: pre-wrap; background: #fffaf0; border: 1px solid #e3d3b2; border-radius: 8px; padding: 10px; line-height: 1.6; }
.diff-texto ins { background: var(--green-soft); color: #1b4a17; text-decoration: none; border-bottom: 2px solid var(--green); }
.diff-texto del { background: var(--red-soft); color: #7a2418; }

/* Desafío, cuaderno de errores, práctico */
.tema-revelado { display: inline-block; margin: 6px 0; padding: 3px 10px; border-radius: 999px; background: var(--violet-soft); font-weight: 700; }
.chips-cat { display: flex; flex-wrap: wrap; gap: 6px; }
.errores { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.error-item { background: #fffaf0; border: 1px solid #e3d3b2; border-radius: 8px; padding: 8px 10px; }
.niveles-practico li { margin: 6px 0; }
.niveles-practico li.activo { background: #fff6dc; border-radius: 6px; padding: 2px 6px; }

/* Club de Juegos · recreativa */
.club-cabecera h2 { margin-top: 0; }
.juego-ficha h3 { margin-top: 0; }
.panel[data-kind="arcade"] .panel-inner { background: #14112a; color: #f1ecff; border-color: #3b3470; }
.panel[data-kind="arcade"] .panel-head { background: #221c48; color: #fff; }
.arcade-pantalla { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.arcade-pantalla .muted { color: #b9b1e0; }
.arcade-reloj { font: 700 1.1em ui-monospace, Menlo, monospace; color: #ffe9a8; }
.arcade { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.arcade-marco { background: #000; padding: 8px; border: 4px solid #3b3470; border-radius: 12px; width: 100%; max-width: 820px; }
.arcade-lienzo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; image-rendering: pixelated; image-rendering: crisp-edges; outline: none; touch-action: none; }
.arcade-mandos { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; user-select: none; -webkit-user-select: none; touch-action: none; }
.arcade-boton { width: 76px; height: 76px; border-radius: 50%; border: 4px solid #5a4fb0; background: #2a2360; color: #fff; font-size: 28px; touch-action: none; -webkit-touch-callout: none; cursor: pointer; }
.arcade-boton.on { background: #5a4fb0; transform: scale(.95); }
.arcade-boton[data-id="fuego"] { background: #8a2f4a; border-color: #d0567a; }
.arcade-aviso { background: #2a2360; border: 2px solid #ffd36b; border-radius: 10px; padding: 10px 12px; text-align: center; }
@media (pointer: fine) and (min-width: 900px) { .arcade-boton { width: 60px; height: 60px; font-size: 22px; } }
