:root { color-scheme: dark; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif; }
    * { box-sizing: border-box; }
    body { margin: 0; min-height: 100vh; color: #f7f8fc; background: radial-gradient(ellipse at 12% 12%, #344c83 0, transparent 38%), radial-gradient(ellipse at 88% 24%, #55417a 0, transparent 35%), linear-gradient(150deg,#111a2a,#171725 58%,#242238); display: grid; place-items: center; padding: 36px 18px; overflow-x: hidden; }
    body::before, body::after { content:""; position: fixed; width: 270px; height:270px; border-radius:50%; filter:blur(80px); opacity:.22; pointer-events:none; }
    body::before { background:#5da9ff; left:-110px; bottom:8%; } body::after { background:#d985df; right:-120px; top:10%; }
    .app { width:min(100%,700px); position:relative; }
    .topline { display:flex; justify-content:space-between; align-items:center; margin:0 4px 18px; color:#d6d9e5; font-size:12px; letter-spacing:.14em; text-transform:uppercase; }
    .brand { display:flex; gap:9px; align-items:center; font-weight:650; } .brand-icon { width:28px;height:28px;border-radius:9px;display:grid;place-items:center;background:#ffffff18;border:1px solid #ffffff24;font-size:15px; }
    .live { font-size:11px; letter-spacing:.04em; color:#c7e8d7; background:#a4edc31c; border:1px solid #a4edc332; border-radius:30px;padding:7px 10px; }
    .panel { border:1px solid #ffffff28; background:linear-gradient(145deg,#ffffff19,#ffffff08); backdrop-filter:blur(28px); -webkit-backdrop-filter:blur(28px); box-shadow:0 28px 80px #0509146e, inset 0 1px #ffffff20; border-radius:30px; padding:clamp(24px,6vw,44px); }
    header { text-align:center; padding:4px 0 24px; }
    .eyebrow { color:#c8c5fa; font-size:11px; letter-spacing:.2em; font-weight:700; }
    h1 { margin:13px 0 10px; font-size:clamp(30px,7vw,43px); letter-spacing:-.055em; line-height:1.14; }
    .subtitle { color:#c0c4d2; margin:0; font-size:14px; line-height:1.7; }
    .results { display:grid; gap:10px; }
    .game { display:grid; grid-template-columns:76px 1fr; align-items:center; gap:12px; padding:12px 14px; min-height:68px; border:1px solid #ffffff19; background:#ffffff0b; border-radius:18px; animation:rise .45s both; }
    .game-label { color:#aeb5c7; font-size:10px; letter-spacing:.14em; font-weight:700; }
    .game-label strong { display:block; color:#f3f4fb; font-size:13px; letter-spacing:.06em; margin-top:4px; }
    .balls { display:flex; justify-content:flex-end; gap:clamp(5px,1.8vw,10px); }
    .ball { position:relative; overflow:hidden; width:clamp(34px,8vw,43px); aspect-ratio:1; border-radius:50%; display:grid; place-items:center; color:#171a21; font-weight:800; font-size:clamp(13px,3.4vw,16px); text-shadow:0 1px 0 #ffffff75; border:0; box-shadow:inset 2px 3px 5px #ffffffbd, inset -5px -7px 9px #0003, inset 0 -1px 2px #0004, 0 5px 8px #0006, 0 10px 16px #0003; animation:pop .4s both; }
    .ball::before { content:""; position:absolute; width:48%; height:25%; left:17%; top:10%; border-radius:50%; background:linear-gradient(180deg,#ffffffed,#ffffff36); filter:blur(.5px); transform:rotate(-36deg); }
    .ball::after { content:""; position:absolute; inset:5% 8% 42% 8%; border-radius:50%; background:linear-gradient(165deg,#ffffff44,transparent 70%); pointer-events:none; }
    .c1{background:linear-gradient(145deg,#ffe27c,#f5b820)} .c2{background:linear-gradient(145deg,#a7d5ff,#56a5ed)} .c3{background:linear-gradient(145deg,#ffaaa4,#f2635f)} .c4{background:linear-gradient(145deg,#d1d3d9,#9299a7)} .c5{background:linear-gradient(145deg,#b9eaa8,#70c85a)}
    .actions { margin-top:22px; }
    button { width:100%; min-height:58px; border:1px solid #ffffff65; border-radius:18px; color:white; font:inherit; font-size:16px; font-weight:720; letter-spacing:-.02em; cursor:pointer; background:linear-gradient(110deg,#8173ec,#a56bdc 55%,#db82bd); box-shadow:0 10px 30px #9b70e44a,inset 0 1px #ffffff70; transition:transform .2s,filter .2s,box-shadow .2s; }
    button:hover { transform:translateY(-2px); filter:brightness(1.08); box-shadow:0 14px 36px #9b70e466,inset 0 1px #ffffff70; } button:active { transform:translateY(0) scale(.99); } button:focus-visible { outline:3px solid #fff; outline-offset:3px; }
    .hint { display:flex; justify-content:center; align-items:center; gap:7px; margin:14px 0 0; color:#aeb3c3; font-size:11px; line-height:1.6; text-align:center; }
    .footer { text-align:center; margin:18px 0 0; color:#9096a9; font-size:11px; }
    @keyframes rise { from {opacity:0; transform:translateY(10px)} to {opacity:1;transform:translateY(0)} }
    @keyframes pop { from { opacity:0; transform:scale(.72) } to { opacity:1; transform:scale(1) } }
    @media(max-width:440px) { body{padding:18px 12px}.topline{margin:0 3px 12px}.panel{border-radius:25px;padding:24px 16px}.game{grid-template-columns:62px 1fr;padding:11px 10px;gap:7px}.balls{gap:5px}.ball{width:min(8vw,36px)} }
    @media(prefers-reduced-motion:reduce) { *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important} }
