:root {
  color-scheme: light;
  --ink: #151c2b;
  --ink-2: #29344a;
  --paper: #f2f1eb;
  --panel: #fffef9;
  --line: #c9c8bf;
  --line-dark: #777d89;
  --lime: #c7ef5b;
  --lime-dark: #657d1b;
  --cyan: #78dce8;
  --violet: #9a88f2;
  --coral: #f07c61;
  --muted: #666d79;
  background: var(--paper);
  color: var(--ink);
  font-family: "Yu Gothic UI", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background-color: var(--paper);
  line-height: 1.65;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  border: 2px solid var(--ink);
  background: var(--panel);
  padding: 0.65rem 1rem;
}

.skip-link:focus {
  top: 1rem;
}

.site-header,
footer,
main {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand b {
  letter-spacing: 0.12em;
}

.brand-mark {
  display: flex;
  gap: 3px;
}

.brand-mark i {
  display: block;
  width: 7px;
  height: 19px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--lime);
}

.brand-mark i:nth-child(2),
.brand-mark i:nth-child(4) {
  margin-top: 5px;
  background: var(--cyan);
}

.site-header nav,
footer div {
  display: flex;
  gap: 1.4rem;
}

.site-header nav a,
footer a {
  text-underline-offset: 4px;
}

.hero {
  display: grid;
  min-height: 500px;
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
  grid-template-columns: minmax(260px, 0.8fr) minmax(420px, 1.2fr);
  padding-block: 4rem 3.2rem;
}

.hero-copy {
  max-width: 390px;
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.19em;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  line-height: 1.3;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: 0.03em;
}

h2 {
  font-size: clamp(1.35rem, 2.3vw, 1.8rem);
}

.hero-copy > p:not(.eyebrow) {
  margin: 1.35rem 0 1.8rem;
  color: var(--ink-2);
}

.primary,
.secondary,
.text-button,
.button-link,
.board-filter button,
.copy-code {
  min-height: 46px;
  cursor: pointer;
  border: 2px solid var(--ink);
  border-radius: 6px;
  font-weight: 800;
}

.primary,
.button-link,
.copy-code {
  background: var(--lime);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 0.7rem 1.15rem;
}

.primary:hover,
.button-link:hover,
.copy-code:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.room-visual {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 22px;
  background: var(--ink);
  box-shadow: 13px 13px 0 var(--cyan);
  padding: clamp(1.4rem, 4vw, 3rem);
}

.room-visual::before,
.room-visual::after {
  position: absolute;
  content: "";
  border: 1px solid var(--ink-2);
  border-radius: 50%;
}

.room-visual::before {
  width: 270px;
  height: 270px;
  right: -132px;
  top: -100px;
}

.room-visual::after {
  width: 210px;
  height: 210px;
  left: -120px;
  bottom: -115px;
}

.code-display,
.mini-code,
.detail-code {
  display: flex;
  gap: 0.45rem;
}

.code-display i,
.detail-code i {
  display: grid;
  width: clamp(42px, 7vw, 67px);
  aspect-ratio: 0.74;
  place-items: center;
  border: 1px solid #505a70;
  border-radius: 8px;
  background: #0b101b;
  color: var(--lime);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: clamp(1.8rem, 4.6vw, 3.2rem);
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 0 14px rgba(199, 239, 91, 0.45);
}

.seat-stage {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 3.6rem;
}

.seat-stage span {
  display: grid;
  flex: 1;
  justify-items: center;
  gap: 0.45rem;
}

.seat-stage span > i {
  width: clamp(38px, 5.8vw, 57px);
  aspect-ratio: 1;
  border: 2px solid var(--line-dark);
  border-radius: 50% 50% 12px 12px;
}

.seat-stage span > b {
  color: var(--line-dark);
  font-family: Consolas, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
}

.seat-stage .host-seat > i {
  border-color: var(--violet);
  background: var(--violet);
  box-shadow: 0 0 17px rgba(154, 136, 242, 0.55);
}

.seat-stage .open-seat > i {
  border-color: var(--lime);
  background: var(--lime);
  box-shadow: 0 0 17px rgba(199, 239, 91, 0.55);
}

.seat-stage .filled-seat > i {
  border-color: #4b5569;
  background: #4b5569;
}

.time-rail {
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(12, 1fr);
  margin-top: 3rem;
}

.time-rail i {
  height: 5px;
  border-radius: 3px;
  background: var(--lime);
}

.time-readout {
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  gap: 0.35rem;
  margin-top: 0.6rem;
  color: var(--panel);
  font-family: Consolas, monospace;
}

.time-readout b {
  font-size: 1.55rem;
}

.time-readout span {
  color: var(--line);
  font-size: 0.72rem;
}

.signal-strip {
  display: grid;
  border: 2px solid var(--ink);
  background: var(--panel);
  grid-template-columns: repeat(3, 1fr);
}

.signal-strip article {
  display: grid;
  min-height: 105px;
  align-content: center;
  align-items: center;
  gap: 0.1rem 0.8rem;
  grid-template-columns: 52px 1fr;
  padding: 1.2rem;
}

.signal-strip article + article {
  border-left: 1px solid var(--line);
}

.signal-strip b,
.signal-strip small {
  grid-column: 2;
}

.signal-strip small {
  color: var(--muted);
}

.strip-code {
  display: grid;
  width: 44px;
  height: 60px;
  place-items: center;
  grid-row: 1 / 3;
  border-radius: 6px;
  background: var(--ink);
  color: var(--lime);
  font:
    700 1.75rem Consolas,
    monospace;
}

.strip-seats {
  display: flex;
  grid-row: 1 / 3;
  gap: 3px;
}

.strip-seats i {
  width: 13px;
  height: 30px;
  border-radius: 8px 8px 3px 3px;
  background: var(--violet);
}

.strip-seats i:nth-child(2) {
  background: var(--lime);
}

.strip-seats i:nth-child(3) {
  border: 2px solid var(--line-dark);
  background: transparent;
}

.strip-clock {
  width: 47px;
  height: 47px;
  grid-row: 1 / 3;
  border: 6px dotted var(--cyan);
  border-radius: 50%;
}

.create-panel,
.board-section,
.info-page,
.manager-console {
  margin-top: 5.5rem;
}

.create-panel {
  scroll-margin-top: 1.5rem;
  border: 2px solid var(--ink);
  background: var(--panel);
  padding: clamp(1.3rem, 4vw, 2.8rem);
}

.panel-heading,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.panel-heading {
  justify-content: flex-start;
}

.panel-heading > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--cyan);
  font-family: Consolas, monospace;
  font-weight: 800;
}

.panel-heading .eyebrow,
.section-heading .eyebrow {
  margin: 0;
}

.form-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(3, 1fr);
}

.field,
.rules-field,
.board-filter label,
.manager-actions label {
  display: grid;
  gap: 0.45rem;
  color: var(--ink-2);
  font-size: 0.86rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea,
.board-filter select,
.manager-actions select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line-dark);
  border-radius: 5px;
  background: #fff;
  padding: 0.65rem 0.75rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.board-filter select:focus,
.manager-actions select:focus {
  outline: 3px solid rgba(120, 220, 232, 0.55);
  outline-offset: 1px;
}

.code-field input {
  color: var(--ink);
  font:
    700 1.45rem Consolas,
    monospace;
  letter-spacing: 0.22em;
}

.field-wide,
.rules-field {
  grid-column: 1 / -1;
}

.rules-field {
  display: flex;
  flex-wrap: wrap;
  border: 0;
  padding: 0;
}

.rules-field legend {
  width: 100%;
  margin-bottom: 0.5rem;
}

.rules-field label {
  position: relative;
}

.rules-field input {
  position: absolute;
  opacity: 0;
}

.rules-field span,
.rule-chips span,
.rule-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid var(--line-dark);
  border-radius: 18px;
  background: var(--paper);
  padding: 0.3rem 0.7rem;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 700;
}

.rules-field input:checked + span {
  border-color: var(--ink);
  background: var(--lime);
  box-shadow: 2px 2px 0 var(--ink);
}

.rules-field input:focus-visible + span {
  outline: 3px solid var(--cyan);
}

.honeypot {
  position: absolute;
  left: -10000px;
}

.safety-inline {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 1.5rem 0;
  border-left: 4px solid var(--cyan);
  background: #edf9fa;
  padding: 0.8rem 1rem;
}

.safety-inline p,
.form-message {
  margin: 0;
}

.shield-dot {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  margin-top: 0.43rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(120, 220, 232, 0.22);
}

.form-message {
  margin-top: 1rem;
  color: var(--ink-2);
  font-weight: 700;
}

.section-heading > b {
  display: grid;
  min-width: 70px;
  min-height: 42px;
  place-items: center;
  border: 2px solid var(--ink);
  background: var(--lime);
}

.board-filter {
  display: flex;
  align-items: end;
  gap: 0.7rem;
  margin-bottom: 1.4rem;
}

.board-filter select {
  min-width: 200px;
}

.board-filter button {
  background: var(--panel);
  padding: 0.55rem 1rem;
}

.room-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(3, 1fr);
}

.room-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 2px solid var(--ink);
  background: var(--panel);
  padding: 1rem;
}

.card-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.77rem;
}

.card-status span {
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 0.2rem 0.55rem;
}

.card-status b {
  color: var(--lime-dark);
  font-family: Consolas, monospace;
}

.mini-code {
  margin: 1rem 0 0.8rem;
}

.mini-code i {
  display: grid;
  min-width: 0;
  flex: 1;
  aspect-ratio: 0.8;
  place-items: center;
  border-radius: 4px;
  background: var(--ink);
  color: var(--lime);
  font:
    700 clamp(1.05rem, 2vw, 1.45rem) Consolas,
    monospace;
  font-style: normal;
}

.mini-seats {
  display: flex;
  gap: 5px;
  margin-bottom: 0.9rem;
}

.mini-seats span {
  width: 19px;
  height: 13px;
  border: 2px solid var(--line-dark);
  border-radius: 8px 8px 2px 2px;
}

.mini-seats .host {
  border-color: var(--violet);
  background: var(--violet);
}

.mini-seats .open {
  border-color: var(--lime-dark);
  background: var(--lime);
}

.mini-seats .filled {
  background: var(--line-dark);
}

.room-facts,
.rule-chips,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.room-facts span {
  color: var(--muted);
  font-size: 0.85rem;
}

.room-facts span::before {
  content: "·";
  margin-right: 0.45rem;
}

.room-card > p {
  margin: 0.75rem 0;
  color: var(--ink-2);
  font-size: 0.88rem;
}

.room-card .rule-chips {
  margin-top: 0.8rem;
}

.card-actions {
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
}

.copy-code {
  min-height: 40px;
  padding: 0.45rem 0.7rem;
  font-size: 0.83rem;
}

.card-actions a {
  font-size: 0.83rem;
  font-weight: 700;
  text-underline-offset: 4px;
}

.empty-board {
  display: grid;
  min-height: 240px;
  place-items: center;
  grid-column: 1 / -1;
  border: 2px dashed var(--line-dark);
  color: var(--muted);
}

.dark-seats,
.loader-seats {
  display: flex;
  gap: 9px;
}

.dark-seats i,
.loader-seats i {
  width: 23px;
  height: 38px;
  border: 2px solid var(--line-dark);
  border-radius: 12px 12px 4px 4px;
}

.boundary-row {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 5rem;
  border: 1px solid var(--ink);
  background: var(--ink);
}

.boundary-row > div {
  display: grid;
  min-height: 170px;
  align-content: center;
  background: var(--panel);
  padding: 1.6rem;
}

.boundary-row p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.boundary-icon {
  display: block;
  width: 54px;
  height: 29px;
  margin-bottom: 1rem;
}

.boundary-icon.digits {
  border-right: 8px double var(--lime-dark);
  border-left: 8px double var(--lime-dark);
  background: var(--lime);
}

.boundary-icon.blank {
  border: 2px solid var(--line-dark);
  background: var(--paper);
}

.boundary-icon.timer {
  width: 32px;
  height: 32px;
  border: 5px dotted var(--violet);
  border-radius: 50%;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 6rem;
  border-top: 1px solid var(--line);
  padding-block: 2.2rem;
  color: var(--muted);
  font-size: 0.82rem;
}

/* Detail console */
.room-shell {
  max-width: 820px;
}

.loading-bay {
  display: grid;
  min-height: 430px;
  place-items: center;
  align-content: center;
  gap: 1rem;
  color: var(--muted);
}

.loader-seats i {
  animation: pulse 1.2s steps(2, jump-none) infinite;
}

.loader-seats i:nth-child(2) {
  animation-delay: 0.15s;
}

.loader-seats i:nth-child(3) {
  animation-delay: 0.3s;
}

.loader-seats i:nth-child(4) {
  animation-delay: 0.45s;
}

.loader-seats i:nth-child(5) {
  animation-delay: 0.6s;
}

@keyframes pulse {
  50% {
    border-color: var(--lime-dark);
    background: var(--lime);
  }
}

.room-head {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 3rem 0 2rem;
}

.purpose-beacon {
  display: grid;
  min-width: 115px;
  justify-items: center;
  gap: 0.5rem;
  border-right: 1px solid var(--line);
  padding-right: 1.4rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.purpose-beacon i {
  width: 31px;
  height: 31px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 7px rgba(199, 239, 91, 0.25);
}

.room-head h1 {
  font-size: clamp(1.65rem, 4vw, 2.4rem);
}

.room-head p:last-child {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.detail-console {
  display: grid;
  gap: 1.5rem;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--ink);
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

.detail-code {
  justify-content: center;
}

.detail-console > .primary {
  justify-self: center;
}

.detail-seats {
  display: flex;
  justify-content: center;
  gap: clamp(0.6rem, 3vw, 1.3rem);
  border-top: 1px solid var(--ink-2);
  padding-top: 1.5rem;
}

.detail-seats i {
  width: clamp(35px, 8vw, 54px);
  height: clamp(48px, 10vw, 70px);
  border: 2px solid #5d6679;
  border-radius: 50% 50% 10px 10px;
}

.detail-seats .host {
  border-color: var(--violet);
  background: var(--violet);
}

.detail-seats .open {
  border-color: var(--lime);
  background: var(--lime);
}

.detail-seats .filled {
  background: #4d5669;
}

.detail-timer {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.detail-timer > span {
  display: grid;
  flex: 1;
  gap: 4px;
  grid-template-columns: repeat(12, 1fr);
}

.detail-timer i {
  height: 5px;
  border-radius: 3px;
  background: #424b5e;
}

.detail-timer i.lit {
  background: var(--lime);
}

.detail-timer b {
  color: var(--panel);
  font:
    700 0.84rem Consolas,
    monospace;
  white-space: nowrap;
}

.room-conditions {
  border: 1px solid var(--line);
  border-top: 0;
  background: var(--panel);
  padding: 1.5rem;
}

.condition-numbers {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
  background: var(--line);
}

.condition-numbers span {
  display: grid;
  justify-items: center;
  background: var(--paper);
  padding: 0.8rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.condition-numbers strong {
  color: var(--ink);
  font:
    700 1.25rem Consolas,
    monospace;
}

.room-conditions .rule-chips {
  margin-top: 1.2rem;
}

.room-conditions > p {
  margin: 1rem 0 0;
  color: var(--ink-2);
}

.public-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.secondary,
.text-button {
  background: var(--panel);
  padding: 0.65rem 0.9rem;
}

.text-button {
  min-height: 40px;
  border-color: transparent;
  font-size: 0.83rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.text-button.danger {
  color: #aa3427;
}

.public-actions .form-message {
  width: 100%;
}

.manager-console {
  border: 2px solid var(--ink);
  background: var(--panel);
  padding: clamp(1.2rem, 4vw, 2rem);
}

.manager-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.7rem;
}

.capability-note,
.room-disclaimer {
  color: var(--muted);
  font-size: 0.83rem;
}

.room-disclaimer {
  margin-top: 2rem;
  border-left: 4px solid var(--coral);
  background: #fff2ee;
  padding: 1rem;
}

.room-disclaimer p {
  margin: 0.35rem 0 0;
}

/* Guides and policies */
.info-page {
  margin-top: 4rem;
}

.info-heading {
  display: grid;
  align-items: center;
  gap: 3rem;
  grid-template-columns: minmax(320px, 0.8fr) 1fr;
}

.info-heading .room-visual {
  min-height: 320px;
}

.info-heading .room-visual .seat-stage {
  margin-top: 2.5rem;
}

.safety-heading,
.privacy-heading {
  min-height: 260px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--panel);
  padding: clamp(1.5rem, 5vw, 4rem);
}

.safety-console {
  display: flex;
  gap: 1rem;
}

.safety-console i {
  width: 64px;
  height: 88px;
  border: 2px solid #525d73;
  border-radius: 32px 32px 8px 8px;
}

.safety-console i:nth-child(2) {
  border-color: var(--coral);
  background: var(--coral);
}

.privacy-slots {
  display: flex;
  gap: 7px;
}

.privacy-slots i {
  width: clamp(28px, 5vw, 48px);
  height: 100px;
  border: 2px solid var(--line-dark);
  background: #0b101b;
}

.privacy-slots i:first-child,
.privacy-slots i:last-child {
  border-color: var(--lime);
}

.guide-cards {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(2, 1fr);
  margin: 4rem 0 0;
  background: var(--ink);
  padding: 1px;
  list-style: none;
}

.guide-cards li {
  display: flex;
  gap: 1.2rem;
  background: var(--panel);
  padding: 1.5rem;
}

.guide-cards li > span {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
  font:
    700 0.9rem Consolas,
    monospace;
}

.guide-cards h2,
.data-card h2,
.source-card h2 {
  font-size: 1.08rem;
}

.guide-cards p,
.source-card p {
  margin: 0.55rem 0 0;
  color: var(--muted);
}

.source-card {
  margin-top: 2rem;
  border: 1px solid var(--line-dark);
  background: var(--panel);
  padding: 1.5rem;
}

.source-card a {
  display: inline-block;
  margin-top: 1rem;
  font-weight: 800;
  text-underline-offset: 4px;
}

.data-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 2rem;
}

.data-card {
  border: 2px solid var(--ink);
  background: var(--panel);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.data-card.keep {
  border-top: 10px solid var(--lime);
}

.data-card.never {
  border-top: 10px solid var(--coral);
}

.data-card ul {
  margin: 1rem 0 0;
  padding-left: 1.25rem;
}

.data-card li + li {
  margin-top: 0.55rem;
}

.retention-note {
  margin-top: 1.5rem;
  border-left: 4px solid var(--cyan);
  background: var(--panel);
  padding: 1rem 1.2rem;
}

.not-found {
  display: grid;
  min-height: 65vh;
  place-items: center;
  align-content: center;
  gap: 1.5rem;
  text-align: center;
}

.button-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

@media (max-width: 850px) {
  .hero,
  .info-heading {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .hero-copy {
    max-width: 560px;
  }

  .form-grid,
  .room-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .field-wide,
  .rules-field {
    grid-column: 1 / -1;
  }

  .info-heading > .room-visual {
    max-width: 620px;
  }
}

@media (max-width: 620px) {
  .site-header,
  footer,
  main {
    width: min(100% - 24px, 1120px);
  }

  .site-header {
    min-height: 66px;
  }

  .site-header nav {
    gap: 0.65rem;
    font-size: 0.76rem;
  }

  .brand-mark {
    display: none;
  }

  .hero {
    gap: 2.5rem;
  }

  .room-visual {
    min-height: 325px;
    box-shadow: 7px 7px 0 var(--cyan);
  }

  .seat-stage {
    margin-top: 2.5rem;
  }

  .signal-strip,
  .boundary-row,
  .form-grid,
  .room-grid,
  .guide-cards,
  .data-grid {
    grid-template-columns: 1fr;
  }

  .signal-strip article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .field-wide,
  .rules-field {
    grid-column: 1;
  }

  .boundary-row {
    gap: 1px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .room-head {
    align-items: flex-start;
  }

  .purpose-beacon {
    min-width: 86px;
  }

  .detail-console {
    border-radius: 10px;
  }

  .condition-numbers {
    grid-template-columns: 1fr;
  }

  .public-actions,
  .manager-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .public-actions button,
  .manager-actions button {
    width: 100%;
  }

  .info-heading {
    gap: 1.5rem;
  }

  .safety-heading,
  .privacy-heading {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
