.mobile-icon, .mobile-sheet:not([open]) { display: none; }
body:not(.mobile-layout) .mobile-only { display: none !important; }

.mobile-layout {
  --phone-hit: 48px;
  --phone-gap: 8px;
  --phone-label: .875rem;
  --phone-secondary: .8125rem;
  --phone-nav-label: clamp(var(--phone-secondary), 3.8vw, var(--phone-label));
  --phone-left: max(10px, env(safe-area-inset-left));
  --phone-right: max(10px, env(safe-area-inset-right));
  --phone-bottom: max(10px, env(safe-area-inset-bottom));
  --phone-panel: #172a27;
  --phone-line: #b89a626e;
  --phone-gold: #f5d69d;
}
.mobile-layout.onboarding-preview { --phone-preview-bar: var(--tour-bar); }
.mobile-layout .mobile-only { display: revert; }
.mobile-layout .desktop-only { display: none; }
.mobile-layout .mobile-icon {
  display: block;
  flex: none;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mobile-layout :is(.mobile-icon-only, .mobile-sheet-trigger) { touch-action: manipulation; }
.mobile-layout :is(.mobile-icon-only, .mobile-sheet-trigger.mobile-icon-only) {
  display: inline-grid;
  place-items: center;
  min-width: var(--phone-hit);
  min-height: var(--phone-hit);
  padding: 0;
  font-size: 0;
  line-height: 0;
}
.mobile-layout .mobile-icon-only > :not(.mobile-icon) { display: none; }
.mobile-layout .mobile-sheet-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: var(--phone-hit);
  padding: 0 11px;
  border: 1px solid var(--phone-line);
  border-radius: 9px;
  background: var(--phone-panel);
  color: var(--phone-gold);
  font-weight: 720;
}
.mobile-layout .mobile-sheet-trigger.mobile-icon-only { font-size: 0; gap: 0; padding: 0; }
.mobile-layout :is(.mobile-sheet-trigger, .mobile-sheet button):enabled:active { background-color: #3a4e3e; }

.mobile-layout .mobile-sheet {
  position: fixed;
  inset: auto var(--phone-right) var(--phone-bottom) var(--phone-left);
  width: min(440px, calc(100% - var(--phone-left) - var(--phone-right)));
  max-width: none;
  max-height: calc(100dvh - var(--phone-bottom) - max(14px, env(safe-area-inset-top)));
  margin: 0 auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #a48b60;
  border-radius: 15px;
  background: var(--phone-panel);
  color: var(--shell-ivory);
}
.mobile-sheet::backdrop { background: #070e12b5; }
.mobile-sheet-head {
  position: sticky;
  z-index: 1;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--phone-gap);
  padding: 6px 12px 6px 16px;
  border-bottom: 1px solid var(--phone-line);
  background: var(--phone-panel);
}
.mobile-sheet-head h2 { margin: 0; font: 600 1.45rem/1.1 var(--shell-serif); }
.mobile-sheet-head button { border: 0; border-radius: 9px; background: none; color: var(--phone-gold); }
.mobile-sheet-body { display: grid; gap: var(--phone-gap); padding: 12px; }
.ec-scene[data-dressing-collapsed] .ec-room-dressing__collapse .mobile-icon { rotate: 180deg; }

/* The route bar uses a single row even when the game is opened on a short screen. */
.mobile-layout .shell-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 4px;
  padding: max(6px, env(safe-area-inset-top)) max(7px, env(safe-area-inset-right)) 6px max(7px, env(safe-area-inset-left));
}
.mobile-layout .shell-logo { display: none; }
.mobile-layout .shell-tools { gap: 4px; }
.mobile-layout .ec-yard-tools { gap: var(--phone-gap); }
.mobile-layout .shell-back { border-color: var(--phone-line); background: var(--phone-panel); }
.mobile-layout .shell-main-nav { order: 0; justify-content: center; gap: 4px; flex-wrap: wrap; }
.mobile-layout .shell-main-nav a { --reward-count-top: -.25rem; --reward-count-right: -.2rem; }
.mobile-layout .shell-bar :is(.shell-back, .shell-main-nav a, .elka-radio > summary) { min-width: 44px; min-height: 44px; }
.mobile-layout .elka-radio-tools-bar > .elka-radio-toggle { display: none; }
.mobile-layout .elka-radio > summary { border-radius: 9px; background: var(--phone-panel); }
.mobile-layout .elka-radio:is([open], [data-playing='true']) > summary { background: #3c4534; }
.mobile-layout .elka-radio-panel { max-height: calc(100dvh - max(72px, env(safe-area-inset-top) + 60px) - var(--phone-bottom)); }
.mobile-layout .shell-wallet { --wallet-height: 44px; }
.mobile-layout .shell-wallet__add { min-width: 44px; }
@media (max-width: 450px) {
  .mobile-layout .shell-tools { grid-area: 1 / 2 / auto / -1; }
  .mobile-layout .shell-main-nav {
    display: grid;
    grid-area: 2 / 1 / auto / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--phone-gap);
  }
  .mobile-layout .shell-bar .shell-main-nav .mobile-icon-only {
    display: flex;
    justify-content: center;
    gap: 4px;
    min-height: var(--phone-hit);
    padding: 2px;
    font: 650 var(--phone-secondary)/1.15 var(--shell-sans);
  }
  .mobile-layout .shell-main-nav .mobile-icon { width: 16px; height: 16px; }
}

/* The tree and its dressing tools sit between shortcuts and the game dock. */
.mobile-layout .ec-scene {
  --yard-dock-size: calc(110px + var(--phone-bottom));
  --yard-care-base: calc(var(--yard-dock-size) + 10px);
  --yard-arcade-space: var(--yard-dock-size);
}
.mobile-layout .ec-scene[data-editing='false'],
.mobile-layout .ec-scene[data-editing='false'][data-young='true'] {
  --yard-tree-max-width: 124%;
  --yard-tree-cap: 37rem;
  --hub-tree-foot: calc(var(--yard-care-base) + var(--yard-care-height, 108px) + 10px);
  --yard-tree-width: min(var(--yard-tree-max-width), var(--yard-tree-cap), var(--yard-tree-edge-fit, var(--yard-tree-max-width)),
    calc((100cqh - var(--hub-tree-foot) - var(--yard-header-height, 116px) - 7px) / var(--yard-crown-scale, 1)));
  height: max(calc(100dvh - var(--phone-preview-bar, 0px)), 30rem);
}
.mobile-layout .ec-scene[data-editing='false'][data-young='true'] {
  --yard-tree-max-width: 183%;
  --yard-tree-cap: 48rem;
}
.mobile-layout .ec-scene[data-editing='false'][data-wrap-equipped] { --hub-tree-foot: calc(var(--yard-care-base) + var(--yard-care-height, 108px) + 32px); }
.mobile-layout .ec-yard-header {
  grid-template: 'title tools' auto 'links links' auto / minmax(0, 1fr) auto;
  gap: 8px;
  padding: max(7px, env(safe-area-inset-top)) var(--phone-right) 12px var(--phone-left);
  background: linear-gradient(#101e23f5, #14242c99 65%, transparent);
  pointer-events: none;
}
.mobile-layout .ec-yard-header :is(a, button, summary, .elka-radio-panel) { pointer-events: auto; }
.mobile-layout .ec-yard-header:has(.ec-yard-shortcuts) {
  grid-template: 'title deal tools' auto 'links links links' auto / minmax(var(--phone-hit), 1fr) auto auto;
  column-gap: 5px;
}
.mobile-layout .ec-yard-header > .ec-yard-deals-trigger { grid-area: deal; }
.mobile-layout .ec-scene[data-editing='true'] .ec-yard-header {
  grid-template-areas: 'title';
  padding-bottom: 4px;
}
.mobile-layout .ec-scene[data-editing='true'] .ec-yard-header :is(.ec-yard-links, .ec-yard-tools) { display: none; }
@media (max-width: 380px) {
  .mobile-layout .ec-yard-links { gap: 5px; }
}
.mobile-layout .ec-yard-links {
  display: grid;
  justify-self: stretch;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--phone-gap);
}
.mobile-layout .ec-yard-links:has(#yard-more) {
  grid-template-columns: minmax(var(--phone-hit), 1fr) minmax(70px, 1.15fr) repeat(2, minmax(var(--phone-hit), 1fr));
}
.mobile-layout .ec-yard-links > .ec-button {
  display: grid;
  justify-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  min-height: var(--phone-hit);
  padding: 2px 3px;
  background: #172f30f5;
  font: 650 var(--phone-nav-label)/1.12 var(--shell-sans);
}
.mobile-layout .ec-yard-links > .ec-button .mobile-icon { width: 18px; height: 18px; color: var(--phone-gold); }
.mobile-layout .ec-yard-links > .ec-yard-fold-trigger { min-width: var(--phone-hit); }
.mobile-layout .ec-yard-links > [aria-controls='yard-more'] { position: relative; }
.mobile-layout .ec-yard-header .ec-yard-fold-panel {
  display: grid;
  grid-column: 1 / -1;
  gap: var(--phone-gap);
}
.mobile-layout .ec-yard-links > .ec-yard-fold-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mobile-layout .ec-yard-links > #yard-deals { grid-template-columns: minmax(0, 1fr); }
.mobile-layout .ec-yard-links .ec-yard-more-tools {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: var(--phone-gap);
}
.mobile-layout .ec-yard-more-tools .elka-radio-tools-bar { order: -1; }
.mobile-layout .ec-yard-more-tools .elka-radio > summary { min-width: var(--phone-hit); min-height: var(--phone-hit); }
.mobile-layout .ec-yard-links > .ec-yard-fold-trigger[data-ready]::before {
  content: '';
  position: absolute;
  top: 5px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #eab164;
}
.mobile-layout .ec-yard-fold-panel > :is(.ec-button, .ec-room-prop) {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: var(--phone-hit);
  gap: 7px;
  padding: 5px;
  border: 1px solid var(--phone-line);
  border-radius: 8px;
  background: #172f30f5;
  color: #fff0d3;
  font: 650 var(--phone-label)/1.15 var(--shell-sans);
}
.mobile-layout .ec-yard-fold-panel > :is(a, button) .mobile-icon { width: 18px; height: 18px; color: var(--phone-gold); }
.mobile-layout .ec-yard-fold-panel > .ec-room-prop .ec-room-prop__art {
  position: absolute;
  top: 4px;
  right: 7px;
  width: 14px;
  height: 14px;
  pointer-events: none;
}
.mobile-layout .ec-yard-fold-panel > .ec-room-prop :is(.ec-post-envelope, .ec-remaining-clock, .daily-tasks-note, .daily-tasks-entry),
.mobile-layout .ec-yard-fold-panel .yard-gift-art::before,
.mobile-layout .ec-yard-fold-panel .yard-gift-art::after { display: none; }
.mobile-layout .ec-yard-links .ec-yard-fold-trigger[aria-expanded='true'] { border-color: #e6c286; background: #314b40; }
.mobile-layout .ec-yard-header h1 { font-size: clamp(1.05rem, 5.25cqw, 1.6rem); }
.mobile-layout .ec-yard-logo { gap: 6px; min-height: var(--phone-hit); }
.mobile-layout .ec-yard-logo .shell-insignia { width: 26px; height: 26px; }
.mobile-layout .ec-yard-shortcuts { display: none; }
.mobile-layout .ec-yard-links > .ec-room-prop--wheel {
  position: relative;
  display: grid;
  grid-template: 21px auto / 1fr;
  justify-self: stretch;
  justify-items: center;
  align-content: center;
  min-width: 0;
  min-height: var(--phone-hit);
  gap: 3px;
  padding: 3px 4px;
  border: 1px solid var(--phone-line);
  border-radius: 9px;
  background: var(--phone-panel);
  color: var(--phone-gold);
}
.mobile-layout .ec-yard-links > .ec-room-prop--wheel .ec-room-prop__art {
  position: absolute;
  top: 4px;
  right: 7px;
  width: 14px;
  height: 14px;
  background: none;
  pointer-events: none;
}
.mobile-layout .ec-yard-links > .ec-room-prop--wheel :is(.wheel-room-icon, .ec-remaining-clock) { display: none; }
.mobile-layout .ec-yard-links .ec-room-prop .ec-room-prop__tag {
  display: block;
  min-height: 0;
  padding: 0;
  background: none;
  box-shadow: none;
  font: 650 var(--phone-label)/1.12 var(--shell-sans);
  text-align: center;
  text-shadow: none;
}
.mobile-layout .ec-yard-links .ec-room-prop--wheel[data-ready='true'] { border-color: #bb9c65; background: #323328; }
.mobile-layout .ec-yard-header > .ec-yard-deals-trigger {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: var(--phone-hit);
  min-width: 68px;
  gap: 3px;
  padding: 3px;
  border-color: #9c8058;
  border-radius: 9px;
  background: #2f2c23;
  color: #fff0c8;
  font: 720 var(--phone-label)/1.1 var(--shell-sans);
}
.mobile-layout .ec-yard-header > .ec-yard-deals-trigger:is(:hover, [aria-expanded='true']) {
  border-color: #f5d69d;
  background: #5b442a;
}
.mobile-layout .ec-yard-deals-trigger::after {
  content: '';
  position: absolute;
  top: 8px;
  right: 6px;
  width: 5px;
  height: 5px;
  border: solid var(--phone-gold);
  border-width: 0 1px 1px 0;
  rotate: 45deg;
}
.mobile-layout .ec-yard-deals-trigger[aria-expanded='true']::after { rotate: 225deg; }
.mobile-layout .ec-yard-deals-cue {
  display: flex;
  align-items: center;
  gap: 3px;
  color: #ffe0a3;
  font: 650 var(--phone-secondary)/1 var(--shell-sans);
}
.mobile-layout .ec-yard-deals-gift .mobile-icon { width: 13px; height: 13px; }

.mobile-layout .ec-yard-fold-panel .ec-yard-offers {
  position: static;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--phone-gap);
  width: 100%;
  margin: 0;
}
.mobile-layout .ec-yard-offers:not(:has([data-offer='starter'])) { grid-template-columns: minmax(0, 1fr); }
.mobile-layout .ec-yard-fold-panel .ec-yard-offer {
  grid-template-columns: 19px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-height: 60px;
  padding: 5px 8px;
  border: 1px solid #a68a5c9c;
  border-radius: 8px;
  background: #272c23f5;
  color: #ffebc1;
  box-shadow: none;
}
.mobile-layout .ec-yard-fold-panel .ec-yard-review { display: block; padding: 0; }
.mobile-layout .ec-yard-offers :is(.ec-yard-review__snow, .ec-yard-review__rarity, .ec-yard-review__bonus, .ec-yard-starter__details, s) { display: none; }
.mobile-layout .ec-yard-review .ec-yard-offer__copy > strong { display: none; }
.mobile-layout .ec-yard-fold-panel .ec-yard-review__action {
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr);
  align-items: center;
  justify-self: stretch;
  gap: 7px;
  width: 100%;
  min-height: 58px;
  padding: 5px 8px;
  color: #ffebc1;
  text-align: left;
  text-decoration: none;
}
.mobile-layout .ec-yard-offer[data-offer='starter'] .ec-yard-offer__art { display: none; }
.mobile-layout .ec-yard-offer .mobile-icon { width: 19px; height: 19px; color: var(--phone-gold); }
.mobile-layout .ec-yard-offer__mobile-copy { display: grid; gap: 3px; }
.mobile-layout .ec-yard-offer :is(.ec-yard-offer__mobile-copy, .ec-yard-offer__copy) > strong {
  font: 720 var(--phone-label)/1.15 var(--shell-sans);
}
.mobile-layout .ec-yard-offer__mobile-copy > small,
.mobile-layout .ec-yard-offer .commerce-starter-price { color: #e7cca3; font: 600 var(--phone-secondary)/1.16 var(--shell-sans); }
.mobile-layout .ec-yard-offer .commerce-starter-price > strong { font: inherit; }
.mobile-layout .ec-yard-offer .commerce-starter-price__saving { color: #dfedbb; }
.mobile-layout .commerce-review-dialog .commerce-dialog__head h2 { flex: 1 1 0; min-width: 0; }

.mobile-layout .ec-yard-tree-base { width: min(430px, calc(100% - var(--phone-left) - var(--phone-right))); }
.mobile-layout .ec-room-care {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--phone-hit);
  gap: 6px var(--phone-gap);
  padding: 6px;
  border-radius: 12px;
}
.mobile-layout .ec-room-care .ec-room-growth {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: center;
  align-items: baseline;
  gap: 4px 6px;
  min-height: var(--phone-hit);
  padding: 2px 6px;
  background: #223b33;
}
.mobile-layout .ec-room-growth .ec-meter { grid-column: 1 / -1; margin: 0; }
.mobile-layout .ec-room-growth strong { font-size: 1rem; }
.mobile-layout .ec-room-growth > span { font-size: var(--phone-secondary); }
.mobile-layout .ec-room-growth[data-new-level] .ec-room-growth__badge { grid-area: 1 / 2; }
.mobile-layout .ec-room-growth[data-new-level] > span:not(.ec-room-growth__badge) { visibility: hidden; }
.mobile-layout .ec-room-care__tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--phone-gap); }
.mobile-layout .ec-room-care .ec-room-prop { min-width: 0; min-height: var(--phone-hit); grid-template-rows: 22px auto; padding: 2px; }
.mobile-layout .ec-room-care .ec-room-prop__art,
.mobile-layout .ec-room-care .ec-room-prop__tag small,
.mobile-layout .ec-room-decorate__icon { display: none; }
.mobile-layout .ec-room-care .ec-room-prop .mobile-icon { color: var(--phone-gold); }
.mobile-layout .ec-room-care .ec-room-prop:disabled .mobile-icon { color: #a4b3a5; }
.mobile-layout .ec-room-care .ec-room-prop__tag { font-size: var(--phone-secondary); overflow-wrap: normal; }
.mobile-layout .ec-room-care__reminder { top: 3px; right: 4px; width: .43rem; height: .43rem; font-size: 0; }
.mobile-layout .ec-room-care .ec-tree-power { align-self: stretch; width: var(--phone-hit); min-height: var(--phone-hit); height: auto; border-radius: 8px; }
.mobile-layout .ec-yard-primary .ec-room-decorate {
  display: inline-flex;
  justify-content: center;
  min-height: var(--phone-hit);
  gap: 5px;
  padding: 0 8px;
  border-color: #ffe3a3;
  background: #efcf92;
  color: #39291b;
  font-size: var(--phone-label);
}
.mobile-layout .ec-yard-primary .ec-room-decorate .mobile-icon { width: 20px; height: 20px; }
.mobile-layout .ec-yard-primary .ec-room-decorate[data-new-toys] { position: relative; }
.mobile-layout .ec-yard-primary .ec-room-decorate[data-new-toys]::after {
  content: attr(data-new-toys);
  position: absolute;
  top: -5px;
  right: -4px;
  min-width: 17px;
  padding: 1px 3px;
  border: 1px solid #ffe4b1;
  border-radius: 20px;
  background: #932e3b;
  color: #fff2d5;
  font: 720 .65rem/1.2 var(--shell-sans);
}

.mobile-layout :is(.ec-yard-primary, .ec-yard-games) {
  position: absolute;
  z-index: 9;
  inset: auto var(--phone-right) var(--phone-bottom) var(--phone-left);
  display: grid;
  width: min(430px, calc(100% - var(--phone-left) - var(--phone-right)));
  margin-inline: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--phone-gap);
  align-items: stretch;
  padding: 5px;
  border: 1px solid var(--phone-line);
  border-radius: 12px;
  background: #172925f5;
}
.mobile-layout .ec-yard-primary {
  inset-block-end: calc(var(--phone-bottom) + 56px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0;
  border: 0;
  background: none;
}
.mobile-layout :is(.ec-yard-primary, .ec-yard-games) > .ec-yard-game { position: static; width: auto; translate: none; }
.mobile-layout :is(.ec-yard-primary, .ec-yard-games) .ec-room-prop {
  height: 100%;
  align-content: center;
  gap: 4px;
  min-height: var(--phone-hit);
  padding: 4px 2px;
  border: 1px solid #675c43;
  border-radius: 7px;
  background: #243933;
  color: var(--phone-gold);
  touch-action: manipulation;
}
.mobile-layout :is(.ec-yard-primary, .ec-yard-games) .ec-room-prop:is(:active, :focus-visible) { background: #3e523f; border-color: #e7c889; }
.mobile-layout .ec-yard-primary .ec-room-prop--claw {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  background: #73363a;
  border-color: #d6a86e;
  color: #fff0cb;
}
.mobile-layout :is(.ec-yard-primary, .ec-yard-games) :is(.ec-room-prop__art, .ec-room-play) { display: none; }
.mobile-layout :is(.ec-yard-primary, .ec-yard-games) .ec-room-prop .ec-room-prop__tag {
  width: auto;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  font: 650 clamp(.84375rem, 4vw, var(--phone-label))/1.12 var(--shell-sans);
  letter-spacing: -.025em;
  white-space: nowrap;
}
.mobile-layout .ec-yard-primary .ec-room-prop .ec-room-prop__tag,
.mobile-layout .ec-yard-primary .ec-room-decorate { font: 760 1rem/1.12 var(--shell-sans); }
.mobile-layout .ec-yard-games { padding-block: 0; }
.mobile-layout .ec-yard-games .ec-room-prop { display: flex; justify-content: center; align-items: center; }
.mobile-layout .ec-yard-games .mobile-icon { width: 17px; height: 17px; }

.mobile-layout .ec-yard-mobile-help { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--phone-gap); }
.mobile-layout .ec-zone .ec-yard-mobile-help .ec-yard-game__help {
  position: static;
  width: auto;
  min-height: var(--phone-hit);
  padding: 4px;
  border-radius: 7px;
  background: #233832;
  font: 650 .86rem/1.2 var(--shell-sans);
}

.mobile-layout .ec-scene[data-editing='true'] {
  --room-ground: clamp(14rem, 38dvh, 19rem);
  height: max(calc(100dvh - var(--phone-preview-bar, 0px)), 32rem);
}
.mobile-layout .ec-scene[data-editing='true'] .ec-tree-stage {
  left: 50%;
  width: min(94%, calc((100cqh - var(--room-ground) - 3.5rem) * .98), 27rem);
}
.mobile-layout .ec-scene[data-editing='true'] .ec-tree-power-controls { left: 50%; bottom: calc(var(--room-ground) - 1.5rem); }
.mobile-layout .ec-room-dressing {
  --dressing-padding: 7px;
  inset: auto var(--phone-right) var(--phone-bottom) var(--phone-left);
  width: auto;
  translate: none;
  max-height: min(17rem, 39dvh);
}
.mobile-layout .ec-room-dressing__head { gap: 5px; }
.mobile-layout .ec-room-dressing__selection {
  display: block;
  padding: 7px var(--dressing-padding);
  border-block-start: 1px solid var(--phone-line);
  color: var(--phone-gold);
  font-size: var(--phone-label);
}
.mobile-layout .ec-room-dressing__head h2 { font-size: clamp(1rem, 4.5cqw, 1.4rem); }
.mobile-layout .ec-room-dressing__head .ec-button { min-height: var(--phone-hit); }
.mobile-layout .ec-room-dressing__head .ec-room-dressing__collapse { display: grid; place-items: center; width: var(--phone-hit); flex: none; }
.mobile-layout .ec-scene[data-dressing-collapsed] .ec-room-dressing__head { padding-bottom: var(--dressing-padding); }
.mobile-layout .ec-scene[data-dressing-collapsed] .ec-room-dressing__body { display: none; }
.mobile-layout[data-route='tree'] .shell-toast { bottom: max(76px, env(safe-area-inset-bottom) + 66px); }
.mobile-layout[data-route='tree']:has(.ec-room-dressing:not([hidden])) .shell-toast { bottom: min(45dvh, 18rem); }
.mobile-layout[data-route='tree']:has(.ec-scene[data-dressing-collapsed]) .shell-toast { bottom: calc(var(--phone-bottom) + 69px); }

/* In play, the collection name and the two frequent controls get the space. */
.mobile-layout:has(.elka-claw.is-at-cabinet) { grid-template-rows: minmax(0, 1fr); padding-bottom: 0; }
.mobile-layout:has(.elka-claw.is-at-cabinet) > .shell-head { display: none; }
.mobile-layout .is-at-cabinet .claw-badges > .claw-wallet { display: inline-flex; grid-area: 2 / 1 / auto / -1; justify-self: end; }
.mobile-layout .claw-badges {
  grid-template-columns: var(--phone-hit) minmax(0, 1fr) var(--phone-hit);
  gap: var(--phone-gap);
  align-items: start;
}
.mobile-layout .claw-badges .claw-home { grid-area: 1 / 1; background: #301f1e; color: var(--phone-gold); }
.mobile-layout .claw-badges .claw-home::before { content: none; }
.mobile-layout .claw-badges .claw-carousel {
  grid-area: 1 / 2;
  grid-template-columns: var(--phone-hit) minmax(0, 1fr) var(--phone-hit);
  min-height: var(--phone-hit);
}
.mobile-layout .claw-carousel button { min-height: var(--phone-hit); }
.mobile-layout .claw-badges .claw-carousel h2 { font-size: clamp(1rem, 3.8vw, 1.25rem); }
.mobile-layout [data-tour-claw] .claw-badges .claw-carousel { grid-template-columns: minmax(0, 1fr); }
.mobile-layout [data-tour-claw] .claw-carousel h2 { grid-column: 1; }
.mobile-layout .claw-badges .claw-exit { display: none; }
.mobile-layout .claw-badges .mobile-sheet-trigger { grid-area: 1 / 3; background: #301f1e; }
.mobile-layout .claw-stage-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--phone-gap); }
.mobile-layout .claw-stage-tools .claw-badge-labels { grid-column: 1 / -1; margin: 0; }
.mobile-layout .claw-stage-tools :is(.claw-prizes-open, .claw-help, .claw-stock-refresh),
.mobile-layout .claw-stage-tools .claw-badge-labels > :is(button, span) {
  justify-content: center;
  min-height: var(--phone-hit);
  padding: 6px 9px;
  border: 1px solid var(--phone-line);
  border-radius: 7px;
  background: #273b33;
  color: #ffe9c3;
}
.mobile-layout .claw-stage-tools .claw-stock-refresh { grid-column: 1 / -1; display: grid; justify-items: center; gap: 2px; }
.mobile-layout .claw-console .claw-camera-tools button {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  align-content: center;
  gap: 2px;
  min-height: var(--phone-hit);
  font: 680 var(--phone-secondary)/1.05 var(--shell-sans);
}
.mobile-layout .claw-camera-tools .mobile-icon { width: 18px; height: 18px; }
.mobile-layout .claw-console .claw-camera-tools .claw-overhead[aria-pressed='true'] { background: #f0cf93; color: #39261a; }
.mobile-layout .claw-console .claw-camera-tools .mobile-icon-only > :not(.mobile-icon) { display: none; }
.mobile-layout .claw-console .claw-camera-tools .mobile-icon-only > :is(.claw-overhead-label, .claw-shake-label),
.mobile-layout .claw-console .claw-camera-tools .mobile-icon-only.claw-orbit > span { display: block; white-space: normal; }
.mobile-layout .claw-console :is(.claw-stick, .claw-grab, .claw-turn) {
  min-width: var(--phone-hit);
  min-height: var(--phone-hit);
}
.mobile-layout .claw-grab-label { font: 800 var(--phone-label)/1.12 var(--shell-sans); }

@media (orientation: portrait) {
  .mobile-layout .elka-claw.is-at-cabinet .claw-panel { --claw-tools-height: 58px; }
  .mobile-layout .claw-turn-controls { left: 48%; width: clamp(104px, 30%, 146px); column-gap: var(--phone-gap); }
  .mobile-layout .claw-turn-caption { font-size: .75rem; }
  .mobile-layout .claw-grab-label {
    position: absolute;
    inset: auto -2px 6px;
    display: block;
    padding: 2px 3px;
    border-radius: 6px;
    background: #ffe4ad;
    color: #512e1a;
    text-align: center;
    pointer-events: none;
  }
}

.mobile-layout .match-view__navigation .match-help-button,
.mobile-layout .words-view .words-tools .words-help { font-size: 0; min-height: var(--phone-hit); }
.mobile-layout .match-view__navigation .match-modes .match-action { padding-inline: 7px; min-height: var(--phone-hit); }
.mobile-layout .words-keys { grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 3px; }
.mobile-layout .words-view .words-keys button {
  min-width: 0;
  min-height: var(--phone-hit);
  padding-inline: 0;
  font-size: 1rem;
  touch-action: manipulation;
}
.mobile-layout .elka-collection { gap: 12px; padding-block-start: 12px; }
.mobile-layout .elka-collection-cover {
  min-height: clamp(100px, 17svh, 128px);
  align-content: center;
  padding: 14px;
}
.mobile-layout .elka-collection-cover h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); }
.mobile-layout .elka-collection-cover .elka-collection-progress { margin-block-start: 6px; }
.mobile-layout :is(.story-room-link, .story-lantern-hint button) {
  min-width: var(--phone-hit);
  min-height: var(--phone-hit);
}

@media (max-width: 520px) {
  .mobile-layout .match-view__header { display: grid; }
  .mobile-layout .match-view__navigation { flex-wrap: nowrap; }
  .mobile-layout .match-view__navigation .match-help-button { flex: none; }
  .mobile-layout .words-header {
    grid-template-columns: minmax(0, 1fr) max-content auto;
    grid-template-areas: 'title modes tools';
    gap: 5px;
  }
  .mobile-layout .words-header h1 { font-size: clamp(1.25rem, 5.2vw, 1.65rem); }
  .mobile-layout .words-cabinet:not(:fullscreen, [data-expanded]):has(.words-form:not([hidden])) .words-entry { padding-inline-end: 54px; }
  .mobile-layout .words-cabinet:not(:fullscreen, [data-expanded]):has(.words-form:not([hidden])) .words-console-tools {
    position: absolute;
    inset: 9px 10px auto auto;
    margin: 0;
  }
  .mobile-layout .words-view .words-submit { padding-inline: 7px; }
}

@media (max-width: 520px) and (max-height: 700px) {
  .mobile-layout .words-cabinet:not(:fullscreen, [data-expanded]) .words-cell { height: clamp(28px, 4.65dvh, 34px); }
}

@media (max-width: 415px) {
  .mobile-layout .ec-yard-links > .ec-button { display: grid; justify-items: center; gap: 3px; }
}

@media (max-width: 360px) {
  .mobile-layout .ec-yard-logo { font-size: 0; min-width: var(--phone-hit); justify-content: center; }
  .mobile-layout .words-view .words-entry input { padding-inline: 5px; }
  .mobile-layout .words-view .words-entry input::placeholder { font-size: .73rem; }
  .mobile-layout .words-keys { margin-inline: -5px; column-gap: 2px; }
  .mobile-layout .commerce-starter-item { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .mobile-layout .commerce-starter-item > :is(img, canvas) { grid-row: auto; width: 100%; height: 44px; }
}
@media (min-width: 361px) and (max-width: 420px) {
  .mobile-layout .ec-yard-header:has(.ec-yard-shortcuts) .ec-yard-logo { font-size: 0; min-width: var(--phone-hit); }
}
@media (max-width: 319px) {
  .mobile-layout .ec-yard-header:has(.ec-yard-shortcuts) {
    grid-template: 'title tools' auto 'links links' auto 'deal deal' auto / minmax(var(--phone-hit), 1fr) auto;
  }
  .mobile-layout .ec-yard-header > .ec-yard-deals-trigger { justify-self: end; }
}

@media (orientation: landscape) and (max-height: 760px) {
  .mobile-layout .ec-scene[data-editing='false'],
  .mobile-layout .ec-scene[data-editing='false'][data-young='true'] {
    --yard-care-base: var(--phone-bottom);
    --hub-tree-foot: calc(var(--phone-bottom) + 7px);
    --yard-tree-width: min(52%, calc((100cqh - var(--hub-tree-foot) - var(--yard-header-height, 116px)) / var(--yard-crown-scale, 1)));
    height: max(calc(100dvh - var(--phone-preview-bar, 0px)), 19rem);
  }
  .mobile-layout .ec-scene[data-editing='false'][data-wrap-equipped] { --hub-tree-foot: calc(var(--phone-bottom) + 7px); }
  .mobile-layout .ec-yard-logo { font-size: 1.4rem; }
  .mobile-layout .ec-yard-header:has(.ec-yard-shortcuts) {
    grid-template: 'title links deal tools' auto / minmax(var(--phone-hit), 1fr) auto auto auto;
  }
  .mobile-layout .ec-yard-links:has(#yard-more) { grid-template-columns: repeat(4, minmax(var(--phone-hit), auto)); gap: 5px; }
  .mobile-layout .ec-yard-links > .ec-button { padding-inline: 6px; }
  .mobile-layout .ec-scene[data-editing='false']:has(.ec-yard-fold-panel:not([hidden])) {
    height: max(calc(100dvh - var(--phone-preview-bar, 0px)), calc(var(--yard-header-height, 140px) + 190px));
  }
  .mobile-layout .ec-yard-tree-base {
    left: var(--phone-left);
    width: clamp(170px, 28%, 250px);
    translate: none;
  }
  .mobile-layout .ec-room-care { align-items: end; }
  .mobile-layout .ec-room-care .ec-tree-power { align-self: end; height: var(--phone-hit); }
  .mobile-layout :is(.ec-yard-primary, .ec-yard-games) {
    inset-inline: auto var(--phone-right);
    width: clamp(207px, 29%, 288px);
    gap: 5px;
  }
  .mobile-layout .ec-yard-games .ec-room-prop { flex-direction: column; }
  .mobile-layout .ec-scene[data-editing='true'] { --room-ground: 16px; height: max(calc(100dvh - var(--phone-preview-bar, 0px)), 19rem); }
  .mobile-layout .ec-scene[data-editing='true'] .ec-tree-stage { left: 28%; width: min(47%, calc((100cqh - 85px) * .98)); }
  .mobile-layout .ec-scene[data-editing='true'] .ec-tree-stage :is(.ec-tree-spot--edit, .ec-tree-effect) {
    --edit-left-reach: calc((28vw - var(--phone-left) - 22px) / var(--edit-zoom));
    --edit-right-reach: calc((72vw - var(--phone-right) - min(47vw, 350px) - 22px) / var(--edit-zoom));
    left: clamp(calc(50% - var(--edit-left-reach)), var(--spot-x), calc(50% + var(--edit-right-reach)));
  }
  .mobile-layout .ec-scene[data-editing='true'] .ec-tree-power-controls { left: var(--phone-left); bottom: var(--phone-bottom); translate: none; }
  .mobile-layout .ec-room-dressing { left: auto; width: min(47%, 350px); max-height: calc(100% - 122px); }
  .mobile-layout .claw-console .claw-camera-tools button { grid-template-columns: 1fr; justify-items: center; }
  .mobile-layout .words-cabinet:not(:fullscreen, [data-expanded]) { grid-template-columns: minmax(0, .76fr) minmax(0, 1.24fr); }
}

@media (orientation: landscape) and (max-height: 500px) and (max-width: 650px) {
  .mobile-layout .ec-yard-logo { font-size: 0; }
  .mobile-layout .ec-yard-header:has(.ec-yard-shortcuts) {
    grid-template: 'title deal tools' auto 'links links links' auto / minmax(var(--phone-hit), 1fr) auto auto;
  }
  .mobile-layout .ec-yard-header { column-gap: 6px; }
  .mobile-layout :is(.ec-yard-links, .ec-yard-tools) { gap: 5px; }
  .mobile-layout .ec-yard-links > .ec-button { display: grid; justify-items: center; gap: 3px; padding-inline: 3px; font-size: var(--phone-secondary); }
  .mobile-layout .ec-room-dressing__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) repeat(2, var(--phone-hit));
  }
  .mobile-layout .ec-room-dressing__head h2 { grid-column: 1 / -1; }
  .mobile-layout .ec-room-dressing__save { justify-self: start; margin-inline-start: 0; }
}

/* Keep the return path and the wallet above the active game. */
.mobile-layout:is([data-route='claw'], [data-route='words'], [data-route='match'], [data-route='paint']) .shell-main-nav {
  display: none;
}
.mobile-layout:is([data-route='claw'], [data-route='words'], [data-route='match'], [data-route='paint']) .shell-tools {
  grid-area: 1 / 2 / auto / -1;
}
.mobile-layout:is([data-route='claw'], [data-route='words'], [data-route='match'], [data-route='paint']) .shell-back {
  min-width: var(--phone-hit);
  min-height: var(--phone-hit);
}
.mobile-layout .mobile-game-extras { border: 1px solid var(--phone-line); border-radius: 9px; background: var(--phone-panel); }
.mobile-layout .mobile-game-extras > summary {
  min-height: var(--phone-hit);
  align-content: center;
  padding-inline: 12px;
  color: var(--phone-gold);
  font-weight: 650;
  cursor: pointer;
}
.mobile-layout .mobile-game-extras > div { padding: 0 10px 10px; }
.mobile-layout .mobile-game-extras .words-map-button {
  min-height: var(--phone-hit);
  border: 1px solid var(--phone-line);
  border-radius: 6px;
  background: #24394a;
  color: #fff0d3;
}

.mobile-layout .claw-hall { padding-block-start: 9px; }
.mobile-layout .claw-hall-balance,
.mobile-layout:has(.claw-hall) .shell-wallet__balance[data-wallet-balance='tickets'] .ticket-recovery,
.mobile-layout .claw-hall-toolbar .commerce-actions:empty { display: none; }
.mobile-layout .claw-hall-toolbar { margin-block: 4px 9px; }
.mobile-layout .claw-hall-toolbar .claw-switch button,
.mobile-layout .claw-hall-refill [data-hall-tickets] { min-height: var(--phone-hit); }
.mobile-layout .claw-hall-refill { margin-block: 8px 14px; gap: 8px; }
.mobile-layout .claw-hall-refill > p { align-self: center; margin: 0; color: #ffe4a8; font-size: var(--phone-secondary); }
.mobile-layout .claw-hall:not([data-tickets-short]) .claw-hall-refill [data-hall-tickets] {
  border-color: var(--phone-line);
  background: var(--phone-panel);
  color: var(--phone-gold);
}
.mobile-layout .claw-hall-machine__free:not([hidden]) { color: #ffe4a8; font-weight: 750; }
.mobile-layout .claw-hall-machine:has(.claw-hall-machine__free:not([hidden])) .claw-hall-machine__stock:not(.claw-hall-machine__free) {
  display: none;
}
@media (max-width: 520px) {
  .mobile-layout .claw-hall-special .claw-hall-machine__art { width: min(100%, 4.9rem); }
  .mobile-layout .claw-hall-special .claw-hall-machine__copy { gap: 5px; }
  .mobile-layout .claw-hall-special .claw-hall-machine__play { min-height: 34px; align-content: center; }
}
.mobile-layout #claw-mobile-menu .claw-shake {
  position: static;
  translate: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-height: var(--phone-hit);
  border: 1px solid var(--phone-line);
  border-radius: 8px;
  background: #3a382b;
  color: var(--phone-gold);
  font: 650 var(--phone-label)/1.15 var(--shell-sans);
}
.mobile-layout #claw-mobile-menu .claw-shake .claw-shake-label { display: block; position: static; }
.mobile-layout .claw-camera-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mobile-layout .claw-result[data-interactive] {
  padding: 7px 10px;
  gap: 10px;
  border-radius: 10px;
}
.mobile-layout .claw-result[data-interactive] .claw-result-toy canvas {
  width: clamp(72px, 23vw, 112px);
  height: auto;
  aspect-ratio: 1;
}
.mobile-layout .claw-result[data-interactive] [data-result-actions] > a {
  display: inline-flex;
  align-items: center;
  min-height: var(--phone-hit);
  margin-block: 4px;
  padding-inline: 9px;
  border-radius: 6px;
  background: #f0cf93;
  color: #3c251a;
  font-weight: 750;
  text-decoration: none;
}

.mobile-layout .words-view { padding-block-start: 4px; }
.mobile-layout .words-header { margin-block-end: 6px; }
.mobile-layout .words-nav button { min-height: 42px; }
.mobile-layout .words-cabinet:not(:fullscreen, [data-expanded]) .words-field,
.mobile-layout .words-cabinet:not(:fullscreen, [data-expanded]) .words-glass { padding: 5px; }
.mobile-layout .words-cabinet:not(:fullscreen, [data-expanded]) .words-round-controls { flex-basis: auto; }
.mobile-layout .words-cabinet:not(:fullscreen, [data-expanded]) .words-round-title { font-size: 1.18rem; }
.mobile-layout .words-cabinet:not(:fullscreen, [data-expanded]) .words-round-tools { margin-top: 3px; }
.mobile-layout .words-cabinet:not(:fullscreen, [data-expanded]) .words-board { margin-block: 5px 0; gap: 3px; }
.mobile-layout .words-cabinet:not(:fullscreen, [data-expanded]) .words-cell { height: clamp(24px, 4.55dvh, 39px); }
.mobile-layout .words-glass > .words-legend { display: none; }
.mobile-layout .words-cabinet:not(:fullscreen, [data-expanded]) .words-console { padding: 6px 6px 3px; }
.mobile-layout .words-cabinet:not(:fullscreen, [data-expanded]) .words-console-tools { inset-block-start: 6px; }
.mobile-layout .words-view :is(.words-expand, .words-delete) { width: var(--phone-hit); }
.mobile-layout .words-view :is(.words-expand, .words-delete, .words-entry input, .words-submit, .words-hint) { min-height: var(--phone-hit); }
.mobile-layout .words-view .words-entry { grid-template-columns: minmax(0, 1fr) var(--phone-hit) auto; }
.mobile-layout .words-view .words-keys { margin: 4px 0 0; }
@media (orientation: portrait) and (max-height: 610px) {
  .mobile-layout .words-cabinet:not(:fullscreen, [data-expanded]) .words-glass {
    grid-template: 'round hint' auto 'topic hint' auto 'note note' auto 'board board' auto / minmax(0, 1fr) max-content;
    gap: 2px 6px;
  }
  .mobile-layout .words-cabinet:not(:fullscreen, [data-expanded]) .words-round-heading { grid-area: round; gap: 2px 5px; }
  .mobile-layout .words-cabinet:not(:fullscreen, [data-expanded]) .words-round-tools { display: contents; }
  .mobile-layout .words-cabinet:not(:fullscreen, [data-expanded]) .words-topic { grid-area: topic; }
  .mobile-layout .words-cabinet:not(:fullscreen, [data-expanded]) .words-hint { grid-area: hint; align-self: center; }
  .mobile-layout .words-cabinet:not(:fullscreen, [data-expanded]) .words-hint-text { grid-area: note; }
  .mobile-layout .words-cabinet:not(:fullscreen, [data-expanded]) .words-board { grid-area: board; gap: 2px; margin-block-start: 2px; }
  .mobile-layout .words-cabinet:not(:fullscreen, [data-expanded]) li:not([data-active]) > .words-cell {
    height: 18px;
    font-size: 1rem;
  }
  .mobile-layout .words-cabinet:not(:fullscreen, [data-expanded]) li[data-active] > .words-cell { height: 30px; }
}

.mobile-layout .match-view__header { margin-block: 0 5px; }
.mobile-layout .match-view .match-cabinet__inside { gap: 4px; }
.mobile-layout .match-round { gap: 3px 6px; }
.mobile-layout .match-round h2 { flex-basis: auto; }
.mobile-layout .match-round__number { flex-basis: 100%; }
.mobile-layout .match-view .match-toolbar { gap: 4px; }
.mobile-layout .match-view .match-cabinet__actions .match-action { min-height: var(--phone-hit); }
.mobile-layout .match-view .match-progress { min-height: var(--phone-hit); }
@media (max-width: 520px) {
  .mobile-layout .match-view__header { grid-template-columns: minmax(0, 1fr) auto; gap: 5px; }
  .mobile-layout .match-view__header h1 { font-size: clamp(1.1rem, 5.3vw, 1.55rem); }
  .mobile-layout .match-view__navigation { width: auto; }
  .mobile-layout .match-view__navigation :is(.match-modes, .match-action) { white-space: nowrap; }
}
@media (orientation: portrait) and (max-width: 360px) and (max-height: 610px) {
  .mobile-layout .match-cabinet__inside { display: flex; flex-direction: column; }
  .mobile-layout .match-view .match-toolbar { display: contents; }
  .mobile-layout .match-cabinet__actions { order: 1; }
}

.mobile-layout .elka-paint .paint-header { padding-block: 8px; }
.mobile-layout .elka-paint .paint-toolbelt { margin-block: 0 6px; gap: 4px; }
.mobile-layout .elka-paint .paint-toolbelt button { min-height: var(--phone-hit); }
.mobile-layout .elka-paint .paint-map-actions { margin-block: 5px 0; margin-inline-start: 0; }
.mobile-layout .elka-paint :is(.paint-map-actions, .paint-map-bar, .paint-viewer-tools) button { min-height: var(--phone-hit); }
.mobile-layout .elka-paint [data-paint^='zoom-'] { min-width: var(--phone-hit); }
.mobile-layout[data-route='paint'] #main-content > .mobile-game-extras { margin: 8px var(--phone-left); }
@media (orientation: portrait) and (max-width: 760px) {
  .mobile-layout .elka-paint { grid-template-areas: 'head' 'paper' 'view' 'fire' 'archive' 'studio'; }
}

@media (orientation: landscape) and (max-height: 500px) {
  .mobile-layout .claw-hall-special { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mobile-layout .claw-hall-special .claw-hall-machine {
    grid-template: auto / minmax(40px, 30%) minmax(0, 1fr);
    min-height: 138px;
    padding: 8px;
    text-align: start;
  }
  .mobile-layout .claw-hall-special .claw-hall-machine__copy { justify-items: start; }
  .mobile-layout .claw-hall-special .claw-hall-machine__copy strong { font-size: clamp(.95rem, 2.4vw, 1.25rem); }
  .mobile-layout .words-cabinet:not(:fullscreen, [data-expanded]) .words-console-tools {
    position: absolute;
    inset: 6px 6px auto auto;
    margin: 0;
  }
  .mobile-layout .words-cabinet:not(:fullscreen, [data-expanded]) .words-entry { padding-inline-end: 54px; }
  .mobile-layout .match-cabinet__inside {
    grid-template-columns: minmax(0, 1fr) min(60%, calc(100dvh - 116px));
    grid-template-areas: 'top stage' 'toolbar stage' 'lantern stage' '. stage';
  }
}
@media (orientation: landscape) and (max-height: 350px) {
  .mobile-layout .words-view { padding-block-start: 0; }
  .mobile-layout .words-header { margin-block-end: 0; }
  .mobile-layout .words-cabinet:not(:fullscreen, [data-expanded]) .words-console { padding-block-start: 2px; }
  .mobile-layout .words-cabinet:not(:fullscreen, [data-expanded]) .words-console-tools { inset-block-start: 2px; }
  .mobile-layout .words-view .words-keys { row-gap: 2px; }
}
