.arcade-ravito { --game-color: #8ce8da; --game-base: #173f3d; }
.arcade-torrent { --game-color: #dfed9f; --game-base: #343f27; }
.arcade-balises { --game-color: #ffce8d; --game-base: #4b3625; }
.arcade-sac { --game-color: #e3c2fa; --game-base: #3d2d4d; }
.arcade-foulees { --game-color: #ffbd9d; --game-base: #573c3a; }
.arcade-marmottes { --game-color: #e6cf86; --game-base: #4a472a; }
.arcade-tri { --game-color: #9fe0a9; --game-base: #285143; }
.arcade-boussole { --game-color: #f3c990; --game-base: #484837; }
.arcade-equilibre { --game-color: #9ed9f2; --game-base: #29465b; }
.arcade-frontale { --game-color: #c6bdf8; --game-base: #2b3155; }

.yard-arcade-room {
  margin-block: 15px 9px;
  background:
    linear-gradient(105deg, #14221cf5 14%, #172820e0 54%, #1b2b22a6),
    url('./assets/sentier.jpg') center 42% / cover;
}
.yard-arcade-room .yard-mini-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.yard-minis .yard-mini {
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 9px;
  min-height: 86px;
  padding: 10px;
  border-color: color-mix(in srgb, var(--game-color) 34%, #304639);
  border-radius: 12px;
  background:
    radial-gradient(ellipse at 0 5%, color-mix(in srgb, var(--game-color) 19%, transparent), transparent 78%),
    linear-gradient(120deg, var(--game-base), #15271e 90%);
  box-shadow: inset 0 1px #ffffff10;
  transition: border-color .14s ease, box-shadow .14s ease;
}
.yard-minis .yard-mini:is(:hover, :focus-visible) { border-color: var(--game-color); box-shadow: inset 0 1px #ffffff22, 0 4px 16px #050c0873; }
.yard-mini .yard-mini-icon {
  width: 38px;
  height: 38px;
  border: 1px solid color-mix(in srgb, var(--game-color) 36%, transparent);
  border-radius: 10px;
  color: var(--game-color);
  background: #131f1bc4;
}
.yard-mini :is(.yard-mini-copy, span:nth-child(2)) > b { font-size: .94rem; letter-spacing: -.022em; }
.yard-mini .yard-mini-points {
  align-self: start;
  padding: 3px 6px;
  border: 1px solid color-mix(in srgb, var(--game-color) 35%, transparent);
  border-radius: 5px;
  color: var(--game-color);
  background: #122019cb;
  font-size: .69rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.yard-mini small + small { color: #dce8db; }
.yard-camp-line { margin-top: 10px; color: #b7c9bb; font-size: .8rem; font-style: italic; }
.yard-loot { display: grid; gap: 5px; margin-top: 12px; }
.yard-loot h3 { color: var(--muted); font-size: .79rem; font-weight: 650; }
.yard-loot ul { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.yard-loot li { display: flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 8px; border: 1px solid #4d6553; border-radius: 8px; background: #172a20; }
.yard-loot li .icon { flex: none; width: 14px; height: 14px; color: var(--game-color); }
.yard-loot li b, .yard-loot li small { display: block; font-size: .71rem; }
.yard-loot li small { color: var(--muted); }
.yard-loot .yard-loot-star { color: #ffd888; }

.arcade-dialog {
  width: min(690px, calc(100% - 20px));
  max-height: calc(100dvh - 24px);
  padding: clamp(12px, 2.6vw, 24px);
  border-color: #5c735e;
  background: radial-gradient(ellipse at 0 0, #293e30, #15241c 65%);
}
.arcade-dialog .dialog-head { align-items: center; margin-bottom: 12px; }
.arcade-dialog .dialog-head h2 { font-size: clamp(1.4rem, 4vw, 2.1rem); letter-spacing: -.048em; }
.arcade-game { display: grid; gap: 9px; }
.arcade-game[data-demo="true"] > :not(.arcade-demo-host) { display: none !important; }
.arcade-demo-host[hidden] { display: none; }
.arcade-demo-host { min-width: 0; }
.arcade-demo-clock { margin: 0 0 10px; padding: 9px 11px; border: 1px solid #a98f58; border-radius: 10px; color: #f2dfaa; background: #3b3422; font-size: .78rem; line-height: 1.45; }
.arcade-launch-art { position: relative; height: 112px; margin-bottom: 9px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--game-color) 50%, #30463e); border-radius: 13px; background: linear-gradient(135deg, var(--game-base), #0d202a); box-shadow: inset 0 1px #ffffff22; }
.arcade-launch-art svg { display: block; width: 100%; height: 100%; }
.arcade-launch-art > span { position: absolute; right: 8px; bottom: 8px; padding: 4px 8px; border: 1px solid #ffffff24; border-radius: 20px; color: #f2f9dc; background: #10251ded; font-size: .67rem; font-weight: 750; letter-spacing: .02em; }
.arcade-actions .arcade-demo-button { color: #e9f6c5; border-color: #adc881; background: linear-gradient(135deg, #3f5633, #283b29); box-shadow: inset 0 1px #ffffff18; }
.arcade-demo-button span { font-size: .7rem; }
.arcade-how > .arcade-mode {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 6px;
  color: var(--game-color);
  font-size: .77rem;
  font-weight: 740;
}
.arcade-how > .arcade-mode span { color: inherit; font-weight: 650; }
.arcade-brand { display: inline-flex; align-items: center; gap: 5px; color: #edf4df; white-space: nowrap; }
.arcade-brand-mark { display: inline-block; width: 14px; height: 14px; flex: none; }
.arcade-hud .arcade-brand-mark { width: 12px; height: 12px; }
.arcade-brand-note { display: flex; align-items: flex-start; gap: 6px; }
.arcade-brand-note .arcade-brand-mark { margin-top: 3px; }
.arcade-brand-note a { color: #cce6a6; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.arcade-brand-note a:hover { color: #edfacb; }
.arcade-how { color: #e4ebe0; font-size: .88rem; line-height: 1.48; }
.arcade-how > p:not(.arcade-mode) { color: #f1f5ec; font-weight: 650; }
.arcade-how > p.arcade-wink { margin: 6px 0; color: #bdcdb7; font-size: .77rem; font-weight: 450; line-height: 1.45; }
a.arcade-brand { min-height: 32px; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a.arcade-brand:hover { color: #edfacb; }
.arcade-how ol { display: grid; gap: 5px; padding-inline-start: 1.35em; margin: 8px 0 0; }
.arcade-how li { padding-inline-start: 3px; }
.arcade-how li::marker { color: var(--game-color); font-weight: 850; }
.arcade-how > p:last-child { margin-top: 6px; }
.arcade-how > p:last-child b { margin-inline-end: .35em; }
.arcade-how span { color: #cad9ca; font-weight: 450; }
.arcade-rule-details { margin-top: 8px; }
.arcade-rule-details summary { min-height: 44px; padding: 11px 0; color: var(--game-color); cursor: pointer; font-weight: 750; }
.arcade-difficulty { display: grid; gap: 3px; margin-top: 10px; padding: 9px 11px; border: 1px solid #748263; border-radius: 9px; background: linear-gradient(110deg, #33452c, #202f25); }
.arcade-difficulty b { color: #e4efa9; font-size: .81rem; }
.arcade-difficulty span { font-size: .78rem; }
.arcade-scoreline { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 10px; align-items: center; color: #dce8ce; font-size: .72rem; }
.arcade-scoreline > span { grid-column: 1 / -1; }
.arcade-scoreline > strong { color: var(--game-color); font-variant-numeric: tabular-nums; }
.arcade-score-meter { position: relative; height: 8px; overflow: hidden; border-radius: 4px; background: #394c3d; }
.arcade-score-meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--game-color), #f4d682); transform-origin: left; transform: scaleX(0); transition: transform .16s ease; }
.arcade-score-meter b { position: absolute; inset-block: 0; width: 2px; background: #132118; }
.arcade-play-tip { padding: 0 2px; color: #c8dac7; font-size: .74rem; line-height: 1.4; }
.arcade-coach { display: grid; gap: 4px; margin-top: 5px; padding-top: 8px; border-top: 1px solid #587452; }
.arcade-coach b { color: #edf0bc; font-size: .8rem; }
.arcade-coach span { color: #cbdcc7; font-size: .8rem; }
.arcade-game[data-feedback="gold"] .arcade-viewport { border-color: #ffe18a; box-shadow: 0 0 14px #ffda6259; }
.arcade-game[data-feedback="bump"] .arcade-viewport { border-color: #f9aa92; }
.arcade-hud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 13px;
  padding: 8px 10px;
  margin-bottom: -9px;
  border: 1px solid color-mix(in srgb, var(--game-color) 34%, #293f33);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: #101e17;
  color: #dce9d7;
  font-size: .8rem;
  font-variant-numeric: tabular-nums;
}
.arcade-hud span { font-weight: 750; }
.arcade-hud b { color: var(--game-color); }
.arcade-hud time { margin-inline-start: auto; padding: 2px 7px; border-radius: 4px; color: #17261d; background: var(--game-color); font-weight: 850; white-space: nowrap; }
[data-arcade-sector] { color: #c5d7c7; font-size: .76rem; font-weight: 720; }
.arcade-time-track { height: 5px; overflow: hidden; border-radius: 0 0 5px 5px; background: #3f5a48; }
.arcade-time-track span { display: block; height: 100%; background: var(--game-color); transform-origin: left center; }
.arcade-viewport {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--game-color) 48%, #263a2e);
  border-radius: 12px;
  background: var(--game-base);
  box-shadow: 0 7px 20px #07110a5c;
}
.arcade-viewport:has(canvas) { background: #10241c; }
.arcade-viewport canvas { display: block; width: min(100%, 82dvh); height: auto; margin-inline: auto; touch-action: manipulation; }
.arcade-count, .arcade-flash { position: absolute; z-index: 1; pointer-events: none; text-align: center; }
.arcade-count {
  top: 24%;
  left: 50%;
  min-width: 1.48em;
  padding: .18em .3em;
  transform: translateX(-50%);
  border: 1px solid var(--game-color);
  border-radius: .29em;
  color: #f8f4dc;
  background: #101e17db;
  font-size: clamp(2.2rem, 12vw, 4.4rem);
  font-weight: 880;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.arcade-flash { left: 50%; bottom: 7px; width: max-content; max-width: 94%; transform: translateX(-50%); padding: 4px 10px; border-radius: 6px; color: #15241d; background: var(--game-color); box-shadow: 0 3px 14px #0007; font-size: .76rem; font-weight: 790; }
.arcade-viewport:has(canvas) .arcade-flash { top: 7px; bottom: auto; }
.arcade-flash[data-tone="bump"] { background: #ffbeab; }
.arcade-flash[data-tone="gold"] { background: #ffd882; }
.arcade-flash[data-tone="late"] { background: #edd5a5; }
.arcade-commands { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
.arcade-key {
  min-width: 0;
  min-height: 50px;
  flex-direction: column;
  gap: 2px;
  padding: 4px;
  border-color: color-mix(in srgb, var(--game-color) 39%, #26392d);
  border-radius: 9px;
  background: linear-gradient(155deg, var(--game-base), #192b22 84%);
  text-align: center;
  touch-action: manipulation;
  box-shadow: inset 0 1px #ffffff14, 0 2px 0 #0c1b14;
}
.arcade-key b { color: var(--game-color); font-size: .95rem; line-height: 1.15; }
.arcade-key small { font-size: .72rem; color: #e0e9db; }
.arcade-key:active { background: var(--game-base); border-color: var(--game-color); }
.arcade-key[aria-disabled="true"] { opacity: .62; }
.arcade-key[aria-pressed="true"] { border-color: #eaf8b8; background: #3e5948; box-shadow: inset 0 0 0 1px #d9ee97; }
.arcade-key svg { width: 34px; height: 34px; }
.arcade-weather { padding: 5px 8px; border-radius: 6px; background: #0c211b; font-size: .75rem; color: #cfe4cf; }
.arcade-weather:empty, .arcade-commands:empty { display: none; }
.arcade-modern-field { position: relative; min-height: 244px; background: linear-gradient(#152820b8, #16251ee8), var(--arcade-landscape) center / cover; }
.arcade-scene-caption { display: grid; gap: 3px; text-align: center; padding: 12px 8px 4px; }
.arcade-scene-caption b { font-size: .92rem; color: #f2f1d0; }
.arcade-scene-caption span { font-size: .72rem; line-height: 1.4; color: #d3dcc4; }
.arcade-garden { padding-bottom: 28px; background: linear-gradient(#18341d6b, #203721d9), var(--arcade-landscape) center / cover; }
.arcade-burrows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px 10px; width: min(100%, 390px); margin: 0 auto; padding: 5px 12px; }
.arcade-burrow { position: relative; display: grid; place-items: end center; min-width: 0; height: 91px; padding: 0; border: 1px solid #95a26b7a; border-radius: 15px; background: radial-gradient(ellipse 37px 12px at 50% 75%, #111f19 50%, #9e825d 67%, transparent 70%); cursor: pointer; touch-action: manipulation; }
.arcade-burrow::after { content: ''; position: absolute; inset: auto 5px 15px; height: 3px; border-radius: 100%; background: #6e854f; }
.arcade-burrow small { position: absolute; left: 7px; top: 4px; color: #e7eac9; font-size: .64rem; z-index: 1; }
.arcade-marmot-art { display: block; width: 80px; height: 80px; max-width: 100%; transition: transform .12s ease; }
.arcade-marmot-art svg { width: 100%; height: 100%; }
.arcade-burrow:disabled { opacity: 1; cursor: default; }
.arcade-burrow[data-kind="friend"] { border-color: #a7be8f; }
.arcade-burrow[data-kind="thief"] { border-color: #7fcfc1; }
.arcade-burrow:not(:disabled):active .arcade-marmot-art { transform: translateY(4px); }
.arcade-burrow:focus-visible, .arcade-search-cell:focus-visible { outline: 3px solid #f4e8a9; outline-offset: -3px; }
.arcade-sorting { min-height: 252px; background: linear-gradient(#173a2a92, #31382ce0), var(--arcade-landscape) center / cover; }
.arcade-sort-belt { display: grid; place-items: center; min-height: 196px; padding: 12px 12px 32px; background: repeating-linear-gradient(0deg, transparent 0 47px, #15292252 47px 49px); }
.arcade-sort-card { position: relative; display: grid; justify-items: center; gap: 2px; width: min(100%, 220px); padding: 8px 14px 9px; border: 2px solid #acc7a1; border-radius: 16px; background: radial-gradient(ellipse at 30% 0, #fff4cd, #dfdab8); color: #263e32; box-shadow: 5px 7px 0 #11271d77, inset 0 2px #ffffffaa; }
.arcade-sort-card svg { display: block; width: 82px; height: 82px; }
.arcade-sort-card strong { font-size: 1.1rem; text-align: center; }
.arcade-sort-card small { font-size: .74rem; font-variant-numeric: tabular-nums; }
.arcade-tri .arcade-key { min-height: 79px; }
.arcade-tri .arcade-key b { font-size: .81rem; }
.arcade-navigation { display: grid; justify-items: center; gap: 9px; padding: 12px 12px 27px; background: linear-gradient(#13362ad9, #1b3d30b8), var(--arcade-landscape) center / cover; }
.arcade-compass-mission { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 6px 10px; border: 1px solid #a0b78b; border-radius: 9px; background: #183b29; color: #e7edc9; }
.arcade-compass-mission span { font-size: .73rem; }
.arcade-compass-mission strong { min-width: 50px; font-size: 1.05rem; color: #ffe1a1; }
.arcade-compass { position: relative; width: 157px; height: 157px; border: 5px solid #b8a071; border-radius: 50%; background: radial-gradient(circle, #eee4bc 0 8%, #334b40 9% 53%, #9eae86 54% 55%, #163b2e 56% 70%, #cabb8d 71%); box-shadow: 0 5px 0 #14261c99, inset 0 0 0 3px #273f32; }
.arcade-compass::before { content: ''; position: absolute; inset: 18px; border: 1px dashed #a0b28b; border-radius: 50%; }
.arcade-compass-dial { position: absolute; inset: 0; transition: transform .22s ease; }
.arcade-compass-dial i { position: absolute; color: #e8ebc6; font-style: normal; font-size: .9rem; font-weight: 850; line-height: 1; }
.arcade-compass-dial .north { top: 7px; left: 50%; transform: translateX(-50%); color: #ffaf7d; }
.arcade-compass-dial .south { bottom: 7px; left: 50%; transform: translateX(-50%); }
.arcade-compass-dial .east { right: 8px; top: 50%; transform: translateY(-50%); }
.arcade-compass-dial .west { left: 8px; top: 50%; transform: translateY(-50%); }
.arcade-compass-needle { position: absolute; width: 27px; height: 97px; top: 25px; left: 60px; background: linear-gradient(#f1a97b 0 50%, #ddd8b3 50%); clip-path: polygon(50% 0, 90% 50%, 50% 100%, 10% 50%); filter: drop-shadow(2px 3px #142e24); }
.arcade-compass-pin { position: absolute; width: 12px; height: 12px; top: 67px; left: 67px; border-radius: 50%; border: 2px solid #f8e4a8; background: #334a38; }
.arcade-navigation > p { margin: 0; color: #dce8c9; font-size: .74rem; text-align: center; }
.arcade-boussole .arcade-key b { font-size: 1.4rem; }
.arcade-night-search { padding: 10px 12px 30px; background: radial-gradient(ellipse at 50% 45%, #293e5f9c, #0b142bd9 80%), var(--arcade-landscape) center / cover; }
.arcade-search-order { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 5px 10px; min-height: 44px; padding-bottom: 8px; color: #dedffc; font-size: .73rem; }
.arcade-search-order > strong { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid #a5a4cf; border-radius: 7px; font-size: 1.35rem; background: #111a35; }
.arcade-search-order [data-modern-caption] { flex-basis: 100%; text-align: center; }
.arcade-search-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; max-width: 335px; margin-inline: auto; }
.arcade-search-cell { display: grid; place-items: center; min-width: 0; min-height: 48px; padding: 0; border: 1px solid #6c83a8; border-radius: 10px; color: var(--signal, #e0dff5); background: linear-gradient(140deg, #2d3b59db, #14213cf2); cursor: pointer; box-shadow: inset 0 2px #acc4dd17, 0 3px 0 #080f23; touch-action: manipulation; }
.arcade-search-cell span { font-size: 1.65rem; line-height: 1; text-shadow: 0 0 8px currentColor; }
.arcade-search-cell:disabled { opacity: .9; cursor: default; }
.arcade-search-cell:not(:disabled):active { background: #394c70; }
.arcade-modern-field[data-mark="perfect"] { box-shadow: inset 0 0 0 2px #f0d387; }
.arcade-modern-field[data-mark="bump"] { box-shadow: inset 0 0 0 2px #dc977f; }
.arcade-signboard {
  display: grid;
  align-content: center;
  gap: 18px;
  min-height: 188px;
  padding: 18px 9px 40px;
  text-align: center;
  background:
    repeating-linear-gradient(0deg, #25170e54 0 1px, transparent 1px 47px),
    repeating-linear-gradient(174deg, #a9784c1a 0 1px, transparent 1px 9px),
    radial-gradient(ellipse at 46% -12%, #876043d9, #30251bf2 85%),
    var(--arcade-landscape) center / cover;
}
.arcade-sign-title { color: #ffe8c7; font-size: 1rem; font-weight: 800; }
.arcade-sequence { display: flex; justify-content: center; gap: clamp(3px, 1.35vw, 9px); }
.arcade-slot {
  display: grid;
  flex: 0 1 51px;
  min-width: 0;
  min-height: 48px;
  place-items: center;
  border: 1px solid #af9270;
  border-radius: 6px;
  color: var(--sign, #e1d6bc);
  background: linear-gradient(145deg, #443323, #211910);
  font-size: clamp(1.08rem, 5.1vw, 1.55rem);
  font-weight: 900;
  box-shadow: inset 0 1px #ffffff1a, 0 3px 0 #201811;
}
.arcade-slot.is-lit { border-color: var(--sign); box-shadow: 0 0 0 1px var(--sign), 0 0 12px color-mix(in srgb, var(--sign) 68%, transparent); }
.arcade-slot.is-filled { color: #d5f4b9; border-color: #a3c17f; }
.arcade-slot.is-wrong { color: #ffcab8; border-color: #ff9b83; background: #622e28; }
.arcade-sign { display: inline-flex; align-items: center; gap: 5px; }
.arcade-sign b { font-size: 1.3rem; color: var(--sign); }
.arcade-sign small { font-variant-numeric: tabular-nums; }
.arcade-packing {
  display: grid;
  gap: 10px;
  padding: 11px 14px 36px;
  background:
    repeating-linear-gradient(135deg, #12101924 0 1px, transparent 1px 4px),
    radial-gradient(ellipse at 12% 0, #60466cde, #262035ed 72%),
    var(--arcade-landscape) center / cover;
}
.arcade-pack-queue { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 6px; min-height: 44px; font-size: .76rem; }
.arcade-piece { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--piece); }
.arcade-piece > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.arcade-piece-next .arcade-piece-shape { opacity: .8; }
.arcade-piece small { display: block; font-size: .7rem; color: #e4d5eb; }
.arcade-piece-shape {
  display: grid;
  flex: none;
  grid-template-columns: repeat(var(--piece-columns), 8px);
  grid-template-rows: repeat(var(--piece-rows), 8px);
  align-content: center;
  justify-content: center;
  gap: 2px;
  min-width: 39px;
  min-height: 36px;
  padding: 3px;
  border: 1px solid currentColor;
  border-radius: 6px;
  background: #251c31;
}
.arcade-piece-shape span { border-radius: 2px; background: currentColor; }
.arcade-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  width: min(100%, 317px);
  justify-self: center;
  padding: 6px;
  border: 2px solid #a995b8;
  border-radius: 10px;
  background: #21192a;
  box-shadow: 0 4px 0 #16121e, inset 0 1px 3px #0006;
}
.arcade-cell {
  display: grid;
  min-width: 0;
  min-height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid #806c8c;
  border-radius: 5px;
  background: linear-gradient(145deg, #3c3049, #2d2438);
  color: #f9ebfb;
  font-weight: 850;
  touch-action: manipulation;
}
.arcade-cell:disabled { opacity: 1; cursor: default; }
.arcade-cell.is-filled { border-color: var(--piece); background: var(--piece); color: #241d2a; box-shadow: inset 0 1px #fff6, inset 0 -3px #0002; }
.arcade-cell.is-preview { border-color: var(--piece); background: color-mix(in srgb, var(--piece) 44%, #302439); }
.arcade-cell.is-blocked:not(.is-filled) { border-color: #ff9e99; }
.arcade-target {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 142px), 1fr));
  gap: 6px;
  font-size: .83rem;
}
.arcade-target > div {
  padding: 7px 9px;
  border: 1px solid color-mix(in srgb, var(--game-color) 26%, #344b3d);
  border-radius: 8px;
  background: #14291f;
}
.arcade-target-tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.arcade-target b { display: block; color: var(--game-color); }
.arcade-target .arcade-tier-turbo b { color: #ffdba1; }
.arcade-target .arcade-tier-perfect { border-color: #a3b970; background: #293b22; }
.arcade-target .arcade-tier-perfect b { color: #e5f7ae; }
.arcade-target span, .arcade-target small { color: #cbd9cb; font-size: .76rem; }
.arcade-target b small { font-weight: 550; }
.arcade-target small { grid-column: 1 / -1; }
.arcade-target small:empty { display: none; }
.arcade-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.arcade-actions .button { min-height: 45px; padding: 7px 13px; }
.arcade-summary {
  display: grid;
  gap: 6px;
  padding: clamp(11px, 3vw, 18px);
  border: 1px solid color-mix(in srgb, var(--game-color) 42%, #354d3e);
  border-radius: 12px;
  background: radial-gradient(ellipse at 100% 0, var(--game-base), #172b21 76%);
  font-size: .89rem;
}
.arcade-result { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 11px; }
.arcade-result strong { color: var(--game-color); font-size: clamp(1.45rem, 5vw, 2rem); font-weight: 830; letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.arcade-result span { color: #d0dfcf; font-size: .77rem; }
.arcade-loot { display: grid; gap: 2px; margin-top: 4px; padding: 8px 11px; border: 1px solid var(--game-color); border-radius: 8px; background: var(--game-base); color: var(--game-color); }
.arcade-loot.arcade-tier-turbo { border-color: #ffc975; color: #ffdea1; background: #443622; }
.arcade-loot.arcade-tier-perfect { border-color: #bad78a; color: #e5f7ae; background: #344726; }
.arcade-loot span { font-size: .74rem; }
.arcade-loot strong { font-size: .97rem; }
.arcade-loot b { font-size: .8rem; }
.arcade-game:not([data-playing], [data-finished]) :is(.arcade-hud, .arcade-time-track, .arcade-scoreline) { display: none; }
.arcade-game:not([data-playing], [data-finished]) .arcade-target { order: 2; }
.arcade-game:not([data-playing], [data-finished]) .arcade-actions { order: 1; }
.arcade-game:not([data-playing], [data-finished]) .arcade-error { order: 3; }
.arcade-game:not([data-playing], [data-finished]) .arcade-viewport { order: 4; }
.arcade-game[data-playing="true"] :is(.arcade-how, .arcade-target, .arcade-actions),
.arcade-game[data-finished="true"] :is(.arcade-how, .arcade-target, .arcade-viewport) { display: none; }

@media (max-width: 480px) {
  .yard-minis .yard-mini { padding: 9px 7px; gap: 6px; }
  .yard-mini .yard-mini-points { padding-inline: 4px; }
  .arcade-dialog { width: calc(100% - 14px); padding: 10px; }
  .arcade-dialog .dialog-head { margin-bottom: 8px; }
  .arcade-dialog .dialog-head h2 { margin-top: 0; }
  .arcade-how { font-size: .83rem; line-height: 1.34; }
  .arcade-how h3 { margin: 0; font-size: .88rem; line-height: 1.3; }
  .arcade-launch-art { height: 86px; margin-bottom: 7px; }
  .arcade-difficulty { padding: 7px 8px; margin-top: 7px; }
  .arcade-weather { margin: 4px 0 0; padding: 3px 7px; font-size: .7rem; }
  .arcade-target small { font-size: .72rem; line-height: 1.3; }
  .arcade-how ol { gap: 4px; margin-top: 6px; }
  .arcade-hud { gap: 4px 8px; padding: 6px 7px; font-size: .74rem; }
  [data-arcade-sector] { font-size: .71rem; }
  .arcade-packing { padding-inline: 7px; }
  .arcade-piece { gap: 5px; }
  .arcade-key { padding-inline: 2px; }
  .arcade-key small { font-size: .69rem; }
  .arcade-actions .button { padding-inline: 8px; }
  .arcade-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .arcade-target > div { padding: 6px 7px; }
  .arcade-target-tiers { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .arcade-target-tiers > div {
    display: grid;
    grid-template-columns: minmax(74px, .9fr) minmax(0, 1.8fr);
    align-items: baseline;
    gap: 4px;
    padding: 4px 6px;
  }
  .arcade-target-tiers b small { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  .yard-minis .yard-mini { transition: none; }
  .arcade-score-meter i { transition: none; }
  .arcade-compass-dial, .arcade-marmot-art { transition: none; }
}

/* Materials and light stay behind the actual play targets. */
.arcade-viewport { border-color: color-mix(in srgb, var(--game-color) 60%, #39515a); box-shadow: 0 7px 24px #05110d55, inset 0 1px #ffffff24; }
.arcade-hud { border-color: #72886b; background: linear-gradient(110deg, #243c32, #13251f); box-shadow: inset 0 1px #ffffff0e; }
.arcade-score-meter { box-shadow: inset 0 2px 4px #0007; }
.arcade-key { border-bottom-width: 3px; background: linear-gradient(155deg, color-mix(in srgb, var(--game-base) 78%, #72958d), #172b27 84%); }
.arcade-key:active { border-bottom-width: 1px; }
.arcade-garden { background: linear-gradient(#182d1740, #193222ac), var(--arcade-landscape) center / cover; }
.arcade-burrow { border-color: #bdc78b7a; background: radial-gradient(ellipse 37px 12px at 50% 75%, #0c1914 50%, #bd9664 67%, transparent 70%), linear-gradient(160deg, #52724533, #1a33234d); box-shadow: inset 0 1px #e1efac24, 0 3px 7px #0d231d44; }
.arcade-burrow small { display: grid; place-items: center; width: 17px; height: 17px; left: 5px; top: 4px; border: 1px solid #e3e9a939; border-radius: 50%; background: #163125bd; }
.arcade-burrow[data-kind="thief"] { border-color: #9be4da; box-shadow: inset 0 1px #e1fff34d, 0 0 12px #76d5c31c; }
.arcade-sort-card { border-color: #d2e7bd; box-shadow: 5px 7px 0 #11271d77, inset 0 2px #ffffffcc, inset 0 -4px #ab956233; }
.arcade-compass { border-color: #d7b77c; box-shadow: 0 7px 0 #0e241c99, 0 10px 19px #081a1d77, inset 0 0 0 3px #273f32; }
.arcade-compass-mission { box-shadow: inset 0 1px #dfedba22; }
.arcade-search-cell { border-color: #91a7c5; background: radial-gradient(ellipse at 30% 0, #566c8b7a, #17243ee6 80%); box-shadow: inset 0 2px #acc4dd2b, 0 3px 0 #080f23; }
.arcade-search-cell span { text-shadow: 0 1px 2px #07101d, 0 0 11px color-mix(in srgb, currentColor 55%, transparent); }
.arcade-cell.is-filled { box-shadow: inset 0 2px #fff7, inset 0 -4px #0003, 0 1px 1px #080811; }

/* Keep the complete play area in view on a phone, including the shortest screens. */
.arcade-game[data-playing] :is([data-move], canvas) {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
.arcade-game[data-playing] [data-move] { min-width: 0; }
.arcade-touch-help, .arcade-availability:empty { display: none; }
.arcade-game:not([data-playing], [data-finished]) .arcade-availability { order: 1; margin: 0; color: #e6d1a9; font-size: .79rem; }
.arcade-game:not([data-playing], [data-finished]) .arcade-rewards { order: 2; }
.arcade-rewards > summary { min-height: 44px; padding: 10px 3px; font-size: .84rem; font-weight: 700; color: #e0ebda; cursor: pointer; }
.arcade-game:is([data-playing], [data-finished]) :is(.arcade-rewards, .arcade-availability) { display: none; }

@media (max-width: 600px), (max-width: 960px) and (max-height: 520px) and (pointer: coarse) {
  .arcade-touch-help { display: block; }
  .arcade-keyboard-help { display: none; }
  dialog.arcade-dialog:has(.arcade-game[data-playing]) {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
    padding: max(6px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    background: #111f1a;
  }
  .arcade-dialog:has(.arcade-game[data-playing]) .dialog-head { gap: 8px; margin: 0 0 5px; }
  .arcade-dialog:has(.arcade-game[data-playing]) .dialog-head h2 { font-size: clamp(1.08rem, 5vw, 1.4rem); line-height: 1.14; }
  .arcade-dialog:has(.arcade-game[data-playing]) .dialog-head .icon-button { width: 44px; height: 44px; min-height: 44px; flex: 0 0 44px; }
  .arcade-game[data-playing] { gap: 5px; max-width: 800px; margin-inline: auto; }
  .arcade-game[data-playing] .arcade-hud { flex-wrap: nowrap; margin: 0; padding: 4px 6px; gap: 4px 6px; border-radius: 8px; border-bottom: 1px solid #5b7567; font-size: .72rem; }
  .arcade-game[data-playing] .arcade-hud .arcade-brand { flex: 1; min-width: 0; }
  .arcade-game[data-playing] .arcade-hud [data-arcade-sector] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .arcade-game[data-playing] :is([data-arcade-hits], [data-arcade-extra], [data-arcade-clock]) { flex: none; }
  .arcade-game[data-playing]:not(.arcade-sac, .arcade-equilibre) [data-arcade-extra] { display: none; }
  .arcade-game[data-playing] .arcade-time-track { height: 3px; border-radius: 4px; }
  .arcade-game[data-playing] .arcade-scoreline { grid-template-columns: minmax(0, 1fr) auto; padding: 0 2px; gap: 7px; }
  .arcade-game[data-playing] [data-score-label] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .arcade-game[data-playing] .arcade-viewport { border-radius: 10px; }
  .arcade-game[data-playing] .arcade-viewport canvas { width: 100%; }
  .arcade-game[data-playing] .arcade-commands { gap: 5px; }
  .arcade-game[data-playing] .arcade-key { min-height: 56px; padding: 4px 2px; gap: 2px; border-radius: 9px; }
  .arcade-game[data-playing] .arcade-key b { font-size: clamp(.77rem, 3.2vw, .94rem); }
  .arcade-game[data-playing] .arcade-key small { font-size: .64rem; }
  .arcade-game[data-playing] .arcade-key svg { width: 26px; height: 26px; }
  .arcade-game[data-playing]:is(.arcade-balises, .arcade-torrent, .arcade-tri) .arcade-key small { display: none; }
  .arcade-game[data-playing] [data-play-tip] { margin: 0; padding: 2px 0; line-height: 1.28; text-align: center; font-size: .71rem; }
  .arcade-game[data-playing] .arcade-modern-field { min-height: 0; }
  .arcade-game[data-playing] .arcade-scene-caption { padding: 5px 6px 2px; gap: 1px; }
  .arcade-game[data-playing] .arcade-garden { padding-bottom: 8px; }
  .arcade-game[data-playing] .arcade-burrows { padding: 4px 6px; gap: 5px; }
  .arcade-game[data-playing] .arcade-burrow { height: clamp(61px, 12dvh, 83px); }
  .arcade-game[data-playing] .arcade-marmot-art { height: min(67px, 12dvh); }
  .arcade-game[data-playing] .arcade-sort-belt { min-height: 116px; padding: 6px 8px 10px; }
  .arcade-game[data-playing] .arcade-sort-card { padding: 4px 9px; }
  .arcade-game[data-playing] .arcade-sort-card svg { width: 48px; height: 48px; }
  .arcade-game[data-playing] .arcade-sort-card strong { font-size: .92rem; }
  .arcade-game[data-playing] .arcade-navigation { gap: 4px; padding: 6px 8px; }
  .arcade-game[data-playing] .arcade-navigation > p { font-size: .67rem; }
  .arcade-game[data-playing].arcade-boussole .arcade-commands { width: min(100%, 280px); justify-self: center; grid-template: repeat(2, minmax(44px, auto)) / repeat(3, minmax(0, 1fr)); grid-auto-flow: row; }
  .arcade-boussole[data-playing] [data-move="0"] { grid-area: 1 / 2; }
  .arcade-boussole[data-playing] [data-move="1"] { grid-area: 2 / 3; }
  .arcade-boussole[data-playing] [data-move="2"] { grid-area: 2 / 2; }
  .arcade-boussole[data-playing] [data-move="3"] { grid-area: 2 / 1; }
  .arcade-game[data-playing].arcade-boussole .arcade-key { min-height: 44px; }
  .arcade-game[data-playing].arcade-boussole .arcade-key b { font-size: 1.15rem; }
  .arcade-game[data-playing] .arcade-signboard { min-height: 136px; padding: 9px 7px 26px; gap: 8px; }
  .arcade-game[data-playing] .arcade-night-search { padding: 6px 8px 10px; }
  .arcade-game[data-playing] .arcade-search-order { padding-bottom: 6px; gap: 4px 9px; }
  .arcade-game[data-playing] .arcade-search-grid { gap: 5px; }
  .arcade-game[data-playing] .arcade-packing { padding: 5px 6px 8px; gap: 4px; }
  .arcade-game[data-playing] .arcade-grid { padding: 3px; gap: 3px; width: min(100%, 365px); }
  .arcade-game[data-playing] .arcade-pack-queue { gap: 4px; min-height: 44px; }
  .arcade-game[data-playing] .arcade-piece { padding: 3px 4px; gap: 4px; }
  .arcade-game[data-playing] .arcade-cell { min-height: clamp(44px, 8.1dvh, 57px); }
  .arcade-game[data-playing] [data-stream-status] { margin: 0; font-size: .72rem; }
}

@media (min-width: 601px) and (max-width: 960px) and (max-height: 520px) and (pointer: coarse) {
  .arcade-game[data-playing] { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 4px; }
  .arcade-game[data-playing] :is(.arcade-hud, .arcade-time-track, .arcade-scoreline, [data-stream-status]) { grid-column: 1 / -1; }
  .arcade-game[data-playing] [data-play-tip] { display: none; }
  .arcade-game[data-playing] .arcade-viewport { grid-column: 1; grid-row: 4; align-self: start; }
  .arcade-game[data-playing] .arcade-commands { grid-column: 2; grid-row: 4; align-self: center; }
  .arcade-game[data-playing] .arcade-viewport canvas { width: auto; max-width: 100%; max-height: max(145px, calc(100dvh - 140px)); }
  .arcade-game[data-playing]:is(.arcade-frontale, .arcade-marmottes) .arcade-viewport { grid-column: 1 / -1; }
  .arcade-game[data-playing] .arcade-burrow { height: 64px; }
  .arcade-game[data-playing] .arcade-packing { padding-block: 3px 4px; }
  .arcade-game[data-playing] .arcade-cell { min-height: 44px; }
}
.arcade-piece-shape { box-shadow: inset 0 1px #ffffff1a; }
.arcade-slot { border-bottom-width: 3px; }
.arcade-slot.is-lit { background: color-mix(in srgb, var(--sign) 16%, #362c24); }
