/* Solo las secciones que inicializa games-extra.js; ningún estilo global. */
section[data-myp-game].myp-extra-game {
  --myp-extra-ink: #183047;
  --myp-extra-line: #9db1bd;
  --myp-extra-paper: #ffffff;
  --myp-extra-soft: #f0f6fa;
  --myp-extra-highlight: #eaf4d9;
  --myp-extra-contrast: #174d61;
  color: var(--myp-extra-ink);
  max-width: 100%;
  overflow-wrap: anywhere;
}
section[data-myp-game].myp-extra-game,
section[data-myp-game].myp-extra-game * { box-sizing: border-box; }
section[data-myp-game].myp-extra-game .myp-extra-heading { margin: 0 0 .5rem; font-size: 1.2rem; line-height: 1.35; }
section[data-myp-game].myp-extra-game .myp-extra-subheading { margin: .75rem 0 .45rem; font-size: 1rem; line-height: 1.4; }
section[data-myp-game].myp-extra-game .myp-extra-help { margin: .25rem 0 .85rem; line-height: 1.5; }
section[data-myp-game].myp-extra-game .myp-extra-button {
  appearance: none;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: .3rem;
  min-height: 44px;
  min-width: 0;
  max-width: 100%;
  padding: .65rem .8rem;
  border: 2px solid var(--myp-extra-line);
  border-radius: .65rem;
  color: var(--myp-extra-ink);
  background: var(--myp-extra-paper);
  font: inherit;
  line-height: 1.3;
  text-align: center;
  text-transform: none;
  letter-spacing: normal;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
  touch-action: manipulation;
}
section[data-myp-game].myp-extra-game .myp-extra-button:hover:not(:disabled) {
  background: var(--myp-extra-soft);
  border-color: var(--myp-extra-contrast);
}
section[data-myp-game].myp-extra-game .myp-extra-button:focus-visible {
  outline: 3px solid #bb5700;
  outline-offset: 2px;
  position: relative;
  z-index: 1;
}
section[data-myp-game].myp-extra-game .myp-extra-button:disabled { cursor: default; opacity: 1; }
section[data-myp-game].myp-extra-game .myp-extra-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: .9rem 0 .7rem;
}
section[data-myp-game].myp-extra-game .myp-extra-actions .myp-extra-button {
  flex: 0 1 auto;
  font-weight: 650;
  border-color: var(--myp-extra-contrast);
}
section[data-myp-game].myp-extra-game .myp-extra-success {
  font-weight: 650;
  margin: .85rem 0;
}
section[data-myp-game].myp-extra-game .myp-extra-finish { padding: 1rem; border: 2px solid var(--myp-extra-line); border-radius: .8rem; }
section[data-myp-game].myp-extra-game .myp-extra-glyph { font-size: 1.6em; line-height: 1.2; }
section[data-myp-game].myp-extra-game .myp-extra-token { display: inline-flex; flex-direction: column; align-items: center; gap: .2rem; }
section[data-myp-game].myp-extra-game .myp-extra-token-name { font-size: .9rem; line-height: 1.2; }
section[data-myp-game].myp-extra-game .myp-extra-token-compact .myp-extra-token-name { font-size: .75rem; }
section[data-myp-game].myp-extra-game .myp-extra-pattern {
  display: flex; flex-wrap: wrap; align-items: stretch; gap: .35rem; margin: .65rem 0 1rem;
}
section[data-myp-game].myp-extra-game .myp-extra-pattern-tile {
  display: flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 64px; padding: .4rem;
  border: 1px solid var(--myp-extra-line); border-radius: .45rem;
  background: var(--myp-extra-soft); font-size: 1.2rem; font-weight: 550;
}
section[data-myp-game].myp-extra-game .myp-extra-pattern-tile .myp-extra-glyph { font-size: 1.3rem; }
section[data-myp-game].myp-extra-game .myp-extra-missing { border-style: dashed; border-width: 2px; min-width: 52px; }
section[data-myp-game].myp-extra-game .myp-extra-choice-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; max-width: 580px;
}
section[data-myp-game].myp-extra-game .myp-extra-option { min-height: 74px; }
section[data-myp-game].myp-extra-game .myp-extra-choice-label { font-weight: 550; }
section[data-myp-game].myp-extra-game .myp-extra-option-note,
section[data-myp-game].myp-extra-game .myp-extra-cell-result { font-size: .78rem; font-weight: 750; }
section[data-myp-game].myp-extra-game .myp-extra-correct {
  border: 3px solid #267343;
  background: var(--myp-extra-highlight);
}
section[data-myp-game].myp-extra-game .myp-extra-wrong {
  border: 3px dashed #9b4e24;
  background: #fff2e7;
}
section[data-myp-game].myp-extra-game .myp-extra-spelling {
  display: flex; flex-wrap: wrap; align-items: center; gap: .7rem;
  padding: .8rem 0; font-size: 1.35rem; font-weight: 700;
}
section[data-myp-game].myp-extra-game .myp-extra-spelling-glyph { font-size: 1.6rem; }
section[data-myp-game].myp-extra-game .myp-extra-spelling-blank { letter-spacing: .04em; }
section[data-myp-game].myp-extra-game .myp-extra-word-layout {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: .8rem; align-items: start; margin-top: .85rem;
}
section[data-myp-game].myp-extra-game .myp-extra-letter-grid {
  display: grid; grid-template-columns: repeat(6,minmax(0,1fr));
  gap: 4px; width: 100%; max-width: 374px; min-width: 0;
}
section[data-myp-game].myp-extra-game .myp-extra-letter {
  width: 100%; min-height: 0; aspect-ratio: 1; padding: 0;
  border-radius: .35rem; font-size: clamp(1rem, 3.8vw, 1.25rem); font-weight: 750;
}
section[data-myp-game].myp-extra-game .myp-extra-selected {
  outline: 3px solid #a45200; outline-offset: -4px;
  background: #fff0cf;
}
section[data-myp-game].myp-extra-game .myp-extra-found { border: 3px solid #267343; background: var(--myp-extra-highlight); }
section[data-myp-game].myp-extra-game .myp-extra-words {
  display: flex; flex-wrap: wrap; gap: .35rem .75rem; list-style: none; margin: .35rem 0; padding: 0;
}
section[data-myp-game].myp-extra-game .myp-extra-words li {
  padding: .3rem .45rem; border: 1px solid var(--myp-extra-line); border-radius: .4rem;
  font-weight: 600;
}
section[data-myp-game].myp-extra-game .myp-extra-word-done { background: var(--myp-extra-highlight); text-decoration: underline; }
section[data-myp-game].myp-extra-game .myp-extra-story-layout {
  display: grid; grid-template-columns: minmax(0,1fr); gap: .7rem; margin-top: .8rem;
}
section[data-myp-game].myp-extra-game .myp-extra-story-column {
  display: flex; flex-direction: column; align-items: stretch; gap: .55rem;
  border: 1px solid var(--myp-extra-line); border-radius: .7rem; padding: .65rem;
  min-width: 0;
}
section[data-myp-game].myp-extra-game .myp-extra-story-column .myp-extra-subheading { margin-top: 0; }
section[data-myp-game].myp-extra-game .myp-extra-story-column .myp-extra-button { text-align: left; align-items: start; }
section[data-myp-game].myp-extra-game .myp-extra-chosen-step { background: var(--myp-extra-soft); }
section[data-myp-game].myp-extra-game .myp-extra-tens-view {
  max-width: 600px; padding: .5rem .65rem .85rem; border: 1px solid var(--myp-extra-line);
  border-radius: .7rem; margin: .6rem 0 1rem;
}
section[data-myp-game].myp-extra-game .myp-extra-tenbars {
  display: flex; flex-wrap: wrap; gap: .5rem; align-items: start;
}
section[data-myp-game].myp-extra-game .myp-extra-tenbar {
  display: grid; grid-template-columns: repeat(10,minmax(0,1fr)); gap: 1px;
  width: 134px; height: 27px; padding: 2px; border: 2px solid #174d61; border-radius: .3rem;
  background: var(--myp-extra-paper);
}
section[data-myp-game].myp-extra-game .myp-extra-ten-segment {
  min-width: 0; background: #a4d4d7; border: 1px solid #236178;
}
section[data-myp-game].myp-extra-game .myp-extra-units { display: flex; flex-wrap: wrap; gap: .55rem; min-height: 29px; }
section[data-myp-game].myp-extra-game .myp-extra-unit {
  display: inline-block; width: 25px; height: 25px; border-radius: 50%;
  background: #f3ca75; border: 2px solid #8a6219;
}
section[data-myp-game].myp-extra-game .myp-extra-no-units { font-style: italic; }
section[data-myp-game].myp-extra-game .myp-extra-reference-label { font-weight: 600; margin: .55rem 0; }
section[data-myp-game].myp-extra-game .myp-extra-position-grid {
  display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px;
  width: 100%; max-width: 390px; margin: .75rem 0 1rem;
}
section[data-myp-game].myp-extra-game .myp-extra-position-cell {
  width: 100%; min-height: 89px; padding: .25rem; gap: .18rem;
  border-radius: .4rem; font-size: .9rem;
}
section[data-myp-game].myp-extra-game .myp-extra-position-cell .myp-extra-glyph { font-size: 1.65rem; }
section[data-myp-game].myp-extra-game .myp-extra-grid-name { font-size: .78rem; }
section[data-myp-game].myp-extra-game .myp-extra-empty-cell { font-size: 2rem; line-height: 1; }
section[data-myp-game].myp-extra-game .myp-extra-reference {
  border-style: double; border-width: 4px; border-color: #174d61; background: var(--myp-extra-soft);
}
section[data-myp-game].myp-extra-game .myp-extra-ref { font-size: .72rem; font-weight: 750; text-decoration: underline; }
@media (min-width: 670px) {
  section[data-myp-game].myp-extra-game .myp-extra-word-layout { grid-template-columns: minmax(0,374px) minmax(0,1fr); }
  section[data-myp-game].myp-extra-game .myp-extra-story-layout { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 350px) {
  section[data-myp-game].myp-extra-game .myp-extra-choice-grid { gap: .35rem; }
  section[data-myp-game].myp-extra-game .myp-extra-option { padding: .5rem .3rem; }
  section[data-myp-game].myp-extra-game .myp-extra-position-grid { gap: 3px; }
}
