.welcome-page {
  --wl-room: #17211D;
  --wl-room-edge: transparent;
  --wl-room-shadow: 0 10px 30px rgba(23, 33, 29, .18);
  --wl-ink: #F4F2EA;
  --wl-ink-2: #B9C2BC;
  --wl-on-ink: #17211D;
  --wl-main-ink: #1B2622;
  --wl-act-bg: var(--green-pale);
  --wl-act-line: var(--primary-bg);
  --wl-gl: max(28px, env(safe-area-inset-left));
  --wl-gr: max(28px, env(safe-area-inset-right));
}

html[data-theme]:not([data-theme="amhub"]) .welcome-page {
  --wl-room: #0c0c0c;
  --wl-room-edge: var(--border);
  --wl-room-shadow: none;
  --wl-ink: #fff;
  --wl-ink-2: #aaa;
  --wl-on-ink: #0c0c0c;
  --wl-main-ink: #fff;
  --wl-act-bg: var(--red-18);
}

.wl-main { padding: 30px var(--wl-gr) 56px var(--wl-gl); scroll-margin-top: 64px; }

.wl-skip { position: absolute; left: 12px; top: -80px; z-index: 30; padding: 12px 16px; border-radius: 8px; background: var(--bg1); color: var(--text); border: 1px solid var(--border-hi); text-decoration: none; }
.wl-skip:focus { top: 8px; }

.wl-hero { container-type: inline-size; margin: 0 0 24px; }

.wl-title {
  margin: 0 0 10px; font-family: var(--font-display); font-weight: 400; line-height: 1.12; color: var(--text); white-space: nowrap;
  font-size: min(46px, calc((100vw - 56px) / 11.5));
  font-size: min(46px, calc(100cqw / 11.5));
}
.wl-sub { margin: 0; max-width: 60ch; font-size: 19px; line-height: 1.45; color: var(--text-4); }

.wl-room {
  display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 20px; row-gap: 16px;
  padding: 20px 22px 18px; border-radius: 16px; background: var(--wl-room); color: var(--wl-ink);
  border: 1px solid var(--wl-room-edge); box-shadow: var(--wl-room-shadow);
}
.wl-room-say { min-width: 0; }
.wl-room-h { margin: 0 0 2px; font-family: var(--font-display); font-weight: 400; font-size: 22px; line-height: 1.2; color: var(--wl-ink); }
.wl-room-sub { margin: 0; font-size: 17px; color: var(--wl-ink-2); }

.wl-levels { display: grid; grid-template-columns: repeat(3, 122px); gap: 8px; }
.wl-level {
  min-height: 48px; padding: 0 10px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .36); background: transparent; color: var(--wl-ink);
  font-size: 17px; line-height: 1.2; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: background-color .14s ease, color .14s ease, border-color .14s ease;
}
.wl-level:active { background: rgba(255, 255, 255, .2); }
.wl-level[aria-pressed="true"] { background: var(--wl-ink); border-color: var(--wl-ink); color: var(--wl-on-ink); font-weight: 700; }
.wl-level:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 10px; }

.wl-shots { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wl-shot { margin: 0; min-width: 0; }
.wl-stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: #0b100e; }

.wl-stage img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.wl-shot[data-shot="legs"] .wl-stage img { object-position: 92% 50%; }
.wl-stage::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); pointer-events: none; }

.wl-covers { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }

.wl-note {
  position: absolute; right: 10px; top: 10px; display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 8px; pointer-events: none;
  border-radius: 8px; background: rgba(10, 13, 12, .84); border: 1px solid rgba(255, 255, 255, .14); border-left: 3px solid #cfd8d4;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .4); color: #f2f2f2; font-size: 15px; line-height: 1.25; white-space: nowrap;
}
.wl-note[hidden] { display: none; }
.wl-note b { font-weight: 700; color: #fff; }
.wl-chip { padding: 1px 6px; border-radius: 12px; border: 1px solid currentColor; color: #cfd8d4; font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; }
.wl-note.blur { border-left-color: #8FC1E3; }
.wl-note.blur .wl-chip { color: #8FC1E3; }
.wl-note.soften { border-left-color: #9B7FD4; }
.wl-note.soften .wl-chip { color: #c3b2f0; }

.wl-cap { display: grid; margin: 10px 0 0; font-size: 17px; line-height: 1.35; color: var(--wl-ink-2); }
.wl-cap > span { grid-area: 1 / 1; }
.wl-cap-size { visibility: hidden; }
.wl-cap b { font-weight: 700; color: var(--wl-ink); }

.wl-h { margin: 46px 0 14px; font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1.2; color: var(--text); }
.wl-doors-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.wl-door { min-width: 0; padding: 18px 20px 20px; border-radius: 12px; background: var(--bg1); border: 1px solid var(--border); }
.wl-door h3 { margin: 0 0 6px; font-size: 19px; font-weight: 700; line-height: 1.25; color: var(--text); }
.wl-door p { margin: 0 0 16px; font-size: 17px; line-height: 1.45; color: var(--text-3); }
.wl-door.main { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 20px 22px; border-color: var(--wl-act-line); box-shadow: inset 0 0 0 1px var(--wl-act-line); }
.wl-door.main .wl-door-say { min-width: 0; max-width: 64ch; }
.wl-door.main h3 { font-family: var(--font-display); font-weight: 400; font-size: 21px; }
.wl-door.main p { margin: 0; }

.wl-go {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; border-radius: 8px;
  border: 1px solid var(--border-hi); background: var(--bg2); color: var(--text); font-size: 17px; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: background-color .14s ease, border-color .14s ease;
}
.wl-go:active { background: var(--bg3); }
.wl-go:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 8px; }
.wl-go.main { flex: none; min-height: 52px; padding: 0 26px; background: var(--primary-bg); border-color: var(--primary-border); color: var(--wl-main-ink); font-size: 18px; white-space: nowrap; }
.wl-go.main:active { background: var(--primary-hover); border-color: var(--primary-hover); }

.wl-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 28px; margin: 0; padding: 0; list-style: none; counter-reset: wl-step; }
.wl-step { position: relative; min-width: 0; padding-left: 52px; counter-increment: wl-step; }
.wl-step::before {
  content: counter(wl-step); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 17px; line-height: 1; color: var(--text);
  background: var(--amber-18); border: 1px solid var(--amber-40);
}
.wl-step.sure::before { background: var(--blue-18); border-color: var(--blue); }
.wl-step.pick::before { background: var(--wl-act-bg); border-color: var(--wl-act-line); }
.wl-step h3 { margin: 7px 0 6px; font-size: 19px; font-weight: 700; line-height: 1.25; color: var(--text); }
.wl-step p { margin: 0; font-size: 17px; line-height: 1.45; color: var(--text-3); }

.wl-foot { border-top: 1px solid var(--border); }
.wl-foot-in { max-width: 1240px; margin: 0 auto; padding: 22px var(--wl-gr) calc(30px + env(safe-area-inset-bottom)) var(--wl-gl); font-size: 16px; line-height: 1.5; color: var(--text-4); }
.wl-foot-name { margin: 0 0 6px; font-family: var(--font-display); font-size: 17px; color: var(--text); }
.wl-credit { margin: 0; max-width: 80ch; }
.wl-credit a { color: var(--blue-text); text-decoration: underline; text-underline-offset: 2px; }

@media (hover: hover) {
  .wl-level:hover { background: rgba(255, 255, 255, .12); }
  .wl-level[aria-pressed="true"]:hover { background: var(--wl-ink); }
  .wl-go:hover { background: var(--bg3); }
  .wl-go.main:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
}

@media (max-width: 900px) {
  .wl-room { grid-template-columns: 1fr; }
  .wl-levels { justify-self: start; }
  .wl-doors-grid, .wl-steps { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .welcome-page { --wl-gl: max(14px, env(safe-area-inset-left)); --wl-gr: max(14px, env(safe-area-inset-right)); }
  .wl-main { padding-top: 18px; padding-bottom: 44px; }
  .wl-hero { margin-bottom: 18px; }
  .wl-sub { font-size: 17px; }
  .wl-room { display: block; margin: 0 calc(-1 * var(--wl-gr)) 0 calc(-1 * var(--wl-gl)); padding: 16px 0 4px; border-radius: 0; border-left: 0; border-right: 0; box-shadow: none; }
  .wl-room-say { padding: 0 var(--wl-gr) 4px var(--wl-gl); }
  .wl-room-h { font-size: 20px; }
  .wl-levels { position: sticky; top: var(--wl-bar, 52px); z-index: 5; grid-template-columns: repeat(3, 1fr); padding: 10px var(--wl-gr) 10px var(--wl-gl); background: var(--wl-room); }
  .wl-shots { display: block; }
  .wl-stage { border-radius: 0; }
  .wl-cap { margin: 10px 0 18px; padding: 0 var(--wl-gr) 0 var(--wl-gl); font-size: 16.5px; }
  .wl-h { margin: 34px 0 12px; font-size: 22px; }
  .wl-door.main { display: block; padding: 18px 18px 20px; }
  .wl-door.main p { margin: 0 0 16px; }
  .wl-door { padding: 16px 18px 18px; }
  .wl-go, .wl-go.main { display: flex; width: 100%; white-space: normal; }
}

@keyframes wl-in { from { opacity: 0; } to { opacity: 1; } }
.wl-covers .blur-box { animation: wl-in .2s ease-out both; }
.wl-note { animation: wl-in .2s ease-out both; }
@media (prefers-reduced-motion: reduce) {
  .wl-covers .blur-box, .wl-note { animation: none; }
  .wl-level, .wl-go { transition: none; }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .wl-covers .blur-box { background: rgba(18, 24, 21, .96); }
  .wl-covers .blur-box.soften { background: rgba(0, 0, 0, .5); }
}
