.dawn-platform-room {
  --room-ink: #17282d;
  --room-paper: #fff4d6;
  --room-red: #bc4050;
  --room-blue: #296779;
  --room-gold: #f1bd4c;
  width: min(100%, 1120px);
  min-width: 0;
  margin: 18px auto 46px;
  color: var(--room-ink);
  font-family: Arial, Helvetica, sans-serif;
}

.dawn-platform-room[hidden],
.dawn-platform-room [hidden],
.dawn-platform-room-ticket[hidden] { display: none !important; }

body.dawn-platform-room-mode { background: #e8dfc7; }
body.dawn-platform-room-mode .website-main > :not(#dawn-platform-room) { display: none !important; }
body.dawn-platform-room-mode .website-main { align-self: start; }

.dawn-platform-room-heading {
  display: flex;
  min-width: 0;
  margin-bottom: 16px;
  gap: 24px;
  align-items: end;
  justify-content: space-between;
}

.dawn-platform-room-heading > div { display: grid; min-width: 0; gap: 7px; }
.dawn-platform-room-heading p { max-width: 62ch; margin: 0; color: #46575a; font-size: 0.78rem; line-height: 1.45; }
.dawn-platform-room-heading p:first-child { color: var(--room-red); font: 900 0.63rem/1.25 ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: 0.08em; }
.dawn-platform-room-heading h1 { max-width: 850px; margin: 0; font-size: clamp(2.25rem, 6vw, 5.2rem); letter-spacing: -0.07em; line-height: 0.88; text-wrap: balance; }
.dawn-platform-room-heading > span {
  flex: 0 0 auto;
  padding: 11px 13px;
  border: 4px double var(--room-red);
  border-radius: 50%;
  color: var(--room-red);
  background: rgb(255 244 214 / 75%);
  font: 950 0.55rem/1.2 ui-monospace, "SFMono-Regular", Menlo, monospace;
  text-align: center;
  transform: rotate(5deg);
}

.dawn-platform-room-paper {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(190px, 0.31fr) minmax(0, 1fr);
  border: 3px solid var(--room-ink);
  background: var(--room-paper);
  box-shadow: 10px 11px 0 #b8a87d;
}

.dawn-platform-room-source {
  position: relative;
  display: grid;
  min-width: 0;
  padding: 22px 18px;
  align-content: start;
  gap: 18px;
  overflow: hidden;
  border-right: 3px dashed var(--room-ink);
  background:
    repeating-linear-gradient(0deg, transparent 0 29px, rgb(41 103 121 / 11%) 29px 30px),
    #f7cf72;
}

.dawn-platform-room-source::after {
  position: absolute;
  top: 0;
  right: -10px;
  bottom: 0;
  width: 17px;
  background: radial-gradient(circle, var(--room-paper) 0 4px, transparent 4.5px) center / 17px 25px repeat-y;
  content: "";
  pointer-events: none;
}

.dawn-platform-room-source-punch {
  display: grid;
  width: 66px;
  aspect-ratio: 1;
  place-items: center;
  border: 4px double var(--room-red);
  border-radius: 50%;
  color: var(--room-red);
  background: var(--room-paper);
  font: 950 0.78rem/1 ui-monospace, "SFMono-Regular", Menlo, monospace;
  transform: rotate(-7deg);
}

.dawn-platform-room-source > div { display: grid; min-width: 0; gap: 5px; }
.dawn-platform-room-source small,
.dawn-platform-room-question small,
.dawn-platform-room-result small { color: var(--room-red); font: 900 0.48rem/1.25 ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: 0.06em; }
.dawn-platform-room-source > div > strong { overflow-wrap: anywhere; font-size: 1.05rem; line-height: 1.05; }
.dawn-platform-room-source > div > span { color: #45585b; font-size: 0.68rem; line-height: 1.35; }
.dawn-platform-room-source > p { display: grid; min-width: 0; margin: 0; padding: 10px; gap: 4px; border: 2px solid var(--room-ink); background: rgb(255 244 214 / 78%); transform: rotate(-1deg); }
.dawn-platform-room-source > p strong { overflow-wrap: anywhere; color: var(--room-blue); font: 950 0.64rem/1.32 ui-monospace, "SFMono-Regular", Menlo, monospace; }
.dawn-platform-room-source > em { color: #5d5a4e; font: 850 0.5rem/1.4 ui-monospace, "SFMono-Regular", Menlo, monospace; }

.dawn-platform-room-chamber { display: grid; min-width: 0; padding: clamp(14px, 2.5vw, 26px); align-content: start; gap: 16px; }

.dawn-platform-room-scene {
  position: relative;
  min-width: 0;
  min-height: clamp(245px, 36vw, 410px);
  overflow: hidden;
  border: 4px solid var(--room-ink);
  background:
    linear-gradient(172deg, transparent 0 69%, rgb(23 40 45 / 12%) 69.3% 70%, transparent 70.3%),
    repeating-linear-gradient(90deg, transparent 0 119px, rgb(41 103 121 / 12%) 119px 121px),
    linear-gradient(#e9dfbd 0 70%, #718985 70.4% 100%);
  box-shadow: inset 0 0 0 5px rgb(255 244 214 / 44%);
  isolation: isolate;
}

.dawn-platform-room-ceiling { position: absolute; top: 0; right: 0; left: 0; height: 21%; border-bottom: 3px solid var(--room-ink); background: #f2c864; clip-path: polygon(0 0, 100% 0, 100% 69%, 0 100%); }
.dawn-platform-room-ceiling i { position: absolute; top: 13%; width: 8%; height: 75%; border: 2px solid var(--room-ink); background: var(--room-paper); transform: skewX(-21deg); }
.dawn-platform-room-ceiling i:nth-child(1) { left: 8%; }
.dawn-platform-room-ceiling i:nth-child(2) { left: 28%; }
.dawn-platform-room-ceiling i:nth-child(3) { left: 48%; }
.dawn-platform-room-ceiling i:nth-child(4) { left: 68%; }
.dawn-platform-room-ceiling i:nth-child(5) { left: 88%; }

.dawn-platform-room-window {
  position: absolute;
  top: 23%;
  left: 6%;
  z-index: 2;
  width: 28%;
  height: 37%;
  border: 5px solid var(--room-ink);
  background: repeating-linear-gradient(0deg, #eee1b9 0 27px, #7893a0 27px 29px);
  box-shadow: 7px 8px 0 rgb(23 40 45 / 24%);
  transition: transform 480ms cubic-bezier(0.2, 0.85, 0.25, 1), background 480ms ease;
}
.dawn-platform-room-window::before { position: absolute; inset: 9px; border: 2px dashed var(--room-red); content: ""; }
.dawn-platform-room-window i { position: absolute; top: 0; right: 46%; width: 4px; height: 100%; background: var(--room-ink); }
.dawn-platform-room-window b { position: absolute; right: 9px; bottom: 10px; left: 9px; color: var(--room-red); font: 950 0.42rem/1.2 ui-monospace, "SFMono-Regular", Menlo, monospace; text-align: center; }

.dawn-platform-room-light { position: absolute; top: 58%; left: 4%; z-index: 1; width: 44%; height: 31%; background: linear-gradient(125deg, rgb(255 218 104 / 75%), transparent 70%); clip-path: polygon(0 0, 56% 0, 100% 100%, 7% 84%); opacity: 0; transform: translateX(-35%); transition: opacity 480ms ease, transform 480ms cubic-bezier(0.2, 0.85, 0.25, 1); }

.dawn-platform-room-sign {
  position: absolute;
  top: 25%;
  right: 7%;
  z-index: 4;
  width: 30%;
  padding: 10px;
  border: 4px solid var(--room-ink);
  color: var(--room-paper);
  background: var(--room-blue);
  box-shadow: 5px 5px 0 var(--room-red);
  font: 950 clamp(0.48rem, 1.2vw, 0.7rem)/1.25 ui-monospace, "SFMono-Regular", Menlo, monospace;
  text-align: center;
  white-space: pre-line;
  transform: rotate(1.5deg);
  transition: transform 420ms cubic-bezier(0.2, 0.85, 0.25, 1), background 300ms ease;
}

.dawn-platform-room-counter { position: absolute; right: 4%; bottom: 9%; z-index: 3; width: 35%; height: 26%; border: 4px solid var(--room-ink); background: #d65359; box-shadow: inset 0 12px 0 #f1bd4c; }
.dawn-platform-room-counter > b { position: absolute; top: 18px; right: 9px; left: 9px; color: var(--room-paper); font: 950 0.46rem/1 ui-monospace, "SFMono-Regular", Menlo, monospace; text-align: center; }
.dawn-platform-room-counter > i { position: absolute; bottom: 12px; width: 19%; height: 35%; border: 2px solid var(--room-ink); background: var(--room-paper); transform: rotate(4deg); }
.dawn-platform-room-counter > i:nth-of-type(1) { left: 12%; }
.dawn-platform-room-counter > i:nth-of-type(2) { left: 40%; transform: rotate(-4deg); }
.dawn-platform-room-counter > i:nth-of-type(3) { left: 68%; transform: rotate(2deg); }

.dawn-platform-room-chair { position: absolute; bottom: 11%; z-index: 3; width: 13%; height: 23%; border: 4px solid var(--room-ink); border-radius: 43% 43% 9% 9%; background: #f1bd4c; transform-origin: center bottom; transition: transform 430ms cubic-bezier(0.2, 0.85, 0.25, 1); }
.dawn-platform-room-chair::before,
.dawn-platform-room-chair::after { position: absolute; bottom: -21%; width: 4px; height: 25%; background: var(--room-ink); content: ""; }
.dawn-platform-room-chair::before { left: 18%; }
.dawn-platform-room-chair::after { right: 18%; }
.dawn-platform-room-chair i { position: absolute; right: -14%; bottom: 21%; left: -14%; height: 26%; border: 4px solid var(--room-ink); background: #f5d77f; }
.dawn-platform-room-chair-one { left: 30%; }
.dawn-platform-room-chair-two { left: 46%; transform: scale(0.82); }

.dawn-platform-room-queue { position: absolute; bottom: 4%; left: 6%; z-index: 2; width: 57%; height: 7px; border-block: 2px solid var(--room-ink); background: repeating-linear-gradient(90deg, var(--room-paper) 0 14px, var(--room-red) 14px 28px); transform-origin: left center; transition: width 420ms ease, transform 420ms cubic-bezier(0.2, 0.85, 0.25, 1); }
.dawn-platform-room-queue i { position: absolute; bottom: -2px; width: 4px; height: 48px; background: var(--room-ink); }
.dawn-platform-room-queue i:nth-child(1) { left: 0; }
.dawn-platform-room-queue i:nth-child(2) { left: 47%; }
.dawn-platform-room-queue i:nth-child(3) { right: 0; }
.dawn-platform-room-queue b { position: absolute; right: -13px; bottom: 42px; display: grid; width: 29px; aspect-ratio: 1; place-items: center; border: 2px solid var(--room-ink); border-radius: 50%; background: var(--room-paper); font: 950 0.52rem/1 ui-monospace, "SFMono-Regular", Menlo, monospace; }

.dawn-platform-room-file-tabs { position: absolute; top: 5%; right: 5%; z-index: 2; display: flex; gap: 4px; transition: transform 450ms cubic-bezier(0.2, 0.85, 0.25, 1); }
.dawn-platform-room-file-tabs i { display: grid; width: 25px; height: 38px; place-items: end center; border: 2px solid var(--room-ink); background: var(--room-paper); color: var(--room-red); font: 950 0.44rem/1 ui-monospace, "SFMono-Regular", Menlo, monospace; font-style: normal; }
.dawn-platform-room-floor { position: absolute; right: 0; bottom: 0; left: 0; z-index: -1; height: 30%; background: repeating-linear-gradient(100deg, transparent 0 42px, rgb(23 40 45 / 35%) 42px 44px); }

.dawn-platform-room-question { display: grid; min-width: 0; gap: 10px; }
.dawn-platform-room-question > p { display: grid; min-width: 0; margin: 0; gap: 4px; }
.dawn-platform-room-question > p strong { overflow-wrap: anywhere; font-size: 0.95rem; line-height: 1.2; }
.dawn-platform-room-choices { display: grid; min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.dawn-platform-room-choices button {
  display: grid;
  min-width: 0;
  min-height: 102px;
  padding: 12px;
  grid-template-columns: 35px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 4px 9px;
  align-content: start;
  border: 3px solid var(--room-ink);
  color: var(--room-ink);
  background: #fffaf0;
  box-shadow: 5px 5px 0 var(--room-gold);
  text-align: left;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
.dawn-platform-room-choices button:last-child { background: #d8e7df; box-shadow-color: var(--room-red); }
.dawn-platform-room-choices button:hover:not(:disabled) { background: #f8d879; box-shadow: 7px 7px 0 var(--room-red); transform: translate(-2px, -2px); }
.dawn-platform-room-choices button > span { grid-row: 1 / 3; color: var(--room-red); font-size: 1.25rem; }
.dawn-platform-room-choices strong { overflow-wrap: anywhere; font-size: 0.78rem; line-height: 1.15; }
.dawn-platform-room-choices small { overflow-wrap: anywhere; color: #4b5b5d; font-size: 0.62rem; line-height: 1.35; }

.dawn-platform-room-result { display: grid; min-width: 0; padding: 15px; grid-template-columns: 92px minmax(0, 1fr); gap: 15px; align-items: center; border: 4px double var(--room-red); background: #fffaf0; box-shadow: 7px 7px 0 var(--room-gold); animation: dawn-room-result-arrive 420ms cubic-bezier(0.2, 0.85, 0.25, 1) both; }
.dawn-platform-room-result > span { display: grid; width: 88px; aspect-ratio: 1; padding: 8px; place-items: center; border: 5px double var(--room-red); border-radius: 50%; color: var(--room-red); font: 950 0.42rem/1.1 ui-monospace, "SFMono-Regular", Menlo, monospace; text-align: center; white-space: pre-line; transform: rotate(-7deg); }
.dawn-platform-room-result > div { display: grid; min-width: 0; gap: 5px; }
.dawn-platform-room-result strong { overflow-wrap: anywhere; font-size: 0.92rem; line-height: 1.15; }
.dawn-platform-room-result p { margin: 0; overflow-wrap: anywhere; color: #46575a; font-size: 0.72rem; line-height: 1.45; }

.dawn-platform-room-footer { display: flex; min-width: 0; gap: 14px; align-items: center; justify-content: space-between; }
.dawn-platform-room-footer > div { display: grid; min-width: 0; gap: 4px; }
.dawn-platform-room-footer p { margin: 0; color: #46575a; font: 850 0.58rem/1.4 ui-monospace, "SFMono-Regular", Menlo, monospace; }
.dawn-platform-room-footer a { width: fit-content; color: #687274; font: 800 0.55rem/1.3 ui-monospace, "SFMono-Regular", Menlo, monospace; text-underline-offset: 3px; }
.dawn-platform-room-footer button { flex: 0 0 auto; min-height: 44px; padding: 9px 12px; border: 2px solid var(--room-ink); color: var(--room-paper); background: var(--room-blue); font: 900 0.58rem/1.2 ui-monospace, "SFMono-Regular", Menlo, monospace; cursor: pointer; }

.dawn-platform-room[data-room-choice="choice-1"] .dawn-platform-room-window { background: linear-gradient(145deg, #f9c970, #b9d7d5 52%, #6a91a0); transform: translate(-3px, -4px) rotate(-2deg); }
.dawn-platform-room[data-room-choice="choice-1"] .dawn-platform-room-window::before,
.dawn-platform-room[data-room-choice="choice-1"] .dawn-platform-room-window b { opacity: 0; }
.dawn-platform-room[data-room-choice="choice-1"] .dawn-platform-room-light { opacity: 1; transform: translateX(0); }
.dawn-platform-room[data-room-choice="choice-1"] .dawn-platform-room-file-tabs { transform: translate(-36px, 62px) rotate(9deg); }
.dawn-platform-room[data-room-choice="choice-1"] .dawn-platform-room-sign { color: var(--room-ink); background: var(--room-gold); transform: rotate(-3deg) translateY(8px); }

.dawn-platform-room[data-room-choice="choice-2"] .dawn-platform-room-queue { width: 43%; transform: translate(118%, -680%) rotate(-88deg); }
.dawn-platform-room[data-room-choice="choice-2"] .dawn-platform-room-chair-one { transform: translateX(-24%) rotate(-8deg); }
.dawn-platform-room[data-room-choice="choice-2"] .dawn-platform-room-chair-two { transform: translateX(30%) scale(0.82) rotate(11deg); }
.dawn-platform-room[data-room-choice="choice-2"] .dawn-platform-room-sign { background: var(--room-red); transform: rotate(4deg) translate(-9px, 13px); }

.dawn-platform-room:focus,
.dawn-platform-room-result:focus { outline: 4px solid var(--room-blue); outline-offset: 5px; }
.dawn-platform-room button:focus-visible { outline: 4px solid #175cff; outline-offset: 4px; }

.dawn-platform-room-ticket {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 74px;
  padding: 10px 12px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 3px solid var(--dawn-ink, #17282d);
  color: var(--dawn-ink, #17282d);
  background: #f2c664;
  box-shadow: 5px 5px 0 var(--dawn-red, #bc4050);
  text-align: left;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
.dawn-platform-room-ticket:hover { background: #ffe19a; box-shadow: 7px 7px 0 var(--dawn-blue, #296779); transform: translate(-1px, -1px); }
.dawn-platform-room-ticket > span:first-child { display: grid; width: 40px; aspect-ratio: 1; place-items: center; border: 3px double var(--dawn-red, #bc4050); border-radius: 50%; color: var(--dawn-red, #bc4050); background: #fff4d6; font: 950 0.38rem/1 ui-monospace, "SFMono-Regular", Menlo, monospace; text-align: center; transform: rotate(-5deg); }
.dawn-platform-room-ticket > span:nth-child(2) { display: grid; min-width: 0; gap: 3px; }
.dawn-platform-room-ticket small { color: var(--dawn-red, #bc4050); font: 900 0.4rem/1.2 ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: 0.05em; }
.dawn-platform-room-ticket strong { overflow-wrap: anywhere; font-size: 0.72rem; line-height: 1.12; }
.dawn-platform-room-ticket > b { color: var(--dawn-red, #bc4050); font-size: 1.15rem; }

@keyframes dawn-room-result-arrive {
  from { opacity: 0; transform: translateY(13px) rotate(0.4deg); }
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

@media (max-width: 760px) {
  .dawn-platform-room-heading { align-items: start; }
  .dawn-platform-room-heading h1 { font-size: clamp(2.15rem, 11vw, 4rem); }
  .dawn-platform-room-paper { grid-template-columns: minmax(0, 1fr); }
  .dawn-platform-room-source { padding: 14px; grid-template-columns: 54px minmax(0, 1fr); gap: 10px 13px; border-right: 0; border-bottom: 3px dashed var(--room-ink); }
  .dawn-platform-room-source::after { top: auto; right: 0; bottom: -10px; left: 0; width: auto; height: 17px; background: radial-gradient(circle, var(--room-paper) 0 4px, transparent 4.5px) center / 25px 17px repeat-x; }
  .dawn-platform-room-source-punch { width: 52px; grid-row: 1 / 3; }
  .dawn-platform-room-source > p { grid-column: 2; }
  .dawn-platform-room-source > em { grid-column: 1 / -1; }
  .dawn-platform-room-scene { min-height: 300px; }
}

@media (max-width: 520px) {
  body.dawn-platform-room-mode .website-main { padding-inline: 10px; padding-top: 16px; }
  .dawn-platform-room { margin-top: 6px; }
  .dawn-platform-room-heading { gap: 10px; }
  .dawn-platform-room-heading > span { padding: 8px; border-width: 3px; font-size: 0.42rem; }
  .dawn-platform-room-heading h1 { font-size: clamp(2rem, 12vw, 3.15rem); }
  .dawn-platform-room-heading p:last-child { font-size: 0.7rem; }
  .dawn-platform-room-paper { box-shadow: 5px 6px 0 #b8a87d; }
  .dawn-platform-room-source { padding: 11px 10px 13px; grid-template-columns: 46px minmax(0, 1fr); gap: 8px 10px; }
  .dawn-platform-room-source-punch { width: 44px; border-width: 3px; font-size: 0.58rem; }
  .dawn-platform-room-source > p { padding: 7px; }
  .dawn-platform-room-chamber { padding: 10px 8px 12px; gap: 12px; }
  .dawn-platform-room-scene { min-height: 246px; border-width: 3px; }
  .dawn-platform-room-window { top: 26%; left: 5%; width: 32%; height: 34%; border-width: 3px; }
  .dawn-platform-room-window b { right: 4px; bottom: 6px; left: 4px; font-size: 0.31rem; }
  .dawn-platform-room-sign { top: 24%; right: 4%; width: 37%; padding: 7px; border-width: 3px; font-size: 0.4rem; }
  .dawn-platform-room-counter { right: 3%; width: 39%; border-width: 3px; }
  .dawn-platform-room-chair { width: 15%; height: 22%; border-width: 3px; }
  .dawn-platform-room-chair-one { left: 27%; }
  .dawn-platform-room-chair-two { left: 44%; }
  .dawn-platform-room-queue { left: 4%; width: 54%; }
  .dawn-platform-room-file-tabs { right: 3%; }
  .dawn-platform-room-choices { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .dawn-platform-room-choices button { min-height: 84px; padding: 10px; box-shadow: 3px 3px 0 var(--room-gold); }
  .dawn-platform-room-result { padding: 11px 9px; grid-template-columns: 66px minmax(0, 1fr); gap: 9px; border-width: 3px; box-shadow: 4px 4px 0 var(--room-gold); }
  .dawn-platform-room-result > span { width: 63px; padding: 4px; border-width: 3px; font-size: 0.32rem; }
  .dawn-platform-room-result strong { font-size: 0.78rem; }
  .dawn-platform-room-result p { font-size: 0.65rem; }
  .dawn-platform-room-footer { align-items: stretch; flex-direction: column; }
  .dawn-platform-room-footer button { width: 100%; }
  .dawn-platform-room-ticket { min-height: 70px; padding: 9px; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 7px; box-shadow: 3px 3px 0 var(--dawn-red, #bc4050); }
  .dawn-platform-room-ticket > span:first-child { width: 36px; border-width: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .dawn-platform-room-window,
  .dawn-platform-room-light,
  .dawn-platform-room-sign,
  .dawn-platform-room-chair,
  .dawn-platform-room-queue,
  .dawn-platform-room-file-tabs,
  .dawn-platform-room-choices button,
  .dawn-platform-room-ticket { transition: none !important; transform: none !important; }
  .dawn-platform-room-result { animation: none !important; }
}
