/* The map screen's briefing (MAP_LOOK 'briefing' in js/ui/screens.js): direction A of the 16 October 2026 mock-ups,
   design/map-screen/. The picked map large with its briefing beside it and every map in a strip below, on the near-solid
   sky of the difficulty patches (.screen--diff-c). Laptop first; a short laptop tightens it, a phone on its side puts
   the strip under the picture, and a narrow upright screen stacks it all and scrolls. Colours from game.css's tokens. */
.screen--brief { display: block; padding: 0; }
/* aboard, the deck's own hints and buttons must not show through: the sky is opaque there (on the title Jupiter stays
   faintly behind it) */
#app.deck #screens .screen.screen--diff-c.screen--brief { background: radial-gradient(1.4px 1.4px at 12% 22%, rgba(255, 255, 255, 0.8), transparent), radial-gradient(1px 1px at 31% 9%, rgba(255, 255, 255, 0.6), transparent), radial-gradient(1.2px 1.2px at 62% 14%, rgba(255, 255, 255, 0.75), transparent), radial-gradient(1px 1px at 83% 31%, rgba(255, 255, 255, 0.55), transparent), radial-gradient(1.4px 1.4px at 91% 72%, rgba(255, 233, 166, 0.7), transparent), radial-gradient(1px 1px at 7% 81%, rgba(255, 255, 255, 0.5), transparent), radial-gradient(ellipse 90% 70% at 50% 40%, #2b1c6e, #0b0722); }
.brief { --panel-w: clamp(390px, 30.5vw, 460px); position: absolute; inset: 0; max-width: 1800px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) var(--panel-w); grid-template-rows: auto minmax(0, 1fr) auto auto; grid-template-areas: "top top" "prev panel" "strip strip" "hints hints"; gap: 16px 24px; padding: max(18px, env(safe-area-inset-top, 0px)) max(36px, env(safe-area-inset-right, 0px)) max(14px, env(safe-area-inset-bottom, 0px)) max(36px, env(safe-area-inset-left, 0px)); color: var(--white); text-align: left; outline: none; line-height: 1.35; }
.brief--enter { animation: briefin 0.32s cubic-bezier(0.2, 0.9, 0.3, 1) both; }
@keyframes briefin { from { opacity: 0; transform: translateX(36px); } }
.brief button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; margin: 0; text-align: inherit; }
.brief button:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; }
.brief-kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 6px; background: rgba(10, 6, 32, 0.7); border: 1px solid rgba(255, 255, 255, 0.3); border-bottom-width: 2px; font: 800 11px/1 var(--sans); color: rgba(255, 255, 255, 0.78); }

/* the top: Back and the title, the tabs with who plays under them */
.brief-top { grid-area: top; display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 16px; }
.brief-lead { display: flex; align-items: center; gap: 16px; min-width: 0; }
.brief .brief-back { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 18px 0 10px; border-radius: 999px; border: 1px solid var(--glass-line); background: var(--glass); box-shadow: var(--glass-shadow); font-weight: 800; font-size: 15px; flex: none; }
.brief-back__arrow { display: none; width: 18px; height: 18px; }
.brief-title { margin: 0; font-size: 22px; font-weight: 850; letter-spacing: -0.02em; white-space: nowrap; text-shadow: 0 2px 14px rgba(10, 6, 40, 0.7); }
.brief-tabs { display: grid; justify-items: center; gap: 4px; }
.brief-tabrow { display: flex; align-items: center; gap: 22px; }
.brief .brief-tab { position: relative; padding: 6px 2px 10px; font-size: 18px; font-weight: 800; letter-spacing: -0.01em; color: rgba(255, 255, 255, 0.55); white-space: nowrap; }
.brief-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 2px; background: transparent; }
.brief .brief-tab[aria-selected="true"] { color: var(--white); }
.brief-tab[aria-selected="true"]::after { background: var(--gold); }
.brief-who { margin: 0; font-size: 14px; font-weight: 550; color: #ddd2ff; white-space: nowrap; }

/* the picture: the card art underneath while the large one loads, then the large one drifting slowly in */
.brief-prev { grid-area: prev; position: relative; min-height: 0; border-radius: 22px; overflow: hidden; background: #1c1446 center / cover no-repeat; box-shadow: 0 0 0 1px rgba(233, 153, 255, 0.3), 0 26px 60px rgba(3, 1, 16, 0.6); }
.brief-prev::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 0 90px rgba(14, 8, 44, 0.42); }
.brief-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: briefdrift 20s ease-in-out infinite alternate; }
.brief-art.in { animation: briefarrive 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both, briefdrift 20s ease-in-out 0.55s infinite alternate; }
@keyframes briefdrift { from { transform: scale(1.02); } to { transform: scale(1.08) translate(-1.2%, -0.8%); } }
@keyframes briefarrive { from { opacity: 0; transform: scale(1.12); } to { opacity: 1; transform: scale(1.02); } }

/* the briefing */
.brief-panel { grid-area: panel; display: flex; flex-direction: column; min-height: 0; overflow: hidden; border-radius: 22px; border: 1px solid rgba(233, 153, 255, 0.26); background: linear-gradient(170deg, #2c1f66, #170f42); box-shadow: 0 24px 60px rgba(3, 1, 16, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.09); }
.brief-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; padding: 20px 22px 18px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.brief-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brief-thumb { display: none; width: 70px; height: 44px; flex: none; border-radius: 7px; object-fit: cover; box-shadow: 0 0 0 1px rgba(233, 153, 255, 0.3); }
.brief-name { margin: 0; font-size: 34px; font-weight: 850; letter-spacing: -0.025em; line-height: 1.05; }
.brief-tier { --tier: #cfc6ff; display: flex; align-items: center; gap: 8px; margin-top: 7px; font-size: 14px; font-weight: 800; color: var(--tier); white-space: nowrap; }
.brief-tier--beginner { --tier: var(--mint); }
.brief-tier--intermediate { --tier: var(--gold); }
.brief-tier--advanced { --tier: var(--coral); }
.brief-tier--expert { --tier: var(--lilac); }
.brief-tier--duo { --tier: #9fe8ff; }
.brief-tier--versus { --tier: #ffb4c8; }
.brief-pips { display: inline-flex; gap: 4px; margin-right: 2px; }
.brief-pips i { width: 8px; height: 8px; border-radius: 1.5px; transform: rotate(45deg); background: rgba(255, 255, 255, 0.2); }
.brief-pips i.lit { background: var(--tier); }
.brief-roads { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, 0.62); font-weight: 700; }
.brief-roads::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, 0.4); }
.brief-idea { margin: 0; font-size: 15px; line-height: 1.45; color: #e6defc; }
.brief-sec { display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.brief-sec__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.brief-sec__head h4 { margin: 0; font-size: 15px; font-weight: 800; white-space: nowrap; }
.brief-sec__head span { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.68); text-align: right; }
/* Versus: How a match goes links to the Field guide's Versus page */
.brief .brief-guide { font-size: 13px; font-weight: 700; color: var(--lilac); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.brief .brief-guide:hover { color: #fff; }
.brief-medal-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.brief-medal { display: grid; justify-items: center; gap: 2px; text-align: center; }
.brief-medal__disc { width: 40px; height: 40px; margin-bottom: 3px; }
.brief-medal b { font-size: 13px; font-weight: 800; }
.brief-medal small { font-size: 11.5px; font-weight: 650; color: rgba(255, 255, 255, 0.62); font-variant-numeric: tabular-nums; }
.brief-medal[data-state="won"] b { color: var(--m); }
.brief-medal[data-state="next"] small { color: var(--gold); }
.brief-medal[data-state="later"] { opacity: 0.58; }
.brief-diffs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.brief .brief-diff { display: grid; justify-items: center; gap: 4px; padding: 10px 6px 9px; border-radius: 14px; text-align: center; background: rgba(255, 255, 255, 0.045); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.13); }
.brief-diff__ins { width: 34px; height: 34px; }
.brief-diff b { font-size: 14px; font-weight: 800; }
.brief .brief-diff.on { background: rgba(246, 199, 102, 0.1); box-shadow: inset 0 0 0 2px var(--gold); }
.brief-diff.on b { color: var(--gold); }
.brief-mods { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; font-size: 13px; }
.brief-mods div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; min-width: 0; padding: 3.5px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.brief-mods dt { font-weight: 600; color: rgba(255, 255, 255, 0.72); white-space: nowrap; }
.brief-mods dd { margin: 0; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.brief-mods dd.easy { color: var(--mint); }
.brief-mods dd.hard { color: #ff9f9f; }
.brief-acts { margin-top: auto; display: grid; gap: 9px; padding-top: 4px; position: sticky; bottom: 0; }
.brief .brief-go { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; height: 58px; border-radius: 16px; text-align: center; color: var(--ink); font-size: 20px; font-weight: 850; letter-spacing: -0.01em; background: linear-gradient(180deg, #ffefb8, var(--gold) 55%, #e9b14d); box-shadow: 0 5px 0 #b77a28, 0 14px 28px rgba(0, 0, 0, 0.35); }
.brief-go .brief-kbd { background: rgba(255, 255, 255, 0.3); border-color: rgba(36, 26, 82, 0.35); color: rgba(36, 26, 82, 0.8); }
.brief .brief-go:active { transform: translateY(3px); box-shadow: 0 2px 0 #b77a28; }
/* Versus: how a match goes, the best practice score, the bot as the second button; a map on the way starts nothing */
.brief-howto { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; font-size: 14.5px; color: #e6defc; }
.brief-howto li { display: flex; gap: 10px; align-items: baseline; }
.brief-howto li::before { content: ""; flex: none; width: 6px; height: 6px; transform: translateY(-2px) rotate(45deg); background: var(--lilac); }
.brief-stat { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.brief-stat span { font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.68); }
.brief-stat b { font-size: 30px; font-weight: 850; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.brief-stat .brief-stat__none { font-size: 15px; font-weight: 700; letter-spacing: 0; color: rgba(255, 255, 255, 0.72); }
.brief .brief-go2 { display: flex; align-items: center; justify-content: center; height: 48px; border-radius: 14px; text-align: center; font-size: 16px; font-weight: 800; border: 1px solid var(--glass-line); background: rgba(255, 255, 255, 0.06); }
.brief .brief-go2:active { transform: translateY(2px); }
/* the two practice matches, 1v1 and 2v2, share one row */
.brief-practice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.brief-fine { margin: 0; font-size: 12.5px; text-align: center; color: rgba(255, 255, 255, 0.62); }
.brief .brief-go.brief-go--off { color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.08); box-shadow: none; cursor: default; }
.brief .brief-go.brief-go--off:active { transform: none; box-shadow: none; }

/* the strip of maps */
.brief-strip { grid-area: strip; position: relative; display: flex; justify-content: flex-start; justify-content: safe center; gap: 12px; min-width: 0; padding: 4px 3px 3px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.brief-strip::-webkit-scrollbar { display: none; }
.brief .brief-tile { flex: 0 0 140px; min-width: 0; display: grid; gap: 7px; }
.brief-tile__art { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: #1c1446; box-shadow: 0 0 0 1px rgba(233, 153, 255, 0.28), 0 8px 18px rgba(3, 1, 16, 0.5); transition: transform 0.18s ease, box-shadow 0.18s ease; }
.brief-tile__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.brief-tile .mapc__medal { position: absolute; left: 6px; top: 6px; width: 24px; height: 24px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.55)); }
.brief-tile__name { display: block; font-size: 13px; font-weight: 800; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: rgba(255, 255, 255, 0.74); }
.brief-tile.on .brief-tile__art { transform: translateY(-3px); box-shadow: 0 0 0 2.5px var(--gold), 0 12px 24px rgba(3, 1, 16, 0.55); }
.brief-tile.on .brief-tile__name { color: var(--white); }
/* the maps on the way: three of them fanned on one tile, all of them in the picture when it is picked */
.brief-tile--stack .brief-tile__art { overflow: visible; background: none; box-shadow: none; }
.brief-tile--stack .brief-tile__img { position: absolute; inset: 0; border-radius: 10px; box-shadow: 0 0 0 1px rgba(233, 153, 255, 0.3), 0 6px 14px rgba(0, 0, 0, 0.5); filter: saturate(0.35) brightness(0.62); }
.brief-tile--stack .brief-tile__img:nth-child(1) { transform: rotate(-11deg) translate(-16px, 5px) scale(0.82); }
.brief-tile--stack .brief-tile__img:nth-child(2) { transform: rotate(10deg) translate(16px, 5px) scale(0.82); }
.brief-tile--stack .brief-tile__img:nth-child(3) { filter: saturate(0.5) brightness(0.78); }
.brief-tile--stack .brief-tile__art b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; font-weight: 850; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8); }
.brief-tile--stack.on .brief-tile__art { box-shadow: none; }
.brief-tile--stack.on .brief-tile__img:nth-child(3) { box-shadow: 0 0 0 2.5px var(--gold), 0 6px 14px rgba(0, 0, 0, 0.5); }
.brief-prev--soon { background: #1c1446; }
.brief-soon { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 14px; }
.brief-soon > div { position: relative; min-height: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px rgba(233, 153, 255, 0.25); }
.brief-soon__img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.45) brightness(0.72); }
.brief-soon span { position: absolute; left: 0; right: 0; bottom: 0; padding: 7px 10px; font-size: 13.5px; font-weight: 800; background: rgba(14, 8, 44, 0.9); }

.brief-hints { grid-area: hints; display: none; justify-content: center; align-items: center; gap: 24px; font-size: 13px; font-weight: 650; color: rgba(255, 255, 255, 0.62); white-space: nowrap; }
.brief-hints span { display: inline-flex; align-items: center; gap: 7px; }
@media (hover: hover) and (pointer: fine) {
  .brief-hints { display: flex; }
  .brief .brief-tab:hover { color: rgba(255, 255, 255, 0.88); }
  .brief .brief-diff:not(.on):hover { box-shadow: inset 0 0 0 1px rgba(233, 153, 255, 0.65); }
  .brief .brief-back:hover { border-color: rgba(233, 153, 255, 0.8); }
  .brief-tile:not(.on):hover .brief-tile__art { transform: translateY(-2px); box-shadow: 0 0 0 2px rgba(233, 153, 255, 0.8), 0 10px 20px rgba(3, 1, 16, 0.5); }
}
/* the keys only where there is a keyboard to press them */
@media not ((hover: hover) and (pointer: fine)) { .brief .brief-kbd { display: none; } }

/* a short laptop (1280 x 720 and the like): smaller type and tighter rows */
@media (max-height: 820px) and (min-height: 521px) {
  .brief { gap: 10px 20px; padding-top: max(12px, env(safe-area-inset-top, 0px)); padding-bottom: max(10px, env(safe-area-inset-bottom, 0px)); }
  .brief-body { gap: 7px; padding: 13px 18px 12px; }
  .brief-name { font-size: 26px; }
  .brief-tier { margin-top: 5px; }
  .brief-idea { font-size: 13.5px; line-height: 1.4; }
  .brief-sec { gap: 7px; padding-top: 8px; }
  .brief-medal__disc { width: 30px; height: 30px; }
  .brief .brief-diff { grid-auto-flow: column; justify-content: center; align-items: center; gap: 8px; padding: 6px; }
  .brief-diff__ins { width: 26px; height: 26px; }
  .brief-mods div { padding: 1.5px 0; }
  .brief .brief-go { height: 50px; font-size: 18px; }
  .brief .brief-tile { flex-basis: 122px; }
  .brief-tile__name { font-size: 11.5px; }
  /* Versus: its line repeats how a match goes, so it gives way; the rows tighten */
  .brief--versus .brief-idea { display: none; }
  .brief-howto { gap: 5px; font-size: 13.5px; }
  .brief-stat b { font-size: 24px; }
  .brief .brief-go2 { height: 42px; font-size: 15px; }
}
/* a laptop's browser window under 680 tall (1366 x 657, 1280 x 640): the map's line and the key hints give way (the
   picture shows the map; the keys still work), the strip and the rows tighten */
@media (max-height: 680px) and (min-height: 521px) {
  .brief { grid-template-areas: "top top" "prev panel" "strip strip"; grid-template-rows: auto minmax(0, 1fr) auto; gap: 8px 20px; }
  .brief-hints, .brief-idea { display: none; }
  .brief-medal__disc { width: 26px; height: 26px; }
  .brief-mods div { padding: 1px 0; }
  .brief .brief-go { height: 46px; }
  .brief .brief-tile { flex-basis: 104px; }
  .brief-tile__name { font-size: 11px; }
}

/* a phone on its side: the strip under the picture, the briefing beside both, no line about the map */
@media (max-height: 520px) {
  .brief { --panel-w: min(392px, 47vw); grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "top top" "prev panel" "strip panel"; gap: 8px 10px; padding: max(9px, env(safe-area-inset-top, 0px)) max(14px, env(safe-area-inset-right, 0px)) max(10px, env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px)); }
  .brief-top { grid-template-columns: auto 1fr; gap: 12px; align-items: center; }
  .brief-lead { gap: 10px; }
  .brief .brief-back { width: 38px; height: 34px; padding: 0; justify-content: center; }
  .brief-back__arrow { display: block; }
  .brief-back span, .brief-title, .brief-idea, .brief-sec--diff .brief-sec__head { display: none; }
  .brief-tabs { grid-auto-flow: column; justify-content: start; align-items: center; gap: 14px; min-width: 0; }
  .brief-tabrow { gap: 16px; }
  .brief .brief-tab { font-size: 14px; padding: 4px 1px 7px; }
  .brief-tab::after { height: 2.5px; }
  .brief-who { font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; }
  .brief-prev { border-radius: 14px; }
  .brief-panel { border-radius: 16px; }
  .brief-body { gap: 6px; padding: 10px 13px 9px; }
  .brief-thumb { display: block; }
  .brief-name { font-size: 20px; }
  .brief-tier { margin-top: 3px; gap: 6px; font-size: 11.5px; }
  .brief-pips i { width: 6px; height: 6px; }
  .brief-sec { gap: 6px; padding-top: 8px; }
  .brief-sec__head h4 { font-size: 12.5px; }
  .brief-sec__head span { font-size: 11px; }
  .brief .brief-guide { font-size: 11.5px; }
  .brief-medal { gap: 0; }
  .brief-medal__disc { width: 25px; height: 25px; margin-bottom: 1px; }
  .brief-medal b { font-size: 10.5px; }
  .brief-medal small { font-size: 10px; }
  .brief-diffs { gap: 6px; }
  .brief .brief-diff { grid-auto-flow: column; justify-content: center; align-items: center; gap: 6px; padding: 5px 4px; border-radius: 10px; }
  .brief-diff__ins { width: 22px; height: 22px; }
  .brief-diff b { font-size: 12.5px; }
  .brief-mods { column-gap: 14px; font-size: 11px; }
  .brief-mods div { padding: 1px 0; }
  .brief-acts { padding-top: 0; }
  .brief .brief-go { height: 42px; font-size: 16px; border-radius: 12px; box-shadow: 0 4px 0 #b77a28, 0 8px 18px rgba(0, 0, 0, 0.3); }
  .brief-strip { justify-content: flex-start; gap: 7px; padding: 3px 2px 2px; }
  .brief .brief-tile { flex: 0 0 66px; }
  .brief-tile__name { display: none; }
  .brief-tile__art { border-radius: 8px; }
  .brief-tile .mapc__medal { left: 3px; top: 3px; width: 16px; height: 16px; }
  .brief-tile.on .brief-tile__art { transform: none; }
  .brief-howto { font-size: 11.5px; gap: 3px; }
  .brief-stat b { font-size: 22px; }
  .brief-stat span { font-size: 11px; }
  .brief .brief-go2 { height: 36px; font-size: 13.5px; border-radius: 11px; }
  .brief-practice { gap: 6px; }
  .brief-fine { font-size: 10.5px; }
  .brief-idea--soon { display: block; font-size: 12px; }
  .brief-tile--stack .brief-tile__art b { font-size: 14px; }
  .brief-soon { gap: 6px; padding: 8px; }
  .brief-soon span { font-size: 10.5px; padding: 3px 6px; }
}

/* a small phone on its side (740 x 360 and the like): a smaller name and picture, the tightest rows */
@media (max-height: 380px) {
  .brief-thumb { width: 56px; height: 35px; }
  .brief-name { font-size: 18px; }
  .brief-body { gap: 5px; padding: 8px 12px; }
  .brief-sec { gap: 5px; padding-top: 6px; }
  .brief-medal__disc { width: 22px; height: 22px; }
  .brief-mods div { padding: 0; }
  .brief .brief-go { height: 38px; font-size: 15px; }
  .brief .brief-go2 { height: 32px; font-size: 13px; }
}

/* a narrow upright screen (a phone held upright, a tablet): everything in one column, the screen scrolling */
@media (max-width: 900px) and (min-height: 521px) {
  .brief { display: flex; flex-direction: column; gap: 14px; overflow-y: auto; overscroll-behavior: contain; padding: max(14px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
  .brief-top { grid-template-columns: 1fr; justify-items: start; gap: 12px; }
  .brief-tabs { justify-items: start; }
  .brief-tabrow { gap: 18px; }
  .brief .brief-tab { font-size: 16px; }
  .brief-who { white-space: normal; }
  .brief-prev { flex: none; aspect-ratio: 16 / 10; border-radius: 16px; }
  .brief-strip { flex: none; justify-content: flex-start; }
  .brief .brief-tile { flex-basis: 112px; }
  .brief-panel { flex: none; overflow: visible; }
  .brief-body { overflow: visible; }
  .brief-name { font-size: 28px; }
  .brief-acts { padding: 8px 0 2px; background: linear-gradient(180deg, rgba(23, 15, 66, 0), #170f42 30%); }
}

@media (prefers-reduced-motion: reduce) {
  .brief--enter, .brief-art, .brief-art.in { animation: none; }
  .brief-art { transform: scale(1.02); }
  .brief-tile__art { transition: none; }
}
