/* v13: shared PC flame animation, cycling speech anchored to the runner, stone ground. */
.mobile-news,.mobile-tagline,.mobile-hero-intro,.mobile-bridge,.mobile-app-install {display:none}

@media (max-width:800px) {
  .site-header {padding-top:4px;box-shadow:0 3px 12px #11213d08}
  .mobile-news {
    display:flex;align-items:center;gap:9px;width:calc(100% - 32px);max-width:600px;
    min-height:25px;margin:0 auto;padding:4px 9px;background:#eef2ff;
    border-radius:8px;font-size:11px;line-height:1.4;color:#21396d;
  }
  .mobile-news i {width:6px;height:6px;background:#305ac9;border-radius:50%;flex-shrink:0}
  .mobile-news strong {white-space:nowrap}
  .mobile-news>span[data-i18n] {min-width:0;overflow-wrap:anywhere}
  .site-header .header-row {height:66px;max-width:600px;width:calc(100% - 32px)}
  .site-header .brand {font-size:19px;gap:8px}
  .site-header .brand b {font-size:23px}
  .site-header .brand img {width:31px;height:41px}
  .site-header .header-actions {gap:13px}
  .site-header .menu-button {
    width:44px;height:44px;border:1.5px solid #14213e;border-radius:11px;
    background:linear-gradient(#ffeaa3,#ecc462);box-shadow:0 3px 0 #182544;
    padding:9px 10px;
  }
  .site-header .menu-button span,.site-header .menu-button::after {height:2px;margin:5px 0}
  .site-header .mobile-nav {max-height:calc(100dvh - 100px)}
  .site-header .language-wrap {position:static}
  .site-header .language-menu {position:absolute;top:100%;max-height:calc(100dvh - 112px)}
  .language-options {max-height:min(360px,calc(100dvh - 200px))}
  .launch-section {padding-top:4px;background:#fff}
  .mobile-tagline {
    display:flex;align-items:center;justify-content:center;gap:7px;
    width:max-content;max-width:100%;min-height:33px;margin:0 auto 43px;
    padding:6px 12px;border:1.5px solid #15243e;border-radius:9px;
    background:linear-gradient(#fff9e6,#f6e7b6);font-size:12px;
    line-height:1.4;font-weight:800;text-align:center;
  }
  .mobile-tagline .ui-icon {width:19px;height:19px;fill:#f0cd72}
  .launch-banner {
    overflow:visible;isolation:isolate;min-height:255px;
    padding:35px 18px 24px;border:2px solid #15233d;border-radius:17px;
    background:#fff5d9 url('/assets/mobile-intro-v11.webp') center/100% 100% no-repeat;
    box-shadow:inset 0 0 0 3px #ffffffc9,0 3px 0 #15233d;
    color:#111b35;
  }
  .launch-banner::before {display:none}
  .launch-banner .hero-art {display:none}
  .launch-banner .banner-crown {
    position:absolute;inset:auto;top:-38px;left:50%;transform:translateX(-50%);
    width:max-content;max-width:94%;margin:0;z-index:3;
  }
  /* Use the same artwork, colors and flame-flicker animation as desktop. */
  .launch-banner .banner-fire {display:block;width:215px;max-width:94%;height:36px;margin-bottom:-3px}
  .launch-banner .banner-badge {
    color:#ffe58a;background:linear-gradient(#2750b0,#163887);
    border:1.5px solid #122549;border-radius:12px;padding:8px 12px;
    font-size:14px;line-height:1.3;box-shadow:0 2px 0 #142747;
  }
  .launch-banner .banner-badge .ui-icon {display:none}
  .launch-banner .banner-copy h1 {
    font-size:clamp(29px,8.1vw,42px);line-height:1.16;
    color:#11182e;text-shadow:none;letter-spacing:-.055em;margin:0;
  }
  .launch-banner .banner-copy h1 em {color:#2e50bd}
  .launch-banner .banner-copy h1::after {
    content:'';display:block;width:44%;height:2px;background:#ddba57;margin:12px auto 0;
  }
  .launch-banner .banner-subtitle {display:none}
  .mobile-hero-intro {
    display:block;order:2;width:100%;margin:10px 0 0;
    padding-inline:4px;font-family:var(--sparta-display,SpartaMeme),Arial,sans-serif;font-size:14px;
    font-weight:900;line-height:1.55;text-align:center;overflow-wrap:anywhere;
  }
  .launch-banner .banner-status {
    order:3;align-self:center;max-width:78%;margin:13px 0 0;
    background:#111e3c;color:#ffdb71;border:1px solid #25385b;
    padding:7px 14px;min-height:35px;font-size:12px;z-index:2;
  }
  .mobile-bridge {
    display:block;position:relative;height:clamp(64px,18vw,110px);isolation:isolate;direction:ltr;
  }
  .mobile-stone-path {
    position:absolute;left:-4px;bottom:-3px;width:calc(100% + 8px);
    height:clamp(22px,5.6vw,36px);object-fit:fill;z-index:1;pointer-events:none;
  }
  .mobile-runner-scene {
    position:absolute;width:50%;max-width:280px;aspect-ratio:480/450;left:-8%;bottom:-2px;
    pointer-events:none;z-index:2;
  }
  .mobile-runner,.mobile-runner img {display:block;width:100%;height:auto}
  .mobile-runner {filter:drop-shadow(1px 2px 0 #14234015)}
  .mobile-runner-speech {
    position:absolute;left:98%;top:44%;width:max-content;max-width:min(86%,180px);min-height:38px;
    display:flex;align-items:center;justify-content:center;
    padding:8px 12px;background:#fff;border:1.5px solid #14213c;border-radius:50%;
    font-family:var(--sparta-display,SpartaMeme),Arial,sans-serif;font-size:12px;font-weight:900;
    line-height:1.4;text-align:center;z-index:3;transform:rotate(-3deg);
    overflow-wrap:anywhere;text-wrap:balance;
  }
  .mobile-runner-speech::after {
    content:'';position:absolute;width:37px;height:23px;left:0;bottom:-15px;
    background:url('/assets/speech-arrow-v9.webp') center/contain no-repeat;
    pointer-events:none;
  }
  .mobile-channels {position:absolute;right:2%;bottom:6px;width:32%;text-align:center;z-index:4}
  .mobile-channels p {margin:0 0 5px;font-size:10px;line-height:1.35;color:#415b9d;overflow-wrap:anywhere}
  .mobile-channels>div {display:flex;justify-content:center;gap:12px}
  .mobile-channels button {
    display:grid;place-items:center;width:44px;height:44px;min-width:44px;
    padding:10px;border:1px solid #172440;border-radius:50%;background:#0d1425;color:#fff;
    box-shadow:0 2px 0 #13264420;
  }
  .mobile-channels button:last-child {background:#229ad4;border-color:#2478b1}
  .mobile-channels svg {width:23px;height:23px}
  .mobile-channels button:hover {filter:brightness(1.15)}
  .first-screen-grid.mobile-approved {margin-top:0;gap:20px}
  .mobile-approved>.updates-row {display:none}
  .mobile-approved>.purchase-terminal {scroll-margin-top:110px}
  .payment-rail {min-height:38px;border-radius:14px 14px 0 0;padding-block:8px 10px}
  .terminal-shell {
    border:2px solid #13233d;border-radius:19px;
    background:#101a32 url('/assets/mobile-terminal-v11.webp') center top/100% 100% no-repeat;
    box-shadow:inset 0 0 0 5px #ffffff05,0 3px 0 #13233d;
  }
  .terminal-shell h2 {font-size:clamp(19px,5.8vw,27px)}
  .countdown {background:#1d2a427a;border-color:#647999}
  .payment-pane {background:#0d1833ad}
  .terminal-bottom {background:linear-gradient(#ffe59b,#e6bc55)}
  .launch-secondary .social-row {display:none}
  .vision-step {background:linear-gradient(110deg,#fffdf8,#fff8e9);border-color:#d8cfb9}
  .vision-step::after {content:'›';position:absolute;right:8px;top:50%;transform:translateY(-50%);font-size:18px;color:#657c9f}
  .vision-illustration,.vision-illustration.participate,.vision-illustration.continue {right:20px}
  .vision-step-copy {max-width:calc(100% - 120px)}
  html[dir=rtl] .mobile-channels {direction:rtl}
  html[dir=rtl] .vision-step::after {right:auto;left:8px;transform:translateY(-50%) rotate(180deg)}
  html[dir=rtl] .vision-illustration {right:auto;left:20px}

  /* The existing dialog and translated controls remain interactive DOM. */
  .wallet-dialog {
    width:calc(100% - 16px);max-width:600px;max-height:calc(100dvh - 16px);
    margin:auto;padding:0;border:3px solid #243858;border-radius:23px;
    background:#fffdf5 url('/assets/wallet-backdrop-v6.webp') 68% 0/auto 560px no-repeat;
    box-shadow:inset 0 0 0 3px #efd078,0 20px 70px #101b3544;
    overflow-x:hidden;overflow-y:auto;scrollbar-width:thin;scrollbar-gutter:auto;
    overscroll-behavior:contain;
  }
  .wallet-dialog::backdrop {background:#16223999;backdrop-filter:blur(2px)}
  .wallet-dialog .dialog-close {
    position:sticky;top:9px;right:auto;display:grid;place-items:center;
    width:44px;height:44px;margin:9px 9px -53px auto;
    border:1.5px solid #1c2c49;background:linear-gradient(#ffedb1,#e7c768);
    color:#101d35;font-size:33px;line-height:1;z-index:10;
  }
  .wallet-dialog .wallet-inner {display:flex;flex-direction:column;padding:16px 15px 18px;gap:0}
  .wallet-dialog .wallet-heading {order:0;padding:0;max-width:none}
  .wallet-dialog .wallet-eyebrow {
    max-width:calc(100% - 48px);margin:0 0 13px;padding:6px 7px;
    font-size:clamp(8px,2.25vw,12px);letter-spacing:.04em;line-height:1.45;
    white-space:normal;text-align:center;border-radius:24px;
  }
  .wallet-dialog .wallet-eyebrow::before,.wallet-dialog .wallet-eyebrow::after {width:9px;height:14px;margin-inline:0 5px}
  .wallet-dialog .wallet-eyebrow::after {margin-inline:5px 0}
  .wallet-dialog .wallet-heading h2,html:not([lang=ko]) .wallet-dialog .wallet-heading h2 {
    font-family:var(--sparta-display,SpartaMeme),Arial,sans-serif;font-size:clamp(30px,8.8vw,43px);
    font-weight:900;line-height:1.16;max-width:100%;white-space:normal;
    letter-spacing:-.055em;text-wrap:balance;overflow-wrap:anywhere;
  }
  html:not([lang=ko]) .wallet-dialog .wallet-heading h2 {font-family:Arial,sans-serif;font-size:clamp(28px,8vw,39px)}
  .wallet-dialog .wallet-heading h2::after {height:6px;bottom:0;right:8%}
  .wallet-dialog .wallet-heading>p {font-size:14px;line-height:1.55;margin-top:11px;overflow-wrap:anywhere}
  .wallet-dialog .wallet-status {font-size:12px;line-height:1.4;margin-top:12px;padding:5px 9px;max-width:100%}
  .wallet-dialog .wallet-status::before {width:16px;height:16px;font-size:12px;margin-inline-end:5px}
  .wallet-dialog .wallet-grid,.wallet-dialog .wallet-instructions,.wallet-dialog .wallet-visual {display:contents}
  .wallet-dialog .wallet-scene {
    order:1;width:100%;height:clamp(220px,70vw,345px);min-height:0;
    margin:9px 0 0;background:none;border:0;border-radius:0;clip-path:none;
    overflow:hidden;isolation:isolate;flex:none;
  }
  .wallet-dialog .wallet-example {
    position:absolute;top:3px;right:0;max-width:78%;padding:5px 9px;
    font-size:11px;font-weight:900;line-height:1.4;white-space:normal;
    border:1.5px solid #1b3153;border-radius:22px;z-index:4;
  }
  .wallet-dialog .wallet-example::after {width:12px;height:10px;bottom:-9px;border-width:1.5px}
  .wallet-dialog .wallet-scene .wallet-mascot {
    position:absolute;inset:auto;left:-18%;top:35px;bottom:auto;
    width:100%;height:auto;max-width:none;object-fit:contain;object-position:center top;
    z-index:2;
  }
  .wallet-dialog .wallet-phone {
    right:11px;top:39px;width:53%;max-width:235px;height:290px;
    border-width:3px;border-radius:24px;padding:12px 13px;
    transform:rotate(7deg);overflow:hidden;z-index:1;
  }
  .wallet-dialog .phone-status {font-size:8px;margin-bottom:17px}
  .wallet-dialog .example-wallet-mark {width:44px;height:44px;min-height:44px;padding:5px;border-radius:12px;margin-bottom:14px}
  .wallet-dialog .wallet-phone>strong {font-size:18px;line-height:1.4}
  .wallet-dialog .wallet-phone>small {font-size:10px;margin-top:8px;line-height:1.4}
  .wallet-dialog .phone-balance {font-size:23px;margin:8px 0;line-height:1.4}
  .wallet-dialog .phone-create,.wallet-dialog .phone-import {font-size:10px;line-height:1.3;padding:6px 5px;margin-top:6px}
  .wallet-dialog .wallet-steps {order:2;display:grid;gap:12px;margin:0;padding:0;list-style:none;z-index:3}
  .wallet-dialog .wallet-steps li {
    display:grid;grid-template-columns:32px 42px minmax(0,1fr);gap:10px;
    align-items:center;padding:14px 11px;min-height:92px;
    background:#ffffffed;border:1px solid #deded7;border-radius:15px;
  }
  .wallet-dialog .wallet-step-number {width:32px;height:32px;font-size:15px;line-height:1}
  .wallet-dialog .wallet-step-icon {display:grid;width:42px;height:49px;border-radius:11px}
  .wallet-dialog .wallet-step-icon .ui-icon {width:26px;height:26px}
  .wallet-dialog .wallet-steps h3 {font-family:var(--sparta-display,SpartaMeme),Arial,sans-serif;font-size:18px;line-height:1.3;margin:0 0 5px}
  .wallet-dialog .wallet-steps p {font-size:14px;line-height:1.5;overflow-wrap:anywhere}
  .wallet-dialog .wallet-steps li:not(:last-child)::after {font-size:24px;line-height:18px;bottom:-17px;left:49%}
  .wallet-dialog .wallet-safety {
    order:3;padding:12px;margin-top:12px;gap:10px;
    font-size:14px;line-height:1.5;border-radius:13px;background:#fff0c5;
  }
  .wallet-dialog .wallet-safety .ui-icon {width:28px;height:32px}
  .wallet-dialog .wallet-download {
    order:4;width:100%;margin-top:13px;border:1.5px solid #24395f;
    border-radius:16px;padding:12px;background:#fff;
  }
  .wallet-dialog .device-tabs {gap:8px}
  .wallet-dialog .device-tabs button {min-height:44px;padding:8px;font-size:15px;line-height:1.3;gap:7px}
  .wallet-dialog .device-tabs .ui-icon {width:21px;height:21px}
  .wallet-dialog .download-instructions {display:none}
  .wallet-dialog .mobile-app-install {display:flex;flex-direction:column;align-items:center;gap:10px;margin-top:14px}
  .mobile-app-icon {display:grid;place-items:center;width:39px;height:43px;background:#ecf3ff;border:1px solid #dbe7fa;border-radius:10px;color:#355689}
  .mobile-app-icon .ui-icon {width:26px;height:29px}
  .mobile-app-install button {
    display:block;width:100%;min-height:44px;padding:9px 10px;border-radius:9px;
    background:#e7efff;color:#4c67a7;font-size:14px;font-weight:800;line-height:1.5;
    opacity:1;cursor:default;
  }
  .wallet-dialog .wallet-links-pending {font-size:12px!important;line-height:1.5!important;margin-top:9px!important;gap:5px}
  .wallet-dialog .wallet-links-pending::before {width:15px;height:15px;font-size:11px;margin-inline-end:0}
  .wallet-dialog .wallet-footer {order:5;display:flex;flex-direction:column;gap:12px;margin-top:14px;padding-top:12px;border-top:1px solid #d8d7d0}
  .wallet-dialog .wallet-footer p {max-width:none;font-size:12px;line-height:1.5;text-align:center;overflow-wrap:anywhere}
  .wallet-dialog .wallet-footer .button {
    width:100%;min-width:0;min-height:48px;padding:10px 16px;justify-content:center;
    font-size:17px;gap:14px;border:1.5px solid #dfbd5f;border-radius:25px;
    background:#172341;color:#fff;
  }
  .wallet-dialog .wallet-footer .button>span:last-child {font-size:23px}
  html[dir=rtl] .wallet-dialog .wallet-scene {direction:ltr}
}

@media (max-width:360px) {
  .site-header .header-actions {gap:8px}
  .site-header .brand {font-size:17px}
  .site-header .brand b {font-size:21px}
  .site-header .brand img {width:27px;height:36px}
  .mobile-tagline {font-size:11px;padding-inline:8px}
  .launch-banner {padding:34px 12px 23px}
  .launch-banner .banner-badge {font-size:12px;padding:8px 10px}
  .mobile-hero-intro {font-size:13px}
  .launch-banner .banner-status {font-size:11px;margin-inline:0;padding-inline:10px}
  .mobile-runner-speech {font-size:11px;padding:7px 10px;min-height:36px}
  .mobile-channels {width:33%;right:0}
  .mobile-channels>div {gap:9px}
  .vision-step-copy {max-width:calc(100% - 107px)}
  .wallet-dialog .wallet-inner {padding-inline:12px}
  .wallet-dialog .wallet-eyebrow {font-size:8px;padding:6px 5px;max-width:calc(100% - 44px)}
  .wallet-dialog .wallet-eyebrow::before,.wallet-dialog .wallet-eyebrow::after {display:none}
  .wallet-dialog .wallet-steps li {grid-template-columns:28px 34px minmax(0,1fr);gap:7px;padding:13px 9px}
  .wallet-dialog .wallet-step-number {width:28px;height:28px;font-size:14px}
  .wallet-dialog .wallet-step-icon {width:34px;height:41px}
  .wallet-dialog .wallet-step-icon .ui-icon {width:23px;height:23px}
  .wallet-dialog .wallet-steps h3 {font-size:17px}
  .wallet-dialog .wallet-steps p {font-size:13px}
  .wallet-dialog .wallet-safety {font-size:13px}
}
