/* Mobile decision hierarchy, September 2026. Loaded after the established theme. */
.account-auth-switch,.tw-hub-shortcuts,.tw-hub-return,.lb-compact{display:none}
.tw-objectives-panel>summary{cursor:pointer;list-style:none;min-height:44px;margin:0}
.tw-objectives-panel>summary:after{content:'+';color:var(--gold,#e9ad3d);font-size:1.2rem}
.tw-objectives-panel[open]>summary:after{content:'−'}
.tw-objectives-panel>summary::-webkit-details-marker{display:none}
.tw-objectives-panel>summary strong{display:block;font-size:1.05rem;margin-top:4px}
.tw-player-approval.pending{color:#ffd26a}.tw-player-approval.approved{color:#7fe0a8}
.tw-approval-status{margin:0;padding:10px 12px;border-left:3px solid #aab2bd;background:#10151c;font-weight:750;font-size:.87rem}
.tw-approval-status.ready{border-color:#e9ad3d;color:#ffda8b}
.tw-agent-dialogue #meetAgent{width:100%;min-height:46px}
.tw-selected-asset>.tw-row-actions{flex-wrap:wrap;justify-content:flex-end}
.season-breakdown{margin-top:12px;border-top:1px solid rgba(255,255,255,.14)}
.season-breakdown>summary{padding:12px 4px;min-height:44px;cursor:pointer;font-weight:750;color:#e9c572}
.season-comparison{margin-bottom:12px}.season-comparison>summary{padding:10px 4px;min-height:44px;cursor:pointer;font-size:.85rem;color:#e9c572}
.ff-forge-five .overall-badge small{font-size:.54rem}
.ff-forge-five .overall-badge small:after{content:none}
.lb-pagination{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:12px}
.lb-pagination button{min-height:44px;padding:9px 13px;border:1px solid var(--lb-line);border-radius:4px;background:#121922;color:var(--lb-cream);font:inherit;font-size:.8rem;cursor:pointer}
.lb-pagination button:disabled{opacity:.4;cursor:default}
.lb-pagination>span{font-size:.75rem;color:var(--lb-copy);text-align:center}
.lb-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

@media(max-width:720px){
  /* No fixed navigation: actions stay in the normal page flow. */
  .ff-home .top-actions .btn,.ff-home .platform-nav a,.ff-forge-five .top-actions .btn,.lb-nav a,.lb-button{min-height:44px}
  .ff-home .platform-nav,.lb-nav{display:flex;flex-wrap:wrap;gap:3px;margin:7px 0}
  .ff-home .platform-nav a,.lb-nav a{flex:1 0 auto;padding:10px 8px;text-align:center;font-size:.72rem}
  .ff-home .home-hero{padding:17px 14px;min-height:0}
  .ff-home .home-hero h1{font-size:clamp(1.9rem,8.3vw,2.7rem);line-height:1.08;margin:0 0 10px}
  .ff-home .home-hero-copy>.eyebrow,.ff-home .home-hero-actions{display:none}
  .ff-home .home-hero p{font-size:.84rem;line-height:1.45;max-width:36rem}
  .ff-home .home-hero-copy>.ff-community-links{margin-top:10px;gap:7px}
  .ff-home .home-hero .ff-community-link{width:44px;min-height:44px;padding:8px;flex:none}
  .ff-home .home-hero .ff-community-link-text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .ff-home .game-modes{padding-top:14px}
  .ff-home .section-head{margin:0 0 10px}.ff-home .section-head p{display:none}
  .ff-home .mode-card{grid-template-columns:72px minmax(0,1fr);grid-template-rows:auto;min-height:0;padding:0}
  .ff-home .mode-visual{min-height:0;border-bottom:0;border-right:1px solid rgba(233,173,61,.28)}
  .ff-home .mode-monogram{font-size:2.2rem;min-width:0;width:100%;padding:0;letter-spacing:-.065em;text-indent:0}
  .ff-home .mode-copy{min-height:0;padding:12px;display:grid;gap:7px}
  .ff-home .mode-card .status{justify-self:start;margin:0;font-size:.57rem}
  .ff-home .mode-card h3{margin:0;font-size:1.3rem;line-height:1.15}
  .ff-home .mode-card p{font-size:.8rem;line-height:1.45}
  .ff-home .mode-action{min-height:44px;margin:0;font-size:.8rem}
  .ff-forge-five.forge-five-active .quick-how{display:block;margin:5px 0 9px}
  .ff-forge-five .quick-how summary{min-height:44px}
  .ff-forge-five .result-actions{display:flex;flex-wrap:wrap;gap:8px}
  .ff-forge-five .result-actions .btn{flex:1 1 140px;min-height:44px}
  .tw-hub-shortcuts{display:flex;gap:5px;grid-column:1/-1}
  .tw-hub-shortcuts button{flex:1;min-height:44px;padding:7px 5px;font:inherit;font-size:.76rem;font-weight:750;border:1px solid #53503f;border-radius:4px;background:#121820;color:#efd395;cursor:pointer}
  .tw-hub-return{display:inline-flex;min-height:44px;margin-bottom:10px}
  .tw-coach-panel{padding:10px 12px}
  .tw-coach-panel .tw-section-heading{margin-bottom:5px}
  .tw-coach-panel h2{font-size:.96rem}.tw-coach-steps{display:none}
  .tw-coach-panel p{font-size:.8rem;margin:5px 0 8px;line-height:1.4}
  .tw-objectives-panel{padding:10px 12px}
  .tw-objectives-panel #scenarioName{font-size:.95rem}
  .tw-player-list{max-height:360px}
  .tw-mini-button{min-height:44px}
  .tw-selected-asset{align-items:start;gap:8px}
  .tw-selected-asset>div:first-child{flex:1;min-width:0}
  .tw-selected-asset>.tw-row-actions{max-width:132px}
  .tw-player-approval{line-height:1.45}
  .tw-agent-overlay{padding:8px;padding-bottom:max(8px,env(safe-area-inset-bottom))}
  .tw-agent-dialogue{max-height:calc(100dvh - 16px);overflow:auto;gap:9px;padding:12px}
  .tw-agent-scene{min-height:0}.tw-agent-conversation{height:auto;max-height:24dvh;min-height:100px}
  .tw-agent-character{min-height:0}
  .tw-approval-status{font-size:.8rem;padding:8px 10px}
  .tw-agent-responses button{min-height:44px}
  .lb-hero{padding:16px}.lb-hero h1{font-size:2rem;line-height:1.02}
  .lb-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}
  .lb-tabs button{padding:7px 4px;text-align:center;line-height:1.35}
  #leaderboardBoard>.lb-table-wrap{display:none}
  .lb-compact{display:grid;border-top:1px solid var(--lb-line)}
  .lb-entry{border-bottom:1px solid var(--lb-line);background:#0b1016}
  .lb-entry>summary{list-style:none;display:grid;grid-template-columns:28px minmax(0,1fr) auto 18px;align-items:center;gap:7px;min-height:52px;padding:8px 6px;cursor:pointer}
  .lb-entry>summary::-webkit-details-marker{display:none}
  .lb-entry>summary strong{font-size:.85rem;overflow-wrap:anywhere}
  .lb-entry>summary b{font-size:.88rem;color:var(--lb-gold-hi)}
  .lb-rank{color:var(--lb-muted);font-size:.8rem}
  .lb-expand{color:var(--lb-gold);font-size:1.2rem;text-align:center}
  .lb-entry[open] .lb-expand{transform:rotate(45deg)}
  .lb-entry dl{display:grid;grid-template-columns:auto minmax(0,1fr);gap:9px;margin:0;padding:5px 12px 14px 41px;font-size:.8rem}
  .lb-entry dt{color:var(--lb-muted)}.lb-entry dd{margin:0;text-align:right;overflow-wrap:anywhere}
}
@media(max-width:620px){
  .ff-account .hero{padding:16px 0 7px}.ff-account .hero h1{font-size:2rem;line-height:1.05}
  .ff-account .hero .eyebrow{display:none}
  .ff-account .top-actions .btn{min-height:44px}
  .account-auth-switch{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:10px 0}
  .account-auth-switch button{min-height:44px;border:1px solid var(--line);border-radius:4px;background:#121922;color:var(--text);font:inherit;font-size:.85rem;font-weight:800;cursor:pointer}
  .account-auth-switch [aria-pressed=true]{border-color:var(--gold);color:#ffd26a;background:#241d10}
  .account-auth-choice[data-auth-active=signin] [data-auth-mode=signup],.account-auth-choice[data-auth-active=signup] [data-auth-mode=signin]{display:none}
  .account-auth-choice form{gap:10px}.account-auth-choice form h3{display:none}
  .account-auth-choice input{font-size:16px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}}

/* iPhone feedback: use space for content, not stretched decoration. */
.tw-objectives-panel>summary>div{min-width:0;flex:1}
.tw-objectives-panel>summary{align-items:center}
.tw-objectives-panel>summary>div strong{display:block;margin-top:4px}
.tw-feed-offer .tw-mini-button{margin-right:8px}
#incomingOfferInbox{max-height:none;overflow:visible}
@media(max-width:720px){
  .ff-home .mode-card{grid-template-columns:58px minmax(0,1fr)}
  .ff-home .mode-visual{align-self:center;height:64px;min-height:64px;border:0;background:none}
  .ff-home .mode-visual:before,.ff-home .mode-visual:after{display:none}
  .ff-home .mode-copy{gap:5px;padding:12px 12px 12px 4px}
  .ff-home .mode-monogram{font-size:1.9rem;line-height:1.1;letter-spacing:-.07em}
  .tw-filterbar{grid-template-columns:minmax(0,1fr) minmax(126px,.65fr)}
  .tw-filterbar label,.tw-section-heading>div{min-width:0}
  .tw-filterbar input,.tw-filterbar select{min-width:0;font-size:16px;padding:10px 8px}
  .tw-objectives-panel>.tw-muted{margin:10px 0}
  .tw-objective{grid-template-columns:1fr;gap:5px}
  .tw-objective small{grid-column:1;margin-top:0}
  .tw-agent-dialogue{max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain;padding-bottom:max(14px,env(safe-area-inset-bottom))}
  .tw-agent-responses{grid-template-columns:1fr 1fr}
}
