@font-face {
  font-family: Jua;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('art/intro/jua.woff2') format('woff2');
}

:root { --wordmark-font: Jua, 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif; }
.entry-screen { background: #261c32; }
.entry-screen .sidebar, .entry-screen .topbar { display: none; }
.entry-screen main { display: block; min-height: 100vh; min-height: 100dvh; margin: 0; padding: 0; }
.entry-screen #view { display: grid; width: 100%; max-width: none; min-height: inherit; }
.entry-loading { color: #ffefd9; text-align: center; }
.aja-shell { position: relative; isolation: isolate; display: grid; overflow: hidden; container: aja-screen / inline-size; width: 100%; border: 0; border-radius: 0; background: #30203d; }
.aja-shell [hidden] { display: none !important; }
.aja-opening, .aja-login { grid-area: 1 / 1; min-height: 0; }
.aja-opening { position: relative; isolation: isolate; overflow: hidden; z-index: 1; }
.aja-opening-room { position: absolute; inset: 0 0 auto; height: 100%; background: #382b4d url('art/intro/room.webp') center 65% / cover no-repeat; }
.aja-opening-room::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, #21132955, transparent 67%); }
.aja-opening-room canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.aja-stage { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.aja-opening-title { position: absolute; z-index: 2; top: 24%; left: 8%; display: grid; width: max-content; max-width: 85%; font: 400 clamp(49px, 9.5cqw, 96px)/.97 var(--wordmark-font); letter-spacing: -.025em; color: #fff0d9; pointer-events: none; }
.aja-opening-title span { width: max-content; text-shadow: 0 5px 18px #29132f9e; will-change: transform, opacity; }
.aja-opening-title span:first-child { opacity: var(--aja-first-alpha, 0); transform: translateY(var(--aja-first-y, 20px)); }
.aja-opening-title span:last-child { margin-left: 1.05em; margin-top: .02em; color: #ffc198; opacity: var(--aja-second-alpha, 0); transform: translateY(var(--aja-second-y, -32px)) scale(var(--aja-second-scale, 1)); }
.aja-opening-title[data-title-ready] span { opacity: 1; transform: none; }
.aja-opening-skip { position: absolute; bottom: 14px; right: 14px; }
.aja-opening-skip, .entry-tools .button { background: #2e1b33dc; color: #fff4df; border: 1px solid #f0c5c46b; }
.entry-tools { display: flex; flex-wrap: wrap; gap: 6px; position: absolute; bottom: 14px; left: 14px; z-index: 3; }
.aja-shell[data-surface="opening"] .entry-tools { display: none; }
.entry-tools .button { width: 44px; padding: 0; border-radius: 50%; }
.entry-tools .button .icon { width: 21px; height: 21px; }
.entry-tools .button[aria-pressed="true"] { background: #fff0d8; color: #41283d; border-color: #fff0d8; }

.aja-login { display: grid; position: relative; z-index: 2; grid-template-columns: 1.35fr 1fr; }
.aja-login[data-sliding] { pointer-events: none; }
.aja-login[data-sliding] .aja-signin { transform: translateX(var(--aja-signin-x, 100%)); }
.aja-cover { min-width: 0; }
.aja-signin { display: grid; align-items: start; justify-items: center; padding: 38vh 22px 26px; }
.aja-form { position: relative; display: grid; width: min(100%, 352px); gap: 12px; padding: 24px 24px 18px; color: #fff2ea; background: #2a1838d4; border: 1px solid #ffe9d63d; border-radius: 22px; backdrop-filter: blur(14px); box-shadow: 0 18px 44px #1608218c, inset 0 1px #fff1e826; }
.aja-form h1 { font-size: 24px; letter-spacing: -.045em; line-height: 1.25; font-weight: 800; word-break: keep-all; }
.aja-form > p { margin: -6px 0 4px; color: #e9d5e4; font-size: 14px; line-height: 1.55; word-break: keep-all; }
.aja-form .button { width: 100%; border-radius: 14px; transition: transform .12s, box-shadow .12s, background .15s; }
.aja-form .button:hover { filter: none; }
.entry-primary { min-height: 56px; background: #cf2a55; color: #fff; font-size: 17px; letter-spacing: -.02em; box-shadow: 0 5px 0 #86173b, 0 12px 22px #16082180; }
.aja-form .entry-primary:hover { background: #dd3a64; }
.aja-form .entry-primary:active:not(:disabled) { transform: translateY(4px); box-shadow: 0 1px 0 #86173b, 0 5px 12px #16082180; }
.aja-form .entry-primary .icon { width: 21px; height: 21px; }
.entry-second { min-height: 48px; margin-top: 5px; background: #fff1e814; color: #fff0e2; border-color: #ffe9d652; font-size: 14px; }
.aja-form .entry-primary[data-guest] .icon, .aja-form .entry-primary[data-continue] .icon:has([href="#play"]) { fill: currentColor; }
.aja-form .entry-second:hover { background: #fff1e829; }
.aja-form .entry-second .icon { width: 20px; height: 20px; }
.entry-link { margin-top: 2px; border: 0; background: transparent; color: #f0dbe7; font-size: 13px; font-weight: 600; }
.aja-form .entry-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.aja-form .button:focus-visible { outline-color: #ffd978; }

.entry-pass { overflow: hidden; background: #fff4e2; color: #41283d; border-radius: 15px; box-shadow: 0 6px 16px #1608215e; transform: rotate(-.8deg); }
.entry-pass-head { display: flex; align-items: center; justify-content: space-between; padding: 7px 13px; background: #7a2449; color: #fff0dc; font-size: 12px; font-weight: 800; letter-spacing: -.01em; }
.entry-pass-head .icon { width: 18px; height: 18px; }
.entry-pass-body { display: flex; align-items: center; gap: 13px; padding: 11px 13px; }
.entry-pass-body > div { min-width: 0; }
.entry-pass-photo, .entry-pass-blank { flex: 0 0 auto; width: 76px; height: 76px; border-radius: 12px; background: #f6d3cc; }
.entry-pass-photo { position: relative; overflow: hidden; }
.entry-pass-photo canvas { position: absolute; left: -44%; top: -8%; width: 190%; height: 190%; }
.entry-pass-blank { display: grid; place-items: center; background: transparent; border: 2px dashed #c9a7ab; color: #96707b; font-size: 34px; font-weight: 800; }
.entry-pass b { display: block; overflow-wrap: anywhere; font-size: 19px; letter-spacing: -.03em; line-height: 1.25; }
.entry-pass.is-empty b { font-size: 16px; }
.entry-pass small { display: block; margin-top: 1px; color: #7b5a69; font-size: 13px; word-break: keep-all; }
.entry-pass p { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.entry-pass p span { display: inline-flex; align-items: center; gap: 3px; padding: 2px 9px; border-radius: 99px; background: #41283d; color: #fff4e2; font-size: 12px; font-weight: 700; }
.entry-pass p span + span { background: #f9dfb0; color: #5b3a14; }
.entry-pass p .icon { width: 14px; height: 14px; }

.entry-screen #dialog [data-form="link-use"] input { text-align: center; font-size: 26px; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; }
.entry-screen #dialog [data-form="link-use"] input::placeholder { font-size: 15px; font-weight: 500; letter-spacing: 0; }

@container aja-screen (min-width: 581px) {
  .aja-opening-room { background-size: cover; background-position: center; }
}
@container aja-screen (max-width: 580px) {
  .aja-opening { min-height: 540px; }
  .aja-opening-room { height: var(--aja-bedroom-height, 100%); background-position: 56% 74%; mask-image: linear-gradient(to bottom, #000 calc(100% - var(--aja-bedroom-feather, 0px)), transparent); }
  .aja-shell[data-surface="login"] .aja-opening-room { height: 268px; --aja-bedroom-feather: 40px; }
  .aja-opening-title { top: clamp(22px, 8.5cqw, 33px); left: 9%; font-size: clamp(38px, 12.25cqw, 49px); }
  .aja-login { min-height: 540px; grid-template-columns: 1fr; grid-template-rows: 218px minmax(0, 1fr); }
  .aja-cover { min-height: 218px; }
  .aja-signin { padding: 22px 16px 76px; }
  .entry-tools { left: 10px; bottom: 10px; }
  .aja-opening-skip { padding-inline: 8px; font-size: 11px; }
  .aja-opening-skip { right: 10px; bottom: 10px; }
}
@media (max-width: 650px) {
  .entry-screen main { padding: 0; }
}
/* 가로로 든 휴대폰처럼 낮은 화면 */
@media (max-height: 520px) and (min-width: 581px) {
  .aja-opening-title { top: 36%; font-size: clamp(40px, 8cqw, 72px); }
  .aja-signin { align-items: center; padding: 10px 16px; }
  .aja-form { gap: 9px; width: min(100%, 320px); padding: 16px 18px 10px; border-radius: 18px; }
  .aja-form h1 { font-size: 20px; }
  .entry-primary { min-height: 48px; font-size: 16px; }
  .entry-second, .entry-link { min-height: 44px; }
  .entry-pass-body { padding: 8px 11px; }
  .entry-pass-photo, .entry-pass-blank { width: 62px; height: 62px; }
}
