/* ══════════════════════════════════════
   ROOM SELECT PAGE
   Builds on home_style.css tokens
══════════════════════════════════════ */

body.template-room-select {
  min-height: 100vh;
  background: radial-gradient(ellipse 80% 70% at 50% 45%, #1e4a1e 0%, #0d1f0d 55%, #060f06 100%);
  display: flex;
  flex-direction: column;
}

/* ── Main centered layout ── */
.rs-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px 40px;
}

/* ── Card ── */
.rs-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 48px 52px;
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,215,0,0.05);
  animation: cardIn 0.5s cubic-bezier(0.22,1,0.36,1) both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Eyebrow ── */
.rs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(127,255,0,0.08);
  border: 1px solid var(--green-neon);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 11px;
  color: var(--green-neon);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  width: fit-content;
}
.rs-dot { font-size: 12px; }

/* ── Heading ── */
.rs-heading {
  font-family: var(--font-display);
  line-height: 0.92;
  letter-spacing: 0.02em;
  margin: 0;
}
.rs-line-1 {
  display: block;
  font-size: clamp(42px, 6vw, 64px);
  color: var(--white);
}
.rs-line-2 {
  display: block;
  font-size: clamp(42px, 6vw, 64px);
  color: var(--gold);
}

/* ── Subtitle ── */
.rs-sub {
  font-size: 14px;
  color: rgba(245,245,240,0.5);
  line-height: 1.5;
  margin: -4px 0 4px;
}

/* ── Input group ── */
.rs-input-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rs-input {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 16px 20px;
  font-family: 'Courier New', monospace;
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  caret-color: var(--gold);
}
.rs-input::placeholder {
  color: rgba(255,255,255,0.2);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: none;
}
.rs-input:focus {
  border-color: var(--gold);
  background: rgba(255,215,0,0.06);
  box-shadow: 0 0 0 3px rgba(255,215,0,0.12);
}
.rs-input.rs-input--error {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(229,57,53,0.15);
  animation: shake 0.35s ease;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-6px); }
  40%       { transform: translateX(6px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}

/* ── Submit button ── */
.rs-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  background: var(--gold);
  color: var(--dark);
  border: none;
  border-radius: 8px;
  padding: 16px 24px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  box-shadow: 0 4px 24px rgba(255,215,0,0.3);
}
.rs-btn:hover {
  transform: translateY(-2px);
  background: #ffe033;
  box-shadow: 0 8px 32px rgba(255,215,0,0.45);
}
.rs-btn:active { transform: translateY(0); }
.rs-btn-main {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.rs-btn-arrow {
  font-size: 20px;
  font-weight: 700;
  transition: transform 0.2s;
}
.rs-btn:hover .rs-btn-arrow { transform: translateX(4px); }

/* ── Error message ── */
.rs-error {
  font-size: 12px;
  color: var(--red);
  display: none;
  margin: -8px 0 0;
}
.rs-error.visible { display: block; }

/* ── Divider ── */
.rs-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.2);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.rs-divider::before,
.rs-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.1);
}

/* ── QR scan hint ── */
.rs-scan-hint {
  font-size: 13px;
  color: rgba(245,245,240,0.4);
  text-align: center;
  line-height: 1.5;
}

/* ── Responsive ── */
@media (max-width: 580px) {
  .rs-card { padding: 32px 24px; }
}