@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');
/* Safari intersects touch-action with every ancestor, including html. */
html:has(> body.studio){height:auto;min-height:100%;overflow-x:hidden;overflow-y:auto;touch-action:pan-y pinch-zoom}
body.studio .arena-wrap{touch-action:pan-y pinch-zoom}
body.studio .arena-field canvas{touch-action:none}
body.studio .arena-overlay{overflow-y:auto;align-items:safe center;touch-action:pan-y pinch-zoom}
body.studio .round-panel{margin-block:auto;flex-shrink:0}
body.studio .dialog,body.studio .dialog-backdrop{touch-action:pan-y pinch-zoom;-webkit-overflow-scrolling:touch}
body.studio{display:block;padding:0;background:#101926;color:#fff3df;font-family:'DM Sans',system-ui,sans-serif;overflow:auto;height:auto;min-height:100dvh;touch-action:pan-y;user-select:auto;-webkit-user-select:auto}body.studio>#hud,body.studio>#ar,body.studio>#ov,body.studio>#networkNotice{display:none!important}.studio *{box-sizing:border-box}.studio button,.studio input,.studio select{font:inherit}.studio button{cursor:pointer}.studio button:focus-visible,.studio a:focus-visible,.studio input:focus-visible{outline:3px solid #ffc983;outline-offset:4px}.studio h1,.studio h2,.studio h3{font-family:'Outfit',system-ui,sans-serif;color:inherit;background:none;-webkit-text-fill-color:inherit;transform:none;line-height:1.05;margin:0}.studio h1{font-size:clamp(44px,7vw,86px);letter-spacing:-3px}.studio h2{font-size:clamp(28px,4vw,44px);letter-spacing:-1px}.studio p{line-height:1.5}.studio input,.studio select{border:1px solid #526273;background:#1b2b3d;color:#fff3df;border-radius:12px;padding:12px;min-width:0;touch-action:auto}.studio input{user-select:text;-webkit-user-select:text}.studio button:disabled{cursor:default;opacity:.55}.shell{max-width:1200px;margin:auto;padding:0 32px 40px}.topbar{height:86px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ffffff12;gap:20px}.brand{display:flex;align-items:center;gap:10px;font-family:Outfit,sans-serif;font-weight:800;font-size:24px;letter-spacing:-1px}.brand-mark{display:flex;gap:3px;transform:rotate(-12deg)}.brand-mark i{width:14px;height:25px;border-radius:5px;background:#64bdff}.brand-mark i+ i{background:#ff796e;transform:translateY(7px)}.nav{display:flex;align-items:center;gap:10px}.quiet{border:1px solid #ffffff20;background:#ffffff07;color:#d3dbe0;padding:10px 14px;border-radius:12px;font-size:13px!important}.quiet.active{border-color:#ffd399;color:#ffd399}.profile-chip{border:1px solid #ffffff20;background:#223447;border-radius:40px;color:#fff3df;padding:8px 16px}.hero{position:relative;min-height:430px;display:flex;align-items:center;margin:24px 0 0;border-radius:28px;overflow:hidden;background:#132234 url('/art/duellissimo-world.webp') right center/cover}.hero:before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#101b2bf2 0%,#101b2bcc 29%,#101b2b20 72%)}.hero-copy{position:relative;width:54%;padding:42px;z-index:1}.eyebrow{display:block;color:#e0b67a;font-size:11px;letter-spacing:2px;font-weight:800;text-transform:uppercase;margin-bottom:17px}.hero h1 em{font-style:normal;color:#ffce8b}.hero p{max-width:300px;color:#c1ced8;font-size:16px;margin:20px 0 28px}.pill{display:inline-flex;border:1px solid #ffffff20;background:#14213688;border-radius:99px;padding:7px 11px;color:#d8e7e7;font-size:11px}.hero-footer{display:flex;gap:8px;flex-wrap:wrap}.cta{border:0;background:#ffce8b;color:#192434;border-radius:13px;padding:16px 22px;font-weight:800!important;box-shadow:0 4px 0 #b07a43;transition:transform .15s}.cta:hover{transform:translateY(-2px)}.cta.blue{background:#75c4ff;box-shadow:0 4px 0 #3d789d}.cta.coral{background:#ff958a;box-shadow:0 4px 0 #a45552}.cta.secondary{background:#293d50;color:#fff1dc;box-shadow:0 4px 0 #152332}.section-head{display:flex;justify-content:space-between;align-items:flex-end;margin:38px 0 18px;gap:15px}.section-head h2{font-size:25px}.section-head p{color:#a3b4c3;font-size:13px;margin:8px 0 0}.mode-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.mode-card{position:relative;border:1px solid #ffffff15;border-radius:20px;background:#1b2c3e;color:#fff2df;padding:23px;text-align:left;min-height:172px;overflow:hidden}.mode-card:hover{border-color:#8cc5ee;transform:translateY(-2px)}.mode-card>span{font-size:32px}.mode-card h3{font-size:24px;margin:17px 0 7px}.mode-card p{font-size:13px;color:#b1c0ce;margin:0;max-width:220px}.mode-card:after{content:'↗';position:absolute;right:24px;top:22px;color:#9bb4c8}.mode-card.online{background:linear-gradient(120deg,#23435a,#213548)}.mode-card.solo{background:linear-gradient(120deg,#3b3b3d,#2b3038)}.featured{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.game-tile{background:#1c2c3b;border:1px solid #ffffff12;border-radius:18px;overflow:hidden;position:relative;transition:transform .15s}.game-tile:hover{transform:translateY(-3px)}.game-art{height:125px;display:flex;align-items:center;justify-content:center;position:relative;background:radial-gradient(at 30% 20%,#ffffff16,transparent 65%),var(--tile,#25464b);overflow:hidden}.game-art:before,.game-art:after{content:'';position:absolute;width:110px;height:70px;border:2px solid #ffffff12;border-radius:40%;transform:rotate(-25deg);left:12px;top:38px}.game-art:after{left:auto;right:-20px;top:-10px}.game-art span{font-size:52px;filter:drop-shadow(0 9px 3px #0004);transform:rotate(-8deg);z-index:1}.tile-info{padding:15px}.tile-info h3{font-size:17px}.tile-info p{color:#9eb0bf;font-size:11px;margin:7px 0 12px}.tile-info button{padding:8px 12px;font-size:12px}.fav{position:absolute;right:9px;top:9px;z-index:2;border:0;border-radius:50%;background:#17283ab0;color:#ffdfa6;width:30px;height:30px}.newtag{position:absolute;left:10px;top:10px;font-size:9px;padding:4px 7px;background:#fff1d8;color:#223245;border-radius:5px;font-weight:800}.packs{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.pack{border:1px solid #ffffff1c;border-radius:20px;background:#192a3b;padding:23px}.pack .pack-icon{font-size:33px}.pack h3{font-size:23px;margin:16px 0 8px}.pack p{font-size:13px;color:#afbfce;min-height:38px}.pack .price{font-family:Outfit;font-size:29px;color:#ffd49a}.pack small{font-size:11px;color:#7fd7af}.pack button{width:100%;margin-top:16px;font-size:13px}.footer{color:#8095a6;font-size:11px;display:flex;justify-content:space-between;gap:15px;margin-top:30px;border-top:1px solid #ffffff12;padding-top:20px}.filterbar{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0}.collection-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}.page-head{padding:35px 0 10px}.page-head p{color:#aec1d0;max-width:650px}.dialog-backdrop{position:fixed;inset:0;z-index:30;display:flex;align-items:center;justify-content:center;padding:20px;background:#081320cc;backdrop-filter:blur(12px);overflow:auto}.dialog{width:min(620px,100%);max-height:calc(100dvh - 40px);overflow:auto;background:#1b2d40;border:1px solid #71859755;border-radius:25px;padding:30px;box-shadow:0 30px 90px #0008}.dialog h2{font-size:32px}.dialog p{color:#bccbd6;font-size:14px}.dialog label{display:block;color:#c3d1dc;font-size:13px;margin:18px 0 7px}.dialog input,.dialog select{width:100%}.dialog-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:25px}.dialog .close{float:right}.avatars{display:flex;gap:8px;flex-wrap:wrap}.avatars button{font-size:25px;background:#ffffff10;border:1px solid #ffffff20;border-radius:12px;padding:9px}.avatars button.selected{border-color:#ffd08d}.status{padding:12px;border-radius:12px;background:#ffffff08;color:#b8d7e9;font-size:13px;margin:14px 0}.box-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:18px;margin:30px 0}.carton{position:relative;aspect-ratio:1.2;border:0;border-radius:8px;background:linear-gradient(145deg,#d9b27a,#ab7949);box-shadow:0 8px 0 #7e5737,0 18px 20px #0003;transform:rotate(-2deg);font-size:31px;color:#735333;transition:transform .2s}.carton:nth-child(3n){transform:rotate(3deg)}.carton:before{content:'';position:absolute;left:42%;width:16%;top:0;bottom:0;background:#efdbb170;border-left:1px dashed #a88c62;border-right:1px dashed #a88c62}.carton:hover{transform:translateY(-7px) rotate(0)}.carton small{position:absolute;right:9px;bottom:9px;font-size:12px;border:1px solid #84613f;padding:3px 6px}.carton.opened{background:#233e4b;box-shadow:0 5px 0 #142834;color:#fff}.carton.opened:before{display:none}.reveal-icon{text-align:center;font-size:90px;animation:unpack .45s cubic-bezier(.2,1.4,.4,1)}@keyframes unpack{from{transform:translateY(35px) scale(.5) rotate(-20deg);opacity:0}to{transform:none;opacity:1}}.preview-canvas{width:100%;aspect-ratio:1.6;position:static;border-radius:15px;background:#142438}.keycaps{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0}.keycaps span{background:#0e2030;border:1px solid #ffffff25;padding:9px;border-radius:8px;color:#d3e2eb;font-size:12px}.arena-wrap{height:100dvh;display:flex;flex-direction:column;background:#0d1926;padding:env(safe-area-inset-top) 12px env(safe-area-inset-bottom);overflow:hidden;touch-action:none}.arena-top{display:flex;justify-content:space-between;gap:10px;align-items:center;min-height:65px}.player-score{display:flex;align-items:center;gap:9px;max-width:31%;font-weight:700;color:#70c7ff}.player-score.red{color:#ff968a;justify-content:flex-end}.player-score b{font:800 30px Outfit}.player-score span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.round-info{text-align:center;font-size:12px;color:#a1b8cb}.round-info strong{display:block;font-family:Outfit;font-size:18px;color:#fff0db}.arena-field{position:relative;flex:1;min-height:0;display:flex;align-items:center;justify-content:center}.arena-field canvas{position:static;max-width:100%;max-height:100%;width:auto;height:100%;aspect-ratio:1.6;object-fit:contain;border-radius:20px}.arena-overlay{position:absolute;inset:0;display:flex;justify-content:center;align-items:center;background:#0c1b2bc9;border-radius:20px;padding:16px}.arena-overlay:empty{display:none}.round-panel{max-width:620px;width:100%;text-align:center;background:#20384df5;border:1px solid #ffffff2a;padding:24px;border-radius:22px}.round-panel h2{font-size:30px;margin-bottom:12px}.round-panel p{font-size:14px;color:#c3d4e0}.round-panel .cta{margin:8px}.arena-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0}.touch-side{display:flex;align-items:center;gap:14px}.dpad{display:grid;grid-template:repeat(3,34px)/repeat(3,34px);gap:3px}.dpad button,.action-pad button{background:#25435b;border:1px solid #537892;color:#d8efff;border-radius:10px;touch-action:none;user-select:none;-webkit-user-select:none}.dpad button:nth-child(1){grid-area:1/2}.dpad button:nth-child(2){grid-area:2/1}.dpad button:nth-child(3){grid-area:2/3}.dpad button:nth-child(4){grid-area:3/2}.action-pad{display:flex;gap:8px}.action-pad button{width:65px;height:58px;font-size:12px;background:#3c5461}.action-pad button strong{display:block;font-size:17px;color:#ffda9f}.touch-side.red .dpad button{background:#533b45;border-color:#8b5a64;color:#ffd9d2}.arena-tools{display:flex;gap:6px;flex-wrap:wrap;justify-content:center;max-width:340px}.arena-tools button{font-size:12px;padding:8px}.touch-side button.pressed{background:#a9dafa;color:#142b3e}.emoji-bubble{position:absolute;top:20px;left:50%;transform:translateX(-50%);font-size:38px;background:#1e354dee;border-radius:15px;padding:8px 18px;z-index:9;pointer-events:none}.qr{display:block;width:180px;height:180px;border-radius:15px;margin:20px auto}.room-code{font:800 42px Outfit;letter-spacing:6px;text-align:center;color:#ffd08d;margin:20px 0}.notice{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);z-index:80;border-radius:12px;background:#fff0d9;color:#192e3f;padding:12px 20px;max-width:90vw;font-size:14px;box-shadow:0 8px 30px #0004}.toggle{display:flex!important;align-items:center;justify-content:space-between;gap:16px;background:#ffffff06;padding:13px;border-radius:12px}.toggle input{width:20px;height:20px;accent-color:#ffce8b}.rank-list{padding:0;list-style:none}.rank-list li{display:flex;justify-content:space-between;padding:13px;border-bottom:1px solid #ffffff15}.couch .touch-side.red{position:absolute;top:75px;right:15px;transform:rotate(180deg);z-index:5}.couch .arena-top{margin-top:115px}.couch .arena-bottom{justify-content:flex-start}.couch .arena-tools{margin-left:auto}.motion-off *{animation:none!important;transition:none!important}@media(min-width:1200px){.hero{min-height:455px}.hero-copy{padding:50px}}@media(max-width:800px){.shell{padding:0 18px 25px}.topbar{height:70px}.brand{font-size:21px}.nav>.quiet{display:none}.hero{min-height:380px;background-position:65% center}.hero-copy{width:75%;padding:28px}.hero:before{background:linear-gradient(90deg,#101b2be8,#101b2b90 55%,transparent)}.mode-grid{gap:9px}.mode-card{padding:17px;min-height:160px}.mode-card h3{font-size:20px}.featured{grid-template-columns:repeat(2,1fr)}.collection-grid{grid-template-columns:repeat(3,1fr)}.packs{grid-template-columns:1fr}.pack p{min-height:0}.box-grid{grid-template-columns:repeat(4,1fr);gap:14px}.arena-tools{max-width:160px}.action-pad button{width:48px;height:50px;font-size:10px}.touch-side{gap:6px}.dpad{grid-template:repeat(3,28px)/repeat(3,28px)}.player-score span{font-size:11px}.arena-top{min-height:53px}.arena-bottom{gap:4px}.round-panel{padding:17px}.round-panel h2{font-size:25px}}@media(max-width:500px){.hero-copy{width:92%}.hero h1{font-size:53px}.hero p{max-width:230px;font-size:14px}.hero{min-height:385px;background-position:61% center}.mode-grid{grid-template-columns:1fr}.mode-card{min-height:95px;padding:17px 18px 17px 75px}.mode-card>span{position:absolute;left:22px;top:27px}.mode-card h3{margin:0 0 6px;font-size:23px}.mode-card p{max-width:none}.mode-card:after{display:none}.collection-grid{grid-template-columns:repeat(2,1fr)}.box-grid{grid-template-columns:repeat(3,1fr)}.section-head h2{font-size:23px}.hero-footer{max-width:240px}.arena-bottom{flex-wrap:wrap;justify-content:center}.arena-tools{max-width:none;order:3;width:100%}.touch-side{flex:1;justify-content:center}.arena-tools button{padding:6px;font-size:11px}.arena-field canvas{width:100%;height:auto}.dialog{padding:23px}.footer{flex-direction:column}}@media(prefers-reduced-motion:reduce){.studio *{animation:none!important;transition:none!important}}
