/* Compact desktop layout for laptop windows and increased browser scaling. */
@media (min-width: 760px) and (max-height: 850px), (min-width: 760px) and (max-width: 1280px) {
  .game .topbar { height: 64px !important; padding: 4px 9px !important; gap: 6px !important; }
  .game .topbar .brand { flex-basis: 206px; width: 206px; height: 49px; padding: 4px 6px 4px 57px; }
  .game .topbar .brand-mark { width: 60px; height: 60px; left: -4px; top: -5px; }
  .game .topbar .brand b { font-size: 15px; }
  .game .topbar .brand small { font-size: 9px; padding: 2px 4px; }
  .game .topbar .resources { gap: 4px; margin: 2px !important; }
  .game .topbar .resources .resource { height: 35px; gap: 4px !important; padding: 2px 4px !important; }
  .game .topbar .resource b { font-size: 14px !important; }
  .game .topbar > .icon-button { flex-basis: 42px; width: 42px; height: 42px; margin-top: 0; }
  .ref-rail { top: 72px; left: 8px; gap: 5px; }
  .ref-rail button { width: 62px; height: 59px; padding: 2px; border-width: 2px; border-radius: 12px; font-size: 10px; }
  .ref-rail button img { width: 34px; height: 34px; }
  .ref-activity { top: 72px; right: 8px; width: clamp(138px, 15vw, 182px); gap: 5px; }
  .ref-activity button { min-height: 57px; grid-template-columns: 43px minmax(0, 1fr); padding: 4px; border-width: 2px; border-radius: 11px; }
  .ref-activity img { width: 42px; height: 45px; }
  .ref-activity b { font-size: 12px; }
  .ref-activity small { font-size: 10px; }
  .ref-dock { left: 8px; bottom: 7px; gap: 5px; }
  .ref-dock button { width: clamp(64px, 6.5vw, 90px); height: 58px; padding: 3px; border-width: 2px; border-radius: 11px; font-size: 10px; }
  .ref-dock img { width: 36px; height: 32px; }
  .ref-develop { right: 8px; bottom: 7px; width: 130px; height: 61px; padding: 3px 4px 5px; border-width: 2px; border-radius: 14px; font-size: 16px; }
  .ref-develop::before { width: 64px; height: 33px; }

  #winter-nursery .wn-head { padding: 5px 10px; gap: 6px; }
  #winter-nursery .wn-head > div { font-size: 21px; }
  #winter-nursery .wn-head strong { font-size: 12px; }
  #winter-nursery .wn-button { min-height: 36px; padding: 5px 9px; font-size: 13px; }
  #winter-nursery .wn-intro { padding: 4px; }
  #winter-nursery .wn-intro h2 { font-size: 20px; }
  #winter-nursery .wn-intro p { margin: 3px; font-size: 12px; }
  #winter-nursery .wn-glass { width: min(1050px, 95%); padding: 8px; border-width: 7px; border-radius: 19px; }
  #winter-nursery .wn-glass::before { display: none; }
  #winter-nursery .wn-beds { gap: 8px; }
  #winter-nursery .wn-bed { padding: 7px; border-radius: 12px; }
  #winter-nursery .wn-bed h3 { font-size: 14px; margin: 0 0 3px; }
  #winter-nursery .wn-snow { height: clamp(50px, 12dvh, 92px); border-bottom-width: 7px; }
  #winter-nursery .wn-snow > .ss-art { width: 76px; height: 76px; min-height: 0; }
  #winter-nursery .wn-snow > .ss-art img { width: 100%; height: 100%; }
  #winter-nursery .wn-name { font-size: 15px; margin: 4px 0 2px; }
  #winter-nursery .wn-state, #winter-nursery .wn-timer { font-size: 12px; min-height: 0; margin: 3px 0; }
  #winter-nursery .wn-care { margin-top: 5px; }
  #winter-nursery .wn-seeds { width: min(1050px, 95%); gap: 8px; margin: 9px auto; }
  #winter-nursery .wn-seeds .wn-button { min-height: 78px; grid-template-columns: 42px minmax(0, 1fr); gap: 3px; }
  #winter-nursery .wn-seeds .ss-art { width: 42px; height: 55px; min-height: 0; }
  #winter-nursery .wn-seeds .ss-art img, #winter-nursery .wn-seeds .ss-art svg { width: 100%; height: 100%; }
  #winter-nursery .wn-footer { padding: 4px 12px; }

  .ss-mode .v3-head { padding: 5px 12px; }
  .ss-mode .v3-head h2 { font-size: 23px; }
  .ss-mode #v3-balances { padding: 4px 12px; font-size: 12px; }
  .ss-mode #v3-tabs { padding: 4px 10px; gap: 4px; }
  .ss-mode #v3-tabs .v3-btn { padding: 5px 10px; min-height: 34px; }
  .ss-mode #v3-content { padding: 0 10px 12px; }
  .ss-mode .ss-intro { padding: 5px 6px; }
  .ss-mode .ss-intro h3 { margin: 1px 0; font-size: 19px; }
  .ss-mode .ss-intro p { margin: 3px 0; font-size: 12px; }
  .ss-mode .ss-categories { gap: 5px; margin-bottom: 8px; padding: 5px 0 7px; }
  .ss-mode .ss-categories .ss-action { padding: 5px 8px; min-height: 34px; font-size: 12px; }
  .ss-mode .ss-grid { gap: 8px; }
  .ss-mode .ss-card { min-height: 0; padding: 7px; }
  .ss-mode .ss-card .ss-art { height: clamp(65px, 13dvh, 108px); min-height: 0; margin-bottom: 4px; }
  .ss-mode .ss-card .ss-art img, .ss-mode .ss-card .ss-art svg { width: auto; height: 100%; max-width: 100%; }
  .ss-mode .ss-card h4 { min-height: 0; margin: 2px 0; font-size: 15px; }
  .ss-mode .ss-card .ss-quantity, .ss-mode .ss-card .ss-price, .ss-mode .ss-card .ss-availability { min-height: 0; margin: 3px 0; }
  .ss-mode .ss-card .ss-action { min-height: 36px; padding: 5px; }
  .ss-mode #v3-status { min-height: 0; padding: 3px 10px; }
}

@media (min-width: 1001px) and (max-height: 850px), (min-width: 1001px) and (max-width: 1280px) {
  #gift-workshop:where([data-screen="RUNE"]) .gw-factory { height: 100%; min-height: 0; grid-template-columns: minmax(0, 1fr) clamp(215px, 22vw, 280px); grid-template-rows: minmax(0, 1fr) auto; gap: 6px; }
  #gift-workshop:where([data-screen="RUNE"]) .gw-factory .gw-production-space { min-height: 0; gap: 5px; }
  #gift-workshop:where([data-screen="RUNE"]) .gw-factory .gw-work-header { min-height: 0; }
  #gift-workshop:where([data-screen="RUNE"]) .gw-factory .gw-work-header strong { font-size: 15px; }
  #gift-workshop:where([data-screen="RUNE"]) .gw-factory .gw-route .gw-station-label { min-height: 44px; padding: 3px; }
  #gift-workshop:where([data-screen="RUNE"]) .gw-factory .gw-route .gw-station-label small { font-size: 10px; }
  #gift-workshop:where([data-screen="RUNE"]) .gw-factory .gw-stage-viewport { flex: 1 1 auto; min-height: 0; overflow-y: hidden; }
  #gift-workshop:where([data-screen="RUNE"]) .gw-factory .gw-stage-viewport > .gw-scene { height: 100%; min-height: 0; min-width: 0; }
  #gift-workshop:where([data-screen="RUNE"]) .gw-factory .gw-scene-toolbar { min-height: 0; padding: 0 4px; }
  #gift-workshop:where([data-screen="RUNE"]) .gw-factory .gw-scene-toolbar .gw-link { min-height: 32px; }
  #gift-workshop:where([data-screen="RUNE"]) .gw-factory > :is(.gw-setup,.gw-work-dock,.gw-ready-card,.gw-info-card) { max-height: 100%; min-height: 0; box-sizing: border-box; overflow: auto; padding: 8px; }
  #gift-workshop:where([data-screen="RUNE"]) .gw-screen-idle > .gw-setup { gap: 4px; }
  #gift-workshop:where([data-screen="RUNE"]) .gw-setup > div { margin-bottom: 4px; }
  #gift-workshop:where([data-screen="RUNE"]) .gw-setup .gw-recipe { min-height: 61px; padding: 4px; }
  #gift-workshop:where([data-screen="RUNE"]) .gw-shift-receipt { min-height: 0; padding: 4px 7px; gap: 3px 8px; }
  #gift-workshop:where([data-screen="RUNE"]) .gw-shift-receipt p { margin: 0; }
  #gift-workshop:where([data-screen="RUNE"]) .gw-progress-area { padding: 4px 8px; }
  #gift-workshop:where([data-screen="RUNE"]) .gw-progress { margin: 3px 0; height: 8px; }
  #gift-workshop:where([data-screen="RUNE"]) .gw-progress-controls { gap: 5px; }
  #gift-workshop:where([data-screen="RUNE"]) .gw-progress-controls .gw-primary { min-height: 38px; padding: 4px 12px; }
  #gift-workshop:where([data-screen="RUNE"]) .gw-status { min-height: 0; padding: 3px 8px; }
}
@media (min-width: 760px) and (max-height: 850px), (min-width: 760px) and (max-width: 1280px) {
  #game #open-profile { min-height: 0 !important; height: 49px; }
  #game #player-progress { font-size: 9px; }
  #game #player-progress > * { font-size: inherit; }
}
@media (min-width: 1001px) and (max-height: 850px), (min-width: 1001px) and (max-width: 1280px) {
  #gift-workshop:where([data-screen="RUNE"]) .gw-factory .gw-scene { container-type: size; }
  #gift-workshop:where([data-screen="RUNE"]) .gw-factory .gw-scene .gw-station .gw-worker { width: min(66%, 48cqh); }
}
@media (min-width: 760px) and (max-height: 850px), (min-width: 760px) and (max-width: 1280px) {
  .ss-mode .ss-card .ss-art { position: relative; }
  .ss-mode .ss-card .ss-art > :is(img, svg) {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
  }
}
@media (min-width: 1001px) and (max-height: 850px), (min-width: 1001px) and (max-width: 1280px) {
  #gift-workshop:where([data-screen="RUNE"]) .gw-factory .gw-ready-card h3 { margin: 4px 0; font-size: 22px; }
  #gift-workshop:where([data-screen="RUNE"]) .gw-factory .gw-ready-card p { margin: 4px 0; }
  #gift-workshop:where([data-screen="RUNE"]) .gw-factory .gw-ready-card > small:not(.gw-field-label) { display: none; }
  #gift-workshop:where([data-screen="RUNE"]) .gw-factory .gw-rune-callout {
    grid-template-columns: 27px minmax(0, 1fr);
    gap: 5px;
    margin-top: 7px;
    padding: 5px;
  }
  #gift-workshop:where([data-screen="RUNE"]) .gw-factory .gw-rune-callout-emblem { width: 27px; height: 27px; }
  #gift-workshop:where([data-screen="RUNE"]) .gw-factory .gw-rune-callout-copy { display: none; }
  #gift-workshop:where([data-screen="RUNE"]) .gw-factory .gw-rune-entry { grid-column: 2; min-height: 36px; padding: 4px; font-size: 12px; }
}
