@font-face {
  font-family: Bricolage;
  src: url(bricolage.ttf) format("truetype");
  font-weight: 200 900;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --ink: #201729;
  --cream: #f8efd9;
  --teal: #23ebdb;
  --acid: #eaff2d;
  --pink: #fa469f;
  --line: #6b5275;
  --panel: #342640;
}
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }
body { background: var(--ink); color: var(--cream); font: 800 20px Bricolage, system-ui, sans-serif; touch-action: manipulation; }
#frame {
  width: 540px;
  height: 960px;
  position: absolute;
  top: var(--frame-y, 50%);
  left: var(--frame-x, 50%);
  transform: translate(-50%, -50%) scale(var(--scale, .65));
  overflow: hidden;
  background: var(--ink);
}
#art { display: block; position: absolute; inset: 0; pointer-events: none; }
#frame.island-input #art { pointer-events: auto; touch-action: none; }
button, select, input {
  color: inherit;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 9px;
  font: inherit;
}
button, select { cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button:active { filter: brightness(.83); }
button:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
button:disabled { cursor: default; color: #d0bacd; opacity: .73; }
.primary { background: var(--acid); border-color: var(--acid); color: var(--ink); }
h1 { margin: 0; font-size: 45px; line-height: 1.15; letter-spacing: -.02em; }
header#bar { position: absolute; inset: 0 0 auto; height: 87px; z-index: 2; pointer-events: none; }
#back, #wallet {
  position: absolute;
  top: 22px;
  min-width: 142px;
  height: 53px;
  border: 2px solid var(--teal);
  border-radius: 9px;
  background: var(--ink);
}
#back { left: 19px; padding: 0 12px; pointer-events: auto; }
#wallet { right: 19px; display: grid; place-items: center; padding: 0 14px; color: var(--acid); }
#bar.island-hud {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content 145px;
  align-items: start;
  gap: 8px;
  padding: 22px 19px 0;
}
.island-hud #back, .island-hud #level, .island-hud #wallet { position: static; }
.island-hud #back { padding-inline: 7px; }
.island-hud #level { font-size: 18px; }
#island-energy {
  display: grid;
  align-content: center;
  gap: 4px;
  height: 53px;
  padding: 0 6px;
  border: 2px solid var(--line);
  border-radius: 9px;
  background: var(--ink);
  color: var(--acid);
  text-align: center;
  white-space: nowrap;
  font-size: 13px;
}
#island-energy .energy-bar { height: 10px; }
#workshop {
  position: absolute;
  inset: 531px 0 0;
  padding: 18px 24px;
  border-top: 7px solid var(--teal);
  background: var(--ink);
}
#workshop h1 { font-size: 42px; }
#dood-name-field { gap: 3px; margin-top: 9px; }
#dood-name { height: 41px; padding: 0 11px; font-size: 18px; }
#dood-name-field:not([hidden]) + #pickers { margin-top: 12px; gap: 11px 12px; }
#dood-name-field:not([hidden]) + #pickers select { height: 46px; }
#pickers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 12px;
  margin-top: 24px;
}
label { display: flex; flex-direction: column; gap: 6px; font-size: 16px; color: var(--teal); text-transform: uppercase; }
label select { color: var(--cream); text-transform: none; }
select { width: 100%; padding: 0 10px; height: 52px; min-width: 0; }
#play {
  width: 492px;
  height: 64px;
  position: absolute;
  left: 24px;
  bottom: 28px;
  font-size: 27px;
  text-transform: uppercase;
}
#hub { position: absolute; inset: 0; pointer-events: none; }
#hub button { pointer-events: auto; }
.island-title, .island-help {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  border-radius: 10px;
  white-space: nowrap;
}
.island-title { top: 90px; padding: 6px 19px; border: 2px solid var(--teal); color: var(--acid); font-size: 32px; }
.island-help { bottom: 12px; margin: 0; padding: 8px 13px; font-size: 16px; }
.island-zone {
  position: absolute;
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  min-width: 115px;
  min-height: 48px;
  padding: 4px 9px;
  border: 2px solid var(--zone-color, var(--teal));
  background: var(--ink);
  box-shadow: 0 3px #1a112395;
  white-space: nowrap;
  line-height: 1.07;
}
.island-zone strong { color: var(--zone-color, var(--teal)); font-size: 21px; }
.island-zone small { font-size: 13px; }
.island-zone[data-zone="games"] { --zone-color: #e2a8ff; }
.island-zone[data-zone="workshop"] { --zone-color: #ffadad; }
.island-zone[data-zone="store"] { --zone-color: #ffe577; }
.island-zone[data-zone="neighborhood"] { --zone-color: #ffb1e3; }
.page {
  position: absolute;
  inset: 93px 0 0;
  border-top: 6px solid var(--teal);
  background: var(--ink);
  padding: 20px 24px;
}
.intro { color: #e6c9e8; margin: 8px 0 32px; }
.game-list { display: grid; gap: 10px; }
.game-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-content: center;
  align-items: center;
  gap: 4px 10px;
  width: 100%;
  min-height: 100px;
  padding: 11px 16px;
  text-align: left;
  border-width: 3px;
  color: var(--ink);
}
.chest-entry { background: var(--acid); border-color: var(--acid); }
.tap-card { background: var(--teal); border-color: var(--teal); }
.rail-entry { background: #ffbd65; border-color: #ffbd65; }
.tags-entry { background: #f88ebe; border-color: #f88ebe; }
.game-card span { font-size: 32px; line-height: 1; }
.game-card b { font-size: 17px; padding: 5px 8px; border: 1px solid currentColor; border-radius: 6px; }
.game-card small { grid-column: 1 / -1; font-size: 17px; }
.game-card:disabled { opacity: 1; background: var(--panel); color: var(--cream); }
.game-card:disabled .game-lock { color: #ffc692; font-weight: 900; }
.mini-game-intro { margin: 8px 0 0; color: #e6c9e8; }
.rush-meter output { color: var(--acid); }
.rush-instructions button { min-height: 43px; padding: 0 13px; }
.rush-meter {
  display: flex;
  justify-content: space-between;
  border: 2px solid var(--line);
  border-radius: 9px;
  padding: 11px 13px;
  margin: 18px 0 14px;
}
#rush-area {
  height: 470px;
  border: 3px solid var(--line);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(#b262ac 9%, transparent 17%) 0 0 / 22px 22px, #342640;
}
#target {
  position: absolute;
  width: 84px;
  height: 83px;
  border: 4px solid #16101e;
  box-shadow: 3px 4px var(--cream);
  background: var(--acid);
  color: var(--ink);
  line-height: 1;
  font-size: 58px;
}
.rush-instructions { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 19px; }
.rush-instructions p { margin: 0; }
.rail-course, .tags-course {
  padding: 22px;
  border: 3px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
}
.rail-course p, .tags-course p { margin: 0; }
#rail-step, #tags-step { font-size: 26px; color: var(--cream); }
#rail-track {
  height: 65px;
  position: relative;
  margin: 28px 0;
  border: 3px solid #9c6fad;
  border-radius: 11px;
  background: repeating-linear-gradient(110deg, #231933 0 11px, #2d203b 11px 22px);
}
#rail-zone { position: absolute; inset: 0 auto 0 0; background: #65ea8d; }
#rail-board {
  position: absolute;
  top: 50%;
  width: 34px;
  height: 13px;
  transform: translate(-50%, -65%);
  border: 3px solid var(--ink);
  border-radius: 6px 6px 12px 12px;
  background: #ff78b8;
  box-shadow: 0 0 0 2px var(--cream);
}
#rail-board::before, #rail-board::after {
  content: "";
  position: absolute;
  top: 10px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--cream);
}
#rail-board::before { left: 1px; }
#rail-board::after { right: 1px; }
#rail-land { width: 100%; min-height: 64px; font-size: 25px; }
#tags-cue { min-height: 29px; margin: 6px 0 15px; color: var(--acid); }
#tag-pads { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#tag-pads button {
  display: grid;
  place-content: center;
  gap: 1px;
  min-height: 129px;
  color: var(--cream);
  border-color: var(--tag-color);
  background: var(--ink);
  font-size: 17px;
}
#tag-pads button strong { color: var(--tag-color); font-size: 38px; line-height: 1.1; }
#tag-pads button:nth-child(1) { --tag-color: var(--acid); }
#tag-pads button:nth-child(2) { --tag-color: #ffa44c; }
#tag-pads button:nth-child(3) { --tag-color: var(--teal); }
#tag-pads button:nth-child(4) { --tag-color: #fa8dc1; }
#tag-pads button.flashing { opacity: 1; background: var(--tag-color); color: var(--ink); }
#tag-pads button.flashing strong { color: inherit; }
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 10px; }
#search { width: 100%; height: 48px; padding: 0 11px; margin-bottom: 12px; }
#store { display: flex; flex-direction: column; }
#products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 9px;
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  scrollbar-width: thin;
  scrollbar-color: #9c6fad var(--ink);
  padding: 3px;
}
#products article {
  min-width: 0;
  height: 168px;
  padding: 5px 7px;
  border: 2px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
}
.product-art {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  height: 80px;
  overflow: hidden;
  border-radius: 5px;
  background: #d8b7d7 url(shop-textures.webp) var(--art-x, 0%) var(--art-y, 0%) / 400% 200%;
}
.product-art canvas { display: block; width: 100%; height: 100%; object-fit: contain; }
.product-art.product-fitting {
  height: 96px;
  background-color: #dec6e6;
  background-size: 400% 200%;
}
#products article.wearable-product { height: 184px; }
.product-art[data-theme="walls"], .product-art[data-theme="color"] { --art-x: 33.333%; }
.product-art[data-theme="floors"], .product-art[data-theme="gear"] { --art-x: 66.667%; }
.product-art[data-theme="face"], .product-art[data-theme="food"] { --art-x: 100%; }
.product-art[data-theme="hat"], .product-art[data-theme="color"],
.product-art[data-theme="gear"], .product-art[data-theme="food"] { --art-y: 100%; }
.product-art canvas.item-swatch {
  width: auto;
  height: 60px;
  aspect-ratio: 2 / 1;
  border: 2px solid var(--ink);
  border-radius: 4px;
  box-shadow: 2px 3px #513859, 4px 6px 4px #20172950;
}
.product-art[data-theme="floors"] canvas.item-swatch { height: 54px; transform: skewX(-16deg) rotate(-3deg); }
#products h2 {
  margin: 4px 0 1px;
  display: flex;
  align-items: center;
  height: 36px;
  font-size: 17px;
  line-height: 1.04;
}
#products button { width: 100%; height: 36px; font-size: 17px; border-color: var(--teal); }
.pagination { display: grid; grid-template-columns: 105px 1fr 105px; gap: 9px; align-items: center; text-align: center; margin-top: 10px; }
.pagination button { height: 42px; font-size: 17px; }
#shop-status { margin: 7px 0 0; color: var(--acid); font-size: 17px; }
.surfaces { margin-bottom: 16px; }
#room { position: relative; border: 4px solid #101018; box-shadow: 0 4px var(--pink); border-radius: 11px; overflow: hidden; }
#wall {
  height: 114px;
  display: grid;
  justify-content: center;
  align-items: center;
  border-bottom: 8px solid #aa7f78;
  background: repeating-linear-gradient(0deg, #9d6eae 0 28px, #764a85 28px 31px);
}
.window {
  width: 152px;
  height: 82px;
  border: 8px solid var(--ink);
  background:
    linear-gradient(90deg, transparent 48%, var(--ink) 48% 53%, transparent 53%),
    linear-gradient(0deg, transparent 41%, var(--ink) 41% 50%, transparent 50%),
    radial-gradient(circle at 71% 24%, #ffff94 10%, transparent 11%),
    linear-gradient(#1797a7, #a56bd8);
  box-shadow: 4px 5px #2b193a80;
}
#floor {
  height: 330px;
  background: repeating-linear-gradient(0deg, #daad86 0 42px, #c69875 42px 45px);
}
.room-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
#edit-room { min-width: 144px; min-height: 49px; }
#furnishings { position: absolute; inset: 0; pointer-events: none; }
#room.editing #furnishings { pointer-events: auto; touch-action: none; }
.room-piece {
  position: absolute;
  width: 108px;
  height: 76px;
  padding: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: transparent;
  border: none;
}
#room.editing .room-piece { pointer-events: auto; cursor: grab; }
#room.editing .room-piece:active { cursor: grabbing; filter: none; }
#room.editing .room-piece[aria-pressed="true"] { outline: 2px solid var(--acid); outline-offset: -3px; background: #ffff9526; }
.room-piece canvas { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.room-controls { display: grid; grid-template-columns: 1.6fr 1fr; align-items: end; gap: 10px; margin-top: 20px; }
.room-controls button { height: 52px; }
#room-status { margin: 11px 0 10px; min-height: 39px; font-size: 17px; color: #f8e9be; }
.crib-shop { width: 100%; height: 48px; border-color: var(--pink); }
[hidden] { display: none !important; }
.hub-actions nav { grid-template-columns: 1.1fr .9fr .9fr .95fr; }
.hub-actions nav button { font-size: 17px; }
#sync-alert { position: absolute; right: 19px; top: 77px; min-height: 32px; padding: 0 9px; font-size: 14px; border-color: var(--pink); pointer-events: auto; }
#friends { overflow-y: auto; overscroll-behavior: contain; padding-bottom: 32px; touch-action: pan-y; }
#online-status, #visit-status { color: #eed2ea; margin: 11px 0 20px; min-height: 26px; font-size: 18px; }
#friends label { margin: 13px 0 9px; }
#friends input { width: 100%; min-width: 0; height: 47px; padding: 0 10px; text-transform: none; color: var(--cream); font-size: 17px; }
#friends button, #refresh-visit { min-height: 45px; padding: 0 12px; font-size: 17px; }
#sign-in-panel > button { width: 100%; }
.account-line, .friend-request { display: flex; align-items: end; gap: 8px; }
.account-line strong, .friend-request label { flex: 1; min-width: 0; }
.friend-request button { margin-bottom: 9px; }
#conflict, #recovery-note { margin: 10px 0; padding: 10px; border: 2px solid var(--pink); border-radius: 9px; }
#conflict p { margin: 0 0 8px; font-size: 17px; }
.friend-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.friend-row span { flex: 1 1 160px; min-width: 0; font-size: 18px; overflow-wrap: anywhere; }
.visit-room { position: relative; border: 4px solid #101018; box-shadow: 0 4px var(--pink); border-radius: 11px; overflow: hidden; margin: 22px 0; }
#visit-wall { height: 114px; display: grid; place-items: center; border-bottom: 8px solid #aa7f78; background: #9d6eae; }
#visit-floor { height: 330px; background: repeating-linear-gradient(0deg, #daad86 0 42px, #c69875 42px 45px); }
#visit-furnishings { position: absolute; inset: 0; pointer-events: none; }
#level { position: absolute; top: 22px; right: 171px; height: 53px; min-width: 78px; display: grid; place-items: center; padding: 0 8px; border: 2px solid var(--pink); border-radius: 9px; background: var(--ink); }
#wallet { width: 145px; padding: 0 6px; font-size: 19px; }
#shop-tier { margin: 3px 0 0; color: var(--acid); font-size: 16px; }
#store .filters { margin-top: 10px; }
#store .pagination { margin-top: 7px; }
.fuel { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.fuel output { color: var(--acid); }
.fuel button { min-height: 43px; padding: 0 12px; }
#games .fuel { margin-top: 14px; }
.shop-actions { display: flex; gap: 5px; }
#products .shop-actions button { flex: 1; min-width: 0; padding: 0 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#title-screen { position: absolute; inset: 0; pointer-events: none; }
.title-menu {
  position: absolute; left: 19px; right: 19px; bottom: 25px; display: grid; gap: 10px;
  background: var(--ink); border: 3px solid var(--teal); border-radius: 13px; padding: 14px;
  box-shadow: 4px 5px #1a1126; pointer-events: auto;
}
.title-menu p { margin: 2px 0 6px; color: var(--teal); text-align: center; min-height: 27px; font-size: 18px; }
.title-menu button { min-height: 58px; font-size: 23px; }
.title-menu #new-dood { border-color: var(--pink); }
.title-menu #continue-game:disabled { background: var(--panel); border-color: var(--line); color: #d0bacd; }
.title-menu #continue-game:disabled + #new-dood:not(:disabled) { background: var(--acid); border-color: var(--acid); color: var(--ink); }
.title-menu #title-account { min-height: 47px; font-size: 18px; }
.workshop-actions { position: absolute; left: 24px; right: 24px; bottom: 28px; display: grid; grid-template-columns: 114px 1fr; gap: 10px; }
.workshop-actions #play { position: static; width: auto; }
#turn-dood { position: absolute; right: 24px; top: 468px; min-height: 44px; padding: 0 10px; font-size: 16px; }
#island-dood-name {
  position: absolute;
  inset: 0 auto auto 0;
  max-width: 280px;
  margin: 0;
  padding: 3px 11px;
  border: 2px solid var(--teal);
  border-radius: 10px;
  background: var(--ink);
  box-shadow: 0 2px 0 #20172966;
  color: var(--cream);
  font-size: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: translate3d(
    clamp(8px, calc(var(--name-x, 270px) - 50%), calc(532px - 100%)),
    calc(var(--name-y, 595px) - 100%),
    0
  );
}

#neighborhood { overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; }
.neighborhood-home {
  position: relative;
  display: grid;
  gap: 4px;
  width: 100%;
  margin: 20px 0 31px;
  padding: 17px 55px 17px 20px;
  text-align: left;
  background: var(--acid);
  color: var(--ink);
  border-color: var(--acid);
}
.neighborhood-home strong { font-size: 28px; }
.neighborhood-home small { font-size: 16px; }
.neighborhood-home span { position: absolute; right: 16px; top: 25px; font-size: 29px; }
.neighborhood-heading, .hangout-heading { display: flex; align-items: center; justify-content: space-between; }
.neighborhood-heading h2, #hangout h2 { margin: 0; font-size: 22px; }
.neighborhood-heading button, .hangout-heading button, #refresh-neighborhood { min-height: 43px; padding: 0 11px; font-size: 17px; }
#neighborhood-status { color: #eed2ea; font-size: 17px; }
#neighborhood-status:empty { display: none; }
#neighborhood-list { display: grid; gap: 8px; padding: 0; list-style: none; }
#neighborhood-list button { width: 100%; min-height: 54px; padding: 8px 14px; text-align: left; border-color: var(--pink); }
#hangout { display: flex; flex-direction: column; }
.hangout-heading h1 { font-size: 39px; }
.hangout-stage {
  position: relative;
  height: 269px;
  flex: 0 0 auto;
  overflow: hidden;
  margin: 12px 0 13px;
  border: 2px solid var(--teal);
  border-radius: 11px;
  background: #342640 url(hangout.webp) center / cover;
}
#hangout-art { display: block; width: 100%; height: 100%; }
#hangout-presence { position: absolute; top: 7px; left: 8px; margin: 0; padding: 4px 7px; border-radius: 6px; background: var(--ink); font-size: 14px; }
.hangout-emote-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#hangout-emote-status { color: var(--teal); font-size: 15px; }
#hangout-emotes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 8px 0 15px; }
#hangout-emotes button { min-height: 42px; padding: 3px; font-size: 15px; }
#hangout-emotes .emote-shop { color: var(--acid); border-color: var(--acid); }
#hangout-status { margin: 5px 0; color: #eed2ea; font-size: 15px; min-height: 20px; }
#hangout-chat { flex: 1; overflow-y: auto; min-height: 0; margin: 0 0 8px; padding: 9px 11px; list-style: none; border: 2px solid var(--line); border-radius: 9px; background: var(--panel); touch-action: pan-y; overscroll-behavior: contain; }
#hangout-chat li { margin-bottom: 7px; overflow-wrap: anywhere; font-size: 17px; font-weight: 650; }
#hangout-chat strong { color: var(--teal); }
#hangout-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
#hangout-form input { padding: 0 10px; font-size: 17px; }
#hangout-form button { min-height: 45px; padding: 0 15px; }

#new-dood-note { position: absolute; left: 24px; right: 24px; bottom: 97px; margin: 0; color: var(--acid); font-size: 17px; }

.memory-entry { background: #e39cf1; border-color: #e39cf1; }
#memory-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.memory-card {
  position: relative;
  aspect-ratio: 1 / 1.05;
  padding: 0;
  overflow: hidden;
  border: 3px solid #a467bf;
  background: repeating-linear-gradient(135deg, #51335f 0 12px, #3a2646 12px 24px);
}
.memory-card::after {
  content: "?";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #f3d5ff;
  font-size: 55px;
  text-shadow: 3px 3px #281433;
}
.memory-card.face-up {
  border-color: #ffaee3;
  background: #ffe9b8;
  animation: card-reveal .16s ease-out;
}
.memory-card.face-up::after { display: none; }
.memory-card.matched { border-color: var(--acid); background: #d7f78a; }
.memory-card:disabled { opacity: 1; }
.memory-card canvas { display: block; width: 100%; height: auto; }
#memory .rush-instructions { min-height: 67px; }
@keyframes card-reveal { from { transform: scaleX(.25); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .memory-card.face-up { animation: none; } }
.fuel-meter { display: grid; gap: 5px; flex: 1; max-width: 260px; }
#energy-refill { font-size: 15px; color: var(--cream); }
.energy-bar {
  appearance: none;
  display: block;
  width: 100%;
  height: 16px;
  border: 2px solid #82638e;
  border-radius: 999px;
  background: #33243d;
  overflow: hidden;
}
.energy-bar::-webkit-meter-bar { border: 0; border-radius: 0; background: transparent; }
.energy-bar::-webkit-meter-optimum-value { background: var(--acid); }
.energy-bar::-moz-meter-bar { background: var(--acid); }

.chest-intro { margin: 8px 0 0; color: #e6c9e8; }
.chest-energy {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  color: var(--acid);
  font-size: 18px;
}
#chest-board { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.chest {
  grid-column: span 2;
  min-height: 143px;
  padding: 3px;
  border: 3px solid #a467bf;
  background: repeating-linear-gradient(135deg, #51335f 0 12px, #3a2646 12px 24px);
  font-size: 19px;
}
.chest:nth-child(4) { grid-column: 2 / span 2; }
.chest canvas { display: block; width: 100%; height: auto; max-height: 102px; object-fit: contain; }
.chest span { display: block; margin: 2px 0 4px; }
.chest:disabled { opacity: 1; }
.chest.reward-open { color: #25192d; border-color: var(--acid); background: #d7f78a; }
.chest.trap-open { color: #25192d; border-color: #ff82be; background: #ecb6d6; }
#chests .rush-instructions { min-height: 67px; }
.chest-odds { margin-top: 21px; color: #eed2ea; font-size: 17px; }
.chest-odds summary { cursor: pointer; color: var(--teal); }
.chest-odds p { margin: 8px 0 0; }
