/* Phone presentation only. Desktop styles and application behaviour stay intact. */
@media (max-width: 720px) {
  html { scroll-padding-top: 120px; }
  body { font-size: 16px; }
  .scroll-progress { height: 3px; }
  .announcement { min-height: 30px; padding: 6px 12px; font-family: 'DM Sans',sans-serif; font-weight: 800; font-size: 12px; letter-spacing: 0; gap: 8px; text-align: center; }
  .announcement .blink { display: none; }
  header { height: auto; min-height: 104px; padding: 9px 16px 0; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px 16px; }
  header .brand { width: 140px; height: 44px; }
  header .cart-button { min-height: 44px; padding: 7px 12px; font-size: 14px; box-shadow: 2px 2px #111; }
  header .cart-button span { width: 24px; height: 24px; font-size: 14px; margin-left: 6px; }
  header nav { display: grid; grid-template-columns: 1.25fr 1fr 1fr; grid-column: 1/-1; grid-row: 2; gap: 0; border-top: 1px solid #1114; width: 100%; }
  header nav a { font-family: 'DM Sans',sans-serif; font-size: 14px; font-weight: 800; line-height: 1.2; padding: 9px 5px; min-height: 44px; text-align: center; display: flex; align-items: center; justify-content: center; }
  header nav a + a { border-left: 1px solid #1114; }
  header nav a::after, header nav b { display: none; }
  .hero { padding: 24px 20px 30px; gap: 20px; min-height: auto; grid-template-columns: minmax(0,1fr); }
  .micro-label { font-family: 'DM Sans',sans-serif; font-size: 12px; font-weight: 800; line-height: 1.4; margin-bottom: 20px; gap: 12px; padding-bottom: 8px; }
  .micro-label span:last-child { flex-shrink: 0; }
  .hero h1 { font-size: clamp(2.8rem,12.5vw,4.3rem); line-height: .98; letter-spacing: -.055em; }
  .hero h1 em { transform: none; text-shadow: 2px 2px #ffe62f; }
  .hero-copy > p { font-size: 16px; line-height: 1.55; margin: 20px 0; max-width: 36ch; }
  .hero-actions { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 16px; align-items: stretch; }
  .hero-actions > * { min-width: 0; font-size: 14px; line-height: 1.35; white-space: normal; text-align: left; padding: 12px; min-height: 52px; gap: 8px; }
  .hero-actions > .under-button { padding-inline: 0; }
  .hero-trust { display: none; }
  .hero-stage { width: 100%; max-width: 430px; margin: 4px auto 0; min-height: 0; height: auto; aspect-ratio: 1.12; transform: none; }
  .stage-frame { width: 77%; left: 10%; top: 2%; padding: 7px; border-width: 2px; box-shadow: 5px 5px #111; transform: rotate(3deg); }
  .stage-frame img { border-width: 1px; }
  .float-card { width: 28%; right: 1%; bottom: 19%; padding: 4px; border-width: 2px; box-shadow: 3px 3px #ff241c; transform: rotate(-6deg); }
  .price-bubble { width: 86px; height: 86px; left: 0; bottom: 19%; border-width: 2px; box-shadow: 3px 3px #111; transform: rotate(-5deg); }
  .price-bubble small,.price-bubble span { font-size: 12px; }
  .price-bubble strong { font-size: 21px; }
  .pixel-note,.stage-burst,.drag-note { display: none; }
  .hero-picker { right: 50%; bottom: 0; transform: translateX(50%); gap: 8px; padding: 5px; border-width: 2px; box-shadow: 2px 2px #111; max-width: 100%; }
  .hero-picker button { width: 44px; height: 44px; flex-shrink: 0; }
  .marquee { padding: 10px 0; font-size: 12px; }
  .section { padding: 44px 20px; }
  .section-title { margin-bottom: 24px; }
  .index { font-family: 'DM Sans',sans-serif; font-weight: 800; font-size: 12px; letter-spacing: .07em; margin-bottom: 12px; }
  .section-title h2,.vibe h2,.manifesto h2,.faq h2,.arcade-title h2 { font-size: clamp(2.15rem,9.3vw,3.2rem); line-height: 1.03; letter-spacing: -.045em; }
  .section-title p,.vibe-copy p,.arcade-title > p { font-size: 16px; line-height: 1.6; margin-top: 18px; }
  .pixel-button,.add-button { min-height: 48px; font-size: 14px; padding: 12px 14px; line-height: 1.35; gap: 12px; box-shadow: 3px 3px #111; white-space: normal; }
  .under-button,.save-text { min-height: 44px; font-size: 14px; line-height: 1.4; }
  .shop-toolbar { min-width: 0; display: block; margin: 0 -20px 12px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; gap: 8px; padding: 3px 20px 10px; scroll-padding-inline: 20px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .filters .filter { flex: 0 0 auto; min-height: 44px; padding: 10px 13px; font-family: 'DM Sans',sans-serif; font-size: 14px; font-weight: 800; line-height: 1.3; border-radius: 6px; }
  .category-filters { display: contents; }
  .shortlist-link { margin-bottom: 22px; padding: 0 0 14px; gap: 4px; }
  .shortlist-link > span { font-size: 14px; color: #444; }
  .shortlist-link .save-text { font-size: 14px; text-align: left; }
  .product-grid { grid-template-columns: minmax(0,1fr); gap: 26px; }
  .product-card { border-width: 2px; box-shadow: 4px 4px #111; border-radius: 10px; overflow: hidden; }
  .product-visual { aspect-ratio: auto; height: auto; border-bottom-width: 2px; }
  .product-visual > button[data-product] { height: auto; display: block; }
  .product-visual img { height: min(78vw,330px); width: 100%; object-fit: contain; }
  .product-tag { left: 10px; top: 10px; max-width: calc(100% - 76px); padding: 6px 8px; font-size: 12px; }
  .heart { right: 10px; top: 10px; width: 44px; height: 44px; box-shadow: 2px 2px #111; }
  .quick-view { bottom: 10px; font-size: 12px; padding: 7px 10px; }
  .product-info { padding: 18px; }
  .product-kicker { font-family: 'DM Sans',sans-serif; font-weight: 800; font-size: 12px; line-height: 1.4; margin-bottom: 8px; }
  .product-info h3 { font-size: 24px; line-height: 1.12; }
  .product-info > p { font-size: 16px; line-height: 1.5; margin: 12px 0 18px; }
  .product-buy { grid-template-columns: auto minmax(0,1fr); gap: 16px; padding-top: 14px; }
  .product-price { display: block; }
  .product-price strong { font-size: 24px; }
  .product-price span { font-size: 12px; }
  .product-buy .add-button { width: 100%; padding-inline: 8px; }
  .vibe { gap: 24px; }
  .vibe-copy p { margin: 18px 0; }
  .vibe-copy > .pixel-button { width: 100%; }
  .vibe-copy small { font-size: 12px; line-height: 1.5; margin-top: 14px; }
  .vibe-stack { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0,72%); gap: 14px; min-height: 0; max-width: none; width: calc(100% + 40px); margin: 0 -20px; padding: 6px 20px 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; scrollbar-width: thin; }
  .vibe-stack .mood-card { position: relative; width: 100%; inset: auto; transform: none; padding: 12px; border-width: 2px; border-radius: 8px; box-shadow: 3px 3px #111; scroll-snap-align: start; }
  .mood-card span { font-size: 12px; }
  .mood-card strong { font-size: clamp(1.6rem,7vw,2.2rem); line-height: .98; top: 44px; left: 20px; text-shadow: 2px 2px #111; }
  .mood-card img { margin-top: 10px; }
  .mood-card i { width: 44px; height: 44px; bottom: 20px; right: 20px; }
  .arcade-title { margin-bottom: 24px; }
  .arcade-title h2 { margin-top: 12px; }
  .arcade-grid,.arcade-side { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .memory-feature,.detective-feature,.note-feature { padding: 20px; border-width: 2px; border-radius: 10px; box-shadow: 3px 3px #000; }
  .arcade-label { gap: 10px; font-size: 12px; }
  .arcade-label b { font-size: 12px; padding: 6px 8px; }
  .memory-feature h3,.arcade-side h3 { font-size: clamp(1.7rem,7.5vw,2.5rem); line-height: 1.08; margin: 22px 0; }
  .arcade-pairs { gap: 6px; margin: 0 0 20px; }
  .arcade-pairs span { font-size: 22px; box-shadow: 2px 2px #111; }
  .prize-grid { margin-bottom: 14px; }
  .prize-grid > div { grid-template-columns: 1fr; gap: 5px; padding: 14px 0; }
  .prize-grid > div + div { padding-left: 16px; margin-left: 16px; }
  .prize-grid strong { font-size: 36px; }
  .prize-grid b { grid-row: auto; grid-column: 1; font-size: 20px; }
  .memory-feature > p { font-size: 16px; line-height: 1.5; margin-bottom: 18px; }
  .memory-feature > small { font-size: 14px; line-height: 1.5; margin-top: 16px; }
  .detective-teaser { height: 104px; gap: 18px; margin: 20px 0; }
  .detective-teaser img { width: 104px; height: 104px; border-width: 2px; transform: rotate(-3deg); }
  .detective-teaser span { font-size: 16px; }
  .detective-feature p,.note-feature p { margin-bottom: 18px; }
  .detective-feature .pixel-button { width: 100%; }
  .manifesto { min-height: auto; gap: 26px; }
  .manifesto-list p { gap: 14px; padding: 18px 0; font-family: 'DM Sans',sans-serif; font-weight: 800; font-size: 16px; line-height: 1.4; }
  .faq { gap: 26px; }
  .faq-list summary { padding: 18px 0; gap: 16px; font-family: 'DM Sans',sans-serif; font-weight: 800; font-size: 16px; line-height: 1.4; }
  .faq-list summary span { flex-shrink: 0; }
  .faq-list p { padding: 0 0 20px; font-size: 16px; line-height: 1.6; }
  .final-cta { min-height: auto; padding: 48px 20px; }
  .final-cta h2 { font-size: clamp(2.6rem,12vw,4rem); line-height: 1.03; margin: 18px 0 28px; }
  .final-cta .big-smile { display: none; }
  footer { gap: 20px; padding: 28px 20px calc(96px + env(safe-area-inset-bottom)); }
  footer .footer-brand { width: 160px; height: 48px; }
  footer > div { font-size: 12px; gap: 16px; }
  footer > div a { display: flex; min-height: 44px; align-items: center; font-size: 14px; }
  .reward-dock { bottom: calc(10px + env(safe-area-inset-bottom)); width: calc(100% - 24px); max-width: 420px; box-shadow: 2px 2px #0878ff; }
  .reward-dock > button { min-height: 52px; padding: 9px 12px; }
  .reward-dock > button:first-child { flex: 1; min-width: 0; }
  .reward-dock span { font-size: 14px; line-height: 1.2; white-space: normal; }
  .reward-dock small { font-size: 12px; line-height: 1.3; }
  .reward-dock > button + button { min-width: 58px; padding: 9px 12px; }
  #toast { width: calc(100% - 32px); max-width: 420px; bottom: calc(84px + env(safe-area-inset-bottom)); font-size: 14px; padding: 12px; }

  /* Phone dialogs use the available screen rather than a shrunken desktop box. */
  #modal { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; inset: 0; padding: max(12px,env(safe-area-inset-top)) 20px max(24px,env(safe-area-inset-bottom)); border: 0; border-radius: 0; box-shadow: none; overflow-x: hidden; overflow-y: auto; }
  .modal-close { width: 44px; height: 44px; min-height: 44px; top: 0; margin: 0 0 12px; border-radius: 8px; box-shadow: 2px 2px #111; }
  #modal-content { padding-bottom: 12px; }
  .modal-title { font-size: clamp(1.85rem,8vw,2.7rem); line-height: 1.08; letter-spacing: -.035em; margin-bottom: 16px; overflow-wrap: break-word; }
  .modal-kicker { font-family: 'DM Sans',sans-serif; font-size: 14px; font-weight: 800; line-height: 1.4; margin-bottom: 10px; }
  .modal-intro { font-size: 16px; line-height: 1.55; }
  .detail-layout,.quiz-result,.checkout-layout,.detective-layout { grid-template-columns: minmax(0,1fr); gap: 22px; }
  .detail-photo { max-height: 320px; aspect-ratio: 1; object-fit: contain; border-width: 2px; box-shadow: 3px 3px #0878ff; }
  .thumbs { margin-top: 12px; gap: 10px; overflow-x: auto; padding: 2px; }
  .thumbs button { flex: 0 0 60px; }
  .detail-copy > p { font-size: 16px; line-height: 1.6; }
  .detail-facts { margin: 20px 0; }
  .detail-facts span,.detail-facts strong { font-size: 14px; line-height: 1.4; }
  .detail-facts div { gap: 14px; }
  .detail-facts strong { max-width: 65%; overflow-wrap: anywhere; }
  .modal-actions { gap: 12px; align-items: stretch; }
  .modal-actions > .add-button,.modal-actions > .pixel-button { flex: 1 1 100%; }
  .gift-note { padding: 16px; margin-top: 20px; }
  .gift-note strong { font-size: 14px; }
  .cart-row { grid-template-columns: 64px minmax(0,1fr); gap: 12px; align-items: start; padding: 18px 0; }
  .cart-row img { width: 64px; height: 72px; }
  .cart-row h3 { font-size: 17px; line-height: 1.3; overflow-wrap: break-word; }
  .cart-row p { font-size: 14px; line-height: 1.4; }
  .cart-row .remove { grid-column: 2; justify-self: start; min-height: 44px; padding: 8px 0; font-size: 14px; }
  .quantity-control { gap: 16px; }
  .quantity-control button { width: 44px; height: 44px; border-radius: 6px; }
  .cart-total { font-size: 18px; gap: 16px; line-height: 1.4; padding: 20px 0; align-items: center; }
  .cart-total strong { flex-shrink: 0; font-size: 23px; }
  .reward-bag { padding: 16px; margin: 8px 0 18px; border-radius: 8px; }
  .reward-bag p { margin: 8px 0; }
  .bag-order-actions { gap: 14px; }
  .bag-order-actions > * { width: 100%; justify-content: center; }
  .checkout-head { margin-bottom: 18px; align-items: center; gap: 10px; }
  .checkout-tag { display: none; }
  .checkout-title { font-size: clamp(1.9rem,8vw,2.6rem); margin-bottom: 20px; }
  .order-ticket { margin: 0 3px 4px 0; padding: 16px; transform: none; border-width: 2px; box-shadow: 3px 3px #111; border-radius: 8px; order: -1; }
  .ticket-top { font-size: 14px; padding-bottom: 12px; }
  .ticket-item { grid-template-columns: 40px minmax(0,1fr); gap: 10px; padding: 12px 0; }
  .ticket-item img { width: 40px; height: 48px; }
  .ticket-item strong { font-size: 14px; line-height: 1.35; }
  .ticket-item span { display: inline-block; font-size: 12px; margin: 4px 10px 0 0; }
  .ticket-item b { font-size: 14px; }
  .ticket-totals { padding: 16px 0; gap: 10px; font-size: 14px; }
  .ticket-due { flex-wrap: wrap; font-size: 14px; padding: 12px; }
  .ticket-due strong { font-size: 24px; }
  .checkout-lead { margin-bottom: 16px; }
  .checkout-progress-label { font-size: 12px; line-height: 1.5; }
  .checkout-fields label { font-size: 14px; line-height: 1.4; }
  .checkout-fields input,.checkout-fields textarea,.checkout-fields select { font-size: 16px; min-height: 48px; border-radius: 6px; box-shadow: none; padding: 12px; }
  .checkout-fields small { font-size: 14px; line-height: 1.6; margin: 10px 0 20px; }
  .field-error { margin-bottom: 16px; }
  .checkout-submit { min-height: 52px; margin-top: 4px; }
  .bkash-box { padding: 16px; border-radius: 8px; }
  .bkash-box strong span { font-size: 22px; overflow-wrap: anywhere; }
  .success-receipt { padding: 16px; margin: 22px 0; }
  .order-success { padding: 8px 0; }
  .quiz-progress { margin: 16px 0 24px; }
  .quiz-answer { grid-template-columns: 42px minmax(0,1fr); padding: 12px; gap: 12px; font-family: 'DM Sans',sans-serif; font-weight: 800; font-size: 16px; line-height: 1.4; border-radius: 8px; box-shadow: 2px 2px #111; }
  .quiz-answer span { width: 42px; height: 44px; }
  .quiz-result img { max-height: 240px; object-fit: contain; box-shadow: 3px 3px #0878ff; }
  .compare-grid { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .compare-card { grid-template-columns: 80px minmax(0,1fr); padding: 14px; border-radius: 8px; gap: 10px; }
  .compare-card h3 { font-size: 18px; line-height: 1.3; }
  .compare-card dd { font-size: 16px; line-height: 1.5; }
  .compare-card > strong { font-size: 22px; }
  .note-tones { display: grid; grid-template-columns: minmax(0,1fr); gap: 10px; margin: 20px 0; }
  .note-tones button { font-size: 14px; text-align: left; min-height: 46px; border-radius: 6px; }
  #gift-message { padding: 14px; font-size: 16px; line-height: 1.6; border-width: 2px; border-radius: 8px; }
  #note-status { margin-top: 16px; font-size: 14px; }
  .detective-photo { max-height: none; height: min(65vw,280px); aspect-ratio: auto; border-radius: 8px; }
  .detective-options > button { border-radius: 8px; min-height: 50px; font-size: 16px; padding: 12px 14px; }
  .detective-finds button { border-radius: 8px; }
  .reward-ticket { padding: 18px; border-width: 2px; border-radius: 10px; }
  .reward-ticket .modal-title { font-size: clamp(1.85rem,8vw,2.7rem); }
  .reward-ticket p { margin-bottom: 18px; }

  /* Keep the board and its clock together on a phone. */
  #modal:has(#game-board) { padding-inline: 16px; }
  #modal:has(#game-board) .modal-close { margin-bottom: 8px; }
  .arcade-heading { align-items: center; gap: 10px; }
  .arcade-heading .modal-kicker { font-size: 12px; margin-bottom: 6px; }
  .arcade-heading .modal-title { font-size: 25px; line-height: 1.04; margin-bottom: 0; }
  .arcade-chip { font-size: 12px; padding: 8px; transform: none; border-radius: 5px; }
  #modal:has(#game-board) .modal-intro { font-size: 14px; line-height: 1.45; margin-top: 12px; }
  .reward-targets { margin: 14px 0; gap: 8px; }
  .reward-targets > div { padding: 10px; gap: 4px; border-radius: 6px; }
  .reward-targets b { font-size: 18px; }
  .reward-targets span { font-size: 12px; line-height: 1.35; }
  .game-top { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; align-items: center; margin: 14px 0 12px; }
  .game-stats { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 10px; }
  .game-stats span { font-family: 'DM Sans',sans-serif; font-size: 12px; font-weight: 800; }
  .game-stats strong { font-family: 'Archivo Black',sans-serif; font-size: 21px; min-width: 0; margin-top: 3px; }
  .game-top > .save-text { font-size: 14px; text-align: right; padding: 4px 0; max-width: 78px; }
  .sprint-meter { height: 6px; }
  .game-live { min-height: 20px; font-size: 14px; line-height: 1.4; margin: 8px 0 12px; }
  .game-board { width: 100%; max-width: 440px; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; padding: 0 3px 3px 0; }
  .game-card { aspect-ratio: 1.12; min-height: 48px; font-size: 30px; border-width: 2px; border-radius: 8px; box-shadow: 2px 2px #111; }
  .game-card small { font-size: 12px; }
  .game-rules { margin-top: 18px; padding: 0; }
  .game-rules summary { min-height: 44px; padding: 14px 0; font-family: 'DM Sans',sans-serif; font-size: 14px; font-weight: 800; }
  .game-rules p { padding: 0 0 14px; font-size: 14px; line-height: 1.6; }
  .game-finish { padding: 18px; margin-top: 18px; border-radius: 8px; }
  .game-finish h3 { font-size: 24px; line-height: 1.15; }
  .game-finish .modal-actions { margin-top: 16px; }
  .empty-grid { padding: 28px 18px; font-size: 16px; line-height: 1.5; }
}
@media (max-width: 360px) {
  header { padding-inline: 12px; }
  header nav a { font-size: 14px; padding-inline: 3px; }
  .hero,.section { padding-inline: 16px; }
  .hero h1 { font-size: 2.65rem; }
  .hero-actions { gap: 12px; }
  .hero-actions > * { padding: 10px 8px; }
  .micro-label { flex-wrap: wrap; gap: 4px; }
  .vibe-stack { width: calc(100% + 32px); margin-inline: -16px; padding-inline: 16px; grid-auto-columns: 78%; }
  .shop-toolbar { margin-inline: -16px; }
  .filters { padding-inline: 16px; }
  .product-info { padding: 16px; }
  .product-info h3 { font-size: 22px; }
  .product-buy { gap: 10px; }
  .product-buy .add-button { font-size: 14px; }
  .reward-dock small { display: none; }
  .reward-dock > button { min-height: 48px; }
  #modal { padding-inline: 16px; }
  .game-board { gap: 7px; }
}
@media (max-width: 720px) and (hover: none) {
  .product-card:hover,.pixel-button:hover,.add-button:hover,.cart-button:hover { transform: none; }
  .product-visual:hover img { transform: none; }
  .mood-card:hover { transform: none !important; }
  .stage-frame:hover { transform: rotate(3deg); }
}
@media (max-width: 720px) {
  .vibe { grid-template-columns: minmax(0,1fr); }
  .vibe-copy,.vibe-stack,.hero-copy,.product-info,.arcade-side,.detective-options { min-width: 0; }
  .reward-targets > div { min-width: 0; }
  .detective-photo { display: block; }
  .detective-photo img { display: block; width: 100%; height: 100%; }
}
@media (max-width: 720px) and (max-height: 700px) {
  #modal:has(#game-board) .arcade-heading .modal-title { font-size: 22px; }
  #modal:has(#game-board) .modal-intro { margin-top: 8px; }
  #modal:has(#game-board) .reward-targets { margin: 10px 0; }
  #modal:has(#game-board) .reward-targets > div { padding: 8px; }
  #modal:has(#game-board) .game-top { margin: 10px 0 8px; }
  #modal:has(#game-board) .game-card { aspect-ratio: 1.25; }
}
