:root {
  color-scheme: light;
  --ink: #16202a;
  --muted: #667386;
  --line: #d9e2ee;
  --paper: #ffffff;
  --panel: #f4f7fb;
  --soft: #eef5fb;
  --accent: #235f9f;
  --accent-dark: #174876;
  --brand-orange: #f49a21;
  --brand-green: #24856b;
  --shadow: 0 18px 50px rgba(23, 40, 64, 0.1);
}

@font-face {
  font-family: "Montserrat";
  src: url("../palabras-cruzadas/assets/Montserrat-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../palabras-cruzadas/assets/Montserrat-Bold.ttf") format("truetype");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(244, 154, 33, 0.14), transparent 28rem),
    radial-gradient(circle at top right, rgba(36, 133, 107, 0.1), transparent 30rem),
    linear-gradient(180deg, #fbfdff 0%, #eef3f8 100%),
    var(--panel);
  color: var(--ink);
  font-family: "Montserrat", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
p {
  margin: 0;
}

.app-shell {
  min-height: 100vh;
  padding: 16px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 22px;
  max-width: 1380px;
  margin: 0 auto;
}

.control-panel {
  align-self: start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 18px;
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #9db7d5 transparent;
}

.control-panel::-webkit-scrollbar {
  width: 8px;
}

.control-panel::-webkit-scrollbar-track {
  background: transparent;
}

.control-panel::-webkit-scrollbar-thumb {
  background: #c7d7ea;
  border-radius: 999px;
}

.library-link {
  width: max-content;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 0 12px;
  border: 1px solid #d8e4f1;
  border-radius: 999px;
  background: #ffffff;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(18, 32, 45, 0.06);
}

.library-link::before {
  content: "";
  width: 8px;
  height: 8px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.brand-block {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 16px;
  margin: 0 0 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(18, 32, 45, 0.05);
}

.brand-block > div::before {
  content: "SCOLATIO.COM";
  display: block;
  margin-bottom: 3px;
  color: var(--brand-green);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(23, 33, 43, 0.08);
  box-shadow: 0 10px 22px rgba(18, 32, 45, 0.12);
  object-fit: contain;
  padding: 6px;
}

h1 {
  font-size: 1.18rem;
  line-height: 1.08;
  font-weight: 900;
}

.brand-block p {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  margin-top: 5px;
}

.controls {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-weight: 700;
  font-size: 0.86rem;
}

select,
input[type="text"],
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  color: var(--ink);
  padding: 0 12px;
  font-weight: 700;
}

select,
input[type="text"] {
  min-height: 42px;
}

textarea {
  min-height: 92px;
  padding-top: 10px;
  padding-bottom: 10px;
  resize: vertical;
  line-height: 1.35;
}

.quick-games {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: -4px;
}

.quick-games button {
  min-height: 31px;
  padding: 0 10px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--accent-dark);
  border-color: #cbd8e6;
  font-size: 0.72rem;
  font-weight: 900;
  box-shadow: 0 6px 14px rgba(18, 32, 45, 0.05);
}

.quick-games button[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.custom-field {
  display: grid;
  gap: 8px;
}

.custom-field label {
  display: block;
}

.compact-btn {
  min-height: 36px;
  width: max-content;
  padding: 0 13px;
  border-color: #cbd8e6;
  border-radius: 999px;
  color: var(--accent-dark);
  font-size: 0.74rem;
  font-weight: 900;
}

.button-stack {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

button:hover {
  border-color: #9db2ca;
  background: #f8fbff;
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.primary-btn {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.primary-btn:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.activity-panel {
  min-width: 0;
}

.worksheet {
  background: #fff;
  border: 1px solid #d7e1ec;
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(19, 35, 56, 0.13);
  overflow: hidden;
}

.worksheet-masthead {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px 26px 16px;
  border-top: 8px solid var(--brand-orange);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(244, 154, 33, 0.08), transparent 36%),
    linear-gradient(135deg, #ffffff 0%, #fbfdff 60%, #f4f8fb 100%);
}

.masthead-brand {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.worksheet-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(18, 32, 45, 0.12);
  padding: 6px;
}

.worksheet-kicker {
  color: var(--brand-green);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

#worksheet-title {
  font-size: clamp(1.85rem, 2.8vw, 2.65rem);
  line-height: 1;
  color: #111827;
}

.issue-card {
  min-width: 210px;
  display: grid;
  gap: 6px;
  padding: 11px 0 11px 18px;
  border-left: 3px solid var(--accent);
  color: #28384a;
  font-weight: 800;
  text-align: right;
  background: linear-gradient(90deg, rgba(35, 95, 159, 0.04), transparent);
}

.issue-card p {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.15;
}

.issue-card p:empty {
  display: none;
}

.issue-card p:nth-child(2) {
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
  color: #0f172a;
}

.student-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.58fr);
  gap: 20px;
  padding: 10px 26px;
  border-bottom: 1px solid var(--line);
  background: #fbfdff;
  color: #35465a;
  font-weight: 800;
}

.student-strip p {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: end;
}

.student-strip p::after {
  content: "";
  border-bottom: 1.5px solid #27384a;
  transform: translateY(-3px);
}

.activity-instructions {
  padding: 10px 26px 0;
  color: #172333;
  font-size: 12px;
  line-height: 1.32;
  text-align: center;
}

.activity-instructions strong {
  display: block;
  margin-bottom: 3px;
  color: var(--brand-green);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.worksheet .student-strip {
  display: none;
}

.worksheet .activity-instructions {
  padding: 14px 26px 0;
  font-size: clamp(0.86rem, 1.1vw, 1rem);
  line-height: 1.38;
}

.worksheet .activity-instructions strong {
  margin-bottom: 7px;
  color: var(--brand-green);
  font-size: clamp(1.34rem, 2.15vw, 1.95rem);
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
}

.worksheet .worksheet-body {
  padding-top: 24px;
}

.worksheet-body {
  padding: 14px 26px 16px;
}

.game-sheet {
  display: grid;
  gap: 14px;
}

.game-sheet[data-count="1"] {
  grid-template-columns: 1fr;
}

.game-sheet[data-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.worksheet[data-game="tutti-frutti"] .game-sheet[data-count="2"],
.worksheet[data-game="batalla-naval"] .game-sheet[data-count="2"] {
  grid-template-columns: 1fr;
  gap: 28px;
  position: relative;
}

.worksheet[data-game="tutti-frutti"] .game-sheet[data-count="2"]::before,
.worksheet[data-game="tutti-frutti"] .game-sheet[data-count="2"]::after,
.worksheet[data-game="batalla-naval"] .game-sheet[data-count="2"]::before,
.worksheet[data-game="batalla-naval"] .game-sheet[data-count="2"]::after {
  content: "\2702";
  position: absolute;
  left: 0;
  right: 0;
  border-top: 2px dashed #94a8bd;
  color: #94a8bd;
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 0;
  pointer-events: none;
  text-align: left;
}

.worksheet[data-game="tutti-frutti"] .game-sheet[data-count="2"]::before,
.worksheet[data-game="batalla-naval"] .game-sheet[data-count="2"]::before {
  top: -13px;
}

.worksheet[data-game="tutti-frutti"] .game-sheet[data-count="2"]::after,
.worksheet[data-game="batalla-naval"] .game-sheet[data-count="2"]::after {
  top: calc(50% - 14px);
}

.game-sheet[data-count="4"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.game-sheet[data-count="6"],
.game-sheet[data-count="9"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.game-card {
  min-height: 180px;
  border: 1.5px solid #cbd8e6;
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  display: grid;
  grid-template-rows: 1fr;
  break-inside: avoid;
}

.game-area {
  min-height: 0;
  display: grid;
  place-items: center;
}

.board-tateti {
  width: min(100%, 235px);
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  position: relative;
}

.board-tateti span {
  border: 0;
}

.board-tateti::before,
.board-tateti::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent calc(33.333% - 2.5px), #111827 calc(33.333% - 2.5px), #111827 calc(33.333% + 2.5px), transparent calc(33.333% + 2.5px)),
    linear-gradient(90deg, transparent calc(66.666% - 2.5px), #111827 calc(66.666% - 2.5px), #111827 calc(66.666% + 2.5px), transparent calc(66.666% + 2.5px));
  border-radius: 999px;
}

.board-tateti::after {
  transform: rotate(90deg);
}

.game-card.tateti {
  min-height: clamp(180px, 24vw, 360px);
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 8px;
  grid-template-rows: 1fr;
}

.game-card.tateti .board-tateti {
  width: min(100%, 330px);
}

.dot-board {
  width: min(100%, 300px);
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: repeat(var(--dots), 1fr);
  grid-template-rows: repeat(var(--dots), 1fr);
  place-items: center;
  padding: 4px;
}

.dot-board span {
  width: clamp(5px, calc(34px / var(--dots)), 8px);
  height: clamp(5px, calc(34px / var(--dots)), 8px);
  border-radius: 50%;
  background: #111827;
}

.game-card.ceritos {
  min-height: clamp(190px, 25vw, 380px);
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 8px;
  grid-template-rows: 1fr;
}

.game-card.ceritos .dot-board {
  width: min(100%, 350px);
}

.game-card.batalla-naval {
  min-height: clamp(260px, 35vw, 560px);
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 8px;
  grid-template-rows: 1fr;
}

.naval-duo {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.naval-wrap {
  display: grid;
  gap: 8px;
  width: 100%;
}

.naval-label {
  width: min(100%, 440px);
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border: 1px solid #cbd8e6;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #f8fbff, #eef5fb);
  color: var(--accent-dark);
  font-size: 0.84rem;
  font-weight: 900;
}

.naval-board {
  display: grid;
  grid-template-columns: repeat(var(--naval-cells), 1fr);
  width: min(100%, 440px);
  margin: 0 auto;
  border: 2px solid #111827;
  border-top-width: 1px;
}

.naval-board span {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid #1f2937;
  color: #1f2937;
  font-size: clamp(0.42rem, calc(6.8rem / var(--naval-cells)), 0.68rem);
  font-weight: 900;
}

.game-sheet[data-count="2"] .game-card.batalla-naval {
  min-height: 510px;
}

.game-sheet[data-count="2"] .game-card.batalla-naval .naval-duo {
  grid-template-columns: 1fr;
  gap: 12px;
}

.game-sheet[data-count="2"] .game-card.batalla-naval .naval-board {
  width: min(100%, 250px);
}

.game-sheet[data-count="2"] .game-card.batalla-naval .naval-label {
  width: min(100%, 250px);
  min-height: 28px;
  font-size: 0.76rem;
}

.worksheet[data-game="batalla-naval"] .game-sheet[data-count="2"] .game-card.batalla-naval {
  min-height: 300px;
}

.worksheet[data-game="batalla-naval"] .game-sheet[data-count="2"] .game-card.batalla-naval .naval-duo {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.worksheet[data-game="batalla-naval"] .game-sheet[data-count="2"] .game-card.batalla-naval .naval-board,
.worksheet[data-game="batalla-naval"] .game-sheet[data-count="2"] .game-card.batalla-naval .naval-label {
  width: min(100%, 310px);
}

.game-card.ahorcado {
  min-height: clamp(240px, 34vw, 500px);
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 8px;
  grid-template-rows: 1fr;
}

.hangman {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(110px, 0.78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: 22px;
}

.hangman-drawing {
  width: min(100%, 260px);
  aspect-ratio: 1 / 0.86;
  position: relative;
  margin: 0 auto;
}

.hangman-drawing::before {
  content: "";
  position: absolute;
  left: 16%;
  right: 12%;
  bottom: 12%;
  height: 76%;
  border-left: 5px solid #111827;
  border-top: 5px solid #111827;
  border-bottom: 5px solid #111827;
  border-radius: 2px;
}

.hangman-drawing::after {
  content: "";
  position: absolute;
  left: 58%;
  top: 12%;
  height: 22%;
  border-left: 4px solid #111827;
  border-radius: 999px;
}

.hangman-panel {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.word-boxes {
  display: grid;
  grid-template-columns: repeat(var(--letter-cols), minmax(0, 1fr));
  gap: 7px;
}

.word-boxes span {
  aspect-ratio: 1;
  min-height: 30px;
  border: 1.7px solid #94a8bd;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.used-letters {
  display: grid;
  gap: 7px;
}

.used-letters strong,
.hint-line strong {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
}

.used-letters div {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 5px;
}

.used-letters span {
  aspect-ratio: 1;
  border: 1.4px solid #cbd8e6;
  border-radius: 5px;
  background: #fbfdff;
}

.hint-line {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: end;
  gap: 10px;
}

.hint-line span {
  height: 1px;
  border-bottom: 1.5px solid #94a8bd;
  transform: translateY(-4px);
}

.game-sheet[data-count="4"] .game-card.ahorcado .hangman,
.game-sheet[data-count="6"] .game-card.ahorcado .hangman,
.game-sheet[data-count="9"] .game-card.ahorcado .hangman {
  grid-template-columns: 1fr;
  gap: 12px;
}

.game-sheet[data-count="4"] .game-card.ahorcado .hangman-drawing,
.game-sheet[data-count="6"] .game-card.ahorcado .hangman-drawing,
.game-sheet[data-count="9"] .game-card.ahorcado .hangman-drawing {
  width: min(100%, 150px);
}

.game-sheet[data-count="4"] .game-card.ahorcado .word-boxes span,
.game-sheet[data-count="6"] .game-card.ahorcado .word-boxes span,
.game-sheet[data-count="9"] .game-card.ahorcado .word-boxes span {
  min-height: 22px;
}

.table-game {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
  font-weight: 800;
}

.table-game th,
.table-game td {
  border: 1.5px solid #111827;
  height: 31px;
  padding: 4px;
  text-align: left;
}

.table-game th {
  background: #eef5fb;
}

.game-card.tutti-frutti {
  min-height: clamp(250px, 30vw, 445px);
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 8px;
  grid-template-rows: 1fr;
}

.frutti-table {
  width: 100%;
  height: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1.7px solid #cbd8e6;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(18, 32, 45, 0.05);
  font-size: 0.74rem;
  font-weight: 800;
}

.frutti-table th {
  height: 38px;
  background: linear-gradient(180deg, #f8fbff, #eef5fb);
  color: #172333;
  font-size: 0.7rem;
  font-weight: 900;
  text-align: center;
}

.frutti-table th:first-child {
  color: var(--accent);
}

.frutti-table td {
  height: 36px;
  background: #ffffff;
}

.frutti-table th,
.frutti-table td {
  border-right: 1.4px solid #d8e2ed;
  border-bottom: 1.4px solid #d8e2ed;
}

.frutti-table th:last-child,
.frutti-table td:last-child {
  border-right: 0;
}

.frutti-table tbody tr:last-child td {
  border-bottom: 0;
}

.bingo-card {
  width: min(100%, 360px);
  overflow: hidden;
  border: 2.5px solid #172333;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 12px 22px rgba(17, 24, 39, 0.08);
}

.bingo-cut {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 382px);
  padding: 6px;
  border: 1.5px dashed #9badbf;
  border-radius: 12px;
}

.game-sheet[data-count="6"] .bingo-cut {
  width: min(100%, 318px);
}

.bingo-cut.has-scissors::before {
  content: "\2702";
  position: absolute;
  left: -6px;
  top: -9px;
  color: #8aa0b5;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1;
  background: #ffffff;
}

.bingo-title {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: linear-gradient(180deg, #235f9f, #174876);
  color: #fff;
  font-weight: 900;
  text-align: center;
}

.bingo-title span {
  padding: 10px 0;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.bingo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.bingo-grid span {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1.3px solid #cbd8e6;
  font-size: clamp(0.9rem, 1.35vw, 1.08rem);
  font-weight: 900;
}

.bingo-grid span:nth-child(13) {
  background: #fff7ed;
  color: #f49a21;
}

.code-card {
  width: min(100%, 360px);
  display: grid;
  gap: 10px;
}

.points-card {
  width: min(100%, 540px);
  display: grid;
  gap: 10px;
}

.code-key {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.code-key span {
  min-height: 34px;
  display: grid;
  grid-template-columns: 1fr 22px;
  align-items: center;
  overflow: hidden;
  border: 1.4px solid #cbd8e6;
  border-radius: 7px;
  background: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
}

.code-key b,
.code-key i {
  display: grid;
  place-items: center;
  min-height: 34px;
  font-style: normal;
}

.code-key b {
  background: #eef5fb;
  color: #235f9f;
}

.code-key i {
  color: #172333;
}

.code-message,
.code-answer {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
}

.code-message span,
.code-answer span {
  min-height: 32px;
  display: grid;
  place-items: center;
  border: 1.4px solid #cbd8e6;
  border-radius: 6px;
  background: #ffffff;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 900;
}

.code-answer span {
  border-style: dashed;
  background: #fbfdff;
}

.code-answer .space {
  border: 0;
  background: transparent;
}

.points-card svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 18px rgba(17, 24, 39, 0.08));
}

.connect-dots circle {
  filter: drop-shadow(0 2px 0 rgba(255, 255, 255, 0.7));
}

.connect-dots text {
  paint-order: stroke;
  stroke: #ffffff;
  stroke-width: 2px;
  stroke-linejoin: round;
}

.mini-sudoku {
  width: min(100%, 260px);
  display: grid;
  overflow: hidden;
  border: 2.5px solid #172333;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 10px 18px rgba(17, 24, 39, 0.07);
}

.four-board {
  width: min(100%, 690px);
  aspect-ratio: 7 / 6;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  overflow: hidden;
  justify-self: center;
  border: 3px solid #172333;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 32px rgba(17, 24, 39, 0.1);
}

.four-board span {
  aspect-ratio: 1;
  display: block;
  border: 1.5px solid #cbd8e6;
  background:
    radial-gradient(circle, #ffffff 39%, #dbeafe 40%, #dbeafe 67%, transparent 68%),
    linear-gradient(180deg, #ffffff, #eef5fb);
}

.domino-sheet {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
  padding: 12px;
  border: 1.5px solid #d7e2ee;
  border-radius: 10px;
  background:
    linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75);
}

.game-card.domino {
  min-height: 760px;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.domino-cut {
  position: relative;
  display: block;
  padding: 5px;
  border: 1.5px dashed #9badbf;
  border-radius: 10px;
}

.domino-cut.has-scissors::before {
  content: "\2702";
  position: absolute;
  left: -6px;
  top: -9px;
  color: #8aa0b5;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1;
  background: #ffffff;
}

.domino-tile {
  aspect-ratio: 2.08 / 1;
  display: grid;
  grid-template-columns: 1fr 2px 1fr;
  align-items: stretch;
  border: 2px solid #172333;
  border-radius: 9px;
  background: linear-gradient(90deg, #eef7ff 0 49.5%, #f1fbf7 50.5% 100%);
  box-shadow:
    0 8px 16px rgba(17, 24, 39, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}

.domino-half {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  align-items: center;
  justify-items: center;
  padding: 10%;
}

.domino-half i {
  width: min(28%, 12px);
  aspect-ratio: 1;
  display: block;
  border-radius: 50%;
}

.domino-half i.is-active {
  background: #172333;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.domino-divider {
  align-self: stretch;
  margin: 9px 0;
  border-radius: 999px;
  background: #f49a21;
}

.who-grid {
  width: 100%;
  min-height: 700px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.game-card.quien-soy {
  min-height: 745px;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.game-card.quien-soy .game-area {
  align-items: stretch;
  justify-items: stretch;
}

.who-cut {
  position: relative;
  display: block;
  padding: 7px;
  border: 1.5px dashed #9badbf;
  border-radius: 12px;
}

.who-cut.has-scissors::before {
  content: "\2702";
  position: absolute;
  left: -6px;
  top: -9px;
  color: #8aa0b5;
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1;
  background: #ffffff;
}

.who-card {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) 4px auto;
  gap: 10px;
  align-items: center;
  justify-items: center;
  overflow: hidden;
  border: 2px solid #cbd8e6;
  border-radius: 13px;
  background:
    radial-gradient(circle at 16% 20%, rgba(244, 154, 33, 0.16), transparent 24%),
    radial-gradient(circle at 86% 76%, rgba(35, 95, 159, 0.12), transparent 28%),
    linear-gradient(180deg, #ffffff 0 68%, #f8fbff 68% 100%);
  box-shadow:
    0 8px 16px rgba(17, 24, 39, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.9);
  padding: 12px 10px 10px;
}

.who-card small {
  width: 100%;
  padding: 7px 8px;
  border-radius: 999px;
  background: #eef5fb;
  color: var(--accent);
  font-size: 0.64rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.who-card b {
  display: grid;
  place-items: center;
  color: #111827;
  font-size: clamp(0.92rem, 1.55vw, 1.22rem);
  font-weight: 900;
  line-height: 1.08;
  text-align: center;
  padding: 2px 4px;
}

.who-card i {
  display: block;
  height: 3px;
  width: 46%;
  border-radius: 999px;
  background: #f49a21;
}

.who-card em {
  color: #667386;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.game-card.memory {
  min-height: 760px;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.memory-grid {
  width: 100%;
  display: grid;
  gap: 11px;
  padding: 12px;
  border: 1.5px solid #d7e2ee;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75);
}

.memory-grid[data-cards="12"] {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(140px, 1fr));
}

.memory-grid[data-cards="16"] {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(118px, 1fr));
}

.memory-grid[data-cards="20"] {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(112px, 1fr));
}

.memory-cut {
  position: relative;
  display: block;
  min-width: 0;
  padding: 5px;
  border: 1.5px dashed #9badbf;
  border-radius: 10px;
}

.memory-cut.has-scissors::before {
  content: "\2702";
  position: absolute;
  left: -6px;
  top: -9px;
  color: #8aa0b5;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1;
  background: #ffffff;
}

.memory-card {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  justify-items: center;
  padding: 10px 8px 9px;
  border: 2px solid #cbd8e6;
  border-radius: 10px;
  background: #ffffff;
  box-shadow:
    0 8px 16px rgba(17, 24, 39, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}

.memory-icon {
  width: min(88%, 120px);
  height: auto;
  max-height: 92px;
}

.memory-card b {
  width: 100%;
  padding-top: 7px;
  border-top: 1.5px solid #e2e8f0;
  color: #172333;
  font-size: clamp(0.62rem, 1.1vw, 0.84rem);
  font-weight: 900;
  line-height: 1;
  text-align: center;
  letter-spacing: 0;
}

.game-card.tangram {
  min-height: 760px;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  display: block;
}

.tangram-sheet {
  width: 100%;
  min-height: 760px;
  display: grid;
  place-items: center;
  padding: 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75);
}

.assembled-tangram {
  position: relative;
  width: min(100%, 720px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 16px;
  border: 1.5px dashed #9badbf;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 32px rgba(17, 24, 39, 0.08);
}

.assembled-tangram.has-scissors::before {
  content: "\2702";
  position: absolute;
  left: 5px;
  top: 2px;
  color: #8aa0b5;
  font-size: 1.18rem;
  font-weight: 900;
  line-height: 1;
  background: #ffffff;
}

.tangram-square {
  width: min(100%, 665px);
  height: auto;
  filter:
    drop-shadow(0 14px 18px rgba(17, 24, 39, 0.14))
    drop-shadow(0 1px 0 rgba(255, 255, 255, 0.6));
}

.tangram-fill polygon {
  stroke: none;
  stroke-linejoin: round;
}

.tangram-gap-lines line,
.tangram-gap-outer {
  stroke: #ffffff;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.game-card.cuatro-linea,
.game-card.ludo,
.game-card.damas,
.game-card.ajedrez {
  min-height: 760px;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  display: block;
}

.print-board-layout {
  width: 100%;
  min-height: 760px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 148px;
  gap: 16px;
  align-items: center;
}

.connect-four-layout {
  grid-template-columns: minmax(0, 1fr) 168px;
}

.ludo-board,
.checkers-board,
.chess-board {
  width: min(100%, 690px);
  aspect-ratio: 1;
  display: grid;
  justify-self: center;
  overflow: hidden;
  border: 3px solid #172333;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 32px rgba(17, 24, 39, 0.1);
}

.ludo-board {
  display: block;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.ludo-board-cut {
  position: relative;
  justify-self: center;
  width: min(100%, 714px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 12px;
  border: 1.5px dashed #9badbf;
  border-radius: 14px;
  background: #ffffff;
}

.ludo-board-cut.has-scissors::before {
  content: "\2702";
  position: absolute;
  left: -6px;
  top: -10px;
  color: #8aa0b5;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  background: #ffffff;
}

.ludo-board svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  filter: drop-shadow(0 18px 28px rgba(17, 24, 39, 0.12));
}

.checkers-board,
.chess-board {
  grid-template-columns: repeat(8, 1fr);
}

.checkers-board span,
.chess-board span {
  border: 1px solid #172333;
}

.checkers-board .light,
.chess-board .light {
  background: #f8fbff;
}

.checkers-board .dark,
.chess-board .dark {
  background: #334155;
}

.piece-bank {
  align-self: stretch;
  display: grid;
  align-content: center;
  gap: 9px;
  padding: 12px;
  border: 1.5px solid #d7e2ee;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.ludo-pieces {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.checker-pieces {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.chess-pieces {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 7px;
}

.four-pieces {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.cut-piece {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 5px;
  border: 1.5px dashed #9badbf;
  border-radius: 10px;
}

.cut-piece.has-scissors::before {
  content: "\2702";
  position: absolute;
  left: -6px;
  top: -9px;
  color: #8aa0b5;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1;
  background: #ffffff;
}

.cut-piece i {
  width: 82%;
  aspect-ratio: 1;
  display: block;
  border: 2px solid rgba(23, 35, 51, 0.52);
  border-radius: 50%;
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.45),
    0 6px 10px rgba(17, 24, 39, 0.12);
}

.cut-piece.green i {
  background: #2fb077;
}

.cut-piece.yellow i {
  background: #f4c542;
}

.cut-piece.four-piece.red i {
  background: #ef4444;
}

.cut-piece.four-piece.yellow i {
  background: #facc15;
}

.cut-piece.blue i {
  background: #3b82c4;
}

.cut-piece.red i {
  background: #ef5b5b;
}

.cut-piece.checker.dark i {
  background: #172333;
}

.cut-piece.checker.light i {
  background: #f8fbff;
}

.cut-piece.chess {
  padding: 3px;
}

.cut-piece.chess i {
  display: grid;
  place-items: center;
  color: #172333;
  font-style: normal;
  line-height: 1;
}

.cut-piece.chess.dark i {
  background: #172333;
  color: #ffffff;
}

.cut-piece.chess.light i {
  background: #f8fbff;
  color: #172333;
}

.chess-icon {
  width: 78%;
  height: 78%;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 0;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chess-icon .line {
  fill: none;
  stroke: currentColor;
  stroke-width: 6;
}

.chess-icon .eye {
  fill: none;
  stroke: currentColor;
  stroke-width: 7;
  stroke-linecap: round;
}

.duel-mazes {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.duel-mazes div {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  overflow: hidden;
  border: 2.2px solid #172333;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 8px 16px rgba(17, 24, 39, 0.07);
}

.duel-mazes b {
  grid-column: 1 / -1;
  padding: 6px 0;
  background: #eef5fb;
  color: #235f9f;
  font-size: 0.66rem;
  font-weight: 900;
  text-align: center;
}

.duel-mazes span {
  aspect-ratio: 1;
  border: 1px solid #d8e2ed;
  background: #ffffff;
}

.duel-mazes .wall {
  background: #111827;
}

.mini-sudoku {
  grid-template-columns: repeat(4, 1fr);
  max-width: 220px;
}

.mini-sudoku span {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1.3px solid #cbd8e6;
  font-size: 1.15rem;
  font-weight: 900;
}

.mini-sudoku span:nth-child(4n + 1),
.mini-sudoku span:nth-child(4n + 2),
.mini-sudoku span:nth-child(4n + 3),
.mini-sudoku span:nth-child(4n + 4) {
  background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.race-board,
.snake-board {
  position: relative;
  width: min(100%, 330px);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  overflow: hidden;
  border: 2.5px solid #172333;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 12px 22px rgba(17, 24, 39, 0.08);
}

.snake-board {
  width: min(100%, 720px);
  grid-template-columns: repeat(10, 1fr);
}

.race-board-large {
  width: min(100%, 720px);
}

.board-frame {
  padding: 8px;
  border: 1.5px solid #d7e2ee;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.board-frame-large {
  width: 100%;
  display: grid;
  place-items: center;
  padding: 14px;
}

.cut-board-frame {
  position: relative;
  border: 1.5px dashed #9badbf;
}

.cut-board-frame.has-scissors::before {
  content: "\2702";
  position: absolute;
  left: -6px;
  top: -9px;
  color: #8aa0b5;
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1;
  background: #ffffff;
}

.game-card.carrera-dados,
.game-card.escaleras-serpientes {
  min-height: clamp(520px, 58vw, 760px);
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.race-board span,
.snake-board span {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid #d8e2ed;
  font-size: 0.64rem;
  font-weight: 900;
}

.race-board-large span {
  font-size: clamp(0.82rem, 1.35vw, 1.25rem);
}

.race-board-large span:first-child,
.race-board-large span:last-child {
  font-size: clamp(0.66rem, 1.05vw, 0.96rem);
}

.snake-board span {
  font-size: clamp(0.62rem, 1vw, 0.9rem);
  border-color: #c8d5e3;
}

.race-board span:nth-child(odd),
.snake-board span:nth-child(odd) {
  background: #eef5fb;
}

.race-board span:first-child,
.snake-board span:last-child {
  background: #e9f7ee;
  color: #24856b;
}

.race-board span:last-child,
.snake-board span:first-child {
  background: #fff7ed;
  color: #f49a21;
}

.snake-board .ladder,
.snake-board .snake {
  position: absolute;
  pointer-events: none;
}

.snake-board .ladder {
  width: clamp(7px, 1.1vw, 11px);
  height: 34%;
  border-left: 5px solid #f49a21;
  border-right: 5px solid #f49a21;
  transform: rotate(32deg);
}

.snake-board .ladder::before,
.snake-board .ladder::after {
  content: "";
  position: absolute;
  left: -10px;
  width: 24px;
  border-top: 3px solid #f49a21;
}

.snake-board .ladder::before {
  top: 28%;
}

.snake-board .ladder::after {
  top: 64%;
}

.snake-board .ladder.one {
  left: 18%;
  top: 55%;
  transform: rotate(38deg);
}

.snake-board .ladder.two {
  left: 51%;
  top: 38%;
  transform: rotate(27deg);
}

.snake-board .ladder.three {
  left: 77%;
  top: 11%;
  transform: rotate(28deg);
}

.snake-board .snake {
  width: 22%;
  height: 10%;
  border-top: 7px solid #24856b;
  border-radius: 50%;
  transform: rotate(-22deg);
}

.snake-board .snake.one {
  left: 14%;
  top: 20%;
}

.snake-board .snake.two {
  left: 54%;
  top: 66%;
}

.snake-board .snake.three {
  left: 69%;
  top: 42%;
  transform: rotate(22deg);
}

.worksheet-footer {
  display: flex;
  justify-content: flex-start;
  gap: 16px;
  padding: 9px 26px 10px;
  border-top: 1px solid var(--line);
  background: #f8fafc;
  color: #5e6b7a;
  font-size: 0.76rem;
  font-weight: 700;
}

.worksheet[data-style="tinta"] {
  --accent: #111827;
  --accent-dark: #111827;
  --brand-orange: #111827;
  --brand-green: #111827;
}

.worksheet[data-style="aula"] {
  --accent: #24856b;
  --accent-dark: #17624e;
  --brand-orange: #2f6fb0;
  --brand-green: #24856b;
}

@media (max-width: 980px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .control-panel {
    position: static;
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 640px) {
  .app-shell {
    padding: 12px;
  }

  .worksheet-masthead {
    display: grid;
  }

  .game-sheet,
  .game-sheet[data-count] {
    grid-template-columns: 1fr;
  }

  .worksheet-footer {
    display: grid;
    padding-inline: 14px;
  }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 0;
  }

  html,
  body {
    width: 210mm;
    min-height: 297mm;
    background: #fff;
  }

  * {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .control-panel,
  .account-widget {
    display: none !important;
  }

  .app-shell {
    padding: 0;
  }

  .workspace,
  .activity-panel {
    display: block;
    width: 210mm;
    max-width: none;
    margin: 0;
  }

  .worksheet {
    width: 210mm;
    min-height: 297mm;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .worksheet-masthead {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 118pt;
    column-gap: 18pt;
    align-items: center;
    min-height: 84pt;
    padding: 15pt 42pt 12pt;
    border-top-width: 8pt;
  }

  .masthead-brand {
    grid-template-columns: 56pt minmax(0, 1fr);
    gap: 16pt;
  }

  .worksheet-logo {
    width: 56pt;
    height: 56pt;
    box-shadow: none;
    border: 1px solid #e2e8f0;
  }

  #worksheet-title {
    max-width: 310pt;
    overflow: hidden;
    font-size: 28pt;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .issue-card {
    width: 118pt;
    min-width: 118pt;
    padding: 7pt 0 7pt 12pt;
    font-size: 9pt;
  }

  .student-strip {
    height: 28pt;
    padding: 0 42pt;
    align-items: center;
    font-size: 9.2pt;
  }

  .activity-instructions {
    padding: 10pt 42pt 0;
    font-size: 11pt;
  }

  .worksheet-body {
    padding: 10pt 42pt 0;
  }

  .game-sheet {
    gap: 8pt;
  }

  .game-card {
    border-radius: 5pt;
    padding: 8pt;
  }

  .worksheet[data-game="domino"] .worksheet-body,
  .worksheet[data-game="tangram"] .worksheet-body,
  .worksheet[data-game="cuatro-linea"] .worksheet-body,
  .worksheet[data-game="ludo"] .worksheet-body,
  .worksheet[data-game="damas"] .worksheet-body,
  .worksheet[data-game="ajedrez"] .worksheet-body,
  .worksheet[data-game="carrera-dados"] .worksheet-body,
  .worksheet[data-game="escaleras-serpientes"] .worksheet-body {
    padding-top: 8pt;
  }

  .worksheet[data-game="memory"] .worksheet-body {
    padding-top: 8pt;
  }

  .worksheet[data-game="domino"] .game-sheet,
  .worksheet[data-game="memory"] .game-sheet,
  .worksheet[data-game="tangram"] .game-sheet,
  .worksheet[data-game="cuatro-linea"] .game-sheet,
  .worksheet[data-game="ludo"] .game-sheet,
  .worksheet[data-game="damas"] .game-sheet,
  .worksheet[data-game="ajedrez"] .game-sheet,
  .worksheet[data-game="carrera-dados"] .game-sheet,
  .worksheet[data-game="escaleras-serpientes"] .game-sheet {
    gap: 0;
  }

  .game-card.domino,
  .game-card.memory,
  .game-card.tangram,
  .game-card.cuatro-linea,
  .game-card.ludo,
  .game-card.damas,
  .game-card.ajedrez,
  .game-card.carrera-dados,
  .game-card.escaleras-serpientes {
    min-height: auto;
    padding: 0;
  }

  .tangram-sheet {
    min-height: auto;
    padding: 8pt;
    border-radius: 6pt;
  }

  .assembled-tangram {
    width: min(100%, 510pt);
    padding: 10pt;
    border-radius: 6pt;
  }

  .assembled-tangram.has-scissors::before {
    left: 2pt;
    top: 0;
    font-size: 11pt;
  }

  .tangram-square {
    width: min(100%, 470pt);
  }

  .print-board-layout {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr) 78pt;
    gap: 7pt;
  }

  .connect-four-layout {
    grid-template-columns: minmax(0, 1fr) 92pt;
  }

  .four-board {
    border-width: 1.8pt;
    border-radius: 6pt;
  }

  .four-board span {
    border-width: 0.8pt;
  }

  .four-pieces {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.8pt;
  }

  .ludo-board,
  .checkers-board,
  .chess-board {
    border-width: 1.8pt;
    border-radius: 6pt;
  }

  .piece-bank {
    gap: 4pt;
    padding: 5pt;
    border-radius: 6pt;
  }

  .cut-piece {
    padding: 2.5pt;
    border-radius: 6pt;
  }

  .cut-piece.has-scissors::before {
    left: -4pt;
    top: -7pt;
    font-size: 9pt;
  }

  .domino-sheet,
  .memory-grid {
    gap: 4.5pt;
    padding: 5pt;
    border-radius: 6pt;
  }

  .domino-cut,
  .memory-cut {
    padding: 2.8pt;
    border-radius: 6pt;
  }

  .domino-cut.has-scissors::before,
  .memory-cut.has-scissors::before {
    left: -4pt;
    top: -7pt;
    font-size: 9pt;
  }

  .domino-tile,
  .memory-card {
    border-width: 1.3pt;
    border-radius: 5pt;
  }

  .memory-card {
    gap: 3pt;
    padding: 5pt 4pt 4pt;
  }

  .memory-card b {
    padding-top: 4pt;
    font-size: 7.5pt;
  }

  .memory-icon {
    max-height: 58pt;
  }

  .domino-divider {
    width: 1.2pt;
    margin: 5pt 0;
  }

  .worksheet-footer {
    margin-top: auto;
    padding: 9pt 42pt 10pt;
    font-size: 7.8pt;
  }
}
