* { box-sizing: border-box; }
body { margin: 0; background: #0d0a1a; color: #fff; font-family: "Pretendard", system-ui, -apple-system, sans-serif; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; }
:focus-visible { outline: 2px solid #ff4fa3; outline-offset: 2px; }
.app { max-width: 480px; margin: 0 auto; min-height: 100vh; padding: 0 14px 110px; position: relative; }
.head { display: flex; justify-content: space-between; align-items: center; padding: 16px 0 10px; }
.logo { font-weight: 900; font-size: 24px; letter-spacing: -1px; }
.logo span { background: linear-gradient(90deg,#ff4fa3,#8b5cff); -webkit-background-clip: text; color: transparent; margin-left: 2px; }
.seg { display: flex; background: #1f1a33; border-radius: 99px; padding: 3px; }
.seg button { background: none; padding: 0 12px; min-height: 36px; border-radius: 99px; font-size: 14px; color: #aaa3c4; }
.seg button.on { background: #fff; color: #111; font-weight: 700; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.create { min-height: 100vh; display: flex; flex-direction: column; gap: 16px; padding-bottom: 24px; }
.radio-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 32px 0; }
.loading { display: flex; align-items: center; gap: 10px; padding: 24px; color: #aaa3c4; }
.spinner { width: 18px; height: 18px; border: 2px solid #3a3358; border-top-color: #ff4fa3; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { text-align: center; padding: 40px 16px; color: #aaa3c4; }
.empty-title { font-weight: 700; color: #fff; margin: 0 0 6px; }
.hint { margin: 0; font-size: 14px; color: #aaa3c4; }
.alert { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; }
.alert-error { background: #3a1426; color: #ffb3cf; }
.btn { min-height: 44px; padding: 0 16px; border-radius: 99px; font-weight: 700; background: linear-gradient(90deg,#ff4fa3,#8b5cff); }
.btn-secondary { background: #1f1a33; color: #fff; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chip { background: #1f1a33; border-radius: 99px; padding: 0 16px; min-height: 40px; white-space: nowrap; color: #cfc8e8; }
.chip.on { background: linear-gradient(90deg,#ff4fa3,#8b5cff); color: #fff; font-weight: 700; }
.count { color: #aaa3c4; font-size: 14px; margin: 14px 0 10px; }
.count b { color: #ff4fa3; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rcard { background: none; padding: 0; text-align: left; }
.thumb { aspect-ratio: 3/4; border-radius: 16px; position: relative; display: grid; place-items: center; overflow: hidden; }
.live { position: absolute; top: 8px; left: 8px; background: #ff2d55; font-size: 11px; font-weight: 800; padding: 3px 7px; border-radius: 6px; }
.kind { position: absolute; top: 8px; right: 8px; background: #0006; font-size: 11px; padding: 3px 7px; border-radius: 6px; }
.viewers { position: absolute; bottom: 8px; left: 8px; background: #0006; font-size: 12px; padding: 3px 8px; border-radius: 99px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: #fff3; border: 3px solid #fff; display: grid; place-items: center; font-size: 26px; font-weight: 800; }
.avatar.sm { width: 38px; height: 38px; font-size: 16px; border-width: 2px; }
.avatar.lg { width: 110px; height: 110px; font-size: 44px; }
.rinfo { padding: 8px 2px; }
.rtitle { font-weight: 700; font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rhost { font-size: 12px; color: #aaa3c4; margin-top: 3px; }
.none { text-align: center; color: #aaa3c4; padding: 60px 0; line-height: 1.7; }
.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; padding: 10px 14px max(8px, env(safe-area-inset-bottom)); background: linear-gradient(transparent,#0d0a1a 35%); }
.golive { width: 100%; min-height: 56px; border-radius: 18px; font-size: 18px; font-weight: 800; background: linear-gradient(90deg,#ff4fa3,#8b5cff); box-shadow: 0 8px 24px #ff4fa355; }
.topbar { display: flex; align-items: center; gap: 8px; padding: 14px 0; }
.topbar h1 { font-size: 20px; margin: 0; }
.noti-row { align-items: flex-start; }
.noti-test { background: none; border: 0; color: #ff7ab8; font-size: 13px; min-height: 44px; padding: 0; text-align: left; cursor: pointer; text-decoration: underline; }
.switch { flex: none; width: 52px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; position: relative; }
.switch i { position: absolute; top: 9px; left: 0; width: 52px; height: 28px; border-radius: 14px; background: #3a3354; transition: background .2s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch.on i { background: #ff4f9a; }
.switch.on i::after { transform: translateX(24px); }
.toast { position: fixed; top: max(12px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); width: calc(100% - 32px); max-width: 440px; z-index: 50; background: #241d3d; color: #fff; border: 1px solid #ff4f9a; border-radius: 14px; padding: 14px 16px; font-size: 14px; box-shadow: 0 8px 24px #0008; }
.my-menu { margin-top: 20px; }
.auth-form .input { background: #1f1a33; color: #fff; border: 1px solid #fff3; border-radius: 12px; padding: 0 14px; }
.back { background: #0004; width: 44px; height: 44px; border-radius: 50%; font-size: 28px; line-height: 1; }
.back.dark { background: #1f1a33; }
.label { color: #cfc8e8; font-weight: 700; margin: 22px 0 10px; }
.kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kopt { background: #1f1a33; border: 2px solid transparent; border-radius: 18px; padding: 22px 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.kopt small { color: #aaa3c4; font-size: 12px; }
.kopt.on { border-color: #ff4fa3; background: #2c1d3f; }
.kicon { font-size: 40px; }
.tin { width: 100%; font-size: 16px; padding: 14px; border-radius: 14px; border: 1px solid #332b52; background: #1f1a33; color: #fff; }
.go { margin-top: 28px; width: 100%; min-height: 56px; border-radius: 18px; font-weight: 800; font-size: 17px; background: linear-gradient(90deg,#ff4fa3,#8b5cff); }
.go:disabled { opacity: .4; cursor: default; }
.roomview { margin: 0 -14px; min-height: 100vh; padding: 14px; display: flex; flex-direction: column; }
.rv-top { display: flex; align-items: center; gap: 10px; }
.rv-top .live { position: static; margin-left: auto; }
.rv-host { display: flex; flex-direction: column; }
.rv-host small { color: #ddd; font-size: 12px; }
.rv-stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.rv-stage h2 { font-size: 18px; margin: 20px 10px; }
.cam-ph { font-size: 60px; width: 100%; aspect-ratio: 3/4; max-height: 50vh; border-radius: 20px; background: #0004; display: grid; place-content: center; }
.cam-ph p { font-size: 15px; margin: 6px 0 0; }
.pulse { border-radius: 50%; padding: 18px; animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 #ff4fa399; } 100% { box-shadow: 0 0 0 30px #ff4fa300; } }
.eq { display: flex; gap: 5px; height: 30px; align-items: end; margin-top: 18px; }
.eq i { width: 6px; background: #ff4fa3; border-radius: 3px; animation: eq 0.9s infinite alternate; }
.eq i:nth-child(2) { animation-delay: .2s; } .eq i:nth-child(3) { animation-delay: .4s; } .eq i:nth-child(4) { animation-delay: .1s; } .eq i:nth-child(5) { animation-delay: .3s; }
@keyframes eq { from { height: 6px; } to { height: 30px; } }
.chat { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; margin-bottom: 10px; }
.msg { background: #0006; padding: 6px 12px; border-radius: 12px; font-size: 14px; }
.rv-bar { display: flex; gap: 6px; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
.chat-in { flex: 1; min-width: 0; font-size: 16px; padding: 0 14px; min-height: 46px; border-radius: 99px; border: 0; background: #0006; color: #fff; }
.send, .heart { min-height: 46px; padding: 0 14px; border-radius: 99px; background: #ff4fa3; font-weight: 700; }
.heart { background: #fff2; }
.auth-title { margin: 8px 0 0; font-size: 22px; }
.auth-form { display: flex; flex-direction: column; gap: 10px; }
.auth-form .input { font-size: 16px; min-height: 48px; }
.auth-go { width: 100%; min-height: 48px; border: 0; cursor: pointer; }
.auth-switch { display: block; text-align: center; background: none; border: 0; color: #ff7ab8; min-height: 44px; font-size: 14px; cursor: pointer; text-decoration: underline; width: 100%; }
.tabbar2 { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; display: flex; background: #0d0a1a; border-top: 1px solid #fff2; padding-bottom: max(8px, env(safe-area-inset-bottom)); z-index: 20; }
.tab { flex: 1; min-height: 56px; background: none; border: 0; color: #9b93b5; font-size: 11px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.tab.on { color: #fff; font-weight: 700; }
.tab .ti { font-size: 20px; line-height: 1; }
.tab.go .ti { background: linear-gradient(135deg,#ff3d9a,#8b5cf6); color: #fff; width: 40px; height: 32px; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.plist { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.prow { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 12px; border-radius: 14px; background: #fff1; border: 0; color: inherit; text-align: left; width: 100%; }
.pinfo { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.pinfo small { color: #b8b0d0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.livepill { background: #ff3d6a; color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 10px; }
.postbox { display: flex; gap: 8px; margin-bottom: 14px; }
.postbox .input { flex: 1; }
.post { padding: 12px; border-radius: 14px; background: #fff1; }
.post p { margin: 4px 0 0; }
.report-btn { min-height: 44px; padding: 0 12px; border-radius: 99px; background: #0006; color: #fff; font-size: 14px; font-weight: 700; }
.tiles { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 44px; padding: 8px 12px; border-radius: 14px; background: #0005; color: #fff; font-size: 13px; }
.tile.me { outline: 2px solid #ff4fa3; }
.tile small { color: #ffd76a; }
.joinrow { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.joinbtn, .mbtn { flex: 1; min-height: 44px; padding: 0 12px; border-radius: 99px; background: #fff2; color: #fff; font-weight: 700; }
.joinbtn { background: linear-gradient(90deg, #ff4fa3, #8a5cff); }
.mbtn.on { background: #ff4fa3; }
.roomview { position: relative; }
.sheet-bg { position: absolute; inset: 0; background: #0009; display: flex; align-items: flex-end; z-index: 10; }
.sheet { width: 100%; background: #1c1530; border-radius: 22px 22px 0 0; padding: 18px 16px max(16px, env(safe-area-inset-bottom)); color: #fff; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 16px; }
.coins { background: #fff2; padding: 6px 12px; border-radius: 99px; font-weight: 700; }
.gifts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gift { min-height: 88px; border-radius: 16px; background: #fff1; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 14px; }
.gift .gi { font-size: 28px; }
.gift small { color: #ffd76a; }
.gift:disabled { opacity: .35; }
.note { font-size: 12px; color: #bbb; margin: 12px 0; text-align: center; }
.sheet-close { width: 100%; min-height: 46px; border-radius: 99px; background: #fff2; color: #fff; font-weight: 700; }
.gift-banner { position: absolute; top: 80px; left: 50%; transform: translateX(-50%); max-width: 90%; background: linear-gradient(90deg, #ff4fa3, #8a5cff); padding: 10px 16px; border-radius: 99px; font-weight: 700; font-size: 14px; text-align: center; z-index: 11; }
