/* Phone readability floor for the menu screens: labels at least 10px, sentences at least 11px.
   Small buttons get a larger invisible tap area (about 44px) without changing how they look. */

/* Fighters */
#collection-view .eyebrow,#collection-view .collection-info .eyebrow{font-size:10px;letter-spacing:.4px}
#collection-view .collection-card .tile-number{display:none}
#collection-view .collection-stage .squad-toggle{font-size:10px}
#collection-view .collection-info p{font-size:11px;line-height:1.35}
#collection-view .stat-row span,dialog .stat-row span{font-size:10px}

/* Rewards */

/* Shop */
#shop-view .shop-section-note{font-size:11px}
#shop-view .gem-pack h3>small,#shop-view .gem-pack-badge,#shop-view .fighter-shop-wallet,#shop-view .trail-action{font-size:10px}

/* Dialogs (settings, fighter details, match details) */
dialog .eyebrow{font-size:10px}

/* Larger tap areas */
.home-wallet .wallet-add,#home-settings,.shop-view .wallet-add,#collection-view button[aria-label^="Favorite "],#collection-view button[aria-label^="Unfavorite "],#collection-view .squad-toggle,#profile-view button[aria-label="Customize profile"],#profile-view button[aria-label="Copy device profile ID"]{position:relative}
.home-wallet .wallet-add:after,#home-settings:after,.shop-view .wallet-add:after,#collection-view button[aria-label^="Favorite "]:after,#collection-view button[aria-label^="Unfavorite "]:after,#profile-view button[aria-label="Customize profile"]:after,#profile-view button[aria-label="Copy device profile ID"]:after{content:'';position:absolute;inset:-10px}
#collection-view .squad-toggle:after{content:'';position:absolute;inset:-8px -4px}

/* Stragglers that more specific older rules were holding below the floor. */
#collection-view .collection-heading .eyebrow{font-size:10px}
#shop-view .fighter-shop .shop-section-heading p{font-size:11px}
#shop-view .trail-shop-item .trail-action.is-locked{font-size:10px}

/* Fighter details: the real numbers behind the bars. */
dialog .detail-numbers{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:12px 0 10px}
dialog .detail-numbers span{display:grid;justify-items:center;gap:2px;padding:8px 4px;border-radius:10px;background:#0b1a3acc;border:1px solid #d9b25a66}
dialog .detail-numbers strong{font:400 22px/1 'Lilita One',sans-serif;color:#ffe7a1;font-variant-numeric:tabular-nums}
dialog .detail-numbers small{white-space:nowrap;font-size:10px;font-weight:800;letter-spacing:.8px;color:#b9cbef}

/* Settings in the royal style: gold-framed blue panel, a real sound switch and big stat numbers. */
#info-dialog.settings-mode{width:min(360px,calc(100vw - 32px));padding:34px 20px 20px;overflow:visible;background:linear-gradient(180deg,#2f5fbf,#1c3f8f 55%,#142f6e);border:3px solid #ffd76a;box-shadow:0 0 0 3px #0b1631,0 0 0 5px #c9922d,0 20px 60px #000c}
#info-dialog.settings-mode>.dialog-close{color:#e8eefc}
.settings-panel{display:grid;gap:14px}
.settings-crown{position:absolute;top:-28px;left:50%;width:56px;height:45px;transform:translateX(-50%);filter:drop-shadow(0 3px 0 #6b3508) drop-shadow(0 4px 6px #0008)}
.settings-panel h2{margin:0;text-align:center;font:400 34px/1 'Lilita One','Arial Black',sans-serif;letter-spacing:1px;color:#fff1d0;-webkit-text-stroke:2px #753414;paint-order:stroke fill;text-shadow:0 2px 0 #b9661c,0 4px 0 #74300f}
.settings-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-radius:12px;background:#0b1631bb;border:1px solid #d9b25a66}
.settings-row span{display:grid;gap:2px}
.settings-row strong{font:400 18px 'Lilita One',sans-serif;color:#fff1d0;letter-spacing:.3px}
.settings-row small{font-size:12px;color:#b9cbef;font-weight:700}
.settings-switch{position:relative;flex:none;width:62px;height:34px;border-radius:999px;border:2px solid #0b1631;background:#3a4a72;box-shadow:inset 0 2px 4px #0008;cursor:pointer;transition:background .2s}
.settings-switch i{position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:50%;background:linear-gradient(180deg,#fff,#cfd8ea);box-shadow:0 2px 3px #0008;transition:transform .2s}
.settings-switch[aria-checked="true"]{background:linear-gradient(180deg,#63d77d,#28a55b)}
.settings-switch[aria-checked="true"] i{transform:translateX(28px)}
.settings-switch:focus-visible{outline:3px solid #fff;outline-offset:3px}
.settings-volumes{display:grid;gap:8px;transition:opacity .2s}
.settings-volumes[data-muted]{opacity:.45}
.settings-volume strong{flex:none;width:118px}
.settings-volume input{flex:1;min-width:0;height:34px;margin:0;background:none;-webkit-appearance:none;appearance:none;cursor:pointer}
.settings-volume input::-webkit-slider-runnable-track{height:10px;border-radius:999px;border:2px solid #0b1631;background:linear-gradient(90deg,#f2c14e var(--fill),#3a4a72 var(--fill));box-shadow:inset 0 2px 3px #0006}
.settings-volume input::-moz-range-track{height:10px;border-radius:999px;border:2px solid #0b1631;background:linear-gradient(90deg,#f2c14e var(--fill),#3a4a72 var(--fill))}
.settings-volume input::-webkit-slider-thumb{-webkit-appearance:none;width:26px;height:26px;margin-top:-10px;border-radius:50%;border:2px solid #0b1631;background:linear-gradient(180deg,#fff,#cfd8ea);box-shadow:0 2px 3px #0008}
.settings-volume input::-moz-range-thumb{width:22px;height:22px;border-radius:50%;border:2px solid #0b1631;background:linear-gradient(180deg,#fff,#cfd8ea);box-shadow:0 2px 3px #0008}
.settings-volume input:focus-visible{outline:3px solid #fff;outline-offset:3px;border-radius:999px}
.settings-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.settings-stats span{display:grid;justify-items:center;gap:3px;padding:12px 6px;border-radius:12px;background:#0b1631bb;border:1px solid #d9b25a66}
.settings-stats strong{font:400 32px/1 'Lilita One',sans-serif;color:#ffe7a1;font-variant-numeric:tabular-nums}
.settings-stats small{font-size:10px;font-weight:800;letter-spacing:.8px;color:#b9cbef}
.settings-guide-button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;border-radius:14px;border:2px solid #fff6b0;background:linear-gradient(180deg,#fff39a,#ffcf1f 45%,#ffad00);box-shadow:0 0 0 2px #c06f05,0 4px 0 2px #6b3508;font:400 20px 'Lilita One',sans-serif;letter-spacing:.8px;color:#fff1d0;-webkit-text-stroke:1.5px #753414;paint-order:stroke fill;cursor:pointer}
.settings-guide-button svg{width:20px;height:20px;color:#753414}
.settings-guide-button:active{transform:translateY(3px)}
.reduce-motion .settings-switch,.reduce-motion .settings-switch i{transition:none}
#shop-view .trails-market .shop-section-note{font-size:11px}

/* Settings sections: account, redeem code, game switches, help, legal. The list scrolls inside the panel on short
   phones, under the fixed title. */
.settings-scroll{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;max-height:min(calc(100dvh - 150px),560px);overflow:hidden auto;overscroll-behavior:contain;padding:2px 6px 4px 2px;margin:0 -6px 0 -2px;scrollbar-width:thin;scrollbar-color:#ffd76a transparent}
.settings-scroll::-webkit-scrollbar{width:5px}.settings-scroll::-webkit-scrollbar-thumb{border-radius:3px;background:#ffd76a}
.settings-heading{margin:6px 2px 0;font:400 13px/1 'Lilita One',sans-serif;letter-spacing:1px;color:#9fc3ff}
.settings-code{font:400 16px 'Lilita One',sans-serif!important;color:#ffd75a!important;letter-spacing:.6px}
.settings-small-button{min-height:40px;padding:0 14px;border-radius:12px;border:2px solid #0b1631;background:linear-gradient(180deg,#ffe07a,#f2b631);color:#5a2a06;font:400 15px 'Lilita One',sans-serif;letter-spacing:.5px;box-shadow:0 3px 0 #9a5a12}
.settings-small-button:active{transform:translateY(2px);box-shadow:0 1px 0 #9a5a12}
.settings-small-button:disabled{filter:grayscale(.6);opacity:.7}
.settings-redeem{display:flex;gap:8px}
.settings-redeem input{flex:1;min-width:0;min-height:40px;padding:0 12px;border-radius:12px;border:2px solid #0b1631;background:#0b1631cc;color:#fff;font:400 16px 'Lilita One',sans-serif;letter-spacing:1px;text-transform:uppercase}
.settings-redeem input::placeholder{color:#7d93c8}
.settings-link-button{display:flex;align-items:center;justify-content:center;min-height:44px;border-radius:14px;border:2px solid #8fc4ff88;background:#0b1631aa;color:#e8eefc;font:400 16px 'Lilita One',sans-serif;letter-spacing:.6px;text-decoration:none}
.settings-legal{display:flex;justify-content:center;gap:16px}
.settings-legal button{min-height:36px;background:none;border:0;color:#9fc3ff;font-size:13px;font-weight:800;text-decoration:underline}
.settings-version{margin:0;text-align:center;font-size:11px;font-weight:700;color:#7d93c8}
.legal-text{color:#e8eefc;font-size:14px;line-height:1.5;text-align:left}
.settings-panel .legal-text :is(h1,h2){margin:10px 0 4px;text-align:left;font:400 20px/1.2 'Lilita One',sans-serif;letter-spacing:.3px;color:#fff1d0;-webkit-text-stroke:0;text-shadow:none}
.legal-text .draft{padding:8px 10px;border-radius:10px;background:#5a3a0855;border:1px solid #f2b63155;color:#ffe1a0;font-size:12px}
.legal-text p,.legal-text ul{margin:0 0 8px}
.legal-panel{padding-top:16px}
.settings-redeem-error{margin:-4px 2px 0;font-size:13px;font-weight:800;color:#ff8f8f}
