/* ===== Mi Lengua Materna — Duolingo-style play mode ===== */

:root {
  --paper: #FFF6E9;
  --paper-deep: #FBE9CE;
  --rojo: #D7263D;
  --rojo-deep: #A81629;
  --marigold: #FFB627;
  --naranja: #FB8B24;
  --mlm-teal: #1B998B;
  --teal-deep: #0F756A;
  --indigo: #6247AA;
  --indigo-deep: #4B3691;
  --ink: #3A2618;
  --ink-soft: #6E5A4A;
  --shadow: 0 10px 0 rgba(58,38,24,.12), 0 16px 30px rgba(58,38,24,.18);
  --shadow-sm: 0 6px 0 rgba(58,38,24,.10), 0 10px 18px rgba(58,38,24,.14);
  --display: 'Baloo 2', system-ui, sans-serif;
  --mlm-body: 'Nunito', system-ui, sans-serif;
}

/* ===== Full-screen play container ===== */
.play-screen {
  position: fixed;
  inset: 0;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  font-family: var(--mlm-body);
  color: var(--ink);
  overflow: hidden;
  z-index: 100;
}

/* ===== Top bar ===== */
.play-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px 6px;
  gap: 10px;
  z-index: 5;
  flex-shrink: 0;
}

.play-topbar .iconbtn {
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 22px;
  transition: transform .12s ease;
  color: var(--ink);
  text-decoration: none;
}

.play-topbar .iconbtn:active {
  transform: translateY(3px);
}

.play-topbar .starcount {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  padding: 8px 14px;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  color: var(--ink);
}

.play-topbar .starcount svg {
  filter: drop-shadow(0 2px 0 rgba(0,0,0,.08));
}

.play-topbar .topbar-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Woven progress bar ===== */
.weave {
  display: flex;
  gap: 4px;
  padding: 0 18px 6px;
  margin-top: 6px;
  justify-content: center;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.weave .seg {
  flex: 1;
  max-width: 36px;
  height: 14px;
  border-radius: 4px;
  background: #EAD8B8;
  position: relative;
  transition: background .3s, transform .3s;
  transform: skewX(-12deg);
}

.weave .seg.done {
  background: var(--mlm-teal);
}

.weave .seg.done.right {
  background: #22c55e;
}

.weave .seg.done.wrong {
  background: var(--rojo);
}

.weave .seg.now {
  background: var(--marigold);
  transform: skewX(-12deg) scale(1.15);
}

/* ===== Stage (main content area) ===== */
.play-stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: safe center;
  justify-content: center;
  padding: 6px 22px 0;
  touch-action: pan-y;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 0;
}

.play-stage .item-host {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: auto 0;
  padding: 8px 0;
}

/* ===== Section splash ===== */
.splash-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.splash-card h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 28px;
  margin: 0;
  color: var(--rojo);
  line-height: 1.1;
}

.splash-card .splash-image {
  width: 200px;
  height: 200px;
  border-radius: 26px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.splash-card .splash-audio {
  background: #fff;
  border-radius: 20px;
  padding: 10px 24px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.splash-card .splash-go {
  font-family: var(--display);
  font-weight: 800;
  color: var(--ink-soft);
  font-size: 16px;
}

/* ===== Flashcard (learn mode) ===== */
.play-cardwrap {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 3 / 3.5;
  perspective: 1400px;
}

.play-flip {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform .55s cubic-bezier(.4, 1.4, .5, 1);
  transform-style: preserve-3d;
  cursor: pointer;
}

.play-flip.flipped {
  transform: rotateY(180deg);
}

.play-flip.flipped .taphint {
  display: none;
}

.play-face {
  position: absolute;
  inset: 0;
  border-radius: 30px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  box-shadow: var(--shadow);
  background: #fff;
  padding: 22px;
  overflow: hidden;
}

.play-face.back {
  transform: rotateY(180deg);
  background: linear-gradient(160deg, #fff, #FFF1DC);
  gap: 10px;
  justify-content: flex-start;
  padding-top: 18px;
  overflow-y: auto;
}

.back-image {
  width: 118px;
  height: 118px;
  object-fit: contain;
  border-radius: 16px;
  flex-shrink: 0;
}

.play-face .card-image {
  width: 100%;
  max-height: 50%;
  object-fit: contain;
  border-radius: 16px;
}

.play-face .taphint {
  font-family: var(--display);
  font-weight: 700;
  color: var(--ink-soft);
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: .9;
  animation: pulse 1.4s ease-in-out infinite;
}

/* Speaker bars (audio visualization) */
.speaker-bars {
  display: flex;
  gap: 5px;
  align-items: flex-end;
  height: 54px;
  min-height: 54px;
  flex-shrink: 0;
}

.speaker-bars span {
  width: 9px;
  background: var(--mlm-teal);
  border-radius: 5px;
  height: 14px;
  transition: height .2s;
}

.speaker-bars.playing span {
  animation: bars .7s ease-in-out infinite;
}

.speaker-bars span:nth-child(2) { animation-delay: .1s; }
.speaker-bars span:nth-child(3) { animation-delay: .2s; }
.speaker-bars span:nth-child(4) { animation-delay: .3s; }
.speaker-bars span:nth-child(5) { animation-delay: .15s; }

@keyframes bars {
  0%, 100% { height: 14px; }
  50% { height: 50px; }
}

.audio-label {
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  color: var(--teal-deep);
  background: #E3F4F1;
  padding: 6px 14px;
  border-radius: 14px;
  text-align: center;
  max-width: 260px;
  word-break: break-word;
}

.back-translations {
  font-family: var(--mlm-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-soft);
}

.play-gloss {
  font-family: var(--display);
  font-weight: 800;
  font-size: 28px;
  color: var(--ink);
  margin: 0;
}

.play-thumb {
  position: absolute;
  bottom: 16px;
  right: 16px;
  font-size: 48px;
  opacity: 0;
  transform: scale(.4);
  transition: .4s cubic-bezier(.3, 1.6, .5, 1);
  z-index: 2;
  pointer-events: none;
}

.play-thumb.show {
  opacity: 1;
  transform: scale(1);
}

/* ===== Navigation arrows ===== */
.nextarrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--mlm-teal);
  color: #fff;
  font-size: 30px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  animation: bob 1.2s ease-in-out infinite;
  z-index: 10;
}

.nextarrow.show {
  display: flex;
}

@keyframes bob {
  0%, 100% { transform: translateY(-50%); }
  50% { transform: translate(6px, -50%); }
}

.prevarrow {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--ink-soft);
  font-size: 24px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.prevarrow.show {
  display: flex;
}

/* ===== Swipe footer ===== */
.swipefoot {
  text-align: center;
  padding: 14px 0 24px;
  padding-bottom: calc(14px + env(safe-area-inset-bottom));
  font-weight: 800;
  color: var(--ink-soft);
  font-size: 14px;
  letter-spacing: .3px;
  flex-shrink: 0;
}

/* ===== Quiz mode ===== */
.quiz-container {
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.q-ask {
  background: #fff;
  border-radius: 22px;
  padding: 12px 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  cursor: pointer;
}

.q-ask .qmini {
  font-family: var(--display);
  font-weight: 800;
  color: var(--indigo-deep);
  font-size: 14px;
}

.q-prompt-art {
  width: 160px;
  height: 160px;
  border-radius: 20px;
  overflow: hidden;
  flex-shrink: 0;
}

.q-prompt-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.q-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 100%;
}

.quiz-opt {
  border: none;
  background: #fff;
  border-radius: 26px;
  padding: 18px 10px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 16px;
  color: var(--ink);
  transition: transform .12s, box-shadow .12s;
  border: 4px solid transparent;
}

.quiz-opt:active {
  transform: translateY(3px);
}

.quiz-opt .opt-icon {
  font-size: 34px;
}

.quiz-opt.sel {
  border-color: var(--marigold);
  box-shadow: 0 0 0 4px rgba(255,182,39,.3), var(--shadow-sm);
}

.quiz-opt.right {
  border-color: var(--mlm-teal);
  background: #E3F4F1;
}

.quiz-opt.wrong {
  border-color: var(--rojo);
  background: #FBE3E6;
  animation: shake .4s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}

/* Streak dots */
.streakrow {
  display: flex;
  gap: 6px;
  align-items: center;
  font-family: var(--display);
  font-weight: 800;
  color: var(--ink-soft);
  font-size: 14px;
}

.streakdot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #E6D4B4;
  transition: background .3s;
}

.streakdot.on {
  background: var(--marigold);
}

/* Check / submit button */
.quiz-check {
  padding: 16px 40px;
  border: none;
  border-radius: 22px;
  background: var(--indigo);
  color: #fff;
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 7px 0 var(--indigo-deep);
  transition: transform .1s, box-shadow .1s, opacity .2s;
  opacity: .5;
  pointer-events: none;
}

.quiz-check.ready {
  opacity: 1;
  pointer-events: auto;
}

.quiz-check:active {
  transform: translateY(5px);
  box-shadow: 0 2px 0 var(--indigo-deep);
}

.quiz-check:disabled {
  opacity: .5;
  pointer-events: none;
}

/* ===== Stars progress overlay ===== */
.stars-overlay {
  position: fixed;
  inset: 0;
  background: rgba(58,38,24,.55);
  z-index: 150;
  display: none;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(2px);
}

.stars-overlay.show {
  display: flex;
}

.stars-panel {
  background: var(--paper);
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  border-radius: 30px 30px 0 0;
  display: flex;
  flex-direction: column;
  animation: starsUp .35s ease;
  overflow: hidden;
}

@keyframes starsUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.stars-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 10px;
  flex-shrink: 0;
}

.stars-header h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  margin: 0;
  color: var(--ink);
}

.stars-close {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-size: 22px;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--ink-soft);
}

.stars-grid {
  flex: 1;
  overflow-y: auto;
  padding: 4px 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.star-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 16px;
  padding: 10px 14px;
  box-shadow: 0 2px 8px rgba(58,38,24,.06);
}

.star-row-img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.star-row-info {
  flex: 1;
  min-width: 0;
}

.star-row-word {
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.star-row-sub {
  font-family: var(--mlm-body);
  font-weight: 700;
  font-size: 12px;
  color: var(--ink-soft);
}

.star-row-dots {
  display: flex;
  gap: 3px;
  flex-shrink: 0;
}

.star-row-dots .sd {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #EAD8B8;
  font-size: 0;
}

.star-row-dots .sd.on {
  background: var(--marigold);
}

.star-row-dots .sd.full {
  background: none;
  font-size: 13px;
  display: grid;
  place-items: center;
}

/* ===== Celebration overlay ===== */
.celebrate-overlay {
  position: fixed;
  inset: 0;
  background: rgba(58,38,24,.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  backdrop-filter: blur(2px);
}

.celebrate-overlay.show {
  display: flex;
}

.cel-card {
  background: var(--paper);
  border-radius: 34px;
  padding: 34px 30px;
  text-align: center;
  box-shadow: var(--shadow);
  width: 300px;
  max-width: 90vw;
  animation: cel-pop .5s cubic-bezier(.3, 1.7, .5, 1);
}

@keyframes cel-pop {
  from { transform: scale(.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.cel-card .bigstar {
  font-size: 80px;
  animation: star-spin 1.1s ease;
}

@keyframes star-spin {
  from { transform: rotate(-25deg) scale(.4); }
  to { transform: rotate(0) scale(1); }
}

.cel-card h2 {
  font-family: var(--display);
  color: var(--rojo);
  font-size: 26px;
  margin: 12px 0 4px;
}

.cel-card p {
  color: var(--ink-soft);
  font-weight: 700;
  margin: 0 0 18px;
  font-size: 15px;
}

.cel-cta {
  display: block;
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 22px;
  cursor: pointer;
  background: var(--marigold);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  box-shadow: 0 6px 0 var(--naranja);
  transition: transform .1s ease;
}

.cel-cta:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--naranja);
}

/* Confetti */
.confetti-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 201;
}

.confetti-layer i {
  position: absolute;
  width: 11px;
  height: 16px;
  border-radius: 3px;
  top: -20px;
  animation: confetti-fall linear forwards;
}

@keyframes confetti-fall {
  to { transform: translateY(110vh) rotate(720deg); }
}

/* ===== Finish screen ===== */
.finish-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
}

.finish-card .finish-stars {
  font-size: 48px;
  letter-spacing: 8px;
}

.finish-card h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: 28px;
  color: var(--rojo);
  margin: 0;
}

.finish-card p {
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 16px;
  margin: 0;
}

.finish-card .finish-cta {
  display: inline-block;
  padding: 16px 40px;
  border: none;
  border-radius: 22px;
  background: var(--mlm-teal);
  color: #fff;
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 6px 0 var(--teal-deep);
  text-decoration: none;
  transition: transform .1s ease;
  margin-top: 8px;
}

.finish-card .finish-cta:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--teal-deep);
}

/* ===== Pulse animation ===== */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* ===== Collections map page (override) ===== */
.map-page {
  background: var(--paper);
  min-height: calc(100vh - 60px);
  padding: 0;
}

.map-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px 8px;
  gap: 10px;
}

.map-topbar .map-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  color: var(--ink);
}

.map-topbar .starcount {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  padding: 8px 14px;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  color: var(--ink);
}

.map-path {
  padding: 8px 24px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.map-node {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
}

.map-node:nth-child(even) {
  flex-direction: row-reverse;
  text-align: right;
}

.map-node .node-bubble {
  width: 96px;
  height: 96px;
  min-width: 96px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  font-size: 44px;
  position: relative;
  transition: transform .12s ease;
  overflow: hidden;
}

.map-node .node-bubble img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-node:active .node-bubble {
  transform: translateY(3px) scale(.98);
}

.map-node .node-meta h3 {
  font-family: var(--display);
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  color: var(--ink);
}

.map-node .node-meta p {
  margin: 2px 0 0;
  font-weight: 700;
  color: var(--ink-soft);
  font-size: 13px;
}

.map-node .ministars {
  display: inline-flex;
  gap: 2px;
  margin-top: 4px;
}

/* ===== Responsive ===== */

/* Landscape tablets — compact quiz to fit viewport height */
@media (orientation: landscape) and (min-width: 769px) {
  .quiz-container {
    gap: 6px;
  }

  .q-ask {
    padding: 8px 14px;
  }

  .q-prompt-art {
    width: 110px;
    height: 110px;
  }

  .quiz-opt {
    padding: 12px 8px;
    gap: 4px;
    border-radius: 20px;
  }

  .quiz-opt .opt-icon {
    font-size: 26px;
  }

  .quiz-check {
    padding: 12px 36px;
    font-size: 18px;
  }

  .streakrow {
    font-size: 12px;
  }

  .streakdot {
    width: 12px;
    height: 12px;
  }

  .q-options {
    gap: 10px;
  }
}

/* Small phones */
@media (max-width: 576px) {
  .play-cardwrap {
    max-width: 280px;
  }

  .play-topbar .topbar-title {
    font-size: 15px;
  }

  .q-prompt-art {
    width: 110px;
    height: 110px;
  }

  .quiz-opt {
    padding: 14px 8px;
    font-size: 14px;
    border-radius: 20px;
  }

  .quiz-opt .opt-icon {
    font-size: 28px;
  }

  .quiz-check {
    padding: 14px 30px;
    font-size: 18px;
  }

  .play-face .card-image {
    max-height: 45%;
  }

  .back-image {
    width: 90px;
    height: 90px;
  }

  .play-thumb {
    font-size: 36px;
    bottom: 10px;
    right: 10px;
  }

  .play-gloss {
    font-size: 22px;
  }

  .nextarrow {
    width: 48px;
    height: 48px;
    font-size: 26px;
  }

  .prevarrow {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}

/* Tablet (iPad portrait / landscape, small laptops) */
@media (min-width: 577px) {
  .play-stage {
    padding: 10px 40px 0;
  }

  .play-cardwrap {
    max-width: 380px;
    aspect-ratio: 3 / 3.2;
  }

  .play-face {
    border-radius: 36px;
    padding: 30px;
    gap: 18px;
  }

  .play-face .card-image {
    max-height: 55%;
    border-radius: 20px;
  }

  .play-gloss {
    font-size: 32px;
  }

  .audio-label {
    font-size: 16px;
    padding: 8px 18px;
  }

  .q-prompt-art {
    width: 180px;
    height: 180px;
    border-radius: 24px;
  }

  .quiz-container {
    max-width: 420px;
    gap: 18px;
  }

  .quiz-opt {
    padding: 22px 14px;
    font-size: 18px;
    border-radius: 28px;
  }

  .quiz-opt .opt-icon {
    font-size: 38px;
  }

  .nextarrow {
    width: 64px;
    height: 64px;
    font-size: 34px;
    right: 24px;
  }

  .prevarrow {
    width: 52px;
    height: 52px;
    font-size: 28px;
    left: 24px;
  }

  .splash-card h2 {
    font-size: 34px;
  }

  .splash-card .splash-image {
    width: 240px;
    height: 240px;
    border-radius: 30px;
  }

  .finish-card h2 {
    font-size: 34px;
  }

  .finish-card .finish-stars {
    font-size: 56px;
  }

  .cel-card {
    width: 380px;
    padding: 40px 36px;
  }

  .cel-card .bigstar {
    font-size: 96px;
  }

  .cel-card h2 {
    font-size: 30px;
  }
}

/* iPad / desktop — float the play screen as a centered panel with background */
@media (min-width: 769px) {
  body.play-body {
    background:
      radial-gradient(circle at 20% 0%, #FFE3B0 0%, transparent 40%),
      radial-gradient(circle at 90% 100%, #FFD9D3 0%, transparent 45%),
      #F1E2C9;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
  }

  .play-screen {
    position: relative;
    inset: auto;
    width: 680px;
    max-width: 96vw;
    height: 94vh;
    max-height: 960px;
    border-radius: 36px;
    box-shadow: 0 30px 60px rgba(58,38,24,.25), inset 0 0 0 4px rgba(255,255,255,.4);
    overflow: hidden;
  }

  .play-cardwrap {
    max-width: 420px;
    aspect-ratio: 3 / 3;
  }

  .play-face .card-image {
    max-height: 55%;
  }

  .play-face {
    padding: 30px;
    gap: 16px;
  }

  .back-image {
    width: 140px;
    height: 140px;
  }

  .q-prompt-art {
    width: 200px;
    height: 200px;
  }

  .quiz-container {
    max-width: 500px;
  }

  .quiz-opt {
    padding: 24px 14px;
  }

  .splash-card .splash-image {
    width: 300px;
    height: 300px;
  }

  .splash-card h2 {
    font-size: 34px;
  }

  .stars-panel {
    max-width: 680px;
  }
}

/* iPad Air / Surface Pro (820px+) */
@media (min-width: 821px) {
  .play-screen {
    width: 720px;
    max-height: 1000px;
  }

  .play-cardwrap {
    max-width: 440px;
  }

  .quiz-container {
    max-width: 520px;
  }

  .q-prompt-art {
    width: 220px;
    height: 220px;
  }

  .quiz-opt {
    padding: 26px 16px;
    font-size: 19px;
  }

  .quiz-opt .opt-icon {
    font-size: 42px;
  }

  .back-image {
    width: 150px;
    height: 150px;
  }

  .stars-panel {
    max-width: 720px;
  }
}

/* iPad Pro / large tablets (1024px+) */
@media (min-width: 1024px) {
  .play-screen {
    width: 780px;
    max-height: 1060px;
  }

  .play-cardwrap {
    max-width: 460px;
  }

  .play-face {
    padding: 34px;
    gap: 20px;
  }

  .play-face .card-image {
    max-height: 58%;
  }

  .back-image {
    width: 160px;
    height: 160px;
  }

  .quiz-container {
    max-width: 560px;
  }

  .q-prompt-art {
    width: 240px;
    height: 240px;
  }

  .quiz-opt {
    padding: 28px 16px;
    font-size: 20px;
  }

  .quiz-opt .opt-icon {
    font-size: 44px;
  }

  .splash-card .splash-image {
    width: 340px;
    height: 340px;
  }

  .splash-card h2 {
    font-size: 38px;
  }

  .stars-panel {
    max-width: 780px;
  }
}

/* Large desktop */
@media (min-width: 1200px) {
  .play-screen {
    width: 820px;
    height: 94vh;
    max-height: 1100px;
  }

  .play-cardwrap {
    max-width: 500px;
  }

  .play-face {
    padding: 36px;
  }

  .quiz-container {
    max-width: 580px;
  }
}
