/* 시작 메뉴: 중앙 하단의 네 버튼과 양옆의 보조 메뉴 */
.start-screen {
  background:
    linear-gradient(180deg,rgba(5,10,23,.42),rgba(5,10,23,.2) 36%,rgba(5,10,23,.9) 94%),
    radial-gradient(ellipse at center,rgba(8,17,36,.45),transparent 70%),
    url('../assets/playmat/바이징크스.png') center / cover no-repeat;
}
.home-screen {
  height:100%; display:flex; flex-direction:column; overflow-y:auto;
  padding:24px 30px calc(var(--legal-h,90px) + 16px);
  container: start-menu / size;
  position:relative; isolation:isolate; background:#050a17;
}
.home-background { position:absolute; inset:0; z-index:-1; overflow:hidden; pointer-events:none; }
.home-background img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.home-background::after {
  content:''; position:absolute; inset:0;
  background:linear-gradient(180deg,rgba(5,10,23,.42),rgba(5,10,23,.2) 36%,rgba(5,10,23,.9) 94%),
    radial-gradient(ellipse at center,rgba(8,17,36,.45),transparent 70%);
}
.home-playmat { opacity:1; transition:opacity 1s ease-in-out; }
.home-playmat.is-faded { opacity:0; }
/* 공간은 유지해 중앙 문구가 움직이지 않도록 하고, 무입력 시 주변 UI만 천천히 숨긴다. */
.home-header, .home-bottom, body.start-menu-visible #build-tag, body.start-menu-visible #legal-footer {
  opacity:1; visibility:visible; transition:opacity .35s ease,visibility 0s;
}
body.home-idle .home-header, body.home-idle .home-bottom,
body.home-idle #build-tag, body.home-idle #legal-footer {
  opacity:0; visibility:hidden; pointer-events:none;
  transition:opacity 2s ease,visibility 0s 2s;
}
.home-header { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-shrink:0; }
.home-edition { color:#ead9b1; font-size:14px; font-weight:700; letter-spacing:.16em; text-shadow:0 2px 8px #000; }
.home-edition span { margin-left:12px; color:#d8deea; font-size:12px; font-weight:400; letter-spacing:.04em; }
.home-brand { flex:1 1 0; min-height:180px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; padding:36px 0 48px; text-align:center; word-break:keep-all; }
.home-brand h1 { margin:0; max-width:100%; font-size:clamp(28px,3.8cqw,52px); line-height:1.25; letter-spacing:-.02em; color:#f5e6c8; text-shadow:0 3px 12px #000; }
.home-brand p { margin:0; font-size:clamp(14px,1.4cqw,18px); line-height:1.7; color:#e3e8f0; text-shadow:0 2px 10px #000; }
.home-brand .home-credits { font-size:clamp(12px,1.1cqw,14px); color:#c3ccdb; }
.home-bottom { flex-shrink:0; width:100%; margin-top:auto; }
.home-navigation { display:grid; grid-template-columns:minmax(185px,1fr) minmax(0,740px) minmax(185px,1fr); gap:18px; align-items:center; }
.home-primary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; padding:8px; border:1px solid #758da85c; border-radius:12px; background:#081321d9; box-shadow:0 7px 0 #020710,0 14px 32px #0008,inset 0 1px #ffffff14; }
.home-play-btn { min-width:0; min-height:72px; padding:14px 8px; border:1px solid #ffffff47; border-radius:6px; color:#fff9ec; font-size:clamp(14px,1.5cqw,22px); font-weight:800; white-space:nowrap; text-shadow:0 2px 2px #0006; box-shadow:inset 0 2px #ffffff24,0 4px 0 #0006; transition:filter .15s,transform .15s; }
.home-online { background:linear-gradient(#1487b8,#08608e); }
.home-offline { background:linear-gradient(#c9574b,#96392e); }
.home-options { background:linear-gradient(#d6a13c,#a87320); }
.home-decks { background:linear-gradient(#439980,#236955); }
.home-play-btn:hover { filter:brightness(1.16); transform:translateY(-3px); }
.home-play-btn:active { transform:translateY(2px); }
.home-left { justify-self:start; }
.home-right { display:flex; flex-direction:column; align-items:stretch; gap:8px; justify-self:end; }
.home-side-btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:40px; padding:9px 13px; border:1px solid #71899d85; border-radius:6px; background:#122031e8; color:#e0e9f1; font-size:14px; white-space:nowrap; box-shadow:0 3px 0 #030912b3; transition:background .15s,border-color .15s; }
.home-side-btn:hover { background:#263b50; border-color:#bed1e1; }
.tutorial-btn { color:#f0d397; border-color:#b6a06b85; }
.tutorial-btn span { font-size:21px; }
.openchat-btn { color:#ffe47c; border-color:#b8a45a85; }
.patchnotes-btn { gap:20px; color:#ead9b1; }
.home-stats-status { margin-top:20px; text-align:center; color:#b4bfce; font-size:12px; line-height:1.6; }
.start-screen button:focus-visible, .start-subscreen button:focus-visible, .start-subscreen input:focus-visible { outline:3px solid #fff0b8; outline-offset:4px; }
.home-play-btn[aria-expanded="true"] { outline:2px solid #fff0b8; outline-offset:4px; filter:brightness(1.18); }
.start-subscreen {
  position:fixed; inset:0; z-index:70; height:auto;
  padding:24px 20px calc(var(--legal-h,90px) + 24px);
  background:rgba(3,8,18,.42); backdrop-filter:blur(3px);
  animation:home-panel-backdrop-in .24s ease both;
}
.start-panel {
  --panel-accent:#7dc9ed;
  position:relative; flex-shrink:0; width:min(100%,490px); padding:36px;
  border:1px solid #66839d; border-radius:18px;
  background:linear-gradient(150deg,#1c3046f5,#0c1729fa 65%);
  box-shadow:0 28px 90px #0009,inset 0 1px #ffffff20;
  animation:home-panel-in .24s cubic-bezier(.2,.8,.2,1) both;
}
.start-panel-kicker { margin:0 32px 10px; color:var(--panel-accent); font-size:12px; letter-spacing:.2em; font-weight:700; }
.start-panel h2 { color:#f4ead4; font-size:30px; margin-bottom:10px; }
.start-panel .subtitle { font-size:16px; margin-bottom:28px; }
.start-panel .login-box { max-width:none; }
.start-panel .login-box label { text-align:left; color:#d7deea; font-size:14px; }
.start-panel .login-box input { min-width:0; }
.start-panel .hint { font-size:14px; line-height:1.7; }
.start-panel .err-msg { text-align:left; overflow-wrap:anywhere; font-size:14px; }
.start-panel button:disabled { cursor:wait; opacity:.6; }
.start-panel-close { position:absolute; top:14px; right:14px; display:grid; place-items:center; width:36px; height:36px; padding:0; border:1px solid #62748c; border-radius:10px; background:#1b2b40; color:#c9d8e8; font-size:24px; line-height:1; }
.start-panel-close:hover { background:#304761; color:#fff; }
.start-subscreen.is-closing { animation:home-panel-backdrop-out .16s ease both; }
.start-subscreen.is-closing .start-panel { animation:home-panel-out .16s ease both; }
/* BOT 선택처럼 한 단계 위의 팝업이 열리면 메인 배경 위에 그 팝업만 보인다. */
body.modal-open .start-subscreen { visibility:hidden; }
@keyframes home-panel-backdrop-in { from { opacity:0; } to { opacity:1; } }
@keyframes home-panel-backdrop-out { from { opacity:1; } to { opacity:0; } }
@keyframes home-panel-in { from { opacity:0; transform:translateY(18px) scale(.97); } to { opacity:1; transform:translateY(0) scale(1); } }
@keyframes home-panel-out { from { opacity:1; transform:translateY(0) scale(1); } to { opacity:0; transform:translateY(10px) scale(.98); } }
.offline-panel { --panel-accent:#f1b2a0; width:min(100%,630px); border-color:#998174; background:linear-gradient(150deg,#342b35f5,#0c1729fa 65%); }
.offline-choices { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.offline-choice { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; min-height:190px; padding:24px 12px; border:1px solid #5c9a88; border-radius:12px; background:linear-gradient(#203e40,#152a32); color:#eaf6f1; transition:transform .16s,border-color .16s,background .16s; }
.offline-choice:hover { transform:translateY(-3px); border-color:#baf1d5; background:#294e4d; }
.bot-choice { border-color:#9275ac; background:linear-gradient(#382e4f,#231e36); }
.bot-choice:hover { border-color:#d6b3f8; background:#47385f; }
.offline-choice-icon { font-size:34px; }
.offline-choice strong { font-size:19px; }
.offline-choice > span:last-child { color:#c0ccdb; font-size:14px; line-height:1.6; }
.hotseat-link { margin-top:22px; font-size:14px; }
/* BOT 설정과 덱 선택: 같은 팝업 안에서 이동하며, 작은 화면에서는 목록만 스크롤한다. */
#modal-overlay:has(.bot-dialog) { padding:12px; background:rgba(3,8,18,.55); backdrop-filter:blur(3px); }
#modal-shell:has(.bot-dialog) { display:flex; width:740px; max-width:100%; max-height:100%; }
#modal-shell #modal-box:has(> .bot-dialog) {
  display:flex; width:100%; max-width:100%; max-height:100%; min-height:0; padding:0; overflow:hidden;
  border:1px solid #998174; border-radius:18px; container:bot-menu / inline-size;
  background:linear-gradient(150deg,#342b35f5,#0c1729fa 65%); box-shadow:0 28px 90px #0009,inset 0 1px #ffffff20;
  animation:home-panel-in .24s cubic-bezier(.2,.8,.2,1) both;
}
.bot-dialog { --panel-accent:#f1b2a0; display:flex; flex-direction:column; width:100%; min-height:0; color:#e4ebf5; }
.bot-dialog button { font:inherit; touch-action:manipulation; }
.bot-dialog button:focus-visible { outline:3px solid #fff0b8; outline-offset:-3px; }
.bot-dialog button:disabled { cursor:default; opacity:.3; }
.bot-dialog-header { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:22px 24px 18px; flex-shrink:0; }
.bot-dialog-header .start-panel-kicker { margin:0 0 6px; font-size:10px; }
#modal-box .bot-dialog h3 { margin:0; color:#f4ead4; font-size:26px; line-height:1.3; }
.bot-dialog-description { margin-top:8px; color:#b7c4d6; font-size:13px; line-height:1.5; word-break:keep-all; }
.bot-dialog .bot-dialog-close { display:grid; place-items:center; width:44px; height:44px; flex-shrink:0; border:1px solid #62748c; border-radius:10px; background:#1b2b40; color:#d2dfed; font-size:26px; }
.bot-setup-content { display:grid; grid-template-columns:minmax(0,1.2fr) minmax(0,1fr); gap:16px; min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:2px 24px; }
.bot-deck-selections { display:grid; gap:10px; align-content:start; min-width:0; }
.bot-deck-button, .bot-deck-option { display:flex; align-items:center; gap:12px; width:100%; min-width:0; padding:12px; border:1px solid #665979; border-radius:12px; color:#eef1f9; background:linear-gradient(140deg,#382e4f,#192639); text-align:left; }
.bot-deck-button { padding:10px; }
.bot-deck-button:hover, .bot-deck-option:hover { background:#3c3653; border-color:#c1a4d8; }
.bot-deck-button:first-child { border-color:#587f76; background:linear-gradient(140deg,#203e40,#192639); }
.bot-legend-thumb { display:block; flex:0 0 48px; width:48px; height:67px; object-fit:contain; border-radius:5px; background:#0b1424; }
.bot-random-thumb { display:grid; place-items:center; font-size:27px; border:1px dashed #72839c; }
.bot-deck-copy { display:flex; flex:1; flex-direction:column; gap:5px; min-width:0; overflow-wrap:anywhere; }
.bot-deck-copy strong { font-size:15px; line-height:1.4; }
.bot-deck-copy > span { color:#c0ccdb; font-size:12px; line-height:1.5; }
.bot-deck-copy small { color:#a7c5c3; font-size:11px; line-height:1.5; }
.bot-deck-change { flex-shrink:0; color:#d7c4a4; font-size:11px; }
.bot-difficulty { min-width:0; padding:16px; border:1px solid #736080; border-radius:12px; background:linear-gradient(150deg,#302b42,#142033); }
.bot-difficulty h4 { color:#dac4e9; font-size:13px; margin:0 0 18px; }
.bot-difficulty-controls { display:flex; align-items:center; gap:8px; }
.bot-difficulty-controls button { flex:0 0 44px; width:44px; height:48px; border:1px solid #8c799e; border-radius:10px; background:#443753; color:#f2e7ff; font-size:30px; }
.bot-difficulty-controls button:hover:not(:disabled) { background:#665078; }
.bot-level-summary { flex:1; min-width:0; text-align:center; }
.bot-level-summary strong { display:block; color:#f1dfce; font-size:17px; line-height:1.4; word-break:keep-all; }
.bot-level-summary span { display:block; margin-top:6px; color:#a9b7cd; font-size:11px; font-variant-numeric:tabular-nums; }
#bot-level-description { margin-top:18px; font-size:13px; color:#b7c4d6; line-height:1.65; word-break:keep-all; }
.bot-tournament-note { flex-shrink:0; margin:12px 24px 0; color:#a6b0c2; font-size:11px; line-height:1.5; }
.bot-dialog-footer { display:flex; align-items:center; justify-content:space-between; gap:14px; flex-shrink:0; padding:16px 24px 22px; }
.bot-dialog-footer p { min-width:0; color:#a6b0c2; font-size:12px; line-height:1.5; word-break:keep-all; }
.bot-dialog .bot-start-button, .bot-dialog .bot-back-button { flex-shrink:0; min-height:48px; padding:12px 24px; border:1px solid #ca9d89; border-radius:10px; color:#fff2e8; background:linear-gradient(#b65c53,#843f43); font-size:15px; font-weight:700; }
.bot-start-button span { margin-left:18px; }
.bot-dialog .bot-back-button { background:#28364d; border-color:#61748e; padding:12px 16px; font-size:13px; }
.bot-deck-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; min-height:0; padding:2px 24px; overflow-y:auto; overscroll-behavior:contain; }
.bot-deck-option[aria-pressed="true"] { border-color:#f1cf96; background:#423b3d; }
.bot-deck-check { flex-shrink:0; color:#e8c68c; font-size:20px; }
@container bot-menu (max-width:540px) {
  .bot-dialog-header { padding:16px; gap:10px; }
  .bot-setup-content { grid-template-columns:1fr; padding:2px 16px; gap:12px; }
  .bot-deck-list { grid-template-columns:1fr; padding:2px 16px; }
  .bot-difficulty { padding:12px; }
  .bot-difficulty h4 { margin-bottom:10px; }
  #bot-level-description { margin-top:10px; }
  .bot-tournament-note { margin:10px 16px 0; }
  .bot-dialog-footer { padding:14px 16px 16px; gap:10px; }
  .bot-dialog-footer p { font-size:11px; }
  .bot-dialog .bot-start-button { padding:12px 16px; }
  .bot-start-button span { margin-left:6px; }
}
@media (max-height:500px) {
  .bot-dialog-header { padding-top:12px; padding-bottom:12px; }
  .bot-dialog-header .start-panel-kicker { display:none; }
  #modal-box .bot-dialog h3 { font-size:22px; }
  .bot-dialog-description { margin-top:4px; }
  .bot-dialog-footer { padding-top:10px; padding-bottom:12px; }
}
.system-settings { width:min(700px,calc(100vw - 116px)); color:#e4ebf5; }
.settings-header { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:20px; }
#modal-box .settings-header h3 { margin:0 0 6px; color:#f6e6bd; font-size:23px; }
.settings-header p { color:#a9b7cd; font-size:13px; line-height:1.5; }
.system-settings button { font:inherit; cursor:pointer; }
.system-settings .settings-close { flex-shrink:0; width:34px; height:34px; border:1px solid #445773; border-radius:8px; background:#233149; color:#c7d3e6; font-size:22px; }
.settings-sections { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.settings-section { min-width:0; padding:16px; border:1px solid #34465f; border-radius:12px; background:#111c2e; }
.settings-wide { grid-column:1 / -1; }
.settings-section h4 { margin:0 0 14px; color:#d9c396; font-size:13px; font-weight:700; }
.settings-toggle { display:flex; align-items:center; justify-content:space-between; gap:16px; cursor:pointer; }
.settings-toggle + .settings-toggle { margin-top:14px; padding-top:14px; border-top:1px solid #2c3b51; }
.settings-option-copy { display:block; min-width:0; }
.settings-option-copy strong { display:block; font-size:14px; font-weight:600; line-height:1.5; }
.settings-option-copy small { display:block; margin-top:4px; color:#a7b5cb; font-size:12px; line-height:1.65; word-break:keep-all; }
.settings-toggle-control { position:relative; flex-shrink:0; display:flex; flex-direction:column; align-items:center; gap:4px; }
.settings-toggle-control input { position:absolute; inset:0; z-index:1; width:100%; height:100%; margin:0; opacity:0; cursor:pointer; }
.settings-switch { display:block; position:relative; width:42px; height:24px; border:1px solid #61718b; border-radius:20px; background:#34415a; transition:background .15s,border-color .15s; }
.settings-switch::after { content:''; position:absolute; top:3px; left:3px; width:16px; height:16px; border-radius:50%; background:#c0cbdb; transition:transform .15s,background .15s; }
.settings-toggle-control input:checked + .settings-switch { background:#246851; border-color:#74bea0; }
.settings-toggle-control input:checked + .settings-switch::after { transform:translateX(18px); background:#ecfff5; }
.settings-toggle-control input:focus-visible + .settings-switch { outline:3px solid #a8d4ff; outline-offset:3px; }
.settings-toggle-state { color:#a6b5cb; font-size:11px; line-height:1.2; }
.settings-toggle-control input:checked ~ .settings-toggle-state { color:#9cdfbd; }
.settings-actions { display:grid; gap:8px; }
.settings-toggle + .settings-actions { margin-top:14px; }
.settings-game .settings-actions { grid-template-columns:repeat(2,minmax(0,1fr)); }
.system-settings .settings-action { width:100%; padding:11px 12px; border:1px solid #415572; border-radius:8px; background:#1b2a40; color:#dce6f5; text-align:left; font-size:13px; line-height:1.5; word-break:keep-all; }
.system-settings .settings-action:hover { background:#293d59; border-color:#718caa; }
.system-settings .settings-action.primary { background:#342c1e; border-color:#7e6842; color:#f0d9a1; }
.system-settings .settings-action.danger { border-color:#77505b; color:#f2b0b6; }
.system-settings .settings-action.danger:hover { background:#3d2731; border-color:#b57580; }
.system-settings button:focus-visible { outline:3px solid #a8d4ff; outline-offset:3px; }
.settings-footer { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:18px; }
.settings-footer > span { color:#9daec6; font-size:12px; line-height:1.5; }
.system-settings .settings-done { min-width:112px; padding:11px 20px; border:1px solid #cfad66; border-radius:9px; background:#674b25; color:#fff0c9; font-size:14px; font-weight:700; }
.settings-done:hover { filter:brightness(1.14); }
.scale-settings { width:min(420px,calc(100vw - 116px)); color:#e4ebf5; }
.scale-description { margin-bottom:18px; color:#a7b5cb; font-size:13px; line-height:1.7; word-break:keep-all; }
.scale-control { padding:16px; border:1px solid #34465f; border-radius:12px; background:#111c2e; }
.scale-control-header { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.scale-control-header label { font-size:14px; }
.scale-control-header output { color:#f0d9a1; font-size:24px; font-weight:700; font-variant-numeric:tabular-nums; }
.scale-slider { display:block; width:100%; height:32px; margin:8px 0 2px; accent-color:#d9bd7f; cursor:ew-resize; }
.scale-slider:focus-visible { outline:3px solid #a8d4ff; outline-offset:3px; border-radius:8px; }
.scale-limits { display:flex; justify-content:space-between; gap:12px; color:#9daec6; font-size:12px; }
.scale-actions { justify-content:space-between; }
@media (max-width:600px) {
  .system-settings { width:calc(100vw - 104px); }
  .settings-sections, .settings-game .settings-actions { grid-template-columns:1fr; }
  .settings-section { padding:13px; }
  .settings-header { margin-bottom:14px; }
  .settings-footer { align-items:stretch; flex-direction:column; gap:10px; }
}
body.start-menu-visible #build-tag { top:76px; right:31px; bottom:auto; color:#d0d9e6; font-size:12px; text-shadow:0 1px 4px #000; }

@media (max-width:1100px) {
  .home-screen { padding:12px clamp(8px,2vw,20px) calc(var(--legal-h,90px) + 12px); }
  body.start-menu-visible #build-tag { top:65px; right:18px; display:block; }
}
@media (max-width:480px) {
  .home-edition { font-size:12px; }
  .home-edition span { margin-left:4px; }
  .start-panel { padding:26px 18px; }
  .offline-choices { grid-template-columns:1fr; gap:12px; }
  .offline-choice { min-height:142px; gap:10px; padding:16px; }
}
/* 줄을 바꾸지 않고 왼쪽 / 중앙 네 버튼 / 오른쪽 배치를 유지한다.
   컨테이너 크기는 화면 배율과 고지문 여백을 제외한 실제 메뉴 공간이다. */
@container start-menu (max-width:1100px) {
  .home-brand { padding:20px 0 28px; gap:clamp(8px,2cqw,14px); }
  .home-brand h1 { font-size:clamp(24px,3.8cqw,42px); }
  .home-brand p { font-size:14px; }
  .home-navigation { grid-template-columns:minmax(42px,1fr) minmax(0,5fr) minmax(60px,1.4fr); gap:clamp(2px,1cqw,12px); }
  .home-primary { padding:clamp(3px,.65cqw,6px); gap:clamp(2px,.6cqw,6px); border-radius:8px; }
  .home-play-btn { font-size:clamp(10px,2cqw,18px); min-height:clamp(52px,8cqw,64px); padding:8px 1px; white-space:normal; word-break:keep-all; }
  .home-left, .home-right { min-width:0; width:100%; }
  .home-right { gap:clamp(4px,.8cqw,8px); }
  .home-side-btn { min-width:0; min-height:44px; padding:6px clamp(2px,.7cqw,8px); gap:clamp(2px,.5cqw,5px); font-size:clamp(10px,1.5cqw,14px); white-space:normal; word-break:keep-all; }
  .home-navigation .home-side-btn { width:100%; }
  .home-stats-status { margin-top:clamp(8px,2cqh,12px); font-size:clamp(10px,1.5cqw,12px); }
}
@container start-menu (max-width:600px) {
  .tutorial-btn { flex-direction:column; line-height:1.3; gap:1px; }
  .tutorial-btn span { font-size:16px; }
}
@container start-menu (max-width:480px) and (orientation:portrait) {
  .home-navigation { gap:2px; }
  .home-navigation .home-side-btn { flex-direction:column; line-height:1.3; }
  .tutorial-btn span { font-size:18px; }
}
@container start-menu (max-width:320px) {
  .home-brand p { font-size:12px; }
  .home-brand .home-credits { font-size:10px; }
  .home-navigation { grid-template-columns:minmax(0,1fr) minmax(0,5fr) minmax(0,1.4fr); }
  .home-play-btn, .home-side-btn { font-size:clamp(8px,3.125cqw,10px); }
}
@container start-menu (max-height:400px) {
  .home-brand { min-height:min-content; padding:10px 0; gap:clamp(4px,2cqh,8px); }
  .home-brand h1 { font-size:clamp(20px,9cqh,32px); }
  .home-brand p { font-size:clamp(11px,4.5cqh,14px); line-height:1.4; }
  .home-brand .home-credits { font-size:clamp(10px,4cqh,12px); }
  .home-play-btn { min-height:clamp(44px,18cqh,64px); padding-top:6px; padding-bottom:6px; }
  .home-side-btn { min-height:clamp(32px,12cqh,44px); padding-top:4px; padding-bottom:4px; }
  .home-right { gap:4px; }
  .home-stats-status { margin-top:6px; font-size:10px; line-height:1.4; }
}
@container start-menu (max-height:220px) {
  .home-brand { padding:4px 0; gap:3px; }
  .home-brand h1 { font-size:16px; }
  .home-brand p { font-size:10px; line-height:1.3; }
  .home-brand .home-credits { font-size:9px; }
  .home-play-btn { min-height:40px; }
  .home-side-btn { min-height:28px; padding-top:3px; padding-bottom:3px; }
  .home-navigation .home-side-btn { font-size:9px; line-height:1.2; gap:2px; padding-left:2px; padding-right:2px; }
  .home-stats-status { margin-top:4px; font-size:9px; }
}
@media (max-height:400px) {
  body.start-menu-visible #build-tag { top:18px; right:120px; font-size:9px; }
}
@media (prefers-reduced-motion:reduce) {
  .home-header, .home-bottom, body.start-menu-visible #build-tag, body.start-menu-visible #legal-footer,
  body.home-idle .home-header, body.home-idle .home-bottom, body.home-idle #build-tag, body.home-idle #legal-footer { transition:none; }
  .home-play-btn, .home-side-btn, .offline-choice { transition:none; }
  .start-subscreen, .start-panel, .start-subscreen.is-closing, .start-subscreen.is-closing .start-panel { animation:none; }
  #modal-shell #modal-box:has(> .bot-dialog) { animation:none; }
  .offline-choice:hover { transform:none; }
}
