/* One shared single-column layout on phones and desktop browsers. */
.mobile-bar { display: none; }

@media screen {
  html {
    scroll-padding-top: 20px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  html::-webkit-scrollbar,
  body::-webkit-scrollbar,
  .chat-content::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  .chat-content { scrollbar-width: none; -ms-overflow-style: none; }

  body {
    width: 100%;
    max-width: 480px;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    font-size: 15px;
    overflow-wrap: break-word;
  }

  .shell {
    width: calc(100% - 32px);
    max-width: 448px;
  }

  .topbar { height: 68px; gap: 12px; }
  .brand { gap: 10px; min-width: 0; }
  .brand-mark { width: 36px; height: 36px; flex-shrink: 0; font-size: 23px; }
  .brand-name { font-size: 15px; letter-spacing: 1px; }
  .brand-sub { font-size: 8px; letter-spacing: 1.6px; }
  .nav { gap: 0; }
  .nav > a { display: none; }
  .nav .nav-help { min-height: 44px; padding: 9px 11px; font-size: 12px; white-space: nowrap; }

  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 22px 0 28px;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: clamp(340px, 92vw, 400px);
    padding: 24px 20px 28px 16px;
    border: 1px solid #57424e;
    border-radius: 18px;
    overflow: hidden;
    isolation: isolate;
    background: #27242b;
    touch-action: pan-y pinch-zoom;
  }
  .hero-slides {
    position: absolute;
    inset: 0;
    z-index: -2;
  }
  .hero-photo {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 26%;
    opacity: 0;
    transition: opacity 700ms ease;
    pointer-events: none;
    user-select: none;
  }
  .hero-photo.is-active { opacity: 1; }
  .hero-controls {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }
  .hero-dots {
    display: flex;
    align-items: center;
    padding: 0;
  }
  .hero-dot {
    display: grid;
    place-items: center;
    width: 36px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
  }
  .hero-dot::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #ffffff80;
    transition: background 250ms ease;
  }
  .hero-dot[aria-pressed="true"]::before { background: #edc3d2; box-shadow: 0 0 8px #edc3d24d; }
  .hero-copy:focus-visible { outline: 2px solid var(--pink); outline-offset: 4px; }
  .hero-controls button:focus-visible { outline-offset: 2px; }
  .hero-copy h1 { pointer-events: none; text-shadow: none; }
  .hero-copy::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(180deg, #17151b00 60%, #17151b14 82%, #17151b40 100%);
  }
  .eyebrow, .hero-spark, .hero-link, .hero-note { display: none; }
  .hero h1 {
    color: #f6d8e2;
    -webkit-text-fill-color: currentColor;
    -webkit-text-stroke: 0;
    font-size: 22px;
    line-height: 1.4;
    font-weight: 650;
    letter-spacing: 0;
    margin: 0;
    text-align: left;
    align-self: flex-start;
    white-space: nowrap;
  }
  .hero h1 span { margin-left: 0; color: inherit; }
  .hero-desc { font-size: 13px; line-height: 1.85; letter-spacing: 0; color: #e3d7e4; }
  .hero-desc br { display: none; }
  .category-tags { gap: 6px; margin: 12px 0 0; }
  .category-tags span { padding: 3px 8px; font-size: 11px; letter-spacing: 0; background: #17151b59; border-color: #8d71856b; color: #e7d4e1; }

  .payment-card { padding: 18px; border-radius: 18px; }
  .card-heading { margin-bottom: 12px; gap: 10px; }
  .card-heading > span:first-child { font-size: 14px; letter-spacing: 1px; }
  .card-heading .card-edition { font-size: 9px; letter-spacing: 1px; white-space: nowrap; }
  .plan-switch { gap: 4px; }
  .plan-switch a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 5px;
    font-size: 13px;
  }
  .price-area {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    column-gap: 10px;
    margin: 12px 0 8px;
  }
  .price-line { order: 1; margin-top: 0; }
  .offer-label { order: 2; font-size: 11px; padding: 2px 7px; letter-spacing: 0; }
  .price-number { font-size: 44px; }
  .currency { font-size: 21px; }
  .price-line del { font-size: 13px; }
  .purchase-caption { display: none; }
  .qr-wrapper { width: min(280px, 100%); padding: 10px 10px 31px; margin: 12px auto; }
  .qr-img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    border-radius: 0;
    -webkit-user-select: auto;
    user-select: auto;
    -webkit-touch-callout: default;
  }
  .qr-label { font-size: 10px; }
  .qr-watermark { font-size: 16px; }
  .scan-hint { gap: 6px; margin: 12px 0 14px; font-size: 12px; line-height: 1.7; }
  .scan-hint .icon { width: 16px; height: 16px; }
  .primary-button { min-height: 50px; gap: 9px; padding: 12px 10px; font-size: 14px; border-radius: 10px; }
  .primary-button .icon { width: 18px; height: 18px; }
  .payment-warning { font-size: 11px; line-height: 1.8; margin-top: 11px; }
  .payment-warning .icon { width: 14px; height: 14px; margin-top: 3px; }

  .section-heading { align-items: center; gap: 10px; flex-wrap: wrap; }
  .section-kicker { font-size: 9px; letter-spacing: 1.7px; }
  .section-heading h2 { font-size: 19px; letter-spacing: 1px; }
  .section-heading h2 span { display: block; margin: 5px 0 0; font-size: 12px; letter-spacing: 0; }
  .guide-intro { font-size: 12px; }
  .guide-section { padding-bottom: 28px; }
  .guide-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 17px; }
  .step-card { min-width: 0; padding: 16px; gap: 16px; border-radius: 12px; }
  .step-num { font-size: 30px; min-width: 30px; }
  .step-body { min-width: 0; }
  .step-body h3 { margin-bottom: 5px; font-size: 14px; letter-spacing: 0; }
  .step-body p { font-size: 12px; line-height: 1.9; }
  .step-body button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
  .step-arrow { display: none; }

  .gallery-section { padding: 28px 0; }
  .subtle-button { min-height: 44px; padding: 9px 10px; font-size: 12px; white-space: nowrap; }
  .subtle-button .icon { width: 16px; height: 16px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
  .gallery-card { min-width: 0; }
  .gallery-image-wrap { aspect-ratio: 3 / 4; }
  .image-chip { top: 8px; left: 8px; padding: 3px 6px; font-size: 10px; }
  .gallery-caption { min-height: 47px; padding: 10px; flex-wrap: wrap; gap: 3px; }
  .gallery-caption strong { font-size: 12px; letter-spacing: 0; }
  .gallery-caption span { font-size: 8px; letter-spacing: .5px; }
  .gallery-footnote { font-size: 11px; line-height: 1.85; margin-top: 15px; }

  .faq-section { grid-template-columns: minmax(0, 1fr); gap: 3px; padding: 26px 0; }
  .faq-section h2 { font-size: 19px; letter-spacing: 1px; }
  .faq-section > div > p { font-size: 13px; margin: 8px 0 10px; }
  .faq-list summary { min-height: 52px; gap: 12px; padding: 13px 0; font-size: 14px; }
  .faq-list p { font-size: 13px; line-height: 1.9; }
  .footer {
    flex-wrap: wrap;
    gap: 8px;
    font-size: 10px;
    line-height: 1.8;
    padding: 22px 0 calc(100px + env(safe-area-inset-bottom, 0px));
  }
  .footer-brand { letter-spacing: 1px; }
  .float-btn { display: none; }

  .mobile-bar {
    position: fixed;
    z-index: 20;
    display: grid;
    grid-template-columns: 56px 56px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 480px;
    margin-inline: auto;
    padding: 9px max(16px, env(safe-area-inset-right, 0px)) calc(9px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    background: #211b25f5;
    border-top: 1px solid #554052;
    box-shadow: 0 -8px 30px #0003;
    backdrop-filter: blur(16px);
  }
  .mobile-bar > a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 46px;
    color: #cfbccc;
    font-size: 11px;
    line-height: 1.5;
  }
  .mobile-bar > a .icon { width: 20px; height: 20px; }
  .mobile-submit {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    min-width: 0;
    min-height: 46px;
    padding: 10px 8px;
    border: 1px solid var(--pink);
    border-radius: 10px;
    background: var(--pink);
    color: #35212d;
    font-size: 14px;
    font-weight: 650;
  }
  .mobile-submit .icon { width: 18px; height: 18px; }

  .chat-window {
    left: 0;
    right: 0;
    bottom: var(--chat-viewport-bottom, 0px);
    width: 100%;
    max-width: 480px;
    margin-inline: auto;
    height: min(680px, 90vh);
    height: min(680px, var(--chat-viewport-height, 90dvh));
    max-height: var(--chat-viewport-height, 90dvh);
    border-radius: 20px 20px 0 0;
    border-bottom: 0;
  }
  .chat-header { padding: 14px 16px; gap: 10px; flex-shrink: 0; }
  .chat-identity { min-width: 0; }
  .chat-title { font-size: 14px; }
  .chat-status { font-size: 11px; line-height: 1.8; }
  .icon-button { min-width: 44px; min-height: 44px; flex-shrink: 0; }
  .icon-button .icon { width: 19px; height: 19px; }
  .chat-content { min-height: 0; padding: 18px 14px; -webkit-overflow-scrolling: touch; }
  .chat-date { font-size: 11px; }
  .msg-avatar { width: 28px; height: 28px; }
  .msg-bubble { max-width: 84%; padding: 11px 12px; font-size: 14px; line-height: 1.8; }
  .msg-bubble a { display: inline-block; min-height: 44px; padding: 10px 0; }
  .msg-bubble img { max-width: 160px; max-height: 200px; }
  .chat-upload-tip { padding: 9px 14px; font-size: 11px; flex-shrink: 0; }
  .chat-input-area {
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    flex-shrink: 0;
  }
  .upload-button { width: 44px; height: 44px; }
  .upload-button .icon { width: 20px; height: 20px; }
  .input-box { min-height: 44px; padding: 10px; font-size: 16px; }
  .btn-send { height: 44px; padding: 0 13px; font-size: 14px; flex-shrink: 0; }
  .image-dialog { max-width: min(460px, calc(100vw - 20px)); padding: 10px; }
  .dialog-top { gap: 12px; font-size: 13px; }
  .dialog-caption { font-size: 11px; }
  .toast { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); max-width: min(448px, 85vw); font-size: 13px; padding: 12px 16px; }
}

@media (max-width: 360px) {
  .hero h1 { font-size: 20px; }
  .brand-sub { display: none; }
  .brand-name { font-size: 14px; letter-spacing: 0; }
  .brand { gap: 8px; }
  .nav .nav-help { padding: 9px; font-size: 11px; }
  .payment-card { padding: 16px; }
  .card-heading .card-edition { display: none; }
  .plan-switch a { font-size: 12px; }
  .primary-button { gap: 7px; font-size: 13px; }
  .mobile-bar { grid-template-columns: 48px 48px minmax(0, 1fr); gap: 6px; }
  .mobile-submit { font-size: 13px; }
  .msg-bubble { font-size: 13px; }
}

@media (hover: none) and (pointer: coarse) {
  .gallery-card:hover, .primary-button:hover { transform: none; }
  .gallery-card:hover .gallery-item { transform: none; }
}
