/* NO.06 — 新世界パズル
   Mount .m06-honor in normal flow at the top of the hall. Use data-tier="1" … "5"
   from getContributionTier(points). Put the badge, the title/points, and the
   opener in that order. Use SSOT text and real buttons with accessible names.
   Use dialog.showModal(). Dialog children: header, scrollable body, footer.
   In .m06-puzzle-grid, render 24 buttons in pieceNo order (01–24, row-major).
   Set data-piece="01", data-owned="true|false"; only mount .m06-puzzle-count
   for duplicates (×N = copies in excess of the first). aria-pressed="true"
   marks the chosen missing piece. Set disabled on the synthesis button until
   three available duplicates and a missing target are selected. */
.m06-honor,
.m06-puzzle {
  --m06-brass: #ac8951;
  --m06-cream: #fff0ce;
  --m06-ink: #201710;
  box-sizing: border-box;
  color: var(--m06-cream);
  font-family: system-ui, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  line-height: 1.4;
  text-align: start;
}

.m06-honor *,
.m06-puzzle * { box-sizing: border-box; }

.m06-honor {
  --m06-tier: #94a3b8;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  inline-size: 100%;
  min-inline-size: 0;
  padding: 8px 10px;
  border: 1px solid var(--m06-brass);
  border-radius: 10px;
  background: linear-gradient(115deg, #403024, #201811 54%, #32251d);
  box-shadow: inset 0 1px #f7d79740;
}
.m06-honor[data-tier="2"] { --m06-tier: #38bdf8; }
.m06-honor[data-tier="3"] { --m06-tier: #4ade80; }
.m06-honor[data-tier="4"] { --m06-tier: #fbbf24; }
.m06-honor[data-tier="5"] { --m06-tier: #f43f5e; }

.m06-honor-badge {
  display: grid;
  place-items: center;
  min-inline-size: 3.1em;
  padding: 6px 8px;
  border: 1px solid var(--m06-tier);
  border-radius: 5px 5px 12px 12px;
  background-color: var(--m06-tier);
  background-image: linear-gradient(145deg, #ffffffa6, transparent 55%, #0000001a);
  color: #170f09;
  font-size: 0.8rem;
  font-weight: 800;
}
.m06-honor-info { min-inline-size: 0; overflow-wrap: anywhere; }
.m06-honor-info strong, .m06-honor-info small { display: block; }
.m06-honor-info small { color: #e0ceae; font-variant-numeric: tabular-nums; }

/* Optional native progress inside .m06-honor-info, relative to this tier. */
.m06-honor-progress {
  display: block;
  inline-size: 100%;
  block-size: 4px;
  margin-block-start: 4px;
  border: 0;
  border-radius: 2px;
  background: #110f0d;
  accent-color: var(--m06-tier);
  appearance: none;
}
.m06-honor-progress::-webkit-progress-bar { border-radius: 2px; background: #110f0d; }
.m06-honor-progress::-webkit-progress-value { border-radius: 2px; background: var(--m06-tier); }
.m06-honor-progress::-moz-progress-bar { border-radius: 2px; background: var(--m06-tier); }

.m06-honor-open,
.m06-puzzle-close,
.m06-puzzle-synthesize {
  min-block-size: 44px;
  padding: 7px 12px;
  border: 1px solid var(--m06-brass);
  border-radius: 8px;
  color: var(--m06-cream);
  background: #3e2c1a;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}
.m06-honor-open { font-size: 0.875rem; font-variant-numeric: tabular-nums; }

dialog.m06-puzzle {
  position: fixed;
  inset: 0;
  margin: auto;
  inline-size: min(35rem, calc(100% - 24px - env(safe-area-inset-left) - env(safe-area-inset-right)));
  min-inline-size: 0;
  max-inline-size: none;
  max-block-size: calc(100vh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  max-block-size: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--m06-brass);
  border-radius: 14px;
  background: linear-gradient(145deg, #38291d, #1a1512 48%);
  box-shadow: inset 0 1px #ffe7a84a, 0 12px 42px #08050380;
}
dialog.m06-puzzle[open] { display: flex; flex-direction: column; }
dialog.m06-puzzle:not([open]) { display: none; }
dialog.m06-puzzle::backdrop { background: #0d0a08ce; }

.m06-puzzle-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border-block-end: 1px solid #795d39;
}
.m06-puzzle-title {
  margin: 0;
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(1.1rem, 5vw, 1.55rem);
  overflow-wrap: anywhere;
}
.m06-puzzle-close { min-inline-size: 44px; flex: none; }
.m06-puzzle-body {
  flex: 1 1 auto;
  min-inline-size: 0;
  min-block-size: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 12px;
}
.m06-puzzle-grid {
  --m06-picture: url("../../assets/machines/m06/puzzle_shinsekai_24_full.webp");
  display: grid;
  grid-template: repeat(4, minmax(0, 1fr)) / repeat(6, minmax(0, 1fr));
  gap: 0;
  inline-size: 100%;
  /* Equal integer tile edges where supported, including at mobile widths. */
  inline-size: round(down, 100%, 6px);
  aspect-ratio: 3 / 2;
  margin-inline: auto;
  padding: 0;
  box-shadow: 0 0 0 1px #947343;
  isolation: isolate;
}
.m06-puzzle-piece {
  --m06-x: 0%;
  --m06-y: 0%;
  position: relative;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 3px;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  appearance: none;
  background-color: #36291a;
  background-image: linear-gradient(135deg, #3d2e1bdf, #20190ee8), var(--m06-picture);
  background-position: center, var(--m06-x) var(--m06-y);
  background-size: 100% 100%, 600% 400%;
  background-repeat: no-repeat;
  box-shadow: inset 1px 1px #b99b655c, inset -1px -1px #080503;
  color: #e2ca90;
  font: 700 0.72rem/1 system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  touch-action: manipulation;
}
.m06-puzzle-piece:nth-child(6n + 2) { --m06-x: 20%; }
.m06-puzzle-piece:nth-child(6n + 3) { --m06-x: 40%; }
.m06-puzzle-piece:nth-child(6n + 4) { --m06-x: 60%; }
.m06-puzzle-piece:nth-child(6n + 5) { --m06-x: 80%; }
.m06-puzzle-piece:nth-child(6n) { --m06-x: 100%; }
.m06-puzzle-piece:nth-child(n + 7) { --m06-y: calc(100% / 3); }
.m06-puzzle-piece:nth-child(n + 13) { --m06-y: calc(200% / 3); }
.m06-puzzle-piece:nth-child(n + 19) { --m06-y: 100%; }

.m06-puzzle-piece:not([data-owned="true"])::before {
  content: "";
  width: 9px;
  height: 8px;
  margin-block-end: 4px;
  border: 1.5px solid currentColor;
  border-radius: 6px 6px 2px 2px;
  box-shadow: 0 4px currentColor;
}
.m06-puzzle-piece:not([data-owned="true"])::after { content: "#" attr(data-piece); }
.m06-puzzle-piece[data-owned="true"] {
  background-image: var(--m06-picture);
  background-position: var(--m06-x) var(--m06-y);
  background-size: 600% 400%;
  box-shadow: none;
}
/* Render a finished collection as one continuous image, so the browser also
   downsamples it as a single illustration on low-density displays. */
.m06-puzzle-grid:has(> :nth-child(24)):not(:has(> :not([data-owned="true"]))) {
  background: var(--m06-picture) center / 100% 100% no-repeat;
}
.m06-puzzle-grid:has(> :nth-child(24)):not(:has(> :not([data-owned="true"]))) > .m06-puzzle-piece {
  background-color: transparent;
  background-image: none;
}
.m06-puzzle-piece[aria-pressed="true"] {
  outline: 3px solid #ffdb72;
  outline-offset: -3px;
}
.m06-puzzle-count {
  position: absolute;
  inset-inline-end: 2px;
  inset-block-end: 2px;
  padding: 2px 4px;
  border: 1px solid #e6c37c;
  border-radius: 5px;
  background: #2c1d13f2;
  color: #fff2cb;
  font-size: 0.68rem;
}
.m06-puzzle-footer {
  display: grid;
  gap: 6px;
  padding: 10px 14px 12px;
  border-block-start: 1px solid #795d39;
  background: #2b2018;
  overflow-wrap: anywhere;
}
.m06-puzzle-header, .m06-puzzle-footer { flex: none; }
.m06-puzzle-synthesize {
  width: 100%;
  border-color: #edbf70;
  background: linear-gradient(110deg, #672315, #943d23 60%, #74301b);
  color: #fff0cb;
}
.m06-puzzle-synthesize:disabled {
  border-color: #826d51;
  background: #463a30;
  color: #dbc8ad;
  cursor: default;
}
.m06-puzzle-help { margin: 0; color: #ecdbbd; font-size: 0.8rem; }
.m06-honor button:focus-visible, .m06-puzzle button:focus-visible {
  z-index: 1;
  outline: 3px solid #fff1ae;
  outline-offset: -3px;
}
@media (max-width: 340px) {
  .m06-honor { gap: 5px; padding: 6px; }
  .m06-honor-open { padding-inline: 6px; }
  .m06-puzzle-body { padding: 8px; }
}
@media (max-height: 420px) {
  dialog.m06-puzzle[open] { display: block; }
  .m06-puzzle-body { overflow: visible; }
}

/* NO.06 exhibition bay & Settings modal: single-line sleek <=48px honor strip */
:is(#hallFloor2F, #settingsModal) .m06-honor {
  position: relative;
  height: 44px;
  min-height: 44px;
  max-height: 48px;
  padding: 4px 8px 6px;
  gap: 8px;
  border: 2px solid #a68652;
  border-color: #ead29a #785535 #67452d #b58e53;
  border-radius: 6px;
  background: linear-gradient(112deg,#6e503438,transparent 32%),
              repeating-linear-gradient(0deg,#b48a4e09 0 1px,transparent 1px 3px), #231b17;
  box-shadow: inset 0 0 0 1px #28180f,inset 0 2px 5px #0b0401,0 3px #432a1a,0 6px 9px #0008;
}
:is(#hallFloor2F, #settingsModal) .m06-honor-badge {
  min-inline-size: 2.2em;
  padding: 3px 7px;
  font-size: 0.72rem;
  line-height: 1.1;
  border: 2px ridge #b99868;
  border-radius: 3px 3px 7px 7px;
  box-shadow: 1px 2px 3px #0009,inset 0 1px #fff8;
}
:is(#hallFloor2F, #settingsModal) .m06-honor-info {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-inline-size: 0;
  white-space: nowrap;
  overflow: hidden;
}
:is(#hallFloor2F, #settingsModal) .m06-honor-info strong {
  font-size: 0.84rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
:is(#hallFloor2F, #settingsModal) .m06-honor-info small {
  font-size: 0.76rem;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
}
:is(#hallFloor2F, #settingsModal) .m06-honor-progress {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 2px;
  width: auto;
  block-size: 2px;
  margin-block-start: 0;
}
:is(#hallFloor2F, #settingsModal) .m06-honor-open {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-block-size: 32px; block-size: 32px;
  border: 1px solid #bb9365; border-radius: 4px;
  background: linear-gradient(160deg,#633c2c,#311d17 65%,#583322);
  color: #fff0c2; box-shadow: inset 0 1px #e6bb793d,0 2px #1b0d07;
  padding-inline: 10px; font-size: .76rem; white-space: nowrap; flex-shrink: 0;
}
#hallFloor2F .retro-hall-banner {
  align-self: center;
  border: 1px solid #ad8551; border-radius: 2px;
  background: linear-gradient(#443429,#201914); color: #ffedc2;
}
#hallFloor2F #heiseiStageBox06 {
  isolation: isolate;
  overflow: hidden;
  perspective: 780px;
  min-height: 278px !important;
  border-block: 2px ridge #977343;
  box-shadow: inset 0 4px 10px #000b,0 3px 7px #050300b3;
  background: #1d1a18 url('../../assets/machines/m06/m06_hall_rear_bay.webp') center 58% / cover no-repeat;
}
#heiseiStageBox06 .stage-center-arena { transform-style: preserve-3d; }
#hallFloor2F #hallCard06 {
  min-height: 0 !important; height: 83% !important; max-height: 235px !important;
  aspect-ratio: 765/1024; align-self: center;
  overflow: visible !important; border: 0 !important; background: transparent !important;
  box-shadow: none !important; filter: drop-shadow(0 5px 3px #0c0705a8);
}
#hallCard06 .heisei-cabinet-3d-frame { inset: 0 0 8px; transform: none; }
#hallCard06 .heisei-stage-pedestal { bottom: 4px; z-index: 2; 
}
#hallCard06 .heisei-cabinet-shell-img {
  border: 0; border-radius: 0;
  object-fit: contain !important; object-position: center !important;
  mask-image: linear-gradient(to right, transparent,black 12% 88%,transparent);
}
#hallCard06 .heisei-dynamic-sign {
  top: -6%; border: 1px solid #cfac6b; border-radius: 2px;
  background: linear-gradient(#332c25,#1a1511);
}
#hallCard06 .sign-line1 { color: #dbc192; }
#hallCard06 .sign-line2 { color: #ffedbc; }
#hallFloor2F #btnEnterMachine06 {
  top: 100% !important; min-width: 154px !important; height: 44px !important;
  border: 2px ridge #d4af70 !important; border-radius: 4px !important;
  background: linear-gradient(#5c3c26,#302018 51%,#4b3221) !important;
  color: #fff2cb !important; box-shadow: inset 0 1px #e5c48d44,0 3px 4px #0b0807cc !important;
}
#heiseiStageBox06 .stage-floating-wing {
  top: auto; bottom: 8%; width: 23%; min-height: 37px;
  border: 1px solid #bd9a69 !important; border-radius: 2px !important;
  background: linear-gradient(150deg,#4a382cef,#1e1916f5) !important;
  box-shadow: inset 0 1px #ffefbb4d,0 3px 4px #110904bb !important;
  padding: 3px !important;
}
#heiseiStageBox06 .wing-label { color: #ddc8ac; text-shadow: none; }
#heiseiStageBox06 .wing-value {
  color: #fff0cc; font-style: normal; font-size: clamp(8px,2.4vw,11px); text-shadow: 0 1px #291c15;
}
#heiseiStageBox06 .wing-divider { border-color: #9e7952; margin-block: 2px; }
#hallFloor2F #hallHeiseiGrid .heisei-future-card {
  border: 2px ridge #b99966 !important;
  background: linear-gradient(110deg,#4b3425,#211914 56%,#33271f) !important;
  box-shadow: inset 0 1px #e8c89850,0 3px #221711,0 7px 7px #0006 !important;
}

/* Heisei exhibition lighting and machined brass trim. The photograph alone receives the exposure lift. */
#hallFloor1F, #hallFloor2F, #hallEraCompassBar, #settingsModal {
  --hall-brass-rim: linear-gradient(133deg, #fffef3, #e6c27a 16%, #fff4d4 24%, #c69e54 41%, #fffaf0 53%, #dfba70 69%, #fff4d4 87%, #ad8746);
  --hall-face: linear-gradient(152deg, #fff9e7, #f4e2b4 37%, #e6c27a 70%, #fff0c9);
  --hall-pin: radial-gradient(circle at 37% 28%, #ffffd9 0 12%, #f7d387 25%, #aa7834 48%, #50341c 68%, transparent 76%);
}
#hallFloor2F {
  background: radial-gradient(ellipse at 50% 18%, #e2b66b30, transparent 67%);
}
#hallFloor2F #heiseiStageBox06 {
  background: #805730;
  box-shadow: inset 0 1px #ffffdc, 0 2px #e6c180, 0 4px 5px #40260e8c;
  border-block: 3px ridge #efca82;
}
#hallFloor1F #heroStageBox::before,
#hallFloor2F #heiseiStageBox06::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url('../../assets/machines/m06/m06_hall_rear_bay.webp') center 58% / cover no-repeat;
  filter: contrast(.79) brightness(1.62) saturate(.91);
}
#heiseiStageBox06 .heisei-spotlight-halo {
  background: radial-gradient(ellipse at 50% 85%, #ffd1773b, transparent 58%),
              radial-gradient(ellipse at 50% 36%, #fff1be26, transparent 62%);
}
#heiseiStageBox06 .heisei-stage-arch-lights span {
  background: linear-gradient(180deg, #fff0b959, #ffc45d19 54%, transparent 88%);
}
#hallCard06 .heisei-cabinet-shell-img { filter: brightness(1.27) saturate(1.08) drop-shadow(0 4px 5px #4f2b0e85); }
#hallCard06 .heisei-stage-pedestal .pedestal-tier {
  border-top-color: #ffefbd;
  background: linear-gradient(91deg, #8f632e, #ffe0a0 22%, #bf8c45 40%, #fff3cb 58%, #c49653 78%, #865a2a);
}

/* A bright lip, a polished bevel, four screw heads and a recessed face share one light direction. */
#hallFloor1F :is(.retro-hall-banner, .hero-dynamic-sign, #btnEnterMachine01, .stage-floating-wing, .hall-mystery-card),
#hallFloor2F :is(.m06-honor, .m06-honor-open, .retro-hall-banner,
  .heisei-dynamic-sign, #btnEnterMachine06, .stage-floating-wing, #hallHeiseiGrid .heisei-future-card),
#settingsModal :is(.m06-honor, .m06-honor-open),
#arcadeHallOverlay #hallEraCompassBar .era-tab-btn {
  box-sizing: border-box;
  border: var(--hall-edge, 3px) solid transparent !important;
  background:
    var(--hall-pin) left 2px top 2px / 5px 5px no-repeat padding-box,
    var(--hall-pin) right 2px top 2px / 5px 5px no-repeat padding-box,
    var(--hall-pin) left 2px bottom 2px / 5px 5px no-repeat padding-box,
    var(--hall-pin) right 2px bottom 2px / 5px 5px no-repeat padding-box,
    linear-gradient(114deg, transparent 10%, #fff3ba1f 22%, transparent 35%, transparent 74%, #fff5c914 84%, transparent 94%) padding-box,
    repeating-linear-gradient(1deg, #ffedb109 0 1px, transparent 1px 3px) padding-box,
    var(--hall-face) padding-box, var(--hall-brass-rim) border-box !important;
  box-shadow: inset 0 1px #fff3c5aa, inset 0 -1px #43290eaa,
              0 -1px #fff0bcc4, 0 2px #67421d, 0 3px #bb9155, 0 5px 7px #20150e73 !important;
}
:is(#hallFloor2F, #settingsModal) .m06-honor {
  --hall-edge: 4px; padding-inline: 10px; border-radius: 6px;
  color: #fff4d3;
}
:is(#hallFloor2F, #settingsModal) .m06-honor-info small { color: #ffebc5; }
:is(#hallFloor2F, #settingsModal) .m06-honor-badge {
  border: 2px ridge #ffe0a3; box-shadow: inset 0 1px #fff8da, 0 2px 3px #462c16;
}
:is(#hallFloor2F, #settingsModal) .m06-honor-open { --hall-edge: 3px; }
:is(#hallFloor2F, #settingsModal) .m06-honor-open, #arcadeHallOverlay #hallEraCompassBar .era-tab-btn[aria-selected="true"] {
  --hall-face: linear-gradient(152deg,#fff9dd,#eed293 47%,#d9af62 78%,#fff0c3);
  color: #fff7dd; text-shadow: 0 1px 2px #38230b;
}
#arcadeHallOverlay #hallEraCompassBar .era-tab-btn[aria-selected="false"] {
  --hall-face: linear-gradient(154deg,#397895,#204e6a 53%,#366a83);
  color: #f5e9d1;
}
#hallFloor2F .retro-hall-banner {
  --hall-face: linear-gradient(165deg,#fffae8,#eccb8e 58%,#fff0ca);
  width: min(82%, 350px); margin: 3px auto 9px; padding: 6px 20px;
  border-radius: 4px; font: 800 15px/1.25 "Hiragino Mincho ProN","Yu Mincho",serif;
  letter-spacing: .14em; color: #ffe8a8; text-shadow: 0 1px #372109, 0 -1px #aa7636;
}
#hallFloor2F #hallCard06 .heisei-dynamic-sign {
  --hall-face: linear-gradient(145deg,#337995,#204e69 65%,#42809c);
  border-radius: 5px !important; padding: 3px 12px !important;
}
#hallCard06 .heisei-dynamic-sign .sign-line1 { color: #ffdf9a; }
#hallCard06 .heisei-dynamic-sign .sign-line2 { color: #fff5d8; }
#hallFloor2F #btnEnterMachine06 {
  --hall-edge: 4px;
  --hall-face: linear-gradient(176deg,#fff1b8,#f8d885 30%,#dfac55 52%,#edc26a 73%,#ffdc90);
  width: min(100%, 184px) !important; padding-inline: 9px !important;
  border-radius: 6px !important; color: #422609 !important;
  font-size: 14px !important; text-shadow: 0 1px #fff1bb !important;
}
#hallFloor2F .stage-floating-wing {
  --hall-face: linear-gradient(152deg,#477d94f2,#285670f7 52%,#39728cf5);
  border-radius: 4px !important;
}
#hallFloor2F .stage-floating-wing .wing-label { color: #ffebc4 !important; text-shadow: 0 1px #42290e !important; }
#hallFloor2F .stage-floating-wing .wing-value { color: #fff8e4 !important; text-shadow: 0 1px #42290e !important; }
#hallFloor2F #hallHeiseiGrid .heisei-future-card {
  --hall-face: linear-gradient(140deg,#fff6df,#eed298 47%,#e5bb70 75%,#fff1d1);
}
#hallHeiseiGrid .heisei-future-card .cabinet-trapezoid-silhouette {
  filter: brightness(1.25); border: 2px ridge #dec08a !important;
  box-shadow: inset 0 1px 4px #4b311b66, 0 1px #ffe7ad !important;
}
#hallHeiseiGrid .heisei-future-card .mystery-status-tag {
  border: 1px ridge #edcc8b !important; color: #ffebbb !important;
  background: #674c2b !important;
}

#hallCard06 .heisei-dynamic-sign .rivet-dot { display: none !important; }

/* Showroom illumination stays behind the artwork and lettering. */
body.lang-ja #arcadeHallOverlay {
  background: linear-gradient(162deg, #ffe7b74f, #ffeed02f 43%, #fae6c44a),
    url("../../assets/ui-3d-v44/hall-bg-clean.webp") center / cover no-repeat !important;
  background-color: #e5c988 !important;
}
#hallFloor1F #heroStageBox {
  background: radial-gradient(ellipse at 50% 12%, #fff5d973, #ffe9b52e 65%, transparent);
}
#hallFloor1F #hallCard01 {
  border: 3px ridge #e6c27a !important;
  box-shadow: inset 0 1px #fff4d4, 0 2px #b98d4f, 0 4px 12px #72501d55 !important;
}
#hallFloor1F .stage-hero-v2-img { filter: brightness(1.09) contrast(.96); }
#hallFloor1F .stage-floating-wing { --hall-face: linear-gradient(145deg,#fff9e9f7,#e8d6acd9); }
#hallFloor1F #btnEnterMachine01, #hallFloor2F #btnEnterMachine06 {
  --hall-edge: 4px;
  --hall-face: linear-gradient(172deg,#fffbec,#fae3a5 38%,#dfb263 55%,#ffe4a0 88%);
  color: #39290f !important; text-shadow: 0 1px #fff5d4 !important;
}
:is(#hallFloor2F, #settingsModal) .m06-honor, :is(#hallFloor2F, #settingsModal) .m06-honor-info,
:is(#hallFloor2F, #settingsModal) .m06-honor-info small, :is(#hallFloor2F, #settingsModal) .m06-honor-open,
#hallFloor1F .stage-floating-wing :is(.wing-value,.wing-label),
:is(#hallFloor1F,#hallFloor2F) .retro-hall-banner,
#hallFloor2F #hallHeiseiGrid :is(.mystery-no-title,.mystery-no-sub),
#arcadeHallOverlay #hallEraCompassBar .era-tab-btn[aria-selected="true"] {
  color: #412e18 !important; text-shadow: 0 1px #fff4d4 !important;
}
#arcadeHallOverlay #hallEraCompassBar .era-tab-btn[aria-selected="false"] {
  color: #fff9e9 !important; text-shadow: 0 1px #254256 !important;
}
#hallFloor2F #hallHeiseiGrid .heisei-future-card .mystery-status-tag {
  background: #27566b !important; color: #fff7e8 !important;
}

/* Both cabinets share the same architectural plate, horizon and ground plane. */
#hallFloor1F #heroStageBox, #hallFloor2F #heiseiStageBox06 {
  position: relative; isolation: isolate; overflow: hidden;
  flex: 0 0 auto !important;
  height: clamp(275px, 39dvh, 400px) !important;
  min-height: 0 !important;
  border-block: 3px ridge #efca82;
}
#hallFloor2F #heiseiStageBox06 {
  flex: 1 1 auto !important;
  height: auto !important;
  min-height: clamp(320px, 46dvh, 560px) !important;
  max-height: none !important;
}
#hallFloor1F #hallCard01, #hallFloor2F #hallCard06 {
  position: absolute; left: 50%; top: 0; bottom: 0; margin: 0;
  transform: translateX(-50%) !important;
  width: min(54%, 260px) !important; height: 100% !important;
  min-height: 0 !important; max-height: none !important;
  overflow: visible !important; border: 0 !important;
  background: transparent !important; box-shadow: none !important;
  filter: none;
}
#hallFloor2F #hallCard06 {
  width: min(62%, 310px) !important;
}
#hallCard01 img.stage-hero-v2-img, #hallCard06 .heisei-cabinet-3d-frame {
  position: absolute; inset: 38px 0 52px; width: 100%;
  height: calc(100% - 90px); transform: none;
}
#hallCard06 .heisei-cabinet-3d-frame {
  inset: 40px 0 54px;
  height: calc(100% - 94px);
}
#hallCard01 img.stage-hero-v2-img, #hallCard06 img.heisei-cabinet-shell-img {
  object-fit: contain !important; object-position: center bottom !important;
  border: 0; box-shadow: none; mask-image: none;
  filter: drop-shadow(0 4px 3px rgb(48 24 9 / 48%));
}
#hallCard06 img.heisei-cabinet-shell-img {
  width: 100%; height: 100%;
  object-position: center center !important;
}
#hallCard06 .heisei-stage-pedestal { display: none; }
#hallFloor1F #hallCard01 #heroDynamicSign,
#hallFloor2F #hallCard06 .heisei-dynamic-sign {
  position: absolute !important; display: flex !important; flex-direction: column;
  align-items: center; justify-content: center; left: 50% !important; top: 4px !important;
  transform: translateX(-50%) !important; margin: 0; box-sizing: border-box;
  height: 30px; width: max-content; min-width: 112px !important; max-width: 100%;
  padding: 1px 9px !important; font: 700 10px/1.05 system-ui,sans-serif;
  color: #fff4d4; text-align: center;
}
#hallFloor1F #hallCard01 #heroDynamicSign { --hall-face: linear-gradient(145deg,#337995,#204e69 65%,#42809c); }
#hallFloor1F #heroDynamicSign .sign-line1 { font-size: 8px !important; color: #ffe8ab !important; }
#hallFloor1F #heroDynamicSign .sign-line2 { font-size: 11px !important; color: #fff5dc !important; }
#hallFloor1F #hallCard01 #hallLiveBadge01 { top: 6px !important; right: calc(100% - 12px) !important; }
#hallFloor1F #btnEnterMachine01, #hallFloor2F #btnEnterMachine06 {
  top: auto !important; bottom: 4px !important; left: 50% !important;
  width: min(100%, 176px) !important; min-width: 0 !important;
  height: 42px !important; transform: translateX(-50%) !important;
}
