body[data-page="gallery"],
body[data-page="account"] {
  --copper: #3ee0ff;
  --copper-ink: #041820;
  --amber: #ffc14d;
  --magenta: #ff5d8f;
  --lime: #5dffb0;
}
body[data-page="gallery"] .stage::after,
body[data-page="account"] .stage::after {
  background:
    linear-gradient(180deg, rgba(4, 12, 22, 0.28), rgba(4, 8, 16, 0.55)),
    repeating-linear-gradient(90deg, rgba(62, 224, 255, 0.05) 0 1px, transparent 1px 88px),
    repeating-linear-gradient(0deg, rgba(62, 224, 255, 0.035) 0 1px, transparent 1px 88px);
}
.hall {
  width: min(1440px, calc(100% - 56px));
  margin: 0 auto 56px;
}
.hall-head { padding: 48px 0 8px; }
.hall-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}
.hall-head h1 {
  margin: 0;
  font-size: clamp(56px, 7vw, 96px);
  line-height: 1.08;
  text-shadow: 0 0 28px rgba(62, 224, 255, 0.28);
}
.hall-lead { margin: 16px 0 0; max-width: 40em; color: #d5e8f4; font-size: 18px; line-height: 1.75; }
.handle-line, .share-url {
  margin: 8px 0 0;
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.04em;
  color: var(--amber);
}
.joined { margin: 8px 0 0; color: var(--dim); font-size: 15px; }
.who { margin-top: 22px; max-width: 46em; }
.who p { margin: 0 0 12px; color: #d5e8f4; font-size: 16px; }
.who-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.hall-bar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  margin-top: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(62, 224, 255, 0.28);
}
.hall .filters, .modes { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.hall .filters button, .modes button {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(62, 224, 255, 0.35);
  background: rgba(6, 16, 26, 0.55);
  color: #d7f4ff;
  font-size: 15px;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.hall .filters span { margin-left: 6px; font-size: 13px; letter-spacing: 0; }
.hall .filters button[aria-pressed="true"],
.modes button[aria-pressed="true"] {
  background: #3ee0ff;
  color: #041820;
  border-color: #3ee0ff;
}
.hall .filters button[data-filter="world"][aria-pressed="true"] { background: #5dffb0; border-color: #5dffb0; }
.hall .filters button[data-filter="fight"][aria-pressed="true"] { background: #ff5d8f; border-color: #ff5d8f; color: #2a0612; }
.hall .filters button[data-filter="life"][aria-pressed="true"] { background: #ffc14d; border-color: #ffc14d; color: #2a1a04; }
.hall-count { margin: 14px 0; color: #9fd8ea; font-size: 14px; letter-spacing: 0.08em; }
.wall { columns: 3; column-gap: 22px; }
.plate { break-inside: avoid; margin: 0 0 26px; }
.wall-layout > .plate { margin-bottom: 28px; }
.wall-layout > .plate .plate-open {
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 72vh;
  background: #07131d;
}
.wall-layout > .plate img {
  width: auto;
  max-width: 100%;
  max-height: 72vh;
  height: auto;
  object-fit: contain;
}
.plate-open, .rail-item {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid rgba(62, 224, 255, 0.22);
  background: #07131d;
  cursor: pointer;
  color: inherit;
  text-align: left;
}
.plate img, .plate-open img { display: block; width: 100%; height: auto; }
.plate-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding-top: 10px;
}
.plate-meta b, .stage-copy b, .ledger-row b, .light-title {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.plate-index { font-family: var(--mono); color: #3ee0ff; font-size: 14px; }
.credit-name { display: block; margin-top: 4px; color: #7af0ff; font-size: 15px; text-decoration: none; }
a.credit-name:hover { color: #fff; }
.credit-handle { display: block; margin-top: 2px; font-family: var(--mono); font-size: 13px; color: #ffc14d; }
.credit-bio { margin: 6px 0 0; font-size: 14px; line-height: 1.6; color: #c5d7e4; }
.credit-compact .credit-bio {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.credit-meta { margin: 4px 0 0; font-size: 13px; color: #8eabc0; }
.retract { margin-top: 8px; padding: 0; border: 0; background: transparent; color: #ff8f9d; font-size: 14px; cursor: pointer; }
.hall .empty { margin: 36px 0; color: #c5d7e4; font-size: 17px; }

.stage-view { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(240px, 0.72fr); gap: 18px; align-items: start; }
.stage-hero img { width: 100%; max-height: 68vh; object-fit: contain; background: #07131d; }
.stage-copy { padding-top: 12px; }
.stage-rail { display: flex; flex-direction: column; gap: 8px; max-height: 74vh; overflow: auto; }
.rail-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 76px;
  padding: 6px;
}
.rail-item img { width: 96px; height: 64px; object-fit: cover; }
.rail-item span { font-size: 15px; line-height: 1.45; }
.rail-item[aria-pressed="true"] { border-color: #3ee0ff; box-shadow: 0 0 0 1px #3ee0ff; }

.reel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 38vw);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.reel .plate { margin: 0; }
.reel .plate img { height: 52vh; object-fit: cover; }

.ledger { display: flex; flex-direction: column; gap: 12px; }
.ledger-row {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(62, 224, 255, 0.28);
  background: rgba(7, 18, 28, 0.78);
}
.ledger-row .plate-open { width: 196px; }
.ledger-row .plate-open img { width: 196px; height: 120px; object-fit: cover; }
.ledger-row em { font-style: normal; font-size: 14px; letter-spacing: 0.14em; color: #ffc14d; }

.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 28px; }
.account-card, .account-own {
  padding: 22px;
  border: 1px solid rgba(62, 224, 255, 0.32);
  background: rgba(7, 18, 28, 0.82);
}
.account-card h2, .account-own h2 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.account-own { margin-top: 28px; max-width: 720px; }
.hint { margin: 0; color: #9fc0d2; font-size: 14px; line-height: 1.6; }
.form-error.is-ok { color: #5dffb0; }
.credit-preview { margin: 0; color: #d5e8f4; font-size: 15px; }

.submit-room {
  width: min(560px, calc(100% - 28px));
  padding: 18px 18px 8px;
  border: 1px solid rgba(62, 224, 255, 0.4);
  background: #0c1824;
  color: var(--ink);
}
.submit-room::backdrop, #light::backdrop { background: rgba(2, 6, 12, 0.82); }
.submit-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.submit-head h2 { margin: 0; font-family: var(--serif); font-size: 32px; font-weight: 500; letter-spacing: 0.08em; }
.submit-room .drop { min-height: 160px; margin: 12px 0; }
.submit-room .fields { margin-bottom: 8px; }

#light {
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  margin: 0;
  padding: 18px 16px 22px;
  border: 0;
  background: rgba(4, 10, 16, 0.96);
  color: var(--ink);
}
#light[open] {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr;
  align-items: center;
  gap: 12px;
}
#light-close { grid-column: 1 / -1; justify-self: end; }
.light-frame { margin: 0; min-width: 0; }
#light-body img {
  display: block;
  max-width: 100%;
  max-height: 68vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}
#light-cap { margin-top: 12px; text-align: center; }
#light-cap .credit { display: inline-block; text-align: left; }
#light-prev, #light-next, #light-close {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(62, 224, 255, 0.45);
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  cursor: pointer;
}
#light-prev:disabled, #light-next:disabled { opacity: 0.35; cursor: default; }

@media (max-width: 1099px) {
  .wall { columns: 2; }
  .hall-head h1 { font-size: 64px; }
  .stage-view, .account-grid { grid-template-columns: 1fr; }
  .stage-rail { max-height: none; flex-direction: row; overflow-x: auto; }
  .rail-item { min-width: 220px; }
}
@media (max-width: 759px) {
  .hall { width: min(1440px, calc(100% - 28px)); }
  #light[open] { grid-template-columns: 1fr; }
  .hall-head { padding-top: 28px; }
  .hall-title-row, .hall-bar, .ledger-row { flex-direction: column; align-items: stretch; }
  .ledger-row { grid-template-columns: 1fr; }
  .ledger-row .plate-open, .ledger-row .plate-open img { width: 100%; height: auto; max-height: 46vh; }
  .hall-head h1 { font-size: 48px; }
  .wall { columns: 1; }
  .wall-layout > .plate img, .reel .plate img { max-height: 54vh; height: auto; }
  #light { height: 100dvh; }
  #light-prev, #light-next { justify-self: center; }
}
