:root {
  color-scheme: light;
  --bg: #eef6ff;
  --panel: rgba(247, 250, 252, 0.93);
  --panel-strong: rgba(255, 255, 255, 0.98);
  --text: #102032;
  --muted: #526070;
  --line: rgba(16, 32, 50, 0.18);
  --red: #b42332;
  --blue: #1b74c9;
  --gold: #9c6b12;
  --green: #18794e;
  --danger: #b42332;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

body {
  overflow-x: hidden;
}

.admin-body {
  background:
    linear-gradient(135deg, rgba(27, 116, 201, 0.16), rgba(24, 121, 78, 0.12)),
    var(--bg);
}

.a-enter-vr,
.a-enter-vr-button {
  display: none !important;
}

.booking-scene {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: #dceefe;
}

.chimera-fx-fire-scene {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: 0.48;
  mix-blend-mode: screen;
}

.chimera-fx-booking-chimera {
  opacity: 0.56;
  filter: saturate(1.12) contrast(1.04);
}

.castle-chimera-fx {
  opacity: 0.34;
  mix-blend-mode: normal;
  filter: saturate(1.2) contrast(1.08);
}

.booking-shell {
  position: fixed;
  inset: 0;
  z-index: 2;
  height: 100vh;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 24px;
  padding: 24px;
  pointer-events: none;
}

.booking-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  pointer-events: auto;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--gold);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 76px);
  line-height: 0.94;
  letter-spacing: 0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.42);
}

.booking-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.booking-nav a,
button,
input,
select,
textarea {
  font: inherit;
}

.booking-nav a,
button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.84);
  text-decoration: none;
}

.booking-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  color: var(--text);
  box-shadow: 0 8px 24px rgba(16, 32, 50, 0.18);
}

.booking-nav a:hover,
button:hover {
  border-color: rgba(57, 183, 255, 0.7);
  color: var(--text);
}

.booking-panel {
  align-self: end;
  width: min(100%, 560px);
  max-height: calc(100vh - 170px);
  margin: 0 auto 0 max(24px, calc((100vw - 1180px) / 2));
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(16, 32, 50, 0.28);
  backdrop-filter: blur(12px) saturate(1.08);
  overflow: auto;
  pointer-events: auto;
}

.castle-booking-shell {
  z-index: 3;
}

.castle-booking-shell .booking-header h1 {
  max-width: 760px;
  font-size: clamp(34px, 5vw, 66px);
}

.castle-booking-shell .booking-panel {
  align-self: start;
  margin-top: 42px;
  max-height: calc(100vh - 235px);
}

.booking-component {
  display: grid;
  gap: 14px;
  width: min(620px, calc(100vw - 48px));
  border-color: rgba(83, 205, 255, 0.34);
  background:
    linear-gradient(145deg, rgba(4, 11, 22, 0.92), rgba(18, 8, 14, 0.90)),
    radial-gradient(circle at 14% 0%, rgba(71, 199, 255, 0.24), transparent 36%),
    radial-gradient(circle at 92% 106%, rgba(255, 138, 30, 0.18), transparent 42%);
  color: #f7fbff;
  box-shadow: 0 24px 76px rgba(0, 0, 0, 0.34), 0 0 54px rgba(71, 199, 255, 0.16);
}

.booking-component--chimera {
  position: relative;
  overflow: auto;
}

.booking-component--chimera::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(71, 199, 255, 0.050) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 209, 102, 0.032) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(circle at center, #000, transparent 80%);
}

.booking-component--chimera > * {
  position: relative;
}

.booking-component-copy {
  display: grid;
  gap: 8px;
}

.booking-component-kicker {
  margin: 0;
  color: #8bdcff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.booking-component h2 {
  margin: 0;
  color: #f7fbff;
  font-size: clamp(26px, 3.6vw, 42px);
  line-height: 1.02;
  letter-spacing: 0;
}

.booking-component p {
  margin: 0;
  color: rgba(247, 251, 255, 0.76);
  font-size: 14px;
  line-height: 1.45;
}

.booking-component-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 6px;
}

.booking-component-steps span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  border: 1px solid rgba(139, 220, 255, 0.24);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(247, 251, 255, 0.84);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.booking-component-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.booking-component-actions a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(139, 220, 255, 0.28);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(247, 251, 255, 0.88);
  font-weight: 800;
  text-decoration: none;
}

.booking-component-actions .is-primary {
  border-color: rgba(139, 220, 255, 0.62);
  background: linear-gradient(135deg, #9ee8ff, #39b7ff 44%, #f59e0b);
  color: #06101d;
}

.booking-component .booking-form {
  padding-top: 14px;
  border-top: 1px solid rgba(139, 220, 255, 0.20);
}

.booking-component .label,
.booking-component label span,
.booking-component .system-status dt {
  color: rgba(247, 251, 255, 0.68);
}

.booking-component input,
.booking-component select,
.booking-component textarea {
  border-color: rgba(139, 220, 255, 0.22);
  background: rgba(255, 255, 255, 0.92);
}

.booking-component .system-status {
  border-top-color: rgba(139, 220, 255, 0.20);
}

.booking-component .system-status dd,
.booking-component .booking-message {
  color: rgba(247, 251, 255, 0.78);
}

.system-status a {
  color: var(--blue);
  text-decoration: none;
}

.wallet-row,
.system-status,
.system-status div,
.field-row {
  display: grid;
  gap: 12px;
}

.wallet-row {
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.label,
label span,
.system-status dt {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0;
}

#wallet-status {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 15px;
}

button {
  cursor: pointer;
  padding: 0 14px;
}

#wallet-action {
  background: var(--panel-strong);
}

.booking-form {
  display: grid;
  gap: 12px;
}

.field-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-row.three {
  grid-template-columns: 1.15fr 1fr 0.75fr;
}

label {
  min-width: 0;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(16, 32, 50, 0.2);
  border-radius: 6px;
  padding: 10px 11px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(57, 183, 255, 0.16);
}

#booking-submit {
  min-height: 46px;
  margin-top: 2px;
  border-color: rgba(139, 220, 255, 0.62);
  background: linear-gradient(135deg, #9ee8ff, #39b7ff 44%, #f59e0b);
  color: #06101d;
  font-weight: 700;
}

#booking-submit:disabled,
#wallet-action:disabled {
  cursor: not-allowed;
  color: #798391;
  border-color: rgba(16, 32, 50, 0.1);
  background: rgba(228, 234, 241, 0.8);
}

.booking-message {
  min-height: 22px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.booking-message.ok {
  color: var(--green);
}

.booking-message.error {
  color: var(--danger);
}

.system-status {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.system-status div {
  gap: 0;
  min-width: 0;
}

.system-status dt,
.system-status dd {
  margin: 0;
}

.system-status dd {
  color: var(--text);
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .booking-shell {
    padding: 14px;
    gap: 16px;
  }

  .booking-header {
    display: grid;
  }

  .booking-nav {
    justify-content: flex-start;
  }

  .booking-panel {
    align-self: end;
    margin: 0;
    max-height: calc(100vh - 190px);
  }

  .castle-booking-shell .booking-panel {
    align-self: start;
    margin-top: 0;
    max-height: calc(100vh - 210px);
  }

  .booking-component {
    width: 100%;
  }

  .booking-component-steps {
    grid-template-columns: 1fr;
  }

  .field-row,
  .field-row.three,
  .wallet-row,
  .system-status {
    grid-template-columns: 1fr;
  }
}
