    :root {
      --primary: #0b1f44;
      --secondary: #4c96dc;
      --panel: rgba(11, 31, 68, 0.06);
      --border: rgba(11, 31, 68, 0.12);
      --text: #0b1f44;
      --success: #2ecc71;
      --danger: #e74c3c;
      --muted: rgba(11, 31, 68, 0.7);
    }

    * { box-sizing: border-box; }

    .vocabulary-game {
      margin: 0;
      padding: 90px 0 0;
      font-family: 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
      background: transparent;
      color: var(--text);
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }

    .start-screen {
      position: fixed;
      inset: 0;
      background: rgba(255, 255, 255, 0.92);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 18px;
      text-align: center;
      cursor: pointer;
      z-index: 30;
      user-select: none;
    }

    .start-screen.hidden {
      display: none;
    }

    .start-screen__logo {
      width: min(240px, 70vw);
      max-width: 280px;
      height: auto;
    }

    .start-screen__text {
      font-size: 22px;
      font-weight: 800;
      color: var(--primary);
      transition: opacity 0.4s ease;
    }

    .start-screen__text.is-fading {
      opacity: 0;
    }

    .start-screen__button {
      min-width: 180px;
    }

    .start-screen--blank > * {
      opacity: 0;
    }

    .start-screen__difficulty {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
      width: min(300px, 80vw);
    }

    .start-screen__difficulty.hidden {
      display: none;
    }

    .start-screen__difficulty-buttons {
      display: flex;
      flex-direction: column;
      gap: 10px;
      width: 100%;
    }

    .start-screen__difficulty-btn {
      width: 100%;
    }

    @media (min-width: 1024px) {
      .start-screen__text {
        font-size: 29px;
      }
    }

    .game-status {
      width: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 8;
    }

    .game-status--top {
      margin-bottom: 0;
    }

    .game-status--bottom {
      margin-top: 0;
      min-height: 64px;
    }

    .vocabulary-game.phase-1 .game-status--bottom {
      transform: translateY(25px);
    }

    .vocabulary-game.phase-5 .game-status--bottom {
      transform: translateY(90px);
    }

    .vocabulary-game.phase-8 .game-status--bottom {
      transform: translateY(100px);
    }

    .vocabulary-game.phase-10 .game-status--bottom {
      transform: translateY(-20px);
    }

    .vocabulary-game.from-flashcards .game-status,
    .vocabulary-game.from-flashcards .progress-footer,
    .vocabulary-game.from-flashcards .phase-audio-progress,
    .vocabulary-game.from-flashcards .phase-audio-skip {
      display: none;
    }

    .game-hearts {
      display: flex;
      gap: 4px;
      align-items: center;
      justify-content: center;
      width: 100%;
    }

    .game-heart {
      width: 34px;
      height: 34px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: opacity 0.5s ease;
    }

    .game-heart img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    .game-heart--lost {
      opacity: 0.4;
    }

    .game-medal {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0;
      padding: 0;
      border-radius: 0;
      background: transparent;
      border: none;
      box-shadow: none;
    }

    .vocabulary-game .game-medal {
      display: flex;
    }

    .game-medal img {
      width: calc(54px * 1.6);
      height: calc(54px * 1.6);
      object-fit: contain;
    }

    .vocabulary-game .game-main {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-start;
      padding: 30px 16px 60px;
      position: relative;
      gap: 0;
    }

    .vocabulary-game.phase-2 .game-main {
      transform: translateY(90px);
    }

    .vocabulary-game.phase-3 .game-main {
      transform: translateY(60px);
    }

    .vocabulary-game.phase-4 .game-main {
      transform: translateY(50px);
    }

    .vocabulary-game.phase-7 .game-main {
      transform: translateY(70px);
    }

    .vocabulary-game.phase-9 .game-main {
      transform: translateY(100px);
    }

    .board-wrapper {
      width: 100%;
      display: flex;
      justify-content: center;
      margin-top: 0;
    }

    .board {
      width: min(450px, 100%);
      max-width: 450px;
      height: 450px;
      background: rgba(11, 31, 68, 0.04);
      border: 1px solid var(--border);
      border-radius: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      overflow: hidden;
      transition: opacity 0.5s ease;
    }

    .board.board--expanded {
      width: min(550px, 100%);
      max-width: 550px;
      height: 550px;
    }

    .board.board--compact {
      width: min(360px, 100%);
      max-width: 360px;
      height: 360px;
      background: transparent;
      border: none;
      box-shadow: none;
    }

    @media (max-width: 768px) {
      .board { width: 360px; height: 360px; }
      .board.board--expanded { width: min(420px, 100%); height: 460px; }
      .board.board--compact { width: min(300px, 100%); height: 300px; }
    }

    .board__inner {
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      flex-wrap: wrap;
      transition: opacity 0.5s ease;
    }

    .board.board--compact .board__inner {
      gap: 4px;
    }

    .board__inner--grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      grid-template-rows: repeat(2, minmax(0, 1fr));
      grid-auto-rows: minmax(0, 1fr);
      gap: 10px;
      padding: 10px;
      place-items: stretch;
    }

    .vocabulary-game.phase-4 .board {
      height: auto;
      width: min(675px, 100%);
      max-width: 675px;
      aspect-ratio: 2 / 3;
    }

    .vocabulary-game.phase-4 .board__inner--grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      grid-template-rows: repeat(3, minmax(0, 1fr));
      gap: 15px;
      padding: 15px;
    }

    .vocabulary-game.phase-4 .grid-card {
      padding: 15px;
      border-radius: 30px;
    }

    .vocabulary-game.phase-4 .grid-card .image-visual {
      width: 100%;
      height: 100%;
    }

    .board__image-single {
      width: 100%;
      height: 100%;
      max-width: 100%;
      max-height: 100%;
      opacity: 0.85;
      aspect-ratio: 1 / 1;
      border-radius: 50%;
      object-fit: cover;
    }

    .board__image-icon {
      object-fit: contain;
      padding: 18px;
    }

    .image-visual {
      position: relative;
      display: grid;
      place-items: center;
      width: var(--image-visual-size, clamp(140px, 40vw, 220px));
      height: var(--image-visual-size, clamp(140px, 40vw, 220px));
      --tense-ring: none;
      --tense-animation: none;
      --tense-glow: none;
      --form-ring: none;
      --form-animation: none;
      --form-glow: none;
      --tense-filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.25));
      --tense-mask: none;
      --tense-lens: none;
      --form-lens: none;
    }

    .image-visual--fill {
      width: 100%;
      height: 100%;
    }

    .vocabulary-game.phase-2 .image-visual {
      border-radius: 50%;
      overflow: hidden;
      width: calc(var(--image-visual-size, clamp(140px, 40vw, 220px)) + 30px);
      height: var(--image-visual-size, clamp(140px, 40vw, 220px));
    }

    .vocabulary-game.phase-2 .grid-card {
      aspect-ratio: 1 / 1;
    }

    .vocabulary-game.phase-2 .board__inner--grid {
      gap: 4px;
      padding: 6px;
    }

    .vocabulary-game.phase-2 .grid-card {
      padding: 6px;
    }

    .vocabulary-game.phase-2 .grid-card .image-visual {
      transform: scale(1.15);
      transform-origin: center;
    }

    .vocabulary-game.phase-5 .image-visual {
      transform: scale(1.15);
      transform-origin: center;
    }

    .vocabulary-game.phase-8 .image-visual {
      transform: scale(1);
      transform-origin: center;
      --image-visual-size: clamp(286px, 82vw, 450px);
    }

    .vocabulary-game.phase-8 .image-visual img {
      border: none;
    }

    .vocabulary-game.phase-8 .image-lens {
      display: none;
    }

    .image-ring,
    .image-lens {
      position: absolute;
      inset: 0;
      border-radius: 50%;
      pointer-events: none;
    }

    .image-ring {
      background: var(--ring-gradient, none);
      -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--ring-width, 12px)), #000 calc(100% - var(--ring-width, 12px)));
      mask: radial-gradient(farthest-side, transparent calc(100% - var(--ring-width, 12px)), #000 calc(100% - var(--ring-width, 12px)));
      animation: var(--ring-animation, none);
      box-shadow: var(--ring-glow, none);
      z-index: 1;
    }

    .image-ring--tense {
      --ring-gradient: var(--tense-ring);
      --ring-animation: var(--tense-animation);
      --ring-glow: var(--tense-glow);
      --ring-width: 15px;
    }

    .vocabulary-game.phase-1 .image-ring--tense {
      --ring-width: 22px;
    }

    .image-ring--form {
      display: none;
    }

    .image-ring--accuracy {
      --accuracy-progress: 0deg;
      --accuracy-opacity: 0;
      --ring-width: 14px;
      background: conic-gradient(
        #22c55e 0deg,
        #22c55e var(--accuracy-progress),
        rgba(34, 197, 94, 0) var(--accuracy-progress),
        rgba(34, 197, 94, 0) 360deg
      );
      opacity: var(--accuracy-opacity);
      transition: --accuracy-progress 1000ms linear;
      z-index: 2;
    }

    .image-lens--tense { background: var(--tense-lens, none); }
    .image-lens--form { background: var(--form-lens, none); }

    .image-lens {
      inset: 10px;
      z-index: 4;
    }

    .image-visual img {
      width: 100%;
      height: 100%;
      filter: var(--tense-filter);
      -webkit-mask-image: var(--tense-mask);
      mask-image: var(--tense-mask);
    }

    .board__image-text {
      position: relative;
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      padding: 16px;
      font-size: clamp(16px, 4vw, 22px);
      font-weight: 800;
      color: #0b1f44;
      line-height: 1.2;
      z-index: 6;
    }

    .vocabulary-game.phase-6 .image-visual {
      --image-visual-size: clamp(170px, 50vw, 260px);
    }

    .vocabulary-game.phase-6 .board.board--compact {
      width: min(420px, 100%);
      max-width: 420px;
      height: 420px;
    }

    .vocabulary-game.phase-6 .image-ring,
    .vocabulary-game.phase-6 .image-lens {
      display: none;
    }

    .vocabulary-game.phase-6 .board__image-text {
      font-size: clamp(28px, 8vw, 48px);
      line-height: 1.15;
    }

    @keyframes spin {
      to { transform: rotate(360deg); }
    }

    @keyframes spin-partial {
      0% { transform: rotate(0deg); }
      80% { transform: rotate(270deg); }
      100% { transform: rotate(270deg); }
    }

    @keyframes swing {
      0% { transform: rotate(-90deg); }
      50% { transform: rotate(90deg); }
      100% { transform: rotate(-90deg); }
    }

    .board__image-single--phase-one {
      opacity: 1;
    }

    .vocabulary-game.phase-1 .board__image-single--phase-one {
      transform: scale(1.15);
      transform-origin: center;
    }

    .board__image-speech {
      opacity: 0.6;
      cursor: pointer;
      transition: opacity 0.5s ease, transform 0.2s ease;
    }

    .board__image-speech--static {
      cursor: default;
    }

    .board__image-speech--listening {
      opacity: 1;
      transform: scale(1.02);
    }

    .board__image-speech--evaluating {
      opacity: 1;
    }

    .vocabulary-game.phase-8 .image-ring--accuracy {
      --ring-width: 17px;
    }

    .vocabulary-game.phase-8 .board,
    .vocabulary-game.phase-9 .board,
    .vocabulary-game.phase-10 .board {
      background: transparent;
      border: none;
      box-shadow: none;
    }

    .vocabulary-game.phase-2 .image-ring--tense {
      --ring-width: 9px;
    }

    .vocabulary-game.phase-4 .image-ring--tense {
      --ring-width: 7px;
    }

    .board__mic-prompt {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
      text-align: center;
    }

    .board__mic-button {
      background: transparent;
      border: none;
      padding: 0;
      cursor: pointer;
    }

    .board__mic-button:disabled {
      cursor: default;
      opacity: 0.8;
    }

    .board__mic-image {
      width: 220px;
      height: 220px;
      border-radius: 50%;
      object-fit: cover;
      opacity: 0.6;
    }

    .board__mic-text {
      margin: 0;
      font-size: 14px;
      line-height: 1.3;
      color: var(--muted);
      letter-spacing: 0.3px;
      text-transform: lowercase;
    }

    .phase-mic-hint {
      margin: 8px 0 0;
      font-size: 13px;
      color: var(--muted);
      text-align: center;
    }

    @media (max-width: 768px) {
      .board__mic-image {
        width: 180px;
        height: 180px;
      }
    }

    .grid-card {
      width: 100%;
      height: 100%;
      padding: 10px;
      border-radius: 20px;
      aspect-ratio: 1 / 1;
      background-color: rgba(11, 31, 68, 0.08);
      border: none;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: transform 0.2s ease, background-color 300ms ease, opacity 300ms ease;
      position: relative;
      overflow: hidden;
      cursor: pointer;
      opacity: 1;
    }

    .grid-card--static {
      pointer-events: none;
      cursor: default;
    }

    .grid-card .image-visual {
      width: 100%;
      height: 100%;
      aspect-ratio: 1 / 1;
    }

    .grid-card img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
    .grid-card img.image--webp { object-fit: cover; border-radius: 50%; }

    .board__image-single.image--webp {
      border-radius: 50%;
      object-fit: cover;
      aspect-ratio: 1 / 1;
    }

    .board.board--compact {
      --image-visual-size: clamp(220px, 45vw, 300px);
    }

    .grid-card--correct { background-color: rgba(46, 204, 113, 0.5); }
    .grid-card--wrong { background-color: rgba(231, 76, 60, 0.5); }

    .grid-card--enter {
      opacity: 0;
      animation: cardFadeIn 0.5s ease forwards;
    }

    .grid-card--dissolve {
      opacity: 0;
      transition: opacity 1s ease;
    }

    .grid-card--gone {
      opacity: 0;
      pointer-events: none;
    }

    .board--hidden { opacity: 0; pointer-events: none; }

    .hidden-phase { opacity: 0; pointer-events: none; }

    .text-container {
      margin-top: 0;
      width: min(480px, 100%);
      min-height: 48px;
      text-align: center;
      font-size: 22px;
      font-weight: 700;
      opacity: 0;
      transition: opacity 0.5s ease;
    }

    .text-container.active { opacity: 1; }

    .text-container--split {
      text-align: justify;
      text-align-last: justify;
      text-justify: inter-word;
    }

    .text-container--writing {
      font-size: 24px;
      font-weight: 800;
      transition: opacity 0.25s ease;
    }

    .vocabulary-game.phase-9 .text-container,
    .vocabulary-game.phase-10 .text-container {
      font-family: 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
      font-weight: 700;
      font-size: 26px;
    }

    .vocabulary-game.phase-9 .text-container {
      color: #3b82f6;
      text-shadow: none;
    }

    .vocabulary-game.phase-10 .text-container {
      color: #fff;
      text-shadow: 0 2px 4px rgba(60, 60, 60, 0.6);
    }

    .vocabulary-game.phase-9 .game-main,
    .vocabulary-game.phase-10 .game-main {
      align-items: center;
    }

    .vocabulary-game.phase-9 .game-status--top,
    .vocabulary-game.phase-10 .game-status--top {
      order: 1;
    }

    .vocabulary-game.phase-9 .board-wrapper,
    .vocabulary-game.phase-10 .board-wrapper {
      order: 2;
    }

    .vocabulary-game.phase-9 .board {
      height: 150px;
      max-height: 150px;
    }

    .vocabulary-game.phase-9 .text-container,
    .vocabulary-game.phase-10 .text-container {
      order: 3;
      margin-top: 0;
    }

    .vocabulary-game.phase-9 .game-status--bottom,
    .vocabulary-game.phase-10 .game-status--bottom {
      order: 4;
      margin-top: 0;
    }

    .vocabulary-game.phase-9 .choice-row,
    .vocabulary-game.phase-10 .choice-row {
      order: 5;
    }

    .vocabulary-game.phase-10 .choice-row {
      transform: translateY(-20px);
    }

    .text-container--writing-feedback {
      background: #22c55e;
      color: #fff;
      border-radius: 12px;
      padding: 8px 12px;
    }

    .text-container--writing-dissolve {
      opacity: 0;
    }

    .text-container--compact {
      width: auto;
      margin-top: 6px;
      min-height: 32px;
    }

    .vocabulary-game.phase-8 .text-container {
      font-size: 18.7px;
      margin-top: 20px;
    }

    .vocabulary-game.phase-8 .text-container.text-container--phase-eight-animate {
      animation: phaseEightTextGrow 8000ms linear forwards;
      transform-origin: center;
      will-change: transform, opacity;
    }

    .vocabulary-game.phase-7 .text-container.text-container--phase-eight-animate {
      animation: phaseEightTextGrow 8000ms linear forwards;
      transform-origin: center;
      will-change: transform, opacity;
    }

    .vocabulary-game.phase-6 .text-container {
      font-size: 44px;
      width: min(720px, 100%);
    }

    .vocabulary-game.phase-8 .game-main {
      gap: 0;
    }

    .vocabulary-game.phase-8 .game-status--top,
    .vocabulary-game.phase-8 .game-status--bottom {
      margin: 0;
    }

    .vocabulary-game.phase-8 .board-wrapper {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0;
      margin-top: 100px;
    }

    .vocabulary-game.phase-10 .board {
      height: auto;
      width: min(520px, 95vw);
      max-width: 520px;
    }

    .vocabulary-game.phase-10 .image-visual {
      --image-visual-size: clamp(220px, 65vw, 360px);
    }

    .vocabulary-game.phase-10 .board__inner--writing {
      gap: 10px;
      padding: 10px 12px 16px;
    }

    @media (max-width: 768px) {
      .vocabulary-game.phase-9 .game-main,
      .vocabulary-game.phase-10 .game-main {
        padding: 18px 12px 70px;
        gap: 6px;
      }

      .vocabulary-game.phase-9 .board {
        width: min(360px, 95vw);
        height: 150px;
      }

      .vocabulary-game.phase-10 .board {
        width: min(360px, 95vw);
        height: min(360px, 95vw);
      }

      .vocabulary-game.phase-9 .game-medal img,
      .vocabulary-game.phase-10 .game-medal img {
        width: calc(54px * 1.3);
        height: calc(54px * 1.3);
      }

      .vocabulary-game.phase-9 .game-heart,
      .vocabulary-game.phase-10 .game-heart {
        width: 28px;
        height: 28px;
      }

      .vocabulary-game.phase-9 .text-container,
      .vocabulary-game.phase-10 .text-container {
        font-size: 22px;
        min-height: 40px;
      }
    }

    .choice-row {
      display: flex;
      flex-direction: column;
      gap: 8px;
      justify-content: center;
      align-items: center;
      margin-top: 0;
      transition: opacity 0.5s ease;
      width: min(450px, 100%);
      transform: none;
    }

    .choice-row.choice-row--writing {
      width: min(840px, 100%);
      transform: translateY(0);
      gap: 12px;
    }

    .writing-toolbar {
      display: flex;
      justify-content: center;
      width: 100%;
    }

    .writing-undo {
      border: none;
      border-radius: 999px;
      padding: 6px 18px;
      font-weight: 800;
      background: #f1f5f9;
      color: #0f172a;
      cursor: pointer;
      transition: transform 0.2s ease;
    }

    .writing-undo:hover {
      transform: translateY(-1px);
    }

    .writing-hub {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 8px;
      width: 100%;
    }

    .writing-chip {
      border: none;
      background: #eee;
      color: #fff;
      font-weight: 800;
      height: 34px;
      padding: 0 12px;
      border-radius: 12px;
      cursor: pointer;
      text-transform: none;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.5s ease, opacity 0.5s ease;
    }

    .writing-chip:hover:not(:disabled) {
      transform: translateY(-1px);
      box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15);
    }

    .writing-chip:disabled,
    .writing-chip--selected {
      cursor: default;
      box-shadow: none;
    }

    .writing-chip--display {
      cursor: default;
      opacity: 1;
    }

    .writing-chip--correct {
      background: #22c55e;
      color: #fff;
    }

    .writing-chip--red {
      background: linear-gradient(135deg, #ef4444, #dc2626);
    }

    .writing-chip--blue {
      background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    }

    .writing-chip--purple {
      background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    }

    .writing-chip--gold {
      background: linear-gradient(135deg, #f59e0b, #d97706);
    }

    .writing-chip--gremio {
      background: linear-gradient(135deg, #00a0e4, #0b4da8);
    }

    .writing-chip--orange {
      background: linear-gradient(135deg, #f97316, #ea580c);
    }

    @keyframes phaseEightTextGrow {
      0% {
        opacity: 0;
        transform: scale(1);
      }
      12.5% {
        opacity: 1;
      }
      87.5% {
        opacity: 1;
      }
      100% {
        opacity: 0;
        transform: scale(2);
      }
    }

    @keyframes phaseTenRowGap {
      0% {
        column-gap: 10px;
      }
      50% {
        column-gap: 20px;
      }
      100% {
        column-gap: 10px;
      }
    }

    .board__inner--writing {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 12px;
      padding: 12px;
    }

    .writing-display {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 8px;
      width: 100%;
    }

    .writing-display--highlight {
      filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.35));
    }

    .vocabulary-game.phase-1 .choice-row {
      transform: none;
    }

    .choice-row--compact {
      width: auto;
      margin-top: 6px;
    }

    .choice-btn {
      background: #2c6fbf;
      color: #fff;
      border: none;
      padding: 15px 23px;
      border-radius: 12px;
      font-weight: 700;
      cursor: pointer;
      transition: transform 0.15s ease, background 0.2s ease;
      min-width: 192px;
      width: 100%;
      font-size: 26px;
      font-family: 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
      text-transform: capitalize;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: clip;
    }

    .vocabulary-game.phase-8 .choice-btn {
      font-size: 22.1px;
      padding: 12.75px 19.55px;
      min-width: 163.2px;
    }

    .choice-btn:hover { transform: translateY(-1px); }
    .choice-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

    .choice-btn.success { background: var(--success); }
    .choice-btn.error { background: var(--danger); }

    .phase-word-btn {
      background: linear-gradient(120deg, #3a86d1, #4c96dc);
      color: #fff;
      border: none;
      padding: 18px 28px;
      border-radius: 16px;
      font-weight: 800;
      cursor: pointer;
      transition: transform 0.15s ease, background 0.2s ease;
      min-width: 282px;
      width: min(450px, 100%);
      font-size: 30px;
      font-family: 'Open Sans', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
      text-transform: capitalize;
      box-shadow: 0 8px 24px rgba(76, 150, 220, 0.3);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: clip;
    }

    .vocabulary-game.phase-8 .phase-word-btn {
      font-size: 25.5px;
      padding: 15.3px 23.8px;
      min-width: 239.7px;
      box-shadow: 0 6.8px 20.4px rgba(76, 150, 220, 0.3);
      margin-top: 60px;
    }

    .vocabulary-game.phase-5 .phase-word-btn {
      margin-top: 70px;
    }

    .vocabulary-game.phase-9,
    .vocabulary-game.phase-10 {
      --writing-chip-font-size: 15px;
      --writing-chip-height: 34px;
      --writing-chip-padding: 13px;
      --writing-chip-radius: 11px;
    }

    .vocabulary-game.phase-9 .writing-hub {
      display: grid;
      grid-template-columns: repeat(4, max-content);
      gap: 8px;
      width: min(640px, 100%);
      justify-content: center;
    }

    .vocabulary-game.phase-10 .writing-hub {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      width: min(640px, 100%);
      justify-content: center;
    }

    .vocabulary-game.phase-10 .writing-hub__row {
      display: flex;
      justify-content: center;
      column-gap: 10px;
      animation: phaseTenRowGap 1500ms ease-in-out infinite;
    }

    .vocabulary-game.phase-10 .writing-hub__row--2 { animation-duration: 1700ms; }
    .vocabulary-game.phase-10 .writing-hub__row--3 { animation-duration: 1800ms; }
    .vocabulary-game.phase-10 .writing-hub__row--4 { animation-duration: 2100ms; }

    .vocabulary-game.phase-9 .writing-chip,
    .vocabulary-game.phase-10 .writing-chip,
    .vocabulary-game.phase-9 .writing-chip--display,
    .vocabulary-game.phase-10 .writing-chip--display {
      font-size: var(--writing-chip-font-size);
      height: var(--writing-chip-height);
      padding: 0 var(--writing-chip-padding);
      border-radius: var(--writing-chip-radius);
      width: max-content;
      justify-self: center;
    }

    .vocabulary-game.phase-9 .writing-chip:disabled,
    .vocabulary-game.phase-10 .writing-chip:disabled {
      opacity: 1;
    }

    .vocabulary-game.phase-9 .writing-chip--selected,
    .vocabulary-game.phase-10 .writing-chip--selected {
      background: #22c55e;
      color: #fff;
    }

    .vocabulary-game.phase-9 .writing-hub--error .writing-chip,
    .vocabulary-game.phase-10 .writing-hub--error .writing-chip {
      background: linear-gradient(135deg, #ef4444, #dc2626);
      color: #fff;
    }

    .phase-word-btn:hover { transform: translateY(-1px); }

    .phase-word-btn--listening {
      box-shadow: 0 0 0 4px rgba(76, 150, 220, 0.25);
      transform: translateY(-1px) scale(1.01);
    }

    .phase-word-btn--icon-only {
      width: 110px;
      height: 110px;
      min-width: auto;
      font-size: 41px;
      border-radius: 50%;
      padding: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    .progress-footer {
      position: fixed;
      left: 0;
      right: 0;
      bottom: calc(var(--nav-height, 0px));
      display: flex;
      justify-content: center;
      pointer-events: none;
    }

    .vocabulary-game.phase-4 .progress-footer {
      visibility: hidden;
    }

    .progress-bar {
      width: 100%;
      height: 10px;
      background: transparent;
      border-radius: 0;
      overflow: hidden;
      box-shadow: none;
    }

    .progress-bar__fill {
      height: 100%;
      width: 0%;
      background: #22c55e;
      transition: width 0.25s ease;
    }

    .game-overlay {
      position: fixed;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(7, 19, 40, 0.7);
      backdrop-filter: blur(6px);
      z-index: 10;
    }

    .game-overlay.hidden { display: none; }

    .full-green-overlay {
      position: fixed;
      inset: 0;
      background: #17a94c;
      z-index: 20;
      display: none;
      align-items: center;
      justify-content: center;
    }

    .full-green-overlay.active {
      display: flex;
    }

    .final-overlay {
      position: fixed;
      inset: 0;
      background: #f7f8fa;
      z-index: 25;
      display: none;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      gap: 24px;
      color: var(--text);
      text-align: center;
      overflow: hidden;
    }

    .final-overlay.active {
      display: flex;
    }

    .final-overlay::before {
      content: '';
      position: absolute;
      inset: 0;
      background: transparent;
      z-index: 0;
    }

    .final-overlay > * {
      position: relative;
      z-index: 1;
    }

    .final-overlay__bar {
      width: min(520px, 92%);
      height: 16px;
      background: rgba(11, 31, 68, 0.06);
      border: 1px solid var(--border);
      border-radius: 999px;
      overflow: hidden;
      box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      bottom: 24px;
    }

    .final-overlay__fill {
      height: 100%;
      width: 0;
      background: linear-gradient(90deg, #3a86d1, #4c96dc);
      transition: width 0.15s linear;
    }

    .final-overlay__medal {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 10px;
    }

    .final-overlay__medal img {
      width: 160px;
      height: 160px;
      object-fit: contain;
    }

    .final-overlay__medal span {
      font-size: 22px;
      font-weight: 800;
      color: var(--text);
      text-transform: capitalize;
    }

    .final-overlay__stats {
      display: flex;
      gap: 32px;
      align-items: center;
      justify-content: center;
    }

    .final-overlay__actions {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
      justify-content: center;
    }

    .final-overlay.hide-actions .final-overlay__actions {
      display: none;
    }

    .final-overlay__actions .btn-primary {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      text-decoration: none;
    }

    .final-stat {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
      min-width: 160px;
    }

    .final-stat__content {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
    }

    .final-stat--rotating {
      overflow: hidden;
    }

    .final-stat--rotating .final-stat__content {
      transition: transform 0.6s ease, opacity 0.6s ease;
    }

    .final-stat--rotating.is-sliding .final-stat__content {
      transform: translateY(12px);
      opacity: 0;
    }

    .final-stat__icon {
      width: 54px;
      height: 54px;
      object-fit: contain;
      filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.35));
    }

    .final-stat__value {
      font-size: 42px;
      font-weight: 800;
      line-height: 1;
    }

    .final-stat__label {
      font-size: 14px;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      opacity: 0.85;
    }

    .phase-audio-progress {
      width: 100%;
      height: 8px;
      border-radius: 999px;
      background: rgba(11, 31, 68, 0.12);
      overflow: hidden;
      margin-top: 12px;
    }

    .phase-audio-progress__fill {
      width: 0%;
      height: 100%;
      background: var(--secondary);
      transition: width 0.2s ease;
    }

    .phase-audio-skip {
      margin: 12px 0 0;
      font-size: 15px;
      font-weight: 400;
      color: #4a4a4a;
    }

    .overlay-card {
      width: min(520px, 92%);
      background: #fff;
      color: #0b1f44;
      border-radius: 20px;
      padding: 32px 28px;
      box-shadow: 0 12px 48px rgba(0, 0, 0, 0.28);
      text-align: center;
    }

    .overlay-card h1 {
      margin: 0 0 24px;
      font-size: 26px;
      font-weight: 800;
    }

    .phase-list {
      list-style: none;
      padding-left: 0;
      margin: 0 0 12px;
      display: grid;
      gap: 8px;
    }

    .phase-list li {
      background: rgba(27, 79, 154, 0.06);
      border: 1px solid rgba(27, 79, 154, 0.12);
      border-radius: 12px;
      padding: 8px 10px;
      font-weight: 600;
      color: #0b1f44;
    }

    .overlay-actions {
      display: flex;
      justify-content: center;
      gap: 10px;
      margin-top: 12px;
      flex-wrap: wrap;
    }

    .btn-primary {
      background: linear-gradient(120deg, #3a86d1, #4c96dc);
      color: #fff;
      border: none;
      padding: 15px 23px;
      border-radius: 12px;
      font-weight: 800;
      font-size: 16px;
      cursor: pointer;
      transition: transform 0.15s ease, opacity 0.2s ease;
    }

    .btn-primary:hover { transform: translateY(-1px); }

    .btn-primary:disabled {
      cursor: default;
      opacity: 0.6;
    }

    .btn-orange {
      background: linear-gradient(120deg, #ffb347, #ff7a18);
      color: #fff;
      border: none;
      padding: 26px 29px;
      border-radius: 12px;
      font-weight: 800;
      font-size: 29px;
      cursor: pointer;
      transition: transform 0.15s ease, opacity 0.2s ease;
      width: 100%;
    }

    .level-complete__countdown {
      margin: 8px 0 0;
      font-size: 20px;
      font-weight: 700;
      color: var(--primary);
    }

    .btn-orange:hover { transform: translateY(-1px); }

    .btn-orange:disabled {
      background: linear-gradient(120deg, #b9b9b9, #9e9e9e);
      cursor: not-allowed;
      opacity: 0.9;
      transform: none;
    }

    @keyframes cardFadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      border: 0;
    }

    .is-hidden {
      display: none !important;
    }
