/* Earned identities and clearly separated campaign assistance. */
.identity-label { display:block; margin:12px 0 6px; font-weight:800; color:var(--ink); }
.identity-gender { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:12px auto; }
.identity-gender button { display:flex; align-items:center; justify-content:center; gap:12px; min-width:0; min-height:64px; padding:14px 18px; border:2px solid #8295b6; border-radius:14px; background:#fff; color:var(--ro-blue); font:800 19px/1.2 var(--display-font); cursor:pointer; }
.identity-gender button:hover { border-color:var(--ro-blue); background:#eef3fc; }
.identity-gender button[aria-pressed="true"] { border-color:var(--ro-blue); background:#fff2b8; box-shadow:inset 0 0 0 1px var(--ro-blue); }
.identity-gender button:focus-visible { outline:3px solid var(--ro-blue); outline-offset:3px; }
.gender-check { display:grid; place-items:center; flex:0 0 24px; width:24px; height:24px; border:2px solid #8295b6; border-radius:50%; background:#fff; }
.gender-check svg { width:16px; height:16px; visibility:hidden; }
.identity-gender button[aria-pressed="true"] .gender-check { border-color:var(--ro-blue); background:var(--ro-blue); color:#fff; }
.identity-gender button[aria-pressed="true"] .gender-check svg { visibility:visible; }
.onboarding-nav { flex-wrap:nowrap; }
.onboarding-nav > .btn.big { width:auto; flex:1; min-width:0; }
.onboarding-nav > [data-back] { flex:0 0 auto; min-height:44px; }
#onbGender .panel { max-width:620px; }
.gender-grandma svg { width:100px; height:100px; }
#onbGender .gender-speaker { margin:8px 0 4px; font-size:15px; color:#61708a; }
#onbGender h2 { font-size:30px; line-height:1.2; margin:6px 0 18px; }
#onbGenderNext:disabled { opacity:.5; cursor:default; }
.identity-hint { font-size:13px; line-height:1.4; margin:6px auto 10px; max-width:56ch; }
#onbAvatar .panel, #profile .panel { max-width:900px; }
#onbAvatar h2 { font-size:clamp(21px,3.6vw,32px); line-height:1.12; }
.identity-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:12px 0; }
.identity-choice { display:flex; align-items:center; gap:10px; min-width:0; min-height:100px; padding:10px; border:2px solid #e3d8c7; border-radius:17px; background:#fffdf7; color:#27344a; text-align:left; font:inherit; cursor:pointer; transition:background .15s,border-color .15s; }
.identity-choice > svg { flex:0 0 66px; width:66px; height:66px; border-radius:50%; }
.identity-choice > span { min-width:0; }
.identity-choice b { display:block; font:800 18px/1.15 'Baloo 2',sans-serif; }
.identity-choice small { display:block; font-size:12px; line-height:1.35; margin-top:5px; }
.identity-choice[aria-pressed="true"] { border-color:var(--identity-color); background:#edf3f6; box-shadow:0 0 0 1px var(--identity-color); }
.identity-choice:focus-visible { outline:3px solid #145bc4; outline-offset:3px; }
.campaign-progress { flex:0 0 auto; width:max-content; max-width:210px; font-size:11px; line-height:1.3; text-align:right; color:#e5eefe; }
.campaign-progress b { display:block; color:var(--ro-yellow); font-weight:800; }
.setup-panel #cosmeticMock { text-align:left; margin:4px 0 10px; }
.setup-panel #cosmeticCredit { text-align:left; }
.setup-panel .setup-actions { justify-content:flex-start; flex-wrap:nowrap; gap:12px; }
.setup-actions .btn { min-height:44px; }
#boosters .panel { border-top:5px solid #39834b; }
#boosters h2 { color:#286b3b; text-shadow:none; }
#boosters .subtitle { color:#385a3e; font-size:13px; }
.setup-panel { display:block; overflow:auto; height:auto; max-width:920px; }
.setup-panel h3 { text-align:left; font-size:19px; margin:18px 0 8px; }
.setup-panel .setup-top { margin:10px 0; min-height:120px; }
.setup-portrait { float:left; margin-right:10px; }
.setup-portrait svg { width:70px; height:70px; }
.setup-panel .setup-top { grid-template-columns:minmax(220px,1.5fr) minmax(180px,1fr); align-items:center; }   /* who you are, then your grill */
.setup-panel #setupPreview { width:100%; max-width:340px; height:auto; max-height:none; aspect-ratio:340/190; justify-self:center; object-fit:contain; border-radius:16px; background:radial-gradient(ellipse at 50% 92%,#cfe5c4 0 38%,transparent 62%),linear-gradient(#eaf4fb,#f6f1e3); }
.setup-panel #setupRank b, .setup-panel #setupRank span { display:block; font-size:12px; line-height:1.35; }
.setup-panel #setupRank progress { width:100%; accent-color:#397f51; margin:8px 0; }
.evolution-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.evolution-card { min-width:0; padding:10px 8px; background:#f4f0e5; border:2px solid #e4dbc9; border-radius:14px; display:flex; flex-direction:column; align-items:center; }
.evolution-card.current { border-color:#39834b; background:#eef5e7; }
.evolution-card.locked { background:#f3f0ea; }
.evolution-avatar svg { width:70px; height:70px; border-radius:50%; }
.setup-panel .evolution-card .gear-preview { width:100%; height:auto; max-height:108px; object-fit:contain; }
.evolution-card b { font-size:14px; line-height:1.2; min-height:34px; }
.evolution-card > span { font-size:11px; line-height:1.3; margin-top:5px; color:#536256; }
.legacy-collection { display:flex; flex-wrap:wrap; gap:7px; }
.legacy-collection [aria-pressed="true"] { outline:2px solid #397f51; }
#end .end-summary #endStars { display:flex; align-items:center; gap:10px; font-size:15px; letter-spacing:0; white-space:normal; color:#244f3b; text-align:left; }
/* a new player's first win: the stars alone, before there's a title to climb */
#end .end-summary #endStars.stars { display:block; font-size:34px; letter-spacing:4px; line-height:1.1; color:#b38d00; white-space:nowrap; text-align:center; }
#endStars b, #endStars small { display:block; }
#endStars small { font-size:12px; line-height:1.35; margin-top:4px; }
.result-avatar { flex:0 0 64px; }
.result-avatar svg { width:64px; height:64px; }
#endStars .gear-preview { width:100px; height:72px; object-fit:contain; }
#end .end-summary #endScore { font-size:20px; }
.result-note p { font-size:13px; line-height:1.35; margin:7px 0; }
#planAvailability:empty, #planCredit:empty, #cosmeticCredit:empty { display:none; }
#end.lost #endEase, #end.lost #endRetry { font-size:16px; line-height:1.3; text-wrap:balance; }
#end.lost #endRetry { flex:2; min-width:0; }
#end.lost #endMenu { flex:0 0 auto; }
.end-score-line { display:flex; align-items:center; justify-content:center; gap:10px; max-width:100%; }
#end .end-score-line #endBest { flex-shrink:0; margin:0; padding:3px 6px; font-size:10px; transform:rotate(-4deg); }
/* the climb to the next title: a notch per new stop, the one just won filling in, the next face at the end */
#end .end-summary #endStars { flex:1 1 100%; min-width:0; }
.rank-climb { flex:1; min-width:0; }
.climb-track { display:flex; align-items:center; gap:7px; margin-top:5px; }
.climb-bar { flex:1; display:flex; gap:3px; min-width:0; padding:2px; border-radius:7px; background:#e9eef9; box-shadow:inset 0 1px 2px #10244d1f; }
.climb-bar > span { flex:1; height:9px; border-radius:2px; background:#d3dbea; }
.climb-bar > span:first-child { border-radius:5px 2px 2px 5px; }
.climb-bar > span:last-child { border-radius:2px 5px 5px 2px; }
.climb-bar > span:only-child { border-radius:5px; }
.climb-bar > .on { background:linear-gradient(#5bbd74,#2e8a4a); }
.climb-bar > .new { transform-origin:left; animation:climb-fill .5s .6s cubic-bezier(.3,1.4,.6,1) backwards, climb-glow 1.2s 1.1s ease-out; }
.climb-bar.top > span { background:linear-gradient(90deg,#f2c21b,#e8a90c); }
@keyframes climb-fill { from { transform:scaleX(0); } }
@keyframes climb-glow { 40% { box-shadow:0 0 0 3px #fcd116bb; } }
.climb-next:empty { display:none; }
.climb-next svg { display:block; width:30px; height:30px; border-radius:50%; filter:grayscale(.85); opacity:.7; box-shadow:0 0 0 2px #fff,0 0 0 3px #c4cee2; }
#endStars small strong { color:var(--ro-blue); }
/* your grill, a step from the result: a picture of it, the button and a different nudge after every win */
.end-grill { display:flex; align-items:center; gap:10px; width:100%; padding:5px 12px 5px 5px; text-align:left; background:#fff3e1; border:1.5px solid #e8b878; border-radius:12px; color:#7a3a10; font:inherit; cursor:pointer; box-shadow:0 2px 5px #10244d16; }
.end-grill:hover { background:#ffe9cc; }
.end-grill::after { content:'›'; margin-left:auto; padding-left:4px; color:#c46a1c; font:800 24px/1 var(--display-font); }
.end-grill .gear-preview { flex:0 0 auto; width:64px; height:48px; border-radius:8px; }
.end-grill-text { display:flex; flex-direction:column; gap:1px; min-width:0; }
.end-grill-text b { font:800 16px/1.15 var(--display-font); color:#8a3d0c; }
.end-grill-text small { font-size:11.5px; font-weight:600; line-height:1.25; color:#7a5a3a; }
/* replay, the next stop beside the map: small, one line each */
.small-nav { flex-wrap:nowrap; gap:8px; }
.small-nav .btn { min-width:0; padding:7px 12px; font-size:14px; line-height:1.2; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#endMenu, #promoMap { flex:0 0 auto; }
@container (max-height:500px) {
  .end-grill .gear-preview { width:52px; height:39px; }
  .end-grill-text b { font-size:14.5px; }
  .end-grill-text small { font-size:11px; }
  .small-nav .btn { padding:6px 10px; font-size:13px; }
}
@media (prefers-reduced-motion:reduce) { .climb-bar > .new { animation:none; } }
#profile .panel { display:block; }
@container (max-width:600px) {
  .identity-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .identity-choice { flex-direction:column; text-align:center; }
  .evolution-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .campaign-progress { display:none; }
}
@container (max-height:500px) {
  #onbAvatar .panel, #profile .panel { padding-top:15px; }
  #onbAvatar .steps { display:none; }
  .identity-grid { gap:7px; margin:7px 0; }
  .identity-choice { min-height:79px; padding:7px; gap:7px; }
  .identity-choice > svg { width:48px; height:48px; flex-basis:48px; }
  .identity-choice b { font-size:15px; }
  .identity-choice small { font-size:11px; margin-top:3px; }
  .identity-hint { margin:4px 0; font-size:12px; }
  .gender-grandma svg { width:64px; height:64px; }
  #onbGender h2 { font-size:24px; margin:6px 0 12px; }
  .identity-label { margin:6px 0 4px; font-size:13px; }
  .setup-panel .setup-top { min-height:90px; }
  .setup-panel #setupPreview { height:140px; aspect-ratio:auto; }
  :is(#onbName,#profile).typing .panel > :is(.identity-grid,.identity-gender,.identity-label) { display:none; }
  .campaign-progress { max-width:120px; font-size:10px; }
}
@media (prefers-reduced-motion:reduce) { .identity-choice { transition:none; } }

@container (max-height:500px) {
  .identity-gender { gap:12px; margin:8px auto; }
  .identity-gender button { min-height:48px; padding:10px 14px; font-size:17px; }
  .gender-grandma svg { width:64px; height:64px; }
  #onbGender h2 { font-size:24px; margin:6px 0 12px; }
}

.victory-identity { display:flex; align-items:center; justify-content:center; gap:12px; }
.victory-identity > svg { width:64px; height:64px; }
.victory-identity .gear-preview { width:100px; height:72px; object-fit:contain; }

/* ---- accessories in Your Grill: five per archetype, a collection shown on the player's own grill. Pieces you have
   carry a switch; the rest are greyed (in colour on hover) with what brings them, and nothing to buy on the card. */
.acc-head { display:flex; align-items:flex-end; justify-content:space-between; gap:12px; margin:18px 0 2px; text-align:left; }
.setup-panel .acc-head h3 { margin:0; }
.acc-head p { margin:3px 0 0; max-width:62ch; }
.acc-count { flex:none; display:flex; flex-direction:column; align-items:flex-end; gap:5px; }
.acc-count b { font:800 22px/1 var(--font-display); color:var(--brand); white-space:nowrap; }
.acc-meter { display:flex; gap:4px; }
.acc-meter i { width:20px; height:7px; border-radius:4px; background:var(--line); }
.acc-meter i.on { background:var(--brand); }
.acc-list { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; margin:10px 0 4px; }
.acc-card { position:relative; display:flex; flex-direction:column; gap:4px; min-width:0; padding:8px; background:#fff; border:2px solid #e4dbc9; border-radius:14px; text-align:left; transition:border-color .2s, box-shadow .2s, transform .2s; }
.setup-panel .acc-card .gear-preview { display:block; width:100%; height:auto; max-height:none; aspect-ratio:260/160; border-radius:10px; background:linear-gradient(#eef6fb,#eaf3e4); }
.acc-card b { font:800 14px/1.15 'Baloo 2',sans-serif; color:var(--ink); }
.acc-card > span { flex:1; font-size:11px; line-height:1.3; color:var(--muted); }
.acc-card .btn.acc-action { width:100%; margin-top:3px; padding:7px 6px; font-size:13px; line-height:1.2; }
.acc-card .acc-action:disabled { opacity:.7; cursor:default; }
.acc-card.worn { border-color:var(--brand); }
.acc-card.locked { background:#f6f7fa; border-style:dashed; border-color:var(--line-strong); }
.acc-card.locked .gear-preview { filter:grayscale(1); opacity:.55; transition:filter .2s, opacity .2s; }
.acc-card.locked .acc-pic:hover .gear-preview, .acc-card.locked .acc-pic:focus-visible .gear-preview { filter:none; opacity:1; }
.acc-tag { display:inline-flex; align-items:center; gap:4px; align-self:flex-start; margin-top:2px; color:var(--muted); font:800 10px/1.2 var(--font-body); font-style:normal; letter-spacing:.06em; text-transform:uppercase; }
.acc-note { margin-top:auto; padding-top:4px; font-size:11px; font-weight:800; line-height:1.25; color:var(--brand); }
.acc-wear { display:flex; align-items:center; justify-content:space-between; gap:6px; margin-top:auto; padding-top:4px; font-size:13px; font-weight:800; color:var(--brand); cursor:pointer; }
.acc-wear .switch { width:46px; height:26px; }
.acc-wear .switch::after { width:20px; height:20px; }
.acc-wear .switch[aria-checked="true"]::after { transform:translateX(20px); }
.acc-hint { margin:0; text-align:center; }
.acc-hint:empty { display:none; }
.acc-card.spotlight { border-color:var(--ro-yellow); animation:acc-spot 1.2s ease-in-out 2; }
@keyframes acc-spot { 50% { transform:translateY(-3px) scale(1.03); box-shadow:0 0 0 4px #fcd11699,0 10px 24px #10244d30; } }
@container (max-width:760px) { .acc-list { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@container (max-width:480px) { .acc-list { grid-template-columns:repeat(2,minmax(0,1fr)); } .acc-head { flex-wrap:wrap; } }
/* A phone on its side: the grill's status was a whole screen on its own, and nobody scrolled down to the pieces for
   sale. It shrinks to one strip and the pieces stand on one shelf that scrolls sideways (the next one peeking in),
   each card on its side (picture, then name and price), so the shop opens on things to buy, prices included. */
@container (max-height:500px) {
  .setup-panel h2 { font-size:22px; margin:0 0 4px; }
  .setup-panel .setup-top { grid-template-columns:minmax(0,1fr) auto; min-height:0; margin:4px 0; padding:4px 12px; gap:12px; }
  .setup-panel #setupPreview { width:auto; height:48px; max-height:none; aspect-ratio:340/190; border-radius:10px; }
  .setup-panel .setup-portrait { margin-right:8px; }
  .setup-panel .setup-portrait svg { width:44px; height:44px; }
  .setup-panel .setup-who { font-size:14px; line-height:1.2; margin:0 0 2px; }
  .setup-panel #setupRank { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:0 10px; align-items:baseline; }
  .setup-panel #setupRank b, .setup-panel #setupRank span { font-size:11px; line-height:1.3; }
  .setup-panel #setupRank b { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
  .setup-panel #setupRank progress { grid-column:1 / -1; grid-row:2; height:7px; margin:3px 0 0; }
  .setup-panel .rank-steps { display:none; }
  .acc-head { margin:8px 0 0; }
  .setup-panel .acc-head h3 { font-size:17px; }
  .acc-head #accLine { font-size:11px; line-height:1.3; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
  .acc-head > div { min-width:0; }
  /* the picture (and the card with it) grows with the screen's height: roomy on most phones, still clear of the buttons on the shortest */
  .acc-list { grid-template-columns:none; grid-auto-flow:column; --pic-h:clamp(56px, 40cqh - 66px, 96px); grid-auto-columns:minmax(calc(var(--pic-h) * 1.3 + 166px),calc((100% - 20px) / 3.3)); gap:10px; margin:6px 0 4px; padding-bottom:4px; overflow-x:auto; scroll-snap-type:x proximity; overscroll-behavior-x:contain; }
  .acc-card { display:grid; grid-template-columns:calc(var(--pic-h) * 1.3) minmax(0,1fr); grid-auto-rows:auto; align-content:start; gap:1px 8px; padding:6px; scroll-snap-align:start; }
  .acc-card > :not(.acc-pic) { grid-column:2; }
  .acc-count b { font-size:17px; }
  .acc-hint { display:none; }
  .setup-panel .acc-card .gear-preview { grid-column:1; grid-row:1 / 4; align-self:center; width:calc(var(--pic-h) * 1.3); height:var(--pic-h); aspect-ratio:auto; object-fit:contain; }
  .acc-card b { font-size:13px; }
  .acc-card > span { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:1; overflow:hidden; font-size:10.5px; }
  .acc-card .btn.acc-action { margin-top:2px; padding:5px 6px; font-size:12.5px; }
  .acc-wear, .acc-note { padding-top:2px; }
  .setup-panel .panel-foot { padding-top:8px; padding-bottom:14px; }
  .setup-actions .btn { min-height:36px; padding:6px 18px; font-size:15px; }
}
@container (min-height:380px) and (max-height:500px) { .acc-card > span { -webkit-line-clamp:2; } }
@container (max-height:340px) {
  .setup-panel h2 { font-size:19px; margin:0 0 2px; }
  .setup-panel .setup-top { margin:2px 0; }
  .acc-head { margin-top:4px; }
  .acc-head #accLine { display:none; }
  .acc-list { --pic-h:56px; }
}

/* ---- level end: the win keeps its card; a loss offers to finish this round, a free restart and a small map link */
#end:not(.lost) .loss-actions, #end.lost .win-actions { display:none; }
#end.lost .end-panel { grid-template-columns:minmax(0,.85fr) minmax(0,1.25fr); }
.loss-actions { gap:8px; }
.rescue-head { display:flex; flex-direction:column; gap:1px; text-align:left; }
.rescue-head b { font:800 17px/1.15 'Baloo 2',sans-serif; color:var(--ro-blue); }
.rescue-head span { font-size:12px; color:var(--muted); }
.rescue-options { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.rescue-options.single { grid-template-columns:1fr; }
.rescue-card { display:grid; grid-template-columns:auto minmax(0,1fr); grid-template-rows:auto 1fr auto; gap:2px 8px; align-items:start; min-width:0; padding:9px 10px 10px; text-align:left; border:2px solid; border-radius:14px; font:inherit; cursor:pointer; transition:transform .15s, box-shadow .15s; }
.rescue-card .rescue-art { grid-row:1 / 3; display:grid; place-items:center; }
.rescue-card b { font:800 15px/1.15 'Baloo 2',sans-serif; }
.rescue-card > span:not(.rescue-art) { font-size:11.5px; line-height:1.3; }
.rescue-card strong { grid-column:1 / -1; margin-top:6px; padding:7px 8px; border-radius:9px; color:#fff; font-size:13.5px; text-align:center; }
.rescue-card.ad { background:#fdf0f4; border-color:#e7b3c3; color:#4a2337; }
.rescue-card.ad strong { background:#b8345f; }
.rescue-card.ad.gift { background:#eef6e9; border-color:#9cc49f; color:#244d30; }
.rescue-card.ad.gift strong { background:var(--invite-green); }
.rescue-card.plan { background:#eaf1fc; border-color:#9fb6e0; color:#173c76; }
/* a spare mic from the fridge: free, so it comes first, in the fridge's icy blue */
.rescue-card.fridge { background:#e3f2fb; border-color:#9ccbe8; color:#14476e; }
.rescue-card.fridge strong { background:#14476e; }
/* mici to buy, one or five: they go through the fridge, so its colours, in a card across the width with the two
   prices as its buttons on the right (never shown with the fridge's card: what's in the fridge comes first) */
.rescue-card.buy { grid-column:1 / -1; grid-template-columns:auto minmax(0,1fr) auto; grid-template-rows:auto auto; align-items:center; background:#e3f2fb; border-color:#9ccbe8; color:#14476e; cursor:default; }
.rescue-card.buy:hover { transform:none; box-shadow:none; }
.rescue-card.buy .rescue-art svg { width:30px; height:30px; }
.rescue-buy { grid-column:3; grid-row:1 / 3; display:flex; gap:6px; }
.rescue-buy button { padding:7px 10px; border:none; border-radius:9px; background:#14476e; color:#fff; font:inherit; font-size:13.5px; font-weight:800; white-space:nowrap; cursor:pointer; }
.rescue-buy button:hover:not(:disabled) { box-shadow:0 4px 10px #10244d33; }
.rescue-buy button:disabled { opacity:.62; cursor:default; }
.rescue-buy button:focus-visible { outline:3px solid #145bc4; outline-offset:2px; }
.rescue-card.plan strong { background:var(--ro-blue); }
.plan-mark { width:32px; height:32px; border-radius:9px; background:var(--ro-blue); color:var(--ro-yellow); font:800 22px/1 'Baloo 2',sans-serif; }
.rescue-card:hover:not(:disabled) { transform:translateY(-1px); box-shadow:0 6px 14px #10244d22; }
.rescue-card:disabled { opacity:.62; cursor:default; }
.rescue-card:focus-visible { outline:3px solid #145bc4; outline-offset:2px; }
.rescue-note { margin:0; font-size:12px; line-height:1.35; color:#8b4d1a; text-align:left; }
.rescue-note:empty { display:none; }
.link-btn { padding:3px 0; background:none; border:none; color:var(--ro-blue); font:700 12.5px/1.3 'Nunito',sans-serif; text-decoration:underline; text-underline-offset:2px; cursor:pointer; }
.link-btn:disabled { opacity:.5; cursor:default; }
.end-actions .retry-btn { display:flex; flex-direction:column; align-items:center; width:100%; gap:0; }
.retry-btn small { font-size:11px; font-weight:700; opacity:.75; }
.loss-foot { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.loss-foot .map-link { margin-left:auto; color:var(--muted); text-decoration:none; font-size:13px; }
.loss-foot .map-link:hover { color:var(--ro-blue); text-decoration:underline; }

/* ---- the road to a new stop (game.js payRoad): Bunica's question in a speech bubble, the player's answers as the
   loss screen's cards (her telenovela in pink, the ad-free pass in the boss's black and gold), from the second time
   a "don't ask me again" as a secondary button, and a small way back */
.gate-panel { display:flex; flex-direction:column; gap:10px; max-width:580px; padding:20px 18px 12px; }
.gate-head { display:flex; align-items:center; gap:14px; text-align:left; }
.gate-grandma { flex:0 0 72px; }
.gate-grandma svg { display:block; width:72px; height:72px; }
.gate-bubble { position:relative; flex:1; min-width:0; padding:9px 14px 10px; border:2px solid var(--line); border-radius:16px; background:var(--card); }
.gate-bubble::before { content:''; position:absolute; top:50%; left:-9px; width:14px; height:14px; margin-top:-7px; border:2px solid var(--line); border-width:0 0 2px 2px; background:var(--card); transform:rotate(45deg); }
.gate-panel .gate-bubble h2 { margin:0 0 3px; font-size:21px; line-height:1.15; }
.gate-panel .gate-bubble p { margin:0; color:var(--ink); font-size:13.5px; line-height:1.38; }
.rescue-card.pass { background:var(--surface); border-color:var(--fun-yellow); color:var(--ink); }
.rescue-card.pass strong { background:var(--ink); color:var(--fun-yellow); }
/* the accessories that come with the pass, as a sticker on the card's corner, in the red of badges that count
   something new */
.rescue-card.pass, .pass-card { position:relative; }
.gift-badge { position:absolute; top:-11px; right:12px; z-index:1; display:flex; align-items:center; gap:4px; padding:3px 10px 3px 6px; border:2px solid var(--surface); border-radius:999px; background:var(--primary); color:#fff; box-shadow:0 3px 10px #10244d33; transform:rotate(4deg); pointer-events:none; }
.gift-badge i { font-style:normal; font-size:15px; line-height:1; }
.gift-badge b { font:800 17px/1 var(--font-display); }
.gift-badge small { font-size:10.5px; font-weight:800; line-height:1.05; white-space:nowrap; }
.gift-badge.hidden { display:none; }
/* in Your Grill it sits beside the card's title, with the text, well away from the price */
.pass-head { display:flex; flex-wrap:wrap; align-items:center; gap:4px 10px; }
.pass-card .gift-badge { position:static; transform:rotate(-2deg); }
.pass-card .gift-badge b { font:800 15px/1 var(--font-display); color:#fff; }
/* on Bunica's question the card's text fills it to the corner: there the sticker has a line of its own under the text,
   above the price (on a short screen, below, it shrinks to "🎁 +3" in the corner, the title kept clear of it) */
.rescue-card.pass .gift-badge { position:static; grid-column:2 / -1; justify-self:start; margin-top:6px; transform:rotate(-2deg); }
/* Plan B on the loss screen: its bonus (this chapter's road without telenovelas) as a sticker sitting on the card's top
   edge, clear of the title */
.rescue-card.plan { position:relative; }
.rescue-card.plan .gift-badge { top:-23px; right:8px; padding:2px 8px 2px 5px; transform:rotate(2deg); }
.rescue-card.plan .gift-badge b { font-size:14px; }
/* "don't ask me again": the telenovela's answer for good, a card of its own across the width, its button on the right
   and drawn in outline, the telenovela's colours */
.rescue-card.always { grid-template-columns:auto minmax(0,1fr) auto; grid-template-rows:auto auto; align-items:center; background:var(--surface); border-color:#e7b3c3; color:#4a2337; }
.rescue-card.always .rescue-art { grid-row:1 / 3; }
.rescue-card.always strong { grid-column:3; grid-row:1 / 3; margin:0; padding:7px 14px; background:var(--surface); color:#b8345f; border:2px solid #b8345f; white-space:nowrap; }
.gate-foot { display:flex; align-items:center; justify-content:space-between; gap:14px; }
.gate-panel .gate-fine { margin:0; color:var(--muted); font-size:11.5px; line-height:1.3; text-align:left; }
.gate-panel .gate-fine.hidden + .link-btn { margin-left:auto; }
.gate-foot .link-btn { flex:none; color:var(--muted); font-size:13px; }
.gate-foot .link-btn:hover { color:var(--brand); }

/* the ad-free pass in Your Grill (game.js buildPassCard): bought here, or a thank-you and the pieces still to pick */
/* Complet under the collection: the missing pieces, what else it gives, and the screen's one purchase */
.pass-card { display:grid; grid-template-columns:auto minmax(0,1fr); grid-template-areas:"pics copy" "perks perks" "buy buy"; align-items:center; gap:12px 16px; margin:12px 0 2px; padding:16px 18px; text-align:left; border:2px solid #efe3c4; border-radius:18px; background:#fff6dc; }
.pass-pieces { grid-area:pics; display:flex; }
.pass-pieces:empty { display:none; }
.pass-pieces .gear-preview { width:58px; height:58px; border-radius:50%; object-fit:cover; background:#e4f1e3; border:3px solid #fff6dc; }
.pass-pieces .gear-preview + .gear-preview { margin-left:-16px; }
.pass-copy { grid-area:copy; min-width:0; display:flex; flex-direction:column; gap:2px; }
.pass-card .pass-copy > .pass-head > b { font:800 21px/1.15 var(--font-display); color:var(--brand); }
.pass-copy > span { color:var(--muted); font-size:13px; line-height:1.35; }
.pass-perks { grid-area:perks; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px 14px; margin:0; padding:0; list-style:none; }
.pass-perks:empty { display:none; }
.pass-perks li { position:relative; padding-left:20px; font-size:13px; font-weight:800; line-height:1.3; color:var(--ink); }
.pass-perks li::before { content:'✓'; position:absolute; left:2px; top:0; color:var(--brand); font-weight:900; }
.pass-card #passBuy { grid-area:buy; width:100%; }
.pass-card.owned { display:flex; padding:10px 14px; border-color:var(--line); background:var(--card); }
@container (max-width:560px) { .pass-card { grid-template-columns:minmax(0,1fr); grid-template-areas:"pics" "copy" "perks" "buy"; } .pass-perks { grid-template-columns:1fr; } }
/* a phone on its side: one strip, pieces, words and the button, so it shows under the shelf of cards */
@container (max-height:500px) {
  .pass-card { grid-template-columns:auto minmax(0,1fr) auto; grid-template-areas:"pics copy buy" "pics perks buy"; gap:2px 10px; margin:6px 0 2px; padding:8px 12px; }
  .pass-pieces .gear-preview { width:38px; height:38px; border-width:2px; }
  .pass-pieces .gear-preview + .gear-preview { margin-left:-12px; }
  .pass-card .pass-copy > .pass-head > b { font-size:16px; }
  .pass-copy > span { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:1; overflow:hidden; font-size:11px; }
  .pass-perks { display:flex; flex-wrap:wrap; gap:0 12px; }
  .pass-perks li { padding-left:14px; font-size:11px; }
  .pass-perks li::before { left:0; }
  .pass-card #passBuy { width:auto; min-height:40px; padding:7px 16px; font-size:15px; }
}
.acc-card .acc-action.pick, .vitrina-bar .btn.pick { background:var(--ink); color:var(--fun-yellow); box-shadow:none; }
.acc-card .acc-action.pick:hover:not(:disabled), .vitrina-bar .btn.pick:hover:not(:disabled) { background:var(--brand); }

/* ---- a new rank: title and grill first, then the share, then a piece for the new grill */
.promo-panel { display:grid; grid-template-columns:1.1fr 1fr; gap:18px; align-items:center; max-width:820px; padding:24px 20px 16px; }
.promo-hero { display:flex; flex-direction:column; align-items:center; gap:7px; min-width:0; }
.promo-ribbon { padding:4px 24px; border-radius:6px; background:var(--ro-red); color:var(--ro-yellow); box-shadow:0 3px 0 #7a2420; font:800 18px/1.2 'Baloo 2',sans-serif; letter-spacing:.06em; text-transform:uppercase; animation:promo-pop .55s cubic-bezier(.3,1.6,.6,1) .1s backwards; }
@keyframes promo-pop { from { opacity:0; transform:scale(.4) rotate(-6deg); } }
.promo-who { display:flex; align-items:center; gap:10px; max-width:100%; text-align:left; }
.promo-avatar { flex:0 0 auto; }
.promo-avatar svg { display:block; width:72px; height:72px; border-radius:50%; box-shadow:0 0 0 3px var(--ro-yellow),0 4px 12px #10244d30; }
.promo-who small { display:block; color:var(--muted); font-size:12px; font-weight:700; }
.promo-who h2 { margin:0; color:#9a5d12; font-size:clamp(24px,3.6vw,34px); line-height:1.05; }
.promo-stage { position:relative; width:100%; overflow:hidden; border-radius:18px; background:radial-gradient(ellipse at 50% 92%,#cfe5c4 0 34%,transparent 60%),linear-gradient(#e7f1fd,#fdf4df); }
.promo-stage::before { content:''; position:absolute; inset:-60%; background:repeating-conic-gradient(from 0deg at 50% 50%,#fcd11622 0 10deg,transparent 10deg 20deg); animation:promo-rays 18s linear infinite; }
@keyframes promo-rays { to { transform:rotate(360deg); } }
.promo-stage canvas { position:relative; display:block; width:100%; height:auto; }
.promo-line { margin:0; color:#5a4a2e; font-size:13px; font-style:italic; line-height:1.35; }
.promo-side { display:flex; flex-direction:column; gap:10px; min-width:0; }
.promo-side .promo-share { display:flex; flex-direction:column; align-items:center; width:100%; margin:0; padding:12px; font-size:19px; line-height:1.2; }
.promo-share small { font-size:12px; font-weight:700; opacity:.92; }
.promo-gift { margin:0; padding:6px 10px; border-radius:10px; background:#fff2c9; color:#8b4d1a; font-size:12.5px; font-weight:700; }
.promo-offer { display:grid; grid-template-columns:96px minmax(0,1fr); gap:6px 10px; align-items:center; padding:9px; text-align:left; background:#fff; border:2px dashed #d9c79f; border-radius:14px; }
.promo-offer-pic canvas { display:block; width:96px; height:auto; border-radius:8px; background:linear-gradient(#eef6fb,#eaf3e4); }
.promo-offer-text small { display:block; color:#8b4d1a; font-size:10.5px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; }
.promo-offer-text b { display:block; color:var(--ink); font:800 15px/1.15 'Baloo 2',sans-serif; }
.promo-offer-text span { display:block; color:var(--muted); font-size:12px; line-height:1.3; }
.promo-offer .btn { grid-column:1 / -1; }
.promo-nav { flex-wrap:nowrap; }
.promo-nav .btn { flex:1; min-width:0; }
@container (max-height:500px) {
  .promo-panel { gap:14px; padding:16px 14px 10px; }
  .promo-hero { gap:4px; }
  .promo-ribbon { font-size:15px; padding:2px 18px; }
  .promo-avatar svg { width:52px; height:52px; }
  .promo-who h2 { font-size:23px; }
  .promo-stage canvas { max-height:150px; width:auto; margin:0 auto; }
  .promo-line { font-size:12px; }
  .promo-side { gap:7px; }
  .promo-gift { padding:4px 8px; font-size:11.5px; }
  .promo-side .promo-share { padding:8px; font-size:16px; }
  .promo-offer { grid-template-columns:78px minmax(0,1fr); padding:7px; gap:4px 8px; }
  .promo-offer-pic canvas { width:78px; }
  .promo-offer-text span { font-size:11px; }
  .rescue-card { padding:7px 8px 8px; }
  .rescue-card b { font-size:14px; }
  .rescue-card > span:not(.rescue-art) { font-size:11px; }
  .rescue-card strong { margin-top:4px; padding:5px 6px; font-size:12.5px; }
  .rescue-head b { font-size:15px; }
  .loss-actions { gap:6px; }
}
@container (max-height:420px) {
  #end.lost .end-panel { grid-template-columns:minmax(0,.75fr) minmax(0,1.3fr); gap:12px; }
  .gate-panel { gap:7px; padding:12px 14px 8px; }
  .gate-grandma { flex-basis:52px; }
  .gate-grandma svg { width:52px; height:52px; }
  .gate-bubble { padding:6px 12px 7px; }
  .gate-panel .gate-bubble h2 { font-size:18px; }
  .gate-panel .gate-bubble p { font-size:12px; line-height:1.3; }
  .gate-panel .gate-fine { font-size:10.5px; }
  .rescue-card.always { grid-template-columns:minmax(0,1fr) auto; }
  .rescue-card.always strong { grid-column:2; padding:5px 10px; font-size:12px; }
  #end.lost .rescue-card strong { padding:5px 4px; font-size:12px; }
  .rescue-head span { display:none; }
  .rescue-card { grid-template-columns:minmax(0,1fr); }
  .rescue-card .rescue-art { display:none; }
  .rescue-card.pass .gift-badge { position:absolute; top:-10px; right:8px; margin:0; padding:2px 8px 2px 5px; transform:rotate(4deg); }
  .rescue-card.pass .gift-badge small { display:none; }
  .rescue-card.pass .gift-badge b { font-size:14px; }
  .rescue-card.pass > b { padding-right:66px; }
  .rescue-card.plan .gift-badge { gap:3px; }
  .rescue-card.plan .gift-badge b { font-size:12.5px; }
  .rescue-card.plan .gift-badge small { font-size:9.5px; }
  .rescue-card.buy { grid-template-columns:minmax(0,1fr) auto; grid-template-rows:auto; padding:5px 6px 5px 8px; }
  .rescue-card.buy > span:not(.rescue-art) { display:none; }
  .rescue-buy { grid-column:2; grid-row:1; }
  .rescue-buy button { padding:5px 8px; font-size:12px; }
  /* the two cheaper ways out wrap when they don't fit side by side: kept on one line, they pushed the result
     column down to a sliver */
  .end-actions .retry-btn { padding:6px 12px; }
  .retry-btn small { font-size:10px; }
  .loss-foot .link-btn { font-size:12px; }
  .promo-stage canvas { max-height:128px; }
  .promo-who h2 { font-size:21px; }
  .promo-line { font-size:11.5px; }
}
@container (max-width:600px) {
  .promo-panel, #end.lost .end-panel { grid-template-columns:1fr; }
}
/* a phone held upright: the two answers one above the other, each as wide as Bunica's question */
@container (max-width:480px) {
  .gate-options { grid-template-columns:1fr; }
  .rescue-card.always { grid-template-columns:auto minmax(0,1fr); }
  .rescue-card.always strong { grid-column:1 / -1; grid-row:auto; margin-top:6px; white-space:normal; }
  .rescue-card.buy { grid-template-columns:auto minmax(0,1fr); }
  .rescue-buy { grid-column:1 / -1; grid-row:auto; margin-top:6px; }
  .rescue-buy button { flex:1; }
}
@media (prefers-reduced-motion:reduce) { .promo-ribbon, .promo-stage::before, .acc-card.spotlight { animation:none; } }

/* very short pages (a phone on its side with the browser's bars showing): grandma's question and both answers
   fit above the buttons without scrolling */
@container (max-height:360px) {
  #onbGender .steps { display:none; }
  #onbGender .gender-grandma svg { width:44px; height:44px; }
  #onbGender .gender-speaker { margin:0; font-size:13px; }
  #onbGender h2 { font-size:21px; margin:2px 0 8px; }
  #onbGender .identity-gender { margin:6px auto; }
  #onbGender .identity-gender button { min-height:44px; padding:8px 12px; }
}

/* Before a peak stop: the earned helper that suits it, in the helpers' green */
#brief .brief-tip { margin:-8px 0 14px; padding:6px 10px; border-left:3px solid #39834b; border-radius:0 8px 8px 0; background:#eef6e9; color:#244d30; font-size:13px; line-height:1.35; }
@container (max-height:500px) { #brief .brief-tip { margin:-4px 0 8px; font-size:12px; } }

/* The smallest phones held upright (the page turned sideways, ~550 × 375): the loss card stacks in one column, so
   its heading line goes and the result sits on one row, keeping the map link on screen without scrolling */
@container (max-width:600px) and (max-height:420px) {
  #end.lost .end-panel { padding-top:16px; row-gap:6px; }
  #end.lost .end-info { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; column-gap:14px; row-gap:0; }
  #end.lost #endTitle { font-size:21px; margin:0; }
  #end.lost .end-summary { padding:0; }
  #end.lost .result-note p { margin:2px 0; }
  #end.lost .rescue-head { display:none; }
}

/* ---- the showroom (vitrina): one grill alone on a stage, full screen; the name above, what to do with it below */
.overlay.vitrina { padding:0; display:block; background:#0c0f22; touch-action:none; }
#vitrinaCanvas { position:absolute; inset:0; width:100%; height:100%; display:block; cursor:grab; touch-action:none; }
#vitrinaCanvas:active { cursor:grabbing; }
.vitrina-top { position:absolute; top:max(10px, var(--safe-top)); left:max(12px, var(--safe-left)); right:max(12px, var(--safe-right)); display:flex; align-items:flex-start; justify-content:space-between; gap:12px; pointer-events:none; }
.vitrina-top > * { pointer-events:auto; }
.vitrina-who { display:flex; align-items:center; gap:10px; min-width:0; padding:5px 14px 5px 5px; border-radius:999px; background:#0c0f22a6; color:#fff; backdrop-filter:blur(6px); }
.vitrina-who .av svg { display:block; width:40px; height:40px; border-radius:50%; background:#fff; }
.vitrina-who > span:last-child { display:flex; flex-direction:column; min-width:0; }
.vitrina-who b { font:800 18px/1.15 'Baloo 2',sans-serif; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.vitrina-who small { font-size:12px; font-weight:700; color:#ffe39a; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.vitrina-close { flex:0 0 auto; }
.vitrina-tip { position:absolute; left:50%; top:max(64px, calc(var(--safe-top) + 54px)); transform:translateX(-50%); margin:0; padding:6px 14px; border-radius:999px; background:#0c0f2299; color:#fff; font-size:13px; font-weight:700; white-space:nowrap; pointer-events:none; transition:opacity .5s; }
.vitrina-tip.gone { opacity:0; }
.vitrina-bubble { position:absolute; left:50%; bottom:calc(max(12px, var(--safe-bottom)) + 70px); transform:translateX(-50%); width:min(460px, calc(100% - 32px)); padding:9px 14px; border-radius:14px; background:#fffaf0f2; color:var(--ink); box-shadow:0 8px 24px #0006; text-align:center; pointer-events:none; animation:vitrina-pop .25s cubic-bezier(.2,.9,.3,1.2); }
.vitrina-bubble b { display:block; font:800 17px/1.2 'Baloo 2',sans-serif; color:var(--ro-blue); }
.vitrina-bubble span { display:block; font-size:13px; line-height:1.35; color:var(--muted); }
@keyframes vitrina-pop { from { opacity:0; transform:translate(-50%,8px); } }
.vitrina-bar { position:absolute; left:max(12px, var(--safe-left)); right:max(12px, var(--safe-right)); bottom:max(12px, var(--safe-bottom)); display:flex; align-items:center; justify-content:center; gap:10px; flex-wrap:wrap; }
.vitrina-stats { padding:6px 12px; border-radius:999px; background:#0c0f22a6; color:#fff; font-size:13px; font-weight:800; backdrop-filter:blur(6px); }
.vitrina-stats:empty { display:none; }
.vitrina-bar .btn { min-height:46px; padding:10px 18px; font-size:17px; }
.vitrina-bar .btn.gift { font-size:13px; line-height:1.25; }
@container (max-height:500px) {
  .vitrina-who .av svg { width:34px; height:34px; }
  .vitrina-who b { font-size:16px; }
  .vitrina-tip { top:56px; font-size:12px; }
  .vitrina-bar .btn { min-height:40px; padding:7px 14px; font-size:15px; }
  .vitrina-bubble { bottom:62px; padding:6px 12px; }
  .vitrina-bubble b { font-size:15px; }
  .vitrina-bubble span { font-size:12px; }
}
@media (prefers-reduced-motion:reduce) { .vitrina-bubble { animation:none; } }
/* pictures that open the showroom: a zoom-in pointer and an expand mark in the corner */
.setup-show, .acc-pic, button.promo-stage, .profile-grill-pic { position:relative; display:block; padding:0; border:0; background:none; font:inherit; color:inherit; cursor:zoom-in; }
.zoom-badge { position:absolute; right:6px; bottom:6px; display:grid; place-items:center; width:24px; height:24px; border-radius:50%; background:#0c1f46b8; color:#fff; pointer-events:none; }
.setup-panel .setup-show { justify-self:center; width:100%; max-width:340px; }
.setup-panel .setup-show #setupPreview { display:block; max-width:none; }
.setup-show:hover #setupPreview, .acc-pic:hover .gear-preview { filter:brightness(1.04); }
.acc-card .acc-pic { width:100%; border-radius:10px; }
@container (max-height:500px) {
  .setup-panel .setup-show { width:auto; }
  .setup-panel .setup-show #setupPreview { height:68px; }
  .setup-panel .acc-card .acc-pic { grid-column:1; grid-row:1 / span 4; align-self:center; width:calc(var(--pic-h) * 1.3); }
  .setup-panel .acc-card .acc-pic .gear-preview { width:100%; }
  .zoom-badge { width:20px; height:20px; right:4px; bottom:4px; }
  .zoom-badge svg { width:11px; height:11px; }
}
/* a grill's story poster is 9:16: the same height on screen, narrower */
.share-body img.story { aspect-ratio:1080 / 1920; width:auto; }
@container (min-height:501px) { .share-body img.story { height:350px; } }
/* the friend's grill on their challenge: pictured, a tap shows it big */
.ch-grill-show { position:relative; display:flex; align-items:center; gap:12px; width:100%; max-width:420px; margin:2px auto 6px; padding:4px 12px 4px 4px; border:1.5px solid #e8b878; border-radius:14px; background:#fff3e1; font:inherit; color:inherit; text-align:left; cursor:zoom-in; }
.ch-grill-show canvas { flex:0 0 auto; display:block; width:120px; height:64px; border-radius:10px; background:radial-gradient(ellipse at 50% 92%,#cfe5c4 0 38%,transparent 62%),linear-gradient(#eaf4fb,#f6f1e3); }
.ch-grill-show .ch-grill { margin:0; opacity:1; color:#7a3a10; font-weight:700; }
.ch-grill-show .zoom-badge { left:94px; right:auto; bottom:8px; }
@container (max-height:500px) { .ch-grill-show canvas { width:90px; height:48px; } .ch-grill-show .zoom-badge { left:68px; } }
/* in a level, under the grill's close-up: whose grill it is */
.grill-banner { position:fixed; z-index:3; left:50%; bottom:max(14px, var(--safe-bottom)); transform:translateX(-50%); display:flex; align-items:center; gap:10px; max-width:calc(100% - 32px); padding:5px 16px 5px 5px; border-radius:999px; background:#0c0f22c4; color:#fff; pointer-events:none; animation:vitrina-pop .35s cubic-bezier(.2,.9,.3,1.2); }
.grill-banner .av svg { display:block; width:38px; height:38px; border-radius:50%; background:#fff; }
.grill-banner > span:last-child { display:flex; flex-direction:column; min-width:0; }
.grill-banner b { font:800 17px/1.15 'Baloo 2',sans-serif; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.grill-banner small { font-size:12px; font-weight:700; color:#ffe39a; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.grill-banner small:empty { display:none; }
body:has(> .overlay:not(.hidden)) .grill-banner { visibility:hidden; }
@media (prefers-reduced-motion:reduce) { .grill-banner { animation:none; } }
/* the lobby's grill button: your own grill, live, on a yellow button shaped like its neighbours */
.lobby-actions .setup-btn { width:62px; border-radius:12px; padding:0; }
.setup-btn canvas { display:block; width:56px; height:38px; }
@container (max-height:500px) {
  .lobby-actions .setup-btn { width:54px; border-radius:12px; }
  .setup-btn canvas { width:50px; height:31px; }
}
/* your grill on your profile: the picture (a tap: the showroom), what's on it, show it off or deck it out */
.profile-grill { display:grid; grid-template-columns:minmax(160px, 260px) minmax(0,1fr); align-items:center; gap:16px; margin:10px 0 14px; padding:10px; border:1.5px solid #e8b878; border-radius:18px; background:#fff3e1; text-align:left; }
.profile-grill-pic { width:100%; border-radius:12px; overflow:hidden; background:radial-gradient(ellipse at 50% 92%,#ffe9a8 0 36%,transparent 64%),linear-gradient(#eaf4fb,#f6f1e3); }
.profile-grill-pic canvas { display:block; width:100%; height:130px; }
.profile-grill-info { display:flex; flex-direction:column; gap:3px; min-width:0; }
.profile-grill-info b { font:800 20px/1.15 'Baloo 2',sans-serif; color:#8a3d0c; }
.profile-grill-info > span { font-size:13px; font-weight:700; line-height:1.35; color:#7a5a3a; }
.profile-grill-actions { display:flex; flex-wrap:wrap; gap:8px; margin-top:6px; }
.profile-grill-actions .btn { padding:8px 14px; font-size:15px; }
@container (max-width:520px) { .profile-grill { grid-template-columns:1fr; } }
@container (max-height:500px) {
  .profile-grill { grid-template-columns:150px minmax(0,1fr); gap:12px; margin:6px 0 8px; padding:6px; }
  .profile-grill-pic canvas { height:84px; }
  .profile-grill-info b { font-size:17px; }
  .profile-grill-info > span { font-size:12px; }
  .profile-grill-actions .btn { padding:6px 11px; font-size:13px; }
}
/* every canvas is the full-screen game unless it says otherwise: these are pictures in their place */
#setupBtnGrill, #profileGrillPic, #chGrillPic { position:relative; inset:auto; }
/* each rank's grill opens the showroom too */
.evo-pic { position:relative; display:block; width:100%; padding:0; border:0; background:none; font:inherit; color:inherit; cursor:zoom-in; }
.evo-pic .gear-preview { display:block; margin:0 auto; }

/* a phone on its side: the language switch sits in the panel's corner, so the question and terms keep their room */
@media (orientation:landscape) and (max-height:500px) {
  #onbGender .panel { position:relative; }
  #onbGender .onb-lang { position:absolute; top:12px; right:14px; margin:0; z-index:1; }
  #onbGender .onb-lang button { padding:4px 10px; font-size:13px; }
}
