@font-face{font-family:Bricolage;src:url('/fonts/bricolage-grotesque.woff2') format('woff2');font-weight:400 800;font-display:swap}
@font-face{font-family:Figtree;src:url('/fonts/figtree.woff2') format('woff2');font-weight:400 800;font-display:swap}
:root{color-scheme:light;--paper:#f6f4ed;--ink:#27213c;--muted:#615873;--violet:#ded2ff;--coral:#ff7955;--line:#d2c9de;--white:#fffdf7;--display:Bricolage,system-ui,sans-serif}
*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;background:var(--paper);color:var(--ink);font:400 16px/1.5 Figtree,system-ui,sans-serif}
h1,h2,h3,p{margin:0}
h1,h2,h3{font-family:var(--display);line-height:1.02;letter-spacing:-.045em}
a{color:inherit}
button,input{font:inherit}
button:not(:disabled){cursor:pointer}
button:disabled{opacity:.55}
button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #5d4797;outline-offset:4px}
.wrap{width:min(1200px,calc(100% - 64px));margin-inline:auto}
.masthead{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:80px}
.wordmark{display:inline-flex;align-items:center;gap:9px;font:800 29px/1 var(--display);letter-spacing:-.06em;text-decoration:none}
.mast-note{font-weight:700;color:var(--muted);text-align:right}
.hero{display:grid;grid-template-columns:1fr 1.06fr;align-items:center;background:var(--violet);border:1px solid #c3b3e4;border-radius:25px 25px 64px 25px;overflow:hidden;min-height:455px}
.hero-copy{padding:33px 0 33px clamp(28px,5vw,70px)}
.hero-label{font-size:15px;font-weight:800;margin-bottom:16px;color:#58447e}
.hero h1{font-size:clamp(53px,5.8vw,84px);font-weight:800;line-height:.89;letter-spacing:-.08em}
.hero-copy>p:not(.hero-label){max-width:35ch;margin:21px 0 24px}
.hero-art{display:block;width:100%;height:auto;max-width:550px;justify-self:center}
.button{min-height:44px;display:inline-flex;justify-content:center;align-items:center;gap:12px;text-align:center;padding:9px 17px;border:1px solid var(--ink);border-radius:9px;color:var(--ink);font-weight:800;text-decoration:none;background:var(--white)}
.button.primary{background:var(--coral);box-shadow:0 3px 0 var(--ink)}
.button.dark{background:var(--ink);color:var(--white)}
.button:not(:disabled):hover{filter:brightness(1.09)}
#games{padding:44px 0 38px;scroll-margin-top:12px}
.shelf-head{display:flex;justify-content:space-between;align-items:flex-end;gap:14px;margin-bottom:21px}
.shelf-head h2{font-size:clamp(35px,4.2vw,52px)}
.shelf-head p{margin-top:6px;color:var(--muted)}
.counter{flex:none;border-bottom:2px solid var(--ink);padding:0 2px 3px;font-weight:800}
.cartridges{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,345px),1fr));gap:22px}
.cartridge{background:var(--white);border:1px solid var(--ink);border-radius:14px;overflow:hidden;box-shadow:0 4px 0 var(--ink);min-width:0}
.cartridge img{display:block;aspect-ratio:16/8;width:100%;object-fit:cover;background:#322351;border-bottom:1px solid var(--ink)}
.cartridge-face{padding:18px}
.tags{display:flex;gap:7px;flex-wrap:wrap}
.tag{font-size:13px;font-weight:700;background:#ece8e0;border-radius:5px;padding:3px 7px;overflow-wrap:anywhere}
.tag.ai{background:#e9defd}
.cartridge h3{font-weight:800;font-size:34px;margin-top:12px;overflow-wrap:anywhere}
.cartridge p{color:var(--muted);margin:7px 0 15px;overflow-wrap:anywhere}
.card-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px}
.online{font-size:14px;font-weight:800;color:var(--muted)}
.online::before{content:'';display:inline-block;width:8px;height:8px;margin-right:7px;border-radius:50%;background:#978ba4}
.online.active::before{background:#16825e}
.footer{display:flex;justify-content:space-between;gap:10px;border-top:1px solid var(--line);padding:19px 0 24px;color:var(--muted)}
dialog{width:min(440px,calc(100% - 28px));padding:23px;border:1px solid var(--ink);border-radius:18px;background:var(--white);color:var(--ink);box-shadow:0 6px 0 var(--ink)}
dialog::backdrop{background:#27213caa}
dialog form{display:grid;gap:13px}
dialog h2{font-size:37px;overflow-wrap:anywhere}
.close{position:absolute;top:10px;right:10px;width:41px;height:41px;border:1px solid var(--line);border-radius:50%;background:var(--paper);font-size:25px;line-height:1;color:var(--ink)}
.dialog-caption{color:var(--muted);font-weight:700;padding-right:40px}
.field{display:grid;gap:6px;font-weight:700}
.field input{background:white;border:1px solid #9889a8;border-radius:7px;padding:9px 12px;min-width:0;color:var(--ink)}
#join-code{text-transform:uppercase;letter-spacing:.16em}
fieldset{display:grid;gap:5px;min-width:0;margin:0;border:1px solid var(--line);border-radius:8px}
fieldset legend{font-weight:800}
fieldset label{padding-block:3px}
fieldset input{accent-color:#514178}
#lobby-feedback:not(:empty){color:#982e2e}
#lobby-feedback:empty{display:none}
.arena-page{padding-bottom:36px}
.back{display:inline-block;margin:5px 0 19px;font-weight:800;text-underline-offset:3px}
.arena-heading{display:flex;justify-content:space-between;gap:12px;align-items:end;margin-bottom:17px;flex-wrap:wrap}
.arena-heading h1{font-size:clamp(46px,6.5vw,83px);overflow-wrap:anywhere}
.arena-heading p{color:var(--muted);margin-top:4px}
.invite-code{display:flex;flex-wrap:wrap;align-items:center;gap:9px 13px}
.invite-code strong{letter-spacing:.13em;font-family:var(--display);font-size:25px;margin-left:5px}
#copy-status:not(:empty){width:100%;font-size:14px;color:var(--muted)}
.arena-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(210px,270px);gap:20px;align-items:start}
#screen{display:grid;place-items:center;min-height:200px;background:#2d2348;border:1px solid var(--ink);border-radius:15px;overflow:hidden}
.game-frame{display:block;width:100%;height:clamp(520px,48vw,610px);border:0}
.side{border:1px solid var(--line);border-radius:13px;background:var(--white);overflow:hidden}
.side section{padding:14px 16px}
.side section+section{border-top:1px solid var(--line)}
.side h2{font-size:25px;margin-bottom:8px}
.side p{font-size:14px;color:var(--muted);overflow-wrap:anywhere}
.side ul,.side ol{margin:5px 0 0;padding-left:21px;overflow-wrap:anywhere}
.side li+li{margin-top:5px}
#scores li span{margin-right:7px}
.emotes{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.emotes button{min-height:40px;border:1px solid var(--line);border-radius:6px;color:var(--ink);background:var(--paper);font-size:14px;font-weight:700}
.emotes button:not(:disabled):hover{background:var(--violet)}
#emote-status:not(:empty){margin-top:8px}
@media(max-width:800px){.wrap{width:calc(100% - 36px)}.hero{min-height:0}.hero-copy{padding:32px 0 32px 30px}.arena-layout{grid-template-columns:1fr}.game-frame{height:clamp(430px,86vw,600px)}.side{display:grid;grid-template-columns:repeat(3,1fr)}.side section+section{border-top:0;border-left:1px solid var(--line)}}
@media(max-width:570px){.masthead{min-height:65px}.mast-note{font-size:13px}.wordmark{font-size:25px}.wordmark img{width:29px;height:29px}.hero{grid-template-columns:1fr;border-radius:17px 17px 42px 17px}.hero-copy{padding:25px 22px 0}.hero h1{font-size:clamp(51px,12vw,70px)}.hero-copy>p:not(.hero-label){margin:14px 0}.hero-art{width:92%;height:162px;object-fit:cover;object-position:center 48%;max-width:390px;margin:-1px 0 7px}#games{padding-top:29px}.shelf-head{align-items:start}.shelf-head p{max-width:26ch}.counter{font-size:14px;margin-top:5px}.arena-page{width:calc(100% - 24px)}.game-frame{height:clamp(300px,82vw,420px)}.side{grid-template-columns:1fr 1fr}.side section:last-child{grid-column:1/-1;border-left:0;border-top:1px solid var(--line)}}
