:root {
  color-scheme: light;
  --background: #f4f5ff;
  --surface: #ffffff;
  --surface-muted: #f8f8fb;
  --primary: #6c4ef5;
  --primary-dark: #4d34c9;
  --primary-soft: #ede9ff;
  --accent: #ff8c69;
  --text: #1d1b2f;
  --text-soft: #4d4a65;
  --border: #e2def3;
  --success: #1fbf74;
  --error: #e54f6d;
  --note-radius: 56px;
  --shadow-soft: 0 20px 45px rgba(108, 78, 245, 0.12);
  --shadow-card: 0 12px 32px rgba(38, 15, 123, 0.08);
  --shadow-floating: 0 18px 28px rgba(0, 0, 0, 0.12);
  --transition: 160ms cubic-bezier(0.33, 1, 0.68, 1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: radial-gradient(circle at 15% 20%, #fff5db 0%, #fef4f8 42%, #f4f5ff 100%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button,
.button {
  font: inherit;
  cursor: pointer;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.button--primary {
  background: linear-gradient(135deg, var(--primary) 0%, #8f72ff 100%);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.button--primary:hover,
.button--primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 24px 40px rgba(108, 78, 245, 0.18);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--primary-dark);
  border: 1px solid rgba(108, 78, 245, 0.25);
}

.button--ghost:hover,
.button--ghost:focus-visible {
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
}

.container {
  width: min(1080px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(250, 248, 255, 0.8);
  border-bottom: 1px solid rgba(108, 78, 245, 0.1);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand__mark {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  box-shadow: var(--shadow-card);
}

.brand__name {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-dark);
}

.site-nav {
  display: flex;
  gap: 1.25rem;
}

.site-nav__link {
  text-decoration: none;
  font-weight: 600;
  color: var(--text-soft);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  transition: background-color var(--transition), color var(--transition);
}

.site-nav__link:hover,
.site-nav__link:focus-visible,
.site-nav__link--active {
  background: rgba(108, 78, 245, 0.12);
  color: var(--primary-dark);
}

/* Hamburger menu button (hidden on desktop) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  padding: 0.5rem;
  cursor: pointer;
  border: none;
  z-index: 101;
}

.hamburger__line {
  width: 28px;
  height: 3px;
  background: var(--primary-dark);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger--active .hamburger__line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger--active .hamburger__line:nth-child(2) {
  opacity: 0;
}

.hamburger--active .hamburger__line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.hero {
  padding: 5rem 0 4rem;
}

.hero__inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
  align-items: center;
}

.hero__content h1 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero__lead {
  font-size: 1.125rem;
  color: var(--text-soft);
  max-width: 32ch;
}

.hero__lead p {
  margin: 0 0 0.9rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.hero__visual {
  display: flex;
  justify-content: center;
}

.hero__card {
  position: relative;
  padding: 1.25rem;
  background: var(--surface);
  border-radius: 32px;
  box-shadow: var(--shadow-soft);
  max-width: 320px;
}

.hero__card img {
  border-radius: 24px;
}

.hero__badge {
  position: absolute;
  bottom: -18px;
  right: 40px;
  background: var(--accent);
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: var(--shadow-floating);
}

.intro {
  padding: 3rem 0 4rem;
}

.intro__inner {
  text-align: center;
}

.intro__inner h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-bottom: 0.7rem;
}

.intro__copy {
  color: var(--text-soft);
  max-width: 60ch;
  margin: 0 auto 2.5rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--surface);
  padding: 1.75rem;
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  text-align: left;
}

.feature-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.story {
  padding: 3.5rem 0;
  background: var(--surface-muted);
}

.story__inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
  align-items: center;
}

.story__text h2 {
  margin: 0 0 1.3rem;
  font-size: clamp(2.1rem, 3.5vw, 2.8rem);
}

.story__text p {
  margin: 0 0 1rem;
  color: var(--text-soft);
  font-size: 1.05rem;
}

.story__visual {
  display: flex;
  justify-content: center;
}

.story__visual img {
  width: min(320px, 65vw);
  border-radius: 32px;
  box-shadow: var(--shadow-soft);
}


.game {
  padding: 4rem 0 5rem;
}

.section-header {
  text-align: center;
  max-width: 60ch;
  margin: 0 auto 2rem;
}

.section-header p {
  color: var(--text-soft);
}

.game-panel {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.game-panel__sidebar {
  display: grid;
  gap: 1.5rem;
  background: var(--surface);
  padding: 1.75rem;
  border-radius: 24px;
  box-shadow: var(--shadow-card);
}

.stat-card {
  display: grid;
  gap: 0.6rem;
}

.stat-card__label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--text-soft);
}

.stat-card__value {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.progress {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: var(--surface-muted);
  overflow: hidden;
}

.progress__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(135deg, var(--primary) 0%, #8f72ff 100%);
  border-radius: inherit;
  transition: width 220ms ease-out;
}

.progress__hint {
  font-size: 0.82rem;
  color: var(--text-soft);
}

.controller {
  display: grid;
  gap: 0.75rem;
}

.status-message {
  min-height: 2.5rem;
  border-radius: 16px;
  padding: 0.85rem 1rem;
  background: rgba(108, 78, 245, 0.08);
  color: var(--primary-dark);
  font-weight: 500;
}

.status-message--success {
  background: rgba(31, 191, 116, 0.12);
  color: var(--success);
}

.status-message--error {
  background: rgba(229, 79, 109, 0.12);
  color: var(--error);
}

.game-panel__board {
  position: relative;
  background: var(--surface);
  padding: 2rem;
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 1.5rem;
  overflow: hidden;
}


.chord-target {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border-radius: 20px;
  padding: 1.5rem;
  border: 1px solid rgba(29, 27, 47, 0.08);
}


.chord-target__content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.75rem;
  color: #111111;
}

.chord-target__text {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: inherit;
  -webkit-text-stroke: 0;
  text-shadow: none;
}

.chord-timer {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: inherit;
}

.chord-timer__label {
  color: inherit;
}

.chord-timer__value {
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
  color: inherit;
}

.chord-target__hint {
  margin: 0;
  color: #2a5fde;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.4);
  -webkit-text-stroke: 0;
}

.game-surface {
  position: relative;
  display: grid;
  gap: 1.5rem;
}

.game-surface__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.dev-controls[hidden] {
  display: none !important;
}

.status-message--inline {
  background: none;
  padding: 0;
  min-height: auto;
  color: var(--text-soft);
}

.page-hero {
  padding: 5rem 0 3rem;
  background: radial-gradient(circle at 10% 20%, rgba(108, 78, 245, 0.08), transparent 60%),
              radial-gradient(circle at 90% 0%, rgba(255, 140, 105, 0.18), transparent 65%),
              #f8f9ff;
}

.page-hero__inner {
  display: grid;
  gap: 2.5rem;
  text-align: center;
}

.page-hero__inner h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
}

.page-hero__lede {
  margin: 0 auto;
  max-width: 60ch;
  font-size: 1.1rem;
  color: var(--text-soft);
}

.video-section {
  padding: 3.5rem 0;
}

.video-section .section-header {
  margin-bottom: 2.5rem;
}

.video-accordion {
  display: grid;
  gap: 1rem;
}

.floating-player {
  position: fixed;
  bottom: 32px;
  right: 32px;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 28px 48px rgba(18, 15, 46, 0.2);
  width: 320px;
  z-index: 40;
}

.floating-player__art img {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: var(--shadow-card);
}

.floating-player__body {
  flex: 1;
  display: grid;
  gap: 0.45rem;
}

.floating-player__meta {
  display: grid;
  gap: 0.25rem;
}

.floating-player__title {
  font-weight: 700;
  color: #120f2e;
}

.floating-player__subtitle {
  font-size: 0.85rem;
  color: var(--text-soft);
}

.floating-player__audio {
  width: 100%;
  accent-color: var(--primary);
}

.level-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 17, 26, 0.72);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  border-radius: inherit;
  z-index: 30;
}

.level-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.level-overlay__card {
  text-align: center;
  background: #ffffff;
  padding: 2.5rem 3rem;
  border-radius: 24px;
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.28);
  display: grid;
  gap: 1.25rem;
  max-width: 360px;
}

.level-overlay__card h3 {
  margin: 0;
  font-size: 1.8rem;
  color: #111111;
}

.level-overlay__card p {
  margin: 0;
  color: #333333;
}

.button--levelup {
  font-size: 1.2rem;
  padding: 1rem 2.5rem;
  border-radius: 999px;
  box-shadow: 0 18px 35px rgba(108, 78, 245, 0.35);
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1.25rem;
  justify-content: center;
  background: var(--surface-muted);
  border-radius: 28px;
  padding: 2rem;
  box-shadow: inset 0 0 0 1px rgba(29, 27, 47, 0.05);
}

.note-ball-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
}

.note-flip-container {
  perspective: 900px;
  width: 100%;
  height: 100%;
}

.note-flipper {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.5s cubic-bezier(.7,1.2,.6,1.01);
  transform-style: preserve-3d;
}

.note-ball-wrapper:hover .note-flipper {
  transform: rotateY(180deg);
}

.note-ball {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.3rem;
  color: #1d1b2f;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: radial-gradient(ellipse at 30% 25%, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.35) 48%, var(--candy-color, #ede9ff) 100%);
  box-shadow:
    0 10px 18px rgba(108, 78, 245, 0.18),
    inset 0 0 0 4px rgba(255, 255, 255, 0.45),
    inset 0 12px 18px rgba(255, 255, 255, 0.42);
  backface-visibility: hidden;
  cursor: pointer;
  transition: transform 0.15s ease-in-out, box-shadow 0.2s ease-out;
  position: relative;
}

.note-ball.note-front {
  z-index: 2;
}

.note-ball.note-back {
  transform: rotateY(180deg);
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  background: radial-gradient(ellipse at 30% 25%, #fff 0%, #f6f4ff 55%, var(--candy-color, #ede9ff) 100%);
}

.note-candy-preview {
  font-size: 1.8rem;
  filter: drop-shadow(0 2px 6px rgba(18, 15, 46, 0.15));
}

.note-candy-label {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  background: rgba(18, 15, 46, 0.08);
  color: var(--text);
}

.note-ball-wrapper.selected .note-ball.note-front {
  transform: scale(1.1);
  box-shadow: 0 18px 32px rgba(31, 191, 116, 0.25);
  outline: 3px solid rgba(31, 191, 116, 0.9);
}

.note-ball-wrapper .note-ball:active {
  transform: scale(0.95);
}

.note-ball-wrapper .note-ball.candied {
  opacity: 0;
  pointer-events: none;
}

.note-letter {
  font-size: 1.3rem;
}

.note-candy-mini {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translate(-50%, 8px);
  font-size: 1.05rem;
  opacity: 0;
  transition: transform 0.18s ease, opacity 0.18s ease;
  pointer-events: none;
}

.note-ball-wrapper.selected .note-candy-mini {
  opacity: 1;
  transform: translate(-50%, -2px);
}

.note-label-fade {
  transition: opacity 0.33s cubic-bezier(.7,1.2,.6,1.01);
  display: inline-block;
}

.candy-emoji-fade {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  font-size: 2rem;
  opacity: 0;
  pointer-events: none;
}

.inventory {
  border: 1px solid rgba(29, 27, 47, 0.08);
  border-radius: 22px;
  padding: 1.75rem;
  background: var(--surface-muted);
  display: grid;
  gap: 1.25rem;
}

.level-progress-header {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.level-complete {
  color: var(--success);
}

.level-incomplete {
  color: var(--text-soft);
}

.candy-icons-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.candy-item {
  display: grid;
  gap: 0.45rem;
  place-items: center;
  background: #fff;
  border-radius: 16px;
  padding: 0.85rem 1.1rem;
  min-width: 100px;
  box-shadow: var(--shadow-card);
}

.candy-emoji {
  font-size: 1.8rem;
  transition: transform 0.2s ease, opacity 0.2s ease;
  opacity: 0.8;
}

.candy-emoji.completed {
  opacity: 1;
  transform: scale(1.12);
}

.candy-count {
  font-weight: 700;
  font-size: 1rem;
}

.candy-progress-container {
  width: 100%;
}

.candy-progress-bar-bg {
  height: 8px;
  border-radius: 999px;
  background: rgba(108, 78, 245, 0.12);
  overflow: hidden;
}

.candy-progress-bar-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  transition: width 250ms ease-out;
}

.candy-progress-text {
  font-size: 0.85rem;
  color: var(--text-soft);
}

.candy-icon {
  position: fixed;
  font-size: 2rem;
  z-index: 50;
  pointer-events: none;
  transition: transform 0.7s cubic-bezier(.6,1.5,.6,1.01), top 0.7s, left 0.7s, opacity 0.2s 0.65s;
}

.fly-to-inventory {
  opacity: 1;
  transform: translate(-50%, 230px) scale(0.7) rotate(25deg);
}

.fade-out {
  opacity: 0 !important;
  pointer-events: none;
  transform: scale(1.2) rotate(-10deg);
}

.level-up {
  border-radius: 22px;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(108, 78, 245, 0.12), rgba(31, 191, 116, 0.12));
  display: grid;
  gap: 1rem;
  box-shadow: 0 14px 32px rgba(18, 15, 46, 0.1);
}

.level-up__message {
  font-weight: 600;
  color: var(--primary-dark);
}


.cta {
  padding: 4rem 0;
}

.cta__inner {
  background: linear-gradient(135deg, rgba(108, 78, 245, 0.12), rgba(255, 140, 105, 0.15));
  border-radius: 28px;
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: var(--shadow-card);
}

.cta__inner p {
  margin: 0;
  color: var(--text-soft);
}

.site-footer {
  padding: 2.5rem 0;
  background: #120f2e;
  color: rgba(255, 255, 255, 0.8);
}

.footer__inner {
  display: grid;
  gap: 1.5rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer__logo {
  width: 48px;
  height: 48px;
  border-radius: 16px;
}

.footer__player {
  display: grid;
  gap: 0.75rem;
}

.footer__player-label {
  font-weight: 600;
}

.footer__audio {
  width: 100%;
}

.button--footer {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  background: #ffffff;
  color: #120f2e;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button--footer:hover,
.button--footer:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(255, 255, 255, 0.3);
}

.music-note {
  position: fixed;
  font-size: 1.6rem;
  pointer-events: none;
  animation: floatNote 3s linear forwards;
  z-index: 100;
}

@keyframes floatNote {
  0% {
    opacity: 0;
    transform: translateY(0) scale(1);
  }
  10% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-120px) scale(1.4);
  }
}

@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    order: -1;
  }

  .game-panel {
    grid-template-columns: 1fr;
  }

  .game-panel__sidebar {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
  }

  .controller {
    grid-auto-flow: column;
    justify-content: center;
  }

  .status-message {
    grid-column: 1 / -1;
  }

  .story__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .story__visual {
    order: -1;
    margin-bottom: 2rem;
  }

  .cta__inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__credit {
    justify-self: center;
  }
}

@media (max-width: 720px) {
  .page-hero {
    padding: 4rem 0 2rem;
  }

  .header__inner {
    flex-direction: row;
    gap: 1rem;
    position: relative;
  }

  /* Show hamburger button on mobile */
  .hamburger {
    display: flex;
    order: 2;
  }

  /* Mobile navigation */
  .site-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(250, 248, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 100;
  }

  .site-nav--open {
    transform: translateX(0);
  }

  /* Hide hamburger items by default on mobile */
  .site-nav__link--hamburger {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  /* Show hamburger items when menu is open */
  .site-nav--open .site-nav__link--hamburger {
    opacity: 1;
    transform: translateY(0);
  }

  /* Add staggered animation delays */
  .site-nav--open .site-nav__link--hamburger:nth-child(1) {
    transition-delay: 0.1s;
  }

  .site-nav--open .site-nav__link--hamburger:nth-child(2) {
    transition-delay: 0.2s;
  }

  .site-nav--open .site-nav__link--hamburger:nth-child(3) {
    transition-delay: 0.3s;
  }

  /* Hide Rubik's Cube link completely on mobile */
  .site-nav__link--rubiks {
    display: none;
  }

  .site-nav__link {
    font-size: 1.5rem;
    padding: 1rem 1.5rem;
  }

  .hero {
    padding-top: 4rem;
  }

  .feature-card {
    text-align: center;
  }

  .note-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .note-flip-container {
    width: 100%;
    height: 100%;
  }

  .controller {
    grid-auto-flow: row;
  }

  .floating-player {
    position: static;
    width: 100%;
    margin: 0 auto 2rem;
    box-shadow: var(--shadow-soft);
  }

  .floating-player__title {
    font-size: 1rem;
  }

  .floating-player__subtitle {
    font-size: 0.8rem;
  }

  .button--footer {
    width: 100%;
    justify-content: center;
  }

  .video-accordion details {
    padding: 0.85rem 1rem;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 15px;
  }

  .container {
    width: 90vw;
  }

  .note-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .note-flip-container {
    width: 100%;
    height: 100%;
  }

  .game-panel__board {
    padding: 1.5rem;
  }

  .footer__inner {
    text-align: center;
  }

  .footer__brand {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
.video-accordion__item {
  border: 1px solid rgba(29, 27, 47, 0.1);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.video-accordion__item[open] {
  border-color: rgba(108, 78, 245, 0.4);
  box-shadow: 0 22px 36px rgba(18, 15, 46, 0.12);
}

.video-accordion summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: #120f2e;
}

.video-accordion summary::marker,
.video-accordion summary::-webkit-details-marker {
  display: none;
}

.video-accordion__summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.video-accordion__thumb {
  width: 90px;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.video-accordion__date {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.video-accordion__embed,
.video-accordion__embed-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 0 0 16px 16px;
  display: block;
}

.video-accordion__embed-placeholder {
  background: rgba(0, 0, 0, 0.4);
  margin-top: -1rem;
}
