/* FALARYA PREMIUM MOBIL V2 / 2026-10-24
 * Presentation only. No AI, payment, share or PWA behavior modified.
 * Loaded last in HEAD. Scoped to touch-size viewports. */
@media (max-width: 760px) {
  html { scroll-padding-top: 90px; }
  body { overflow-x: clip; }
  /* compact header: preserve every existing control */
  .topbar { box-sizing:border-box; min-height:60px!important; height:auto!important; padding:8px 12px!important; display:flex!important; flex-wrap:wrap!important; column-gap:8px!important; row-gap:5px!important; align-content:center; }
  .topbar .brand { gap:7px!important; min-width:0!important; max-width:calc(100% - 54px); font-size:clamp(19px,5vw,23px)!important; letter-spacing:.055em!important; }
  .topbar .falarya-brand-logo { width:34px!important; height:34px!important; flex:0 0 34px!important; object-fit:contain; }
  .topbar .falarya-brand-text { font-size:clamp(19px,5.3vw,23px)!important; white-space:nowrap; }
  .topbar .header-tools { margin-left:auto!important; width:auto!important; gap:5px!important; flex-wrap:wrap; justify-content:flex-end; }
  .topbar #mobileMenu { min-width:39px; min-height:39px; }
  .topbar nav.open { top:100%!important; max-height:65dvh; overflow-y:auto; overscroll-behavior:contain; }
  /* install button is ordinary header control, not a permanent screen-wide overlay */
  .topbar #installApp:not([hidden]) { position:static!important; inset:auto!important; bottom:auto!important; display:inline-flex!important; align-items:center; justify-content:center; width:auto!important; max-width:100%; min-height:36px; margin:0!important; padding:6px 10px!important; font-size:12px!important; box-shadow:none!important; border-radius:18px!important; }
  .topbar:has(#installApp:not([hidden])) .brand { flex:1 1 auto; }
  html.falarya-pwa-standalone .topbar #installApp { display:none!important; }
  /* keep brand imagery, shorten first-screen scroll distance */
  .hero { min-height:clamp(440px,68svh,580px)!important; }
  .hero-copy { margin:0!important; padding:clamp(120px,22svh,175px) 18px 28px!important; align-self:end; max-width:100%; }
  .hero h1 { font-size:clamp(36px,9.8vw,49px)!important; line-height:1.02!important; margin:10px 0 12px!important; overflow-wrap:normal; }
  .hero-copy>p { font-size:14px!important; line-height:1.55!important; margin:10px 0; }
  .hero-actions { margin-top:16px!important; gap:8px!important; flex-wrap:wrap; }
  .hero-actions .primary { min-height:44px; padding:10px 15px!important; }
  .hero-actions small { font-size:10px; }
  .hero-seal { width:82px!important; height:82px!important; top:16px!important; right:16px!important; bottom:auto!important; }
  .hero-seal b { font-size:20px; } .hero-seal span { font-size:11px; } .hero-seal small { font-size:6px; }
  /* preserve intro copy but stop it consuming several mobile screens */
  .intro { display:grid!important; grid-template-columns:1fr!important; gap:10px!important; padding:25px 18px!important; }
  .intro>span { font-size:17px!important; }
  .intro h2 { font-size:clamp(24px,6.5vw,32px)!important; line-height:1.12!important; overflow-wrap:break-word; }
  .intro p { font-size:13px!important; line-height:1.55!important; }
  .services { padding:28px 12px 42px!important; }
  .section-head { margin:0 auto 17px!important; }
  .section-head h2 { font-size:clamp(29px,8vw,39px)!important; line-height:1.06!important; margin:8px 0!important; }
  .section-head p { font-size:13px!important; line-height:1.55; }
  /* 11 real original service links and original images */
  #services .service-grid { display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:10px!important; }
  #services .service-card { width:100%!important; height:clamp(225px,62vw,280px)!important; min-height:0!important; max-height:none!important; transform:none!important; border-radius:13px!important; }
  #services .service-card>img { object-fit:cover!important; object-position:center!important; }
  #services .service-card .index { top:10px!important; left:10px!important; font-size:10px!important; }
  #services .service-card .sigil { top:9px!important; right:9px!important; width:33px!important; height:33px!important; font-size:17px!important; }
  #services .service-card>div:last-child { left:11px!important; right:11px!important; bottom:12px!important; max-width:none!important; display:block!important; }
  #services .service-card h3 { display:block!important; min-height:0!important; font-size:clamp(19px,5.25vw,26px)!important; line-height:1.04!important; overflow-wrap:anywhere; margin:0 0 5px!important; }
  #services .service-card p { display:-webkit-box!important; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden!important; min-height:0!important; max-height:39px!important; font-size:11px!important; line-height:1.35!important; margin:0 0 8px!important; }
  #services .service-card b { display:block!important; font-size:10px!important; letter-spacing:.04em!important; margin:0!important; }
  #services .service-overlay { background:linear-gradient(0deg,rgba(5,2,9,.98),rgba(5,2,9,.18) 72%)!important; }
  /* panel, results: no form/reading logic changes */
  .dashboard { padding:17px 12px max(72px,env(safe-area-inset-bottom,0px))!important; }
  .dashboard h1 { font-size:clamp(29px,8vw,39px)!important; }
  .dashboard .quick-grid { grid-template-columns:repeat(2,minmax(0,1fr))!important; gap:9px!important; }
  .dashboard .quick-grid>a { height:clamp(165px,48vw,225px)!important; min-height:0!important; }
  .dashboard .quick-grid h3 { font-size:clamp(18px,5vw,23px)!important; }
  .ritual-form { padding:18px 14px!important; }
  .result-page { padding:12px 10px max(85px,env(safe-area-inset-bottom,0px))!important; }
  .reading-text { font-size:17px!important; line-height:1.82!important; padding:18px 14px!important; overflow-wrap:anywhere; }
  .result-tarot { gap:8px!important; }
  .result-tarot article { min-width:0; }
  .result-tarot img { max-width:100%; height:auto; }
  .social-actions button,.social-actions a { min-height:44px; }
  input,select,textarea { max-width:100%; font-size:16px; }
  :is(a,button,input,textarea,select):focus-visible { outline:2px solid #f2d58a; outline-offset:2px; }
}
@media (max-width:340px) {
  #services .service-grid { grid-template-columns:1fr!important; }
  #services .service-card { height:245px!important; }
}
@media (min-width:761px) and (max-width:1180px) {
  #services .service-grid { grid-template-columns:repeat(3,minmax(0,1fr))!important; gap:14px!important; }
  #services .service-card { height:clamp(295px,35vw,390px)!important; min-height:0!important; max-height:none!important; transform:none!important; }
  .intro h2 { font-size:clamp(32px,4vw,48px); }
}
@media (prefers-reduced-motion:reduce) {
  #services .service-card img { transition:none!important; }
}
