.night-page {
  --night-ink: #edf7f6;
  --night-muted: #a4bec4;
  --night-gold: #ffdb91;
  --night-teal: #9ee9da;
  --night-line: #3b626d;
  --game-muted: var(--night-muted);
  --game-accent: var(--night-gold);
  color: var(--night-ink);
  background: radial-gradient(ellipse at 72% 1%, #1b3e4d 0, transparent 48rem), #0c1a26;
}
.night-page .merge-nav, .night-layout { width: min(74rem, calc(100% - 2.5rem)); }
.night-layout { margin-inline: auto; padding: clamp(.55rem, 1.4vw, 1.05rem) 0 1.6rem; }
.night-header { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; margin-bottom: .58rem; }
.night-identity h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); line-height: 1; letter-spacing: -.06em; }
.night-identity h1 span { color: var(--night-gold); }
.night-identity p { margin: .24rem 0 0; color: #bed3dd; font-size: clamp(.84rem, 1.45vw, 1rem); }
.night-nav { display: flex; align-items: center; flex-wrap: wrap; gap: .38rem .65rem; }
.night-modes { border-color: #416573; background: #0d2330; }
.night-modes button { min-height: 40px; padding-inline: .65rem; color: #c0d6dc; }
.night-modes button[aria-pressed="true"] { background: linear-gradient(150deg, #345f68, #224858); border-color: #698b93; color: #edfff8; }
.night-maps .campaign-controls, .night-page .game-screen .campaign-controls { margin: 0; }
.night-page .campaign-label { display: none; }
.night-page .campaign-actions { gap: .35rem; }
.night-page .campaign-actions .merge-button { font-size: .84rem; min-height: 42px; }
.night-page .campaign-open { color: #ffe3a9; background: #574532; border-color: #a38655; }
.night-page .campaign-open:hover { color: #fff0c7; background: #6d553b; }
.night-page .campaign-rank { background: #183d4d; border-color: #456978; }
.night-console {
  position: relative; min-width: 0; padding: clamp(.55rem, 1.5vw, 1rem);
  border: 1px solid var(--night-line); border-radius: 1.2rem;
  background: linear-gradient(154deg, #162e3f, #132535 72%);
  box-shadow: inset 0 1px #adcbd017, 0 1.1rem 3.5rem #060f1b94;
}
.night-hud { display: flex; align-items: center; gap: clamp(.45rem, 2vw, 1.3rem); padding: .1rem .3rem .68rem; }
.night-chapter { margin-right: auto; min-width: 0; }
.night-chapter h2 { font-size: clamp(1.19rem, 3.1vw, 1.83rem); line-height: 1.18; color: #eff8f7; white-space: nowrap; }
.night-chapter small { color: #c8b181; font-size: .78rem; font-weight: 730; }
.night-hud-digits { display: flex; align-items: center; gap: clamp(.62rem, 2.5vw, 1.75rem); font-variant-numeric: tabular-nums; }
.night-hud-digits small { display: block; color: #b9d3d7; font-size: .77rem; white-space: nowrap; }
.night-hud-digits b { margin-left: .16em; color: #f5faf3; }
.night-hud-digits .night-shield { color: #a6f3e5; }
.night-wave-lights { display: flex; gap: .2rem; margin-top: .24rem; }
.night-wave-lights i { width: .75rem; height: .35rem; border-radius: 99px; background: #4a5d68; }
.night-wave-lights i[data-lit] { background: #68c6bc; }
.night-wave-lights i[data-current] { background: var(--night-gold); box-shadow: 0 0 .54rem #f6ba56b3; }
.night-health meter { width: clamp(4.05rem, 11vw, 8.4rem); display: block; height: .42rem; margin-top: .24rem; border: 0; border-radius: 1rem; appearance: none; background: #3c5561; }
.night-health meter::-webkit-meter-bar { background: #3c5561; border: 0; border-radius: 1rem; height: .42rem; }
.night-health meter::-webkit-meter-optimum-value { border-radius: 1rem; background: linear-gradient(90deg, #42a797, #9bf1d6); }
.night-health meter::-moz-meter-bar { border-radius: 1rem; background: linear-gradient(90deg, #42a797, #9bf1d6); }
.night-health meter[data-danger]::-webkit-meter-optimum-value { background: #f4a395; }
.night-health meter[data-danger]::-moz-meter-bar { background: #f4a395; }
.night-score strong { color: var(--night-gold); font-size: clamp(1rem, 2.3vw, 1.58rem); line-height: 1; }
.night-pause { flex: 0 0 auto; justify-content: center; padding-inline: .52rem; min-width: 44px; color: #e1f7f5; font-size: 1rem; }
.night-bay { display: grid; grid-template-columns: minmax(0, 1.37fr) minmax(17.75rem, 1fr); gap: clamp(.58rem, 1.5vw, 1.04rem); }
.night-battle, .night-supply { min-width: 0; }
.night-battle { display: grid; align-content: start; }
.night-arena {
  position: relative; isolation: isolate; aspect-ratio: 1.8; overflow: hidden;
  border: 1px solid #507479; border-radius: .88rem;
  background: #103039 url('images/nightwatch-harbor.webp') center / cover no-repeat;
  box-shadow: inset 0 0 1.4rem #091922;
}
.night-arena canvas { display: block; width: 100%; height: 100%; }
.night-splash { position: absolute; inset: 0; }
.night-splash img { width: 100%; height: 100%; display: block; object-fit: cover; }
.night-launch { position: absolute; display: flex; justify-content: center; align-items: end; gap: .48rem; inset: 42% 0 0; padding: .85rem; background: linear-gradient(transparent, #06213259 42%, #061825e6); }
.night-learn { min-height: 48px; color: #fff3cb; border-color: #b8a273; background: #172f47e8; }
.night-start, .night-pause-card > .merge-primary { display: inline-flex; align-items: center; gap: .65rem; min-height: 48px; padding-inline: 1.15rem; font-size: 1.02rem; }
.night-field { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; gap: .3rem; padding-top: .45rem; pointer-events: none; }
.night-field > span { border: 1px solid #5f878974; border-radius: 99px; padding: .2rem .56rem; color: #e0faf8; background: #081e2acc; font-size: .76rem; font-weight: 710; }
.night-field strong {
  margin-top: .12rem; padding: .28rem .56rem; border-radius: .4rem; color: #ffe9a8; background: #142139ec;
  border: 1px solid #a88e60; font-size: clamp(.85rem, 2vw, 1.12rem); box-shadow: 0 .3rem .75rem #0713208c;
}
.night-field strong[data-signal="boss"] { color: #ffe0db; border-color: #f19a88; background: #51242ffc; }
.night-field strong[data-signal="resonance"] { color: #c2fff1; border-color: #9ae7da; background: #123c49; }
.night-overlay { position: absolute; inset: 0; display: grid; place-content: center; gap: .46rem; min-width: 0; overflow: auto; padding: .52rem .74rem; background: radial-gradient(ellipse at 49% 14%, #274a56ef, #091a29f5 86%); }
.night-upgrade-head { text-align: center; }
.night-upgrade-head small { color: #a7e7d7; font-size: .77rem; font-weight: 760; }
.night-upgrade-head h3 { margin: 0; color: #f3eddc; font-size: clamp(1.12rem, 2.7vw, 1.72rem); }
.night-upgrade-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .45rem; width: min(100%, 31rem); }
.night-upgrade-list button {
  display: flex; flex-direction: column; align-items: center; justify-content: start; gap: .19rem; height: 100%; padding: .48rem;
  border: 1px solid #729491; border-radius: .67rem; background: linear-gradient(155deg, #2d5b62, #173548); color: #f1f8f0;
  text-align: center; cursor: pointer; font-family: inherit;
}
.night-upgrade-list button:hover { border-color: var(--night-gold); background: #39656a; }
.night-upgrade-list i { color: var(--night-gold); font-size: clamp(1.02rem, 3vw, 1.58rem); line-height: 1; font-style: normal; }
.night-upgrade-list strong { font-size: clamp(.82rem, 1.8vw, 1.04rem); line-height: 1.23; }
.night-upgrade-list small { color: #c9dbdb; font-size: clamp(.69rem, 1.3vw, .81rem); line-height: 1.32; }
.night-pause-card { display: grid; justify-items: center; gap: .5rem; }
.night-pause-card h3 { margin: 0; color: var(--night-gold); font-size: clamp(1.2rem, 3vw, 1.85rem); }
.night-pause-card .merge-button:not(.merge-primary) { font-size: .82rem; }
.night-shoreline { display: flex; align-items: center; gap: .42rem; padding: .42rem .26rem 0; min-height: 1.82rem; }
.night-shoreline span { color: #d6a84e; }
.night-shoreline p { margin: 0; color: #bcd4d7; font-size: .83rem; }
.night-ended { margin-left: auto; }

.night-supply { display: grid; align-content: start; justify-items: center; position: relative; padding: clamp(.55rem, 1.3vw, .86rem); border: 1px solid #53675f; border-radius: .85rem; background: radial-gradient(ellipse at 50% 0%, #415e5b, #20343b 73%); }
.night-console[data-state="ready"] .night-chip-board > * { opacity: .45; filter: blur(1px); }
.night-console[data-state="ready"] .night-chip-board::before {
  content: '点击「开始守夜」后即可取用芯片';
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 20;
  max-width: calc(100% - 1rem); padding: .46rem .88rem; border-radius: 999px;
  border: 1px solid #7ddbcc80; background: #091d28eb; color: #fff3d2;
  font-size: .82rem; font-weight: 780; line-height: 1.3; text-align: center; white-space: nowrap; pointer-events: none;
  box-shadow: 0 .45rem 1.35rem #040d14c4, inset 0 1px #ffffff1f;
  backdrop-filter: blur(5px);
}
.night-rack { display: grid; grid-template-columns: minmax(0, 1fr); gap: .45rem; width: min(100%, 32rem); }
.night-supply-head { display: flex; justify-content: space-between; align-items: center; gap: .4rem; }
.night-supply-head h3 { margin: 0; color: #f5e5bf; font-size: clamp(1.1rem, 2.7vw, 1.48rem); letter-spacing: -.03em; }
.night-supply-actions { display: flex; align-items: center; gap: .35rem; }
.night-supply-actions > span { color: #a9c8c8; font-size: .73rem; font-weight: 690; white-space: nowrap; }
.night-supply-actions .merge-button { min-height: 38px; padding-inline: .38rem; border-color: #7c9290; color: #fff4d7; background: #365857; font-size: .75rem; }
.night-coach { display: grid; align-content: center; block-size: 2.86em; overflow: auto; margin: 0; padding-inline: .5rem; border-radius: .42rem; background: #10272e99; color: #d4e8e0; font-size: .82rem; line-height: 1.42; }
.night-coach[data-tone="warning"] { color: #ffdf98; }
.night-coach[data-tone="ready"] { color: #bdffdc; }
.night-chip-board {
  position: relative; width: 100%; aspect-ratio: 15 / 7; min-height: 108px; isolation: isolate;
  border: .32rem solid #13252c; border-radius: .62rem;
  background: repeating-linear-gradient(114deg, #2d4449 0 1px, transparent 1px 8px), #203840;
  box-shadow: inset 0 3px 9px #090f17ed, 0 1px #59716f;
}
.night-chip, .night-ghost, .night-tray [data-chip] {
  --chip-ink: #efe6ff; --chip-light: #ceadff; --chip-body: #643f9c; --chip-deep: #3c2868;
  color: var(--chip-ink);
  border: 1px solid var(--chip-light); border-radius: .56rem;
  background: linear-gradient(153deg, var(--chip-body), var(--chip-deep));
  box-shadow: inset 0 .12rem .26rem #ffffff33, inset 0 -.15rem #15102662, 0 .22rem 0 #12212d, 0 .3rem .48rem #11192097;
}
.night-page [data-chip="frost"] { --chip-ink: #e0fdff; --chip-light: #9de5f8; --chip-body: #397c9a; --chip-deep: #266179; }
.night-page [data-chip="surge"] { --chip-ink: #dafff2; --chip-light: #9beaac; --chip-body: #397e71; --chip-deep: #1f5d57; }
.night-page [data-chip="lamp"] { --chip-ink: #fff0c7; --chip-light: #ffd488; --chip-body: #996f3e; --chip-deep: #7a4f2c; }
.night-page [data-chip="hammer"] { --chip-ink: #ffebf5; --chip-light: #f5a6c2; --chip-body: #a15473; --chip-deep: #703852; }
.night-chip {
  position: absolute; left: calc(var(--x) * 100% / 15 + .11rem); top: calc(var(--y) * 100% / 7 + .09rem); z-index: var(--z);
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: .04rem 0 .1rem;
  width: calc(20% - .22rem); height: calc(300% / 7 - .24rem); min-width: 0; cursor: pointer; font-family: inherit;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: transform var(--xh-dur-instant, 110ms) var(--xh-ease-press, ease), filter var(--xh-dur-fast, 180ms) var(--xh-ease-spring, ease);
}
.night-chip > i, .night-tray i, .night-ghost i { font-style: normal; font-weight: 800; font-size: clamp(1.28rem, 3.3vw, 2.1rem); line-height: 1; text-shadow: 0 0 .58rem var(--chip-light); }
.night-chip > span { margin-top: .09rem; font-size: .71rem; font-weight: 740; line-height: 1.1; }
.night-chip > small { font-size: clamp(.51rem, 1.44vw, .64rem); font-weight: 640; opacity: .91; line-height: 1.04; margin-top: .13rem; white-space: nowrap; }
.night-chip > i { font-size: clamp(1rem, 2.75vw, 1.9rem); }
.night-chip[data-blocked] { filter: brightness(.62) saturate(.58); cursor: default; }
.night-chip:enabled:hover, .night-chip:focus-visible { filter: brightness(1.18); transform: translateY(-2px); }
.night-chip:enabled:active { transform: translateY(1px); }
.night-chip[data-hint] { outline: 2px solid #ffd375; outline-offset: 1px; animation: night-hint 1.9s ease-in-out infinite; }
@keyframes night-hint { 50% { box-shadow: 0 0 .85rem #ffcb80ef, inset 0 0 .5rem #ffc767aa; } }
.night-chip[data-match] { outline: 2px solid #baf6d1; outline-offset: -2px; box-shadow: inset 0 0 .62rem #b8ffd74f, 0 .22rem #12212d, 0 0 .7rem #93ffc361; }
.night-ghost { position: fixed; z-index: 9; display: grid; place-items: center; width: 2.3rem; height: 2.35rem; pointer-events: none; border-radius: .46rem; }
.night-chip-board[data-empty]::after { content: '补给已取完'; position: absolute; inset: 0; display: grid; place-items: center; color: #b7cfcc; font-size: .85rem; }
.night-toolbox { display: grid; align-items: center; grid-template-columns: minmax(0,1fr) auto; gap: .48rem; }
.night-tray { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .22rem; padding: .26rem; border: 1px solid #576963; border-radius: .55rem; background: #10252e; }
.night-tray > span { display: grid; place-items: center; min-height: 36px; border: 1px dashed #587281; border-radius: .36rem; background: #182d38; box-shadow: inset 0 2px #0a1c21; }
.night-tray > [data-chip] { border-style: solid; }
.night-tray i { font-size: 1.28rem; }
.night-tray span span { font-size: .64rem; }
.night-return { min-height: 44px; padding-inline: .48rem; font-size: .78rem; }
.night-return b { margin-left: .18em; color: #e5c37d; }
.night-resonance {
  display: flex; align-items: center; min-height: 44px; min-width: 0; gap: .44rem; border: 1px solid #6d968b; background: linear-gradient(150deg, #23595d, #173948);
  color: #edfff7; box-shadow: inset 0 1px #f0ffee32, 0 .18rem #10242e; font-size: .85rem;
}
.night-resonance > span:first-child { font-size: 1.28rem; line-height: 1; color: #b4ffe8; }
.night-resonance:enabled { border-color: #9bead4; background: linear-gradient(135deg, #3c7167, #205467); box-shadow: inset 0 1px #d1ffe06b, 0 0 .85rem #7ceaba53; }
.night-resonance:disabled { opacity: .72; }
.night-resonance b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.night-resonance-dots { display: flex; gap: .26rem; margin-left: auto; }
.night-resonance-dots i { width: .45rem; height: .45rem; transform: rotate(45deg); border: 1px solid #9abbb9; border-radius: .08rem; background: #234d57; }
.night-resonance-dots i[data-lit] { background: #a9f9dd; box-shadow: 0 0 .32rem #b5ffe2; }
.night-footer { display: flex; align-items: start; justify-content: space-between; flex-wrap: wrap; gap: .45rem 1rem; margin-top: .82rem; color: #b8d2d7; font-size: .88rem; }
.night-learn-footer { color: #fff0c9; }
.night-record { margin: .6rem 0 0; color: #ffe2a7; font-variant-numeric: tabular-nums; }
.night-page .game-screen { --game-screen-width: 73rem; background: #0c1d29; }
.night-page.game-focus .game-screen-bar > .campaign-controls { width: auto; }
.game-focus.night-page .night-console { box-shadow: none; }
.night-result, .night-page .campaign-result { border-color: #7a948c; background: linear-gradient(156deg,#203f4c,#142936); }
.night-stamp { display: grid; justify-items: center; gap: .18rem; margin: .65rem 0; padding: .84rem; border: 1px solid #8a8070; border-radius: .75rem; background: radial-gradient(ellipse at 50% 5%, #5a5743, #244153 80%); }
.night-stamp span { color: #ffd887; font-size: 2.12rem; line-height: 1; text-shadow: 0 0 .8rem #ffc76685; }
.night-stamp strong { color: #f8ecce; font-size: 1.32rem; }
.night-stamp p { margin: 0; color: #ffd588; }

.night-help { width: min(33rem, calc(100vw - 1.1rem)); border-color: #618b88; background: linear-gradient(156deg, #214553, #172f42); }
.night-help > p { color: #e0f2ef; font-size: .86rem; margin: .4rem 0 .58rem; }
.night-guide-list { display: grid; gap: .32rem; margin: .4rem 0 .7rem; padding: 0; list-style: none; }
.night-guide-list li { display: flex; align-items: center; gap: .48rem; border: 1px solid #597f82; border-radius: .55rem; padding: .43rem; background: #173848; }
.night-guide-list strong { font-size: .92rem; color: #fbe0a9; }
.night-guide-list p { color: #c5dddf; font-size: .78rem; line-height: 1.45; }
.night-lesson-step { color: #ffeeaf; font-size: 1.11rem; font-weight: 800; }
.night-lesson-icon { flex: none; display: grid; place-items: center; width: 2.18rem; height: 2.18rem; border: 1px solid var(--chip-light,#ceadff); border-radius: .5rem; color: var(--chip-ink,#f1e4ff); background: var(--chip-body,#643f9c); font: 800 1.16rem/1 var(--sans); }
.night-lesson-tiles { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .42rem; }
.night-lesson-card { min-width: 0; display: grid; place-items: center; gap: .18rem; min-height: 61px; border: 1px solid #668991; border-radius: .55rem; padding: .3rem; color: #e4f3ef; background: #25475a; font: 720 .82rem/1.22 var(--sans); cursor: pointer; }
.night-lesson-card[data-covered] { opacity: .44; }
.night-lesson-card[data-used] { opacity: .23; }
.night-lesson-card[data-next] { border-color: #ffcf70; color: #fff5bf; box-shadow: inset 0 0 .62rem #e7b96b56; }
.night-lesson-tools { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .64rem; color: #cbe5e4; font-size: .82rem; }
.night-lesson-options { display: flex; flex-wrap: wrap; gap: .34rem; }
.night-lesson-result { min-height: 1.55em; }

@media (max-width: 54rem) {
  .night-page .merge-nav, .night-layout { width: min(52rem, calc(100% - 1.15rem)); }
  .night-bay { grid-template-columns: minmax(0,1.42fr) minmax(15rem,1fr); }
}
@media (max-width: 42rem) and (orientation: portrait) {
  .night-layout { padding-block: .42rem 1rem; }
  .night-header { margin-bottom: .38rem; gap: .36rem; }
  .night-identity h1 { font-size: clamp(1.72rem, 7vw, 2.4rem); }
  .night-identity p { margin-top: .14rem; font-size: .78rem; }
  .night-console { padding: .42rem; }
  .night-bay { grid-template-columns: minmax(0, 1fr); gap: .42rem; }
  .night-arena { aspect-ratio: 2.08; }
  .night-supply { padding: .42rem; }
  .night-rack { gap: .28rem; }
  .night-coach { block-size: 2.15em; font-size: .76rem; }
  .night-shoreline { padding-top: .16rem; min-height: 1.3rem; }
  .night-shoreline p { font-size: .74rem; }
  .night-hud { padding-inline: .1rem; padding-bottom: .38rem; gap: .4rem; }
  .night-hud-digits { gap: .62rem; }
  .night-hud-digits small { font-size: .66rem; }
  .night-score { display: grid; justify-items: end; gap: .1rem; }
  .night-wave-lights i { width: .54rem; }
  .night-pause { min-width: 40px; min-height: 40px; }
  .night-tray > span { min-height: 32px; }
  .night-return, .night-resonance { min-height: 40px; }
  .night-page .game-screen .campaign-actions .merge-button { min-height: 39px; padding-inline: .45rem; }
}
@media (max-width: 25rem) {
  .night-nav { gap: .32rem; }
  .night-page :is(.night-nav, .game-screen-bar) :is(.night-modes button, .campaign-actions .merge-button) { padding-inline: .43rem; font-size: .74rem; }
  .night-chapter h2 { font-size: 1.13rem; }
  .night-chapter small { font-size: .68rem; }
  .night-hud-digits { gap: .39rem; }
  .night-health meter { width: 3.65rem; }
  .night-upgrade-list { gap: .3rem; }
  .night-upgrade-list button { padding: .37rem .26rem; }
}
@media (orientation: landscape) and (max-height: 36rem) {
  .night-page.game-focus .game-screen {
    grid-template-columns: minmax(0, min(100%, 56rem));
    justify-content: center; gap: .35rem;
  }
  .night-page.game-focus .night-console { padding: .35rem; }
  .night-page.game-focus .night-bay { grid-template-columns: minmax(0,1.12fr) minmax(0,1fr); align-items: start; gap: .45rem; }
  .night-page.game-focus .night-hud { padding-bottom: .32rem; }
  .night-page.game-focus .night-supply { padding: .38rem; }
  .night-page.game-focus .night-rack { width: min(100%, max(14rem, calc((100dvh - 9rem) * 2.14))); gap: .27rem; }
  .night-page.game-focus .night-supply-head h3 { font-size: 1rem; }
  .night-page.game-focus .night-coach { font-size: .7rem; }
  .night-page.game-focus .night-arena { max-height: max(10rem, calc(100dvh - 8rem)); }
  .night-page.game-focus .night-tray > span { min-height: 28px; }
}
@media (orientation: landscape) and (max-height: 27rem) {
  .night-page.game-focus .game-screen {
    grid-template-columns: minmax(0, 1fr) auto;
    scrollbar-gutter: auto;
    padding-inline: max(.65rem, env(safe-area-inset-left)) max(.65rem, env(safe-area-inset-right));
  }
  .night-page.game-focus .game-screen > .game-tools { grid-area: 1 / 2; position: static; }
  .night-page.game-focus .game-screen-bar {
    grid-area: 1 / 1; flex-wrap: nowrap; align-self: center; gap: .24rem;
    overflow-x: auto; scrollbar-width: none;
  }
  .night-page.game-focus .game-screen-bar > :is(.night-modes, .campaign-controls) { flex: none; }
  .night-page.game-focus .game-screen-bar .campaign-actions { flex-wrap: nowrap; }
  .night-page.game-focus .night-console { grid-area: 2 / 1 / auto / -1; }
  .night-page.game-focus .night-chapter small { display: block; font-size: .69rem; line-height: 1.12; }
  .night-page.game-focus .night-chapter h2 { font-size: 1.01rem; }
  .night-page.game-focus .night-hud { padding: 0 0 .17rem; }
  .night-page.game-focus .night-pause { height: 42px; min-height: 42px; padding-block: .24rem; }
  .night-page.game-focus .night-arena { max-height: max(8rem, calc(100dvh - 10rem)); }
  .night-page.game-focus .night-rack {
    grid-template-columns: minmax(0, 1fr) auto;
    width: min(100%, max(13rem, calc((100dvh - 15rem) * 2.14)));
  }
  .night-page.game-focus :is(.night-supply-head, .night-coach, .night-chip-board) { grid-column: 1 / -1; }
  .night-page.game-focus .night-supply-head h3 { line-height: 1.25; }
  .night-page.game-focus .night-supply-actions .merge-button { display: none; }
  .night-page.game-focus .night-chip > i { font-size: .95rem; }
  .night-page.game-focus .night-chip > small { margin-top: .07rem; }
  .night-page.game-focus .night-coach { block-size: 2.55em; line-height: 1.27; }
  .night-page.game-focus .night-toolbox { gap: .25rem; }
  .night-page.game-focus :is(.night-return, .night-resonance) { height: 44px; padding-block: .24rem; }
  .night-page.game-focus .night-return { padding-inline: .36rem; }
  .night-page.game-focus .night-resonance { gap: .27rem; padding-inline: .39rem; font-size: .72rem; }
  .night-page.game-focus .night-resonance > span { display: none; }
}
@media (orientation: landscape) and (max-height: 27rem) and (max-width: 40rem) {
  .night-page.game-focus .game-screen [data-full] span:last-child { display: none; }
  .night-page.game-focus .game-screen-bar :is(.night-modes button, .campaign-actions .merge-button) { padding-inline: .42rem; font-size: .74rem; }
}
@media (orientation: landscape) and (max-height: 22rem) {
  .night-page.game-focus .night-hud { padding-bottom: 0; }
  .night-page.game-focus .night-supply { padding-block: .24rem; }
  .night-page.game-focus .night-rack { gap: .15rem; }
  .night-page.game-focus .night-coach { block-size: 1.55em; }
  .night-page.game-focus :is(.night-return, .night-resonance) { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .night-chip { transition: none; animation: none !important; } }
.game-reduced-motion .night-chip { transition: none; animation: none !important; }
