* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #080912;
  color: #f4efe6;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.outer-hall {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  gap: 16px;
  background:
    radial-gradient(circle at 50% 45%, rgba(168, 85, 247, 0.16), transparent 55%),
    linear-gradient(180deg, #080912 0%, #0d1020 100%);
}

.hall-kicker {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: #c084fc;
}

.outer-hall h1 {
  font-size: clamp(1.9rem, 3.8vw, 2.8rem);
}

.hall-desc {
  max-width: 500px;
  font-size: 14px;
  line-height: 1.65;
  color: #cbd5e1;
}

.hall-desc code,
.portal-chamber code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  color: #c084fc;
}

kbd {
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
}

.sigil-btn {
  position: relative;
  width: 172px;
  height: 172px;
  margin-top: 12px;
  border-radius: 50%;
  border: 1px solid rgba(192, 132, 252, 0.35);
  background: radial-gradient(circle, rgba(168, 85, 247, 0.18) 0%, rgba(15, 19, 36, 0.9) 75%);
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sigil-btn:hover {
  box-shadow: 0 0 36px rgba(192, 132, 252, 0.28);
}

.sigil-btn.is-holding {
  transform: scale(0.95);
  box-shadow: 0 0 54px rgba(192, 132, 252, 0.55);
}

.sigil-glyph {
  font-size: 38px;
  color: #e9d5ff;
}

.sigil-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #cbd5e1;
}

.k-portal-ring {
  position: absolute;
  inset: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  transform: rotate(-90deg);
  pointer-events: none;
}

.k-portal-ring-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 3;
}

.k-portal-ring-fill {
  fill: none;
  stroke: #c084fc;
  stroke-width: 3.5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 8px rgba(192, 132, 252, 0.9));
}

.portal-status {
  margin-top: 10px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: #94a3b8;
}

.portal-status strong {
  color: #e9d5ff;
}

/* Secret Portal Chamber */
.portal-chamber {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 45%, #24103c 0%, #090412 72%);
  opacity: 0;
  transform: scale(1.06);
  pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.portal-chamber.is-open {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.chamber-inner {
  max-width: 520px;
  padding: 36px 32px;
  border-radius: 20px;
  background: rgba(16, 8, 30, 0.85);
  border: 1px solid rgba(192, 132, 252, 0.45);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.7), 0 0 80px rgba(168, 85, 247, 0.2);
  text-align: center;
}

.chamber-kicker {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: #f472b6;
  margin-bottom: 10px;
}

.chamber-inner h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  margin-bottom: 12px;
}

.chamber-inner p {
  font-size: 14px;
  line-height: 1.65;
  color: #e2d9f3;
  margin-bottom: 24px;
}

.exit-btn {
  appearance: none;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid rgba(244, 114, 182, 0.55);
  background: rgba(244, 114, 182, 0.18);
  color: #fdf2f8;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.exit-btn:hover {
  background: rgba(244, 114, 182, 0.3);
}
