/* Visual review: compact home, legible forms, and a mobile account page. */
.wallet-secondary{margin-top:20px;border-top:1px solid #303344;padding-top:14px}
.wallet-secondary summary{cursor:pointer;min-height:44px;display:flex;align-items:center;gap:8px;font-weight:600;font-size:14px;color:#dfbf7d}
.wallet-secondary summary::before{content:'▸';font-size:12px}
.wallet-secondary[open] summary::before{content:'▾'}
.wallet-dialog #wallet-close{min-width:44px;min-height:44px;font-size:24px;line-height:1;color:#eeecf3;padding:6px}
.wallet-dialog .wallet-products button{min-height:58px;font-size:14px;line-height:1.5}
.wallet-dialog .wallet-products button:hover:not(:disabled),.wallet-dialog .wallet-products button:focus-visible{border-color:#dfbf7d;background:#262333}
.social-back,.back-btn{width:fit-content;min-height:44px;display:inline-flex;align-items:center}
.hint{overflow-wrap:anywhere}
.likert-options{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
.likert-option{display:flex;flex-direction:column;justify-content:center;gap:8px;min-height:88px;margin:0;padding:10px 4px;border:1px solid #ffffff18;font-size:13px;text-align:center;line-height:1.5}
.likert-option:has(input:checked){border-color:#dfbf7d;background:#a88cdf22}
.likert-option input[type=radio]{width:18px;height:18px;min-height:18px;margin:0;padding:0;flex:0 0 18px}
@media(max-width:760px){
  .topbar{padding:14px 0 12px;gap:10px;min-height:0}
  .topbar .brand-avatar{width:32px;height:32px}
  .topbar .brand.small strong{font-size:14px}
  .topbar .brand.small small{font-size:9px}
  .userbox{justify-content:flex-start;gap:8px}
  .userbox button,.userbox .admin-entry{min-height:44px;padding:8px 12px;font-size:12px}
  .userbox button span{font-size:12px}
  .userbox #logout{margin-left:auto;min-width:44px}
  .userbox #logout span{display:inline}
  .home-hero{grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);grid-template-rows:auto auto;gap:12px 6px}
  .home-hero>.hero-copy{grid-column:1/-1;grid-row:1;padding:0}
  .hero-copy h1{font-size:clamp(22px,6vw,28px);line-height:1.5;margin:8px 0 2px;text-align:center}
  .hero-copy h1 em{display:block;white-space:nowrap}
  .home-hero>.wallet-home{grid-column:1;grid-row:2;align-self:center;width:100%;aspect-ratio:auto;min-height:0;margin:0;padding:14px 10px;gap:6px;border-radius:14px}
  .wallet-home h2{font-size:17px;line-height:1.4}
  .wallet-home .eyebrow{font-size:8px;letter-spacing:.12em}
  .wallet-home #wallet-home-status{font-size:12px;line-height:1.5;color:#c0c5d9}
  .wallet-home .wallet-actions{display:grid;grid-template-columns:1fr;gap:7px;width:100%;margin-top:6px}
  .wallet-home .wallet-actions button{min-height:40px;padding:8px 5px;font-size:12px;width:100%}
  .home-hero>.hero-stage{grid-column:2;grid-row:2;min-height:190px;height:100%;width:100%;justify-content:center;overflow:hidden}
  .hero-stage .hero-cat-touch{position:relative;inset:auto;transform:none;width:100%;max-width:190px;margin:0}
  .hero-stage .hero-mascot{width:100%;height:auto}
  .hero-stage .host-note{display:none}
  .hero-stage .orbit-ring{width:100%;height:auto;aspect-ratio:1;left:0;top:50%;transform:translateY(-50%)}
  .explore-section{margin-top:24px}
  .explore-section .section-heading h2{font-size:23px}
  .pick-desc{font-size:13px;line-height:1.6}
  .pick-bottom{font-size:11px;line-height:1.5}
  .page-intro{margin:18px 0 22px}
  .page-intro h1{line-height:1.4}
  .page-intro>p:last-child,.card .hint,.wallet-dialog .hint{font-size:13px;line-height:1.7}
  label{font-size:14px;line-height:1.5}
  input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea{font-size:16px;min-height:44px}
  .wallet-dialog[open]{inset:0;transform:none;margin:0;width:100%;max-width:100vw;height:100dvh;max-height:100dvh;border:0;border-radius:0;padding:max(12px,env(safe-area-inset-top)) 16px max(20px,env(safe-area-inset-bottom));}
  .wallet-dialog .dialog-header{position:sticky;top:-12px;z-index:2;background:#10121f;padding:10px 0;border-bottom:1px solid #303344}
  .wallet-dialog h2{font-size:22px}
  .wallet-balances{gap:8px}
  .wallet-balance{padding:12px 9px}
  .wallet-balance span{font-size:13px}
  .wallet-balance small{font-size:12px;line-height:1.5}
  .wallet-balance strong{font-size:27px;margin:5px 0}
  .wallet-zodiac-profile{font-size:14px}
  .companion-dock{position:relative;inset:auto;margin:12px 20px 12px auto;z-index:5}
  body.host-docked #app{padding-bottom:0}
  .companion-bubble{max-width:calc(100vw - 40px)}
  fieldset.quiz-q{padding:14px 10px}
}
@media(max-width:480px){
  .spread-grid{grid-template-columns:1fr}
  .spread-item{padding:16px;text-align:left}
  .spread-item .name{font-size:16px}
  .spread-item .desc{font-size:13px;line-height:1.7;min-height:0}
  .spread-item .pos{font-size:12px;line-height:1.6}
  .bottle-ocean{height:110px;min-height:0}
  .likert-option{font-size:12px}
}
@media(max-width:350px){.likert-options{grid-template-columns:1fr}.likert-option{flex-direction:row;justify-content:flex-start;min-height:44px;padding:10px}}
