:root {
  color-scheme: dark;
  --ivory: #fff3d0;
  --paper: #ead6a6;
  --dim-paper: #bfa977;
  --wood: #2a1711;
  --wood-dark: #120b08;
  --leather: #3a2018;
  --rubbed-edge: #6b3b24;
  --brass: #d2a64d;
  --brass-dark: #7a5421;
  --brass-light: #f2d283;
  --glass: #92f0d8;
  --glass-dim: rgba(99, 220, 190, 0.18);
  --danger: #d01616;
  --success: #97e59f;
  --blue: #8fd1ef;
}

* {
  box-sizing: border-box;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ivory);
  background:
    radial-gradient(circle at 50% 10%, rgba(120, 92, 48, 0.18), transparent 25rem),
    radial-gradient(circle at 20% 80%, rgba(33, 18, 12, 0.76), transparent 22rem),
    linear-gradient(135deg, #090807, #1b120e 48%, #070605);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 243, 208, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 243, 208, 0.025) 1px, transparent 1px);
  background-size: 34px 34px;
  mix-blend-mode: screen;
}

.portal-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.portal-panel {
  position: relative;
  width: min(100%, 560px);
  padding: 34px 30px 30px;
  border: 10px solid #3f2a18;
  border-radius: 26px 26px 32px 32px;
  background:
    radial-gradient(ellipse at 22% 14%, rgba(255, 230, 170, 0.09), transparent 19%),
    radial-gradient(ellipse at 80% 86%, rgba(0, 0, 0, 0.44), transparent 30%),
    repeating-linear-gradient(102deg, rgba(255, 255, 255, 0.014) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(18deg, rgba(0, 0, 0, 0.11) 0 1px, transparent 1px 12px),
    linear-gradient(160deg, #4a3127 0%, #241713 48%, #100b09 100%);
  box-shadow:
    inset 0 0 0 2px rgba(190, 151, 82, 0.28),
    inset 0 14px 22px rgba(255, 222, 150, 0.045),
    inset 0 -24px 40px rgba(0, 0, 0, 0.72),
    inset 16px 0 26px rgba(255, 255, 255, 0.018),
    inset -18px 0 28px rgba(0, 0, 0, 0.42),
    0 7px 0 #0a0604,
    0 34px 90px rgba(0, 0, 0, 0.68);
}

.portal-panel::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(190, 151, 82, 0.22);
  border-radius: 18px 18px 24px 24px;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.55),
    0 1px 0 rgba(255, 243, 208, 0.12);
  pointer-events: none;
}

.portal-panel::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -20px;
  width: 46%;
  height: 30px;
  transform: translateX(-50%);
  border: 4px solid #463018;
  border-radius: 0 0 16px 16px;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.16) 0 3px, transparent 3px 13px),
    linear-gradient(#b88c4b, #765126 58%, #3f2a18);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.35),
    inset 0 -6px 0 rgba(0, 0, 0, 0.24),
    0 4px 10px rgba(0, 0, 0, 0.35);
}

.handset-grip {
  position: absolute;
  top: 104px;
  bottom: 88px;
  z-index: 0;
  width: 18px;
  border: 1px solid rgba(242, 210, 131, 0.18);
  border-radius: 999px;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(255, 230, 168, 0.14) 0 4px,
      rgba(0, 0, 0, 0.34) 4px 10px,
      transparent 10px 17px
    ),
    linear-gradient(90deg, rgba(0, 0, 0, 0.62), rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.46));
  box-shadow:
    inset 0 0 12px rgba(0, 0, 0, 0.68),
    0 0 0 1px rgba(0, 0, 0, 0.28);
}

.handset-grip-left {
  left: 8px;
}

.handset-grip-right {
  right: 8px;
}

.rivet {
  position: absolute;
  z-index: 2;
  width: 18px;
  height: 18px;
  border: 2px solid #6f471b;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, rgba(255, 240, 183, 0.7), transparent 18%),
    radial-gradient(circle, #a77a37, #523414);
  box-shadow: 0 2px 0 #1b1008, inset 0 -2px 3px rgba(0, 0, 0, 0.35);
}

.rivet-top-left {
  top: 18px;
  left: 18px;
}

.rivet-top-right {
  top: 18px;
  right: 18px;
}

.rivet-bottom-left {
  bottom: 18px;
  left: 18px;
}

.rivet-bottom-right {
  right: 18px;
  bottom: 18px;
}

.device-header {
  position: relative;
  z-index: 1;
  padding: 16px 18px 18px;
  border: 1px solid rgba(166, 126, 62, 0.35);
  border-radius: 14px;
  background:
    linear-gradient(rgba(12, 8, 6, 0.88), rgba(45, 29, 22, 0.74)),
    radial-gradient(circle at 50% 0, rgba(190, 151, 82, 0.09), transparent 70%);
  box-shadow:
    inset 0 2px 0 rgba(255, 243, 208, 0.1),
    inset 0 -14px 22px rgba(0, 0, 0, 0.38),
    0 4px 0 rgba(0, 0, 0, 0.28);
}

.speaker-grille {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  width: min(220px, 74%);
  margin: 0 auto 14px;
  padding: 7px 10px;
  border: 1px solid rgba(242, 210, 131, 0.28);
  border-radius: 999px;
  background: linear-gradient(#21120d, #0c0705);
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, 0.88),
    0 1px 0 rgba(255, 243, 208, 0.14);
}

.auth-status-bar {
  border-color: rgba(208, 22, 22, 0.48);
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, 0.88),
    0 1px 0 rgba(255, 243, 208, 0.14),
    0 0 14px rgba(208, 22, 22, 0.22);
}

.speaker-grille span {
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(#210503, #9d1412 58%, #140201);
  box-shadow:
    inset 0 2px 2px rgba(0, 0, 0, 0.8),
    0 1px 0 rgba(255, 243, 208, 0.1),
    0 0 9px rgba(208, 22, 22, 0.34);
}

.auth-status-bar.signed-in {
  border-color: rgba(103, 217, 111, 0.56);
  box-shadow:
    inset 0 2px 5px rgba(0, 0, 0, 0.88),
    0 1px 0 rgba(255, 243, 208, 0.14),
    0 0 16px rgba(103, 217, 111, 0.3);
}

.auth-status-bar.signed-in span {
  background: linear-gradient(#06200c, #67d96f 58%, #041708);
  box-shadow:
    inset 0 2px 2px rgba(0, 0, 0, 0.62),
    0 1px 0 rgba(255, 243, 208, 0.14),
    0 0 10px rgba(103, 217, 111, 0.44);
}

.message-alert-light {
  display: inline-block;
  width: 9px;
  height: 9px;
  border: 1px solid rgba(255, 243, 208, 0.38);
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}

#main-message-light {
  position: absolute;
  left: max(8px, calc(50% - 146px));
  top: 24px;
  z-index: 2;
}

.message-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.message-alert-light.message-unread {
  background: #d01616;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.34),
    0 0 8px rgba(208, 22, 22, 0.94);
  animation: unreadMessagePulse 900ms ease-in-out infinite;
}

@keyframes unreadMessagePulse {
  0%,
  100% {
    opacity: 0.46;
    transform: scale(0.92);
  }

  50% {
    opacity: 1;
    transform: scale(1.22);
  }
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brass-light);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin: 0;
  color: var(--ivory);
  font-size: clamp(2.25rem, 11vw, 4.2rem);
  line-height: 0.95;
  text-shadow: 0 2px 0 #1a0c07, 0 0 10px rgba(190, 151, 82, 0.16);
}

.intro {
  margin: 16px 0 0;
  color: var(--paper);
  font-size: 1.02rem;
  line-height: 1.55;
}

.auth-open-button {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  border: 2px solid rgba(104, 72, 33, 0.95);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--brass-light);
  background:
    radial-gradient(circle at 35% 20%, rgba(255, 255, 255, 0.08), transparent 22%),
    linear-gradient(#3b261d, #1d110d 62%, #0b0705);
  box-shadow:
    inset 0 2px 0 rgba(255, 243, 208, 0.12),
    inset 0 -4px 0 rgba(0, 0, 0, 0.38),
    0 3px 0 #080403;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.auth-status-light {
  width: 9px;
  height: 9px;
  border: 1px solid rgba(255, 243, 208, 0.38);
  border-radius: 50%;
  background: #b01212;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.32),
    0 0 7px rgba(208, 22, 22, 0.84);
}

.auth-status-light.signed-in {
  background: #67d96f;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.36),
    0 0 8px rgba(103, 217, 111, 0.88);
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 16px;
  background:
    radial-gradient(circle at 50% 35%, rgba(146, 240, 216, 0.08), transparent 18rem),
    rgba(5, 3, 2, 0.78);
}

.auth-modal[hidden] {
  display: none;
}

.auth-panel {
  position: relative;
  width: min(100%, 440px);
  padding: 14px;
  border: 4px solid #473018;
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(146, 240, 216, 0.07), rgba(14, 8, 6, 0.88)),
    #1f120d;
  box-shadow:
    inset 0 0 0 1px rgba(242, 210, 131, 0.28),
    inset 0 10px 18px rgba(0, 0, 0, 0.38),
    0 5px 0 rgba(0, 0, 0, 0.24);
}

.auth-panel-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
  margin-bottom: 12px;
}

.profile-header-actions {
  display: inline-flex;
  gap: 8px;
}

.auth-close-button {
  min-height: 36px;
  border: 2px solid rgba(104, 72, 33, 0.95);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--ivory);
  background: linear-gradient(#3b261d, #1d110d 62%, #0b0705);
  box-shadow:
    inset 0 2px 0 rgba(255, 243, 208, 0.1),
    inset 0 -4px 0 rgba(0, 0, 0, 0.38),
    0 3px 0 #080403;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.auth-close-button:disabled {
  cursor: default;
  opacity: 0.48;
}

.auth-panel h2 {
  margin: 0;
  color: var(--ivory);
  font-size: 1.3rem;
  text-shadow: 0 2px 0 #1a0c07;
}

.auth-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  margin-bottom: 12px;
  padding: 8px 10px;
  border: 1px solid rgba(146, 240, 216, 0.28);
  border-radius: 8px;
  color: var(--paper);
  background: rgba(4, 15, 13, 0.74);
  font-size: 0.86rem;
  font-weight: 700;
}

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

.auth-fields {
  display: grid;
  gap: 9px 10px;
}

.auth-panel input {
  min-height: 46px;
  font-size: 0.98rem;
  text-transform: none;
}

.auth-panel input::placeholder {
  text-transform: none;
}

.auth-legal-agreement {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  margin-top: 2px;
  padding: 10px;
  border: 1px solid rgba(146, 240, 216, 0.18);
  border-radius: 8px;
  color: var(--dim-paper);
  background: rgba(4, 15, 13, 0.42);
  font-size: 0.78rem;
  line-height: 1.35;
}

.auth-legal-agreement input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.auth-legal-agreement a {
  display: inline-block;
  margin-left: 4px;
  color: var(--brass-light);
  font-weight: 800;
}

.auth-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.auth-message {
  min-height: 0;
  margin: 12px 0 0;
  padding: 10px;
  border: 1px solid rgba(146, 240, 216, 0.26);
  border-radius: 8px;
  color: var(--dim-paper);
  background: rgba(4, 15, 13, 0.58);
  font-size: 0.92rem;
  line-height: 1.4;
}

.auth-message.success {
  border-color: var(--success);
  color: #d9ffdc;
}

.auth-message.error {
  border-color: var(--danger);
  color: #ffd4c8;
}

.auth-message.warning {
  border-color: var(--brass-light);
  color: #ffe6a9;
}

.profile-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(242, 210, 131, 0.3);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(146, 240, 216, 0.06), transparent),
    rgba(18, 10, 7, 0.58);
}

.profile-card[hidden] {
  display: none;
}

.profile-card.help-open > :not(.profile-help-panel),
.profile-card.message-open > :not(.profile-message-panel) {
  display: none;
}

.profile-help-panel,
.profile-message-panel {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(242, 210, 131, 0.3);
  border-radius: 8px;
  color: var(--paper);
  background:
    linear-gradient(90deg, rgba(146, 240, 216, 0.05), transparent),
    rgba(18, 10, 7, 0.62);
  font-size: 0.88rem;
  line-height: 1.38;
}

.profile-help-panel[hidden],
.profile-message-panel[hidden] {
  display: none;
}

.profile-help-panel h3,
.profile-message-panel h3 {
  margin: 0;
  color: var(--brass-light);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.profile-help-panel p,
.profile-message-panel p {
  margin: 0;
}

.profile-message-note {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(146, 240, 216, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(146, 240, 216, 0.055), transparent),
    rgba(4, 15, 13, 0.58);
}

.message-note-title {
  color: var(--brass-light);
  font-weight: 800;
  text-transform: uppercase;
}

.help-visual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.help-mini-card,
.help-contact-panel {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(146, 240, 216, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(146, 240, 216, 0.055), transparent),
    rgba(4, 15, 13, 0.58);
}

.help-mini-card h4,
.help-contact-panel h4 {
  margin: 0;
  color: var(--brass-light);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.help-mini-card p {
  color: var(--dim-paper);
  font-size: 0.82rem;
}

.help-portal-visual {
  display: grid;
  place-items: center;
  min-height: 48px;
  border: 2px solid rgba(74, 143, 126, 0.76);
  border-radius: 8px;
  color: rgba(223, 255, 238, 0.72);
  background:
    linear-gradient(90deg, rgba(146, 240, 216, 0.06), rgba(146, 240, 216, 0.14)),
    #06100e;
  box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.7);
  font-size: 0.8rem;
  font-weight: 900;
}

.help-compass-visual {
  position: relative;
  justify-self: center;
  width: 56px;
  aspect-ratio: 1;
  border: 5px solid #5a3d1d;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(146, 240, 216, 0.08) 0 42%, transparent 43%),
    #15100d;
  box-shadow: inset 0 0 0 2px rgba(255, 243, 208, 0.28);
}

.help-compass-visual span {
  position: absolute;
  top: 3px;
  left: 50%;
  color: var(--brass-light);
  font-size: 0.62rem;
  font-weight: 900;
  transform: translateX(-50%);
}

.help-compass-visual i,
.help-compass-visual b {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 24px;
  border-radius: 999px;
  transform-origin: 50% 88%;
}

.help-compass-visual i {
  background: #ff1f1f;
  transform: translate(-50%, -88%) rotate(0deg);
}

.help-compass-visual b {
  background: var(--brass-light);
  transform: translate(-50%, -88%) rotate(45deg);
}

.help-contact-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.help-contact-links a,
.help-social-panel a {
  display: grid;
  place-items: center;
  min-height: 36px;
  border: 2px solid rgba(104, 72, 33, 0.95);
  border-radius: 999px;
  color: var(--ivory);
  background: linear-gradient(#3b261d, #1d110d 62%, #0b0705);
  box-shadow:
    inset 0 2px 0 rgba(255, 243, 208, 0.1),
    inset 0 -4px 0 rgba(0, 0, 0, 0.38);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.help-social-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.legal-page {
  min-height: 100vh;
  padding: 20px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(184, 132, 64, 0.18), transparent 38%),
    linear-gradient(135deg, #19100b, #0b0806);
}

.legal-panel {
  width: min(920px, 100%);
  border: 2px solid rgba(185, 128, 52, 0.78);
  border-radius: 10px;
  padding: clamp(18px, 4vw, 34px);
  color: var(--ivory);
  background:
    linear-gradient(180deg, rgba(38, 25, 16, 0.94), rgba(13, 9, 7, 0.96)),
    #16100d;
  box-shadow:
    0 22px 44px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 243, 208, 0.13);
}

.legal-eyebrow {
  margin: 0 0 8px;
  color: var(--brass-light);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.legal-panel h1 {
  margin: 0;
  color: var(--brass-light);
  font-family: Georgia, "Times New Roman", serif;
}

.legal-intro {
  margin: 10px 0 18px;
  color: var(--dim-paper);
}

.legal-list {
  display: grid;
  gap: 12px;
}

.legal-list details {
  border: 1px solid rgba(146, 240, 216, 0.2);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(4, 15, 13, 0.58);
}

.legal-list summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 50px;
  padding: 12px 14px;
  color: var(--brass-light);
  cursor: pointer;
  list-style: none;
}

.legal-list summary::-webkit-details-marker {
  display: none;
}

.legal-list summary::before {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(230, 194, 122, 0.58);
  border-radius: 999px;
  color: var(--brass-light);
  background: rgba(0, 0, 0, 0.22);
  font-weight: 900;
  line-height: 1;
}

.legal-list details[open] summary::before {
  content: "-";
}

.legal-document-title {
  font-size: 1rem;
  font-weight: 800;
}

.legal-list p {
  margin: 0;
  color: var(--dim-paper);
}

.legal-body {
  display: grid;
  gap: 10px;
  padding: 0 14px 14px;
  color: var(--dim-paper);
}

.legal-body p {
  margin: 0;
  line-height: 1.55;
}

.legal-document-back {
  margin: 0 14px 14px;
}

.legal-portal-link {
  margin-top: 18px;
}

.legal-back-link {
  display: inline-grid;
  place-items: center;
  min-height: 40px;
  margin-top: 18px;
  padding: 0 18px;
  border: 2px solid rgba(104, 72, 33, 0.95);
  border-radius: 999px;
  color: var(--ivory);
  background: linear-gradient(#3b261d, #1d110d 62%, #0b0705);
  font-weight: 800;
  text-decoration: none;
}

.help-social-panel a {
  min-height: 38px;
  color: var(--brass-light);
  font-size: 1rem;
}

.profile-identity {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 54px;
  aspect-ratio: 1;
  border: 3px solid #5a3d1d;
  border-radius: 50%;
  color: #211308;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.3), transparent 16%),
    linear-gradient(#d2a64d, #8f6830 70%, #4d361e);
  box-shadow:
    inset 0 2px 0 rgba(255, 243, 208, 0.35),
    inset 0 -8px 12px rgba(0, 0, 0, 0.32),
    0 4px 0 rgba(0, 0, 0, 0.32);
  font-weight: 900;
}

.profile-identity h3 {
  margin: 0;
  color: var(--ivory);
  font-size: 1.25rem;
  line-height: 1.15;
}

.profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin: 0;
}

.profile-stats div {
  min-width: 0;
  padding: 7px;
  border: 1px solid rgba(146, 240, 216, 0.24);
  border-radius: 7px;
  background:
    linear-gradient(90deg, rgba(146, 240, 216, 0.075), transparent),
    rgba(4, 15, 13, 0.72);
}

.profile-stats dt {
  margin-bottom: 3px;
  color: var(--brass-light);
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-stats dd {
  margin: 0;
  color: #dfffee;
  font-size: 0.82rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.profile-unlocked-clues {
  padding: 10px;
  border: 1px solid rgba(146, 240, 216, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(146, 240, 216, 0.06), transparent),
    rgba(4, 15, 13, 0.68);
}

.profile-unlocked-clues h3 {
  margin: 0 0 8px;
  color: var(--brass-light);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.profile-unlocked-clues ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 20px;
  color: #dfffee;
  font-size: 0.88rem;
  line-height: 1.35;
}

.profile-unlocked-clues li {
  padding-left: 2px;
  overflow-wrap: anywhere;
}

.portal-form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.campaign-selector-panel {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 4px solid #4a321b;
  border-radius: 12px;
  background:
    radial-gradient(circle at 86% 18%, rgba(146, 240, 216, 0.06), transparent 28%),
    linear-gradient(180deg, rgba(160, 122, 66, 0.11), rgba(18, 10, 7, 0.94)),
    var(--leather);
  box-shadow:
    inset 0 0 0 1px rgba(242, 210, 131, 0.3),
    inset 0 8px 14px rgba(0, 0, 0, 0.48),
    0 4px 0 rgba(0, 0, 0, 0.28);
}

.profile-campaign-selector {
  border-width: 1px;
  border-radius: 8px;
  padding: 10px;
  box-shadow: none;
}

.campaign-selector-panel h2 {
  margin: 0;
  color: var(--ivory);
  font-size: 1.05rem;
  text-shadow: 0 2px 0 #1a0c07;
}

.campaign-selector-panel h3 {
  margin: 0;
  color: var(--ivory);
  font-size: 0.95rem;
  text-shadow: 0 2px 0 #1a0c07;
}

.campaign-select-label {
  margin-bottom: 0;
  font-size: 0.72rem;
}

.campaign-select {
  width: 100%;
  min-height: 46px;
  border: 2px solid rgba(74, 143, 126, 0.76);
  border-radius: 9px;
  padding: 0 12px;
  color: #dfffee;
  background:
    linear-gradient(90deg, rgba(146, 240, 216, 0.05), rgba(146, 240, 216, 0.1)),
    #06100e;
  box-shadow:
    inset 0 3px 9px rgba(0, 0, 0, 0.7),
    0 0 8px rgba(146, 240, 216, 0.08);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
}

.campaign-select:disabled {
  color: rgba(223, 255, 238, 0.72);
}

.campaign-status {
  min-height: 0;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(146, 240, 216, 0.24);
  border-radius: 8px;
  color: var(--dim-paper);
  background: rgba(4, 15, 13, 0.56);
  font-size: 0.85rem;
  line-height: 1.35;
}

.private-access-panel {
  display: grid;
  gap: 8px;
  padding-top: 4px;
}

.private-access-panel summary {
  cursor: pointer;
  color: #e8d6a5;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.private-access-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.private-access-input {
  width: 100%;
  min-height: 40px;
  border: 2px solid rgba(177, 135, 66, 0.8);
  border-radius: 8px;
  padding: 0 10px;
  color: #f8efd1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.24)),
    #130d08;
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.58);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
}

.private-access-input::placeholder {
  color: rgba(248, 239, 209, 0.48);
}

.private-access-button {
  min-height: 40px;
  padding: 0 12px;
  white-space: nowrap;
}

.campaign-page-link {
  justify-self: start;
  min-height: 38px;
  padding: 9px 14px;
  text-decoration: none;
}

.campaigns-body {
  min-height: 100vh;
}

.campaigns-shell {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 12px;
}

.campaigns-panel {
  width: min(100%, 760px);
  display: grid;
  gap: 10px;
  align-self: start;
  margin: 0 auto;
  padding: 12px;
  border: 4px solid #3f2a18;
  border-radius: 14px;
  background:
    repeating-linear-gradient(102deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 8px),
    linear-gradient(160deg, #39261f 0%, #211511 52%, #0f0a08 100%);
  box-shadow:
    inset 0 0 0 2px rgba(190, 151, 82, 0.28),
    inset 0 0 22px rgba(0, 0, 0, 0.5),
    0 14px 26px rgba(0, 0, 0, 0.38);
}

.compact-campaigns-panel {
  max-width: 520px;
}

.campaign-close-button {
  justify-self: end;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(242, 210, 131, 0.42);
  border-radius: 8px;
  padding: 7px 12px;
  color: var(--ivory);
  background:
    linear-gradient(180deg, rgba(255, 243, 208, 0.11), rgba(0, 0, 0, 0.18)),
    #2c1d16;
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 3px 0 rgba(0, 0, 0, 0.28);
}

.campaign-page-title {
  margin: -4px 0 2px;
  color: var(--ivory);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 10vw, 3rem);
  line-height: 0.95;
  text-shadow: 0 2px 0 #1a0c07;
}

.campaign-list {
  display: grid;
  gap: 7px;
}

.compact-campaign-list {
  margin-top: 6px;
}

.campaign-group-label {
  margin: 5px 0 0;
  color: var(--brass-light);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.campaign-row {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(242, 210, 131, 0.34);
  border-radius: 7px;
  padding: 9px 10px;
  color: var(--ivory);
  text-align: left;
  font: inherit;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -8px 16px rgba(0, 0, 0, 0.24),
    0 4px 0 rgba(0, 0, 0, 0.28);
}

.campaign-row-active {
  background:
    linear-gradient(90deg, rgba(92, 191, 113, 0.28), rgba(20, 55, 30, 0.88)),
    #172016;
}

.campaign-row-limited {
  background:
    linear-gradient(90deg, rgba(214, 157, 61, 0.42), rgba(116, 72, 24, 0.92)),
    #2b1d0d;
}

.campaign-row-complete {
  background:
    linear-gradient(90deg, rgba(196, 38, 38, 0.3), rgba(50, 13, 13, 0.9)),
    #21100e;
}

.campaign-row.is-selected {
  border-color: rgba(146, 240, 216, 0.8);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -8px 16px rgba(0, 0, 0, 0.24),
    0 0 0 2px rgba(146, 240, 216, 0.12),
    0 0 16px rgba(146, 240, 216, 0.22);
}

.campaign-row-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.campaign-row-copy strong {
  font-size: 0.98rem;
  overflow-wrap: anywhere;
}

.campaign-row-copy span {
  color: rgba(248, 239, 209, 0.68);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.campaign-helper-text,
.campaign-list-empty {
  color: var(--dim-paper);
  font-size: 0.86rem;
  line-height: 1.35;
}

.campaign-row-mode {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.campaign-mode-label {
  color: rgba(248, 239, 209, 0.82);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.campaign-mode-light {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: #2b1510;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.22);
}

.campaign-mode-light.is-test {
  background: #ffd047;
  box-shadow: 0 0 10px rgba(255, 208, 71, 0.76);
}

.campaign-mode-light.is-live {
  background: #73e884;
  box-shadow: 0 0 10px rgba(115, 232, 132, 0.76);
}

.campaign-list-empty {
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(146, 240, 216, 0.24);
  border-radius: 8px;
  background: rgba(4, 15, 13, 0.56);
}

.campaign-access-label {
  margin: 12px 0 -4px;
  color: var(--brass-light);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.campaign-access-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  margin-top: 2px;
  padding: 7px;
  border: 1px solid rgba(242, 210, 131, 0.24);
  border-radius: 8px;
  background: rgba(4, 15, 13, 0.42);
}

.compact-access-input {
  min-height: 38px;
  border-width: 1px;
  border-radius: 7px;
  font-size: 0.84rem;
}

.compact-access-button {
  min-height: 38px;
  padding: 8px 11px;
  font-size: 0.78rem;
}

.campaign-access-status {
  min-height: 1em;
  margin: 0;
  color: var(--dim-paper);
  font-size: 0.78rem;
  line-height: 1.25;
}

.display-slot {
  padding: 14px;
  border: 4px solid #4a321b;
  border-radius: 12px;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.035), transparent 18%),
    linear-gradient(180deg, rgba(160, 122, 66, 0.11), rgba(18, 10, 7, 0.94)),
    var(--leather);
  box-shadow:
    inset 0 0 0 1px rgba(242, 210, 131, 0.36),
    inset 0 9px 16px rgba(0, 0, 0, 0.54),
    0 4px 0 rgba(0, 0, 0, 0.28),
    0 11px 20px rgba(0, 0, 0, 0.22);
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--brass-light);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
}

input {
  width: 100%;
  min-height: 58px;
  border: 3px solid rgba(74, 143, 126, 0.76);
  border-radius: 10px;
  padding: 0 16px;
  color: #dfffee;
  background:
    linear-gradient(90deg, rgba(146, 240, 216, 0.05), rgba(146, 240, 216, 0.11), rgba(146, 240, 216, 0.05)),
    #06100e;
  box-shadow:
    inset 0 4px 12px rgba(0, 0, 0, 0.72),
    inset 0 -2px 10px rgba(146, 240, 216, 0.12),
    0 0 10px rgba(146, 240, 216, 0.08);
  font: inherit;
  font-size: 1.18rem;
  font-weight: 700;
  text-transform: uppercase;
}

input::placeholder {
  color: rgba(223, 255, 238, 0.24);
  opacity: 0.78;
}

input.prompt-failed::placeholder {
  color: rgba(208, 22, 22, 0.52);
  opacity: 0.78;
}

input.prompt-location-error::placeholder {
  color: rgba(255, 179, 71, 0.52);
  opacity: 0.78;
}

input:focus {
  outline: 3px solid rgba(146, 240, 216, 0.2);
  border-color: var(--glass);
}

.button-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.utility-button-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 58px;
  gap: 12px;
}

button,
.quest-link {
  min-height: 54px;
  border-radius: 12px;
  padding: 12px 16px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.activation-button,
.quest-link {
  border: 3px solid #4f3418;
  color: #211308;
  background:
    radial-gradient(circle at 35% 20%, rgba(255, 255, 255, 0.18), transparent 18%),
    linear-gradient(#c99b54, #93672e 45%, #5e3f1d 82%, #30200f);
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.45),
    inset 0 -7px 0 rgba(62, 36, 9, 0.5),
    0 7px 0 #321d0c,
    0 15px 24px rgba(0, 0, 0, 0.34);
}

.activation-button:active,
.quest-link:active {
  transform: translateY(3px);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.28),
    inset 0 -2px 0 rgba(62, 36, 9, 0.38),
    0 2px 0 #321d0c;
}

.secondary-button {
  border: 3px solid rgba(104, 72, 33, 0.95);
  color: var(--ivory);
  background:
    radial-gradient(circle at 50% 20%, rgba(146, 240, 216, 0.08), transparent 45%),
    radial-gradient(circle at 35% 18%, rgba(255, 255, 255, 0.035), transparent 18%),
    linear-gradient(#3b261d, #1d110d 62%, #0b0705);
  box-shadow:
    inset 0 2px 0 rgba(255, 243, 208, 0.12),
    inset 0 -6px 0 rgba(0, 0, 0, 0.44),
    0 5px 0 #080403,
    0 12px 18px rgba(0, 0, 0, 0.28);
}

.secondary-button:active {
  transform: translateY(3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 243, 208, 0.08),
    inset 0 -2px 0 rgba(0, 0, 0, 0.44),
    0 2px 0 #080403;
}

.compass-toggle-button {
  transition: box-shadow 180ms ease, border-color 180ms ease, color 180ms ease;
}

.compass-toggle-button.compass-off {
  border-color: rgba(208, 22, 22, 0.7);
  color: #ffd4c8;
  box-shadow:
    inset 0 2px 0 rgba(255, 243, 208, 0.12),
    inset 0 -6px 0 rgba(0, 0, 0, 0.44),
    0 5px 0 #080403,
    0 0 0 1px rgba(208, 22, 22, 0.34),
    0 0 14px rgba(208, 22, 22, 0.26);
}

.compass-toggle-button.compass-on {
  border-color: rgba(103, 217, 111, 0.72);
  color: #d9ffdc;
  box-shadow:
    inset 0 2px 0 rgba(255, 243, 208, 0.12),
    inset 0 -6px 0 rgba(0, 0, 0, 0.44),
    0 5px 0 #080403,
    0 0 0 1px rgba(103, 217, 111, 0.36),
    0 0 16px rgba(103, 217, 111, 0.28);
}

.auth-open-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  border: 2px solid rgba(104, 72, 33, 0.95);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--brass-light);
  background:
    radial-gradient(circle at 35% 20%, rgba(255, 255, 255, 0.08), transparent 22%),
    linear-gradient(#3b261d, #1d110d 62%, #0b0705);
  box-shadow:
    inset 0 2px 0 rgba(255, 243, 208, 0.12),
    inset 0 -4px 0 rgba(0, 0, 0, 0.38),
    0 3px 0 #080403;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.sound-toggle-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  min-width: 58px;
  padding: 0;
  color: var(--brass-light);
}

.location-button {
  white-space: nowrap;
}

.sound-status-light {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(255, 243, 208, 0.4);
  border-radius: 50%;
  background: #67d96f;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.36),
    0 0 8px rgba(103, 217, 111, 0.88);
}

.sound-toggle-button.sound-off .sound-status-light {
  background: #b01212;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.32),
    0 0 7px rgba(208, 22, 22, 0.84);
}

.sound-icon {
  position: relative;
  display: block;
  width: 30px;
  height: 28px;
}

.sound-speaker {
  position: absolute;
  left: 2px;
  top: 9px;
  width: 9px;
  height: 10px;
  border-radius: 2px;
  background: var(--brass-light);
  box-shadow: 0 0 7px rgba(242, 210, 131, 0.24);
}

.sound-speaker::after {
  content: "";
  position: absolute;
  left: 7px;
  top: -5px;
  width: 13px;
  height: 20px;
  background: var(--brass-light);
  clip-path: polygon(0 34%, 100% 0, 100% 100%, 0 66%);
}

.sound-wave {
  position: absolute;
  top: 50%;
  border: 2px solid var(--brass-light);
  border-left: 0;
  border-top-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: translateY(-50%);
}

.sound-wave-one {
  right: 6px;
  width: 9px;
  height: 14px;
}

.sound-wave-two {
  right: 0;
  width: 15px;
  height: 22px;
}

.sound-toggle-button.sound-off .sound-wave {
  opacity: 0.18;
}

.sound-toggle-button.sound-off .sound-icon::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 13px;
  width: 28px;
  height: 4px;
  border-radius: 999px;
  background: var(--danger);
  transform: rotate(-42deg);
  box-shadow: 0 0 7px rgba(208, 22, 22, 0.6);
}

.instrument-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  align-items: stretch;
  margin-top: 18px;
  padding: 12px;
  border: 4px solid #473018;
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(242, 210, 131, 0.12), rgba(14, 8, 6, 0.85)),
    #20120d;
  box-shadow:
    inset 0 0 18px rgba(0, 0, 0, 0.58),
    0 5px 0 rgba(0, 0, 0, 0.24);
}

.gauge-face {
  position: relative;
  min-height: 74px;
  border: 2px solid #8b6229;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 243, 208, 0.86) 0 9%, transparent 10%),
    conic-gradient(from -40deg, rgba(146, 240, 216, 0.18), rgba(160, 122, 66, 0.18), rgba(208, 22, 22, 0.22), rgba(146, 240, 216, 0.18)),
    #1c100c;
  box-shadow:
    inset 0 0 0 5px rgba(18, 10, 7, 0.58),
    inset 0 0 18px rgba(146, 240, 216, 0.18);
}

.gauge-face::before,
.gauge-face::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 8px;
  width: 2px;
  height: 10px;
  background: rgba(255, 243, 208, 0.72);
  transform: translateX(-50%);
  transform-origin: 50% 29px;
}

.gauge-face::after {
  transform: translateX(-50%) rotate(70deg);
}

.gauge-needle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 27px;
  border-radius: 99px;
  background: var(--danger);
  transform: translate(-50%, -88%) rotate(-28deg);
  transform-origin: 50% 88%;
  box-shadow: 0 0 8px rgba(240, 141, 112, 0.65);
  animation: gaugeIdle 3.8s ease-in-out infinite;
}

.instrument-panel.dial-twitch .gauge-needle {
  animation: gaugeTwitch 520ms ease-out, gaugeIdle 3.8s ease-in-out 520ms infinite;
}

.instrument-panel.message-flash-success .portal-message {
  --message-flash-color: rgba(103, 217, 111, 0.86);
  animation: messageLightFlash 900ms ease-out;
}

.instrument-panel.message-flash-error .portal-message {
  --message-flash-color: rgba(208, 22, 22, 0.88);
  animation: messageLightFlash 900ms ease-out;
}

.instrument-panel.message-flash-warning .portal-message {
  --message-flash-color: rgba(255, 179, 71, 0.9);
  animation: messageLightFlash 900ms ease-out;
}

.portal-message {
  min-height: 74px;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(146, 240, 216, 0.36);
  border-radius: 8px;
  color: var(--paper);
  background:
    linear-gradient(90deg, rgba(146, 240, 216, 0.045), transparent),
    rgba(4, 15, 13, 0.86);
  box-shadow: inset 0 0 12px rgba(146, 240, 216, 0.08);
  line-height: 1.4;
}

@keyframes messageLightFlash {
  0% {
    box-shadow:
      inset 0 0 12px rgba(146, 240, 216, 0.08),
      0 0 0 0 rgba(255, 255, 255, 0);
  }

  34% {
    box-shadow:
      inset 0 0 16px rgba(255, 255, 255, 0.08),
      0 0 0 2px var(--message-flash-color),
      0 0 18px var(--message-flash-color);
  }

  100% {
    box-shadow:
      inset 0 0 12px rgba(146, 240, 216, 0.08),
      0 0 0 0 rgba(255, 255, 255, 0);
  }
}

@keyframes gaugeIdle {
  0%,
  100% {
    transform: translate(-50%, -88%) rotate(-31deg);
  }

  50% {
    transform: translate(-50%, -88%) rotate(-12deg);
  }
}

@keyframes gaugeTwitch {
  0% {
    transform: translate(-50%, -88%) rotate(-28deg);
  }

  38% {
    transform: translate(-50%, -88%) rotate(38deg);
  }

  70% {
    transform: translate(-50%, -88%) rotate(-18deg);
  }

  100% {
    transform: translate(-50%, -88%) rotate(-31deg);
  }
}

.portal-message.success {
  border-color: var(--success);
  color: #d9ffdc;
}

.portal-message.error {
  border-color: var(--danger);
  color: #ffd4c8;
}

.portal-message.warning {
  border-color: var(--brass-light);
  color: #ffe6a9;
}

.portal-message.info {
  border-color: var(--blue);
  color: #d3f1ff;
}

.realm-compass-panel {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  padding: 14px;
  border: 4px solid #473018;
  border-radius: 15px;
  background:
    linear-gradient(145deg, rgba(160, 122, 66, 0.1), rgba(14, 8, 6, 0.88)),
    radial-gradient(circle at 20% 10%, rgba(146, 240, 216, 0.07), transparent 42%),
    #1f120d;
  box-shadow:
    inset 0 0 0 1px rgba(242, 210, 131, 0.35),
    inset 0 10px 20px rgba(0, 0, 0, 0.34),
    inset 0 0 24px rgba(0, 0, 0, 0.55),
    0 5px 0 rgba(0, 0, 0, 0.24);
}

.realm-compass-heading {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.realm-compass-heading h2 {
  margin: 0;
  color: var(--ivory);
  font-size: 1.45rem;
  text-shadow: 0 2px 0 #1a0c07;
}

.realm-compass-layout {
  display: grid;
  grid-template-columns: 178px 1fr;
  gap: 14px;
  align-items: center;
}

.realm-compass-dial {
  position: relative;
  width: 178px;
  aspect-ratio: 1;
  border: 8px solid #5a3d1d;
  border-radius: 50%;
  background:
    radial-gradient(circle at 36% 30%, rgba(255, 255, 255, 0.18), transparent 10%),
    radial-gradient(circle, rgba(146, 240, 216, 0.08) 0 38%, transparent 39%),
    radial-gradient(circle, #2f2016 0 9%, #8e6d38 10% 12%, #15100d 13% 62%, #4d361e 63% 70%, #8f6830 71% 100%);
  box-shadow:
    inset 0 0 0 3px rgba(255, 243, 208, 0.34),
    inset 0 0 18px rgba(146, 240, 216, 0.12),
    0 12px 24px rgba(0, 0, 0, 0.36);
}

.realm-compass-dial::before {
  content: "";
  position: absolute;
  inset: 19px;
  border: 1px solid rgba(255, 243, 208, 0.36);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(146, 240, 216, 0.06), transparent 62%);
}

.realm-compass-dial::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.24), transparent 24%);
  pointer-events: none;
}

.realm-compass-panel.compass-awake .realm-compass-dial {
  animation: compass-awake-glow 2.8s ease-in-out infinite;
}

.realm-compass-panel.compass-awake .compass-hub {
  animation: compass-hub-pulse 1.8s ease-in-out infinite;
}

@keyframes compass-awake-glow {
  0%,
  100% {
    box-shadow:
      inset 0 0 0 3px rgba(255, 243, 208, 0.34),
      inset 0 0 18px rgba(146, 240, 216, 0.12),
      0 12px 24px rgba(0, 0, 0, 0.36);
  }

  50% {
    box-shadow:
      inset 0 0 0 3px rgba(255, 243, 208, 0.42),
      inset 0 0 26px rgba(146, 240, 216, 0.28),
      0 12px 28px rgba(146, 240, 216, 0.16);
  }
}

@keyframes compass-hub-pulse {
  0%,
  100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.28);
  }
}

.compass-mark {
  position: absolute;
  z-index: 2;
  color: var(--brass-light);
  font-size: 0.9rem;
  font-weight: 800;
  text-shadow: 0 1px 2px #000;
}

.compass-n {
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
}

.compass-e {
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.compass-s {
  bottom: 9px;
  left: 50%;
  transform: translateX(-50%);
}

.compass-w {
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.realm-compass-needle {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 66px;
  border-radius: 999px 999px 4px 4px;
  background:
    linear-gradient(#ffd7d7 0 10%, #ff1f1f 11% 55%, #4a0707 56% 100%);
  clip-path: polygon(50% 0, 100% 58%, 61% 58%, 61% 100%, 39% 100%, 39% 58%, 0 58%);
  transform: translate(-50%, -88%) rotate(0deg);
  transform-origin: 50% 88%;
  transition: transform 420ms ease;
  box-shadow: 0 0 12px rgba(255, 0, 0, 0.78);
}

.realm-target-marker {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 64px;
  border-radius: 999px;
  background:
    linear-gradient(var(--brass-light) 0 18%, rgba(210, 166, 77, 0.9) 19% 46%, transparent 47% 100%);
  clip-path: polygon(50% 0, 100% 30%, 68% 30%, 68% 58%, 32% 58%, 32% 30%, 0 30%);
  transform: translate(-50%, -88%) rotate(0deg);
  transform-origin: 50% 88%;
  transition: transform 420ms ease;
  filter: drop-shadow(0 0 8px rgba(242, 210, 131, 0.72));
}

.compass-hub {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 24px;
  border: 3px solid var(--brass-dark);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #fff0b7, var(--brass) 42%, #5e3d17);
  transform: translate(-50%, -50%);
}

.realm-compass-readout {
  min-width: 0;
}

.compass-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
}

.compass-stats div {
  min-width: 0;
  padding: 9px;
  border: 1px solid rgba(146, 240, 216, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(146, 240, 216, 0.08), transparent),
    rgba(4, 15, 13, 0.74);
}

.compass-stats dt {
  margin-bottom: 4px;
  color: var(--brass-light);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.compass-stats dd {
  margin: 0;
  color: #dfffee;
  font-size: 0.95rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.compass-instruction {
  margin: 10px 0 0;
  padding: 12px;
  border: 1px solid rgba(242, 210, 131, 0.34);
  border-radius: 8px;
  color: var(--paper);
  background: rgba(18, 10, 7, 0.58);
  line-height: 1.4;
}

.note-panel {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid rgba(242, 210, 131, 0.32);
  border-radius: 10px;
  background: rgba(18, 10, 7, 0.48);
}

.note-panel h2 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--brass-light);
}

.note-panel p {
  margin: 0;
  color: var(--dim-paper);
  font-size: 0.95rem;
  line-height: 1.45;
}

.quest-page {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.quest-panel {
  width: min(100%, 680px);
  min-height: calc(100dvh - 24px);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 6px solid var(--brass-dark);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.05), transparent 24%),
    linear-gradient(160deg, #4b2a1d, var(--wood) 48%, var(--wood-dark));
  box-shadow:
    inset 0 0 0 2px rgba(242, 210, 131, 0.42),
    0 24px 70px rgba(0, 0, 0, 0.55);
}

.quest-panel h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 10vw, 3.7rem);
}

.quest-panel p {
  color: var(--paper);
  font-size: 1.05rem;
  line-height: 1.6;
}

.clue-module-badge {
  display: inline-block;
  margin: 6px 0 14px;
  padding: 6px 10px;
  border: 1px solid rgba(242, 210, 131, 0.44);
  border-radius: 999px;
  background: rgba(4, 15, 13, 0.42);
  color: var(--brass-light);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.clue-content-card {
  margin: 4px 0 14px;
  padding: 14px;
  border: 2px solid rgba(242, 210, 131, 0.42);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(66, 37, 20, 0.48), rgba(18, 38, 31, 0.76)),
    rgba(10, 22, 20, 0.82);
  box-shadow:
    inset 0 0 18px rgba(0, 0, 0, 0.34),
    0 10px 22px rgba(0, 0, 0, 0.18);
}

.clue-content-card > :first-child {
  margin-top: 0;
}

.clue-content-card > :last-child {
  margin-bottom: 0;
}

#clue-body {
  margin: 0;
}

#clue-points {
  margin-bottom: 0;
}

.clue-image-frame {
  margin: 18px 0;
  padding: 10px;
  border: 2px solid rgba(242, 210, 131, 0.42);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(255, 243, 208, 0.08), rgba(0, 0, 0, 0.24)),
    rgba(4, 15, 13, 0.48);
  box-shadow:
    inset 0 0 0 1px rgba(146, 240, 216, 0.12),
    0 12px 24px rgba(0, 0, 0, 0.28);
}

.clue-image-frame[hidden] {
  display: none;
}

.clue-image-frame img {
  display: block;
  width: 100%;
  max-height: 58vh;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.34);
}

.clue-video-shell {
  position: relative;
  overflow: hidden;
  width: min(100%, 360px);
  max-height: 56vh;
  margin: 0 auto;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.56);
}

.clue-video-frame video {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-height: 56vh;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.56);
}

.clue-video-overlay {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 56px;
  z-index: 5;
  margin: 0;
  border: 1px solid rgba(242, 210, 131, 0.56);
  border-radius: 8px;
  padding: 10px 12px;
  color: #fff3d0;
  background:
    linear-gradient(135deg, rgba(32, 16, 6, 0.84), rgba(4, 15, 13, 0.76)),
    rgba(0, 0, 0, 0.62);
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.38),
    inset 0 0 0 1px rgba(146, 240, 216, 0.12);
  font-size: clamp(0.88rem, 2.8vw, 1.08rem);
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.64);
  pointer-events: none;
}

.clue-video-overlay[hidden] {
  display: none;
}

.clue-image-frame figcaption {
  margin-top: 8px;
  color: var(--brass-light);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.clue-website-frame {
  margin: 18px 0;
  padding: 14px;
  border: 2px solid rgba(242, 210, 131, 0.42);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(255, 243, 208, 0.08), rgba(0, 0, 0, 0.22)),
    rgba(4, 15, 13, 0.48);
  box-shadow:
    inset 0 0 0 1px rgba(146, 240, 216, 0.12),
    0 12px 24px rgba(0, 0, 0, 0.24);
}

.clue-website-frame[hidden] {
  display: none;
}

.clue-website-frame p {
  margin: 0 0 12px;
  font-size: 0.98rem;
}

.clue-website-link {
  display: inline-block;
}

.puzzle-frame {
  display: grid;
  gap: 14px;
  margin: 18px 0;
  border: 2px solid rgba(177, 135, 66, 0.58);
  border-radius: 10px;
  padding: 14px;
  background:
    radial-gradient(circle at 50% 0%, rgba(116, 245, 190, 0.12), transparent 48%),
    linear-gradient(145deg, rgba(35, 23, 15, 0.96), rgba(10, 18, 15, 0.96));
  box-shadow:
    inset 0 0 0 1px rgba(242, 210, 131, 0.16),
    inset 0 0 22px rgba(0, 0, 0, 0.44);
}

.puzzle-frame[hidden] {
  display: none;
}

.puzzle-prompt,
.rune-status {
  margin: 0;
  color: rgba(248, 240, 220, 0.9);
  line-height: 1.45;
}

.rune-pattern {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(146, 240, 216, 0.24);
  border-radius: 9px;
  padding: 12px;
  color: #b8ffd9;
  background: rgba(3, 14, 12, 0.72);
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-shadow: 0 0 10px rgba(116, 245, 190, 0.5);
}

.rune-keyboard {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.rune-keyboard button {
  min-height: 36px;
  border: 1px solid rgba(242, 210, 131, 0.42);
  border-radius: 7px;
  color: #f8efd1;
  background:
    linear-gradient(180deg, rgba(255, 243, 208, 0.1), rgba(0, 0, 0, 0.22)),
    #2c1d16;
  font-weight: 900;
  cursor: pointer;
}

.rune-keyboard button:disabled {
  opacity: 0.38;
  cursor: default;
}

.word-scramble-controls {
  display: block;
}

.word-scramble-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.word-scramble-form input {
  min-height: 42px;
  border: 2px solid rgba(177, 135, 66, 0.8);
  border-radius: 8px;
  padding: 0 10px;
  color: #f8efd1;
  background: #130d08;
  font: inherit;
  font-weight: 800;
  text-transform: uppercase;
}

.word-scramble-form button {
  min-height: 42px;
  border: 1px solid rgba(242, 210, 131, 0.52);
  border-radius: 8px;
  padding: 0 12px;
  color: #1c130a;
  background: linear-gradient(180deg, #f4d28a, #a66f26);
  font-weight: 900;
  cursor: pointer;
}

.word-scramble-form button:disabled,
.word-scramble-form input:disabled {
  opacity: 0.45;
  cursor: default;
}

.rune-solve-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.rune-solve-form input {
  min-height: 42px;
  border: 2px solid rgba(177, 135, 66, 0.8);
  border-radius: 8px;
  padding: 0 10px;
  color: #f8efd1;
  background: #130d08;
  font: inherit;
  font-weight: 800;
}

.prize-reel-frame {
  display: grid;
  gap: 14px;
  margin: 18px 0;
  border: 2px solid rgba(242, 210, 131, 0.55);
  border-radius: 10px;
  padding: 14px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 210, 98, 0.16), transparent 46%),
    linear-gradient(145deg, rgba(39, 24, 14, 0.96), rgba(7, 16, 14, 0.96));
  box-shadow:
    inset 0 0 0 1px rgba(242, 210, 131, 0.2),
    inset 0 0 24px rgba(0, 0, 0, 0.46);
}

.prize-reel-frame[hidden] {
  display: none;
}

.prize-reel-intro {
  margin: 0;
  color: rgba(248, 240, 220, 0.9);
  line-height: 1.45;
}

.prize-reel-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.prize-reel-slot {
  display: grid;
  place-items: center;
  min-height: 78px;
  border: 2px solid rgba(242, 210, 131, 0.48);
  border-radius: 8px;
  color: #f8efd1;
  background:
    linear-gradient(180deg, rgba(255, 243, 208, 0.1), rgba(0, 0, 0, 0.3)),
    #170f0a;
  font-size: 1.7rem;
  font-weight: 900;
  box-shadow:
    inset 0 0 16px rgba(0, 0, 0, 0.42),
    0 4px 0 rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.prize-reel-slot img {
  width: 100%;
  height: 100%;
  max-height: 74px;
  object-fit: contain;
  padding: 8px;
}

.prize-symbol {
  position: relative;
  display: block;
  width: 54px;
  height: 54px;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.45));
}

.prize-symbol span {
  position: absolute;
  display: block;
}

.symbol-cup-bowl {
  inset: 8px 9px 17px;
  border: 4px solid #e3bb63;
  border-top-width: 8px;
  border-radius: 7px 7px 14px 14px;
  background: linear-gradient(180deg, #fff0aa, #b87c25);
}

.symbol-cup-bowl::after {
  content: "";
  position: absolute;
  right: -14px;
  top: 4px;
  width: 13px;
  height: 15px;
  border: 4px solid #c99436;
  border-left: 0;
  border-radius: 0 12px 12px 0;
}

.symbol-cup-stem {
  left: 20px;
  bottom: 6px;
  width: 14px;
  height: 13px;
  border-radius: 3px;
  background: linear-gradient(180deg, #e8c16a, #8e5e20);
}

.symbol-chest-lid {
  left: 8px;
  top: 11px;
  width: 38px;
  height: 14px;
  border: 3px solid #e0b763;
  border-radius: 10px 10px 2px 2px;
  background: linear-gradient(180deg, #7f4325, #4a2518);
}

.symbol-chest-lid::after {
  content: "";
  position: absolute;
  left: -3px;
  top: 12px;
  width: 38px;
  height: 20px;
  border: 3px solid #e0b763;
  border-radius: 2px 2px 7px 7px;
  background: linear-gradient(180deg, #9f572d, #4b2618);
}

.symbol-chest-lock {
  left: 23px;
  top: 28px;
  z-index: 1;
  width: 8px;
  height: 10px;
  border-radius: 2px;
  background: #f2d283;
}

.symbol-gem-top {
  left: 12px;
  top: 9px;
  width: 30px;
  height: 16px;
  clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%);
  background: linear-gradient(135deg, #d9fff2, #33c9b1 52%, #126b72);
}

.symbol-gem-bottom {
  left: 12px;
  top: 24px;
  width: 30px;
  height: 23px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: linear-gradient(135deg, #76f5d0, #128a91);
}

.symbol-coin-face {
  inset: 8px;
  border: 4px solid #fff0a8;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.54), transparent 16%),
    radial-gradient(circle, #f2d283, #b97924 72%);
}

.symbol-coin-face::after {
  content: "";
  position: absolute;
  inset: 9px;
  border: 2px solid rgba(83, 45, 13, 0.42);
  border-radius: 50%;
}

.symbol-rune-mark {
  left: 23px;
  top: 7px;
  width: 8px;
  height: 40px;
  border-radius: 6px;
  background: #86ffd7;
  box-shadow: 0 0 12px rgba(134, 255, 215, 0.7);
  transform: rotate(12deg);
}

.symbol-rune-mark::before,
.symbol-rune-mark::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 7px;
  border-radius: 6px;
  background: #86ffd7;
  left: -2px;
}

.symbol-rune-mark::before {
  top: 9px;
  transform: rotate(-38deg);
}

.symbol-rune-mark::after {
  top: 24px;
  transform: rotate(38deg);
}

.symbol-scroll-page {
  left: 12px;
  top: 13px;
  width: 30px;
  height: 28px;
  border: 3px solid #c89445;
  border-radius: 5px;
  background: #ead49a;
}

.symbol-scroll-roll {
  top: 17px;
  width: 10px;
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff2b8, #b98231);
}

.symbol-scroll-left {
  left: 7px;
}

.symbol-scroll-right {
  right: 7px;
}

.symbol-key-head {
  left: 8px;
  top: 18px;
  width: 17px;
  height: 17px;
  border: 5px solid #e6c06b;
  border-radius: 50%;
}

.symbol-key-shaft {
  left: 25px;
  top: 24px;
  width: 23px;
  height: 7px;
  border-radius: 999px;
  background: #e6c06b;
}

.symbol-key-shaft::after {
  content: "";
  position: absolute;
  right: 1px;
  top: 6px;
  width: 6px;
  height: 8px;
  background: #e6c06b;
}

.symbol-star-shape,
.symbol-spark-shape,
.symbol-sun-shape {
  inset: 7px;
  background: #f8df7d;
  clip-path: polygon(50% 0, 61% 34%, 98% 35%, 68% 56%, 79% 91%, 50% 70%, 21% 91%, 32% 56%, 2% 35%, 39% 34%);
}

.symbol-map-fold {
  top: 12px;
  height: 31px;
  width: 20px;
  border: 3px solid #c89445;
  background: #d9c27f;
  transform: skewY(-8deg);
}

.symbol-map-one {
  left: 9px;
}

.symbol-map-two {
  right: 9px;
  transform: skewY(8deg);
}

.symbol-moon-shape {
  inset: 7px;
  border-radius: 50%;
  background: #e7edf0;
  box-shadow: inset -13px 0 0 #243025;
}

.symbol-lock-loop {
  left: 16px;
  top: 6px;
  width: 22px;
  height: 25px;
  border: 5px solid #e6c06b;
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
}

.symbol-lock-body {
  left: 11px;
  top: 24px;
  width: 32px;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(180deg, #f1d078, #a06b24);
}

.symbol-leaf-shape {
  inset: 8px 13px;
  border-radius: 100% 0 100% 0;
  background: linear-gradient(135deg, #a9f07a, #2f8a3b);
  transform: rotate(-28deg);
}

.symbol-gear-shape {
  inset: 9px;
  border: 8px dashed #c7a14e;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 0 28%, #c7a14e 30% 48%, transparent 50%);
}

.prize-reel-slot.spinning {
  animation: prizeReelSpin 0.16s linear infinite;
  text-shadow:
    0 -18px 0 rgba(248, 240, 220, 0.22),
    0 18px 0 rgba(248, 240, 220, 0.18),
    0 0 12px rgba(242, 210, 131, 0.36);
}

.prize-reel-slot.prize-won {
  border-color: rgba(146, 240, 216, 0.72);
  box-shadow:
    inset 0 0 16px rgba(0, 0, 0, 0.42),
    0 0 18px rgba(146, 240, 216, 0.22);
}

.prize-reel-slot.prize-none {
  opacity: 0.68;
}

.prize-reel-button {
  width: 100%;
  text-align: center;
}

.prize-reel-button:disabled {
  opacity: 0.62;
}

.prize-reel-result {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(146, 240, 216, 0.34);
  border-radius: 8px;
  padding: 11px;
  background:
    radial-gradient(circle at 50% 0%, rgba(146, 240, 216, 0.12), transparent 48%),
    rgba(6, 19, 16, 0.86);
}

.prize-reel-result[hidden] {
  display: none;
}

.prize-reel-result-label {
  margin: 0;
  color: rgba(242, 210, 131, 0.86);
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prize-reel-reward,
.prize-reel-voucher {
  margin: 0;
  color: #f8efd1;
  line-height: 1.45;
}

.prize-reel-voucher {
  border: 1px dashed rgba(242, 210, 131, 0.5);
  border-radius: 7px;
  padding: 8px;
  color: #bfffe7;
  background: rgba(10, 36, 28, 0.72);
  font-weight: 800;
}

@keyframes prizeReelSpin {
  0% {
    filter: brightness(0.8) blur(0);
    transform: translateY(-3px);
  }

  50% {
    filter: brightness(1.35) blur(0.5px);
    transform: translateY(3px);
  }

  100% {
    filter: brightness(0.9) blur(0);
    transform: translateY(-2px);
  }
}

.sponsor-strip {
  display: grid;
  gap: 12px;
  margin: 14px 0 0;
  padding: 10px;
  border: 2px solid rgba(242, 210, 131, 0.42);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(66, 37, 20, 0.62), rgba(18, 38, 31, 0.84)),
    rgba(10, 22, 20, 0.86);
  box-shadow:
    inset 0 0 18px rgba(0, 0, 0, 0.36),
    0 10px 22px rgba(0, 0, 0, 0.18);
}

.sponsor-strip[hidden],
.sponsor-message[hidden] {
  display: none;
}

.sponsor-strip img {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(242, 210, 131, 0.46);
  background: rgba(255, 255, 255, 0.08);
}

.sponsor-strip h2 {
  margin: 0;
  color: #f8ecd0;
  font-size: clamp(1rem, 5vw, 1.2rem);
}

.sponsor-copy {
  display: grid;
  gap: 4px;
  text-align: left;
}

.sponsor-message {
  margin: 0;
  color: rgba(248, 240, 220, 0.9);
  font-size: 0.96rem;
  line-height: 1.45;
}

.sponsor-view-button {
  justify-self: start;
}

.return-portal-link {
  align-self: flex-start;
}

.clue-warning {
  margin-top: 14px;
  padding: 10px 12px;
  border-left: 4px solid rgba(255, 184, 90, 0.86);
  color: #ffd89c;
  background: rgba(50, 24, 9, 0.42);
}

@media (max-width: 560px) {
  .portal-shell,
  .quest-page,
  .campaigns-shell {
    align-items: flex-start;
    padding: 12px;
  }

  .portal-panel,
  .quest-panel,
  .campaigns-panel {
    padding: 24px 18px 18px;
    border-width: 8px;
  }

  .quest-panel {
    min-height: calc(100dvh - 24px);
  }

  .clue-content-card,
  .sponsor-strip {
    padding: 10px;
  }

  .sponsor-strip {
    grid-template-columns: 1fr;
  }

  .sponsor-view-button {
    justify-self: stretch;
    width: 100%;
  }

  .rune-keyboard {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .rune-solve-form {
    grid-template-columns: 1fr;
  }

  .device-header {
    padding: 16px;
  }

  .auth-actions,
  .profile-stats,
  .button-row,
  .instrument-panel,
  .realm-compass-heading,
  .realm-compass-layout {
    grid-template-columns: 1fr;
  }

  .auth-panel {
    max-height: calc(100vh - 32px);
    overflow: auto;
  }

  #profile-modal .auth-panel-header {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  #profile-modal .profile-header-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  #profile-modal .auth-close-button {
    width: 100%;
    min-width: 0;
    padding: 7px 8px;
    font-size: 0.72rem;
    white-space: nowrap;
  }

  .gauge-face {
    display: none;
  }

  .realm-compass-dial {
    justify-self: center;
  }

  .compass-stats {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }

  .compass-stats div {
    padding: 8px;
  }

  .compass-stats dt {
    font-size: 0.66rem;
  }

  .compass-stats dd {
    font-size: 0.86rem;
  }

  .handset-grip {
    top: 90px;
    bottom: 70px;
    width: 11px;
  }

  .handset-grip-left {
    left: 5px;
  }

  .handset-grip-right {
    right: 5px;
  }

  .speaker-grille {
    width: 82%;
  }

  .private-access-controls {
    grid-template-columns: 1fr;
  }

  .campaign-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}
