/* Rpicker — 반응형 스틱 크기, 장면 배치, 초점·활성 상태 */
:root {
  --bg: #120f24;
  --bg2: #1b1733;
  --panel: rgba(28, 24, 52, 0.86);
  --line: rgba(255, 255, 255, 0.09);
  --text: #f4f1ff;
  --muted: #a9a3c7;
  --pink: #ff6fa5;
  --pink2: #ff9dc2;
  --mint: #7cf0c0;
  --sky: #7cc7ff;
  --gold: #ffcf6b;
  --danger: #ff5d73;
  --r: 16px;
  --joy: 94px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}
@media (min-width: 768px) {
  :root { --joy: 104px; }
}
[hidden] { display: none !important; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); letter-spacing: -0.01em; }
body { overscroll-behavior: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, textarea, select { font: inherit; color: var(--text); }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }

#app { display: grid; grid-template-rows: 52px 1fr calc(60px + var(--safe-b)); height: 100dvh; height: 100vh; height: 100dvh; }

/* 상단 화면명 */
.topbar { display: flex; align-items: center; gap: 12px; padding: 0 14px; background: linear-gradient(180deg, #1a1534, #151129); border-bottom: 1px solid var(--line); z-index: 5; }
.brand { display: flex; align-items: center; gap: 7px; font-size: 16px; }
.brand .logo { width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(135deg, var(--pink), #ff9a6b); font-size: 14px; box-shadow: 0 4px 16px rgba(255, 111, 165, 0.45); }
.topbar h1 { flex: 1; margin: 0; font-size: 15px; font-weight: 700; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.net { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); padding: 5px 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.06); white-space: nowrap; }
.net i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.net.on i { background: var(--mint); box-shadow: 0 0 8px var(--mint); }
.net.off i { background: #b7a4ff; }
.net.wait i { animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0.3; } }
@media (max-width: 420px) { .brand b { display: none; } }

main { position: relative; min-height: 0; overflow: hidden; }

/* 하단 보조 탐색 */
.bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); background: #151129; border-top: 1px solid var(--line); padding-bottom: var(--safe-b); z-index: 5; }
.bottom-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; color: var(--muted); font-weight: 600; }
.bottom-nav button span { font-size: 19px; filter: grayscale(0.7); transition: 0.2s; }
.bottom-nav button.on { color: var(--text); }
.bottom-nav button.on span { filter: none; transform: translateY(-1px) scale(1.08); }

/* 공통 3D 장면 */
.slot { position: absolute; inset: 0; }
.scene { position: absolute; inset: 0; overflow: hidden; background: #0b0a18; outline: none; }
.scene:focus-visible { box-shadow: inset 0 0 0 2px var(--mint); }
.scene-canvas { position: absolute; inset: 0; display: block; touch-action: none; user-select: none; -webkit-user-select: none; }

/* 조이스틱 (RP-MOVE-01) */
.joy { position: absolute; left: 16px; bottom: calc(16px + var(--safe-scene, 0px)); width: var(--joy); height: var(--joy); border-radius: 50%; touch-action: none; user-select: none; -webkit-user-select: none; z-index: 3; --joy-strength: 0; }
.joy-ring { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0 30%, rgba(255, 255, 255, 0.12) 31% 31.6%, rgba(255, 255, 255, 0.04) 32%), rgba(20, 16, 40, 0.42); border: 1.5px solid rgba(255, 255, 255, 0.28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: border-color 0.15s, box-shadow 0.15s; }
.joy.active .joy-ring { border-color: rgba(124, 240, 192, calc(0.35 + var(--joy-strength) * 0.65)); box-shadow: 0 0 calc(var(--joy-strength) * 22px) rgba(124, 240, 192, 0.45); }
.joy-knob { position: absolute; left: 50%; top: 50%; width: 42%; height: 42%; border-radius: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle at 35% 30%, #fff, #d9d2ff 60%, #a99de6); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); pointer-events: none; transition: transform 0.12s ease-out; }
.joy.active .joy-knob { transition: none; background: radial-gradient(circle at 35% 30%, #fff, #c6ffe9 60%, #7cf0c0); }
.joy.disabled { opacity: 0.35; }

.cam-ctrl { position: absolute; right: 14px; bottom: calc(16px + var(--safe-scene, 0px)); display: flex; flex-direction: column; gap: 8px; z-index: 3; }
.cam-ctrl button { width: 40px; height: 40px; border-radius: 12px; background: rgba(20, 16, 40, 0.55); border: 1px solid rgba(255, 255, 255, 0.18); font-size: 18px; font-weight: 700; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); touch-action: manipulation; }
.cam-ctrl button:active { background: rgba(124, 240, 192, 0.25); }

.act-btn { position: absolute; left: 50%; bottom: calc(26px + var(--safe-scene, 0px)); transform: translateX(-50%); z-index: 3; padding: 12px 20px; border-radius: 99px; font-weight: 800; font-size: 14px; background: linear-gradient(135deg, var(--pink), #ff8f7a); box-shadow: 0 8px 24px rgba(255, 111, 165, 0.45); white-space: nowrap; max-width: calc(100% - 2 * (var(--joy) + 34px)); overflow: hidden; text-overflow: ellipsis; animation: pop 0.25s ease-out; touch-action: manipulation; }
@media (max-width: 480px) { .act-btn { bottom: calc(var(--joy) + 30px); max-width: calc(100% - 100px); } }
@keyframes pop { from { transform: translateX(-50%) scale(0.85); opacity: 0; } }

.hint { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); font-size: 12px; color: rgba(255, 255, 255, 0.85); background: rgba(10, 8, 24, 0.55); padding: 6px 12px; border-radius: 99px; pointer-events: none; white-space: nowrap; animation: hint 0.4s 9s forwards; z-index: 2; }
.hint.gone { display: none; }
@keyframes hint { to { opacity: 0; } }
.scene-log { position: absolute; left: 12px; top: 46px; display: flex; flex-direction: column; gap: 4px; max-width: min(320px, 70%); pointer-events: none; z-index: 2; }
.scene-log div { font-size: 12.5px; padding: 6px 10px; background: rgba(10, 8, 24, 0.6); border-radius: 10px; transition: opacity 1s; line-height: 1.35; }
.scene-log div.fade { opacity: 0; }
.scene-log b { color: var(--pink2); margin-right: 4px; }

/* 라운지 */
.lounge { position: absolute; inset: 0; display: grid; grid-template-rows: 1fr auto; }
.lounge .slot { position: relative; }
.lounge-bar { display: flex; gap: 8px; padding: 8px 10px; background: #171330; border-top: 1px solid var(--line); align-items: center; }
.lounge-bar .chat-form { flex: 1; }
.emotes, .reacts { display: flex; gap: 2px; }
.emotes button, .reacts button { font-size: 19px; width: 34px; height: 34px; border-radius: 10px; transition: transform 0.12s; }
.emotes button:active, .reacts button:active { transform: scale(1.3); }
@media (max-width: 520px) { .lounge-bar { flex-direction: column-reverse; align-items: stretch; gap: 4px; } .emotes { justify-content: center; } }

.chat-form { display: flex; gap: 6px; }
.chat-form input { flex: 1; min-width: 0; height: 40px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.06); font-size: 16px; }
.chat-form input:focus { outline: none; border-color: var(--pink); background: rgba(255, 255, 255, 0.09); }

/* 1:1·그룹 룸: 3D와 채팅 나란히, 좁은 화면은 아래로 */
.room { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr minmax(320px, 380px); }
.room-scene { position: relative; min-height: 0; }
.panel { display: flex; flex-direction: column; min-height: 0; background: var(--bg2); border-left: 1px solid var(--line); padding: 10px; gap: 8px; }
@media (max-width: 820px) {
  .room { grid-template-columns: 1fr; grid-template-rows: minmax(240px, 50%) 1fr; }
  .panel { border-left: 0; border-top: 1px solid var(--line); overflow-y: auto; }
  .panel .msgs { flex: 1 0 150px; }
  .mc p { margin: 6px 0; font-size: 13px; }
}
.partner { display: flex; align-items: center; gap: 10px; }
.partner > div:not(.pc-av) { flex: 1; display: flex; flex-direction: column; }
.partner small { color: var(--muted); font-size: 12px; }
.icon { width: 36px; height: 36px; border-radius: 10px; background: rgba(255, 255, 255, 0.06); font-size: 18px; }
.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.tools button { padding: 8px 4px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); font-size: 12.5px; font-weight: 700; border: 1px solid var(--line); }
.tools button:active { background: rgba(255, 111, 165, 0.2); }
.msgs { flex: 1; min-height: 80px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 4px 2px; overscroll-behavior: contain; }
.msg { max-width: 82%; align-self: flex-start; }
.msg .who { font-size: 11px; color: var(--muted); margin-left: 4px; }
.msg p { margin: 2px 0 0; padding: 8px 12px; border-radius: 4px 14px 14px 14px; background: rgba(255, 255, 255, 0.08); font-size: 14px; line-height: 1.45; word-break: break-word; }
.msg.me { align-self: flex-end; text-align: right; }
.msg.me p { background: linear-gradient(135deg, var(--pink), #ff8f9e); border-radius: 14px 4px 14px 14px; text-align: left; }
.msg.sys { align-self: center; max-width: 94%; font-size: 12px; color: var(--muted); background: rgba(255, 255, 255, 0.04); padding: 6px 12px; border-radius: 99px; text-align: center; }
.reacts { justify-content: space-between; }

.qcard { padding: 12px 14px; border-radius: 14px; background: linear-gradient(135deg, #3a2a5e, #4b2d55); border: 1px solid rgba(255, 207, 107, 0.35); }
.qcard small { color: var(--gold); font-weight: 700; font-size: 11.5px; }
.qcard p { margin: 4px 0 0; font-weight: 700; font-size: 15px; line-height: 1.4; }
.qcard.pop { animation: card 0.45s cubic-bezier(0.2, 1.4, 0.4, 1); }
@keyframes card { from { transform: rotateX(70deg) scale(0.9); opacity: 0; } }

/* 그룹 MC */
.mc { padding: 12px; border-radius: 14px; background: linear-gradient(135deg, rgba(255, 138, 61, 0.18), rgba(255, 111, 165, 0.12)); border: 1px solid rgba(255, 138, 61, 0.3); }
.mc-head { display: flex; justify-content: space-between; align-items: center; }
.stage-pill { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); }
.stage-pill[data-stage="signal"] { background: rgba(255, 111, 165, 0.35); }
.stage-pill[data-stage="final_choice"] { background: rgba(255, 207, 107, 0.4); color: #2b1d00; }
.timer { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--gold); }
.mc p { margin: 8px 0; font-size: 13.5px; line-height: 1.45; }
.mc-btns { display: flex; gap: 6px; }
.members { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mem { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); border-left: 3px solid var(--sky); min-width: 0; }
.mem.f { border-left-color: var(--pink); }
.mem.me { background: rgba(124, 240, 192, 0.1); }
.mem .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.mname { flex: 1; text-align: left; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai, .tag.ai { font-style: normal; font-size: 10px; padding: 1px 5px; border-radius: 6px; background: var(--gold); color: #2b1d00; font-weight: 800; vertical-align: middle; }
.tag { font-size: 11px; padding: 2px 7px; border-radius: 7px; vertical-align: middle; }
.tag.live { background: var(--mint); color: #062a1c; font-weight: 800; }

/* 버튼·칩 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 46px; padding: 0 20px; border-radius: 14px; font-weight: 800; font-size: 15px; background: linear-gradient(135deg, var(--pink), #ff8f7a); box-shadow: 0 6px 20px rgba(255, 111, 165, 0.3); transition: transform 0.1s, opacity 0.2s; }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.4; box-shadow: none; }
.btn.sm { height: 38px; padding: 0 14px; font-size: 13.5px; border-radius: 12px; }
.btn.ghost { background: rgba(255, 255, 255, 0.07); box-shadow: none; border: 1px solid var(--line); }
.btn.danger { background: var(--danger); }
.btn.ghost.danger { background: rgba(255, 93, 115, 0.12); color: #ff9aa8; }
.link { color: var(--muted); text-decoration: underline; font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.chips.col { flex-direction: column; }
.chips.col label { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); }
.chip { padding: 8px 12px; border-radius: 99px; font-size: 13px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); font-weight: 600; text-align: left; }
.chip.on { background: rgba(255, 111, 165, 0.22); border-color: var(--pink); }
.chip.sm { padding: 4px 8px; font-size: 11.5px; flex: none; }

/* 모달 */
#modal-root { position: fixed; inset: 0; pointer-events: none; z-index: 20; }
.modal-wrap { position: absolute; inset: 0; display: grid; place-items: end center; background: rgba(6, 4, 16, 0); pointer-events: auto; transition: background 0.2s; padding: 12px; padding-bottom: calc(12px + var(--safe-b)); }
.modal-wrap.on { background: rgba(6, 4, 16, 0.62); }
@media (min-width: 640px) { .modal-wrap { place-items: center; } }
.modal { position: relative; width: min(440px, 100%); max-height: calc(100dvh - 40px); overflow-y: auto; background: linear-gradient(180deg, #241f45, #1b1736); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 22px; padding: 22px 18px 18px; transform: translateY(30px); opacity: 0; transition: 0.22s cubic-bezier(0.2, 0.9, 0.3, 1); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.modal.wide { width: min(480px, 100%); }
.modal-wrap.on .modal { transform: none; opacity: 1; }
.modal h2, .modal h3 { margin: 0 0 8px; }
.modal h3 { font-size: 18px; }
.modal .x { position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; border-radius: 10px; color: var(--muted); }
.modal input:not([type=checkbox]):not([type=radio]), .modal textarea, .form input, .form textarea, .form select { width: 100%; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.06); font-size: 16px; }
.modal textarea, .form textarea { min-height: 64px; resize: vertical; margin-top: 6px; }
.row { display: flex; gap: 8px; margin-top: 14px; }
.row .btn { flex: 1; }
.row.subtle { justify-content: center; gap: 18px; margin-top: 10px; }
.col-btns { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.muted { color: var(--muted); font-size: 14px; line-height: 1.5; }
.small { font-size: 12px; }
.center { text-align: center; }
.label { font-size: 12.5px; color: var(--muted); font-weight: 700; margin: 12px 0 6px; }
.themes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.theme { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); border: 1.5px solid var(--line); font-weight: 700; font-size: 13.5px; }
.theme span { font-size: 26px; }
.theme.on { border-color: var(--pink); background: rgba(255, 111, 165, 0.16); }

.pcard, .incoming, .result, .waiting { text-align: center; }
.pc-av { width: 72px; height: 72px; border-radius: 24px; margin: 0 auto 10px; display: grid; place-items: center; font-size: 30px; font-weight: 800; background: linear-gradient(135deg, var(--c, var(--pink)), #2b2340); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); }
.pc-av.sm { width: 40px; height: 40px; border-radius: 14px; font-size: 17px; margin: 0; }
.pc-av.xl { width: 140px; height: 140px; font-size: 60px; border-radius: 40px; margin: 30px auto; }
dl.pf { display: grid; gap: 6px; margin: 12px 0 6px; text-align: left; }
dl.pf div { display: flex; gap: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.05); }
dl.pf dt { width: 44px; color: var(--muted); font-size: 13px; flex: none; }
dl.pf dd { margin: 0; font-size: 14px; font-weight: 600; }
.quote { font-size: 16px; font-weight: 700; color: var(--pink2); }
.bar { height: 5px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); overflow: hidden; margin: 14px 0 4px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--pink), var(--gold)); animation: shrink linear forwards; transform-origin: left; }
@keyframes shrink { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.pulse { font-size: 44px; animation: beat 1s infinite; }
@keyframes beat { 50% { transform: scale(1.15); } }
.big { font-size: 52px; }
.ticket-preview { text-align: center; padding: 16px; border-radius: 16px; border: 1.5px dashed rgba(255, 207, 107, 0.5); }
.ticket-preview small { color: var(--gold); font-weight: 800; }

.onb { text-align: center; }
.onb .hero { font-size: 54px; }
.onb h2 { font-size: 22px; }
.feat { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 6px; text-align: left; }
.feat li { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); font-size: 14px; font-weight: 600; }
.check { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 12px; border-radius: 12px; background: rgba(124, 240, 192, 0.08); font-weight: 700; font-size: 14px; }
.check input { width: 20px; height: 20px; accent-color: var(--pink); }
.rooms { display: grid; gap: 8px; margin-top: 12px; }
.room-item { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); text-align: left; }
.room-item small { color: var(--muted); }
.room-item:active { background: rgba(255, 138, 61, 0.15); }

/* 페이지 (티켓·프로필) */
.page { position: absolute; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.page-in { max-width: 720px; margin: 0 auto; padding: 16px 16px 40px; }
.ticket { display: flex; margin: 12px 0; border-radius: 18px; overflow: hidden; background: linear-gradient(135deg, #3a2a5e, #2b2350); border: 1px solid rgba(255, 255, 255, 0.1); }
.ticket .tk-l { flex: 1; padding: 16px; border-right: 2px dashed rgba(255, 255, 255, 0.15); }
.ticket .tk-l small { color: var(--gold); font-weight: 800; }
.ticket h3 { margin: 6px 0 2px; }
.ticket p { margin: 2px 0; }
.ticket .tk-r { width: 92px; display: grid; place-items: center; }
.ticket.cancelled { opacity: 0.5; filter: grayscale(0.8); }
.empty { text-align: center; padding: 50px 10px; }
.profile { display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: start; }
.av-preview { position: sticky; top: 10px; height: 320px; border-radius: 22px; background: radial-gradient(circle at 50% 30%, #3b2f6b, #1a1533); border: 1px solid var(--line); overflow: hidden; }
.av-preview canvas { display: block; width: 100% !important; height: 100% !important; }
@media (max-width: 680px) { .profile { grid-template-columns: 1fr; } .av-preview { position: relative; height: 240px; } }
.form h3 { margin: 20px 0 8px; font-size: 16px; }
.form h3:first-child { margin-top: 0; }
.form label { display: block; font-size: 12.5px; color: var(--muted); font-weight: 700; margin: 10px 0 6px; }
.sw { display: flex; flex-wrap: wrap; gap: 8px; }
.sw button { width: 32px; height: 32px; border-radius: 50%; background: var(--c); border: 2px solid rgba(255, 255, 255, 0.15); }
.sw button.on { border-color: #fff; box-shadow: 0 0 0 3px var(--pink); }
.vrow { display: grid; grid-template-columns: 64px 1fr 92px; gap: 8px; align-items: center; margin: 6px 0; }
.vrow label { margin: 0; }
.vrow.col { grid-template-columns: 1fr 92px; }
.vrow.col label { grid-column: 1 / -1; }
.form select { padding: 11px 6px; }
select option { background: #241f45; }

#toast { position: fixed; left: 50%; top: 64px; transform: translate(-50%, -20px); opacity: 0; z-index: 30; padding: 10px 16px; border-radius: 99px; background: rgba(255, 255, 255, 0.95); color: #1d1a2b; font-weight: 700; font-size: 13.5px; transition: 0.25s; pointer-events: none; max-width: 92vw; text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 40; overflow: hidden; }
.confetti i { position: absolute; top: -10px; left: var(--x); width: 8px; height: 14px; background: var(--c); border-radius: 2px; animation: fall var(--d) ease-in forwards; animation-duration: calc(var(--d) + 0.8s); }
@keyframes fall { to { transform: translateY(105vh) rotate(720deg); } }
.is-flat .hint::after { content: " · 2D 모드"; }
@media (prefers-reduced-motion: reduce) { * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }

/* 1.2.0 출시: 공지 띠 · 설정 · 플러스 */
.notice { position: fixed; left: 50%; top: 58px; transform: translateX(-50%); z-index: 6; width: min(680px, calc(100% - 20px)); display: flex; align-items: center; gap: 8px; padding: 9px 10px 9px 14px; border-radius: 14px; background: rgba(255, 207, 107, 0.16); border: 1px solid rgba(255, 207, 107, 0.4); font-size: 13.5px; font-weight: 600; backdrop-filter: blur(8px); }
.notice span { flex: 1; }
.notice .x { width: 28px; height: 28px; border-radius: 8px; color: var(--muted); flex: none; }
.modal select { width: 100%; padding: 11px 8px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.06); font-size: 16px; margin-bottom: 10px; }
.onb .check { margin-top: 4px; text-align: left; }
.onb .check a, .muted a { color: var(--pink2); }
.tag.plus { background: rgba(255, 207, 107, 0.2); color: var(--gold); font-weight: 800; }
.set-sec { padding: 14px; margin: 0 0 10px; border-radius: 16px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); display: grid; gap: 8px; }
.set-sec > b { font-size: 15px; }
.set-sec .muted { margin: 0; }
.set-sec.plus { background: linear-gradient(135deg, rgba(255, 111, 165, 0.14), rgba(255, 207, 107, 0.1)); border-color: rgba(255, 207, 107, 0.35); }
.perks { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.plan { display: grid; gap: 2px; padding: 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); text-align: left; cursor: pointer; position: relative; }
.plan span { color: var(--gold); font-weight: 800; }
.plan input { position: absolute; right: 10px; top: 12px; accent-color: var(--pink); }
.plan:has(input:checked) { border-color: var(--pink); background: rgba(255, 111, 165, 0.16); }
.row2 { display: flex; gap: 8px; }
.row2 input { flex: 1; min-width: 0; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.06); font-size: 16px; }
.set-sec .check { justify-content: flex-start; background: none; padding: 0; font-weight: 600; }
.code { font-size: 16px; letter-spacing: 0.08em; color: var(--text); }
.links { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 14px; }
.links .chip { text-decoration: none; color: var(--text); }
.about { text-align: center; color: var(--muted); font-size: 13px; display: grid; gap: 4px; padding: 10px 0 20px; user-select: none; -webkit-user-select: none; }
@media (max-width: 380px) { .bottom-nav button { font-size: 10px; } }
