.mobile-home,
.mobile-bottom-nav {
  display: none;
}

.mobile-icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

@media (max-width: 768px) {
  body.mobile-home-ready .hero,
  body.mobile-home-ready .tools-section,
  body.mobile-home-ready .game-section,
  body.mobile-home-ready .roadmap-section,
  body.mobile-home-ready .footer {
    display: none;
  }

  body.mobile-home-ready {
    background: #f7f4ee;
  }

  body.mobile-home-ready .mobile-home {
    display: block;
    min-height: calc(100dvh - 58px);
    padding: calc(72px + env(safe-area-inset-top, 0px)) 16px calc(84px + env(safe-area-inset-bottom));
    color: #241d1a;
  }

  .mobile-home-panel[hidden] {
    display: none;
  }

  .mobile-home-panel {
    width: min(100%, 560px);
    margin: 0 auto;
  }

  .mobile-home__intro {
    padding: 10px 0 18px;
  }

  .mobile-home__eyebrow {
    margin: 0 0 6px;
    color: #9d1717;
    font-size: 13px;
    font-weight: 700;
  }

  .mobile-home h1,
  .mobile-home h2,
  .mobile-home h3,
  .mobile-home p {
    letter-spacing: 0;
  }

  .mobile-home h1 {
    margin: 0;
    font-size: 26px;
    line-height: 1.3;
  }

  .mobile-home__lead {
    margin: 10px 0 0;
    color: #625954;
    font-size: 15px;
    line-height: 1.7;
  }

  .mobile-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin: 8px 0 10px;
  }

  .mobile-section-head h2 {
    margin: 0;
    font-size: 19px;
    line-height: 1.35;
  }

  .mobile-section-head p {
    margin: 0;
    color: #867b74;
    font-size: 13px;
  }

  .mobile-tool-list {
    display: grid;
    gap: 10px;
    margin-bottom: 22px;
  }

  .mobile-tool-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 76px;
    padding: 12px;
    border: 1px solid #ded7ce;
    border-radius: 8px;
    background: #fff;
    color: #241d1a;
    text-align: left;
    box-shadow: 0 4px 14px rgba(70, 45, 35, 0.05);
    cursor: pointer;
  }

  .mobile-tool-row:active {
    background: #f8eeee;
    transform: translateY(1px);
  }

  .mobile-tool-row:focus-visible,
  .mobile-account-action:focus-visible,
  .mobile-bottom-nav a:focus-visible {
    outline: 3px solid rgba(166, 20, 36, 0.28);
    outline-offset: 2px;
  }

  .mobile-tool-row__mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #f4e7e5;
    color: #98151f;
    font-size: 18px;
    font-weight: 800;
  }

  .mobile-tool-row__copy {
    min-width: 0;
  }

  .mobile-tool-row__title {
    display: block;
    font-size: 16px;
    font-weight: 750;
    line-height: 1.35;
  }

  .mobile-tool-row__desc {
    display: block;
    margin-top: 4px;
    color: #746a64;
    font-size: 13px;
    line-height: 1.45;
  }

  .mobile-tool-row__arrow {
    color: #9b8e85;
    font-size: 20px;
    text-align: center;
  }

  .mobile-tool-row--primary {
    border-color: #d4b0ae;
  }

  .mobile-game-preview {
    overflow: hidden;
    border: 1px solid #d8d0c6;
    border-radius: 8px;
    background: #fff;
  }

  .mobile-game-preview img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
  }

  .mobile-game-preview .mobile-tool-row {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .mobile-account-card {
    padding: 18px;
    border: 1px solid #ddd4c8;
    border-radius: 8px;
    background: #fff;
  }

  .mobile-account-card h2 {
    margin: 0 0 8px;
    font-size: 20px;
  }

  .mobile-account-card p {
    margin: 0 0 16px;
    color: #6f655f;
    font-size: 14px;
    line-height: 1.65;
  }

  .mobile-account-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    width: 100%;
    padding: 0 18px;
    border: 1px solid #a61424;
    border-radius: 7px;
    background: #a61424;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
  }

  .mobile-account-action--secondary {
    margin-top: 10px;
    background: #fff;
    color: #8c1821;
  }

  .mobile-legal-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 24px 0 8px;
    font-size: 13px;
  }

  .mobile-legal-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    color: #6f655f;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  body.mobile-home-ready .mobile-bottom-nav {
    display: grid;
    position: fixed;
    z-index: 1200;
    inset: auto 0 0;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: calc(64px + env(safe-area-inset-bottom));
    padding: 4px 6px env(safe-area-inset-bottom);
    border-top: 1px solid #ddd5cc;
    background: rgba(255, 253, 249, 0.98);
    box-shadow: 0 -5px 18px rgba(52, 34, 28, 0.08);
  }

  .mobile-bottom-nav a {
    display: flex;
    min-width: 0;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 2px;
    border-radius: 7px;
    color: #766c65;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.15;
    text-decoration: none;
  }

  .mobile-bottom-nav a[aria-current="page"] {
    background: #f8eceb;
    color: #98151f;
  }

  .mobile-bottom-nav svg:not(.mobile-icon-sprite) {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
  }

  .modal-overlay {
    z-index: 1600;
  }
}

@media (max-width: 360px) {
  .mobile-home {
    padding-inline: 12px;
  }

  .mobile-tool-row {
    grid-template-columns: 38px minmax(0, 1fr) 20px;
    gap: 9px;
    padding-inline: 10px;
  }

  .mobile-tool-row__mark {
    width: 38px;
    height: 38px;
  }
}

@media (min-width: 769px) {
  .mobile-home,
  .mobile-bottom-nav {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-home *,
  .mobile-bottom-nav * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
