/* Application mobile : interface compacte, commandes tactiles et barre persistante. */
:root{--app-width:520px;--bottom-bar:78px}html{background:#e8e9e2;scroll-padding-top:82px}body{min-height:100dvh;overscroll-behavior-y:contain;background:#e8e9e2}.shell{max-width:var(--app-width)!important;min-height:100dvh;background:var(--paper);padding:0 24px calc(var(--bottom-bar) + env(safe-area-inset-bottom) + 24px);box-shadow:0 0 0 1px #263c3408}.masthead{position:sticky;top:0;z-index:2;padding:16px 0 14px;background:var(--paper);border-bottom:1px solid var(--line);min-height:80px}.brand{gap:8px;font-size:24px}.brand-mark{font-size:46px;width:44px}.brand-caption{font-size:6px;letter-spacing:1px}.header-actions{gap:12px}.header-actions .text-link{font-size:11px}.header-actions .icon-button{width:44px;height:44px;border:0;background:#e9ecdf}.header-actions #help-button{display:none}.masthead .brand-mark>span{font-size:16px}.app-nav{position:fixed;z-index:3;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:var(--app-width);display:grid;grid-template-columns:repeat(3,1fr);padding:9px 16px calc(8px + env(safe-area-inset-bottom));background:#fffef9;border-top:1px solid var(--line);box-shadow:0 -4px 18px #263c3405}.app-nav button{min-height:54px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:var(--muted);border-radius:9px;font-size:10px;font-weight:500}.app-nav svg{width:23px;height:23px}.app-nav button[aria-current=page]{color:var(--green);background:var(--green-light);font-weight:700}.app-nav button:hover{color:var(--green)}#main,#aux-view{max-width:none!important;margin:0!important}h1{font-family:var(--serif)}.setup-intro{display:block;padding:29px 0 22px;margin:0}.setup-intro h1{font-size:52px!important;letter-spacing:-1.5px;line-height:1.04;margin:10px 0 9px}.setup-intro p{font-size:13px;line-height:1.6;color:var(--muted)}.setup-intro .eyebrow{font-size:9px;letter-spacing:1.2px}.setup-form{padding:0;border:0;border-radius:0;background:transparent}.setup-progress{display:flex;gap:5px;margin:0 0 21px}.setup-progress span{height:3px;width:50%;background:var(--line);border-radius:2px}.setup-progress span.active{background:var(--green)}.section-heading{margin-bottom:19px}.section-heading h2{font-size:29px}.game-label{border:0;padding:0;font-size:9px;letter-spacing:1px}.team-inputs{gap:9px;grid-template-columns:minmax(0,1fr) 20px minmax(0,1fr)}.team-inputs input{font-size:23px;padding:7px 0 9px}.team-tag{font-size:9px}.player-fields{margin:20px 0 15px;gap:14px}.player-fields legend{display:none}.player-fields label>span{font-size:10px;margin-bottom:5px}.player-fields input{background:var(--surface);font-size:16px;padding:11px 10px;min-height:46px;border-radius:7px}.dealer-select>span{font-size:12px}.dealer-select select{font-size:16px;background:var(--surface);min-height:48px;border-radius:7px}.table-order{font-size:10px;margin-top:9px;margin-bottom:22px;line-height:1.8}.primary{min-height:54px;border-radius:8px;font-size:15px;font-weight:600}.primary:active{transform:scale(.99)}.local-note{font-size:10px;margin-top:16px;line-height:1.6}.rule-row{margin-top:8px}.rule-row h3{font-size:16px}.rule-row p{font-size:12px}.target-field{margin-top:28px;padding-top:22px}.target-field legend{font-size:13px}.target-options label>span{padding:14px 3px;font-size:14px;border-radius:6px}.target-options small{font-size:9px}.match-mode span{padding:13px 5px;border-radius:7px}.setup-recap{margin-top:26px;padding:16px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.setup-recap>span{display:block;font-size:10px;color:var(--muted);margin-bottom:6px}.setup-recap strong{font-size:13px;font-weight:500;overflow-wrap:anywhere}.setup-back{min-height:48px;width:100%;font-size:12px;color:var(--muted);margin-top:5px}.game-heading{margin-top:25px!important;align-items:center}.game-heading h1{font-size:43px;line-height:1.1;letter-spacing:-1px;margin-top:8px}.game-heading .text-link{font-size:10px}.game-heading .eyebrow{font-size:8px}.game-meta{margin:18px 0 12px;font-size:11px}.scoreboard{border-radius:13px}.scoreboard-top{padding:14px 18px;font-size:8px}.scoreboard-top>span:last-child{font-size:10px}.scores{padding:22px 0 19px}.score-column{padding:0 21px}.score-column h2{font-size:14px}.big-score{font-size:84px;line-height:1.12;margin-top:11px}.big-score.score-long{font-size:55px;min-height:94px;display:flex;align-items:center;justify-content:center}.remaining{font-size:10px}.scoreboard-bottom{font-size:11px;padding:13px 17px;line-height:1.6}.dealer-bar{padding:17px 0 15px}.dealer-bar strong{font-size:21px;margin-top:6px}.dealer-bar .eyebrow{font-size:8px}.dealer-team{font-size:11px;display:inline-block;margin-left:8px}.dealer-bar .text-link{font-size:11px}.add-round{min-height:56px;border-radius:8px;background:var(--green);color:var(--surface);margin-top:16px!important}.add-round:hover{background:#193f34}.key-hint{border-color:#fff5}.history{margin-top:29px}.history .section-heading h2{font-size:26px}.history-labels,.history-row{grid-template-columns:minmax(0,1fr) 58px 58px 34px;gap:3px}.history-labels{font-size:9px}.round-description{gap:9px}.round-description strong{font-size:12px}.round-description>div>span{font-size:9px;line-height:1.6}.round-number{font-size:22px}.round-score{font-size:19px}.edit-round{min-width:34px;width:34px;min-height:44px}.empty-history{gap:18px;padding:20px 0}.empty-history p{font-size:11px}.empty-suit{font-size:48px}.save-note{font-size:9px;margin-top:16px;gap:5px}.save-note .text-link{font-size:9px}.offline-status{font-size:9px;margin-top:18px}.footer{display:none}.toast{bottom:calc(var(--bottom-bar) + env(safe-area-inset-bottom) + 12px);max-width:min(440px,calc(100% - 32px));font-size:12px;line-height:1.5;text-align:center}.sheet,.help-dialog{max-width:480px;background:var(--paper)}.sheet{padding-top:18px}.sheet h2,.help-dialog h2{font-size:36px}.sheet fieldset{margin-top:21px}.sheet legend{font-size:13px}.segments button{min-height:49px;border-radius:7px;background:var(--surface);font-size:14px}.point-inputs input{height:78px;font-size:48px;border-radius:8px;background:var(--surface)}.point-inputs label>span{font-size:13px}.point-inputs label>small{font-size:9px}.point-inputs{gap:10px;grid-template-columns:minmax(0,1fr) 15px minmax(0,1fr)}.point-inputs input:focus{outline:2px solid var(--green);outline-offset:1px}.point-divider{font-size:27px}.hint{line-height:1.7}.sheet-actions{padding-bottom:5px}.round-preview strong{font-size:16px}.round-dealer{font-size:11px}.help-dialog{border-radius:18px}.preference-row{display:flex;justify-content:space-between;align-items:center;min-height:56px;width:100%;font-size:14px;border-bottom:1px solid var(--line);text-align:left;padding:12px 0;gap:10px}.preference-row span{font-size:20px;color:var(--green)}.preferences-dialog h2{margin-bottom:15px}.app-guide{padding-top:32px}.app-guide>.eyebrow{font-size:9px}.app-guide h2{font-size:39px;line-height:1.08;margin:12px 0 23px;letter-spacing:-.6px}.app-guide p,.app-guide dd{font-size:13px;line-height:1.85;color:var(--muted)}.app-guide dt{font-size:14px;font-weight:650;margin-top:24px}.app-guide dd{margin:7px 0 0}.app-guide .fine-print{font-size:10px;border-top:1px solid var(--line);padding-top:17px;margin-top:20px}.support-screen{padding-top:32px;text-align:center}.support-screen>.eyebrow{font-size:9px;letter-spacing:1.2px}.support-emblem{width:88px;height:88px;border-radius:50%;background:#eee2d4;color:var(--brick);display:grid;place-items:center;margin:30px auto 23px}.support-emblem svg{width:39px;height:39px;stroke-width:1.3}.support-screen h1{font-size:43px;line-height:1.08;letter-spacing:-.8px;margin-bottom:20px}.support-screen>p{font-size:13px;line-height:1.85;color:var(--muted);max-width:360px;margin:0 auto}.support-message{margin:28px 0 26px;padding:23px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.support-message>strong{font-size:15px;font-weight:600}.support-message p{font-size:12px;line-height:1.8;color:var(--muted);margin:10px 0 0}.support-message .support-soon{margin-top:16px;color:var(--brick);font-size:11px}.support-message .primary{margin-top:18px;text-decoration:none}.support-screen>.local-note{font-size:10px;margin-top:15px}.winner-actions{flex-direction:column}.sheet::backdrop,.help-dialog::backdrop{background:#142e2670;backdrop-filter:blur(3px)}
@media(max-width:600px){html,body{background:var(--paper)}.shell{padding-left:22px;padding-right:22px}.masthead{min-height:76px;padding-top:max(13px,env(safe-area-inset-top));padding-bottom:12px}.brand-caption{font-size:6px;letter-spacing:.8px}.brand{font-size:23px}.brand-mark{font-size:43px;width:41px}.sheet{max-width:var(--app-width);left:50%;transform:translateX(-50%);border-radius:22px 22px 0 0;padding:17px 22px max(20px,env(safe-area-inset-bottom));max-height:94dvh}.help-dialog{padding:23px 22px;max-height:90dvh}.score-column{padding:0 18px}.big-score{font-size:78px}.big-score.score-long{min-height:87px}.setup-intro{padding-top:27px}.table-order{font-size:9px}.setup-intro h1{font-size:50px!important}}
@media(max-width:359px){.shell{padding-left:17px;padding-right:17px}.brand{font-size:20px}.brand-mark{font-size:39px;width:36px}.brand-caption{font-size:5px;letter-spacing:.65px}.header-actions{gap:8px}.header-actions .text-link{font-size:10px}.setup-intro h1{font-size:46px!important}.big-score{font-size:65px}.big-score.score-long{font-size:44px;min-height:73px}.score-column{padding:0 13px}.support-screen h1{font-size:37px}.history-labels,.history-row{grid-template-columns:minmax(0,1fr) 48px 48px 31px}.round-score{font-size:17px}.sheet{padding-left:18px;padding-right:18px}}
@media(display-mode:standalone){.masthead{padding-top:max(14px,env(safe-area-inset-top))}#install-button{display:none}.shell{padding-top:0}.app-nav{padding-bottom:max(12px,env(safe-area-inset-bottom))}}
