:root {
  color-scheme: light;
  --navy: #071b55;
  --blue: #0b67ef;
  --green: #05aa61;
  --muted: #526896;
  --line: rgba(17, 66, 133, 0.12);
  --page: #f8fbff;
  --content: 1432px;
  --gutter: clamp(1rem, 3.4vw, 3.35rem);
  --sans: "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

html {
  min-width: 320px;
  background: var(--page);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100svh;
  overflow-x: hidden;
  color: var(--navy);
  background:
    radial-gradient(ellipse at 85% 42%, rgba(71, 167, 245, 0.14), transparent 45%),
    linear-gradient(125deg, #fff 0%, #fbfdff 53%, #eef7ff 100%);
  font-family: var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button, a { font: inherit; }
a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: 0.75rem;
  color: #fff;
  background: var(--navy);
  transform: translateY(-180%);
}

.skip-link:focus { transform: translateY(0); }

.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;
}

.lobby-shell { min-height: 100svh; isolation: isolate; }

.lobby-shell::before,
.lobby-shell::after {
  position: fixed;
  z-index: -1;
  right: -18vw;
  width: 90vw;
  height: 28vw;
  border: clamp(2rem, 4vw, 4rem) solid rgba(177, 220, 252, 0.18);
  border-radius: 50%;
  content: "";
  pointer-events: none;
  transform: rotate(-13deg);
}

.lobby-shell::before { top: 9rem; }
.lobby-shell::after { top: 21rem; right: -30vw; opacity: 0.7; }

.lobby-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  width: min(calc(100% - (2 * var(--gutter))), var(--content));
  min-height: 108px;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  margin-inline: auto;
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; width: max-content; align-items: center; border-radius: 0.75rem; }
.brand img { display: block; width: 82px; height: auto; }
.lobby-route-controls { display: flex; align-items: center; justify-self: center; gap: 0.6rem; }
.premium-route-control { display: inline-grid; width: 44px; min-width: 44px; max-width: 44px; height: 44px; min-height: 44px; max-height: 44px; flex: 0 0 44px; place-items: center; align-self: center; justify-self: center; overflow: hidden; border: 1px solid #c9b6f2; border-radius: 50%; color: #5b2ecb; background: rgba(255, 255, 255, 0.95); box-shadow: 0 0.55rem 1.4rem rgba(72, 45, 150, 0.12); text-decoration: none; transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease; }
.premium-route-control > svg { display: block; width: 20px; min-width: 20px; max-width: 20px; height: 20px; min-height: 20px; max-height: 20px; flex: 0 0 20px; }
.premium-route-control:hover { background: #faf8ff; box-shadow: 0 0.7rem 1.7rem rgba(72, 45, 150, 0.16); transform: translateY(-1px); }
.premium-route-control:active { transform: translateY(0) scale(0.97); }

.header-tools,
.language-wrap,
.clock-pill,
.language-control { display: flex; align-items: center; }
.header-tools { justify-self: end; gap: 0.8rem; }

.clock-pill {
  min-width: 146px;
  min-height: 48px;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(18, 100, 220, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0.75rem 2rem rgba(27, 72, 130, 0.08);
}

.clock-pill svg,
.globe { width: 21px; height: 21px; fill: none; stroke: var(--navy); stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.live-clock { font-size: 0.82rem; font-variant-numeric: tabular-nums; font-weight: 800; white-space: nowrap; }
.language-wrap { gap: 0.6rem; }
.language-control { padding: 0.2rem; border-radius: 999px; background: #e8edf7; }

.language-control button {
  min-width: 44px;
  min-height: 36px;
  padding: 0.42rem 0.62rem;
  border: 0;
  border-radius: 999px;
  color: #63708d;
  background: transparent;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
}

.language-control button[aria-pressed="true"] { color: #fff; background: var(--green); box-shadow: 0 0.45rem 1.15rem rgba(0, 171, 92, 0.18); }
.language-control button:focus-visible,
.brand:focus-visible,
.premium-route-control:focus-visible,
.room-cta:focus-visible { outline: 3px solid #f6b51b; outline-offset: 3px; }

.lobby-main {
  width: min(calc(100% - (2 * var(--gutter))), var(--content));
  padding: clamp(2rem, 4.4vh, 3.4rem) 0 clamp(2rem, 4vh, 3rem);
  margin-inline: auto;
}

.lobby-intro { max-width: 900px; }
.eyebrow { margin: 0 0 1rem; color: var(--blue); font-size: clamp(0.76rem, 1vw, 0.95rem); font-weight: 820; letter-spacing: 0.25em; }

.lobby-intro h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.65rem, 4.4vw, 4.35rem);
  font-weight: 830;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.title-accent {
  background: linear-gradient(100deg, #1477f4 0%, #278bff 45%, #08b45b 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.intro-copy { max-width: 650px; margin: 0.7rem 0 0; color: var(--muted); font-size: clamp(1rem, 1.35vw, 1.22rem); line-height: 1.4; }

.room-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(0.9rem, 1.4vw, 1.35rem);
  margin-top: clamp(2rem, 3.6vh, 2.7rem);
}

.room-card {
  position: relative;
  grid-column: span 2;
  min-height: 318px;
  overflow: hidden;
  border: 1px solid rgba(35, 119, 224, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 1.2rem 3rem rgba(29, 83, 143, 0.09);
}

.room-wide { grid-column: span 3; min-height: 218px; }
.room-photo { position: absolute; inset: 0 0 0 auto; width: 62%; height: 100%; object-fit: cover; }
.room-wash { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(252, 253, 255, 0.99) 0%, rgba(250, 252, 255, 0.96) 43%, rgba(250, 252, 255, 0.24) 72%, transparent 100%); }
.room-levels { --accent: #7327f3; --accent-soft: #eee5ff; }
.room-program { --accent: #0d72f1; --accent-soft: #ddebff; }
.room-try { --accent: #03a95d; --accent-soft: #ddf7e9; }
.room-placement { --accent: #096fea; --accent-soft: #dcecff; }
.room-login { --accent: #f16100; --accent-soft: #fff0df; }

.room-content {
  position: relative;
  z-index: 1;
  display: flex;
  width: 61%;
  height: 100%;
  min-height: inherit;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.35rem, 2vw, 1.75rem);
}

.room-content-wide { width: 62%; flex-direction: row; gap: 1.25rem; }
.room-icon { display: grid; width: 70px; height: 70px; flex: 0 0 auto; place-items: center; border-radius: 18px; color: var(--accent); background: var(--accent-soft); }
.room-icon svg { width: 47px; height: 47px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 5; }
.room-content h2 { margin: 0.75rem 0 0.45rem; color: var(--accent); font-size: clamp(1.18rem, 1.55vw, 1.5rem); font-weight: 850; letter-spacing: -0.035em; }
.room-content p { max-width: 24ch; margin: 0; color: #425d92; font-size: clamp(0.86rem, 1vw, 1rem); line-height: 1.42; }
.wide-copy { min-width: 0; }
.wide-copy h2 { margin-top: 0.2rem; }

.room-cta {
  display: inline-flex;
  width: min(100%, 230px);
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.72rem 1.45rem;
  margin-top: auto;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 0.8rem 1.9rem color-mix(in srgb, var(--accent), transparent 76%);
  font-size: 0.96rem;
  font-weight: 760;
  text-decoration: none;
}

.room-cta:disabled { cursor: not-allowed; opacity: 0.94; }
.room-cta span { font-size: 1.5rem; line-height: 1; }
.room-wide .room-cta { width: min(100%, 215px); margin-top: 1.1rem; }

@media (max-width: 1280px) {
  .lobby-header { min-height: 100px; }
  .brand img { width: 64px; }
  .header-tools { gap: 0.5rem; }
  .clock-pill { min-width: 132px; padding-inline: 0.7rem; }
  .globe { display: none; }
  .room-card { min-height: 300px; }
  .room-wide { min-height: 210px; }
  .room-content { width: 64%; }
  .room-content-wide { width: 66%; }
}

@media (max-width: 1020px) {
  .lobby-header { min-height: 94px; padding-block: 0.65rem; }
  .lobby-main { padding-top: 2rem; }
  .room-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .room-card,
  .room-wide { grid-column: span 1; min-height: 315px; }
  .room-content,
  .room-content-wide { width: 64%; flex-direction: column; gap: 0; }
  .wide-copy h2 { margin-top: 0.75rem; }
  .room-wide .room-cta { margin-top: auto; }
}

@media (max-width: 680px) {
  :root { --gutter: 1rem; }
  .lobby-header { grid-template-columns: auto auto minmax(0, 1fr); min-height: 82px; gap: 0.4rem; }
  .brand img { width: 54px; }
  .lobby-route-controls { gap: 0.3rem; }
  .header-tools { gap: 0.4rem; }
  .clock-pill { min-width: 0; min-height: 40px; gap: 0; padding-inline: 0.8rem; }
  .clock-pill svg { display: none; }
  .live-clock { font-size: 0.72rem; }
  .language-control button { min-width: 39px; min-height: 34px; padding: 0.35rem 0.45rem; font-size: 0.72rem; }
  .lobby-main { padding-top: 1.6rem; }
  .eyebrow { margin-bottom: 0.7rem; font-size: 0.68rem; letter-spacing: 0.2em; }
  .lobby-intro h1 { font-size: clamp(2.2rem, 11vw, 3.15rem); }
  .intro-copy { font-size: 0.95rem; }
  .room-grid { grid-template-columns: 1fr; margin-top: 1.7rem; }
  .room-card,
  .room-wide { min-height: 296px; }
  .room-photo { width: 67%; }
  .room-content,
  .room-content-wide { width: 67%; padding: 1.25rem; }
  .room-icon { width: 58px; height: 58px; border-radius: 15px; }
  .room-icon svg { width: 38px; height: 38px; }
  .room-content h2,
  .wide-copy h2 { margin-top: 0.6rem; font-size: 1.18rem; }
  .room-content p { font-size: 0.86rem; }
  .room-cta,
  .room-wide .room-cta { min-height: 44px; padding-inline: 1.1rem; font-size: 0.87rem; }
}

@media (max-width: 410px) {
  .room-card,
  .room-wide { min-height: 310px; }
  .room-content,
  .room-content-wide { width: 72%; }
  .room-wash { background: linear-gradient(90deg, rgba(252, 253, 255, 1) 0%, rgba(250, 252, 255, 0.97) 49%, rgba(250, 252, 255, 0.32) 76%, transparent 100%); }
}

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