/* Steel surfaces and water accents for the playable workbench. */
.fullscreen-game {
  --console-surface: #152b33;
  --console-panel: #1d373e;
  --console-edge: #466068;
  --console-ink: #edf5f2;
  --console-muted: #b9cece;
  --console-accent: #92eee0;
  --console-amber: #ffd095;
  --console-width: 612px;
}

.fullscreen-game .scene-stage {
  background:
    radial-gradient(ellipse at 19% 24%, #98624a29, transparent 49%),
    radial-gradient(ellipse at 84% 76%, #16808337, transparent 48%),
    radial-gradient(ellipse at 48% 42%, #2b4249, #142830 63%, #0b1e26);
}

.fullscreen-game :is(.hud-top,.dock) {
  color: var(--console-ink);
  border: 1px solid var(--console-edge);
  background: linear-gradient(160deg,#203741,var(--console-surface) 58%);
  box-shadow: inset 0 1px #d4f8ef1e, 0 5px 0 #06161b88, 0 10px 28px #08191e69;
  color-scheme: dark;
  backdrop-filter: none;
}

.fullscreen-game :is(.hud-top,.hud-bottom) { max-width: var(--console-width); }
.fullscreen-game .hud-top { padding: 7px; border-radius: 13px; }
.fullscreen-game .stock-balance { color: var(--console-accent); }
.fullscreen-game .stock-balance.low { color: var(--console-amber); }
.fullscreen-game .hud-button {
  background: var(--console-panel);
  border-color: var(--console-edge);
  color: var(--console-ink);
  font-size: .875rem;
  font-weight: 680;
  border-radius: 10px;
  white-space: nowrap;
}
.fullscreen-game .hud-button:hover { background: #2b4a50; }
.fullscreen-game .level-toggle { background: #204848; border-color: #417674; color: var(--console-accent); }
.fullscreen-game .level-toggle:hover { background: #295958; }
.fullscreen-game .dock {
  --dock-icon:#dfedeb; --dock-hover:#25444b; --dock-accent:var(--console-accent);
  --dock-selected:#235153; --dock-muted:var(--console-muted);
  max-width:368px;
  align-self:center;
  padding:5px;
  border-radius:15px;
}
.fullscreen-game #dock .play-actions {
  grid-template-columns: repeat(4,minmax(0,1fr));
}
.fullscreen-game .hud-bottom > #test-button {
  align-self: center;
  display: inline-flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 152px;
  min-width: 152px;
  min-height: 44px;
  margin-bottom: 4px;
  padding: 0 13px;
  border: 1px solid var(--console-accent);
  border-radius: 11px;
  background: linear-gradient(155deg,#a7f5dc,#57ceb9);
  color: #102e30;
  box-shadow: inset 0 1px #f1fff89c, 0 3px 0 #0d524e, 0 7px 14px #06161b74;
  pointer-events: auto;
  font-size: 16px;
  font-weight: 750;
  line-height: 1;
}
.fullscreen-game .hud-bottom > #test-button > svg { width: 19px; height: 19px; }
.fullscreen-game .hud-bottom > #test-button > small { font-size: 16px; font-weight: 750; line-height: 1; }
.fullscreen-game[data-game-phase=testing] .hud-bottom > #test-button {
  background: #235153;
  border-color: #498a82;
  color: var(--console-accent);
  box-shadow: inset 0 1px #b5f4e62b, 0 3px 0 #102a30;
}
.fullscreen-game .hud-bottom > #test-button:active {
  transform: translateY(2px);
  box-shadow: inset 0 1px #f1fff89c, 0 1px 0 #0d524e;
}
.fullscreen-game .locate-button { color: var(--console-accent); border-color: #457674; background: #24484d; }
.fullscreen-game .hud-bottom .quiet { color: var(--console-accent); }

.fullscreen-game :is(.dock,dialog:not(:is(#comic-dialog,#cover-dialog))) .primary {
  background: linear-gradient(155deg,#a7f5dc,#57ceb9);
  border: 1px solid #9ae8d5;
  border-radius: 9px;
  box-shadow: inset 0 1px #a3e6d445, 0 1px #0b4c44;
  color: #102e30;
  font-weight: 720;
}
.fullscreen-game :is(.dock,dialog:not(:is(#comic-dialog,#cover-dialog))) .primary:hover { background: #b8ffe7; }
.fullscreen-game :is(.dock,dialog:not(:is(#comic-dialog,#cover-dialog))) .primary:disabled { opacity: .56; }
.fullscreen-game :is(.hud-top,.hud-bottom,dialog:not(:is(#comic-dialog,#cover-dialog))) button:focus-visible {
  outline: 2px solid var(--console-accent);
  outline-offset: 2px;
}

.fullscreen-game dialog:not(:is(#comic-dialog,#cover-dialog)) {
  --text: var(--console-ink);
  --muted: var(--console-muted);
  --cold: var(--console-accent);
  --warm: var(--console-amber);
  --bad: #ffad95;
  color-scheme: dark;
  color: var(--console-ink);
  background: var(--console-surface);
  border-color: var(--console-edge);
  border-radius: 16px;
}
.fullscreen-game dialog:not(:is(#comic-dialog,#cover-dialog)) .dialog-head {
  background: #1b333d;
  border-bottom-color: #3b555e;
}
.fullscreen-game dialog:not(:is(#comic-dialog,#cover-dialog)) .dialog-close {
  color: var(--console-ink);
  border-color: #47676e;
  background: #28464e;
}
.fullscreen-game dialog:not(:is(#comic-dialog,#cover-dialog)) :is(p,.subtle,.level-group) { color: var(--console-muted); }
.fullscreen-game dialog:not(:is(#comic-dialog,#cover-dialog)) :is(.info-panel,.outline-button,.quiet,.level-row) {
  color: var(--console-ink);
  background: var(--console-panel);
  border-color: #3f5d65;
}
.fullscreen-game dialog:not(:is(#comic-dialog,#cover-dialog)) :is(.level-row.active,.level-row:hover:not(:disabled)) { background: #2c5959; }
.fullscreen-game #details-dialog .motion-option { color:var(--console-ink); }
.fullscreen-game #levels-dialog .level-progress { color:var(--console-muted); }
.fullscreen-game :is(#details-dialog,#levels-dialog) > #next-click-button { display: none; }
.fullscreen-game #hint-dialog { border-bottom: 3px solid #70d4c0; }
.fullscreen-game .work-pin b { background: #20343f; font-size: .8125rem; }

@media (max-width: 375px) and (orientation:portrait) {
  .fullscreen-game .hud-top,.fullscreen-game .dock { padding:6px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .fullscreen-game .hud-top,.fullscreen-game .dock { padding: 6px 7px; }
}
