@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@700;800;900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  font-family: 'Fredoka', sans-serif;
}

body {
  background: #005551;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: -10%;
  background: radial-gradient(ellipse at center, rgba(122, 191, 73, 0.08), transparent 65%);
  pointer-events: none;
  animation: subtleGlow 6s ease-in-out infinite;
}

@keyframes subtleGlow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

#confetti,
#particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

#confetti { z-index: 9999; }
#particles { z-index: 1; opacity: 0.4; }

.game-world {
  width: 100vw;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 2;
  overflow-y: auto;
}

.top-section {
  padding: 2vh 0 1.5vh;
  text-align: center;
  flex-shrink: 0;
}

.brand-logo {
  height: clamp(80px, 15vh, 140px);
  filter: drop-shadow(0 6px 20px rgba(255, 255, 255, 0.35)) drop-shadow(0 0 35px rgba(255, 255, 255, 0.15));
  width: auto;
  animation: logoBreath 4s ease-in-out infinite;
}

@keyframes logoBreath {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 6px 20px rgba(255, 255, 255, 0.35)) drop-shadow(0 0 35px rgba(255, 255, 255, 0.15));
  }
  50% {
    transform: scale(1.02);
    filter: drop-shadow(0 8px 25px rgba(255, 255, 255, 0.4)) drop-shadow(0 0 45px rgba(255, 255, 255, 0.2));
  }
}

.play-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0 3vw 6vh;
  gap: 2vh;
}

.info-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4vw;
}

.level-indicator {
  background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 50%, #e8e8e8 100%);
  padding: 1vh 3vw;
  border-radius: 20px;
  display: flex;
  align-items: baseline;
  gap: 1vw;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35), 0 3px 10px rgba(255, 255, 255, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.6), inset 0 -2px 8px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.level-indicator::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: levelShine 3s ease-in-out infinite;
}

@keyframes levelShine {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

.level-label {
  color: #0E4032;
  font-weight: 800;
  font-size: clamp(0.9rem, 1.8vh, 1.3rem);
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.6);
  position: relative;
  z-index: 1;
}

.level-num {
  font-size: clamp(2.5rem, 5vh, 4rem);
  font-weight: 900;
  color: #0E4032;
  text-shadow: 0 2px 5px rgba(255, 255, 255, 0.7), 0 0 15px rgba(255, 255, 255, 0.4);
  position: relative;
  z-index: 1;
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.level-max {
  color: rgba(14, 64, 50, 0.5);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.5vh, 3rem);
  position: relative;
  z-index: 1;
}

.timer-zone {
  position: relative;
  width: clamp(90px, 15vh, 160px);
  height: clamp(90px, 15vh, 160px);
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
}

.timer-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  filter: drop-shadow(0 0 12px rgba(122, 191, 73, 0.4));
}

.ring-back {
  fill: none;
  stroke: rgba(13, 13, 13, 0.35);
  stroke-width: 12;
}

.ring-front {
  fill: none;
  stroke: url(#timerGrad);
  stroke-width: 14;
  stroke-dasharray: 326;
  transition: stroke-dashoffset 0.1s linear;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(122, 191, 73, 0.6));
}

.ring-front.alert {
  animation: timerAlert 0.6s ease-in-out infinite;
}

@keyframes timerAlert {
  0%, 100% { filter: drop-shadow(0 0 12px rgba(242, 50, 50, 0.9)); stroke: #F23232; }
  50% { filter: drop-shadow(0 0 20px rgba(242, 50, 50, 0.6)); }
}

.timer-display {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 30% 30%, #1a5c48, #0E4032);
  width: 72%;
  height: 72%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 6px 15px rgba(0, 0, 0, 0.7), 0 0 15px rgba(122, 191, 73, 0.25);
}

.timer-display span {
  font-size: clamp(2.2rem, 5.5vh, 4rem);
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 40px rgba(255, 255, 255, 0.4), 0 2px 4px rgba(0, 0, 0, 0.6);
  animation: timerGlow 2.5s ease-in-out infinite;
}

@keyframes timerGlow {
  0%, 100% { text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 40px rgba(255, 255, 255, 0.4), 0 2px 4px rgba(0, 0, 0, 0.6); }
  50% { text-shadow: 0 0 30px rgba(255, 255, 255, 1), 0 0 60px rgba(255, 255, 255, 0.6), 0 2px 4px rgba(0, 0, 0, 0.6); }
}

.cards-zone {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5vw;
  flex-wrap: nowrap;
  flex: 1;
  overflow: visible;
}

.game-card {
  width: clamp(120px, 16vh, 180px);
  height: clamp(120px, 16vh, 180px);
  animation: cardAppear 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  position: relative;
  perspective: 1000px;
}

@keyframes cardAppear {
  0% { transform: scale(0.4) rotateY(90deg); opacity: 0; }
  100% { transform: scale(1) rotateY(0); opacity: 1; }
}

.card-3d {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #ffffff 0%, #f8f8f8 50%, #f0f0f0 100%);
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35), 0 4px 12px rgba(122, 191, 73, 0.15), inset 0 2px 0 rgba(255, 255, 255, 0.9), inset 0 -3px 8px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: visible;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-3d::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 25px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 50%, rgba(122, 191, 73, 0.08) 100%);
  opacity: 0;
  animation: cardShimmer 3s ease-in-out infinite;
}

@keyframes cardShimmer {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

.card-face {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12%;
}

.card-face img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  margin-bottom: 32px;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.28)) drop-shadow(0 0 18px rgba(122, 191, 73, 0.15));
}

.card-letter {
  position: absolute;
  bottom: -10%;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #1a5c48 0%, #0E4032 100%);
  color: #ffffff;
  font-weight: 900;
  font-size: clamp(0.5rem, 0.9vw, 0.9rem);
  padding: 0.5vh 0.7vw;
  border-radius: 12px;
  width: 100%;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5), 0 0 18px rgba(255, 255, 255, 0.25), inset 0 1px 0 rgba(122, 191, 73, 0.4);
  pointer-events: none;
  z-index: 10;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4), 0 1px 2px rgba(0, 0, 0, 0.8);
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.005em;
  word-spacing: -0.06em;
}

.controls-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2vw;
}

.control-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1vh;
}

.control-title {
  background: linear-gradient(135deg, #7ABF49 0%, #6aaf3f 50%, #5a9838 100%);
  color: white;
  padding: 1vh 2.5vw;
  border-radius: 15px;
  font-weight: 800;
  font-size: clamp(0.8rem, 1.6vh, 1.2rem);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), 0 0 25px rgba(122, 191, 73, 0.15), inset 0 2px 0 rgba(255, 255, 255, 0.35), inset 0 -2px 6px rgba(0, 0, 0, 0.15);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), 0 0 12px rgba(255, 255, 255, 0.25);
  position: relative;
  overflow: hidden;
}

.control-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: titleShine 4s ease-in-out infinite;
}

@keyframes titleShine {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

.control-title span { position: relative; z-index: 1; }

.control-button {
  width: 100%;
  max-width: clamp(140px, 20vh, 200px);
  aspect-ratio: 1;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.control-button:hover .button-inner { transform: translateY(-4px) scale(1.03); }
.control-button:active .button-inner { transform: translateY(-1px) scale(0.99); }

.button-inner {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #ffffff 0%, #f8f8f8 50%, #ececec 100%);
  border-radius: 25px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4), 0 4px 15px rgba(122, 191, 73, 0.15), inset 0 3px 0 rgba(255, 255, 255, 0.9), inset 0 -3px 8px rgba(0, 0, 0, 0.08);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease, background 0.3s ease;
  overflow: visible;
}

.button-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 25px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 50%, rgba(122, 191, 73, 0.08) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.control-button:hover .button-inner::before { opacity: 1; }

.button-inner img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  margin-bottom: 22px;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.28)) drop-shadow(0 0 12px rgba(122, 191, 73, 0.18));
  transition: filter 0.3s ease;
}

.control-button:hover .button-inner img {
  filter: drop-shadow(0 7px 16px rgba(0, 0, 0, 0.34)) drop-shadow(0 0 20px rgba(122, 191, 73, 0.3));
}

.button-letter {
  position: absolute;
  bottom: -10%;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #1a5c48 0%, #0E4032 100%);
  color: #ffffff;
  font-weight: 900;
  font-size: clamp(0.5rem, 0.95vw, 0.95rem);
  padding: 0.55vh 0.8vw;
  border-radius: 12px;
  width: 100%;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5), 0 0 18px rgba(255, 255, 255, 0.25), inset 0 1px 0 rgba(122, 191, 73, 0.4);
  pointer-events: none;
  z-index: 10;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.4), 0 1px 2px rgba(0, 0, 0, 0.8);
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.005em;
  word-spacing: -0.06em;
}

.control-button.hit .button-inner { animation: buttonHit 0.2s ease; }
@keyframes buttonHit { 0% { transform: scale(1); } 50% { transform: scale(0.94); box-shadow: 0 6px 20px rgba(0,0,0,0.4); } 100% { transform: scale(1); } }

.control-button.good .button-inner { animation: buttonGood 0.6s ease; }
@keyframes buttonGood { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); filter: brightness(1.4) saturate(1.3); } }

.control-button.wrong .button-inner { animation: buttonWrong 0.6s ease; }
@keyframes buttonWrong { 0%,100% { transform: scale(1); } 50% { background: linear-gradient(145deg,#F23232 0%,#d92929 50%,#c91f1f 100%); box-shadow: 0 10px 35px rgba(242,50,50,0.7), 0 0 50px rgba(242,50,50,0.5); transform: scale(1.06); } }

#btnC .button-inner {
  background: linear-gradient(145deg, #F00001 0%, #d90001 50%, #c20001 100%);
  border: 6px solid #ff1a1b;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4), 0 0 40px rgba(240, 0, 1, 0.7), inset 0 3px 0 rgba(255, 255, 255, 0.4), inset 0 -3px 8px rgba(0, 0, 0, 0.3);
}
#btnC:hover .button-inner {
  background: linear-gradient(145deg, #ff1a1b 0%, #F00001 50%, #d90001 100%);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.5), 0 0 60px rgba(240, 0, 1, 0.9), inset 0 3px 0 rgba(255, 255, 255, 0.5), inset 0 -3px 8px rgba(0, 0, 0, 0.3);
}
#btnC .button-inner::before { background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, transparent 50%, rgba(255, 26, 27, 0.3) 100%); }
#btnC .card-3d {
  background: linear-gradient(145deg, #F00001 0%, #d90001 50%, #c20001 100%);
  border: 6px solid #ff1a1b;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35), 0 4px 12px rgba(240, 0, 1, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.5), inset 0 -3px 8px rgba(0, 0, 0, 0.2);
}
#btnC .card-3d::before { background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%, rgba(255, 26, 27, 0.15) 100%); }

#btnB .button-inner {
  background: linear-gradient(145deg, #00B970 0%, #00a563 50%, #009156 100%);
  border: 6px solid #00dd87;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 185, 112, 0.7), inset 0 3px 0 rgba(255, 255, 255, 0.4), inset 0 -3px 8px rgba(0, 0, 0, 0.3);
}
#btnB:hover .button-inner {
  background: linear-gradient(145deg, #00d080 0%, #00B970 50%, #00a563 100%);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.5), 0 0 60px rgba(0, 185, 112, 0.9), inset 0 3px 0 rgba(255, 255, 255, 0.5), inset 0 -3px 8px rgba(0, 0, 0, 0.3);
}
#btnB .button-inner::before { background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, transparent 50%, rgba(0, 221, 135, 0.3) 100%); }
#btnB .card-3d {
  background: linear-gradient(145deg, #00B970 0%, #00a563 50%, #009156 100%);
  border: 6px solid #00dd87;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35), 0 4px 12px rgba(0, 185, 112, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.5), inset 0 -3px 8px rgba(0, 0, 0, 0.2);
}
#btnB .card-3d::before { background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%, rgba(0, 221, 135, 0.15) 100%); }

#btnM .button-inner {
  background: linear-gradient(145deg, #008CAD 0%, #007c9b 50%, #006c89 100%);
  border: 6px solid #00a8d4;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 140, 173, 0.7), inset 0 3px 0 rgba(255, 255, 255, 0.4), inset 0 -3px 8px rgba(0, 0, 0, 0.3);
}
#btnM:hover .button-inner {
  background: linear-gradient(145deg, #00a3cc 0%, #008CAD 50%, #007c9b 100%);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.5), 0 0 60px rgba(0, 140, 173, 0.9), inset 0 3px 0 rgba(255, 255, 255, 0.5), inset 0 -3px 8px rgba(0, 0, 0, 0.3);
}
#btnM .button-inner::before { background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, transparent 50%, rgba(0, 168, 212, 0.3) 100%); }
#btnM .card-3d {
  background: linear-gradient(145deg, #008CAD 0%, #007c9b 50%, #006c89 100%);
  border: 6px solid #00a8d4;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35), 0 4px 12px rgba(0, 140, 173, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.5), inset 0 -3px 8px rgba(0, 0, 0, 0.2);
}
#btnM .card-3d::before { background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%, rgba(0, 168, 212, 0.15) 100%); }

#btnC .button-inner img,
#btnB .button-inner img,
#btnM .button-inner img {
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 15px rgba(255, 255, 255, 0.28));
}
#btnC:hover .button-inner img,
#btnB:hover .button-inner img,
#btnM:hover .button-inner img {
  filter: drop-shadow(0 7px 16px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 24px rgba(255, 255, 255, 0.45));
}

.message-screen {
  position: fixed;
  inset: -5%;
  background: radial-gradient(ellipse at center, rgba(14, 64, 50, 0.97), rgba(10, 48, 38, 0.99));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s ease;
  overflow: hidden;
}

.message-screen::before {
  content: '';
  position: absolute;
  inset: -10%;
  background: radial-gradient(ellipse at center, rgba(122, 191, 73, 0.06) 0%, transparent 60%);
  animation: screenPulse 5s ease-in-out infinite;
}

@keyframes screenPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

.message-screen.hidden { opacity: 0; pointer-events: none; }

.message-content {
  text-align: center;
  animation: msgZoom 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 0 5vw;
  position: relative;
  z-index: 1;
}

@keyframes msgZoom {
  0% { transform: scale(0.5) rotateY(45deg); opacity: 0; }
  100% { transform: scale(1) rotateY(0); opacity: 1; }
}

.message-logo-wrap { position: relative; display: inline-block; }

.message-logo-wrap::before {
  content: '';
  position: absolute;
  inset: -15%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 65%);
  animation: logoHalo 3s ease-in-out infinite;
  z-index: -1;
}

@keyframes logoHalo {
  0%, 100% { transform: scale(0.95); opacity: 0.4; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.message-logo {
  height: clamp(200px, 35vh, 400px);
  filter: drop-shadow(0 0 50px rgba(255, 255, 255, 0.5)) drop-shadow(0 8px 35px rgba(0, 0, 0, 0.4));
  animation: logoFloat 4s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0) scale(1); filter: drop-shadow(0 0 50px rgba(255, 255, 255, 0.5)) drop-shadow(0 8px 35px rgba(0, 0, 0, 0.4)); }
  50% { transform: translateY(-12px) scale(1.015); filter: drop-shadow(0 0 65px rgba(255, 255, 255, 0.65)) drop-shadow(0 10px 40px rgba(0, 0, 0, 0.45)); }
}

.message-heading {
  color: #ffffff;
  font-weight: 900;
  font-size: clamp(2.8rem, 8vw, 6.5rem);
  text-shadow: 3px 3px 0 #0E4032, 0 0 35px rgba(255, 255, 255, 0.5), 0 0 70px rgba(255, 255, 255, 0.25);
  animation: headingShine 2.5s ease-in-out infinite;
  position: relative;
}

@keyframes headingShine {
  0%, 100% { text-shadow: 3px 3px 0 #0E4032, 0 0 35px rgba(255, 255, 255, 0.5), 0 0 70px rgba(255, 255, 255, 0.25); transform: scale(1); }
  50% { text-shadow: 3px 3px 0 #0E4032, 0 0 50px rgba(255, 255, 255, 0.8), 0 0 100px rgba(255, 255, 255, 0.4); transform: scale(1.015); }
}

.message-text {
  color: #7ABF49;
  font-weight: 800;
  font-size: clamp(1.6rem, 4.5vw, 3.2rem);
  text-shadow: 2px 2px 0 #0E4032, 0 0 20px rgba(122, 191, 73, 0.6), 0 0 40px rgba(122, 191, 73, 0.25);
  animation: textPulse 2s ease-in-out infinite;
}

@keyframes textPulse {
  0%, 100% { opacity: 1; transform: scale(1); text-shadow: 2px 2px 0 #0E4032, 0 0 20px rgba(122, 191, 73, 0.6), 0 0 40px rgba(122, 191, 73, 0.25); }
  50% { opacity: 0.75; transform: scale(1.03); text-shadow: 2px 2px 0 #0E4032, 0 0 35px rgba(122, 191, 73, 0.9), 0 0 70px rgba(122, 191, 73, 0.4); }
}

@media(max-width: 900px) {
  .controls-grid { grid-template-columns: 1fr; }
  .control-button { max-width: 60vw; }
  .button-letter, .card-letter { font-size: clamp(0.48rem, 2.9vw, 0.88rem); }
}

@media(max-height: 600px) {
  .brand-logo { height: clamp(60px, 12vh, 100px); }
}

/* Ajuste especial para que “NUGGETS CROCANTES” no se corte */
#btnM .button-letter,
#btnM .card-letter {
  font-size: clamp(0.42rem, 0.75vw, 0.82rem);
  padding: 0.5vh 0.5vw;
  width: 102%;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  letter-spacing: -0.02em;
  word-spacing: -0.08em;
}

.cards-zone .card-face { padding: 6%; }

.cards-zone .card-face img {
  width: 96%;
  height: 96%;
  margin-bottom: 0;
  object-fit: contain;
  transform: translateY(0);
}