@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,700;12..96,800&family=Manrope:wght@400;500;600;700;800&display=swap');

:root { color-scheme: dark; --bg: #281440; --ink: #fff8ef; --orange: #ff914d; --muted: #c7b5d9; --display: 'Bricolage Grotesque', 'Arial Rounded MT Bold', sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); background-image: radial-gradient(circle, #ffffff0b 1px, transparent 1px), radial-gradient(ellipse at 85% 20%, #7542ac40, transparent 65%); background-size: 24px 24px, 100% 100%; color: var(--ink); font-family: 'Manrope', Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #ffc196; outline-offset: 4px; }
[hidden] { display: none !important; }
.mobile-shell { width: min(100%, 460px); min-height: 100svh; margin-inline: auto; padding: max(22px, env(safe-area-inset-top)) 26px max(22px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
.mobile-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.mobile-brand { display: inline-flex; align-items: center; font: 800 43px/1 var(--display); letter-spacing: -2.5px; }
.mobile-brand > span { font-size: 28px; color: var(--orange); margin-left: 5px; letter-spacing: 0; }
.mobile-help-button { width: 44px; height: 44px; display: grid; place-items: center; background: #ffffff06; border: 1px solid #ffffff30; border-radius: 50%; color: var(--ink); font: 800 21px var(--display); }
main { flex: 1; }
.mobile-intro { margin: 25px 0 24px; }
.intro-avatars { position: relative; display: inline-flex; align-items: center; padding-right: 25px; margin-bottom: 17px; }
.intro-avatars > svg { width: 44px; height: 44px; border: 3px solid #281440; border-radius: 50%; transform: rotate(-9deg); }
.intro-avatars > svg + svg { margin-left: -10px; transform: rotate(7deg); }
.intro-avatars > svg:nth-child(3) { transform: rotate(-5deg); }
.intro-avatars > span { position: absolute; right: 0; top: -8px; color: var(--orange); font-size: 23px; transform: rotate(12deg); }
h1, h2, strong { font-family: var(--display); }
h1 { font-weight: 800; font-size: clamp(38px, 10vw, 47px); line-height: 1.06; letter-spacing: -1.5px; margin: 0; }
h1 > span { color: var(--orange); }
.mobile-intro > p { font-size: 14px; line-height: 1.7; color: var(--muted); margin: 12px 0 0; }
.join-form { display: grid; gap: 22px; }
.field-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.field-heading > label, .avatar-field legend { font-size: 14px; font-weight: 800; }
.field-heading > span { font-size: 10px; color: var(--muted); }
.code-input-wrap { position: relative; }
.code-input-wrap > span { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); font: 700 25px var(--display); color: #9c819f; pointer-events: none; }
.code-input-wrap > input { width: 100%; height: 70px; background: #fff6e9; border: 2px solid #d6c2df; border-bottom: 5px solid #c4a3cf; border-radius: 14px; padding: 9px 17px 9px 60px; color: #281440; font: 800 36px var(--display); letter-spacing: .32em; text-align: center; caret-color: #a34820; }
.code-input-wrap > input::placeholder { color: #a895b0; opacity: 1; }
.code-input-wrap > input:focus { background: #fffaf2; border-color: var(--orange); outline-color: #ff914d80; }
.nickname-input { width: 100%; height: 56px; padding: 14px 17px; border: 1px solid #ffffff35; border-radius: 12px; background: #ffffff08; color: var(--ink); font-size: 17px; }
.nickname-input::placeholder { color: #b8a1cc; }
.nickname-input:focus { background: #ffffff0d; border-color: var(--orange); }
input[aria-invalid='true'] { border-color: #ffaf99; }
.field-error { font-size: 12px; line-height: 1.6; color: #ffc4b3; margin: 9px 0 0; }
.avatar-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.avatar-field legend { padding: 0; margin-bottom: 14px; }
.avatar-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.avatar-option { position: relative; display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 9px 3px 8px; cursor: pointer; border-radius: 13px; border: 1px solid transparent; }
.avatar-option > input { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; opacity: 0; }
.avatar-portrait { position: relative; display: block; width: 59px; height: 59px; border: 3px solid transparent; border-radius: 50%; padding: 1px; transition: transform .18s, border-color .18s; }
.avatar-portrait svg { width: 100%; height: 100%; display: block; }
.avatar-check { position: absolute; right: -4px; bottom: -3px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #281440; background: var(--orange); color: #281440; display: none; place-items: center; font-size: 11px; font-weight: 800; }
.avatar-name { font-size: 10px; color: var(--muted); }
.avatar-option:has(input:checked) { background: #ff914d12; border-color: #ff914d45; }
.avatar-option > input:checked + .avatar-portrait { border-color: var(--orange); transform: rotate(-6deg); }
.avatar-option > input:checked + .avatar-portrait .avatar-check { display: grid; }
.avatar-option:has(input:checked) .avatar-name { color: #ffc196; }
.avatar-option:has(input:focus-visible) { outline: 3px solid #ffc196; outline-offset: 3px; }
.mobile-primary, .mobile-secondary { width: 100%; min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 2px solid #170d26; border-radius: 14px; padding: 15px 21px; background: var(--orange); color: #281440; box-shadow: 0 5px 0 #170d26; font: 800 24px/1.1 var(--display); transition: transform .18s, box-shadow .18s; }
.mobile-primary:hover { background: #ffa568; }
.mobile-primary:active, .mobile-secondary:active { transform: translateY(3px); box-shadow: 0 2px 0 #170d26; }
.mobile-primary > span { font-size: 28px; }
.demo-room-shortcut { display: block; margin: 16px auto 0; padding: 9px 12px; min-height: 44px; border: 0; background: none; color: var(--muted); font-size: 12px; }
.demo-room-shortcut > strong { color: #ffc196; font-size: 15px; margin-left: 4px; }
.mobile-footer { text-align: center; padding-top: 17px; }
.mobile-footer > span { display: inline-flex; align-items: center; gap: 6px; font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: #cfb7e0; }
.mobile-footer > span::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--orange); }
.mobile-footer > p { margin: 7px 0 0; color: #b49ac8; font-size: 10px; line-height: 1.5; }
.joined-screen { padding-top: 30px; text-align: center; }
.room-ticket { display: inline-flex; align-items: center; gap: 13px; padding: 10px 14px; border: 1px solid #ffffff25; border-radius: 10px; background: #ffffff06; }
.room-ticket > span:first-child { font-size: 9px; font-weight: 800; letter-spacing: 1.5px; color: var(--muted); }
.room-ticket > strong { color: #ffc196; font-size: 23px; letter-spacing: 3px; }
.ticket-star { color: var(--orange); font-size: 19px; margin-left: 5px; }
.joined-avatar { position: relative; width: 142px; height: 142px; margin: 44px auto 29px; border: 1px solid #b995ee60; border-radius: 50%; padding: 12px; box-shadow: 0 0 0 13px #b995ee0d, 0 0 0 27px #b995ee06; }
.joined-avatar svg { display: block; width: 100%; height: 100%; }
.joined-avatar > span { position: absolute; right: 6px; bottom: 10px; width: 35px; height: 35px; display: grid; place-items: center; border: 3px solid #281440; border-radius: 50%; background: var(--orange); color: #281440; font-size: 20px; font-weight: 800; }
.joined-screen h1 { font-size: 43px; line-height: 1.14; overflow-wrap: anywhere; }
.joined-screen h1:focus { outline: none; }
.joined-description { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 14px 0 30px; }
.waiting-message { display: flex; align-items: center; gap: 16px; border: 1px solid #ffffff25; background: #ffffff06; border-radius: 16px; padding: 21px; text-align: left; }
.waiting-symbol { color: var(--orange); font-size: 35px; }
.waiting-message > div { display: grid; gap: 7px; }
.waiting-message strong { font-size: 23px; }
.waiting-message > div > span { color: var(--muted); font-size: 12px; }
.mobile-secondary { margin-top: 24px; font-size: 21px; background: #4a2c64; border: 1px solid #ffffff35; color: var(--ink); box-shadow: 0 4px 0 #170d26; }
.joined-quiz-link { margin-top: 24px; font-size: 23px; }
.joined-quiz-link + .mobile-secondary { margin-top: 16px; }
.mobile-help-dialog { width: min(390px, calc(100% - 32px)); padding: 25px; color: var(--ink); background: #351e4d; border: 1px solid #b995ee60; border-radius: 22px; box-shadow: 0 25px 60px #0e061a90; max-height: calc(100svh - 40px); overflow: auto; }
.mobile-help-dialog::backdrop { background: #160a24dc; backdrop-filter: blur(7px); }
.mobile-help-heading { display: flex; align-items: center; gap: 15px; justify-content: space-between; }
.mobile-help-heading h2 { font-size: 29px; line-height: 1.1; letter-spacing: -.6px; margin: 0; }
.mobile-help-heading button { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border: 1px solid #ffffff30; border-radius: 11px; background: #ffffff06; color: var(--ink); font-size: 19px; }
.mobile-help-dialog > img { display: block; width: 100%; height: auto; max-height: 180px; object-fit: contain; background: #ffc196; border-radius: 13px; margin-top: 22px; }
.mobile-help-dialog ol { padding-left: 23px; font-size: 14px; line-height: 1.8; }
.mobile-help-dialog li { margin-bottom: 9px; padding-left: 4px; }
.mobile-help-dialog > p { font-size: 12px; line-height: 1.7; color: var(--muted); margin-bottom: 0; }
.mobile-help-dialog > p > strong { color: #ffc196; }
@media (min-width: 700px) { .mobile-shell { min-height: 100svh; padding-top: 35px; padding-bottom: 30px; } .mobile-intro { margin-top: 35px; } }
@media (max-width: 360px) { .mobile-shell { padding-inline: 21px; } .avatar-options { gap: 7px; } .avatar-portrait { width: 55px; height: 55px; } .mobile-intro > p { font-size: 13px; } .mobile-primary { font-size: 23px; } }
@media (max-height: 760px) and (max-width: 699px) { .mobile-intro { margin-block: 24px 23px; } .intro-avatars { margin-bottom: 13px; } .join-form { gap: 19px; } .mobile-footer { padding-top: 19px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
