:root {
  --room-ink: #f4efe1;
  --room-muted: #c3c6b8;
  --room-night: #151f1e;
  --room-control: #263431;
  --room-rule: rgba(219, 223, 198, .25);
  --room-copper: #f1cca1;
  --viewport-top: 0px;
  --viewport-right: 0px;
  --viewport-bottom: 0px;
  --viewport-left: 0px;
}
@supports (padding: env(safe-area-inset-top, 0px)) {
  :root {
    --viewport-top: env(safe-area-inset-top, 0px);
    --viewport-right: env(safe-area-inset-right, 0px);
    --viewport-bottom: env(safe-area-inset-bottom, 0px);
    --viewport-left: env(safe-area-inset-left, 0px);
  }
}
body {
  --safe-top: var(--safe-area-inset-top, var(--viewport-top));
  --safe-right: var(--safe-area-inset-right, var(--viewport-right));
  --safe-bottom: var(--safe-area-inset-bottom, var(--viewport-bottom));
  --safe-left: var(--safe-area-inset-left, var(--viewport-left));
  --room-gutter: 18px;
  color: var(--room-ink);
  background: var(--room-night);
}
body::before { display: none; }
.studio {
  display: block;
  height: 100vh;
  height: var(--app-height, 100vh);
  min-height: 0;
  padding: 0;
}
.studio > .console { display: none; }
.handheld, .boot {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  height: var(--app-height, 100vh);
}
.handheld {
  --machine-tint: #f1cca1;
  color: var(--room-ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  overflow: hidden;
}
.handheld:not([data-ready="true"]) { visibility: hidden; }
.handheld[data-edition="B"] {
  --machine-tint: #e0cffb;
}
.handheld[data-edition="C"] {
  --machine-tint: #ffd6a0;
}
.object-stage {
  --edge-dark: linear-gradient(180deg, rgba(7, 13, 13, .2), transparent 38%, transparent 67%, rgba(5, 12, 12, .38));
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: var(--edge-dark), radial-gradient(ellipse at 48% 42%, #414b3f, #26312b 58%, #141c1b 100%);
}
.object-stage::before, .object-stage::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  opacity: 0;
  transition: opacity 520ms ease;
  pointer-events: none;
}
.object-stage::before { background: var(--edge-dark), radial-gradient(ellipse at 48% 42%, #434258, #2d303b 58%, #141c1b 100%); }
.object-stage::after { background: var(--edge-dark), radial-gradient(ellipse at 48% 42%, #514733, #332f28 58%, #141c1b 100%); }
[data-edition="B"]:not([data-mode="returning"]) .object-stage::before,
[data-edition="C"]:not([data-mode="returning"]) .object-stage::after { opacity: 1; }
#object-canvas, .object-keys, .flat-device { z-index: 1; }
#object-canvas, .object-keys {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-user-select: none;
  user-select: none;
  touch-action: none;
}
#object-canvas { display: block; }
[data-mode="browse"] #object-canvas { cursor: grab; }
[data-mode="browse"] #object-canvas:active { cursor: grabbing; }
.object-keys { pointer-events: none; }
.object-keys button {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  padding: 0;
  border: 0;
  color: transparent;
  background: transparent;
  border-radius: 10px;
  touch-action: none;
}
.handheld :focus, .boot :focus { outline: 2px solid var(--room-copper); outline-offset: 3px; }
.handheld :focus:not(:focus-visible), .boot :focus:not(:focus-visible) { outline: none; }

.boot {
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 46%, #33403a, #141c1b 72%);
  opacity: 1;
  transition: opacity 220ms ease;
}
.boot.boot-leaving { opacity: 0; pointer-events: none; }
.boot-bezel {
  position: relative;
  width: 296px;
  max-width: calc(100% - 34px);
  padding: 11px 11px 20px;
  border: 1px solid #5c6256;
  border-radius: 18px 18px 29px 18px;
  background: linear-gradient(150deg, #555e51, #303b34 74%);
  box-shadow: 3px 7px 0 #101917, 0 25px 58px rgba(0, 0, 0, .32), inset 0 1px 1px #818878;
}
.boot-lcd {
  position: relative;
  overflow: hidden;
  padding: 22px 10px 20px;
  border: 3px solid #202a21;
  border-radius: 9px 9px 19px 9px;
  color: #253521;
  text-align: center;
  background: repeating-linear-gradient(0deg, rgba(36, 60, 31, .07), rgba(36, 60, 31, .07) 1px, transparent 1px, transparent 3px), #aebc91;
  box-shadow: inset 0 5px 12px rgba(24, 42, 23, .24), 0 1px 0 #788274;
}
.boot-lcd::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 28px;
  opacity: 0;
  background: linear-gradient(transparent, rgba(244, 255, 221, .32), transparent);
  animation: lcd-scan 1.65s ease-out infinite;
  pointer-events: none;
}
@keyframes lcd-scan {
  15% { opacity: 1; }
  60%, 100% { opacity: 0; transform: translateY(145px); }
}
.boot-motif { position: relative; width: 40px; height: 30px; margin: 0 auto 10px; }
.boot-motif i {
  position: absolute;
  top: 5px;
  left: 14px;
  width: 11px;
  height: 11px;
  background: #33452b;
  border: 1px solid #536343;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 227, .2);
  animation: pixel-wake 1.25s steps(2, end) infinite;
}
.boot-motif i:nth-child(2) { top: 17px; left: 2px; animation-delay: 90ms; }
.boot-motif i:nth-child(3) { top: 17px; animation-delay: 180ms; }
.boot-motif i:nth-child(4) { top: 17px; left: 26px; animation-delay: 270ms; }
@keyframes pixel-wake {
  0%, 15% { opacity: .35; }
  36%, 100% { opacity: 1; }
}
.boot-led {
  position: absolute;
  bottom: 7px;
  left: 21px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #e1ba83;
  box-shadow: 0 0 6px #e1ba83;
}
.boot h1 { margin: 0; font-size: 23px; font-weight: 800; letter-spacing: .08em; line-height: 1.3; }
.boot p { margin: 7px 0 0; font-size: 12px; letter-spacing: .1em; line-height: 1.55; }
#boot-retry { min-height: 44px; margin-top: 9px; padding: 0 14px; border-radius: 5px; color: #ebf1d7; background: #314529; }

.machine-gallery, .machine-room {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  pointer-events: none;
}
.machine-gallery button, .machine-room button, .machine-room summary { pointer-events: auto; }
.gallery-title {
  position: absolute;
  top: calc(29px + var(--safe-top));
  left: calc(var(--room-gutter) + var(--safe-left));
  right: calc(var(--room-gutter) + var(--safe-right));
}
.gallery-kicker {
  display: flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .24em;
  line-height: 16px;
  color: var(--room-copper);
}
.gallery-mark {
  width: 7px;
  height: 7px;
  margin-right: 14px;
  margin-left: 4px;
  transform: rotate(45deg);
  background: currentColor;
  box-shadow: 0 0 8px rgba(246, 209, 163, .25);
}
.gallery-title h1 {
  margin: 7px 0 0;
  font-size: 34px;
  line-height: 1.18;
  letter-spacing: .015em;
  font-weight: 760;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .2);
}
.gallery-title p { margin: 8px 0 0; font-size: 13px; line-height: 1.4; color: var(--room-muted); }
.machine-list button {
  --pin: #d4bd98;
  color: var(--room-ink);
  background: transparent;
}
.machine-list [data-edition-choice="B"] { --pin: #cbb4f1; }
.machine-list [data-edition-choice="C"] { --pin: #f5ad75; }
.machine-list img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.machine-tag {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  min-height: 42px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 4px 8px;
  border: 1px solid var(--room-rule);
  border-radius: 18px;
  background: rgba(22, 31, 29, .9);
  white-space: nowrap;
  box-shadow: 0 5px 15px rgba(9, 17, 15, .14);
  transition: background-color 150ms ease, border-color 150ms ease;
  pointer-events: none;
}
.machine-tag strong { font-size: 13px; letter-spacing: .08em; font-weight: 700; }
.machine-games { color: var(--pin); font-size: 10px; line-height: 1.35; }
.recent-label { display: none; margin-left: 6px; color: var(--pin); font-size: 10px; }
[data-recent="true"] .recent-label { display: inline; }
.machine-list button:active .machine-tag, .machine-list button:focus .machine-tag {
  border-color: var(--pin);
  background: #34423a;
}
[data-renderer="webgl"] .machine-list button { position: absolute; padding: 0; border-radius: 12px; }
[data-renderer="webgl"] .machine-list img { display: none; }
[data-renderer="flat"] .machine-list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  position: absolute;
  top: calc(155px + var(--safe-top));
  right: calc(12px + var(--safe-right));
  bottom: calc(56px + var(--safe-bottom));
  left: calc(12px + var(--safe-left));
  max-width: 800px;
  margin: auto;
}
[data-renderer="flat"] .machine-list button {
  position: relative;
  min-width: 0;
  min-height: 0;
  max-height: 420px;
  align-self: center;
  height: 100%;
  padding: 0 0 41px;
}
[data-renderer="flat"] .machine-list .machine-tag { bottom: 4px; }
.handheld:not([data-renderer="flat"]) .flat-device, [data-renderer="flat"] #object-canvas, [data-renderer="flat"] .object-keys { display: none; }
.flat-device {
  position: absolute;
  top: calc(93px + var(--safe-top));
  right: calc(18px + var(--safe-right));
  bottom: calc(121px + var(--safe-bottom));
  left: calc(18px + var(--safe-left));
  background: no-repeat center / contain;
  pointer-events: none;
}
[data-renderer="flat"][data-mode="browse"][data-edition="A"] .flat-device { background-image: url("./assets/classic.webp"); }
[data-renderer="flat"][data-mode="browse"][data-edition="B"] .flat-device { background-image: url("./assets/zero.webp"); }
[data-renderer="flat"][data-mode="browse"][data-edition="C"] .flat-device { background-image: url("./assets/brick.webp"); }

.room-rail {
  position: absolute;
  top: calc(11px + var(--safe-top));
  right: calc(var(--room-gutter) + var(--safe-right));
  left: calc(var(--room-gutter) + var(--safe-left));
  display: flex;
  align-items: center;
}
.hud-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 11px;
  border: 1px solid var(--room-rule);
  border-radius: 24px;
  background: rgba(26, 36, 32, .94);
  color: var(--room-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  white-space: nowrap;
  box-shadow: 0 5px 18px rgba(4, 13, 10, .14);
  transition: background-color 150ms ease, border-color 150ms ease;
}
.hud-button:active, .hud-button[aria-expanded="true"] { background: #435249; border-color: var(--machine-tint); }
.room-back i { margin-right: 5px; color: var(--machine-tint); font-size: 17px; font-style: normal; }
.machine-label { margin: 0 auto 0 12px; min-width: 0; }
.machine-label h2 { margin: 0; font-size: 16px; line-height: 1.15; letter-spacing: .08em; }
.machine-label p { margin: 4px 0 0; color: var(--room-muted); font-size: 11px; line-height: 1.3; }
.menu-dots {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  color: var(--machine-tint);
  background: currentColor;
  box-shadow: -5px 0 0 currentColor, 5px 0 0 currentColor;
}
.room-more { flex: 0 0 44px; margin-left: auto; }
.hud-surface {
  background: #24312d;
  border: 1px solid var(--room-rule);
  border-radius: 15px;
  box-shadow: 0 12px 28px rgba(6, 13, 11, .35);
  color: var(--room-ink);
  pointer-events: auto;
}
.object-utilities {
  position: absolute;
  z-index: 3;
  top: calc(63px + var(--safe-top));
  right: calc(var(--room-gutter) + var(--safe-right));
  width: 146px;
  padding: 4px;
}
.object-utilities button {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  color: inherit;
  background: transparent;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
}
.save-status { margin: 3px 9px 7px; color: var(--room-muted); font-size: 11px; line-height: 1.5; }
.object-utilities button + button { border-top: 1px solid rgba(219, 223, 198, .11); }
.object-utilities [aria-pressed="true"]::after {
  content: "";
  float: right;
  width: 5px;
  height: 5px;
  margin: 7px 1px 0 0;
  border-radius: 50%;
  background: var(--machine-tint);
}
.view-menu {
  position: absolute;
  z-index: 2;
  right: calc(var(--room-gutter) + var(--safe-right));
  bottom: calc(23px + var(--safe-bottom));
}
.view-menu summary::-webkit-details-marker { display: none; }
.view-menu summary { display: flex; width: 44px; cursor: pointer; list-style: none; }
.viewfinder {
  width: 18px;
  height: 18px;
  color: var(--machine-tint);
  background: linear-gradient(currentColor, currentColor) top left / 5px 1px no-repeat,
    linear-gradient(currentColor, currentColor) top left / 1px 5px no-repeat,
    linear-gradient(currentColor, currentColor) top right / 5px 1px no-repeat,
    linear-gradient(currentColor, currentColor) top right / 1px 5px no-repeat,
    linear-gradient(currentColor, currentColor) bottom left / 5px 1px no-repeat,
    linear-gradient(currentColor, currentColor) bottom left / 1px 5px no-repeat,
    linear-gradient(currentColor, currentColor) bottom right / 5px 1px no-repeat,
    linear-gradient(currentColor, currentColor) bottom right / 1px 5px no-repeat;
}
.viewfinder::after { content: ""; display: block; width: 6px; height: 6px; margin: 6px; border: 1px solid currentColor; border-radius: 50%; }
.stage-tools {
  position: absolute;
  right: 0;
  bottom: 52px;
  display: grid;
  grid-template-columns: 54px 54px 54px;
  grid-gap: 2px;
  padding: 4px;
}
.stage-tools button {
  min-height: 44px;
  padding: 0;
  border-radius: 9px;
  color: var(--room-ink);
  background: transparent;
  font-size: 12px;
  font-weight: 600;
}
.stage-tools [data-angle="out"], .stage-tools [data-angle="in"] { font-size: 18px; font-weight: 500; }
.object-utilities button:active, .stage-tools button:active { background: #435249; }
.object-primary {
  position: absolute;
  bottom: calc(23px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  flex-direction: column;
  white-space: nowrap;
}
#object-guide { margin: 0 0 9px; text-align: center; color: var(--room-muted); font-size: 11px; letter-spacing: .055em; }
.game-outcome {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: calc(12px + var(--safe-bottom));
  transform: translateX(-50%);
  width: 340px;
  max-width: calc(100% - 24px - var(--safe-left) - var(--safe-right));
  max-height: calc(100% - 72px - var(--safe-top) - var(--safe-bottom));
  overflow: auto;
  padding: 10px 12px 12px;
  pointer-events: auto;
}
.game-outcome h3 { margin: 0; font-size: 16px; }
.game-outcome p { margin: 5px 0 8px; color: var(--room-muted); font-size: 12px; line-height: 1.5; }
.catalog-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.game-outcome { text-align: center; }
.game-outcome .catalog-actions { justify-content: center; }
.object-confirm {
  position: absolute;
  z-index: 5;
  top: 43%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 16px 12px 12px;
  width: 244px;
  max-width: 94%;
  text-align: center;
}
.object-confirm p { margin: 8px 0 12px; color: var(--room-muted); font-size: 12px; }
.object-confirm button {
  min-height: 44px;
  margin: 0 2px;
  padding: 0 10px;
  border: 1px solid var(--room-rule);
  border-radius: 9px;
  color: var(--room-ink);
  background: #36473d;
  font-size: 13px;
}
[data-mode="locking"] .view-menu,
[data-mode="focusing"] .view-menu,
[data-mode="play"] .view-menu,
[data-mode="returning"] .view-menu,
[data-renderer="flat"] .view-menu { display: none; }
[data-mode="locking"] .object-primary, [data-mode="focusing"] .object-primary { opacity: .64; }
[data-mode="returning"] .machine-room, [data-mode="focusing"] .machine-gallery { pointer-events: none; }
[data-mode="returning"] .machine-room button, [data-mode="focusing"] .machine-gallery button { pointer-events: none; }
[data-mode="play"] .machine-label { visibility: visible; }
[data-mode="play"] .object-primary, #object-guide:empty { display: none; }

.flat-playing .studio {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  padding: calc(61px + var(--safe-top)) calc(8px + var(--safe-right)) calc(10px + var(--safe-bottom)) calc(8px + var(--safe-left));
}
.flat-playing .studio > .console { display: block; z-index: 1; }
.flat-playing .handheld { z-index: 3; pointer-events: none; }
.flat-playing .object-stage { background: none; }
.flat-playing .object-stage::before, .flat-playing .object-stage::after { display: none; }
.flat-playing .console-footer, .flat-playing #utility-row, .flat-playing .console-header { display: none; }
.flat-playing .console { margin: auto 0; }
.flat-playing [data-edition="B"] ~ .console { background: linear-gradient(140deg, #bb98f0, #9f82d1); }
.flat-playing [data-edition="C"] ~ .console { background: linear-gradient(140deg, #ebb682, #d99864); }
.flat-playing [data-edition="A"] ~ .console .action-button {
  background: linear-gradient(135deg, #a04455, #722537);
  color: #fae4cb;
  box-shadow: 0 4px #592432, 0 0 0 5px #baaa93, inset 1px 2px 3px rgba(255, 220, 194, .24);
}
.flat-playing [data-edition="A"] ~ .console .drop-button { background: linear-gradient(135deg, #8d4956, #65313f); }
.flat-playing [data-edition="B"] ~ .console .action-button {
  background: linear-gradient(135deg, #c8f6e5, #a4dcc8);
  color: #2c3c3a;
  box-shadow: 0 4px #547d76, 0 0 0 5px #a091be, inset 1px 2px 3px rgba(255, 255, 255, .43);
}
.flat-playing [data-edition="C"] ~ .console .action-button { border-radius: 22%; }
.flat-playing [data-edition="C"] ~ .console .drop-button {
  background: linear-gradient(135deg, #f5d7a4, #dcb47b);
  color: #442e23;
  box-shadow: 0 4px #9d643d, 0 0 0 5px #c88153, inset 1px 2px 3px rgba(255, 255, 255, .34);
}
.flat-playing [data-edition] ~ .console .action-button.is-pressed,
.flat-playing [data-edition] ~ .console .action-button:active {
  box-shadow: inset 1px 2px 4px rgba(51, 32, 27, .40);
}

.app-panel { background: rgba(10, 16, 15, .78); }
.panel-card {
  border: 1px solid var(--room-rule);
  border-radius: 17px;
  color: var(--room-ink);
  background: #25332e;
  box-shadow: 0 16px 50px rgba(7, 17, 14, .4);
}
.panel-close {
  border-color: var(--room-rule);
  color: var(--room-copper);
  background: #34443c;
  box-shadow: none;
}
.panel-close:active { background: #48594e; }
.panel-card a, .panel-kicker { color: var(--room-copper); }
.panel-card .panel-note, .instructions .keyboard-help, #storage-status, #legacy-best { color: var(--room-muted); }
.instructions .keyboard-help, .creator-identity { border-color: var(--room-rule); }
.panel-card .plaque-button {
  border-color: var(--room-rule);
  box-shadow: none;
  color: var(--room-ink);
  background: #3a4d43;
}
.panel-card .plaque-primary { color: #28231b; background: var(--room-copper); }

@media (hover: hover) {
  .machine-list button:hover .machine-tag { background: #34423a; border-color: var(--pin); }
  .hud-button:hover, .object-utilities button:hover, .stage-tools button:hover { background-color: #435249; }
  .object-play:hover { color: #241f18; background-color: #fbedd5; }
}
@media (min-width: 640px) {
  body { --room-gutter: 32px; }
  .gallery-title { top: calc(34px + var(--safe-top)); }
  .gallery-title h1 { font-size: 42px; }
  .gallery-title p { font-size: 14px; }
  .machine-tag { min-height: 42px; padding: 4px 12px; }
  .machine-tag strong { font-size: 14px; }
  .room-rail { top: calc(17px + var(--safe-top)); }
  .object-utilities { top: calc(69px + var(--safe-top)); }
  .view-menu {
    top: 48%;
    bottom: auto;
    left: calc(var(--room-gutter) + var(--safe-left));
    right: auto;
  }
  .stage-tools { top: 0; right: auto; bottom: auto; left: 52px; }
}
@media (max-width: 540px) and (orientation: portrait) {
  [data-renderer="flat"] .machine-list { grid-template-columns: 1.16fr 1fr; grid-template-rows: 1fr 1fr; }
  [data-renderer="flat"] .machine-list [data-edition-choice="A"] { grid-row: 1 / 3; height: 50%; }
}
@media (max-width: 639px) {
  .view-menu[open] ~ .object-primary #object-guide { visibility: hidden; }
}
@media (max-height: 660px) {
  .gallery-title { top: calc(16px + var(--safe-top)); }
  .gallery-title h1 { font-size: 29px; }
  .gallery-title p { margin-top: 6px; font-size: 12px; }
  [data-renderer="flat"] .machine-list { top: calc(111px + var(--safe-top)); }
  .object-primary, .view-menu { bottom: calc(13px + var(--safe-bottom)); }
  .flat-device { bottom: calc(87px + var(--safe-bottom)); }
}
@media (max-height: 470px) and (orientation: landscape) {
  .gallery-title { top: calc(8px + var(--safe-top)); }
  .gallery-title h1 { font-size: 25px; margin-top: 4px; }
  .gallery-title p { margin-top: 3px; }
  [data-renderer="flat"] .machine-list { top: calc(92px + var(--safe-top)); bottom: calc(13px + var(--safe-bottom)); }
  [data-mode="browse"] #object-guide { display: none; }
  .view-menu { top: auto; bottom: calc(13px + var(--safe-bottom)); }
  .stage-tools { top: auto; bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .boot-lcd::after, .boot-motif i { animation: none; }
}


.object-power {
  position: absolute;
  z-index: 4;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #ffebad;
  pointer-events: auto;
  touch-action: none;
}
.object-power i {
  position: absolute;
  top: 12px;
  right: 12px;
  bottom: 12px;
  left: 12px;
  border-radius: 50%;
  transition: transform .15s ease, opacity .15s ease;
}
[data-system="off"] .object-power i {
  box-shadow: 0 0 0 2px #ffe7a5, 0 0 0 5px rgba(36,27,17,.58);
  animation: seek-power 1.65s ease-in-out 3;
}
@keyframes seek-power {
  50% { box-shadow: 0 0 0 2px #ffd069, 0 0 0 9px rgba(255,216,130,.32); }
}
.object-power[data-pushed] i { transform: scale(.76); }
[data-edition="A"] .object-power i { border-radius: 6px; }
[data-renderer="flat"] .object-power i {
  top: 13px; bottom: 13px;
  left: 13px; right: 13px;
  background: #ad94d8;
  border: 2px solid #483361;
  border-radius: 4px;
  box-shadow: 2px 2px 0 #2e2842;
}
[data-renderer="flat"][data-edition="A"] .object-power i {
  top: 15px; bottom: 15px;
  left: 7px; right: 7px;
  background: repeating-linear-gradient(90deg,#6f6148 0,#6f6148 3px,#d4c6a7 3px,#d4c6a7 6px);
  border-color: #625747;
}
[data-renderer="flat"][data-edition="C"] .object-power i {
  top: 9px; bottom: 9px;
  background: #93b89a;
  border-color: #23433b;
}
[data-renderer="flat"] .flat-device { display: none; }
.system-flat { display: block; width: 100%; max-height: 41vh; object-fit: contain; }
.system-lcd .lcd-content, .system-lcd .lcd-footer, .system-lcd .lcd-top { display: none; }
[data-edition-activity="system"] .machine-label p { display: none; }
[data-system="off"] #object-guide { display: block; }
[data-system="off"] .object-primary {
  border: 1px solid rgba(245,218,156,.22);
  border-radius: 16px;
  width: auto;
  min-width: 210px;
  max-width: calc(100% - 44px);
  padding: 8px 10px;
  background: rgba(25,32,28,.9);
}
[data-system="off"] #object-guide { margin: 0; color: #fff1c4; font-weight: 650; }
[data-system="boot"] .object-primary { display: none; }
@media (prefers-reduced-motion: reduce) {
  [data-system="off"] .object-power i { animation: none; }
}

.scene-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}
[data-renderer="flat"] .machine-list {
  display: block;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: 0;
  max-width: none;
}
[data-renderer="flat"] .machine-list button { position: absolute; padding: 0; }
[data-renderer="flat"] .machine-list button img { transform: rotate(var(--table-roll, 0rad)); }
.flat-playing .studio {
  background: url('./assets/afternoon-room.webp') top center / 100% auto no-repeat,
    url('./assets/afternoon-wood.webp') bottom center / 100% 66% no-repeat, #c6af83;
}
.flat-playing .handheld { background: none; }
.handheld[data-renderer="flat"][data-scene-rear="true"] ~ .console { visibility: hidden; }
