/* VIIPE telefoni vaade. See fail toimib ainult alla 1000 px ekraanidel. */
.viipe-mobile-nav,
.viipe-mobile-sheet {
  display: none;
}

/* Sama sisu telefonis: üks andmestik, kuid kitsale ekraanile oma paigutus. */
@media (max-width: 999px), (hover: none) and (pointer: coarse) {
  #pathScreen {
    --desk-text: var(--mobile-ink);
    --desk-muted: var(--mobile-muted);
    --desk-line: var(--mobile-line);
    --desk-surface: var(--mobile-surface);
    --desk-surface-strong: var(--mobile-surface);
    --desk-soft: var(--mobile-soft);
    --desk-accent: #115B47;
    --desk-purple: #115B47;
    --desk-green: #20b878;
    display: block !important;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    padding-bottom: calc(116px + env(safe-area-inset-bottom));
    color: var(--desk-text);
  }

  #pathScreen[hidden] { display: none !important; }
  body.dark-theme #pathScreen { --desk-accent: #F9C0D1; --desk-purple: #F9C0D1; }
  #pathScreen > .path-hero,
  #pathScreen > .level-path,
  #pathScreen > .quick-area,
  #pathScreen > .desktop-rail,
  #pathScreen > .economy-bar,
  #pathScreen > .viipe-desktop-sidebar,
  #pathScreen .topbar .xp-pill { display: none !important; }

  #pathScreen .topbar { min-height: 88px; margin: 0; }
  #pathScreen .viipe-desktop-status {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 11px 0 27px;
    padding: 0;
  }
  #pathScreen .desktop-status-item {
    display: flex;
    min-width: 0;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px;
    border: 1px solid var(--desk-line);
    border-radius: 14px;
    color: var(--desk-muted);
    background: var(--desk-surface);
    font: inherit;
    font-size: .76rem;
    font-weight: 750;
    white-space: nowrap;
  }
  #pathScreen .desktop-status-item b { font-size: 1rem; }
  #pathScreen .desktop-status-item strong { color: var(--desk-text); }
  #pathScreen .desktop-status-theme,
  #pathScreen .desktop-account-chip { display: none; }

  #pathScreen .viipe-desktop-panel { display: block; min-width: 0; padding: 0; }
  #pathScreen .viipe-desktop-context { display: grid; gap: 12px; margin: 20px 0 0; padding: 0; }
  #pathScreen .desktop-page-heading { margin: 0 0 24px; }
  #pathScreen .desktop-kicker {
    margin: 0 0 7px;
    color: var(--desk-purple);
    font-size: .64rem;
    font-weight: 850;
    letter-spacing: .12em;
  }
  #pathScreen .desktop-page-heading h1,
  #pathScreen .desktop-profile-banner h1 {
    margin: 0 0 8px;
    color: var(--desk-text);
    font-family: "Outfit", sans-serif;
    font-size: clamp(2.2rem, 10vw, 3rem);
    line-height: 1;
    letter-spacing: -.065em;
    overflow-wrap: anywhere;
  }
  #pathScreen .desktop-page-heading > p:last-child,
  #pathScreen .desktop-profile-banner > div > p:last-child {
    margin: 0;
    color: var(--desk-muted);
    font-size: .9rem;
    line-height: 1.45;
  }

  #pathScreen .desktop-learning-path { display: grid; gap: 14px; padding: 0; }
  #pathScreen .desktop-learning-path::before { display: none; }
  #pathScreen .desktop-level,
  #pathScreen .desktop-level:nth-child(n) {
    display: grid;
    width: 100%;
    grid-template-columns: 60px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--desk-line);
    border-radius: 20px;
    color: var(--desk-text);
    background: var(--desk-surface);
    text-align: left;
    transform: none;
  }
  #pathScreen .desktop-level-node {
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border: 3px solid white;
    border-radius: 50%;
    color: white;
    background: #1B69B8;
    box-shadow: 0 5px 0 #154F88;
    font-family: "Outfit", sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
  }
  #pathScreen .desktop-level.is-done .desktop-level-node { color: #103A2F; background: #91DFB4; box-shadow: 0 5px 0 #45946C; }
  #pathScreen .desktop-level.is-locked .desktop-level-node { color: #46545D; background: #D4D8DC; box-shadow: 0 5px 0 #A8B1B6; font-size: 1rem; }
  #pathScreen .desktop-level-label { display: grid; min-width: 0; gap: 3px; }
  #pathScreen .desktop-level-label small { color: var(--desk-purple); font-size: .6rem; font-weight: 800; letter-spacing: .08em; }
  #pathScreen .desktop-level-label strong { color: var(--desk-text); font-family: "Outfit", sans-serif; font-size: 1rem; }
  #pathScreen .desktop-level-label em { color: #1B69B8; font-size: .73rem; font-style: normal; font-weight: 800; }
  #pathScreen .desktop-level.is-done .desktop-level-label em { color: #3CA46E; }
  #pathScreen .desktop-level.is-locked .desktop-level-label em { color: #879197; }
  #pathScreen .desktop-level:disabled { cursor: default; }

  #pathScreen .desktop-context-card,
  #pathScreen .desktop-match-card,
  #pathScreen .desktop-match-locked,
  #pathScreen .desktop-leaderboard-card,
  #pathScreen .desktop-quest,
  #pathScreen .desktop-profile-card {
    border: 1px solid var(--desk-line);
    border-radius: 20px;
    background: var(--desk-surface);
    box-shadow: 0 10px 24px rgba(8, 45, 35, .09);
  }
  #pathScreen .desktop-context-card { padding: 18px; }
  #pathScreen .desktop-context-card h2 { margin: 0 0 7px; color: var(--desk-text); font-family: "Outfit", sans-serif; font-size: 1.25rem; }
  #pathScreen .desktop-context-card p:not(.desktop-kicker) { margin: 0; color: var(--desk-muted); font-size: .81rem; line-height: 1.45; }
  #pathScreen .desktop-context-card.accent-card { background: #115B47; border-color: #115B47; }
  #pathScreen .desktop-context-card.accent-card .desktop-kicker,
  #pathScreen .desktop-context-card.accent-card h2,
  #pathScreen .desktop-context-card.accent-card p { color: white; }
  #pathScreen .context-xp { display: block; margin: 4px 0; color: var(--desk-purple); font-family: "Outfit", sans-serif; font-size: 1.7rem; font-weight: 800; }
  #pathScreen .mini-progress { height: 8px; margin: 10px 0 7px; overflow: hidden; border-radius: 20px; background: var(--desk-soft); }
  #pathScreen .mini-progress span { display: block; height: 100%; border-radius: inherit; background: #F9C0D1; }
  #pathScreen .desktop-context-card.accent-card .mini-progress { background: rgba(255,255,255,.25); }
  #pathScreen .desktop-context-card.accent-card .mini-progress span { background: white; }
  #pathScreen .context-button,
  #pathScreen .desktop-quest button,
  #pathScreen .desktop-shop-item button,
  #pathScreen .desktop-profile-card form button {
    display: block;
    width: 100%;
    min-height: 46px;
    margin-top: 14px;
    padding: 10px 14px;
    border: 0;
    border-radius: 13px;
    color: white;
    background: #115B47;
    font: inherit;
    font-size: .83rem;
    font-weight: 800;
  }
  #pathScreen .desktop-context-card.accent-card .context-button { background: #F9C0D1; color: #103A2F; }
  #pathScreen button:disabled { cursor: default; opacity: .58; }
}

/* Mõni telefoni sisseehitatud brauser avab lehe "arvutivaate" laiusega.
   Puuteekraani tingimus hoiab VIIPE telefoni kujunduse siiski telefonis. */
@media (max-width: 999px), (hover: none) and (pointer: coarse) {
  :root {
    --mobile-surface: rgba(255, 255, 255, 0.94);
    --mobile-ink: #14382D;
    --mobile-muted: #526E61;
    --mobile-line: #FBE9EE;
    --mobile-soft: #F8FAF7;
  }

  html {
    background: #F8FAF7;
  }

  body {
    min-width: 0;
    background: #F8FAF7;
  }

  .app {
    width: 100%;
    max-width: none;
    min-height: 100dvh;
    overflow: visible;
    border-radius: 0;
    box-shadow: none;
  }

  .screen {
    min-height: 100dvh;
    padding: max(18px, env(safe-area-inset-top)) 18px 112px;
  }

  /* Avaleht */
  #pathScreen {
    min-height: 100dvh;
    padding-bottom: calc(100px + env(safe-area-inset-bottom));
    overflow: visible;
    background:
      radial-gradient(circle at 100% 0%, rgba(17, 91, 71, 0.16), transparent 19rem),
      radial-gradient(circle at 0% 64%, rgba(17, 91, 71, 0.12), transparent 22rem),
      #F8FAF7;
  }

  #pathScreen .topbar {
    min-height: 48px;
    padding-right: 52px;
  }

  #pathScreen .brand {
    gap: 8px;
    font-size: 1.2rem;
    letter-spacing: 0.06em;
  }

  #pathScreen .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  #pathScreen .xp-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 10px;
    margin-left: auto;
    border: 1px solid rgba(17, 91, 71, 0.15);
    color: #115B47;
    background: rgba(255, 255, 255, 0.84);
    font-size: 0.74rem;
  }

  .theme-toggle {
    top: max(16px, env(safe-area-inset-top));
    right: 18px;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
  }

  #pathScreen .path-hero {
    min-height: 0;
    margin: 22px 0 20px;
    padding: 26px 23px 28px;
    border-radius: 25px;
    background: linear-gradient(135deg, #115B47 0%, #115B47 55%, #115B47 100%);
    box-shadow: 0 16px 32px rgba(17, 91, 71, 0.2);
  }

  #pathScreen .path-hero::after {
    right: -94px;
    bottom: -126px;
    width: 225px;
    height: 225px;
  }

  #pathScreen .path-hero h1 {
    max-width: 300px;
    margin: 0 0 11px;
    padding: 0;
    font-size: clamp(2.55rem, 12vw, 3.45rem);
    letter-spacing: -0.07em;
    line-height: 0.93;
  }

  #pathScreen .path-hero p:not(.eyebrow) {
    max-width: 285px;
    font-size: 0.92rem;
  }

  #pathScreen .path-hero .eyebrow {
    margin-bottom: 13px;
    font-size: 0.62rem;
  }

  #pathScreen .quick-area {
    display: none;
  }

  #pathScreen .level-path {
    display: grid;
    min-height: 0;
    gap: 11px;
    max-width: none;
    padding: 0 0 18px;
    background: transparent !important;
  }

  #pathScreen .level-path::before {
    display: none;
  }

  #pathScreen .level-button,
  #pathScreen .level-button:nth-child(1),
  #pathScreen .level-button:nth-child(2),
  #pathScreen .level-button:nth-child(3) {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    width: 100%;
    min-height: 86px;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--mobile-line) !important;
    border-radius: 20px;
    color: var(--mobile-ink);
    background: var(--mobile-surface) !important;
    box-shadow: 0 9px 23px rgba(17, 91, 71, 0.07) !important;
    text-align: left;
    transform: none !important;
  }

  #pathScreen .level-button:not(:disabled):hover,
  #pathScreen .level-button:nth-child(1):hover,
  #pathScreen .level-button:nth-child(2):hover,
  #pathScreen .level-button:nth-child(3):hover {
    border-color: #115B47 !important;
    transform: translateY(-2px) !important;
  }

  #pathScreen .level-button:active {
    transform: scale(0.985) !important;
  }

  #pathScreen .level-icon {
    width: 48px;
    height: 48px;
    border: 3px solid white;
    box-shadow: 0 5px 0 #115B47, 0 9px 15px rgba(17, 91, 71, 0.17);
    font-size: 1rem;
  }

  #pathScreen .level-button:first-child .level-icon {
    box-shadow: 0 5px 0 #0b8653, 0 9px 15px rgba(12, 127, 79, 0.16);
  }

  #pathScreen .level-button:disabled .level-icon {
    box-shadow: 0 5px 0 #D8E5DE;
  }

  #pathScreen .level-copy {
    width: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  #pathScreen .level-copy small {
    color: #115B47;
    font-size: 0.58rem;
  }

  #pathScreen .level-copy h3 {
    margin: 3px 0 4px;
    color: var(--mobile-ink);
    font-size: 0.95rem;
  }

  #pathScreen .level-copy p {
    overflow: hidden;
    margin: 0;
    color: var(--mobile-muted);
    font-size: 0.7rem;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #pathScreen .level-status {
    padding: 6px 8px;
    border-radius: 100px;
    color: #115B47;
    background: #F8FAF7;
    box-shadow: none;
    font-size: 0.66rem;
    white-space: nowrap;
  }

  /* Harjutuse vaade */
  #gameScreen {
    padding-bottom: max(32px, env(safe-area-inset-bottom));
    background: #F8FAF7;
  }

  #gameScreen .game-topbar {
    min-height: 42px;
    margin-bottom: 18px;
  }

  #gameScreen .xp-pill {
    display: inline-flex;
    min-height: 34px;
    padding: 8px 10px;
  }

  #gameScreen .back-button {
    color: var(--mobile-ink);
  }

  #gameScreen .game-layout {
    display: block;
    margin: 0;
  }

  #gameScreen .sign-stage {
    min-height: 0;
    height: min(60vh, 430px);
    gap: 8px;
    padding: 9px;
    border-radius: 24px;
  }

  #gameScreen .sign-stage video {
    width: 100% !important;
    max-width: none !important;
    height: calc(min(60vh, 430px) - 44px) !important;
    max-height: none !important;
    border-radius: 16px;
    object-fit: cover !important;
  }

  #gameScreen .sign-stage img {
    width: 120px;
    height: 120px;
  }

  #gameScreen .sign-stage span {
    font-size: 0.59rem;
  }

  #gameScreen .game-card {
    margin-top: 16px;
    padding: 22px 18px 18px;
    border: 1px solid var(--mobile-line);
    border-radius: 23px;
    background: var(--mobile-surface);
    box-shadow: 0 11px 26px rgba(17, 91, 71, 0.07);
  }

  #gameScreen .progress-track {
    margin: 12px 0 26px;
  }

  #gameScreen h2 {
    margin-bottom: 9px;
    color: var(--mobile-ink);
    font-size: clamp(1.75rem, 8vw, 2.35rem);
    line-height: 1.04;
  }

  #gameScreen .description {
    font-size: 0.9rem;
  }

  #gameScreen .answers {
    margin-top: 20px;
    gap: 9px;
  }

  #gameScreen .answer {
    min-height: 56px;
    padding: 15px 16px;
    border-color: var(--mobile-line);
    border-radius: 15px;
    color: var(--mobile-ink);
    background: var(--mobile-surface);
  }

  #gameScreen .feedback {
    min-height: 42px;
    margin: 13px 1px 0;
    line-height: 1.42;
  }

  #gameScreen .next-button {
    min-height: 56px;
    margin-top: 9px;
    border-radius: 16px;
  }

  /* Konto, eesmärgid ja lõpetamise ekraanid */
  .onboarding-screen,
  .complete-screen {
    padding: max(20px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom));
  }

  .onboarding-card,
  .complete-card {
    padding: 31px 21px;
    border-radius: 25px;
  }

  .onboarding-card h1 {
    font-size: clamp(2.3rem, 12vw, 3.3rem);
  }

  .onboarding-card h2,
  .complete-card h2 {
    font-size: clamp(1.9rem, 9vw, 2.45rem);
  }

  .auth-actions {
    grid-template-columns: 1fr;
  }

  .guest-button {
    grid-column: auto;
  }

  #profileScreen {
    padding: max(20px, env(safe-area-inset-top)) 18px max(30px, env(safe-area-inset-bottom));
    background: #F8FAF7;
  }

  #profileScreen .onboarding-card {
    text-align: left;
  }

  #profileScreen .onboarding-card .auth-button {
    width: 100%;
  }

  /* Alumine telefoni menüü */
  .viipe-mobile-nav {
    position: fixed;
    z-index: 120;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 12px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3px;
    width: auto;
    max-width: 560px;
    margin: 0 auto;
    padding: 6px;
    border: 1px solid rgba(17, 91, 71, 0.9);
    border-radius: 21px;
    background: rgba(255, 255, 255, 0.91);
    box-shadow: 0 16px 36px rgba(17, 91, 71, 0.2);
    backdrop-filter: blur(18px);
  }

  .viipe-mobile-nav button {
    display: grid;
    min-height: 60px;
    place-items: center;
    gap: 3px;
    padding: 6px 2px;
    border: 0;
    border-radius: 15px;
    color: var(--mobile-muted);
    background: transparent;
    font: inherit;
    font-size: 0.61rem;
    font-weight: 800;
  }

  .viipe-mobile-nav button span:first-child {
    display: grid;
    width: 29px;
    height: 29px;
    place-items: center;
    border-radius: 10px;
    background: #F8FAF7;
    font-size: 0.98rem;
  }

  .viipe-mobile-nav button.is-active {
    color: #115B47;
    background: #F8FAF7;
  }

  .viipe-mobile-nav button.is-active span:first-child {
    color: white;
    background: linear-gradient(135deg, #115B47, #115B47);
  }

  /* Ülesannete kaart */
  .viipe-mobile-sheet {
    position: fixed;
    z-index: 130;
    inset: 0;
    display: grid;
    align-items: end;
    padding: 16px 16px max(18px, env(safe-area-inset-bottom));
    background: rgba(17, 91, 71, 0.38);
  }

  .viipe-mobile-sheet[hidden] {
    display: none !important;
  }

  .mobile-sheet-card {
    max-width: 560px;
    margin: 0 auto;
    padding: 22px;
    border-radius: 26px;
    color: var(--mobile-ink);
    background: white;
    box-shadow: 0 20px 48px rgba(17, 91, 71, 0.28);
  }

  .mobile-sheet-handle {
    width: 42px;
    height: 4px;
    margin: 0 auto 19px;
    border-radius: 100px;
    background: #FBE9EE;
  }

  .mobile-sheet-card h2 {
    margin: 5px 0 7px;
    font-size: 1.65rem;
  }

  .mobile-sheet-card p:not(.eyebrow) {
    margin: 0;
    color: var(--mobile-muted);
    line-height: 1.5;
  }

  .mobile-quest-progress {
    height: 10px;
    margin: 20px 0 8px;
    overflow: hidden;
    border-radius: 100px;
    background: #F8FAF7;
  }

  .mobile-quest-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #115B47, #115B47);
    transition: width 280ms ease;
  }

  .mobile-quest-meta {
    display: flex;
    justify-content: space-between;
    color: #115B47;
    font-size: 0.76rem;
    font-weight: 800;
  }

  .mobile-sheet-button,
  .mobile-sheet-close {
    width: 100%;
    min-height: 52px;
    margin-top: 19px;
    border: 0;
    border-radius: 15px;
    color: white;
    background: linear-gradient(90deg, #115B47, #115B47);
    font: inherit;
    font-weight: 800;
  }

  .mobile-sheet-close {
    margin-top: 9px;
    border: 1px solid var(--mobile-line);
    color: #115B47;
    background: white;
  }

  /* Tume režiim */
  body.dark-theme {
    --mobile-surface: #14382D;
    --mobile-ink: #F8FAF7;
    --mobile-muted: #D8E5DE;
    --mobile-line: #244C3F;
    --mobile-soft: #14382D;
    background: #0B211B;
  }

  body.dark-theme html,
  body.dark-theme #pathScreen,
  body.dark-theme #gameScreen,
  body.dark-theme #profileScreen {
    background:
      radial-gradient(circle at 100% 0%, rgba(17, 91, 71, 0.22), transparent 20rem),
      #0B211B;
  }

  body.dark-theme #pathScreen .xp-pill,
  body.dark-theme .theme-toggle,
  body.dark-theme .viipe-mobile-nav {
    border-color: #244C3F;
    background: rgba(17, 91, 71, 0.94);
  }

  body.dark-theme #pathScreen .level-status,
  body.dark-theme .viipe-mobile-nav button.is-active,
  body.dark-theme .viipe-mobile-nav button span:first-child {
    color: #FBE9EE;
    background: #14382D;
  }

  body.dark-theme #pathScreen .level-copy h3,
  body.dark-theme #gameScreen h2,
  body.dark-theme #gameScreen .back-button {
    color: var(--mobile-ink);
  }

  body.dark-theme .mobile-sheet-card {
    color: var(--mobile-ink);
    background: #14382D;
  }

  body.dark-theme .mobile-sheet-handle,
  body.dark-theme .mobile-quest-progress {
    background: #244C3F;
  }

  body.dark-theme .mobile-sheet-close {
    border-color: #244C3F;
    color: #FBE9EE;
    background: #14382D;
  }

  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      scroll-behavior: auto !important;
      transition-duration: 0.01ms !important;
      animation-duration: 0.01ms !important;
    }
  }
}

@media (max-width: 999px), (hover: none) and (pointer: coarse) {
  #pathScreen .desktop-match-locked { display: grid; justify-items: start; gap: 12px; padding: 22px; }
  #pathScreen .desktop-match-locked > span { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 14px; color: #115B47; background: #F9C0D1; font-size: 1.3rem; }
  #pathScreen .desktop-match-locked h2 { margin: 0; color: var(--desk-text); font-size: 1.23rem; }
  #pathScreen .desktop-match-locked p { margin: 0; color: var(--desk-muted); line-height: 1.5; }
  #pathScreen .desktop-match-locked .context-button { margin-top: 4px; }
  #pathScreen .desktop-match-card { overflow: hidden; }
  #pathScreen .desktop-match-video { display: grid; justify-items: center; gap: 8px; padding: 12px; color: white; background: #115B47; }
  body:not(.dark-theme) #pathScreen .desktop-match-video { color: #103A2F; background: #F9C0D1; }
  #pathScreen .desktop-match-video video { display: block; width: 100%; height: min(60vh, 430px); border-radius: 15px; object-fit: cover; background: #14382D; }
  #pathScreen .desktop-match-player { width: 100%; }
  #pathScreen .desktop-match-play { max-width: calc(100% - 24px); }
  #pathScreen .desktop-match-video > span { font-size: .62rem; font-weight: 800; letter-spacing: .12em; }
  #pathScreen .desktop-match-question { padding: 22px 18px 18px; }
  #pathScreen .desktop-match-options { display: grid; gap: 9px; }
  #pathScreen .desktop-match-options button { min-height: 50px; padding: 12px; border: 2px solid var(--desk-line); border-radius: 14px; color: var(--desk-text); background: var(--desk-surface-strong); text-align: left; font: inherit; font-weight: 800; }
  #pathScreen .desktop-match-options button.is-correct { border-color: #20c77a; color: #a8f5cf; background: #173d31; }
  #pathScreen .desktop-match-options button.is-wrong { border-color: #ff6f78; color: #ffabb0; background: #3b2532; }
  #pathScreen .desktop-match-feedback { min-height: 42px; margin: 13px 0 0; color: var(--desk-muted); font-size: .83rem; line-height: 1.4; }
  #pathScreen .desktop-match-feedback.correct { color: #20b878; }
  #pathScreen .desktop-match-feedback.wrong { color: #e15765; }

  #pathScreen .desktop-leaderboard-card { overflow: hidden; }
  #pathScreen .desktop-leaderboard-note,
  #pathScreen .desktop-demo-note { padding: 13px 16px; color: var(--desk-muted); background: var(--desk-soft); font-size: .77rem; line-height: 1.45; }
  #pathScreen .desktop-leaderboard-empty { padding: 22px; }
  #pathScreen .desktop-ranking-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
  #pathScreen .desktop-ranking-list li { display: grid; grid-template-columns: 20px 38px minmax(0, 1fr); align-items: center; gap: 8px; padding: 14px; border-top: 1px solid var(--desk-line); }
  #pathScreen .desktop-ranking-list li.is-you { background: var(--desk-soft); }
  #pathScreen .ranking-place { color: var(--desk-muted); font-weight: 800; }
  #pathScreen .ranking-avatar { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 12px; color: white; background: #115B47; font-weight: 800; }
  #pathScreen .desktop-ranking-list strong { min-width: 0; color: var(--desk-text); font-size: .83rem; overflow-wrap: anywhere; }
  #pathScreen .desktop-ranking-list strong em { color: var(--desk-purple); font-size: .69rem; font-style: normal; }
  #pathScreen .ranking-xp { grid-column: 3; color: var(--desk-purple); font-size: .74rem; font-weight: 800; }

  #pathScreen .desktop-quest-list { display: grid; gap: 12px; }
  #pathScreen .desktop-quest { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 10px 12px; padding: 17px; }
  #pathScreen .desktop-quest.is-ready { border-color: #20b878; }
  #pathScreen .quest-mark { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 13px; color: white; background: #115B47; font-weight: 800; }
  #pathScreen .desktop-quest.is-ready .quest-mark { background: #20b878; }
  #pathScreen .desktop-quest h2 { margin: 0 0 4px; color: var(--desk-text); font-family: "Outfit", sans-serif; font-size: 1.08rem; }
  #pathScreen .desktop-quest p { margin: 0; color: var(--desk-muted); font-size: .81rem; }
  #pathScreen .desktop-quest small { color: var(--desk-muted); font-weight: 750; }
  #pathScreen .desktop-quest button,
  #pathScreen .quest-reward { grid-column: 1 / -1; margin: 0; }
  #pathScreen .quest-reward { color: var(--desk-purple); font-size: .82rem; font-weight: 800; }

  #pathScreen .desktop-shop-banner { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 19px; border-radius: 19px; color: white; background: #115B47; }
  #pathScreen .desktop-shop-banner .desktop-kicker { color: #F9C0D1; }
  #pathScreen .desktop-shop-banner h2 { margin: 0 0 6px; font-family: "Outfit", sans-serif; font-size: 1.4rem; }
  #pathScreen .desktop-shop-banner p:last-child { margin: 0; font-size: .8rem; line-height: 1.4; }
  #pathScreen .desktop-shop-banner > span { font-size: 3.2rem; }
  #pathScreen .desktop-shop-section { margin-top: 25px; }
  #pathScreen .desktop-shop-section > h2 { margin: 0 0 10px; color: var(--desk-text); font-family: "Outfit", sans-serif; font-size: 1.25rem; }
  #pathScreen .desktop-shop-item { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 10px; align-items: center; padding: 14px 0; border-top: 1px solid var(--desk-line); }
  #pathScreen .shop-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 13px; color: #115B47; background: #F9C0D1; font-size: 1.2rem; }
  #pathScreen .desktop-shop-item h3 { margin: 0 0 3px; color: var(--desk-text); font-family: "Outfit", sans-serif; font-size: 1rem; }
  #pathScreen .desktop-shop-item p { margin: 0; color: var(--desk-muted); font-size: .8rem; line-height: 1.4; }
  #pathScreen .desktop-shop-item button { grid-column: 2; width: auto; justify-self: start; min-height: 38px; margin: 0; }

  #pathScreen .desktop-profile-banner { display: flex; align-items: center; gap: 14px; margin-bottom: 15px; padding: 20px; border-radius: 21px; background: #0D4635; }
  #pathScreen .profile-avatar { display: grid; width: 62px; height: 62px; flex: 0 0 auto; place-items: center; border: 3px solid white; border-radius: 20px; color: #115B47; background: #FFF4F7; font-family: "Outfit", sans-serif; font-size: 1.7rem; font-weight: 800; }
  #pathScreen .desktop-profile-banner .desktop-kicker { color: #F9C0D1; }
  #pathScreen .desktop-profile-banner h1 { color: white; font-size: clamp(1.5rem, 7vw, 2.35rem); }
  #pathScreen .desktop-profile-banner > div > p:last-child { color: #E5F2EA; font-size: .76rem; }
  #pathScreen .desktop-profile-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-bottom: 15px; }
  #pathScreen .desktop-profile-stats article { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: center; gap: 2px 5px; min-height: 66px; padding: 11px; border: 1px solid var(--desk-line); border-radius: 15px; background: var(--desk-surface); }
  #pathScreen .desktop-profile-stats article > span { grid-row: 1 / 3; font-size: 1.2rem; }
  #pathScreen .desktop-profile-stats strong { color: var(--desk-text); font-family: "Outfit", sans-serif; font-size: 1.1rem; }
  #pathScreen .desktop-profile-stats small { color: var(--desk-muted); font-size: .63rem; line-height: 1.2; }
  #pathScreen .desktop-profile-grid { display: grid; gap: 12px; }
  #pathScreen .desktop-profile-card { min-width: 0; padding: 18px; }
  #pathScreen .desktop-profile-card > h2 { margin: 0 0 14px; color: var(--desk-text); font-family: "Outfit", sans-serif; font-size: 1.2rem; }
  #pathScreen .desktop-profile-card form { display: grid; gap: 12px; }
  #pathScreen .desktop-profile-card form label { display: grid; gap: 5px; color: var(--desk-muted); font-size: .75rem; font-weight: 800; }
  #pathScreen .desktop-profile-card form input,
  #pathScreen .desktop-profile-card form select { width: 100%; min-height: 45px; padding: 10px; border: 1px solid var(--desk-line); border-radius: 12px; color: var(--desk-text); background: var(--desk-surface-strong); font: inherit; }
  #pathScreen .achievement { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--desk-line); }
  #pathScreen .achievement > span { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: #F9C0D1; }
  #pathScreen .achievement strong { color: var(--desk-text); font-size: .85rem; }
  #pathScreen .achievement p { margin: 2px 0 0; color: var(--desk-muted); font-size: .72rem; }
  #pathScreen .cloud-signout { width: 100%; margin-top: 14px; }

  .viipe-mobile-nav[hidden] { display: none !important; }
  .viipe-mobile-nav { grid-template-columns: repeat(6, minmax(0, 1fr)); max-width: 680px; gap: 1px; }
  .viipe-mobile-nav button { min-width: 0; min-height: 58px; padding: 5px 0; font-size: clamp(.49rem, 2.35vw, .63rem); line-height: 1.08; }
  .viipe-mobile-nav button span:first-child { width: 26px; height: 26px; font-size: .86rem; }
  .viipe-mobile-nav button span:last-child { white-space: nowrap; letter-spacing: -.03em; }
  .viipe-mobile-nav button.is-locked:not(.is-active) { opacity: .7; }

  body.dark-theme #pathScreen .desktop-profile-banner { background: #F9C0D1; }
  body.dark-theme #pathScreen .desktop-profile-banner .desktop-kicker,
  body.dark-theme #pathScreen .desktop-profile-banner h1 { color: #103A2F; }
  body.dark-theme #pathScreen .desktop-profile-banner > div > p:last-child { color: #315A4B; }
  body.dark-theme #pathScreen .desktop-profile-card,
  body.dark-theme #pathScreen .desktop-profile-stats article,
  body.dark-theme #pathScreen .desktop-context-card {
    --desk-text: #103A2F;
    --desk-muted: #315A4B;
    --desk-purple: #103A2F;
    --desk-line: #E7A9C0;
    --desk-surface-strong: #FFF1F6;
    color: #103A2F;
    background: #F9D6E3;
    border-color: #E7A9C0;
  }
  body.dark-theme #pathScreen .desktop-context-card.accent-card { background: #F6B3CB; }
  body.dark-theme #pathScreen .desktop-context-card.accent-card .desktop-kicker,
  body.dark-theme #pathScreen .desktop-context-card.accent-card h2,
  body.dark-theme #pathScreen .desktop-context-card.accent-card p { color: #103A2F; }
  body.dark-theme #pathScreen .desktop-profile-card form button { background: #C94073; }
  body.dark-theme #pathScreen .desktop-profile-card .cloud-signout { color: #103A2F; background: #FFF1F6; border-color: #DDA0B6; }
}
