/* Pizarra libre + Modo PDI · parche local 11/16 */
.pdi-board-page {
  min-width: 0;
}

/* Pizarra guiada: carriles de trazo enmascarados para letras y números. */
.pdi-guided-page{min-width:0}.guided-board-shell{display:grid;grid-template-rows:auto auto minmax(470px,1fr);gap:12px;min-height:min(790px,calc(100dvh - 225px));padding:clamp(12px,1.6vw,22px);background:radial-gradient(circle at 7% 12%,#ffd9e8 0 4%,transparent 4.3%),radial-gradient(circle at 92% 88%,#ccebd4 0 5%,transparent 5.3%),linear-gradient(145deg,#fff8ec,#fff2f7 52%,#eff9ed);border:2px solid #ead1dc}.guided-board-toolbar{position:relative;z-index:5;display:flex;align-items:center;flex-wrap:wrap;gap:9px;padding:10px 12px;border:2px solid #e3bfd0;border-radius:20px;background:#fff;box-shadow:0 6px 0 #eed8e1}.guided-board-selector{display:flex;align-items:center;gap:8px;color:#794059;font:900 .78rem/1 Nunito,sans-serif;letter-spacing:.08em}.guided-board-palette{position:relative}.guided-board-palette summary{display:grid;place-items:center;min-width:68px;min-height:50px;padding:5px 18px;border:3px solid #9f3c67;border-radius:15px;background:#fff0f6;color:#853254;font:900 1.8rem/1 Nunito,sans-serif;cursor:pointer;list-style:none}.guided-board-palette summary::-webkit-details-marker{display:none}.guided-board-options{position:absolute;z-index:20;left:0;top:calc(100% + 8px);width:min(760px,82vw);max-height:60vh;overflow:auto;padding:14px;border:3px solid #d9afc1;border-radius:20px;background:#fff;box-shadow:0 18px 45px #54283d35}.guided-board-options>div{display:grid;grid-template-columns:74px repeat(9,minmax(44px,1fr));gap:7px;align-items:center}.guided-board-options>div+div{margin-top:12px;padding-top:12px;border-top:2px dashed #ead1dc}.guided-board-options strong{color:#774056;font-size:.75rem}.guided-board-options button{min-width:0;min-height:44px;padding:5px;border:2px solid #ddbdca;border-radius:12px;background:#fff;color:#71334e;font:900 1.15rem/1 Nunito,sans-serif}.guided-board-options button.is-active{background:#a6295d;color:#fff;border-color:#a6295d;box-shadow:0 3px 0 #701b3e}.guided-board-nav{display:flex;gap:7px}.guided-board-colors{display:flex;gap:7px;margin-left:auto}.guided-board-colors button{width:39px;min-width:39px;height:39px;min-height:39px;padding:0;border:4px solid #fff;border-radius:50%;background:var(--swatch);box-shadow:0 0 0 1px #765b67}.guided-board-colors button.is-active{box-shadow:0 0 0 4px #f0b9d0;transform:scale(1.08)}.guided-board-instruction{display:flex;align-items:center;justify-content:center;gap:12px;min-height:54px;padding:7px 18px;border:2px solid #efc971;border-radius:18px;background:#fff4ca;color:#783b53;text-align:center}.guided-board-instruction>span{font-size:2rem}.guided-board-instruction strong{font:900 clamp(.9rem,1.5vw,1.25rem)/1.15 Nunito,sans-serif}.guided-board-instruction small{padding-left:12px;border-left:2px solid #e3bd6d;font-weight:800;color:#7c6555}.guided-board-stage{position:relative;min-height:470px;height:clamp(470px,61dvh,760px);overflow:hidden;border:4px solid #d8afc0;border-radius:30px;background:linear-gradient(#fff,#fffdf8);box-shadow:inset 0 0 0 8px #fff,0 10px 0 #ead0da;touch-action:none}.guided-board-stage:before{content:'';position:absolute;inset:0;z-index:0;background-image:linear-gradient(#e7f1f6 1px,transparent 1px),linear-gradient(90deg,#e7f1f6 1px,transparent 1px);background-size:32px 32px;opacity:.6}.guided-template-canvas,.guided-ink-canvas{position:absolute;z-index:1;inset:0;width:100%;height:100%}.guided-ink-canvas{z-index:2;cursor:crosshair;touch-action:none}.guided-board-badge{position:absolute;z-index:3;left:18px;top:16px;display:grid;justify-items:center;padding:7px 13px;border:2px solid #d7a8bb;border-radius:15px;background:#fff9;pointer-events:none}.guided-board-badge span{font:900 .61rem/1 Nunito,sans-serif;letter-spacing:.09em;color:#9a5270}.guided-board-badge strong{font:900 1.5rem/1 Nunito,sans-serif;color:#7c3152}
.guided-student-picker{position:relative}.guided-student-picker summary{min-height:44px;padding:10px 13px;border:2px solid #d8b5c4;border-radius:13px;background:#fff8fb;color:#71334e;font-weight:900;cursor:pointer;list-style:none}.guided-student-picker summary::-webkit-details-marker{display:none}.guided-student-picker>div{position:absolute;z-index:21;left:0;top:calc(100% + 7px);display:grid;grid-template-columns:repeat(3,minmax(130px,1fr));gap:7px;width:min(570px,82vw);max-height:48vh;overflow:auto;padding:12px;border:3px solid #d9afc1;border-radius:18px;background:#fff;box-shadow:0 16px 38px #54283d30}.guided-student-picker button{min-width:0;padding:9px;border:2px solid #e0c2cf;border-radius:12px;background:#fff5fa;color:#71334e;font:900 .82rem/1.15 Nunito,sans-serif}.guided-word-input{display:flex;align-items:center;gap:5px;padding:4px 5px 4px 10px;border:2px solid #d8b5c4;border-radius:14px;background:#fff}.guided-word-input>span{font:900 .68rem/1 Nunito,sans-serif;color:#774056}.guided-word-input input{width:112px;min-height:36px;border:0;border-bottom:2px solid #dda9bf;background:transparent;padding:4px 6px;font:900 .9rem/1 Nunito,sans-serif;text-transform:uppercase}.guided-word-input button{min-height:36px;padding:7px 9px;font-size:.68rem}
@media(max-width:850px){.guided-board-shell{grid-template-rows:auto auto minmax(420px,1fr)}.guided-board-colors{margin-left:0}.guided-board-options>div{grid-template-columns:repeat(7,minmax(38px,1fr))}.guided-board-options strong{grid-column:1/-1}.guided-board-stage{height:56dvh;min-height:420px}.guided-board-instruction small{display:none}.guided-student-picker>div{grid-template-columns:repeat(2,minmax(120px,1fr))}.guided-word-input input{width:95px}}
@media(max-width:560px){.guided-board-nav button{padding:8px;font-size:.72rem}.guided-board-colors button{width:32px;min-width:32px;height:32px;min-height:32px}.guided-board-instruction{padding:6px}.guided-board-instruction>span{display:none}.guided-board-stage{border-radius:18px}.guided-board-options{left:-60px}.guided-board-options>div{grid-template-columns:repeat(5,minmax(38px,1fr))}}

.pdi-board-shell {
  display: grid;
  grid-template-rows: auto auto minmax(420px, 1fr);
  gap: 10px;
  min-height: min(760px, calc(100dvh - 230px));
  padding: clamp(10px, 1.4vw, 18px);
}

.pdi-board-toolbar,
.pdi-board-stamps {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.pdi-board-toolbar {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(75, 45, 60, .12);
}

.pdi-board-toolgroup {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pdi-board-tool.is-active,
.pdi-board-stamps button.is-active {
  box-shadow: 0 0 0 3px rgba(166, 41, 93, .18);
  border-color: #a6295d;
}

.pdi-board-colors {
  padding-inline: 4px;
}

.pdi-board-color {
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 50%;
  border: 4px solid #fff;
  background: var(--swatch);
  box-shadow: 0 0 0 1px rgba(35, 27, 31, .22);
}

.pdi-board-color.is-active {
  box-shadow: 0 0 0 4px rgba(166, 41, 93, .25);
}

.pdi-board-size {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 5px 10px;
  border-radius: 12px;
  background: #fff8fb;
  font-weight: 800;
}

.pdi-board-size input {
  width: 120px;
}

.pdi-board-guides-control {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  font-weight: 800;
}

.pdi-board-guides-control[hidden] {
  display: none;
}

.pdi-board-guides-control select {
  min-height: 42px;
  padding: 5px 10px;
  border: 2px solid #ddbccb;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  color: #613149;
}

.pdi-board-clear {
  margin-left: auto;
}

.pdi-board-stamps {
  position: relative;
  min-height: 46px;
  z-index: 2;
}

.pdi-board-stamps-label {
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  color: #6e5360;
}

.pdi-board-stamps button {
  min-width: 42px;
  min-height: 40px;
  padding: 6px 10px;
  font-size: 1.08rem;
}

.pdi-board-text-size {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .85rem;
  font-weight: 800;
  color: #613149;
}

.pdi-board-text-size select {
  min-height: 42px;
  padding: 5px 8px;
  border: 2px solid #ddbccb;
  border-radius: 10px;
  background: #fff;
  font: inherit;
  color: inherit;
}

.pdi-board-back-to-pencil[hidden] {
  display: none !important;
}

.pdi-board-palette summary {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 7px 14px;
  border: 2px solid #ddbccb;
  border-radius: 12px;
  background: #fff;
  color: #613149;
  font-weight: 900;
  cursor: pointer;
  user-select: none;
}

.pdi-board-palette[open] summary,
.pdi-board-palette summary:focus-visible {
  border-color: #97345d;
  background: #fff2f7;
}

.pdi-board-palette-items {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  display: grid;
  grid-template-columns: repeat(9, minmax(44px, 1fr));
  gap: 7px;
  width: min(100%, 590px);
  max-height: min(60dvh, 380px);
  overflow: auto;
  padding: 12px;
  border: 2px solid #ddbccb;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(54, 25, 38, .22);
}

.pdi-board-palette-numbers {
  grid-template-columns: repeat(5, minmax(48px, 1fr));
  width: min(100%, 380px);
}

.pdi-board-palette-shapes {
  grid-template-columns: repeat(4, minmax(90px, 1fr));
  width: min(100%, 510px);
}

.pdi-board-palette-shapes button {
  display: grid;
  justify-items: center;
  gap: 3px;
  font-size: .75rem;
}

.pdi-board-palette-shapes svg {
  width: 40px;
  height: 40px;
  fill: #f5ca22;
  stroke: #664619;
  stroke-width: 2;
}

.pdi-board-palette-shapes button:nth-last-child(-n+3) svg {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
}

.pdi-board-stamp-status {
  font-weight: 800;
  color: #613149;
}

.pdi-board-undo:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.pdi-board-stage {
  position: relative;
  min-width: 0;
  min-height: 420px;
  height: clamp(420px, 58dvh, 720px);
  overflow: hidden;
  border: 3px solid #ead6df;
  border-radius: 20px;
  background-color: #fff;
  box-shadow: inset 0 0 0 1px rgba(60, 35, 47, .05);
}

.pdi-board-stage[data-board-background="grid"] {
  background-color: #fff;
  background-image:
    linear-gradient(rgba(64, 112, 177, .14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(64, 112, 177, .14) 1px, transparent 1px),
    linear-gradient(rgba(64, 112, 177, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(64, 112, 177, .07) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px, 10px 10px, 10px 10px;
}

.pdi-board-stage[data-board-background="guides"] {
  --guide-row: 74px;
  background-color: #fff;
  background-image:
    linear-gradient(to bottom, #93cdd9 0 2px, transparent 2px),
    linear-gradient(to right, transparent 0 7%, #e7a7b5 7% calc(7% + 2px), transparent calc(7% + 2px));
  background-position: 0 0, 0 0;
  background-size: 100% var(--guide-row), 100% 100%;
  background-repeat: repeat, no-repeat;
}

.pdi-board-stage[data-board-background="guides"][data-board-guide-width="narrow"] {
  --guide-row: 54px;
}

.pdi-board-stage[data-board-background="guides"][data-board-guide-width="wide"] {
  --guide-row: 92px;
}

#pdi-board-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

#pdi-board-preview {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.pdi-board-hint {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 10px;
  translate: -50% 0;
  max-width: calc(100% - 24px);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  color: #725663;
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .045em;
  pointer-events: none;
  backdrop-filter: blur(6px);
}

.pdi-tool-back {
  position:sticky;
  top:0;
  z-index:100003;
  min-height:42px;
  margin:0 0 6px;
  padding:7px 16px;
  border:1px solid #a85d79;
  border-radius:999px;
  background:#fff9f5;
  color:#72394f;
  font-weight:900;
}

/* Modo PDI real para páginas de la sección */
#contenido:fullscreen,
#contenido:-webkit-full-screen,
.pdi-mode-fallback #contenido.pdi-mode-target {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9998 !important;
  width: 100vw !important;
  height: 100dvh !important;
  max-width: none !important;
  max-height: none !important;
  overflow: auto !important;
  margin: 0 !important;
  padding: clamp(10px, 1.5vw, 22px) !important;
  background: #fff8fb !important;
}

#contenido:fullscreen .pdi-section-nav,
#contenido:-webkit-full-screen .pdi-section-nav,
.pdi-mode-fallback #contenido.pdi-mode-target .pdi-section-nav {
  display: none !important;
}

#contenido:fullscreen .page-head,
#contenido:-webkit-full-screen .page-head,
.pdi-mode-fallback #contenido.pdi-mode-target .page-head {
  margin-bottom: 8px !important;
}

#contenido:fullscreen .pdi-board-head,
#contenido:-webkit-full-screen .pdi-board-head,
.pdi-mode-fallback #contenido.pdi-mode-target .pdi-board-head {
  display: none !important;
}

#contenido:fullscreen .pdi-board-shell,
#contenido:-webkit-full-screen .pdi-board-shell,
.pdi-mode-fallback #contenido.pdi-mode-target .pdi-board-shell {
  width: 100%;
  height: calc(100dvh - 70px);
  min-height: 0;
  grid-template-rows: auto auto minmax(0, 1fr);
  margin: 0;
}

#contenido:fullscreen .pdi-board-stage,
#contenido:-webkit-full-screen .pdi-board-stage,
.pdi-mode-fallback #contenido.pdi-mode-target .pdi-board-stage {
  height: auto;
  min-height: 0;
}

/* Fallback para navegadores/PDI que no concedan Fullscreen API */
.pdi-mode-fallback {
  overflow: hidden !important;
}

@media (max-width: 760px) {
  .pdi-board-palette-items {
    grid-template-columns: repeat(6, minmax(42px, 1fr));
  }

  .pdi-board-palette-numbers {
    grid-template-columns: repeat(5, minmax(42px, 1fr));
  }

  .pdi-board-palette-shapes {
    grid-template-columns: repeat(2, minmax(90px, 1fr));
  }

  .pdi-board-shell {
    grid-template-rows: auto auto minmax(360px, 1fr);
    padding: 8px;
  }

  .pdi-board-stage {
    min-height: 360px;
    height: 54dvh;
  }

  .pdi-board-size {
    width: 100%;
  }

  .pdi-board-size input {
    flex: 1;
  }

  .pdi-board-clear {
    margin-left: 0;
  }

}

/* Recorrido · vocabulario de otoño con fotos reales */
.autumn-page {
  min-width: 0;
}

.autumn-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  min-height: min(860px, calc(100dvh - 220px));
  padding: clamp(14px, 1.6vw, 22px);
}

.autumn-shell--intro {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .95fr);
  grid-template-rows: 1fr;
  align-items: stretch;
}

.autumn-hero,
.autumn-preview {
  border-radius: 26px;
  background: linear-gradient(180deg, #fffefb 0%, #fff7ed 100%);
  border: 2px solid #f2dfc5;
  padding: clamp(18px, 2vw, 28px);
}

.autumn-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.autumn-hero-kicker {
  display: inline-flex;
  align-self: flex-start;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff0d8;
  color: #9a4a18;
  font-weight: 900;
  letter-spacing: .05em;
}

.autumn-hero h2 {
  margin: 0;
  color: #7b2d06;
  font-size: clamp(2rem, 3vw, 3.25rem);
  line-height: 1.02;
}

.autumn-hero p {
  margin: 0;
  font-size: clamp(1rem, 1.35vw, 1.3rem);
  line-height: 1.45;
}

.autumn-hero-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 8px;
  font-size: clamp(.98rem, 1.2vw, 1.1rem);
}

.autumn-preview {
  display: grid;
  gap: 14px;
  align-content: center;
}

.autumn-preview-badge {
  justify-self: start;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff0d8;
  color: #9a4a18;
  font-weight: 900;
  letter-spacing: .05em;
}

.autumn-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.autumn-preview-grid span {
  display: grid;
  place-items: center;
  min-height: 60px;
  padding: 10px 12px;
  border-radius: 18px;
  background: #f5e5cc;
  color: #5b2a0e;
  font-weight: 900;
  text-align: center;
}

.autumn-shell-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}

.autumn-shell-head h2 {
  margin: 4px 0 0;
  color: #7b2d06;
  font-size: clamp(1.9rem, 2.7vw, 2.85rem);
  line-height: 1.04;
}

.autumn-shell-head p {
  margin: 6px 0 0;
  font-size: clamp(.98rem, 1.2vw, 1.12rem);
}

.autumn-grid {
  display: grid;
  gap: clamp(12px, 1vw, 16px);
  align-content: start;
}

.autumn-grid--eight {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.autumn-grid--five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.autumn-card {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  display: grid;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}

.autumn-card-photo {
  display: block;
  overflow: hidden;
  border-radius: 24px;
  border: 2px solid #ead5be;
  background: #f7efe2;
  box-shadow: 0 8px 24px rgba(108, 54, 14, .08);
}

.autumn-card-photo img {
  display: block;
  width: 100%;
  height: clamp(180px, 28vh, 300px);
  object-fit: cover;
}

.autumn-card-label {
  display: grid;
  place-items: center;
  min-height: 72px;
  padding: 12px 14px;
  border-radius: 22px;
  background: #f5e5cc;
  color: #5b2a0e;
  font-weight: 900;
  font-size: clamp(1rem, 1.55vw, 1.7rem);
  line-height: 1.05;
  text-align: center;
  box-shadow: inset 0 0 0 2px rgba(157, 90, 40, .08);
}

.autumn-card.is-revealed .autumn-card-photo {
  border-color: #d57d38;
}

.autumn-card.is-revealed .autumn-card-label {
  background: #fff0d8;
  color: #7b2d06;
}

.autumn-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.autumn-actions--top {
  justify-content: flex-end;
}

.autumn-actions--footer {
  justify-content: space-between;
}

#contenido:fullscreen .autumn-shell,
#contenido:-webkit-full-screen .autumn-shell,
.pdi-mode-fallback #contenido.pdi-mode-target .autumn-shell {
  min-height: calc(100dvh - 28px);
}

#contenido:fullscreen .autumn-shell--intro,
#contenido:-webkit-full-screen .autumn-shell--intro,
.pdi-mode-fallback #contenido.pdi-mode-target .autumn-shell--intro {
  min-height: calc(100dvh - 28px);
}

@media (max-width: 1180px) {
  .autumn-grid--five {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .autumn-shell--intro {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .autumn-grid--eight {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .autumn-shell-head {
    flex-direction: column;
    align-items: stretch;
  }

  .autumn-actions--top,
  .autumn-actions--footer {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .autumn-grid--eight,
  .autumn-grid--five,
  .autumn-preview-grid {
    grid-template-columns: 1fr;
  }

  .autumn-card-photo img {
    height: 220px;
  }
}

/* Asamblea · día de la semana. Un único diseño, sin los hotfix anteriores. */
#projector .projection-main[data-game="dia-semana"] {
  width: min(1500px, 96vw);
  padding: 12px 16px;
}

.weekday-activity {
  width: 100%;
  min-height: 0;
  max-height: 680px;
  flex: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(10px, 1.5dvh, 16px);
  margin: 0 auto;
  text-align: center;
}

.weekday-kicker {
  font-weight: 900;
  font-size: clamp(1rem, 1.4vw, 1.3rem);
  letter-spacing: .08em;
  line-height: 1.2;
  color: var(--rose);
}

#projector .weekday-activity h2 {
  max-width: none;
  margin: 0;
  font-size: clamp(2rem, 3.3vw, 3.5rem);
  line-height: 1.12;
  text-transform: uppercase;
}

.weekday-cards {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(12px, 1.2vw, 22px);
}

.weekday-card {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  gap: 10px;
  padding: 14px 10px 18px;
  border-radius: 26px;
  background: var(--rose);
  color: #fff;
  overflow: visible;
  transition: box-shadow .18s ease;
}

.weekday-card:hover,
.weekday-card:focus-visible,
.weekday-card:active {
  transform: none;
  background: var(--rose);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(166, 41, 93, .2);
}

.weekday-card.is-selected,
.weekday-card.is-today {
  box-shadow: 0 0 0 4px rgba(166, 41, 93, .28), 0 8px 18px rgba(64, 41, 55, .1);
}

.weekday-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88%;
  height: 100%;
  min-height: 0;
}

.weekday-letter-animal {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  border: 0;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.weekday-card strong {
  font-size: clamp(1.2rem, 1.7vw, 1.8rem);
  line-height: 1.15;
}

.weekday-answer {
  justify-self: center;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 16px;
  max-width: 100%;
  padding: 10px 22px;
  border: 2px dashed rgba(166, 41, 93, .4);
  border-radius: 28px;
  background: #fff4f8;
  line-height: 1.15;
}

.weekday-answer span {
  font-size: clamp(1.1rem, 1.6vw, 1.5rem);
  font-weight: 900;
}

.weekday-answer strong {
  color: var(--rose);
  font-size: clamp(1.4rem, 2.3vw, 2.3rem);
}

#projector:has(.weekday-activity) .projection-footer {
  padding: 10px 16px 16px;
}

@media (max-width: 820px) {
  #projector .projection-main[data-game="dia-semana"] {
    overflow-y: auto;
    justify-content: flex-start;
  }
  .weekday-activity {
    flex: none;
    max-height: none;
    gap: 14px;
    grid-template-rows: auto auto auto auto;
  }
  .weekday-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .weekday-card { height: 210px; }
  .weekday-card strong { font-size: 1rem; }
}

@media (max-width: 560px) {
  .weekday-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Asamblea · letra protagonista fija */
.letter-protagonist-card {
  position: relative;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 26px;
  text-align: center;
  border-radius: 32px;
  background: linear-gradient(145deg, #fff8fb, #fff);
  overflow: hidden;
}

.letter-protagonist-a {
  display: block;
  width: fit-content;
  margin: 12px auto 20px;
  font-size: clamp(8rem, 22vw, 15rem);
  line-height: .82;
  font-weight: 1000;
  color: var(--rose);
  text-shadow: 0 9px 0 rgba(166, 41, 93, .09);
  animation: rosaLetterFloat 2.4s ease-in-out infinite;
}

.letter-protagonist-star {
  position: absolute;
  color: #f3b32f;
  font-size: 2rem;
  animation: rosaStarTwinkle 1.8s ease-in-out infinite;
}

.letter-protagonist-star.star-one { left: 9%; top: 16%; }
.letter-protagonist-star.star-two { right: 10%; top: 25%; animation-delay: .45s; }
.letter-protagonist-star.star-three { right: 22%; bottom: 12%; animation-delay: .9s; }

@keyframes rosaLetterFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes rosaStarTwinkle {
  0%, 100% { opacity: .45; transform: scale(.8) rotate(0); }
  50% { opacity: 1; transform: scale(1.2) rotate(18deg); }
}

@media (prefers-reduced-motion: reduce) {
  .letter-protagonist-a,
  .letter-protagonist-star { animation: none; }
}

.pdi-mode-fallback #contenido.pdi-mode-target .pdi-timer-page-head { display:none; }
.pdi-mode-fallback #contenido.pdi-mode-target .pdi-timer-stage {
  min-height:calc(100dvh - 76px);
  margin:0;
}
.pdi-mode-fallback #contenido.pdi-mode-target .timer-started .pdi-timer-layout {
  min-height:calc(100dvh - 125px);
}
