/* BUT IT'S MATH — ARCADE EN PAYSAGE (js/arcade.js, PAYSAGE) : scène 1280×720 (#stage.land) pendant un jeu qui déclare
   orientation: 'landscape' (DOWNBEAT, VECTOR SQUAD). Fin de partie, PAUSE, CONTINUE, HOW IT WORKS, RULES & MATH, boutique :
   mises en page larges et basses. Cibles ≥ 92 px de scène (≈ 50 px CSS sur un téléphone de 390 px de haut). */
#stage.land { width: 1280px; height: 720px; margin: -360px 0 0 -640px; }
#stage.land .arroot canvas { width: 1280px; height: 720px; }
#stage.land .packtag.arpack { top: 88px; }
#stage.land .modal-box { max-height: 696px; overflow-y: auto; overscroll-behavior: contain; }

/* voile « tourne ton téléphone » (navigateur en portrait) */
.arrotate { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; background: rgba(3,7,5,.96); color: #e9eee8; font-family: 'Barlow Semi Condensed', system-ui, sans-serif; text-align: center; }
.arrotate.hidden { display: none; }
.arrotbox { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 24px; }
.arrotbox b { font: 900 26px/1.1 Montserrat, sans-serif; color: #ffcf3d; letter-spacing: 1px; }
.arrotbox span { font: 700 18px/1.2 'Barlow Semi Condensed', sans-serif; color: #e9eee8; }
.arrotbox small { font: 600 14px/1.3 'Barlow Semi Condensed', sans-serif; color: #8fa59a; }
.arrotph { width: 64px; height: 104px; border: 4px solid #8ff6ff; border-radius: 12px; position: relative; margin-bottom: 14px; animation: arRot 2.2s ease-in-out infinite; box-shadow: 0 0 24px rgba(143,246,255,.35); }
.arrotph::after { content: ''; position: absolute; left: 50%; bottom: 6px; width: 14px; height: 4px; margin-left: -7px; border-radius: 2px; background: #8ff6ff; }
@keyframes arRot { 0%, 20% { transform: rotate(0); } 55%, 80% { transform: rotate(-90deg); } 100% { transform: rotate(0); } }

/* fin de partie : 2 colonnes */
#stage.land .arendbox { width: 1180px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); grid-auto-rows: min-content; column-gap: 26px; row-gap: 10px; padding: 18px 26px; align-items: center; }
#stage.land .arendbox > * { grid-column: 1; }
#stage.land .arendbox .endmasc { grid-row: 1; height: 120px; margin: 0; }
#stage.land .arendbox h5 { grid-row: 2; }
#stage.land .arendbox h3 { grid-row: 3; font-size: 44px; }
#stage.land .arendbox .arscore { grid-row: 4; }
#stage.land .arendbox .arscore b { font-size: 64px; }
#stage.land .arendbox .arshop { grid-row: 5; height: 84px; }
#stage.land .arendbox .artk { grid-column: 2; grid-row: 1 / span 2; padding: 10px; }
#stage.land .arendbox .artkn b { font-size: 46px; }
#stage.land .arendbox .arstats { grid-column: 2; grid-row: 3 / span 2; }
#stage.land .arendbox .arrow { grid-column: 2; grid-row: 5; height: 92px; margin: 0; }

/* PAUSE : 2 colonnes (SIGMA + titre | boutons) */
#stage.land .arpause .modal-box { width: 980px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; row-gap: 12px; padding: 24px 28px; align-items: center; }
#stage.land .arpause .modal-box > * { grid-column: 1; }
#stage.land .arpause .pausemasc { grid-row: 1; height: 120px; }
#stage.land .arpause .modal-box h5 { grid-row: 2; }
#stage.land .arpause .modal-box h3 { grid-row: 3; }
#stage.land .arpause .modal-box p { grid-row: 4; }
#stage.land .arpause .arphelp { grid-column: 2; grid-row: 1 / span 2; flex-direction: column; }
#stage.land .arpause .arphelp .opt { min-height: 92px; }
#stage.land .arpause #arResume { grid-column: 2; grid-row: 3; }
#stage.land .arpause #arQuit { grid-column: 2; grid-row: 4; }
#stage.land .arpause .modal-box .btn { height: 96px; }

/* CONTINUE? */
#stage.land .arcontbox { width: 760px; padding: 20px 28px; gap: 10px; }

/* HOW IT WORKS, RULES & MATH */
#stage.land .howto .modal-box { width: 1120px; padding: 24px 30px 22px; gap: 12px; max-height: 700px; }
#stage.land .howto li { font-size: 24px; }
#stage.land .howto .hf { padding: 10px; font-size: 30px; }
#stage.land .howto .hbtns .btn { height: 92px; }
#stage.land .rulespage .modal-box { width: 1160px; max-height: 704px; }
#stage.land .rulespage .rsecs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#stage.land .rulespage .rsecs > .tqsec { grid-column: 1 / -1; }

/* boutique : feuille centrée, plus basse */
#stage.land .modal.shopsheet { align-items: flex-end; }
#stage.land .shopbox { max-width: 1040px; height: 660px; }

/* =============================== aperçus de techniques (js/help.js, MG.Help.previews) =============================== */
.tqstrip { display: flex; gap: 10px; overflow-x: auto; overscroll-behavior: contain; padding: 2px 2px 8px; scrollbar-width: thin; }
.tqstrip .tqcard { flex: none; width: 236px; }
.tqgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
#stage.land .tqgrid { grid-template-columns: repeat(4, 1fr); }
.tqcard { display: flex; flex-direction: column; gap: 4px; padding: 6px; border-radius: 12px; background: rgba(4,8,6,.7); border: 1px solid rgba(143,246,255,.22); }
.tqcard canvas { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: 8px; display: block; background: #07060f; }
.tqcard b { font: 900 17px/1.1 Montserrat, sans-serif; color: #fff; letter-spacing: .5px; }
.tqcard small { font: 600 15px/1.25 'Barlow Semi Condensed', sans-serif; color: #c9d4cc; }
.tqcard.new b::after { content: ' · NOT USED YET'; font: 800 12px 'Barlow Semi Condensed', sans-serif; color: #8fa59a; letter-spacing: 1px; }
.tqcard.seen { border-color: rgba(255,207,61,.5); }
.tqcard.seen b::after { content: ' ✓'; color: #ffcf3d; }
.tqsec h4 small { margin-left: 8px; font: 700 14px 'Barlow Semi Condensed', sans-serif; letter-spacing: 1px; color: #8fa59a; }
.howto .tqhow { margin: 0; }
.howto .tqhow > small { display: block; font: 800 14px/1 'Barlow Semi Condensed', sans-serif; letter-spacing: 3px; color: #ffcf3d; margin: 2px 0 6px; }

/* NOW PLAYING des bandes-son de boss (js/bosstracks.js, top en ligne) : sous la barre du boss en paysage */
#stage.land .btnow { top: 256px !important; }
/* HOW IT WORKS en paysage : plus compact (le bandeau d'aperçus + la formule + les boutons tiennent sans défiler) */
#stage.land .howto .modal-box { gap: 8px; padding: 18px 28px 18px; }
#stage.land .howto ol { gap: 6px; }
#stage.land .howto li { font-size: 20px; line-height: 1.2; }
#stage.land .howto li::before { width: 34px; height: 34px; font-size: 18px; line-height: 34px; }
#stage.land .howto .hf { padding: 6px 10px; font-size: 24px; }
#stage.land .howto .hf small { margin-top: 2px; font-size: 17px; }
#stage.land .howto .hbtns .btn { height: 76px; }
#stage.land .tqstrip .tqcard { width: 176px; }
.tqstrip .tqcard small { font-size: 12px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* UX3 : PAUSE (carte commune .arcard) en paysage — colonne gauche SIGMA / jeu / statut / score, colonne droite les actions */
#stage.land .arpause .arcard { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto auto auto; }
#stage.land .arpause .arcard > * { grid-column: 1; grid-row: auto; }
#stage.land .arpause .arcard .pausemasc { grid-row: 1; }
#stage.land .arpause .arcard h5 { grid-row: 2; }
#stage.land .arpause .arcard h3 { grid-row: 3; }
#stage.land .arpause .arcard .arpscore { grid-row: 4; }
#stage.land .arpause .arcard p { grid-row: 5; }
#stage.land .arpause .arcard #arResume { grid-column: 2; grid-row: 1 / span 2; height: 120px !important; }
#stage.land .arpause .arcard .arphelp { grid-column: 2; grid-row: 3; flex-direction: row; }
#stage.land .arpause .arcard .arphelp .opt { min-height: 76px; }
#stage.land .arpause .arcard #arQuit { grid-column: 2; grid-row: 4 / span 2; }
#stage.land .arpause .arcard .modal-x, #stage.land .arpause .arcard > button.x { grid-column: 2; }
#stage.land .arpause .arcard > .mx { position: absolute; grid-column: auto; grid-row: auto; top: 14px; left: 14px; right: auto; bottom: auto; }
