:root {
  --font-main: Montserrat, -apple-system, BlinkMacSystemFont, sans-serif;
  --canvas-bg: #FFFFFF;
  --white: #ffffff;
  --orange: #FF6501;
  --orange-hover: #e55a00;
  --orange-gradient: linear-gradient(135deg, #FF771D 0%, #FF5500 100%);
  --orange-subtle: #FFF4EC;
  --orange-accent: #FFB380;
  --blue: #0D58D8;
  --blue-deep: #050FAF;
  --blue-gradient: linear-gradient(135deg, #1A66EC 0%, #050FAF 100%);
  --blue-subtle: #EEF4FF;
  --dark: #0F172A;
  --dark-muted: #64748B;
  --dark-light: #94A3B8;
  --green: #10B981;
  --green-gradient: linear-gradient(135deg, #34D399 0%, #059669 100%);
  --green-subtle: #ECFDF5;
  --red: #EF4444;
  --red-gradient: linear-gradient(135deg, #F87171 0%, #DC2626 100%);
  --red-subtle: #FEF2F2;
  --opt-bg: linear-gradient(180deg, #FFFFFF 0%, #F1F5F9 100%);
  --opt-hover: linear-gradient(180deg, #FFFFFF 0%, #E2E8F0 100%);
  --card-shadow: 0 25px 50px -12px rgba(13, 88, 216, 0.12), 0 12px 28px -6px rgba(15, 23, 42, 0.05);
  --btn-shadow-orange: 0 10px 24px -4px rgba(255, 101, 1, 0.42);
  --btn-shadow-blue: 0 10px 24px -4px rgba(13, 88, 216, 0.38);
  --radius-card: 26px;
  --radius-pill: 16px;
  --radius-btn: 14px;
  --scrollbar-thumb: rgba(13, 88, 216, 0.3);
  --scrollbar-thumb-hover: #FF6501;
  --scrollbar-track: rgba(241, 245, 249, 0.6);
}

@keyframes excitedIconBounce {
  0%, 100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  20% {
    transform: translateY(-8px) rotate(-10deg) scale(1.24);
  }
  40% {
    transform: translateY(-2px) rotate(8deg) scale(1.15);
  }
  60% {
    transform: translateY(-5px) rotate(-5deg) scale(1.18);
  }
  80% {
    transform: translateY(-1px) rotate(2deg) scale(1.08);
  }
}
@keyframes excitedTrembleJoy {
  0%, 100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  15% {
    transform: translateY(-4px) rotate(-12deg) scale(1.18);
  }
  30% {
    transform: translateY(-7px) rotate(10deg) scale(1.22);
  }
  45% {
    transform: translateY(-3px) rotate(-8deg) scale(1.16);
  }
  60% {
    transform: translateY(-5px) rotate(6deg) scale(1.18);
  }
  75% {
    transform: translateY(-1px) rotate(-3deg) scale(1.1);
  }
  90% {
    transform: translateY(-2px) rotate(1deg) scale(1.04);
  }
}
@keyframes letterJoyBounce {
  0%, 100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  25% {
    transform: translateY(-5px) rotate(-12deg) scale(1.22);
    color: var(--orange);
  }
  50% {
    transform: translateY(-1px) rotate(10deg) scale(1.16);
    color: var(--blue);
  }
  75% {
    transform: translateY(-3px) rotate(-5deg) scale(1.18);
  }
}
@keyframes buttonIconJump {
  0%, 100% {
    transform: translateY(0) scale(1) rotate(0);
  }
  25% {
    transform: translateY(-6px) scale(1.25) rotate(-8deg);
  }
  55% {
    transform: translateY(-1px) scale(1.14) rotate(6deg);
  }
  80% {
    transform: translateY(-3px) scale(1.18) rotate(-3deg);
  }
}
@keyframes speakerJoyTremble {
  0%, 100% {
    transform: scale(1) rotate(0deg);
  }
  20% {
    transform: scale(1.28) rotate(-14deg) translateY(-2px);
  }
  40% {
    transform: scale(1.32) rotate(14deg) translateY(-4px);
  }
  60% {
    transform: scale(1.24) rotate(-8deg) translateY(-1px);
  }
  80% {
    transform: scale(1.16) rotate(4deg);
  }
}
@keyframes footerIconBounce {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  25% {
    transform: translateY(-5px) scale(1.28) rotate(-8deg);
  }
  50% {
    transform: translateY(1px) scale(1.12) rotate(6deg);
  }
  75% {
    transform: translateY(-3px) scale(1.18) rotate(-3deg);
  }
}
@keyframes popSuccessCelebration {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.035) translateY(-3px);
  }
  60% {
    transform: scale(0.985);
  }
  80% {
    transform: scale(1.015);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes shakeWrongTremble {
  0%, 100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-7px) rotate(-1deg);
  }
  40% {
    transform: translateX(7px) rotate(1deg);
  }
  60% {
    transform: translateX(-4px) rotate(-0.5deg);
  }
  80% {
    transform: translateX(4px) rotate(0.5deg);
  }
}
@keyframes logoJoyTilt {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-4px) rotate(-2deg) scale(1.03);
  }
  50% {
    transform: translateY(-2px) rotate(1.5deg) scale(1.03);
  }
  75% {
    transform: translateY(-3px) rotate(-1deg) scale(1.02);
  }
}
@keyframes arrowHeartbeat {
  0% {
    transform: scale(1);
  }
  15% {
    transform: scale(1.28);
  }
  30% {
    transform: scale(1.08);
  }
  45% {
    transform: scale(1.35);
  }
  70% {
    transform: scale(1);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes orbFloat {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(var(--tx, 15px), var(--ty, -15px)) scale(var(--sc, 1.05));
  }
  100% {
    transform: translate(calc(var(--tx, 15px) * -0.8), calc(var(--ty, -15px) * -0.7)) scale(0.97);
  }
}
@keyframes pulse {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.05);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes orbPopIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  65% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
    opacity: var(--target-opacity, 1);
  }
}
@keyframes cardFirstLoadEntrance {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.94);
    filter: blur(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}
@keyframes menuElementsStagger {
  0% {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  font-family: var(--font-main);
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) transparent;
}
*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
*::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 9999px;
  margin: 4px;
}
*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(13, 88, 216, 0.35) 0%, rgba(255, 101, 1, 0.35) 100%);
  border-radius: 9999px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  transition: background 0.25s ease, transform 0.2s ease;
}
*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #0D58D8 0%, #FF6501 100%);
  box-shadow: 0 0 10px rgba(255, 101, 1, 0.5);
}

html, body {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  background-color: var(--canvas-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
@media screen and (max-width: 600px) {
  html, body {
    height: 100%;
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
  }
}
@media screen and (max-height: 550px) and (orientation: landscape) {
  html, body {
    height: auto;
    min-height: 100dvh;
    overflow-y: auto;
    align-items: flex-start;
  }
}

#proceduralCanvas {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.proc-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform, opacity;
  animation: orbPopIn 0.85s cubic-bezier(0.34, 1.56, 0.64, 1) backwards, orbFloat 18s ease-in-out infinite alternate;
  transition: opacity 0.3s ease, margin 0.3s ease;
}
@media screen and (max-width: 899px) {
  .proc-orb.hide-tablet {
    display: none !important;
  }
}
@media screen and (min-width: 601px) and (max-width: 899px) {
  .proc-orb.corner-tl {
    margin-left: -14vw;
    margin-top: -10vh;
  }
  .proc-orb.corner-tr {
    margin-left: 14vw;
    margin-top: -10vh;
  }
  .proc-orb.corner-bl {
    margin-left: -14vw;
    margin-top: 10vh;
  }
  .proc-orb.corner-br {
    margin-left: 14vw;
    margin-top: 10vh;
  }
  .proc-orb.edge-left {
    margin-left: -16vw;
  }
  .proc-orb.edge-right {
    margin-left: 16vw;
  }
}
@media screen and (max-width: 600px) {
  .proc-orb {
    max-width: 72vw;
    max-height: 72vw;
  }
  .proc-orb.hide-mobile {
    display: none !important;
  }
  .proc-orb.corner-tl {
    margin-left: -28vw;
    margin-top: -16vh;
  }
  .proc-orb.corner-tr {
    margin-left: 26vw;
    margin-top: -16vh;
  }
  .proc-orb.corner-bl {
    margin-left: -28vw;
    margin-top: 16vh;
  }
  .proc-orb.corner-br {
    margin-left: 26vw;
    margin-top: 16vh;
  }
  .proc-orb.edge-left {
    margin-left: -30vw;
  }
  .proc-orb.edge-right {
    margin-left: 28vw;
  }
}

.app-viewport {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100%;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 12px;
  box-sizing: border-box;
  gap: 12px;
}
@media screen and (max-width: 600px) {
  .app-viewport {
    padding: 10px 12px 10px;
    height: 100%;
    height: 100dvh;
    min-height: 100dvh;
    justify-content: space-between;
    gap: 10px;
  }
}
@media screen and (min-width: 601px) and (max-width: 899px) {
  .app-viewport {
    padding: 12px 18px 12px;
    height: 100%;
    min-height: 100dvh;
    justify-content: space-between;
    gap: 12px;
  }
}

.top-header-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  flex-shrink: 0;
}

.brand-logo-img {
  max-height: 50px;
  width: auto;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.25s ease;
  filter: drop-shadow(0 14px 26px rgba(13, 88, 216, 0.22)) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.08));
}
.brand-logo-img:hover {
  animation: logoJoyTilt 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 18px 32px rgba(13, 88, 216, 0.3)) drop-shadow(0 6px 14px rgba(0, 0, 0, 0.12));
}
@media screen and (max-width: 600px) {
  .brand-logo-img {
    max-height: 40px;
  }
}

.card-animated {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  will-change: transform, opacity;
  margin-top: auto;
  margin-bottom: auto;
  flex-shrink: 1;
  min-height: 0;
}

.exit-down {
  transform: translateY(115%) scale(0.96) !important;
  opacity: 0 !important;
  pointer-events: none;
}

.enter-from-up {
  transform: translateY(-115%) scale(0.96) !important;
  opacity: 0 !important;
  pointer-events: none;
}

.exit-up {
  transform: translateY(-115%) scale(0.96) !important;
  opacity: 0 !important;
  pointer-events: none;
}

.enter-from-down {
  transform: translateY(115%) scale(0.96) !important;
  opacity: 0 !important;
  pointer-events: none;
}

.card-active-view {
  transform: translateY(0) scale(1) !important;
  opacity: 1 !important;
  pointer-events: auto;
}

#menuCard {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(226, 232, 240, 0.7);
  width: 100%;
  max-width: 650px;
  max-height: calc(100vh - 160px);
  max-height: calc(100dvh - 160px);
  padding: 20px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow-y: auto;
  scrollbar-gutter: stable;
}
@media screen and (min-width: 900px) {
  #menuCard {
    max-width: 840px;
    padding: 22px 30px 18px;
    max-height: calc(100vh - 160px);
    max-height: calc(100dvh - 160px);
  }
}
@media screen and (max-width: 600px) {
  #menuCard {
    padding: 14px 14px 12px;
    border-radius: 20px;
    max-height: calc(100dvh - 150px);
    overflow-y: auto;
  }
}
#menuCard.card-active-view {
  animation: cardFirstLoadEntrance 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.menu-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #FFF4EC 0%, #FFE9D9 100%);
  color: var(--orange);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(255, 101, 1, 0.1);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: menuElementsStagger 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.1s backwards;
}
.menu-badge:hover {
  transform: scale(1.05);
}
.menu-badge svg {
  animation: excitedIconBounce 2s infinite ease-in-out;
}
@media screen and (max-width: 600px) {
  .menu-badge {
    font-size: 0.65rem;
    padding: 4px 10px;
    margin-bottom: 6px;
  }
}

.menu-main-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin-bottom: 4px;
  animation: menuElementsStagger 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.16s backwards;
}
@media screen and (max-width: 600px) {
  .menu-main-title {
    font-size: 1.15rem;
  }
}

.menu-sub-desc {
  font-size: 0.8rem;
  color: var(--dark-muted);
  font-weight: 600;
  margin-bottom: 16px;
  animation: menuElementsStagger 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.22s backwards;
}
@media screen and (max-width: 600px) {
  .menu-sub-desc {
    font-size: 0.74rem;
    margin-bottom: 12px;
  }
}

.modes-vertical-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-bottom: 14px;
}
@media screen and (min-width: 900px) {
  .modes-vertical-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 16px;
  }
}
@media screen and (max-width: 600px) {
  .modes-vertical-stack {
    gap: 8px;
    margin-bottom: 12px;
  }
}

.mode-item-btn {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-pill);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.03);
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  animation: menuElementsStagger 0.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.mode-item-btn:nth-child(1) {
  animation-delay: 0.26s;
}
.mode-item-btn:nth-child(2) {
  animation-delay: 0.32s;
}
.mode-item-btn:nth-child(3) {
  animation-delay: 0.38s;
}
.mode-item-btn:nth-child(4) {
  animation-delay: 0.44s;
}
.mode-item-btn:nth-child(5) {
  animation-delay: 0.5s;
}
.mode-item-btn:nth-child(6) {
  animation-delay: 0.56s;
}
.mode-item-btn:hover {
  background: linear-gradient(180deg, #FFFFFF 0%, #EDF4FE 100%);
  border-color: rgba(13, 88, 216, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -4px rgba(13, 88, 216, 0.14);
}
.mode-item-btn:hover .mode-avatar-circle {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 18px rgba(13, 88, 216, 0.25);
}
.mode-item-btn:hover .mode-avatar-circle svg {
  animation: excitedIconBounce 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.mode-item-btn:hover .mode-meta-chip {
  transform: translateY(-1px) scale(1.06);
}
.mode-item-btn:hover .mode-play-arrow {
  background: var(--blue-gradient);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(13, 88, 216, 0.28);
  transform: none !important;
}
.mode-item-btn:hover .mode-play-arrow svg {
  animation: arrowHeartbeat 1.1s ease-in-out infinite !important;
}
.mode-item-btn:active {
  transform: scale(0.978);
}
@media screen and (max-width: 600px) {
  .mode-item-btn {
    padding: 10px 12px;
    gap: 10px;
    border-radius: 12px;
  }
}

.mode-item-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
@media screen and (max-width: 600px) {
  .mode-item-left {
    gap: 10px;
    flex: 1;
    min-width: 0;
  }
}

.mode-avatar-circle {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}
.mode-avatar-circle svg {
  transition: transform 0.2s ease;
  will-change: transform;
}
@media screen and (max-width: 600px) {
  .mode-avatar-circle {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
  .mode-avatar-circle svg {
    width: 18px !important;
    height: 18px !important;
  }
}

.bg-gradient-blue {
  background: var(--blue-gradient);
}

.bg-gradient-orange {
  background: var(--orange-gradient);
}

.bg-gradient-purple {
  background: linear-gradient(135deg, #8B5CF6 0%, #6D28D9 100%);
}

.bg-gradient-dark {
  background: linear-gradient(135deg, #334155 0%, #0F172A 100%);
}

.bg-gradient-emerald {
  background: var(--green-gradient);
}

@media screen and (max-width: 600px) {
  .mode-item-text {
    min-width: 0;
  }
}

.mode-item-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
  flex-wrap: wrap;
}
.mode-item-header h4 {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.01em;
}
@media screen and (max-width: 600px) {
  .mode-item-header h4 {
    font-size: 0.85rem;
  }
}

.mode-meta-chip {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1.1;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@media screen and (max-width: 600px) {
  .mode-meta-chip {
    font-size: 0.62rem;
    padding: 2px 7px;
  }
}

.chip-blue {
  background: #EEF4FF;
  color: var(--blue);
  border: 1px solid rgba(13, 88, 216, 0.16);
}

.chip-orange {
  background: #FFF4EC;
  color: var(--orange);
  border: 1px solid rgba(255, 101, 1, 0.2);
}

.chip-red {
  background: #FEF2F2;
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.chip-dark {
  background: #F1F5F9;
  color: var(--dark);
  border: 1px solid rgba(15, 23, 42, 0.14);
}

.chip-green {
  background: #ECFDF5;
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.22);
}

.mode-item-text p {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--dark-muted);
  line-height: 1.35;
}
@media screen and (max-width: 600px) {
  .mode-item-text p {
    font-size: 0.68rem;
  }
}

.mode-play-arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(180deg, #FFFFFF 0%, #F1F5F9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-muted);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.mode-play-arrow svg {
  transform-origin: center center;
  will-change: transform;
}
@media screen and (max-width: 600px) {
  .mode-play-arrow {
    width: 26px;
    height: 26px;
  }
  .mode-play-arrow svg {
    width: 15px !important;
    height: 15px !important;
  }
}

.btn-icon-soft {
  background: linear-gradient(180deg, #FFFFFF 0%, #F1F5F9 100%);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 12px;
  padding: 7px 14px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--dark);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.18s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}
.btn-icon-soft:hover {
  background: linear-gradient(180deg, #FFFFFF 0%, #E2E8F0 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}
.btn-icon-soft:hover svg {
  animation: speakerJoyTremble 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: var(--orange);
}
.btn-icon-soft:active {
  transform: scale(0.96);
}
@media screen and (max-width: 600px) {
  .btn-icon-soft {
    padding: 6px 12px;
    font-size: 0.72rem;
  }
}
.btn-icon-soft#btnToggleAudio {
  animation: menuElementsStagger 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.62s backwards;
}

#quizCard {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(226, 232, 240, 0.7);
  width: 100%;
  max-width: 660px;
  max-height: calc(100vh - 160px);
  max-height: calc(100dvh - 160px);
  padding: 20px 26px;
  display: none;
  flex-direction: column;
  position: relative;
  overflow-y: auto;
  scrollbar-gutter: stable;
}
@media screen and (min-width: 900px) {
  #quizCard {
    max-width: 720px;
    padding: 24px 30px;
    max-height: calc(100vh - 160px);
    max-height: calc(100dvh - 160px);
  }
}
@media screen and (max-width: 600px) {
  #quizCard {
    padding: 14px 14px 12px;
    border-radius: 20px;
    max-height: calc(100dvh - 150px);
    overflow-y: auto;
  }
}

.card-top-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}
@media screen and (max-width: 600px) {
  .card-top-hud {
    gap: 8px;
    margin-bottom: 10px;
  }
}

.q-number-pill {
  background: linear-gradient(135deg, #EEF4FF 0%, #E2ECFE 100%);
  color: var(--blue);
  font-weight: 800;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(13, 88, 216, 0.12);
}
@media screen and (max-width: 600px) {
  .q-number-pill {
    font-size: 0.68rem;
    padding: 5px 10px;
    gap: 4px;
  }
}

.q-timer-pill {
  background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%);
  color: var(--red);
  font-weight: 800;
  font-size: 0.78rem;
  padding: 5px 12px;
  border-radius: 20px;
  display: none;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(239, 68, 68, 0.15);
  animation: pulse 1s infinite alternate;
}
@media screen and (max-width: 600px) {
  .q-timer-pill {
    font-size: 0.72rem;
    padding: 4px 9px;
  }
}

.card-statement-text {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--dark);
  margin-bottom: 14px;
  white-space: pre-line;
}
@media screen and (max-width: 600px) {
  .card-statement-text {
    font-size: 0.92rem;
    line-height: 1.48;
    margin-bottom: 12px;
  }
}

.card-img-wrapper {
  background: linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 100%);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-pill);
  padding: 12px;
  margin-bottom: 14px;
  text-align: center;
  cursor: zoom-in;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}
.card-img-wrapper:hover {
  transform: scale(1.018);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}
.card-img-wrapper img {
  max-height: 180px;
  max-width: 100%;
  border-radius: 10px;
  object-fit: contain;
}
@media screen and (max-width: 600px) {
  .card-img-wrapper img {
    max-height: 150px;
  }
}
@media screen and (max-width: 600px) {
  .card-img-wrapper {
    padding: 8px;
    margin-bottom: 10px;
  }
}

.card-img-hint {
  margin-top: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.card-options-stack {
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 100%;
  margin-bottom: 14px;
}
@media screen and (max-width: 600px) {
  .card-options-stack {
    gap: 8px;
    margin-bottom: 12px;
  }
}

.opt-pill-btn {
  background: linear-gradient(180deg, #FFFFFF 0%, #F1F5F9 100%);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: var(--radius-pill);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  user-select: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.opt-pill-btn:hover:not(.locked) {
  background: linear-gradient(180deg, #FFFFFF 0%, #E8EEF8 100%);
  border-color: rgba(13, 88, 216, 0.3);
  transform: translateX(4px);
  box-shadow: 0 6px 16px rgba(13, 88, 216, 0.1);
}
.opt-pill-btn:hover:not(.locked) .opt-letter-tag {
  animation: letterJoyBounce 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 12px rgba(13, 88, 216, 0.22);
}
.opt-pill-btn:active:not(.locked) {
  transform: scale(0.98);
}
@media screen and (max-width: 600px) {
  .opt-pill-btn {
    padding: 10px 12px;
    gap: 10px;
    border-radius: 12px;
  }
}

.opt-letter-tag {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--dark);
  font-weight: 800;
  font-size: 0.86rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
  transition: all 0.2s ease;
  will-change: transform;
}
@media screen and (max-width: 600px) {
  .opt-letter-tag {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }
}

.opt-body-text {
  flex: 1;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.4;
}
@media screen and (max-width: 600px) {
  .opt-body-text {
    font-size: 0.84rem;
  }
}

.opt-pill-btn.is-correct {
  background: var(--green-gradient) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  transform: scale(1.015);
  box-shadow: 0 8px 20px -4px rgba(16, 185, 129, 0.45);
  animation: popSuccessCelebration 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.opt-pill-btn.is-correct .opt-letter-tag {
  background: #ffffff !important;
  color: var(--green) !important;
  animation: excitedIconBounce 0.65s ease;
}
.opt-pill-btn.is-correct .opt-body-text {
  color: #ffffff !important;
}

.opt-pill-btn.is-wrong {
  background: var(--red-gradient) !important;
  border-color: transparent !important;
  color: #ffffff !important;
  animation: shakeWrongTremble 0.45s ease-in-out;
}
.opt-pill-btn.is-wrong .opt-letter-tag {
  background: #ffffff !important;
  color: var(--red) !important;
}
.opt-pill-btn.is-wrong .opt-body-text {
  color: #ffffff !important;
}

.opt-pill-btn.is-study-revealed {
  border-color: rgba(16, 185, 129, 0.7) !important;
  background: linear-gradient(180deg, #F0FDF4 0%, #DCFCE7 100%) !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.2);
}
.opt-pill-btn.is-study-revealed .opt-letter-tag {
  background: var(--green) !important;
  color: #ffffff !important;
}
.opt-pill-btn.is-study-revealed .opt-body-text {
  color: #065F46 !important;
  font-weight: 700;
}

.card-feedback-strip {
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  margin-bottom: 14px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  animation: fadeIn 0.25s ease;
}
.card-feedback-strip.show {
  display: flex;
}
.card-feedback-strip.good {
  background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
  color: #065F46;
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.card-feedback-strip.bad {
  background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%);
  color: #991B1B;
  border: 1px solid rgba(239, 68, 68, 0.2);
}
@media screen and (max-width: 600px) {
  .card-feedback-strip {
    padding: 8px 12px;
    gap: 8px;
    margin-bottom: 12px;
  }
}

.feedback-msg-main {
  font-weight: 800;
  font-size: 0.84rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
@media screen and (max-width: 600px) {
  .feedback-msg-main {
    font-size: 0.78rem;
  }
}

.feedback-msg-sub {
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.88;
}
@media screen and (max-width: 600px) {
  .feedback-msg-sub {
    font-size: 0.68rem;
  }
}

.feedback-key-badge {
  background: #ffffff;
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.88rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
}
@media screen and (max-width: 600px) {
  .feedback-key-badge {
    font-size: 0.8rem;
    padding: 3px 8px;
  }
}

.card-bottom-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: auto;
}
@media screen and (max-width: 600px) {
  .card-bottom-actions {
    gap: 8px;
  }
}

.btn-pill-action {
  border: none;
  border-radius: var(--radius-btn);
  padding: 11px 20px;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-pill-action:hover svg {
  animation: buttonIconJump 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.btn-pill-action:active {
  transform: scale(0.96) !important;
}
@media screen and (max-width: 600px) {
  .btn-pill-action {
    padding: 10px 16px;
    font-size: 0.74rem;
    gap: 6px;
  }
}

.btn-pill-orange {
  background: var(--orange-gradient);
  color: #ffffff;
  box-shadow: var(--btn-shadow-orange);
}
.btn-pill-orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -4px rgba(255, 101, 1, 0.55);
}

.btn-pill-soft {
  background: linear-gradient(180deg, #FFFFFF 0%, #F1F5F9 100%);
  border: 1px solid rgba(226, 232, 240, 0.8);
  color: var(--dark);
}
.btn-pill-soft:hover {
  background: linear-gradient(180deg, #FFFFFF 0%, #E2E8F0 100%);
  transform: translateY(-1px);
}

#reportCard {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(226, 232, 240, 0.7);
  width: 100%;
  max-width: 580px;
  max-height: calc(100vh - 160px);
  max-height: calc(100dvh - 160px);
  padding: 20px 24px;
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow-y: auto;
  scrollbar-gutter: stable;
}
@media screen and (max-width: 600px) {
  #reportCard {
    padding: 14px 14px 12px;
    border-radius: 20px;
    max-height: calc(100dvh - 150px);
    overflow-y: auto;
  }
}

.report-score-rect {
  width: 100%;
  background: linear-gradient(135deg, #EEF4FF 0%, #DCE8FD 100%);
  border: 1.5px solid rgba(13, 88, 216, 0.18);
  border-radius: var(--radius-pill);
  padding: 12px 18px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 4px auto 12px;
  box-shadow: 0 8px 20px -4px rgba(13, 88, 216, 0.16);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.report-score-rect:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -4px rgba(13, 88, 216, 0.24);
}
.report-score-rect .score-rect-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}
.report-score-rect .score-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(13, 88, 216, 0.14);
  flex-shrink: 0;
}
.report-score-rect .score-data-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  flex: 1;
}
.report-score-rect .score-eyebrow {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--blue-deep);
}
.report-score-rect .score-digits-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.report-score-rect .score-num {
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1.05;
  color: var(--blue);
}
.report-score-rect .score-unit {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: 0.04em;
}
.report-score-rect .score-rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #FFFFFF;
  color: #FF6501;
  border: 1px solid rgba(255, 101, 1, 0.25);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 6px rgba(255, 101, 1, 0.1);
  white-space: nowrap;
  flex-shrink: 0;
}
.report-score-rect .score-bar-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding-top: 2px;
}
.report-score-rect .score-bar-track {
  flex: 1;
  height: 7px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 9999px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
}
.report-score-rect .score-bar-fill {
  height: 100%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #FF6501 0%, #10B981 100%);
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.report-score-rect .score-accuracy-lbl {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--blue-deep);
  white-space: nowrap;
}
@media screen and (max-width: 600px) {
  .report-score-rect {
    padding: 10px 14px 8px;
    gap: 6px;
    margin: 4px auto 10px;
  }
  .report-score-rect .score-icon-badge {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }
  .report-score-rect .score-icon-badge svg {
    width: 18px;
    height: 18px;
  }
  .report-score-rect .score-num {
    font-size: 1.55rem;
  }
  .report-score-rect .score-rank-badge {
    font-size: 0.65rem;
    padding: 3px 8px;
  }
}

.report-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  width: 100%;
  margin-bottom: 12px;
}
@media screen and (max-width: 600px) {
  .report-stats-grid {
    gap: 6px;
    margin-bottom: 10px;
  }
}

.report-stat-pill {
  border-radius: var(--radius-pill);
  padding: 10px 8px;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
  border: 1.5px solid transparent;
}
.report-stat-pill.pill-correct {
  background: linear-gradient(180deg, #F0FDF4 0%, #DCFCE7 100%);
  border-color: rgba(16, 185, 129, 0.3);
  color: #059669;
}
.report-stat-pill.pill-wrong {
  background: linear-gradient(180deg, #FEF2F2 0%, #FEE2E2 100%);
  border-color: rgba(239, 68, 68, 0.3);
  color: #DC2626;
}
.report-stat-pill.pill-blank {
  background: linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 100%);
  border-color: rgba(148, 163, 184, 0.3);
  color: #475569;
}
.report-stat-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
}
.report-stat-pill .val {
  font-size: 1.3rem;
  font-weight: 800;
}
@media screen and (max-width: 600px) {
  .report-stat-pill .val {
    font-size: 1.15rem;
  }
}
.report-stat-pill .lbl {
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 2px;
  opacity: 0.9;
}
@media screen and (max-width: 600px) {
  .report-stat-pill .lbl {
    font-size: 0.6rem;
    gap: 2px;
  }
}

.report-teacher-tip {
  width: 100%;
  background: linear-gradient(135deg, #FFFBF5 0%, #FFF5EB 100%);
  border: 1px solid rgba(255, 101, 1, 0.22);
  border-radius: 14px;
  padding: 10px 14px;
  margin-bottom: 12px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 4px 10px rgba(255, 101, 1, 0.04);
}
.report-teacher-tip .tip-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--orange);
}
.report-teacher-tip .tip-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.4;
  margin: 0;
}
@media screen and (max-width: 600px) {
  .report-teacher-tip {
    padding: 8px 12px;
    margin-bottom: 10px;
  }
  .report-teacher-tip .tip-text {
    font-size: 0.76rem;
  }
}

.yt-section-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  margin-bottom: 6px;
}

.yt-section-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #FFF1F1;
  color: #DC2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.yt-section-sub {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--dark-muted);
}
@media screen and (max-width: 600px) {
  .yt-section-sub {
    font-size: 0.68rem;
  }
}

.yt-clean-card {
  width: 100%;
  max-width: 440px;
  background: #FFFFFF;
  border: 1.5px solid rgba(226, 232, 240, 0.95);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  margin: 2px auto 14px;
  box-shadow: 0 6px 20px -4px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}
.yt-clean-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -4px rgba(255, 0, 0, 0.18), 0 4px 10px rgba(0, 0, 0, 0.04);
  border-color: rgba(255, 0, 0, 0.35);
}
.yt-clean-card:hover .yt-clean-play-btn {
  transform: translate(-50%, -50%) scale(1.15);
  background: #E60000;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.65);
}
.yt-clean-card:hover .yt-clean-thumb-img {
  transform: scale(1.03);
}
.yt-clean-card:hover .yt-clean-title {
  color: #0D58D8;
}
.yt-clean-card:active {
  transform: scale(0.98);
}
@media screen and (max-width: 600px) {
  .yt-clean-card {
    max-width: 100%;
    margin: 2px auto 12px;
    border-radius: 14px;
  }
}

.yt-clean-thumb-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
  background: #0F172A;
  border-radius: 14px 14px 0 0;
}

.yt-clean-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  transition: transform 0.35s ease;
}

.yt-clean-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #FF0000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(255, 0, 0, 0.45);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s ease, box-shadow 0.25s ease;
  z-index: 2;
}
.yt-clean-play-btn svg {
  margin-left: 3px;
}
@media screen and (max-width: 600px) {
  .yt-clean-play-btn {
    width: 40px;
    height: 40px;
  }
  .yt-clean-play-btn svg {
    width: 18px;
    height: 18px;
  }
}

.yt-clean-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.82);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  z-index: 2;
}

.yt-clean-info {
  display: flex;
  align-items: flex-start;
  padding: 10px 14px 12px;
  background: #FFFFFF;
  gap: 12px;
}
@media screen and (max-width: 600px) {
  .yt-clean-info {
    padding: 8px 10px 10px;
    gap: 9px;
  }
}

.yt-channel-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1.5px solid rgba(226, 232, 240, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  margin-top: 2px;
  overflow: hidden;
}
.yt-channel-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 50%;
}
@media screen and (max-width: 600px) {
  .yt-channel-avatar {
    width: 34px;
    height: 34px;
  }
}

.yt-clean-text-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  flex: 1;
  min-width: 0;
}

.yt-clean-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0F172A;
  margin: 0;
  line-height: 1.35;
  transition: color 0.2s ease;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
@media screen and (max-width: 600px) {
  .yt-clean-title {
    font-size: 0.82rem;
  }
}

.yt-clean-meta-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748B;
  margin-top: 3px;
  flex-wrap: wrap;
}
.yt-clean-meta-row .yt-clean-dot {
  opacity: 0.5;
}
@media screen and (max-width: 600px) {
  .yt-clean-meta-row {
    font-size: 0.68rem;
    gap: 4px;
  }
}

.yt-clean-more-btn {
  color: #64748B;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.7;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s ease;
}
.yt-clean-more-btn:hover {
  background: #F1F5F9;
  opacity: 1;
}

.bottom-info-pill {
  background: linear-gradient(135deg, #0C50CA 0%, #050FAF 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  padding: 9px 24px;
  border-radius: 30px;
  box-shadow: 0 10px 24px -4px rgba(5, 15, 175, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  user-select: none;
  margin-top: auto !important;
  margin-bottom: 4px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bottom-info-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -4px rgba(5, 15, 175, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.bottom-info-pill .info-chunk {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.bottom-info-pill .info-chunk:hover {
  transform: translateY(-2px) scale(1.05);
}
.bottom-info-pill .info-chunk:hover svg {
  animation: footerIconBounce 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: var(--orange-accent);
}
.bottom-info-pill .info-divider {
  opacity: 0.4;
  font-size: 0.9rem;
}
.bottom-info-pill .highlight-txt {
  color: var(--orange-accent);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
@media screen and (max-width: 600px) {
  .bottom-info-pill {
    padding: 8px 14px;
    border-radius: 18px;
    gap: 6px 10px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 0.68rem;
    max-width: 100%;
    margin-top: auto !important;
    margin-bottom: 6px;
  }
  .bottom-info-pill .info-chunk {
    gap: 5px;
  }
  .bottom-info-pill .info-chunk svg {
    width: 13px !important;
    height: 13px !important;
  }
  .bottom-info-pill .info-divider {
    display: inline-block;
    opacity: 0.3;
    font-size: 0.75rem;
  }
}
@media screen and (max-width: 380px) {
  .bottom-info-pill {
    font-size: 0.64rem;
    gap: 4px 8px;
  }
  .bottom-info-pill .info-divider {
    display: none;
  }
}

.modal-map-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-map-overlay.active {
  display: flex;
}
@media screen and (max-width: 600px) {
  .modal-map-overlay {
    padding: 12px;
  }
}

.map-card-box {
  background: #ffffff;
  border-radius: var(--radius-card);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 600px;
  max-height: 80vh;
  padding: 22px;
  display: flex;
  flex-direction: column;
}
@media screen and (max-width: 600px) {
  .map-card-box {
    padding: 16px 14px;
    border-radius: 20px;
    max-height: 86vh;
  }
}

.map-grid-stack {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
  overflow-y: auto;
  scrollbar-gutter: stable;
  padding: 10px 2px;
  margin-top: 10px;
}
@media screen and (max-width: 600px) {
  .map-grid-stack {
    grid-template-columns: repeat(5, 1fr);
    gap: 7px;
  }
}
@media screen and (max-width: 380px) {
  .map-grid-stack {
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
  }
}

.map-pill-btn {
  background: linear-gradient(180deg, #FFFFFF 0%, #F1F5F9 100%);
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 8px;
  padding: 8px 4px;
  font-weight: 800;
  font-size: 0.8rem;
  cursor: pointer;
  text-align: center;
  transition: all 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.map-pill-btn:hover {
  background: var(--orange-subtle);
  color: var(--orange);
  border-color: rgba(255, 101, 1, 0.3);
  transform: translateY(-2px) scale(1.08);
  box-shadow: 0 4px 10px rgba(255, 101, 1, 0.18);
}
.map-pill-btn.curr {
  background: var(--blue-gradient);
  border-color: transparent;
  color: #ffffff;
}
.map-pill-btn.right {
  background: var(--green-gradient);
  border-color: transparent;
  color: #ffffff;
}
.map-pill-btn.wrong {
  background: var(--red-gradient);
  border-color: transparent;
  color: #ffffff;
}
@media screen and (max-width: 600px) {
  .map-pill-btn {
    padding: 10px 4px;
    font-size: 0.84rem;
    border-radius: 8px;
  }
}

.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  cursor: zoom-out;
}
.lightbox-overlay.active {
  display: flex;
}
@media screen and (max-width: 600px) {
  .lightbox-overlay {
    padding: 12px;
  }
}

.lightbox-img-tag {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-pill);
  background: #ffffff;
  padding: 12px;
  box-shadow: var(--card-shadow);
}
@media screen and (max-width: 600px) {
  .lightbox-img-tag {
    padding: 8px;
    border-radius: 12px;
  }
}
