/* The phone (html[data-mobile] only): settings. Owner 2026-11-17: "these uis are clearly not tested ... refine every single one of them". Loaded after phone.css (NOTES 680). */

/* ---------- 1. the account cards: the username field ---------- */
/* 16 px (iOS zooms under it) at a finger's height, the text centred */
html[data-mobile] #acct-layer #signin-card #name-claim #claim-input{height:48px;min-height:48px;padding:0 14px;font-size:16px;line-height:1.2}

/* ---------- 2. the account cards' words ---------- */
/* the root is 10 px on a phone, so each element is named in px (never the card: its title plate is em-sized and would grow) */
html[data-mobile] #acct-layer #signin-card #signin-main > p:not(.acct-err):not(.acct-fine){font-size:15px;line-height:1.45}
html[data-mobile] #acct-layer #signin-card #name-claim > p:not(.acct-err):not(.acct-btns){font-size:15px;line-height:1.45}
html[data-mobile] #acct-layer #signin-card #signin-err{font-size:14px;line-height:1.4}
html[data-mobile] #acct-layer #signin-card #claim-err{font-size:14px;line-height:1.4}
html[data-mobile] #acct-layer #signin-card .acct-fine{font-size:13px!important;line-height:1.45}
html[data-mobile] #acct-layer #signin-card .acct-fine .foot-link{font-size:13px}

/* ---------- 3. the close: a 44 px finger inside the card ---------- */
html[data-mobile] #acct-layer #signin-card #btn-signin-close{flex:none;width:44px;height:44px}
html[data-mobile] #acct-layer #signin-card #btn-signin-close svg{width:16px;height:16px}

/* ---------- 4. Claim / Skip: one row, two equal halves ---------- */
html[data-mobile] #acct-layer #signin-card #name-claim .acct-btns{display:flex;flex-wrap:nowrap;gap:12px;justify-content:stretch}
html[data-mobile] #acct-layer #signin-card #name-claim .acct-btns > .btn{flex:1 1 0;min-width:0;min-height:48px}

/* ---------- 5. Settings in portrait: the sheet is only as tall as its rows ---------- */
@media (max-width:700px){
/* 16 px in from each edge, its top under the header, never past the window's foot; a flex column, so the rows scroll inside it when the cap is reached */
html[data-mobile] #settings .sx-plate{left:16px;right:16px;bottom:auto;display:flex;flex-direction:column;max-height:calc(100dvh - (12px + 3.3em + 14px) - 16px - env(safe-area-inset-bottom,0px));min-height:min(22rem,calc(100dvh - (12px + 3.3em + 14px) - 16px - env(safe-area-inset-bottom,0px)))}
/* a pop-up: the outline all round, the drop, every corner (the landscape card's face) */
html[data-mobile] #settings .sx-plate::before{transform:none;border-radius:1.2em;box-shadow:inset 0 0 0 var(--sx-ol) var(--sx-ink),var(--cp-drop)}
html[data-mobile] #settings .sx-plate > .sx-tabs{flex:none}
html[data-mobile] #settings .sx-tab{flex:1 1 auto;padding:0 .3em}
html[data-mobile] #settings .sx-row:is(:has(> .sx-chips),:has(> .sx-sl),:has(> .sx-cyc)) > .sx-lbl:has(.sx-info:not([hidden])){min-height:4.4rem}      /* the label line over wrapped chips is a finger tall, so its (i)'s 44 px never reaches into the chips under it */      /* each tab as wide as its word needs, the rest shared: "Graphics" spilled out of an equal fifth */
html[data-mobile] #settings .sx-plate > .sx-pane{flex:1 1 auto;min-height:0}
html[data-mobile] #settings .sx-rows{flex:1 1 auto;min-height:0;overflow-y:auto}

/* ---------- 6. Codes: the label on its own line, one 48 px field + Redeem under it ---------- */
html[data-mobile] #settings #set-code > .sx-lbl{flex:1 0 100%;width:100%}
html[data-mobile] #settings #set-code > .sx-code-box{flex:1 0 100%;width:100%;justify-content:stretch;gap:12px}
html[data-mobile] #settings #set-code #code-in{flex:1 1 auto;max-width:none;height:48px;min-height:48px;padding:0 14px;font-size:16px;line-height:1.2}
html[data-mobile] #settings #set-code .sx-code-go{flex:none;height:48px;min-height:48px;padding:0 18px;font-size:15px}
html[data-mobile] #settings #set-code .sx-code-msg{flex:1 0 100%;justify-content:flex-start;text-align:left;font-size:14px}
}

/* ---------- 7. Help, Sound, Graphics and Screen: no hairline stub on the card rows, one height and one hairline each ---------- */
html[data-mobile] #settings #grp-help > .sx-row{box-shadow:none}
html[data-mobile] #settings :is(#grp-sound,#grp-graphics,#grp-screen,#grp-hud) > .sx-row{min-height:4.4rem;box-shadow:inset 0 2px 0 var(--sx-line)}
html[data-mobile] #settings :is(#grp-sound,#grp-graphics,#grp-screen,#grp-hud) > .sx-row:is(:first-child,.sx-lead){box-shadow:none}      /* sx-lead (ui.js drawSubs): the first row on show and the first under a group label */
html[data-mobile] #settings .sx-sub{font-size:max(.98em,13px)}

/* the chips (Quality, Camera shake, Move...): a finger's height, upright or on its side */
html[data-mobile] #settings .sx-chip{height:4.4rem}

/* ---------- 8. the small words inside Settings: never under 13 px (the em of the 10 px root) ---------- */
html[data-mobile] #settings #codes-x .sx-xsub{font-size:max(.95em,13px);line-height:1.3}
html[data-mobile] #settings #codes-x .sx-xhandle{font-size:max(1.05em,13px)}
html[data-mobile] #settings .sx-code-msg{font-size:max(.95em,14px)}
html[data-mobile] #settings .sx-note{font-size:max(1.05em,13px)}

/* ---------- 9. a phone on its side (the desktop card, 10 px root): words at 14 px, the code row one 44 px line ---------- */
@media (min-width:701px){
html[data-mobile] #settings .sx-tab b{font-size:14px}
html[data-mobile] #settings .sx-lbl{font-size:14px}
html[data-mobile] #settings #set-code #code-in,html[data-mobile] #settings #set-code .sx-code-go{height:44px;min-height:44px;font-size:16px}
html[data-mobile] #settings #set-code .sx-code-go{font-size:14px;padding:0 16px}
}
/* Claim / Skip: the words sized to their 48 px buttons */
html[data-mobile] #acct-layer #signin-card #name-claim .acct-btns > .btn{font-size:15px;white-space:nowrap;padding-inline:8px}      /* "Skip for now" on one line at 360 px */
