/* Hubert Chips — the one stylesheet.
   Art direction: a French advertisement of the 1960s-70s. Flat warm colours, hard ink outlines, offset shadows, no gradient.
   Chip yellow, paprika red, cream, ink brown. Text is 16 px or more, touch targets 48 px or more, contrast AA, and
   colour never carries a meaning alone (every level, state and choice also has its word).
   Phone first, from 320 x 568: a step fits the screen without scrolling (the audit of tools/dev checks it).

   SUMMARY  1. page and tokens  2. buttons  3. pictures  4. home and lobby  5. briefing  6. play  7. sheets and overlays
            8. end screen  9. reconnect, toast, boot  10. small screens, reduced motion */

/* ==== 1. page and tokens ============================================================================================ */
:root {
  --yellow: #f6c531; --yellow-d: #d9a514;
  --red: #c6392b; --red-d: #9c2a1f;
  --cream: #fbf1d9; --card: #fffaf0; --tile: #f1e8ce;
  --ink: #3a2314; --ink2: #6b4a2f;
  --good: #276b43; --warn: #a34c08;
  --lv5: #3f9b5f; --lv4: #9bb13a; --lv3: #f0b429; --lv2: #e07b1f; --lv1: #c6392b;
  --head: "Avenir Next Condensed", "Arial Narrow", "Helvetica Neue", system-ui, sans-serif;
  --gap: 10px;
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--cream); color: var(--ink); overscroll-behavior: none; }
body { font: 16px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
#app { height: 100vh; height: 100dvh; max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; position: relative; overflow: hidden; }
h1, h2, h3 { font-family: var(--head); font-weight: 900; margin: 0; line-height: 1.05; letter-spacing: .01em; }
h2 { font-size: 26px; } h3 { font-size: 20px; }
h2 small { font-size: 16px; font-weight: 700; color: var(--ink2); margin-left: 6px; }
p { margin: 0; }
b { font-weight: 800; }
small { font-size: 16px; }
.who { overflow-wrap: normal; display: inline-block; max-width: 11em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.btn .who { max-width: 6em; }
.carry .step .who { max-width: 9em; }
.row .who { max-width: 5.5em; }
.m2 .who, .m3 .who { max-width: 8em; }
.m2 .btn .to, .m3 .btn .to { display: none; }
.m3 .carry .step .who { max-width: 6.5em; }
.hint { color: var(--ink2); }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.screen { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: var(--gap); overflow-y: auto; overflow-x: hidden; padding: calc(10px + env(safe-area-inset-top)) 14px calc(12px + env(safe-area-inset-bottom)); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.notice { background: var(--yellow); border: 3px solid var(--ink); border-radius: 12px; padding: 8px 12px; font-weight: 700; }
.hubline { background: var(--card); border: 3px solid var(--ink); border-radius: 14px; padding: 8px 12px; font-style: italic; }

/* ==== 2. buttons ==================================================================================================== */
button { font: inherit; color: inherit; }
.btn { min-height: 52px; padding: 0 16px; border: 3px solid var(--ink); border-radius: 14px; background: var(--card); color: var(--ink); font-size: 18px; font-weight: 800; box-shadow: 0 4px 0 var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.btn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn.primary { background: var(--yellow); }
.btn.big { min-height: 64px; font-size: 21px; }
.btn.small { min-height: 48px; font-size: 16px; padding: 0 12px; }
.btn.link { border: 0; box-shadow: none; background: none; text-decoration: underline; font-size: 16px; font-weight: 700; color: var(--ink2); min-height: 48px; }
.btn:disabled { opacity: .5; box-shadow: none; transform: translateY(4px); cursor: default; background-image: repeating-linear-gradient(135deg, transparent 0 8px, rgba(58,35,20,.08) 8px 10px); }
.btn:focus-visible, .tile:focus-visible, .star:focus-visible { outline: 4px solid var(--red); outline-offset: 2px; }

/* ==== 3. pictures (emoji until the image has loaded; the text label is always beside them) ========================== */
.pic { --s: 48px; position: relative; display: inline-grid; place-items: center; flex: none; width: var(--s); height: var(--s); border-radius: 22%; background: var(--tile); overflow: hidden; line-height: 1; vertical-align: middle; }
.pic .emo { font-size: calc(var(--s) * .62); }
.pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pic.s24 { --s: 24px; } .pic.s32 { --s: 32px; } .pic.s48 { --s: 48px; } .pic.s64 { --s: 64px; } .pic.s96 { --s: 96px; } .pic.s128 { --s: 128px; }
.pic.hubert { border-radius: 18%; border: 3px solid var(--ink); }

/* ==== 4. home and lobby ============================================================================================= */
.home { justify-content: center; gap: 14px; }
.logo { display: flex; align-items: center; gap: 14px; }
.logo h1 { line-height: 1.2; font-size: 46px; text-transform: uppercase; color: var(--red); text-shadow: 3px 3px 0 var(--ink); -webkit-text-stroke: 1px var(--ink); }
.story { font-size: 17px; }
.idrow { display: flex; gap: 10px; }
.avatar-pick { flex: none; width: 56px; height: 56px; border: 3px solid var(--ink); border-radius: 14px; background: var(--yellow); font-size: 30px; box-shadow: 0 4px 0 var(--ink); cursor: pointer; }
.field { flex: 1; display: block; }
.field input { width: 100%; height: 56px; border: 3px solid var(--ink); border-radius: 14px; padding: 0 14px; font-weight: 700; font-size: 20px; font-family: inherit; background: #fff; color: var(--ink); user-select: text; -webkit-user-select: text; }
.lobby h2 { text-align: center; }
.qr { align-self: center; width: min(52vw, 220px); aspect-ratio: 1; border: 3px solid var(--ink); border-radius: 14px; overflow: hidden; background: #fff; flex: none; }
.row2 { display: flex; justify-content: center; gap: 4px 18px; flex-wrap: wrap; }
.qrrow { display: flex; flex-direction: column; align-items: center; gap: var(--gap); }
.qside { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.qr svg { display: block; width: 100%; height: 100%; }
.chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chip { display: flex; align-items: center; gap: 6px; min-width: 0; min-height: 44px; padding: 4px 12px 4px 8px; border: 3px solid var(--ink); border-radius: 999px; background: var(--card); font-weight: 700; }
.chip.me { background: var(--yellow); }
.chip .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.chip .av { font-size: 22px; }
.tag { font-size: 16px; font-weight: 700; color: var(--ink2); border: 2px solid currentColor; border-radius: 8px; padding: 0 5px; white-space: nowrap; }
.tag.off { color: var(--red-d); } .tag.ok { color: var(--good); }
.robots { display: flex; align-items: center; justify-content: center; gap: 12px; font-weight: 700; }
.stp { width: 52px; height: 52px; border: 3px solid var(--ink); border-radius: 14px; background: var(--card); font-size: 26px; font-weight: 900; box-shadow: 0 3px 0 var(--ink); }
.stp:disabled { opacity: .4; }
.robots b { font-size: 24px; min-width: 24px; text-align: center; }
.table-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.table-list li { display: flex; align-items: center; gap: 8px; }

/* ==== 5. briefing =================================================================================================== */
.brief { gap: 8px; }
.stepbar { display: flex; align-items: center; justify-content: space-between; min-height: 48px; font-weight: 800; color: var(--ink2); }
.brief .body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.tiles { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; gap: 6px; }
.tile { position: relative; min-height: 48px; min-width: 0; padding: 4px 3px; border: 3px solid var(--ink); border-radius: 12px; background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-weight: 800; line-height: 1.05; text-align: center; box-shadow: 0 3px 0 var(--ink); cursor: pointer; overflow-wrap: anywhere; hyphens: auto; }
.tile.on { background: var(--yellow); }
.tile .ck { position: absolute; top: -2px; right: 3px; font-weight: 900; color: var(--good); }
.tile:disabled { opacity: .45; box-shadow: none; }
.check { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 12px; border: 3px solid var(--ink); border-radius: 14px; background: var(--card); font-weight: 800; }
.check input { width: 32px; height: 32px; flex: none; accent-color: var(--red); }

/* ==== 6. play ======================================================================================================= */
.play { gap: 8px; position: relative; }
.top { display: flex; align-items: center; gap: 6px 8px; min-height: 48px; font-weight: 800; }
.top .course { font-size: 18px; white-space: nowrap; } .top .course b { font-size: 22px; }
.top .left { color: var(--red-d); white-space: nowrap; }
.head .ht p { min-width: 0; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top .me { flex: 1 1 0; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.top .btn { flex: none; }
.banner { background: var(--yellow); border: 3px solid var(--ink); border-radius: 12px; padding: 6px 10px; font-weight: 800; }
.hub { display: flex; align-items: center; gap: 8px; }
.hub p { flex: 1; min-width: 0; background: var(--card); border: 3px solid var(--ink); border-radius: 14px; padding: 6px 10px; font-style: italic; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.panels { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.card { background: var(--card); border: 3px solid var(--ink); border-radius: 18px; padding: 10px 12px; box-shadow: 0 4px 0 var(--ink); display: flex; flex-direction: column; gap: 6px; min-height: 0; }
.card > * { flex-shrink: 0; }
.card .head { display: flex; align-items: center; gap: 10px; }
.card .ht { min-width: 0; } .card .ht h3 { overflow-wrap: anywhere; } .card .ht p { overflow-wrap: anywhere; }
.carry { flex: 1; }
.carry .step { font-family: var(--head); font-size: 28px; font-weight: 900; line-height: 1.05; overflow-wrap: anywhere; }
.stephint { color: var(--ink2); }
.burn { min-height: 0; font-weight: 800; color: var(--warn); }
.burn:empty { display: none; }
.burn.hot { color: #fff; font-size: 22px; font-family: var(--head); text-transform: uppercase; }
.carry.burning { background: var(--red); color: #fff; border-color: var(--ink); animation: pulse .7s ease-in-out infinite alternate; }
.carry.burning .stephint, .carry.burning .trace { color: #ffe9d6; }
.carry.burning .gauge .bar { border-color: #fff; }
.carry.burning .btn { color: var(--ink); }
.gauge .bar { height: 22px; border: 3px solid var(--ink); border-radius: 12px; background: #fff; overflow: hidden; }
.gauge .bar i { display: block; height: 100%; width: 0; background: var(--lv5); }
.gauge.lv4 .bar i { background: var(--lv4); } .gauge.lv3 .bar i { background: var(--lv3); } .gauge.lv2 .bar i { background: var(--lv2); } .gauge.lv1 .bar i { background: var(--lv1); }
.gl { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin-top: 4px; }
.gl .gn { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.gl .pct { font-size: 22px; }
.gl .st { font-weight: 700; }
.gl .cp { margin-left: auto; font-weight: 700; }
.actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.lockline { background: var(--yellow); color: var(--ink); border: 3px solid var(--ink); border-radius: 10px; padding: 4px 10px; font-weight: 800; }
.lockline.soft { background: var(--card); }
.cd { font-variant-numeric: tabular-nums; } .cd.low { color: var(--red-d); }
.trace { color: var(--ink2); font-size: 16px; overflow-wrap: anywhere; }
.trace:empty { display: none; }
.recv { background: var(--yellow); flex: 1; }
.recv .btn { margin-top: auto; min-height: 84px; font-size: 26px; }
.recv .step { font-family: var(--head); font-size: 26px; font-weight: 900; }
.stars { display: flex; gap: 6px; }
.star { flex: 1; min-height: 64px; border: 3px solid var(--ink); border-radius: 14px; background: var(--card); box-shadow: 0 4px 0 var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; cursor: pointer; }
.star span { font-size: 26px; color: var(--red); } .star b { font-size: 18px; }
.star:disabled { opacity: .35; box-shadow: none; }
.rv { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.stars-line { color: var(--red); font-size: 22px; letter-spacing: 1px; white-space: nowrap; }
.rows { display: flex; flex-direction: column; gap: 6px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 3px solid var(--ink); border-radius: 14px; padding: 6px 8px 6px 10px; background: var(--card); }
.row .rt { display: flex; align-items: center; gap: 8px; min-width: 0; }
.row.load { background: var(--yellow); }
.row.load .btn { min-height: 52px; flex: none; }
.row.calm { background: transparent; border-style: dashed; padding: 4px 10px; }
.idle { align-items: stretch; }

/* ---- several panels: the cards shrink to what matters (never overlap: a card never shrinks under its content) ---- */
.panels > .card { flex-shrink: 0; }
.m2 .carry, .m3 .carry { flex: 0 0 auto; }
.m2 .carry .step, .m3 .carry .step { font-size: 22px; }
.m3 .carry .step { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m2 .actions .btn, .m3 .actions .btn { white-space: nowrap; }
.m2 .card .stephint, .m3 .card .stephint, .m2 .trace, .m3 .trace { display: none; }
.m2 .card .head .pic, .m3 .card .head .pic { --s: 40px; }
.m2 .ht { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; min-width: 0; }
.m2 .ht .who { max-width: 6.5em; }
.m2 .gl .cp { display: none; }
.m2 .actions, .m3 .actions { flex-direction: row; margin-top: 0; }
.m2 .actions .btn, .m3 .actions .btn { flex: 1; min-width: 0; min-height: 52px; font-size: 17px; padding: 0 6px; }
.m3 .card { gap: 4px; padding: 6px 10px; }
.m3 .head h3 { font-size: 18px; } .m3 .head p { display: none; }
.m3 .carry .step { font-size: 19px; }
.m3 .gauge { display: flex; align-items: center; gap: 8px; }
.m3 .gauge .bar { flex: 1; height: 14px; } .m3 .gl { margin: 0; flex-wrap: nowrap; } .m3 .gl .st, .m3 .gl .cp, .m3 .gl .gn .pic { display: none; }
.m3 .hub { display: none; }
.m3 .burn { display: none; } .m3 .carry.burning .burn { display: block; }

/* ==== 7. sheets and overlays ======================================================================================== */
.sheet-bg { position: fixed; inset: 0; z-index: 30; background: rgba(58,35,20,.55); display: flex; align-items: flex-end; max-width: 520px; margin: 0 auto; }
.sheet { width: 100%; background: var(--cream); border-top: 4px solid var(--ink); border-radius: 22px 22px 0 0; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; max-height: 92%; overflow-y: auto; }
.targets { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.target { min-height: 60px; flex-direction: column; gap: 0; font-size: 18px; padding: 4px 8px; min-width: 0; }
.target .nm { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.target .av { font-size: 22px; }
.target small { font-size: 16px; font-weight: 700; color: var(--ink2); }
.trap .tp { display: flex; align-items: center; gap: 10px; }
.choice { flex-direction: column; align-items: stretch; text-align: left; gap: 2px; padding: 8px 12px; min-height: 76px; justify-content: center; }
.choice b { font-size: 20px; } .choice span { font-weight: 600; font-size: 16px; } .choice em { font-style: normal; font-weight: 800; font-size: 16px; color: var(--red-d); }
.choice.alt { background: var(--yellow); }
.overlay { position: absolute; inset: 0; z-index: 25; background: rgba(251,241,217,.96); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center; }
.break { align-items: center; justify-content: center; text-align: center; gap: 12px; }
.break .big { font-family: var(--head); font-size: 30px; font-weight: 900; color: var(--red); }

/* ==== 8. end screen ================================================================================================= */
.end { gap: 8px; }
.endhead { display: flex; align-items: center; gap: 10px; }
.winner { font-size: 18px; }
.awards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.award { display: flex; align-items: center; gap: 8px; border: 3px solid var(--ink); border-radius: 12px; background: var(--card); padding: 4px 8px; min-width: 0; }
.award .ai { font-size: 24px; } .award span:last-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.1; }
.award small { font-size: 16px; font-weight: 700; color: var(--ink2); } .award b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.score { flex: 1; min-height: 0; list-style: none; margin: 0; padding: 0; display: grid; grid-auto-rows: auto; gap: 3px; align-content: start; }
.score li { min-height: 30px; }
.score li { display: grid; grid-template-columns: 24px 1fr auto; column-gap: 8px; align-items: center; border-bottom: 2px dotted var(--ink2); line-height: 1.05; }
.score li.me { background: var(--yellow); border-radius: 8px; padding: 0 4px; }
.score .rk { font-weight: 900; } .score .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.score .dl { grid-column: 2 / 4; color: var(--ink2); }
.endbtns { display: flex; flex-direction: column; gap: 8px; }
.endbtns .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ==== 8b. the film « Le jeu en 60 secondes » (src/hc/film.js): the real screens, inert, with Hubert's subtitle ===================== */
.filmwrap { flex: 1; min-height: 0; display: flex; flex-direction: column; padding-top: env(safe-area-inset-top); }
.ftop .btn { white-space: nowrap; }
.ftop { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; padding: 0 14px; font-weight: 800; }
.fbar { height: 6px; margin: 0 14px 4px; border-radius: 3px; background: var(--tile); overflow: hidden; }
.fbar i { display: block; height: 100%; width: 0; background: var(--red); transition: width .2s linear; }
.fstage { flex: 1; min-height: 0; position: relative; transform: translateZ(0); display: flex; flex-direction: column; pointer-events: none; overflow: hidden; }
.fstage > .screen { padding-top: 4px; padding-bottom: 6px; }
.fstage .top, .fstage .hub, .fstage .endbtns, .fstage .wait .hubline, .fstage .wait .link { display: none; }
.fcap { display: flex; align-items: center; gap: 8px; padding: 6px 14px calc(8px + env(safe-area-inset-bottom)); border-top: 3px solid var(--ink); background: var(--yellow); }
.fcap p { flex: 1; min-width: 0; font-size: 17px; line-height: 1.25; font-style: italic; }
.fcap p b { font-style: normal; }
.fout { align-items: center; justify-content: center; text-align: center; gap: 12px; }
.fout .stack { align-self: stretch; }

/* ==== 9. reconnect, toast, boot ===================================================================================== */
.reconnect { position: fixed; top: 0; left: 0; right: 0; z-index: 60; display: flex; justify-content: center; padding: calc(8px + env(safe-area-inset-top)) 12px 0; opacity: 0; animation: appear .01s 1s forwards; pointer-events: none; }
.reconnect .rc { pointer-events: auto; display: flex; align-items: center; gap: 12px; background: var(--ink); color: var(--cream); border-radius: 14px; padding: 8px 14px; max-width: 480px; }
.reconnect.bad .rc { background: var(--red-d); }
.reconnect .btn { min-height: 48px; font-size: 16px; }
.spin { width: 22px; height: 22px; border: 4px solid var(--cream); border-top-color: transparent; border-radius: 50%; animation: spin 1s linear infinite; flex: none; }
.toast { position: fixed; left: 14px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 70; max-width: 492px; margin: 0 auto; background: var(--ink); color: var(--cream); border-radius: 14px; padding: 10px 14px; font-weight: 700; text-align: center; }
.boot { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; font: 900 40px var(--head); color: var(--red); text-transform: uppercase; }
.boot span { font: 600 16px sans-serif; color: var(--ink2); text-transform: none; }

@keyframes pulse { from { box-shadow: 0 4px 0 var(--ink), 0 0 0 0 rgba(198,57,43,.0); } to { box-shadow: 0 4px 0 var(--ink), 0 0 0 6px rgba(198,57,43,.45); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes appear { to { opacity: 1; } }

/* ==== 10. small screens, landscape, reduced motion ================================================================== */
@media (max-height: 780px) {
  .qrrow { flex-direction: row; justify-content: center; gap: 12px; }
  .qside { flex: 1; min-width: 0; max-width: 190px; }
  .qrrow .qr { flex: none; }
}
@media (max-height: 700px) {
  .screen { gap: 6px; padding-top: calc(6px + env(safe-area-inset-top)); }
  .hub .pic { --s: 40px; } .hub p { -webkit-line-clamp: 2; }
  .carry .step { font-size: 24px; }
  .logo h1 { font-size: 38px; }
  .qr { width: min(44vw, 170px); }
  .trace { display: none; }
  .m2 .hub, .m3 .hub { display: none; }
  .m2 .burn:not(.hot) { display: none; }
}
@media (max-height: 620px) {
  .fcap .pic { display: none; }
  .tile .pic { display: none; }
  .score .dl, .end .hubline, .end .winner { display: none; }
  .score li { min-height: 24px; }
  .row .rt .pic { display: none; }
  .award { padding: 2px 6px; }
  .lobby .qside .hint { font-size: 16px; line-height: 1.2; }
  .wait .hubline, .lobby .hubline { display: none; }
  .qr { width: min(40vw, 132px); }
  .m3 .stage-TO_DELIVER .step { display: none; }
  .top { min-height: 40px; }
  .m3 .head .pic { display: none; }
  .hub .pic { display: none; }
  .carry .stephint { display: none; }
  .btn.big { min-height: 56px; }
  .brief .hint { font-size: 16px; line-height: 1.2; }
  .pic.s96 { --s: 64px; } .pic.s128 { --s: 80px; }
}
@media (max-width: 340px) {
  .logo h1 { font-size: 34px; }
  .btn { font-size: 17px; }
  .tile { font-size: 16px; }
}
@media (orientation: landscape) and (max-height: 500px) {
  body::before { content: '📱 Tourne ton téléphone : Hubert Chips se joue en portrait'; position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--cream); color: var(--ink); text-align: center; font: 800 20px/1.4 var(--head); }
}
@media (prefers-reduced-motion: reduce) {
  .carry.burning { animation: none; box-shadow: 0 4px 0 var(--ink), 0 0 0 6px var(--ink); }
  .spin { animation-duration: 3s; }
}
@media (min-height: 701px) { .tile .pic.s32 { --s: 46px; } }
