
      :root {
        --vm-primary: #153243;
        --vm-primary-dark: #0b1a24;
        --vm-main-bg: #f9f9f9;
        --vm-paper: #fefefa;
        --vm-accent: #e96754;
        --vm-accent-dark: #9b302d;
        --vm-muted: #42617a;
        --vm-border: rgba(21, 50, 67, 0.16);
        --vm-soft-border: rgba(21, 50, 67, 0.1);
        --vm-shadow: 0 18px 50px rgba(11, 26, 36, 0.1);
        --vm-success: #4f8b6b;
        --vm-error: #b84d4d;
      }

      .vm-home-container {
        width: min(100%, 1180px);
        margin: 0 auto;
        min-height: calc(100vh - 60px);
      }

      .vm-game-section {
        width: min(100%, 820px);
        margin: 42px auto 64px;
        padding: 0 18px;
        box-sizing: border-box;
        color: var(--vm-primary);
        font-family: "Lato", sans-serif;
        /* yazi icin */
        min-height: 100vh;
      }

      .vm-game-card {
        background: var(--vm-paper);
        border: 1px solid var(--vm-soft-border);
        border-radius: 18px;
        box-shadow: var(--vm-shadow);
        overflow: hidden;

        position: relative;
      }

      .vm-game-header {
        padding: 26px 28px 22px;
        border-bottom: 1px solid var(--vm-soft-border);
      }

      .vm-game-title {
        margin: 0;
        color: var(--vm-primary-dark);
        font-family: "Montserrat", sans-serif;
        font-size: clamp(1.65rem, 4vw, 2.25rem);
        line-height: 1.15;
        letter-spacing: -0.035em;
      }

      .vm-game-subtitle {
        max-width: 620px;
        margin: 9px 0 0;
        color: var(--vm-muted);
        font-size: 1rem;
        line-height: 1.55;
      }

      .vm-intro {
        padding: 30px 28px 32px;
      }

      .vm-intro-panel {
        padding: 22px;
        background: rgba(66, 97, 122, 0.065);
        border: 1px solid rgba(66, 97, 122, 0.13);
        border-radius: 14px;
      }

      .vm-intro-panel p {
        margin: 0;
        color: var(--vm-primary);
        font-size: 1rem;
        line-height: 1.65;
      }

      .vm-intro-panel p + p {
        margin-top: 10px;
      }

      .vm-intro-actions {
        display: flex;
        justify-content: center;
        margin-top: 24px;
      }

      .vm-game-shell {
        padding: 20px 24px 18px;
      }

      .vm-top-area {
        margin-bottom: 12px;
      }

      .vm-top-line {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 12px;
      }

      .vm-level-label {
        color: var(--vm-primary);
        font-family: "Montserrat", sans-serif;
        font-size: 0.82rem;
        font-weight: 800;
        letter-spacing: 0.02em;
        white-space: nowrap;
      }

      .vm-phase-text {
        margin: 0 0 10px;
        color: var(--vm-muted);
        font-size: 0.94rem;
        font-weight: 700;
      }

      .vm-timer-row {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 16px;
        margin-bottom: 14px;
      }

      .vm-preview-track {
        width: 100%;
        height: 7px;
        overflow: hidden;
        background: rgba(66, 97, 122, 0.12);
        border-radius: 999px;
        opacity: 0;
        transition: opacity 140ms ease;
      }

      .vm-preview-track.is-active {
        opacity: 1;
      }

      .vm-preview-fill {
        width: 100%;
        height: 100%;
        background: var(--vm-accent);
        border-radius: inherit;
        transform-origin: left center;
      }

      .vm-restart-icon-button {
        appearance: none;
        display: grid;
        width: 34px;
        height: 34px;
        padding: 0;
        place-items: center;
        background: transparent;
        border: 0;
        border-radius: 50%;
        cursor: pointer;
        transition:
          background 130ms ease,
          transform 130ms ease,
          opacity 130ms ease;
      }

      .vm-restart-icon-button:hover:not(:disabled) {
        background: rgba(66, 97, 122, 0.08);
        /* transform: translateY(-1px); */
      }

      .vm-restart-icon-button:active:not(:disabled) {
        transform: translateY(0);
      }

      .vm-restart-icon-button:focus-visible {
        outline: 3px solid rgba(233, 103, 84, 0.28);
        outline-offset: 3px;
      }

      .vm-restart-icon-button:disabled {
        opacity: 0.35;
        cursor: not-allowed;
      }

      .vm-restart-icon {
        display: block;
        width: 23px;
        height: 23px;
      }

      .vm-canvas-wrap {
        position: relative;
        width: 100%;
        overflow: hidden;
        background: var(--vm-main-bg);
        border: 1px solid var(--vm-soft-border);
        border-radius: 16px;
      }

      #visualMemoryCanvas {
        display: block;
        width: 100%;
        height: 420px;
        touch-action: none;
        user-select: none;
        -webkit-user-select: none;
        -webkit-tap-highlight-color: transparent;
        cursor: grab;
      }

      #visualMemoryCanvas.is-dragging {
        cursor: grabbing;
      }

      .vm-message {
        min-height: 24px;
        margin: 14px 0 0;
        color: var(--vm-muted);
        font-size: 0.94rem;
        font-weight: 700;
        text-align: center;
      }

      .vm-message.is-success {
        color: var(--vm-success);
      }

      .vm-message.is-error {
        color: var(--vm-error);
      }

      .vm-score-label {
        display: block;
        margin: 10px 0 0 8px;
        color: var(--vm-primary);
        font-family: "Montserrat", sans-serif;
        font-size: 0.8rem;
        font-weight: 800;
        letter-spacing: 0.02em;
        white-space: nowrap;
      }

      .vm-score-bottom {
        opacity: 0.95;
      }

      .vm-button {
        appearance: none;
        min-height: 44px;
        padding: 11px 20px;
        border: 1px solid transparent;
        border-radius: 10px;
        font-family: "Montserrat", sans-serif;
        font-size: 0.88rem;
        font-weight: 700;
        line-height: 1;
        cursor: pointer;
        transition:
          transform 130ms ease,
          background 130ms ease,
          border-color 130ms ease,
          opacity 130ms ease;
      }

      .vm-button:hover:not(:disabled) {
        transform: translateY(-1px);
      }

      .vm-button:active:not(:disabled) {
        transform: translateY(0);
      }

      .vm-button:focus-visible {
        outline: 3px solid rgba(233, 103, 84, 0.28);
        outline-offset: 3px;
      }

      .vm-button-primary {
        color: #fff;
        background: var(--vm-accent);
        border-color: var(--vm-accent);
      }

      .vm-button-primary:hover:not(:disabled) {
        background: #d95e4d;
        border-color: #d95e4d;
      }

      .vm-button-secondary {
        color: var(--vm-primary);
        background: transparent;
        border-color: rgba(21, 50, 67, 0.22);
      }

      .vm-button-secondary:hover:not(:disabled) {
        background: rgba(66, 97, 122, 0.07);
        border-color: rgba(21, 50, 67, 0.34);
      }

      .vm-button:disabled {
        opacity: 0.42;
        cursor: not-allowed;
      }

      .vm-complete {
        padding: 38px 28px 40px;
        text-align: center;
      }

      .vm-complete-badge {
        display: grid;
        width: 64px;
        height: 64px;
        margin: 0 auto 18px;
        place-items: center;
        color: #fff;
        background: var(--vm-success);
        border-radius: 50%;
        font-family: "Montserrat", sans-serif;
        font-size: 1.6rem;
        font-weight: 800;
      }

      .vm-complete h2 {
        margin: 0;
        color: var(--vm-primary-dark);
        font-family: "Montserrat", sans-serif;
        font-size: clamp(1.4rem, 4vw, 2rem);
      }

      .vm-complete p {
        margin: 10px auto 0;
        max-width: 520px;
        color: var(--vm-muted);
        line-height: 1.6;
      }

      .vm-complete .vm-button {
        margin-top: 24px;
      }

      [hidden] {
        display: none !important;
      }

      @media (max-width: 620px) {
        .vm-game-section {
          margin-top: 24px;
          padding: 0 10px;
        }

        .vm-game-card {
          border-radius: 14px;
        }

        .vm-game-header {
          padding: 22px 18px 18px;
        }

        .vm-intro {
          padding: 22px 16px 24px;
        }

        .vm-intro-panel {
          padding: 18px;
        }

        .vm-game-shell {
          padding: 16px 12px 16px;
        }

        .vm-top-line {
          margin-bottom: 10px;
        }

        .vm-phase-text {
          margin-bottom: 9px;
          font-size: 0.9rem;
        }

        .vm-timer-row {
          gap: 11px;
          margin-bottom: 12px;
        }

        .vm-preview-track {
          height: 6px;
        }

        .vm-restart-icon-button {
          width: 32px;
          height: 32px;
        }

        .vm-restart-icon {
          width: 22px;
          height: 22px;
        }

        .vm-score-label {
          margin-left: 4px;
          font-size: 0.76rem;
        }

        .vm-button {
          flex: 1;
          padding-inline: 12px;
        }
      }

      @media (prefers-reduced-motion: reduce) {
        .vm-preview-track,
        .vm-restart-icon-button,
        .vm-button {
          transition: none;
        }
      }


      /* info */
      .vm-info {
        width: min(100%, 1180px);
        padding: 0 10px;
      }
      .vm-info-h{
        margin-bottom: 16px;
      }
      .vm-info-p{
        margin-bottom: 10px;
      }

  /* -------- sound toggle */
.sound-toggle {
  position: absolute;
  top: 18px;
  right: 18px;

  width: 44px;
  height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  border: none;
  background: transparent;

  cursor: pointer;

  z-index: 10;
}

.sound-toggle img {
  width: 27px;
  height: 27px;

  display: block;

  pointer-events: none;
}
/* -------- */
