:root{font-family:-apple-system,BlinkMacSystemFont,'PingFang SC','Segoe UI',sans-serif;color:#292d30;font-size:14px;background:#ebecee;font-synthesis:none}*{box-sizing:border-box}body{margin:0;-webkit-user-select:none;user-select:none}button,input,select,textarea{font:inherit;color:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{border:1px solid #ffffffc9;background:#ffffff70;border-radius:16px;padding:12px 16px;cursor:pointer;transition:background .18s,transform .18s}button:hover{background:#fff}button:active{transform:translateY(1px)}button:disabled{opacity:.45;cursor:default}input,textarea,select{border:1px solid #dfe2e3;border-radius:14px;background:#ffffffa6;padding:13px;width:100%;outline-color:#8a9ca3;-webkit-user-select:text;user-select:text}textarea{resize:vertical;min-height:90px}input[type=checkbox],input[type=radio]{width:18px;accent-color:#53646d}a{color:#536f7e;text-decoration:none}h1,h2,h3,p{margin-top:0}h1{font-size:28px;font-weight:600;letter-spacing:-1px}h2{font-size:21px;font-weight:600}h3{font-size:16px}small,.muted{color:#82888c;line-height:1.65;font-size:12px}.primary{background:#37454b;color:white;border-color:#37454b}.primary:hover{background:#4c5b63}.danger{color:#a54b45}.glass,.card{background:#ffffff69;border:1px solid #fff;border-radius:24px;box-shadow:0 8px 24px #333b4509;backdrop-filter:blur(24px)}.card{padding:18px;margin-bottom:14px}.row{display:flex;align-items:center;gap:12px}.between{justify-content:space-between}.grow{flex:1;min-width:0}.stack{display:flex;flex-direction:column;gap:12px}.actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.actions>*{flex:1;min-width:90px}.icon{display:grid;place-items:center;width:40px;height:40px;padding:8px;flex-shrink:0;border:0;background:transparent;font-size:22px}.avatar{width:46px;height:46px;flex-shrink:0;border-radius:16px;object-fit:cover;background:linear-gradient(145deg,#dae4e8,#bfc9ce);display:grid;place-items:center;color:#58686d;font-size:18px;border:1px solid white;overflow:hidden}.avatar.group{background:linear-gradient(145deg,#e6e4da,#c8ccc5)}.avatar img{width:100%;height:100%;object-fit:cover}.badge{background:#607d8b;color:#fff;font-size:10px;border-radius:20px;padding:2px 6px}.chip{font-size:10px;border-radius:12px;padding:3px 7px;background:#e1e9e8;color:#53706c;white-space:nowrap}.empty{text-align:center;color:#91989c;padding:45px 15px;line-height:1.9}.listrow{width:100%;text-align:left;display:flex;align-items:center;gap:12px;padding:16px 12px;border:0;background:transparent;border-radius:16px}.listrow+.listrow{border-top:1px solid #ffffff80}.listrow strong{display:block;font-weight:500;font-size:16px}.listrow p{margin:6px 0 0;color:#858b8e;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.listrow time{font-size:10px;color:#919699}.section-head{display:flex;justify-content:space-between;align-items:center;margin:4px 0 14px}.segmented{display:flex;gap:6px}.segmented button{border:0;background:transparent;color:#8a9195;padding:8px 12px}.segmented button.selected{background:#fff;color:#2b3032}.app-shell{max-width:1120px;height:calc(100dvh - 48px);min-height:500px;margin:24px auto;display:grid;grid-template-columns:340px 1fr;border:1px solid white;border-radius:30px;background:linear-gradient(#fff,#f6f6f6 42%,#dedede);box-shadow:0 25px 80px #202e3c12;overflow:hidden}.sidebar{display:flex;flex-direction:column;padding:24px 18px 16px;border-right:1px solid #fff9;min-height:0}.brand{font-size:17px;letter-spacing:3px;margin:0 8px 20px;color:#657276;display:flex;justify-content:space-between;align-items:center}.brand small{letter-spacing:0;font-size:10px}.sidebar-content{flex:1;overflow-y:auto;scrollbar-width:thin;min-height:0}.bottom-nav{display:flex;padding:5px;margin-top:14px;flex-shrink:0;border-radius:24px}.bottom-nav button{flex:1;padding:9px 4px;background:transparent;border:0;font-size:12px;color:#6e7579}.bottom-nav button span{display:block;font-size:22px;margin-bottom:4px}.bottom-nav button.active{background:#ffffffd9;color:#303639;box-shadow:0 4px 12px #22222208;border-radius:20px}.workspace{min-width:0;min-height:0;display:flex;flex-direction:column;position:relative;padding:20px 22px 16px}.welcome{margin:auto;text-align:center;color:#92999c}.welcome .mark{font-size:64px;letter-spacing:-5px;color:#c5ced0}.workspace>header{display:flex;align-items:center;gap:8px;padding:12px 14px;flex-shrink:0;margin-bottom:12px;border-radius:20px;min-height:66px}.workspace header strong{font-size:18px;font-weight:600}.workspace header small{text-align:right;font-size:10px;white-space:nowrap}.scroll{overflow-y:auto;flex:1;min-height:0;scrollbar-width:thin}.chat-body{display:flex;flex-direction:column;flex:1;min-height:0;gap:10px}.activity-dock{flex-shrink:0;min-height:0}.activity-dock .toggle{display:block;margin-left:auto;background:none;border:0;font-size:11px;color:#7d898e;padding:3px 6px 8px}.game-card{padding:14px;margin:0;max-height:45dvh;overflow:auto}.game-card h2{font-size:19px;margin:8px 0}.game-card .actions{margin-top:8px}.game-card button{padding:8px 12px;min-height:36px;font-size:12px}.game-card .scores{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0}.scores span{flex:1;min-width:60px;border-radius:10px;background:#e9eeee;padding:6px;font-size:11px}.game-card .drawing{width:100%;max-height:140px;object-fit:contain;background:#fafafa;border-radius:14px}.game-card .options{display:grid;grid-template-columns:1fr 1fr;gap:6px}.game-card .selected{background:#d5e3e6}.message-area{flex:1;min-height:80px;position:relative;overflow:hidden}.message-scroll{height:100%;overflow-y:auto;scrollbar-width:thin;overflow-anchor:none;padding:8px 2px}.messages{display:flex;flex-direction:column;gap:20px}.message{display:flex;align-items:flex-start;gap:10px}.message .avatar{width:36px;height:36px;border-radius:12px;font-size:14px}.bubblewrap{max-width:76%;min-width:0}.bubble{width:fit-content;background:#ffffff75;border:1px solid #ffffffdd;border-radius:4px 16px 16px;padding:10px 13px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;-webkit-user-select:text;user-select:text;box-shadow:0 3px 10px #31394205}.bubble *{-webkit-user-select:text;user-select:text}.bubble img,.bubble video{max-width:100%;max-height:230px;border-radius:10px;display:block}.bubble audio{max-width:100%;width:240px;height:36px}.bubble small{display:block;border-bottom:1px solid #ddd;margin-bottom:6px;padding-bottom:6px}.mine{flex-direction:row-reverse}.mine .bubblewrap{display:flex;flex-direction:column;align-items:flex-end}.mine .bubble{border-radius:16px 4px 16px 16px;background:#ffffff45}.msgmeta{font-size:10px;color:#92989b;display:flex;align-items:center;gap:8px;margin-bottom:5px}.msgmenu{border:0;background:none;padding:0 5px;font-size:12px;color:#a0a6a8}.system{text-align:center;color:#91999d;font-size:11px;padding:4px}.failed{color:#af6256;font-size:14px;padding:0 6px;border:0;background:none}.pending{font-size:10px;color:#a0a6a9}.newmsgs{position:absolute;bottom:8px;right:8px;background:#f8fbfd;box-shadow:0 5px 20px #0001;padding:8px 12px;font-size:12px}.composer{padding:9px 12px;display:flex;align-items:center;gap:6px;border-radius:20px;margin-top:12px;flex-shrink:0}.composer input{border:0;outline:none;background:transparent;padding:10px 4px;min-width:0;box-shadow:none}.composer .icon{width:34px;height:34px;font-size:21px}.replybar{font-size:11px;color:#7b8589;padding:8px 12px}.features{display:grid;grid-template-columns:1fr 1fr;gap:12px}.feature{padding:0;overflow:hidden;border-radius:22px;min-height:120px;background:#fff8;text-align:left}.feature img{display:block;width:100%;height:auto}.feature strong{padding:14px;display:block}.feature-hero{background:linear-gradient(120deg,#f2f0fb,#e9e6f4);padding:22px;border-radius:24px;margin-bottom:18px}.feature-hero h2{font-size:22px}.profile{padding:22px}.profile .avatar{width:72px;height:72px;border-radius:22px;font-size:28px}.profile h2{margin:0 0 8px}.auth{max-width:1120px;margin:24px auto;height:calc(100dvh - 48px);min-height:600px;border-radius:30px;overflow:hidden;position:relative;color:#fff;background:#29363b url('/assets/HS5dG.png') center/cover}.auth:before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#12202644,#12202688 45%,#101b22d9)}.auth-brand{position:absolute;top:35px;left:40px;font-size:28px;letter-spacing:4px}.lang{position:absolute;right:30px;top:28px;border-color:#ffffff40;color:#fff;background:#ffffff18}.auth-intro{position:absolute;bottom:80px;left:50px;max-width:400px}.auth-intro h1{font-size:36px}.auth-intro p{color:#d6dedf;line-height:1.8}.auth-panel{position:absolute;top:50%;right:45px;transform:translateY(-45%);width:380px;background:#ffffff17;border:1px solid #ffffff55;border-radius:28px;padding:26px;backdrop-filter:blur(25px);max-height:80%;overflow:auto}.auth-panel input{background:#ffffff18;color:#fff;border-color:#ffffff40}.auth-panel input::placeholder{color:#ffffff88}.auth-panel label{display:block;margin:12px 0 6px;font-size:12px;color:#d6e1e5}.auth-panel small{color:#d3dcdf}.auth-panel .primary{background:#ffffffde;color:#26353b;border-color:transparent}.auth-panel button{color:#fff;background:#ffffff12}.auth-panel .primary{color:#26353b;background:#fff}.auth-panel .local-note{font-size:11px;color:#d4dfe2;line-height:1.7;margin-top:16px}.auth-error{color:#ffccc3;font-size:12px;margin-top:12px;line-height:1.7}.verify-code{padding:10px;border:1px dashed #ffffff66;border-radius:12px;margin-top:12px;font-size:12px;-webkit-user-select:text;user-select:text}.form-label{display:block;margin:14px 0 6px;font-size:12px;color:#75838a}.form-error{color:#ad5e52;font-size:12px;margin:10px 0;line-height:1.6}.fieldrow{display:flex;align-items:center;gap:10px;margin:12px 0}.fieldrow label{flex:1}.checkrow{display:flex;align-items:center;gap:10px;padding:10px 0}.checkrow .avatar{width:32px;height:32px}dialog{width:min(480px,calc(100% - 24px));max-height:88dvh;overflow-y:auto;border:1px solid white;background:#f2f5f6;border-radius:26px;padding:24px;box-shadow:0 25px 90px #202c3540;color:#303b41}dialog::backdrop{background:#25323e44;backdrop-filter:blur(6px)}.sheet-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.sheet-head h2{margin:0;font-size:20px}#toast{position:fixed;z-index:100;bottom:30px;left:50%;transform:translateX(-50%);background:#303d43ee;color:#fff;border-radius:15px;padding:12px 20px;max-width:90%;line-height:1.6;box-shadow:0 8px 30px #0002}.drawing-canvas{width:100%;height:auto;aspect-ratio:7/5;background:#fafbf9;border-radius:16px;touch-action:none}.palette{display:flex;gap:12px;margin-top:10px}.palette button{width:28px;height:28px;padding:0;border-radius:50%;border:3px solid white}.video-stage{height:300px;position:relative}.video-stage iframe{border:0;width:100%;height:100%}.video-stage video{position:absolute;inset:13% 9%;width:82%;height:74%;object-fit:contain;background:#111;border-radius:14px;opacity:0;animation:media-in .8s 5.5s forwards}.video-stage.ready video{animation:none;opacity:1}.video-stage .mute{position:absolute;right:12%;top:17%;z-index:2;border:1px solid #fff3;background:#ffffff20;color:white;padding:7px 10px;border-radius:50%}.video-stage .mute[hidden]{display:none}.table{width:100%;border-collapse:collapse;font-size:12px}.table td,.table th{text-align:left;padding:9px 5px;border-bottom:1px solid #e0e6e8}.content-enter{animation:enter .24s ease-out}.offlinenote{padding:6px 12px;background:#f1e8d8;color:#8e7653;border-radius:10px;font-size:11px}.page-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.page-title h1{margin:0;font-size:24px}.filesgrid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.filesgrid img{width:100%;height:140px;object-fit:cover;border-radius:14px}.mobile-back{display:none}@keyframes enter{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}@keyframes media-in{to{opacity:1}}@media(min-width:701px){.sidebar .features{gap:8px}.sidebar .feature{min-height:0}.sidebar .feature-hero{padding:16px}.sidebar .feature-hero h2{font-size:18px}.sidebar .profile{padding:15px}.sidebar .profile .avatar{width:50px;height:50px}}@media(max-width:700px){body{background:#eee}.app-shell{height:100dvh;min-height:0;margin:0;border:0;border-radius:0;display:block}.sidebar{height:100%;padding:env(safe-area-inset-top,0px) 18px max(12px,env(safe-area-inset-bottom));padding-top:16px;border:0}.brand{margin-bottom:18px}.workspace{display:none;height:100%;padding:12px 16px max(12px,env(safe-area-inset-bottom))}.app-shell.in-room .sidebar{display:none}.app-shell.in-room .workspace{display:flex}.mobile-back{display:grid}.workspace>header{min-height:58px;padding:8px;gap:5px}.workspace header strong{font-size:17px}.workspace header small{font-size:9px}.bubblewrap{max-width:78%}.video-stage{height:250px}.game-card{max-height:43dvh;padding:12px}.game-card .drawing{max-height:100px}.auth{margin:0;height:100dvh;min-height:0;border-radius:0}.auth:before{background:linear-gradient(#0f202933,#0d182b55 25%,#12202bee)}.auth-brand{left:25px;top:35px}.auth-intro{left:25px;bottom:auto;top:19%;max-width:85%}.auth-intro h1{font-size:29px}.auth-intro p{font-size:13px}.auth-panel{left:18px;right:18px;bottom:25px;top:auto;transform:none;width:auto;max-height:65dvh;padding:20px}.auth-panel h2{font-size:21px;margin-bottom:10px}.auth-panel .local-note{margin-top:10px}.features{gap:12px}.feature{min-height:0}.sidebar-content{padding:0 2px}.content-enter{animation-duration:.22s}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.001ms!important;transition:none!important}.video-stage video{opacity:1}}[hidden]{display:none!important}
/* Activity contents stay fully visible; chat alone scrolls. */
.game-card{max-height:none;overflow:visible}.game-card .card{padding:10px;margin:7px 0}.game-card .empty{padding:12px}.game-card .row .avatar{width:28px;height:28px;font-size:12px}.game-card p{margin-bottom:8px}.game-card .options button{min-width:0;white-space:normal}.game-card .stack{gap:5px}
@media(max-width:700px){.app-shell,.auth{height:var(--app-height,100dvh)}.game-card{padding:10px}.game-card h2{font-size:17px}.game-card .actions{gap:5px}.game-card button{font-size:11px;padding:7px;min-height:34px}.game-card .drawing{max-height:100px}.workspace{padding-top:8px}.composer{margin-top:8px}.workspace>header{margin-bottom:8px}}
.bubble{position:relative}.bubble img.greeting{position:absolute;right:-9px;top:-17px;width:28px;height:28px;object-fit:contain;pointer-events:none;border-radius:0;user-select:none;-webkit-user-select:none}.mine .bubble img.greeting{left:-9px;right:auto}.video-stage:fullscreen{height:100vh;background:#171a1d}
.feature{position:relative;aspect-ratio:1.32;min-height:130px;border:1px solid #fff;text-shadow:0 1px 3px #0003}.feature img.feature-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.feature:after{content:'';position:absolute;inset:0;background:linear-gradient(transparent,#152027b5)}.feature-copy{position:absolute;z-index:1;bottom:14px;left:13px;right:10px;color:white}.feature-copy strong{padding:0;margin-bottom:5px;font-size:15px;font-weight:500}.feature-copy small{font-size:10px;color:#ffffffc7;line-height:1.5;display:block}.sidebar img:not(.bubble img){-webkit-user-drag:none}.sidebar,.workspace header,.bottom-nav{-webkit-touch-callout:none}

/* A continuous scene behind every authentication step. */
.auth{isolation:isolate;background-image:url('/assets/auth-background.png')}
.auth-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:42% center;z-index:-2;pointer-events:none}
.auth:before{z-index:-1;pointer-events:none}
.auth-motion{position:absolute;left:40px;bottom:20px;padding:6px 10px;font-size:11px;background:#14232d55;border-color:#ffffff33;color:#e6edef}
.auth-motion:hover{background:#14232d88}
@media(max-width:700px){.auth-video{object-position:38% center}.auth-motion{left:25px;top:83px;bottom:auto}.auth-panel{background:#14232b55}}

.auth .lang:hover{background:#ffffff30;color:#fff}

/* FORTUNA is a live landscape channel, separate from video playback controls. */
.video-stage.fortuna-stage{height:auto;aspect-ratio:16/10;max-height:43dvh;width:100%;margin:auto;background:#080807;border:3px solid #beb8aa;border-radius:17px;box-shadow:0 7px 20px #2223;overflow:hidden}.video-stage.fortuna-stage:fullscreen{max-height:none;height:100dvh;border:0;border-radius:0}.fortuna-stage iframe{display:block}

.video-stage.fortuna-stage{max-width:68.8dvh}.video-stage.fortuna-stage:fullscreen{max-width:none}

/* Fixed 16:10 viewport throughout the opening and the live draw. */
.video-stage.fortuna-stage.fortuna-opening{animation:fortuna-unfold 5.5s both;transform-origin:center}
@keyframes fortuna-unfold{
 0%{clip-path:inset(calc(50% - 1px) 0 round 17px);transform:translateY(8px);box-shadow:0 0 0 #2220}
 12%{clip-path:inset(calc(50% - 1px) 0 round 17px);transform:translateY(8px);box-shadow:0 0 0 #2220}
 48%{clip-path:inset(0 round 17px);transform:translateY(8px);box-shadow:0 1px 3px #2221}
 88%,100%{clip-path:inset(-30px round 17px);transform:translateY(0);box-shadow:0 7px 20px #2223}
}
@media(prefers-reduced-motion:reduce){.video-stage.fortuna-stage.fortuna-opening{animation:none}}
