@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&display=swap');
:root{--bg:#0c2047;--muted:#9eafd3;--lime:#d7ff7c;--panel:#162f5b;--line:#ffffff16}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:#f5f8ff;font-family:'DM Sans',sans-serif;min-height:100vh;overflow-x:hidden;background-image:radial-gradient(ellipse at 50% 30%,#234e8e88,transparent 65%)}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible{outline:3px solid var(--lime);outline-offset:4px}button{border:0;background:none}a{color:inherit;text-decoration:none}.ambient{position:fixed;z-index:-1;filter:blur(90px);width:250px;height:250px;border-radius:100%;opacity:.14;pointer-events:none}.a{background:#2878ff;top:25%;left:-100px}.b{background:#835cff;right:0;bottom:0}header{height:100px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);margin:0 4.5%;gap:20px}.brand{font-family:Outfit,sans-serif;display:flex;align-items:center;gap:12px;font-size:45px;font-weight:900;line-height:.8;letter-spacing:-2px}.brand small{display:block;font:9px 'DM Sans',sans-serif;letter-spacing:3px;margin-top:10px;text-align:center}.brand-cards{color:var(--lime);font-size:52px;transform:rotate(-20deg);text-shadow:7px -6px 0 #678aef}nav{display:flex;gap:24px}.nav{color:var(--muted);font-size:14px;padding:14px 10px}.nav.active{color:var(--lime)}.header-right{display:flex;align-items:center;gap:24px}.connection{font-size:11px;color:#b7dca2}.profile{border:1px solid #ffffff26;border-radius:40px;padding:6px 13px 6px 6px;display:flex;gap:10px;align-items:center;font-size:13px}.avatar{width:37px;height:37px;display:inline-grid;place-items:center;border-radius:50%;background:#e4be88;color:#533b30;font-weight:800;overflow:hidden}.avatar img{width:100%;height:100%;object-fit:cover}main{max-width:1500px;margin:auto;padding:40px 4.5% 24px}.eyebrow{color:var(--lime);font-size:11px;font-weight:700;letter-spacing:2.5px;display:flex;align-items:center;gap:10px}.eyebrow:before{content:'';width:20px;height:1px;background:var(--lime)}h1,h2,h3{font-family:Outfit,sans-serif}h1{font-size:clamp(34px,4.1vw,62px);letter-spacing:-2px;line-height:1.06;margin:16px 0}h1 em{color:var(--lime);font-style:normal}p{color:var(--muted);font-size:14px;line-height:1.7}.hero{display:flex;justify-content:space-between;align-items:center;gap:30px;margin-bottom:32px}.hero p{max-width:450px;margin:0}.hero-art{height:175px;width:280px;position:relative;margin-right:7%;display:grid;place-items:center}.hero-art .card{position:absolute;width:98px;height:145px;font-size:62px;box-shadow:0 16px 30px #0005;pointer-events:none}.hero-art .card:nth-child(1){transform:translateX(-62px) rotate(-24deg);background:#467eed}.hero-art .card:nth-child(2){transform:translateY(-8px) rotate(-3deg);background:#f7bc48}.hero-art .card:nth-child(3){transform:translateX(64px) rotate(18deg);background:#ef6379}.spark{position:absolute;color:var(--lime);font-size:28px;right:-20px;top:5px}.spark.second{left:-16px;bottom:0;top:auto;font-size:18px}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.section-heading h2{font-size:20px;margin:0;letter-spacing:-.3px}.section-heading span{font-size:11px;color:var(--muted)}.modes{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.mode{position:relative;min-height:270px;border-radius:20px;text-align:left;padding:24px;overflow:hidden;border:1px solid #ffffff30;transition:.2s}.mode:hover{transform:translateY(-5px);box-shadow:0 15px 35px #0003}.mode.classic{background:linear-gradient(130deg,#4966cb,#27387d)}.mode.party{background:linear-gradient(130deg,#8c4fb9,#492b79)}.mode.express{background:linear-gradient(130deg,#168b8a,#12515e)}.mode .tag{position:relative;z-index:2;font-size:9px;letter-spacing:1.4px;font-weight:700;padding:6px 9px;background:#0002;border:1px solid #ffffff20;border-radius:5px}.mode h3{font-size:29px;margin:104px 0 3px;letter-spacing:-.6px;position:relative;z-index:2}.mode p{color:#e3e9ffb0;font-size:12px;margin:0;position:relative;z-index:2}.mode .arrow{position:absolute;right:22px;bottom:28px;border-radius:50%;background:#ffffff17;width:34px;height:34px;display:grid;place-items:center}.mode-art{position:absolute;right:18%;top:38px;transform:rotate(14deg)}.mode-art .card{width:74px;height:108px;font-size:45px;box-shadow:-10px 10px 0 #0002}.mode-art:before{content:'';position:absolute;inset:-32px;border:1px solid #ffffff19;border-radius:50%;transform:scaleX(1.6)}.party .mode-art{transform:rotate(-12deg)}.party .card{background:#ffbd4a}.express .card{background:#c5f574;color:#285447}.card{border:5px solid #fff4e9;border-radius:12px;background:#f36374;display:grid;place-items:center;font-family:Outfit,sans-serif;font-weight:800;position:relative;text-shadow:1px 2px 0 #0003;color:white}.card:before{content:'';position:absolute;inset:12px 5px;border:2px solid #ffffff90;border-radius:50%;transform:rotate(28deg)}.card span{z-index:1}.card.red{background:#e85168}.card.yellow{background:#e5ac32}.card.green{background:#38a77d}.card.blue{background:#447ade}.card.wild{background:conic-gradient(#437be4 0 25%,#e6556b 0 50%,#e7ad37 0 75%,#3eaa7e 0)}.social-strip{display:grid;grid-template-columns:1.4fr 1fr;gap:18px;margin-top:20px}.friends-panel,.future-panel{border:1px solid var(--line);background:#ffffff04;border-radius:16px;padding:22px;display:flex;align-items:center;gap:17px}.friends-icon{font-size:29px;color:var(--lime);width:50px;height:50px;border-radius:14px;background:#d7ff7c12;display:grid;place-items:center}.friends-panel h3,.future-panel h3{font-size:16px;margin:0 0 5px}.friends-panel p,.future-panel p{font-size:11px;margin:0}.strip-copy{flex:1}.primary,.secondary{padding:13px 20px;border-radius:10px;font-weight:700;font-size:13px;white-space:nowrap}.primary{background:var(--lime);color:#223b28;box-shadow:0 4px 0 #8bac4c}.secondary{border:1px solid #ffffff28;background:#ffffff08}.primary:hover{background:#e5ffa9}.future-panel{opacity:.8}.future-icon{font-size:32px;color:#a0b6e6}.soon{font-size:9px;letter-spacing:1px;color:var(--muted);padding:6px 8px;border:1px solid var(--line);border-radius:5px}footer{max-width:1500px;margin:auto;padding:12px 4.5% 20px;display:flex;justify-content:space-between;align-items:center;font-size:9px;color:#8b9dbf;letter-spacing:.6px;gap:20px}footer i{color:var(--lime);margin:0 10px}footer button{font-size:23px}.rotate{font-size:16px;margin-left:10px}dialog{background:#142c52;color:white;border:1px solid #ffffff28;border-radius:24px;padding:32px;width:min(480px,92vw);max-height:90vh;box-shadow:0 40px 100px #0008}dialog::backdrop{background:#030d24c9;backdrop-filter:blur(9px)}dialog h2{font-size:29px;margin:0 0 8px}dialog p{font-size:12px}.close{position:absolute;right:16px;top:12px;font-size:28px;color:var(--muted)}label{display:block;margin:18px 0;font-size:12px;color:#c4d2eb}input,select{display:block;width:100%;margin-top:8px;padding:12px;border:1px solid #ffffff25;border-radius:9px;background:#0c2047;color:white}input[type=checkbox]{display:inline;width:auto;accent-color:var(--lime);margin:0 10px 0 0}label.toggle{display:flex;align-items:center}input[type=file]{font-size:11px}.actions{display:flex;gap:10px;margin-top:24px}.actions>*{flex:1}.error{color:#ffa4aa;font-size:12px;min-height:15px}#toast{position:fixed;bottom:30px;left:50%;transform:translate(-50%,20px);border:1px solid #ffffff28;border-radius:12px;background:#152b4e;padding:13px 23px;box-shadow:0 10px 35px #0005;opacity:0;pointer-events:none;transition:.2s;z-index:20;font-size:13px;max-width:90vw}#toast.show{opacity:1;transform:translate(-50%,0)}.room-top{display:flex;align-items:center;justify-content:space-between;gap:15px}.room-top h2{font-size:25px;margin:0 0 5px}.room-top p{font-size:11px;margin:0}.room-actions{display:flex;gap:8px}.room-actions button{padding:9px 13px}.room-code{letter-spacing:3px;color:var(--lime);font-weight:700}.lobby{margin:30px auto;max-width:800px;border:1px solid var(--line);border-radius:24px;background:#ffffff04;padding:28px}.lobby h2{margin:0;font-size:28px}.seats{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin:26px 0}.seat{min-height:108px;background:#102443;border:1px dashed #ffffff20;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;font-size:11px;text-align:center;padding:8px}.seat.empty{color:#6681ae}.seat .avatar{height:44px;width:44px}.rule-chips{display:flex;gap:7px;flex-wrap:wrap}.rule-chips span{padding:7px 10px;background:#ffffff08;color:#c5d3ed;font-size:10px;border-radius:6px}.table{position:relative;margin:20px auto 0;min-height:380px;border:1px solid #81a1d526;border-radius:160px;background:radial-gradient(ellipse,#245285 0,#173863 65%,#122c51 100%);box-shadow:inset 0 0 0 10px #081b3226,inset 0 0 0 12px #ffffff05;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:18px 20px 20px}.opponents{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;margin-bottom:22px;max-width:90%}.opponent{display:flex;align-items:center;gap:8px;border-radius:35px;background:#0b203d80;padding:5px 12px 5px 5px;border:1px solid transparent;font-size:10px}.opponent.active{border-color:var(--lime);box-shadow:0 0 15px #d7ff7c18}.opponent .avatar{width:32px;height:32px}.opponent small{display:block;color:var(--muted);font-size:9px;margin-top:3px}.table-middle{display:flex;align-items:center;gap:25px}.deck{width:76px;height:111px;background:linear-gradient(140deg,#293e77,#13254b);transform:rotate(-7deg);font-size:20px;box-shadow:3px 3px 0 #d3d8df,6px 6px 0 #34496d}.deck:before{border-color:#d7ff7c80}.discard{width:82px;height:119px;font-size:46px;transform:rotate(8deg);box-shadow:0 8px 12px #0004}.table-status{font-size:12px;text-align:center;margin:18px 0 0}.table-status strong{color:var(--lime)}.table-status small{display:block;font-size:10px;color:#aec1e1;margin-top:6px}.hand-zone{display:flex;flex-direction:column;align-items:center;margin-top:-12px;position:relative;z-index:2}.hand{display:flex;justify-content:center;max-width:100%;overflow-x:auto;padding:18px 20px;min-height:140px}.hand .card{flex-shrink:0;width:78px;height:113px;font-size:42px;margin-left:-10px;box-shadow:-4px 4px 15px #0005;transition:.18s}.hand .card:hover:not(:disabled){transform:translateY(-14px) rotate(-3deg);z-index:4}.hand .card:disabled{opacity:.48}.hand .card.playable{border-color:#e8ffc2}.hand-controls{display:flex;gap:12px;align-items:center;font-size:11px;color:var(--muted)}.uno-btn{background:#f3667c;color:white;border:1px solid #ffa2ad;border-radius:28px;padding:12px 28px;font:bold 18px Outfit;box-shadow:0 4px 0 #a62f4d}.color-options{display:flex;gap:12px;margin-top:24px}.color-options button{width:74px;height:74px;border-radius:12px;font-size:12px;border:3px solid #ffffff70}.result{text-align:center;padding:20px}.result .trophy{font-size:65px}#mediaDock{position:fixed;right:18px;top:105px;width:270px;background:#091b32e8;border:1px solid #ffffff26;border-radius:14px;padding:9px;z-index:5;box-shadow:0 12px 40px #0004}.media-heading{display:flex;justify-content:space-between;align-items:center;font-size:9px;letter-spacing:1px;padding:0 3px 7px;color:var(--lime)}#videos{display:grid;grid-template-columns:repeat(2,1fr);gap:5px;max-height:310px;overflow:auto}.video-tile{position:relative;background:#203751;border-radius:8px;overflow:hidden;aspect-ratio:4/3}.video-tile video{width:100%;height:100%;object-fit:cover}.video-tile small{position:absolute;bottom:3px;left:5px;font-size:9px;text-shadow:0 1px 3px black}.video-tile.local video{transform:scaleX(-1)}.video-tile:before{content:'◉';position:absolute;top:35%;left:45%;color:#7893b3;z-index:-1}.media-on{border-color:var(--lime)!important;color:var(--lime)}.portrait-note{display:none}
@media(min-width:1500px){main{padding-top:55px}.mode{min-height:310px}.mode h3{margin-top:140px}}
@media(max-width:950px){header{height:74px}.brand{font-size:35px}.brand-cards{font-size:42px}.header-right{gap:12px}main{padding-top:24px}.hero{margin-bottom:24px}.hero-art{transform:scale(.8);height:135px;width:200px;margin-right:3%}h1{font-size:38px}.mode{padding:18px;min-height:235px}.mode h3{font-size:24px;margin-top:100px}.mode p{font-size:10px}.mode-art{right:24%}.social-strip{grid-template-columns:1.4fr 1fr}.friends-panel,.future-panel{padding:15px;gap:10px}.friends-icon{display:none}.future-panel .soon{display:none}.connection{font-size:9px}.table{min-height:290px}.table .opponents{gap:5px}.opponent{padding-right:8px}.opponent .avatar{width:26px;height:26px}.room-actions button{font-size:11px}#mediaDock{top:80px;width:220px}}
@media(max-height:540px) and (orientation:landscape){header{height:56px}.brand{font-size:28px}.brand small{font-size:7px;margin-top:6px}.brand-cards{font-size:34px}main{padding-top:16px}.hero{margin-bottom:18px}h1{font-size:33px;margin:10px 0}.hero p{font-size:11px}.hero-art{height:95px;transform:scale(.62)}.mode{min-height:200px}.mode h3{margin-top:78px;font-size:23px}.mode-art{top:28px;transform:scale(.75) rotate(14deg)}.party .mode-art{transform:scale(.75) rotate(-12deg)}.table{min-height:220px;margin-top:8px;padding:10px;border-radius:90px}.opponents{margin-bottom:10px}.discard{width:57px;height:82px;font-size:31px}.deck{width:53px;height:78px;font-size:15px}.table-status{margin-top:8px;font-size:10px}.hand{min-height:95px;padding:12px 20px}.hand .card{width:57px;height:83px;font-size:30px;border-width:3px}.room-top h2{font-size:20px}.hand-controls button{padding:7px 17px;font-size:12px}footer{padding-top:8px;padding-bottom:10px}#mediaDock{top:63px;width:190px}#videos{max-height:180px}.room-top{padding-right:0}.lobby{margin:15px auto;padding:20px}.seats{margin:15px 0}.seat{min-height:75px}}
@media(max-width:600px) and (orientation:portrait){header{margin:0 5%;gap:8px}nav{display:none}.connection{display:none}main{padding:28px 5%}.hero-art{display:none}h1{font-size:43px}.hero p{font-size:12px}.modes{grid-template-columns:1fr}.mode{min-height:160px}.mode h3{margin-top:44px}.mode-art{right:15%;top:25px}.social-strip{grid-template-columns:1fr}.future-panel{padding:18px}.friends-panel{flex-wrap:wrap}.seats{grid-template-columns:repeat(2,1fr)}.room-top{align-items:flex-start}.room-actions{flex-wrap:wrap;justify-content:flex-end;max-width:145px}.table{border-radius:40px;padding:18px 8px}.opponents{max-width:100%}.hand{justify-content:flex-start;width:100%}.hand .card{width:65px;height:96px}.hand-controls{flex-wrap:wrap;justify-content:center}footer>span:nth-child(2){display:none}.lobby{padding:20px}#mediaDock{top:78px;width:190px}.room-top p{max-width:150px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
@media(max-height:540px) and (orientation:landscape){body.in-game header{height:44px}body.in-game main{padding-top:8px;padding-bottom:6px}body.in-game footer{display:none}body.in-game .table{min-height:158px;padding:8px;margin-top:8px}body.in-game .table .opponents{margin-bottom:8px;flex-wrap:nowrap;max-width:96%;overflow-x:auto;justify-content:flex-start}body.in-game .opponent{flex-shrink:0}body.in-game .opponent .avatar{height:22px;width:22px}body.in-game .discard{height:68px;width:47px;font-size:26px;border-width:3px}body.in-game .deck{height:65px;width:45px;border-width:3px}body.in-game .table-status{margin-top:6px}body.in-game .hand{min-height:83px;padding:10px 18px 6px}body.in-game .hand .card{height:75px;width:52px;font-size:28px}body.in-game .hand-controls{gap:8px}body.in-game .hand-controls button{padding:5px 20px}body.in-game .hand-zone{margin-top:-6px}body.in-game .room-top h2{font-size:18px}body.in-game .room-actions button{padding:7px 11px}body.in-game .room-top p{font-size:10px}}
/* Island table: scene, concealed hands, and server-synchronised timers. */
.timer-settings{display:grid;grid-template-columns:1fr 1fr;gap:14px}.timer-settings label{margin:12px 0}.score-note{padding:12px;border:1px solid #ffffff15;background:#ffffff05;border-radius:10px;font-size:11px!important}.standings{display:grid;gap:8px;margin:22px 0}.standing{display:flex;align-items:center;gap:14px;padding:10px 14px;border-radius:10px;background:#ffffff08;text-align:left;font-size:12px}.standing b{flex:1}.standing.champion{background:#d7ff7c1c;border:1px solid #d7ff7c66}.standing strong{color:var(--lime)}.result .eyebrow{justify-content:center}.in-game{background:#12334e}.in-game header{height:65px}.in-game main{max-width:1600px;padding-top:12px;padding-bottom:0}.in-game footer{display:none}.island-arena{position:relative;isolation:isolate;height:calc(100dvh - 157px);min-height:470px;overflow:hidden;border-radius:26px;margin-top:12px;background:radial-gradient(ellipse at 50% 95%,#d0f4d1 0,transparent 58%),linear-gradient(155deg,#67d5ed,#a0e3ed 50%,#48bdd9);box-shadow:inset 0 0 0 2px #d4f7ff60,0 12px 30px #001a3350;color:#123653}.island-scenery{position:absolute;inset:-8% -5% 0;background:url('island.svg') center 42%/100% 110% no-repeat;z-index:-1}.cloud{position:absolute;width:150px;height:40px;background:#f4ffff90;border-radius:60%;filter:blur(2px);z-index:-1;transform:rotate(-12deg)}.cloud:before,.cloud:after{content:'';position:absolute;border-radius:50%;background:inherit;width:70px;height:55px;top:-22px;left:25px}.cloud:after{left:77px;top:-10px;width:62px;height:42px}.cloud-one{left:-20px;top:35%}.cloud-two{right:-25px;top:60%;transform:rotate(10deg) scale(1.4)}.round-clock{position:absolute;top:18px;left:22px;display:flex;align-items:center;gap:9px;padding:8px 14px;background:#ffffffdc;border:2px solid white;border-radius:16px;box-shadow:0 4px 0 #358aa244}.round-clock>span{font-size:28px}.round-clock small{display:block;font-size:8px;font-weight:800;letter-spacing:1px;color:#418397}.round-clock b{font:800 25px Outfit;letter-spacing:1px}.scene-brand{position:absolute;left:50%;top:46%;transform:translate(-50%,-50%) rotate(-12deg);color:#36765315;font:900 120px Outfit;pointer-events:none}.scene-brand small{font:700 12px Outfit;letter-spacing:6px;display:block;text-align:center}.camera-hint{position:absolute;right:20px;top:18px;background:#12365315;border:1px dashed #fff9;color:#246276;padding:9px 13px;border-radius:12px;font-size:11px;line-height:1.6;text-align:right}.camera-hint small{font-size:9px}.island-player{position:absolute;transform:translate(-50%,-50%);z-index:2;display:flex;flex-direction:column;align-items:center}.player-badge{display:flex;flex-direction:column;align-items:center;position:relative}.timer-avatar{position:relative;padding:5px;width:69px;height:69px}.timer-avatar .avatar{width:59px;height:59px;border-radius:18px;border:3px solid white;box-shadow:0 4px 7px #174a5630;background:linear-gradient(150deg,#ffe2b8,#edb782);font:800 26px Outfit}.island-player:nth-of-type(2n) .avatar{background:linear-gradient(160deg,#e0d2ff,#ab8cda);color:#573d77}.player-label{position:relative;margin-top:2px;max-width:125px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;background:#23669a;color:white;border:1px solid #ffffff8c;border-radius:10px;padding:3px 14px;font-size:11px;font-weight:700;text-align:center;box-shadow:0 3px 0 #1b526e40}.player-label small{display:block;font-size:9px;color:#d4efff;font-weight:500}.player-badge.active .player-label{background:#ef864a;border-color:#fff3a0}.turn-ring{position:absolute;inset:0;width:100%;height:100%;overflow:visible;transform:rotate(-90deg);filter:drop-shadow(0 0 3px #9b8a1e77)}.turn-ring circle{fill:none;stroke-width:4;stroke-linecap:round}.ring-track{stroke:#14374c55}.ring-progress{stroke:#fff574;stroke-dasharray:182.212;stroke-dashoffset:0;transition:stroke-dashoffset .1s linear}.turn-seconds{position:absolute;bottom:-3px;right:-3px;background:#fff476;color:#645117;min-width:23px;height:23px;display:grid;place-items:center;border:2px solid white;border-radius:50%;font:bold 11px Outfit}.opponent-hand{display:flex;justify-content:center;height:44px;margin-top:7px;padding-left:15px}.opponent-hand i{display:grid;place-items:center;flex-shrink:0;width:29px;height:42px;margin-left:-12px;background:linear-gradient(135deg,#243e79,#15294d);border:2px solid #faffef;border-radius:5px;box-shadow:-2px 2px 4px #214d5c40;font:900 italic 22px Outfit;color:#d7ff7c;transform:rotate(var(--fan));transform-origin:50% 100%}.center-play{position:absolute;left:50%;top:43%;transform:translate(-50%,-50%);display:flex;gap:26px;align-items:center;z-index:3}.center-play .deck{width:76px;height:108px;font-size:24px;border-width:4px;box-shadow:3px 3px 0 white,6px 6px 0 #6a849a,9px 9px 0 #f2f9f4}.center-play .deck small{position:absolute;bottom:8px;font-size:8px;letter-spacing:2px;color:#b0c7ed}.center-play .discard{width:84px;height:119px;font-size:49px;border-width:4px}.play-direction{position:absolute;left:-46px;font:500 45px Outfit;color:#f4ffdd;filter:drop-shadow(0 2px 1px #417b5e)}.active-color{position:absolute;left:105%;top:40%;font-size:10px;font-weight:bold;border:2px solid #fffc;border-radius:15px;padding:5px 9px;color:white;box-shadow:0 3px 6px #234a4a22}.active-color.red{background:#db5863}.active-color.blue{background:#447ade}.active-color.green{background:#299269}.active-color.yellow{background:#d5a125}.turn-message{position:absolute;top:61%;left:50%;transform:translateX(-50%);white-space:nowrap;font-size:12px;text-align:center;background:#fffce1d9;padding:7px 17px;border:1px solid #fff;border-radius:30px;box-shadow:0 3px 8px #1d5d4b19;z-index:3}.turn-message strong{color:#c87528}.turn-message small{display:block;font-size:9px;margin-top:3px;color:#567466}.self-player{position:absolute;bottom:26px;left:6%;z-index:4}.island-hand{position:absolute;left:19%;right:19%;bottom:5px;z-index:4}.island-hand .hand{padding:20px 14px 10px;justify-content:center;min-height:0;overflow-x:auto}.island-hand .card{height:132px;width:88px;font-size:51px;margin-left:-15px;transform:rotate(-3deg);border-width:4px;opacity:1}.island-hand .card:nth-child(2n){transform:translateY(-4px)}.island-hand .card:disabled{filter:saturate(.75) brightness(.91);opacity:1}.island-hand .card.playable{border-color:#fffbb1;box-shadow:0 0 0 2px #e7ff8277,-3px 7px 10px #204c5a44}.island-hand .card small{position:absolute;top:3px;left:5px;font-size:14px}.island-hand .card:hover:not(:disabled){transform:translateY(-13px) rotate(-3deg)}.island-uno{position:absolute;right:5%;bottom:35px;text-align:center;z-index:4}.island-uno .uno-btn{width:86px;height:86px;border-radius:50%;padding:0;background:linear-gradient(135deg,#ffb34c,#f36b57 75%);border:4px solid #fff0b7;font-size:27px;transform:rotate(-12deg);box-shadow:0 5px 0 #c55c4a,0 9px 15px #375f5244;text-shadow:1px 2px #a33e36}.island-uno .uno-btn:disabled{opacity:.7}.island-uno small{display:block;margin-top:11px;font-size:9px;color:#225263}.many-players .timer-avatar{width:55px;height:55px}.many-players .timer-avatar .avatar{width:45px;height:45px;border-radius:13px;font-size:21px}.many-players .player-label{font-size:10px;padding:2px 8px}.many-players .opponent-hand{height:29px;margin-top:3px}.many-players .opponent-hand i{width:20px;height:29px;font-size:16px;margin-left:-10px}.in-game #mediaDock{top:136px;right:6%;width:220px;max-height:165px}.in-game #videos{max-height:125px}
@media(max-height:600px) and (orientation:landscape){body.in-game header{height:42px}body.in-game main{padding:5px 2% 0}.in-game .room-top{height:39px}.in-game .room-top h2{font-size:17px;margin-bottom:2px}.in-game .room-top p{font-size:9px}.in-game .room-actions button{padding:7px 10px;font-size:10px}.island-arena{height:calc(100dvh - 91px);min-height:255px;margin-top:5px;border-radius:19px}.round-clock{top:10px;left:14px;padding:4px 9px;gap:5px;border-radius:11px}.round-clock>span{font-size:21px}.round-clock b{font-size:19px}.round-clock small{font-size:6px}.camera-hint{top:10px;right:12px;padding:5px 8px;font-size:9px}.camera-hint small{font-size:7px}.timer-avatar{width:46px;height:46px;padding:4px}.timer-avatar .avatar{width:38px;height:38px;border-width:2px;border-radius:11px;font-size:21px}.player-label{font-size:9px;padding:2px 9px;border-radius:7px;margin-top:1px}.player-label small{font-size:7px}.turn-seconds{width:18px;min-width:18px;height:18px;font-size:9px;border-width:1px}.opponent-hand{height:30px;margin-top:4px}.opponent-hand i{width:21px;height:30px;font-size:16px;border-width:1.5px;margin-left:-10px}.center-play{gap:20px;top:43%}.center-play .deck{width:49px;height:71px;font-size:17px;border-width:3px}.center-play .discard{width:55px;height:79px;font-size:34px;border-width:3px}.center-play .deck small{bottom:5px;font-size:6px}.active-color{font-size:8px;padding:3px 6px}.play-direction{font-size:33px;left:-36px}.turn-message{top:61%;font-size:10px;padding:4px 12px}.turn-message small{font-size:7px;margin-top:2px}.island-hand{bottom:0;left:21%;right:21%}.island-hand .hand{padding:12px 10px 6px}.island-hand .card{height:83px;width:56px;font-size:34px;margin-left:-11px;border-width:3px}.island-hand .card small{font-size:10px;top:1px;left:3px}.self-player{bottom:14px;left:8%}.island-uno{bottom:17px;right:7%}.island-uno .uno-btn{height:58px;width:58px;font-size:20px;border-width:3px}.island-uno small{font-size:7px;margin-top:7px}.scene-brand{font-size:75px}.scene-brand small{font-size:8px}.many-players .timer-avatar{height:38px;width:38px;padding:3px}.many-players .timer-avatar .avatar{height:32px;width:32px;font-size:17px;border-radius:9px}.many-players .player-label{font-size:8px;padding:2px 5px}.many-players .opponent-hand{height:22px;margin-top:3px}.many-players .opponent-hand i{height:22px;width:16px;font-size:12px;margin-left:-8px}.in-game #mediaDock{top:97px;right:3%;width:165px;max-height:96px;padding:5px}.in-game .media-heading{font-size:7px;padding-bottom:2px}.in-game #videos{max-height:66px}}
@media(max-width:600px) and (orientation:portrait){.island-arena{height:650px;min-height:0}.island-scenery{inset:0 -50%;background-size:150% 110%}.round-clock{left:10px;top:10px}.camera-hint{right:10px;max-width:130px;font-size:9px}.island-player .timer-avatar{width:47px;height:47px;padding:3px}.island-player .avatar{width:41px;height:41px;font-size:20px;border-radius:12px}.player-label{font-size:9px;padding:3px 6px;max-width:95px}.opponent-hand i{width:18px;height:29px;margin-left:-10px;font-size:15px}.center-play{top:44%;gap:16px}.center-play .deck{width:49px;height:73px;font-size:18px}.center-play .discard{width:57px;height:85px;font-size:35px}.active-color{top:110%;left:55%;font-size:8px}.turn-message{font-size:9px;max-width:95%;white-space:normal;width:80%;top:62%}.self-player{bottom:135px;left:7%}.island-uno{bottom:135px;right:7%}.island-uno .uno-btn{height:55px;width:55px;font-size:20px}.island-hand{left:4%;right:4%;bottom:12px}.island-hand .hand{justify-content:flex-start;padding-left:20px}.island-hand .card{height:104px;width:69px;font-size:40px}.in-game #mediaDock{top:143px;right:7%;width:165px}}
.island-arena .center-play{top:48%}.island-arena .turn-message{top:65%}
@media(max-width:600px) and (orientation:portrait){.island-arena .center-play{top:46%}.island-arena .turn-message{top:63%}}
.many-players .self-player{left:17%;bottom:14px}.many-players .island-uno{right:16%;bottom:22px}.many-players .island-hand{left:26%;right:26%}
@media(max-height:600px) and (orientation:landscape){.many-players .self-player{left:16%;bottom:12px}.many-players .island-uno{right:15%;bottom:16px}.many-players .island-hand{left:25%;right:25%}}
@media(max-width:600px) and (orientation:portrait){.many-players .self-player{left:15%;bottom:135px}.many-players .island-uno{right:15%;bottom:135px}.many-players .island-hand{left:4%;right:4%}.many-players .player-label{max-width:65px;font-size:8px}.many-players .timer-avatar{width:38px;height:38px}.many-players .timer-avatar .avatar{width:32px;height:32px;font-size:17px}}
#fxLayer{position:fixed;inset:0;pointer-events:none;z-index:40;overflow:hidden;perspective:900px}.fx-card{position:absolute;width:62px;height:90px;transform-style:preserve-3d;filter:drop-shadow(0 16px 8px #10284977);border-radius:9px}.fx-front,.fx-back{position:absolute;inset:0;display:grid;place-items:center;border:4px solid #fffbe8;border-radius:9px;font:800 36px Outfit;color:white;backface-visibility:hidden;background:#e95c71;text-shadow:0 2px #0003}.fx-front:before,.fx-back:before{content:'';position:absolute;inset:9px 4px;border:2px solid #fff9;border-radius:50%;transform:rotate(25deg)}.fx-back{transform:rotateY(180deg);background:linear-gradient(135deg,#324c8b,#142748);color:#d7ff7c;font-size:23px}.fx-card.back .fx-front{background:linear-gradient(135deg,#324c8b,#142748);color:#d7ff7c;font-size:23px}.fx-card.blue .fx-front{background:#447ade}.fx-card.green .fx-front{background:#38a77d}.fx-card.yellow .fx-front{background:#e5ac32}.fx-card.wild .fx-front{background:conic-gradient(#437be4 25%,#e6556b 0 50%,#e7ad37 0 75%,#3eaa7e 0)}.fx-burst{position:absolute;white-space:nowrap;color:#fff6aa;font:900 42px Outfit;text-shadow:0 3px 0 #bb5227,0 6px 13px #36202488;-webkit-text-stroke:1px #aa512f}.fx-burst.attack{color:#ffdf69;font-size:48px}.fx-burst.ucil{color:#d7ff7c;-webkit-text-stroke:1px #347765;text-shadow:0 3px #347765}.fx-burst.draw{font-size:32px}.victory-stage{position:fixed;inset:0;z-index:70;display:flex;flex-direction:column;align-items:center;justify-content:center;background:radial-gradient(ellipse,#365893ef,#0c1734f5 75%);overflow:hidden;perspective:900px;isolation:isolate}.victory-light{position:absolute;width:100vmax;height:100vmax;background:repeating-conic-gradient(from 0deg,#d7ff7c0d 0deg 15deg,transparent 15deg 30deg);animation:glory 30s linear infinite;z-index:-1}.victory-cards{height:175px;width:360px;position:relative;perspective:900px;transform-style:preserve-3d}.victory-cards .fx-card{left:calc(50% - 31px);bottom:20px;animation:card-rise 1.8s cubic-bezier(.18,.8,.28,1) both;animation-delay:calc(var(--i)*.09s);transform:translateX(var(--spread)) rotateZ(var(--angle));width:62px;height:90px}.victory-title{font:900 italic clamp(55px,11vw,105px)/.85 Outfit;margin:0;letter-spacing:-4px;color:#fff1a2;text-align:center;text-shadow:0 5px 0 #d17a38,0 11px 25px #0005;animation:title-pop .8s 600ms both}.victory-title span{display:block;font-size:.49em;letter-spacing:1px;color:#d7ff7c;margin-top:14px;text-shadow:0 3px #477660}.victory-stage p{font:600 19px Outfit;color:#f6f8ff;margin:24px 0 18px;z-index:2;text-align:center;max-width:90%}.victory-stage button{z-index:2}.victory-confetti{position:absolute;top:-20px;left:var(--x);width:8px;height:16px;background:hsl(var(--hue) 85% 70%);animation:confetti-fall 3s var(--delay) ease-in infinite;pointer-events:none;z-index:-1}.winner-wordmark{font:900 italic 35px Outfit;color:#fff1a2;text-shadow:0 3px #aa6335}.winner-wordmark span{color:#d7ff7c}.result #replayWin{margin:8px}.result .trophy{font-size:40px}@keyframes card-rise{0%{opacity:0;transform:translate3d(0,180px,-300px) rotateX(80deg) rotateY(180deg) scale(.25)}35%{opacity:1}70%{transform:translate3d(var(--spread),-30px,120px) rotateX(-25deg) rotateY(360deg) rotateZ(var(--angle)) scale(1.25)}100%{opacity:1;transform:translate3d(var(--spread),0,0) rotateY(360deg) rotateZ(var(--angle))}}@keyframes title-pop{from{opacity:0;transform:translateY(35px) rotateX(-50deg) scale(.3)}to{opacity:1;transform:translateY(0) rotateX(0) scale(1)}}@keyframes glory{to{transform:rotate(360deg)}}@keyframes confetti-fall{to{transform:translateY(110vh) rotateX(540deg) rotateZ(200deg)}}@media(max-height:540px){.victory-cards{height:110px}.victory-title{font-size:65px}.victory-stage p{margin:16px 0 12px;font-size:15px}.victory-cards .fx-card{bottom:12px;width:50px;height:73px;left:calc(50% - 25px)}.victory-cards .fx-front{font-size:30px}.victory-title span{margin-top:10px}.fx-burst.attack{font-size:36px}}@media(prefers-reduced-motion:reduce){.victory-stage *{animation:none!important}.victory-cards .fx-card{transform:translateX(var(--spread)) rotateZ(var(--angle))}.victory-confetti{display:none}}

/* Six modes, a single landscape screen, and compact table setup. */
.music-toggle{border:1px solid #d7ff7c55;border-radius:22px;padding:8px 12px;color:var(--lime);font-size:11px;white-space:nowrap}.home-screen{display:grid;grid-template-rows:auto 25px minmax(0,1fr) 48px;gap:14px;height:calc(100dvh - 150px);min-height:500px}.home-screen .hero{margin:0;gap:12px}.home-screen h1{font-size:clamp(28px,3.5vw,49px);margin:9px 0;white-space:nowrap}.home-screen .hero p{font-size:12px}.hero-note{font-size:11px;white-space:nowrap;color:var(--muted)}.hero-note span{color:var(--lime);margin:0 8px}.home-screen .section-heading{margin:0}.home-screen .modes{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:14px}.home-screen .mode{min-height:0;padding:20px}.home-screen .mode h3{margin:62px 0 4px;font-size:24px}.home-screen .mode-art{right:17%;top:13px;transform:rotate(15deg) scale(.7);transform-origin:top right}.home-screen .mode p{font-size:11px;max-width:85%}.home-screen .mode .arrow{bottom:16px;right:16px}.mode.flip{background:linear-gradient(125deg,#7050aa,#283d77)}.mode.allwild{background:linear-gradient(120deg,#c36a96,#60368d)}.mode.nomercy{background:linear-gradient(120deg,#c75558,#6c244b)}.home-bottom{border:1px solid var(--line);border-radius:12px;background:#ffffff05;display:flex;align-items:center;justify-content:space-between;padding:7px 12px;font-size:12px;color:var(--muted)}.home-bottom b{color:#f4f7ff}.home-bottom button{padding:8px 18px;font-size:12px}.card.pink,.color-options .pink,.active-color.pink{background:#de529e}.card.teal,.color-options .teal,.active-color.teal{background:#218c93}.card.orange,.color-options .orange,.active-color.orange{background:#e78036}.card.purple,.color-options .purple,.active-color.purple{background:#8658c1}.color-options .red{background:#e85168}.color-options .blue{background:#447ade}.color-options .green{background:#38a77d}.color-options .yellow{background:#d5a125}.fx-card.pink .fx-front{background:#de529e}.fx-card.teal .fx-front{background:#218c93}.fx-card.orange .fx-front{background:#e78036}.fx-card.purple .fx-front{background:#8658c1}.island-arena.dark-side{background:radial-gradient(ellipse at 50% 95%,#795991,transparent 65%),linear-gradient(150deg,#1d2751,#515582);color:#faf0ff}.dark-side .island-scenery{filter:hue-rotate(130deg) brightness(.65)}.dark-side .cloud{opacity:.25}.dark-side .round-clock{color:#263258}.dark-side .camera-hint{color:#d7e2ff;background:#ffffff16}.dark-side .turn-message{color:#27365d}.target-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:20px}.target-options button{display:flex;align-items:center;gap:8px;white-space:normal;padding:8px;font-size:11px}.target-options .avatar{width:28px;height:28px;flex-shrink:0}.wide-modal{width:min(790px,96vw);padding:22px;max-height:calc(100dvh - 20px);overflow:hidden}.setup-heading h2{font-size:28px;margin:7px 0 14px}.setup-layout{display:grid;grid-template-columns:1.15fr 1fr;gap:24px}.setup-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.setup-fields label{margin:0;font-size:11px}.setup-fields .wide-field{grid-column:1/-1}.setup-fields input,.setup-fields select{padding:9px 10px;margin-top:5px;font-size:12px}.mode-rule-summary{font-size:12px;line-height:1.55;color:#e5eeff;background:#ffffff08;border:1px solid #ffffff12;border-radius:10px;padding:12px}.setup-rules label{font-size:11px;margin:14px 0}.score-mini{font-size:10px;color:var(--muted);line-height:1.5;display:block}.setup-dialog>.error{min-height:14px;margin-top:8px;font-size:10px}.setup-actions{margin-top:8px}.setup-actions button{padding:11px}.lobby{max-height:none}.at-home footer{display:none}
@media(orientation:landscape){body.at-home{height:100dvh;overflow:hidden}.at-home header{height:62px}.at-home main{padding:16px 4.5% 14px}.at-home .home-screen{height:calc(100dvh - 92px);min-height:0;grid-template-rows:minmax(50px,auto) 22px minmax(0,1fr) 44px;gap:10px}.home-screen .mode{padding:14px 16px;display:flex;flex-direction:column;justify-content:flex-end}.home-screen .mode h3{margin:0 0 5px;font-size:clamp(17px,2.15vw,26px)}.home-screen .mode .tag{position:absolute;left:15px;top:14px;font-size:8px;padding:4px 6px}.home-screen .mode-art{right:16%;top:18px;transform:rotate(15deg) scale(.7)}.home-screen .mode-art .card{font-size:38px}.home-screen .mode-art:before{display:none}.home-screen .mode p{font-size:10px}.home-screen .hero p{display:none}.home-screen h1{margin:6px 0 0}.home-screen .eyebrow{font-size:8px;letter-spacing:1.8px}}
@media(orientation:landscape) and (max-height:600px){.at-home header{height:44px;margin:0 3%}.at-home .brand{font-size:29px}.at-home .brand small{font-size:7px;margin-top:6px}.at-home .brand-cards{font-size:32px}.at-home .header-right{gap:8px}.at-home .profile{font-size:10px;padding:3px 8px 3px 3px;gap:6px}.at-home .profile .avatar{width:27px;height:27px}.at-home nav{gap:10px}.at-home .nav{font-size:11px;padding:8px 4px}.at-home main{padding:8px 3%}.at-home .home-screen{height:calc(100dvh - 60px);grid-template-rows:44px 18px minmax(0,1fr) 36px;gap:7px}.home-screen h1{font-size:29px;letter-spacing:-1px}.hero-note{font-size:9px}.home-screen .hero .eyebrow{font-size:7px;letter-spacing:1px}.home-screen .section-heading h2{font-size:15px}.home-screen .section-heading span{font-size:8px}.home-screen .modes{gap:8px}.home-screen .mode{padding:10px 12px;border-radius:13px}.home-screen .mode .tag{top:9px;left:11px;font-size:6px;padding:3px 5px;letter-spacing:.8px}.home-screen .mode h3{font-size:19px;margin-bottom:2px;max-width:85%}.home-screen .mode p{font-size:8px;max-width:80%;line-height:1.3}.home-screen .mode-art{right:6%;top:10px;transform:rotate(15deg) scale(.47)}.home-screen .mode-art .card{border-width:3px}.home-screen .mode .arrow{bottom:9px;right:9px;width:23px;height:23px;font-size:13px}.home-bottom{padding:4px 9px;font-size:10px;border-radius:9px}.home-bottom button{padding:6px 13px;font-size:10px;box-shadow:0 2px #8bac4c}.music-toggle{padding:6px 9px;font-size:9px}.wide-modal{padding:14px 20px;width:min(780px,96vw);max-height:calc(100dvh - 14px)}.setup-heading h2{font-size:22px;margin:4px 0 10px}.setup-heading .eyebrow{font-size:8px}.setup-layout{gap:18px}.setup-fields{gap:7px 10px}.setup-fields label{font-size:10px}.setup-fields input,.setup-fields select{padding:6px 9px;margin-top:3px;height:30px;font-size:11px}.mode-rule-summary{font-size:10px;padding:8px;line-height:1.4}.setup-rules label{font-size:10px;margin:10px 0}.score-mini{font-size:8px;line-height:1.4}.setup-dialog>.error{min-height:11px;margin-top:4px;font-size:9px}.setup-actions{margin-top:4px}.setup-actions button{padding:8px;font-size:11px}.wide-modal .close{top:7px;right:11px}.lobby{margin:12px auto;padding:18px}.lobby h2{font-size:22px}.seats{margin:14px 0;gap:7px}.seat{min-height:65px;gap:4px}.seat .avatar{width:29px;height:29px}.lobby .actions{margin-top:15px}.lobby p{font-size:10px}}
@media(orientation:landscape) and (max-height:350px){.at-home .home-screen{grid-template-rows:32px 16px minmax(0,1fr) 31px;gap:5px}.home-screen .hero .eyebrow{display:none}.home-screen h1{font-size:25px;margin:0}.home-screen .mode p{display:none}.home-screen .mode h3{font-size:16px}.home-screen .mode .tag{top:6px;font-size:6px}.home-screen .mode-art{transform:rotate(15deg) scale(.37);top:5px}.home-screen .mode .arrow{width:19px;height:19px;font-size:11px;bottom:6px;right:6px}.wide-modal{padding:10px 18px}.setup-heading h2{margin:2px 0 7px;font-size:19px}.setup-heading .eyebrow{display:none}.setup-fields{gap:5px 9px}.setup-fields select,.setup-fields input{height:27px;padding:4px 7px}.mode-rule-summary{font-size:9px;padding:7px}.setup-rules label{margin:8px 0;font-size:9px}.score-mini{font-size:7px}.setup-actions button{padding:6px;font-size:10px}.setup-dialog>.error{min-height:10px}}
@media(max-width:720px) and (orientation:landscape){.hero-note{display:none}.header-right .connection{display:none}.home-screen .mode h3{font-size:17px}.home-screen .mode-art{right:3%}.home-screen .mode p{max-width:75%}}
@media(orientation:portrait){.home-screen{height:auto;min-height:0;display:block}.home-screen .hero{margin-bottom:20px}.home-screen h1{white-space:normal;font-size:36px}.hero-note{display:none}.home-screen .section-heading{margin-bottom:15px}.home-screen .modes{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:180px;gap:10px}.home-screen .mode{padding:15px}.home-screen .mode h3{font-size:20px;margin-top:85px}.home-screen .mode p{font-size:9px}.home-screen .mode-art{right:25%;transform:scale(.6) rotate(15deg)}.home-screen .mode .tag{font-size:6px;padding:4px}.home-bottom{margin-top:15px;gap:10px;font-size:10px}.home-bottom button{font-size:10px;padding:8px}.wide-modal{overflow-y:auto}.setup-layout{grid-template-columns:1fr;gap:15px}.music-toggle{font-size:9px;padding:6px}.header-right{gap:6px}}

@media(orientation:landscape) and (max-height:600px){body.in-game header{height:42px}body.in-game main{padding:5px 2% 0}body.in-game .room-top{height:39px}body.in-game .island-arena{height:calc(100dvh - 91px);min-height:0;margin-top:5px}}
@media(orientation:landscape) and (max-height:350px){body.in-game .island-hand .card{height:63px;width:45px;font-size:27px}body.in-game .island-hand .hand{padding-top:8px}body.in-game .center-play .discard{height:66px;width:47px;font-size:29px}body.in-game .center-play .deck{height:61px;width:43px}body.in-game .island-arena .center-play{top:46%}body.in-game .island-arena .turn-message{top:63%;padding:3px 10px;font-size:8px}body.in-game .turn-message small{font-size:6px}body.in-game .island-uno .uno-btn{width:45px;height:45px;font-size:17px}}
