:root{--ink:#51415e;--muted:#938698;--violet:#8970ad;--line:#e4d9e3;--paper:#fffcf6;font:14px system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);background:#f7f1e7;color-scheme:light}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{background:radial-gradient(ellipse at 5% 15%,#f4dbb755,transparent 45%),radial-gradient(ellipse at 90% 85%,#d6d3ec75,transparent 45%),#f7f1e7}button,input,select{font:inherit}button{cursor:pointer;color:inherit}button:disabled{opacity:.5;cursor:default}button:hover:not(:disabled){filter:brightness(1.025);transform:translateY(-2px)}button:active:not(:disabled){transform:translateY(1px)}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #aa83d0;outline-offset:3px}button{transition:transform .16s,filter .16s,background .16s}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-family:Georgia,"Times New Roman",serif;font-weight:500}h1{font-size:clamp(35px,3.9vw,58px);line-height:1.08;letter-spacing:-1.5px;margin-bottom:18px}h1 em{color:#aa765a;font-weight:400}h2{font-size:27px;margin-bottom:8px}h3{font-size:21px}p{line-height:1.7;color:var(--muted)}[hidden]{display:none!important}.eyebrow{display:block;font-size:9px;letter-spacing:1.9px;font-weight:800;color:#a68f78}.topbar{height:78px;max-width:1520px;padding:0 32px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:10px;background:none;border:0;text-align:left;font:22px Georgia,serif;line-height:1.05;padding:0;flex-shrink:0}.brand b{display:block;font-weight:500;color:#8e72a6}.brand small{font:7px system-ui;letter-spacing:1.8px;margin-top:6px;display:block;color:var(--muted)}.brand-icon{font-size:40px;color:#daa763;text-shadow:0 3px 0 #fff}.topbar nav{display:flex;gap:7px}.topbar nav button{border:0;border-radius:30px;background:transparent;padding:9px 16px;font-size:12px}.topbar nav button.active{background:#e9e0ec;color:#7c629b;font-weight:700}.top-actions{display:flex;align-items:center;gap:8px}.round-btn{width:34px;height:34px;border:1px solid var(--line);border-radius:50%;background:#fff9;font-size:18px}.top-avatar{padding:0;width:38px;height:38px;border:0;background:none;border-radius:50%}.top-avatar svg{width:100%;height:100%}.version{color:#b8a8b7;font-size:9px}.menu-scroll{height:calc(100dvh - 78px);overflow:auto;overscroll-behavior:contain;padding:30px 32px 50px}.page{max-width:1400px;margin:auto}.welcome-grid{display:grid;grid-template-columns:245px 1fr;gap:26px}.profile-card{background:linear-gradient(145deg,#fffcf6,#f2e6dd);border:1px solid #e6d8ce;border-radius:26px;text-align:center;padding:23px;align-self:stretch;position:relative;overflow:hidden}.profile-card #profilePortrait{width:114px;margin:0 auto 18px}.profile-card h2{font-size:25px;margin-top:10px}.profile-card .eyebrow{font-size:8px}.profile-numbers{display:flex;justify-content:space-around;margin:24px 0}.profile-numbers b{display:block;font-size:21px;color:#8b71aa}.profile-numbers span{font-size:10px;color:var(--muted)}.profile-card p{font:italic 13px Georgia;line-height:1.7;margin:19px 0 0}.hero-card{position:relative;overflow:hidden;background:linear-gradient(125deg,#fbecdb,#f7e6cd 65%,#f2dcae);border:1px solid #e7d4b4;border-radius:28px;padding:38px 40px;min-height:420px;display:flex;align-items:center;isolation:isolate;box-shadow:0 10px 32px #b9935520}.hero-copy{width:60%;position:relative;z-index:2}.hero-copy .eyebrow{margin-bottom:17px}.hero-copy p{font-size:13px;color:#99816e;max-width:360px;margin-bottom:16px}.hero-art{position:absolute;width:38%;right:2%;top:16%;filter:drop-shadow(0 12px 10px #bd8e5730);transform:rotate(8deg);animation:float 6s ease-in-out infinite}.hero-art:before{content:"";position:absolute;inset:14%;border-radius:50%;background:#fff1cd;box-shadow:0 0 80px #ffe8a0;z-index:-1}.relic-art{display:block;width:100%;height:auto}.hero-target{display:flex;align-items:center;gap:9px;margin-bottom:18px}.hero-target>span{width:44px;height:44px}.hero-target b{display:block;font-size:12px}.hero-target small{display:block;color:#a1846d;font-size:10px;margin-top:3px}.primary{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:18px;flex-wrap:wrap;padding:14px 25px 18px;min-height:51px;border:1px solid #7f659b;border-bottom:4px solid #76608e;border-radius:15px;background:linear-gradient(#a38cbe,#8b71aa);color:#fff8ed;box-shadow:0 5px 11px #9275a528;font-weight:700;font-size:14px}.primary>span{font-size:21px}.primary>small{width:100%;font-size:9px;font-weight:400;margin-top:-9px;color:#e9dcf7}.secondary,.soft-button{border:1px solid #ded0df;background:#fffaf5;border-bottom:3px solid #e3d6df;padding:11px 17px;border-radius:12px;font-size:12px;font-weight:600}.secondary{color:#816392;background:#efe4f0;border-color:#dac9e1}.soft-button{background:#ffffff75}.cloud{position:absolute;background:#fff6df;border-radius:100px;width:240px;height:80px;opacity:.55;z-index:-1}.cloud:before,.cloud:after{content:"";position:absolute;bottom:24px;width:115px;height:95px;border-radius:50%;background:inherit}.cloud:before{left:25px}.cloud:after{right:23px}.cloud-one{right:-45px;bottom:-20px}.cloud-two{right:60px;top:30px;transform:scale(.55);opacity:.3}.floating-star{position:absolute;color:#d49b62;z-index:1;animation:twinkle 4s infinite;font-size:32px}.star-one{right:34%;top:13%}.star-two{right:7%;bottom:14%;font-size:22px;animation-delay:1.5s}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:30px 0 18px}.section-heading h2{margin:6px 0 0}.pill{display:inline-block;padding:7px 12px;background:#ede4e9;color:#947ba1;border-radius:20px;font-size:10px;white-space:nowrap}.relic-choices{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.relic-choice{padding:15px 8px 13px;border-radius:18px;border:1px solid #e3d8dc;background:#fffaf3;text-align:center;position:relative;box-shadow:0 3px 0 #e7ddd775}.relic-choice>div{width:100px;height:100px;max-width:90%;margin:auto}.relic-choice b{display:block;font:16px Georgia;margin:8px 0}.relic-choice small{color:#a18d95;font-size:10px}.relic-choice[aria-pressed=true]{border:2px solid #cda35e;background:#fff4dc;padding:14px 7px 12px;box-shadow:0 0 0 4px #eacb8e20}.relic-choice .owned{position:absolute;right:8px;top:8px;color:#7fac86;background:#e7f2dc;border-radius:50%;width:20px;height:20px;font-size:12px;line-height:20px}.room-heading{flex-wrap:wrap}.room-heading>div{margin-right:auto}.room-heading form{display:flex;gap:7px}input,select{border:1px solid #dfd2df;background:#fffdf7;border-radius:10px;padding:11px 13px;color:var(--ink);min-width:0;outline-offset:2px}#joinCode{width:130px;text-transform:uppercase;letter-spacing:2px;font-size:11px}.rooms-list{display:grid;gap:10px;grid-template-columns:repeat(2,minmax(0,1fr))}.empty-rooms{grid-column:1/-1;text-align:center;border:1px dashed #d9c8d5;border-radius:17px;padding:30px;color:#ad99ac;font-size:13px}.room-row{display:flex;gap:12px;align-items:center;background:#fffcf5;border:1px solid var(--line);border-radius:18px;padding:11px 17px}.room-row .room-art{width:63px;flex-shrink:0}.room-row .room-info{flex:1;min-width:0}.room-info b{display:block;font:18px Georgia}.room-info span,.room-info small{display:block;font-size:10px;color:var(--muted);margin-top:5px}.room-row button{font-size:11px;padding:10px 12px}.page-heading{max-width:650px;margin:24px 0 30px}.page-heading h1{margin:12px 0 18px}.page-heading p{font-size:13px}.collection-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.collection-card{padding:24px;text-align:center;border:1px solid #e6d8e0;border-radius:23px;background:#fffaf4}.collection-card>div{max-width:235px;margin:auto}.collection-card.not-owned>div{filter:grayscale(.85);opacity:.4}.collection-card h2{font-size:23px;margin-top:15px}.collection-card p{font-size:12px;min-height:43px}.collection-card small{display:block;color:var(--muted);font-size:11px;margin:9px 0 20px}.collection-card .collected-label{color:#71a080;background:#eaf2dc;padding:7px 15px;border-radius:22px;display:inline-block;font-size:10px}.ranking-list{max-width:950px;border:1px solid #e6d8df;border-radius:22px;overflow:hidden}.ranking-row{display:flex;align-items:center;gap:15px;padding:15px 25px;background:#fffaf5;border-bottom:1px solid #ebdee5}.ranking-row:last-child{border:0}.ranking-row.me{background:#eee7f5}.ranking-row .place{font:23px Georgia;color:#bd9b68;width:25px}.ranking-row .avatar{width:46px;flex-shrink:0}.ranking-row .info{flex:1;min-width:0}.ranking-row b{display:block;font-size:14px}.ranking-row small{color:var(--muted);font-size:10px}.ranking-row>strong{font-size:20px;color:#9272ae}.profile-editor{display:grid;grid-template-columns:280px minmax(0,550px);gap:50px;background:#fffbf5;border:1px solid var(--line);padding:35px;border-radius:25px;max-width:950px}.profile-editor>aside{text-align:center}.profile-editor #avatarPreview{max-width:240px;margin:12px auto 25px}.profile-editor aside>b{font:26px Georgia}.profile-editor aside p{font-size:12px;margin-top:14px}.field-label{display:block;font-size:12px;color:#9b889d}.field-label>input,.field-label>select{display:block;width:100%;margin:9px 0 24px}.profile-editor h3{margin:22px 0 12px;font-size:20px}.avatar-choices{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.avatar-choice{background:#f6efec;border:2px solid transparent;padding:6px;border-radius:16px}.avatar-choice[aria-pressed=true]{border-color:#b897ca;background:#ece1f2}.avatar-choice svg{width:100%;height:100%}.hue-choices{display:flex;gap:10px;margin-bottom:27px}.hue-choice{width:34px;height:34px;border-radius:50%;border:3px solid white;box-shadow:0 0 0 1px #dbcad9}.hue-choice[aria-pressed=true]{box-shadow:0 0 0 3px #a78bbd}.profile-editor #profileSaved{font-size:11px;margin-left:15px;color:#79a687}
/* Four boards surround one shared artifact. The owner's board stays directly controllable. */
body.playing .topbar nav{display:none}.game{height:calc(100dvh - 78px);padding:14px 24px 18px;max-width:1520px;margin:auto;display:flex;flex-direction:column}.match-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-shrink:0;margin-bottom:14px}.match-bar h2{font-size:24px;margin:5px 0 0}.match-actions{display:flex;align-items:center;gap:9px}.stage{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,1.05fr) minmax(0,1fr);grid-template-rows:repeat(2,minmax(0,1fr));gap:15px}.slot-zero{grid-column:1;grid-row:1}.slot-one{grid-column:1;grid-row:2}.slot-two{grid-column:3;grid-row:1}.slot-three{grid-column:3;grid-row:2}.relic-panel{grid-column:2;grid-row:1/3;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:0;background:radial-gradient(ellipse at 50% 40%,#fff9e7,transparent 65%);padding:5px 15px}.relic-panel>h2{text-align:center;font-size:24px;margin:10px 0 0}.relic-assembly{position:relative;width:min(100%,285px);margin:5px auto}.relic-assembly:before{content:"";position:absolute;inset:13%;border:1px dashed #d5bd9f;border-radius:50%;box-shadow:0 0 45px #ecc87415}.relic-piece.missing{opacity:.14;filter:grayscale(1)}.relic-piece.complete{opacity:1}.relic-piece.just-completed{animation:piece-in .9s cubic-bezier(.17,.9,.4,1);transform-origin:180px 180px}.assembly-count{display:flex;align-items:center;gap:10px;margin-bottom:16px}.assembly-count strong{font:26px Georgia;color:#af8657}.assembly-count span{font-size:10px;color:#ac98a3}.color-progress{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%;max-width:340px}.color-chip{position:relative;border:1px solid #e1d3d9;background:#fffcf5;padding:7px;border-radius:11px;overflow:hidden;display:flex;align-items:center;gap:7px;font-size:9px;color:#9c8b9a;min-width:0}.color-chip:after{content:"";position:absolute;left:0;bottom:0;height:3px;width:var(--fill,0%);background:var(--gem);transition:width .5s}.color-chip .color-mark{width:19px;height:19px;border-radius:5px;background:var(--gem);color:white;display:block;padding:3px;flex-shrink:0}.color-mark svg{width:100%;height:100%}.color-chip.complete{border-color:#c4d4b6;background:#f2f6e6}.color-chip.complete:after{background:#a8c48d}.color-chip.just-completed{animation:chip-pop .65s ease}.relic-hint{text-align:center;font-size:10px;line-height:1.7;margin:16px 0 0;color:#b09bab}.board-slot{min-width:0;min-height:0}.player-panel{height:100%;padding:9px 10px 11px;border:1px solid #e6d9e3;border-radius:19px;background:#fffaf3;display:flex;flex-direction:column;align-items:center;position:relative;overflow:hidden;box-shadow:0 4px 0 #dfd2dc55}.player-panel.own{background:#fbf4ff;border:2px solid #bca4d1;padding:8px 9px 10px}.player-header{height:43px;flex-shrink:0;width:100%;display:flex;align-items:center;gap:8px;padding:0 2px 5px}.player-header .avatar{height:34px;width:34px;flex-shrink:0}.player-header .info{flex:1;min-width:0}.player-header b{display:block;font-size:11px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.player-header small{font-size:8px;color:#aa92aa;display:block;margin-top:3px;white-space:nowrap}.player-header .contribution{text-align:right;font-size:13px;color:#ad8abd;min-width:34px}.contribution small{font-size:7px}.own-label{font-size:7px;letter-spacing:1px;color:#aa8aba;background:#ede1f5;border-radius:4px;margin-left:6px;padding:3px 4px}.board{position:relative;flex-shrink:0;background:#e7dce8;border:3px solid #ddcfe0;border-radius:12px;width:var(--board-size,240px);height:var(--board-size,240px);max-width:100%;max-height:100%;touch-action:none;user-select:none;overflow:hidden;box-shadow:inset 0 2px 4px #76608519}.board:before{content:"";position:absolute;inset:0;background-image:linear-gradient(#fff2 1px,transparent 1px),linear-gradient(90deg,#fff2 1px,transparent 1px);background-size:calc(100% / var(--grid-size,7)) calc(100% / var(--grid-size,7));pointer-events:none}.own .board{background:#e3d4e6;border-color:#ccbad5}.tile{position:absolute;top:0;left:0;width:calc(100% / var(--grid-size,7));height:calc(100% / var(--grid-size,7));padding:2px;background:transparent;border:0;transition:transform .28s cubic-bezier(.18,.8,.28,1);touch-action:none;user-select:none;will-change:transform;border-radius:8px}.tile:hover:not(:disabled),.tile:active:not(:disabled){transform:var(--position)!important;filter:none}.tile-face{display:flex;align-items:center;justify-content:center;width:100%;height:100%;border-radius:7px;background:linear-gradient(145deg,#ffffff45,transparent 70%),var(--gem);color:#fff8ed;border:1px solid #ffffff75;box-shadow:inset 0 2px 0 #fff5,inset 0 -3px 0 #5c314829,0 1px 2px #66506828;transition:box-shadow .16s,filter .16s;pointer-events:none}.tile svg{width:44%;height:44%;filter:drop-shadow(0 1px 0 #73546d22);pointer-events:none}.tile.selected{z-index:3}.tile.selected .tile-face{box-shadow:inset 0 0 0 2px #fff9,0 0 0 2px #a975c8,0 0 15px #9562c676;filter:brightness(1.13);transform:scale(.94)}.tile.hint .tile-face{animation:hint 1s ease-in-out infinite}.tile.clearing{z-index:4}.tile.clearing .tile-face{animation:clear-tile .24s ease-in forwards}.tile.invalid .tile-face{animation:shake .35s}.tile:disabled{opacity:1;cursor:default}.board.reshuffling .tile-face{animation:reshuffle .32s ease}.empty-panel{display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px dashed #d8cad9;border-radius:19px;height:100%;color:#c4b4c4;background:#faf5ed77;font-size:11px}.empty-panel span{font-size:30px;margin-bottom:7px}.board-toast{position:absolute;top:48%;left:50%;transform:translate(-50%,-50%);z-index:8;background:#fff8eced;border:1px solid #e9dabc;border-radius:30px;padding:8px 15px;box-shadow:0 5px 10px #7b5e8728;white-space:nowrap;font-size:11px;color:#a4855e;pointer-events:none;animation:board-toast 1.2s forwards}.waiting{margin:auto;background:#fffbf4;border:1px solid #e6d6db;border-radius:25px;text-align:center;padding:30px;max-width:600px;width:100%;overflow:auto}.waiting #waitingArt{width:140px;margin:auto}.waiting h2{margin:14px 0}.waiting p{font-size:12px}.waiting>strong{font-size:30px;color:#af85be;letter-spacing:5px;display:block;margin:20px}.waiting #waitingPlayers{display:flex;justify-content:center;gap:20px}.waiting-player{font-size:10px}.waiting-player>div{width:45px;margin:auto}.pause-overlay{position:fixed;inset:0;background:#f6eee3c9;backdrop-filter:blur(5px);z-index:20;display:grid;place-items:center}.pause-overlay>div{text-align:center;background:#fff9ef;border:1px solid #e1d0dd;padding:40px;border-radius:24px;box-shadow:0 15px 60px #82659320}.pause-overlay>div>span{font-size:55px;color:#b495c8}.pause-overlay h2{margin-top:15px}.pause-overlay p{font-size:12px}.field-label select{width:100%}dialog{width:min(500px,calc(100vw - 24px));max-height:calc(100dvh - 30px);padding:30px 32px;border:1px solid #e0cfda;border-radius:25px;background:#fffaf2;color:var(--ink);box-shadow:0 20px 70px #78586c40;overflow:auto}dialog::backdrop{background:#5141586b;backdrop-filter:blur(5px)}dialog .eyebrow{margin-bottom:13px}dialog h2{font-size:29px}.close{position:absolute;right:16px;top:14px;background:none;border:0;font-size:23px;color:#b39dad}.close:hover{color:#75537f}dialog .primary{width:100%}#createArt{width:110px;float:right;margin:-10px 0 0}#createForm .field-label{clear:both}#createForm p{font-size:11px}#helpDialog ol{padding-left:20px;margin:24px 0}#helpDialog li{padding-left:5px;margin-bottom:17px;font-size:12px;line-height:1.7;color:#a08b9b}#helpDialog li b{color:#796084}.tutorial-gems{position:relative;width:175px;height:94px;margin:22px auto}.demo-gem{position:absolute;top:0;left:0;background:#e8bf65;border-radius:8px;color:#fff2d0;width:40px;height:40px;display:grid;place-items:center;font-size:23px;border:1px solid #c69856;box-shadow:inset 0 -4px 0 #a5773829}.demo-gem:nth-child(2){left:44px}.demo-gem.other{left:88px;background:#b999d8;border-color:#9c77ba;animation:demo-swap 4s infinite}.demo-gem.moving{left:88px;top:44px;animation:demo-swap-back 4s infinite}#resultDialog{text-align:center;width:min(550px,calc(100vw - 24px))}#resultArt{width:175px;margin:auto;animation:float 5s infinite}#resultText{font-size:13px}#resultPlayers{margin:18px 0 25px}.result-row{display:flex;align-items:center;gap:10px;padding:9px 13px;background:#f3eaf4;border-radius:10px;margin:6px 0;text-align:left;font-size:11px}.result-row .avatar{width:32px}.result-row b{flex:1}.result-row span{font-size:10px;color:#9c81ad}#effects{position:fixed;inset:0;z-index:30;pointer-events:none;overflow:hidden}.flying-gem{position:absolute;width:14px;height:14px;border-radius:4px;background:var(--gem);box-shadow:0 0 9px var(--gem);animation:fly-gem .75s cubic-bezier(.25,.55,.55,1) forwards}.confetti{position:absolute;width:8px;height:12px;background:var(--gem);animation:confetti 2s ease-out forwards;opacity:0}.spark{position:absolute;color:var(--gem);font-size:20px;animation:spark .65s ease-out forwards}#toast{position:fixed;left:50%;bottom:22px;transform:translateX(-50%);padding:13px 20px;background:#816591;color:#fff8eb;border:1px solid #aa8cbb;border-radius:15px;box-shadow:0 8px 25px #80668c40;font-size:12px;max-width:calc(100vw - 26px);text-align:center;z-index:60}
@keyframes float{0%,100%{transform:translateY(0) rotate(5deg)}50%{transform:translateY(-9px) rotate(8deg)}}@keyframes twinkle{0%,100%{opacity:.5;transform:scale(.8) rotate(-10deg)}50%{opacity:1;transform:scale(1.1) rotate(10deg)}}@keyframes hint{50%{filter:brightness(1.28);box-shadow:inset 0 0 0 2px #fff,0 0 12px #fff9;transform:scale(.90)}}@keyframes clear-tile{0%{transform:scale(1);filter:brightness(1)}45%{transform:scale(1.15);filter:brightness(1.65)}100%{transform:scale(.08) rotate(40deg);opacity:0}}@keyframes shake{25%{transform:translateX(-3px)}75%{transform:translateX(3px)}}@keyframes reshuffle{50%{transform:scale(.25) rotate(15deg);opacity:.2}}@keyframes board-toast{0%{opacity:0;transform:translate(-50%,-30%) scale(.9)}20%,75%{opacity:1;transform:translate(-50%,-50%) scale(1)}100%{opacity:0;transform:translate(-50%,-90%)}}@keyframes fly-gem{0%{opacity:.9;transform:translate(0,0) scale(1)}35%{opacity:1;transform:translate(calc(var(--dx)*.25),calc(var(--dy)*.15 - 30px)) scale(.9) rotate(30deg)}100%{opacity:0;transform:translate(var(--dx),var(--dy)) scale(.12) rotate(140deg)}}@keyframes piece-in{0%{opacity:0;transform:scale(.3);filter:brightness(3)}60%{transform:scale(1.09);filter:brightness(1.4)}100%{transform:scale(1);filter:none}}@keyframes chip-pop{50%{transform:scale(1.12);box-shadow:0 0 20px #efd09288}}@keyframes confetti{10%{opacity:1}100%{opacity:0;transform:translate(var(--dx),var(--dy)) rotate(650deg)}}@keyframes spark{0%{opacity:1;transform:translate(0,0) scale(.8)}100%{opacity:0;transform:translate(var(--dx),var(--dy)) scale(.1) rotate(80deg)}}@keyframes demo-swap{25%,65%{transform:translateY(44px)}80%,100%{transform:translateY(0)}}@keyframes demo-swap-back{25%,65%{transform:translateY(-44px)}80%,100%{transform:translateY(0)}}
@media(max-width:1100px){.topbar{padding:0 22px}.brand{font-size:20px}.topbar nav button{padding:8px 10px}.menu-scroll{padding:24px 22px 35px}.welcome-grid{grid-template-columns:210px 1fr;gap:20px}.hero-card{padding:28px;min-height:380px}.hero-copy{width:64%}.hero-art{width:35%;right:0}.relic-choice b{font-size:13px}.relic-choice>div{height:80px;width:80px}.relic-choices{gap:8px}.game{padding:12px 16px}.stage{gap:10px;grid-template-columns:minmax(0,1fr) minmax(220px,1fr) minmax(0,1fr)}.relic-panel{padding:4px 10px}.relic-assembly{max-width:220px}.color-progress{gap:5px}.color-chip{padding:5px;gap:5px;font-size:8px}.color-chip .color-mark{width:16px;height:16px}.relic-panel h2{font-size:21px}.relic-hint{font-size:9px}.player-header .info small{font-size:7px}}
@media(max-width:720px) and (orientation:portrait){.topbar{height:92px;padding:10px 14px 0;flex-wrap:wrap;gap:0;align-content:space-between}.brand{font-size:17px}.brand b{display:inline}.brand small{font-size:6px;letter-spacing:1.1px}.brand-icon{font-size:29px}.top-actions{gap:6px}.round-btn{width:28px;height:28px;font-size:16px}.top-avatar{width:30px;height:30px}.version{display:none}.topbar nav{order:3;width:100%;padding:6px 0;gap:5px;justify-content:center}.topbar nav button{flex:1;padding:8px 4px;font-size:11px}.menu-scroll{height:calc(100dvh - 92px);padding:17px 14px 28px}.welcome-grid{display:flex;flex-direction:column-reverse;gap:15px}.hero-card{min-height:350px;padding:26px 20px;border-radius:22px}.hero-copy{width:75%}.hero-copy h1{font-size:37px;letter-spacing:-1px}.hero-copy p{font-size:11px;max-width:230px}.hero-copy .eyebrow{font-size:7px;letter-spacing:1.3px}.hero-art{width:43%;right:-5%;top:22%;opacity:.8}.hero-target{max-width:240px}.hero-target b{font-size:11px}.hero-target small{font-size:9px}.hero-copy .primary{padding:12px 22px 16px;font-size:13px}.profile-card{display:flex;align-items:center;gap:12px;padding:13px 15px;text-align:left;border-radius:18px}.profile-card #profilePortrait{width:50px;margin:0;flex-shrink:0}.profile-card>.eyebrow,.profile-card>p,.profile-card>.soft-button{display:none}.profile-card>h2{font-size:18px;margin:0;flex:1}.profile-numbers{margin:0;gap:13px;text-align:center}.profile-numbers b{font-size:14px}.profile-numbers span{font-size:8px}.section-heading{margin:23px 0 13px;gap:8px}.section-heading h2{font-size:24px}.section-heading .eyebrow{font-size:7px;letter-spacing:1.1px}.section-heading .pill{font-size:8px;padding:6px 9px}.relic-choices{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.relic-choice{padding:9px 5px}.relic-choice>div{width:77px;height:77px}.relic-choice b{font-size:12px;margin:4px 0}.relic-choice small{font-size:8px}.relic-choice[aria-pressed=true]{padding:8px 4px}.room-heading>div{width:100%}.room-heading>button{font-size:11px;padding:10px 12px}.room-heading form{flex:1;min-width:0}.room-heading form input{width:0;flex:1;padding:10px 9px;letter-spacing:1px}.room-heading form button{padding:10px;font-size:11px}.rooms-list{grid-template-columns:1fr}.room-row{padding:10px;gap:9px}.room-row .room-art{width:50px}.room-info b{font-size:17px}.room-info span,.room-info small{font-size:8px}.page-heading{margin:12px 0 22px}.page-heading h1{font-size:36px}.collection-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.collection-card{padding:15px 11px}.collection-card h2{font-size:18px;margin-top:12px}.collection-card p{font-size:10px;min-height:70px}.collection-card small{font-size:9px;margin:7px 0 12px}.collection-card .secondary{font-size:10px;padding:9px}.ranking-row{padding:13px 15px;gap:10px}.ranking-row .avatar{width:38px}.ranking-row .place{font-size:18px;width:18px}.ranking-row b{font-size:12px}.ranking-row small{font-size:9px}.ranking-row>strong{font-size:17px}.profile-editor{display:flex;flex-direction:column;padding:22px;gap:15px}.profile-editor #avatarPreview{width:120px;margin:0 auto 14px}.profile-editor aside>b{font-size:23px}.profile-editor aside p{margin:10px 0}.avatar-choices{gap:8px}.hue-choices{justify-content:space-between}.profile-editor .primary{width:100%}.profile-editor #profileSaved{display:block;margin:10px 0;text-align:center}body.playing .topbar{height:48px;padding:6px 12px;align-content:center;flex-wrap:nowrap}body.playing .brand small{display:none}body.playing .top-avatar{display:none}.game{height:calc(100dvh - 48px);padding:7px 10px 9px}.match-bar{margin-bottom:7px;gap:5px;min-height:37px}.match-bar h2{font-size:15px;max-width:165px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.match-bar .eyebrow{font-size:6px;letter-spacing:.8px}.match-actions{gap:5px}.match-actions .pill{display:none}.match-actions button{padding:7px 8px;font-size:9px;border-bottom-width:2px;border-radius:9px}.stage{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:105px minmax(0,1fr) 88px;gap:7px}.slot-zero{grid-column:1/4;grid-row:2}.slot-one{grid-column:1;grid-row:3}.slot-two{grid-column:2;grid-row:3}.slot-three{grid-column:3;grid-row:3}.relic-panel{grid-column:1/4;grid-row:1;display:grid;grid-template-columns:84px 1fr;grid-template-rows:20px 1fr;padding:0 3px;gap:0 8px;align-items:center;background:#fff7e4a3;border:1px solid #e4d3c4;border-radius:15px}.relic-panel>.eyebrow,.relic-panel>h2,.relic-hint{display:none}.relic-assembly{grid-column:1;grid-row:1/3;width:84px;margin:0}.assembly-count{grid-column:2;grid-row:1;margin:0;gap:6px}.assembly-count strong{font-size:16px}.assembly-count span{font-size:8px}.color-progress{grid-column:2;grid-row:2;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;max-width:none}.color-chip{padding:3px;gap:3px;font-size:6px;border-radius:6px;border-color:#e8dddc}.color-chip .color-mark{width:11px;height:11px;border-radius:3px;padding:2px}.color-chip:after{height:2px}.slot-zero .player-panel{padding:6px 7px 7px;border-radius:15px}.slot-zero .player-header{height:35px;max-width:400px;margin:0 auto 4px}.slot-zero .player-header .avatar{width:29px;height:29px}.slot-zero .player-header b{font-size:11px}.slot-zero .player-header small{font-size:8px}.slot-zero .contribution{font-size:13px}.slot-one .player-panel,.slot-two .player-panel,.slot-three .player-panel{padding:4px;border-radius:10px;box-shadow:none}.slot-one .player-header,.slot-two .player-header,.slot-three .player-header{height:21px;gap:4px;justify-content:center;padding:0 0 3px}.slot-one .avatar,.slot-two .avatar,.slot-three .avatar{width:18px;height:18px}.slot-one .info,.slot-two .info,.slot-three .info{flex:0 1 auto}.slot-one .info b,.slot-two .info b,.slot-three .info b{font-size:7px}.slot-one .info small,.slot-two .info small,.slot-three .info small{display:none}.slot-one .contribution,.slot-two .contribution,.slot-three .contribution{display:none}.slot-one .board,.slot-two .board,.slot-three .board{border-width:1px;border-radius:5px}.slot-one .tile,.slot-two .tile,.slot-three .tile{padding:.7px}.slot-one .tile-face,.slot-two .tile-face,.slot-three .tile-face{border-radius:2px;border:0;box-shadow:none}.slot-one .tile svg,.slot-two .tile svg,.slot-three .tile svg{width:42%;height:42%}.waiting{padding:20px}.waiting #waitingArt{width:110px}.waiting h2{font-size:25px}.waiting #inviteCode{font-size:27px}.waiting p{font-size:11px}dialog{padding:26px 22px}dialog h2{font-size:26px}#helpDialog li{font-size:11px}#resultArt{width:135px}#resultDialog p{font-size:11px}}
@media(max-width:950px) and (orientation:landscape){.topbar{height:53px;padding:0 16px}.brand{font-size:18px}.brand-icon{font-size:29px}.brand small{display:none}.topbar nav button{font-size:10px;padding:7px 9px}.round-btn{width:29px;height:29px}.top-avatar{width:31px;height:31px}.menu-scroll{height:calc(100dvh - 53px);padding:18px}.game{height:calc(100dvh - 53px);padding:6px 12px 9px}.match-bar{margin-bottom:7px}.match-bar h2{font-size:18px}.match-bar .eyebrow{font-size:6px}.match-actions button{padding:7px 10px;font-size:10px}.stage{grid-template-columns:minmax(0,1.25fr) minmax(190px,1fr) minmax(0,.75fr);grid-template-rows:repeat(3,minmax(0,1fr));gap:7px}.slot-zero{grid-column:1;grid-row:1/4}.relic-panel{grid-column:2;grid-row:1/4}.slot-one{grid-column:3;grid-row:1}.slot-two{grid-column:3;grid-row:2}.slot-three{grid-column:3;grid-row:3}.relic-panel>.eyebrow,.relic-hint{display:none}.relic-panel h2{font-size:17px;margin:0}.relic-assembly{max-width:115px;margin:0}.assembly-count{margin:0 0 7px;gap:7px}.assembly-count strong{font-size:19px}.assembly-count span{font-size:8px}.color-progress{grid-template-columns:repeat(4,1fr);gap:3px}.color-chip{font-size:6px;padding:3px;gap:3px;border-radius:5px}.color-chip .color-mark{width:12px;height:12px;padding:2px}.slot-one .player-panel,.slot-two .player-panel,.slot-three .player-panel{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:8px;padding:5px;border-radius:10px}.slot-one .player-header,.slot-two .player-header,.slot-three .player-header{width:72px;height:auto;flex-shrink:1;flex-direction:column;gap:3px;text-align:center}.slot-one .info b,.slot-two .info b,.slot-three .info b{font-size:9px}.slot-one .info small,.slot-two .info small,.slot-three .info small{font-size:7px;white-space:normal}.slot-one .avatar,.slot-two .avatar,.slot-three .avatar{width:24px;height:24px}.slot-one .contribution,.slot-two .contribution,.slot-three .contribution{display:none}.slot-one .board,.slot-two .board,.slot-three .board{border-width:1px;border-radius:5px}.slot-one .tile,.slot-two .tile,.slot-three .tile{padding:.6px}.slot-one .tile-face,.slot-two .tile-face,.slot-three .tile-face{border-radius:2px;border:0;box-shadow:none}.own-label{display:none}.player-header{height:35px}.player-header .avatar{height:29px;width:29px}.waiting{padding:15px}.waiting #waitingArt{width:75px}.waiting h2{font-size:22px;margin:8px}.waiting p{margin:8px 0;font-size:10px}.waiting>strong{margin:10px;font-size:24px}.waiting #waitingPlayers{gap:12px}.waiting-player>div{width:28px}.waiting .primary{font-size:12px;min-height:38px;padding:9px 20px}.pause-overlay>div{padding:20px}}
@media(max-height:630px) and (orientation:portrait){.stage{grid-template-rows:89px minmax(0,1fr) 69px}.relic-panel{grid-template-columns:70px 1fr}.relic-assembly{width:70px}.color-chip{font-size:5px;padding:2px;gap:2px}.color-chip .color-mark{width:10px;height:10px}.slot-zero .player-header{height:31px}.tile{padding:1.5px}.tile-face{border-radius:5px}.color-progress{gap:2px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.flying-gem,.spark,.confetti{display:none}.relic-piece.complete{opacity:1}}
.board{margin:auto 0}
@media(min-height:750px) and (max-width:720px) and (orientation:portrait){.stage{grid-template-rows:150px minmax(0,1fr) 112px}.relic-panel{grid-template-columns:125px 1fr;grid-template-rows:30px 1fr}.relic-assembly{width:125px}.assembly-count strong{font-size:21px}.color-progress{gap:5px}.color-chip{font-size:7px;padding:5px}.color-chip .color-mark{width:15px;height:15px}}
@media(max-width:720px) and (orientation:portrait){.slot-one .info small,.slot-two .info small,.slot-three .info small{display:block;font-size:5px;line-height:1.1;margin-top:2px;white-space:nowrap}.slot-zero .board{margin:auto 0}}
.game-paused *,.game-paused *:before,.game-paused *:after{animation-play-state:paused!important}
/* More space for boards, with one shared team timer. */
body.playing .topbar{height:60px}
.game{height:calc(100dvh - 60px);max-width:1680px;padding:8px 16px 10px}
.match-bar{margin-bottom:8px}
.match-bar h2{font-size:21px;margin:3px 0 0}
.stage{gap:10px;grid-template-columns:minmax(0,1fr) minmax(220px,.72fr) minmax(0,1fr)}
.player-panel{padding:5px 6px 6px}
.player-panel.own{padding:4px 5px 5px}
.player-header{height:36px}
.match-timer{display:flex;flex-direction:column;align-items:center;min-width:66px;padding:5px 11px;border:1px solid #e5d4b6;border-radius:12px;background:#fff6df;color:#96714b;line-height:1.1;font-variant-numeric:tabular-nums}
.match-timer span{font-size:7px;letter-spacing:1px;margin-bottom:3px}
.match-timer strong{font-size:21px;font-weight:700}
.match-timer.urgent{color:#b14e66;background:#fff0ee;border-color:#e8a7ac}
.match-timer.urgent strong{animation:timer-pulse 1s ease-in-out infinite}
.match-timer.timer-paused{color:#a28fa6;background:#f0e9f3;border-color:#ded1e6}
#resultDialog.lost #resultArt{animation:none;opacity:.8}
#resultDialog.lost h2{color:#ad6478}
@keyframes timer-pulse{50%{opacity:.55}}
@media(max-width:720px) and (orientation:portrait){
 body.playing .topbar{height:48px}
 .game{height:calc(100dvh - 48px);padding:5px 6px 7px}
 .match-bar{margin-bottom:5px;gap:4px}
 .match-bar>div:first-child{min-width:0;flex:1}
 .match-bar h2{font-size:13px;margin:2px 0 0;max-width:100%;overflow:hidden;text-overflow:ellipsis}
 .match-actions{flex-shrink:0;gap:4px}
 .match-actions button{padding:6px;font-size:8px}
 .match-timer{min-width:43px;padding:4px 5px;border-radius:8px}
 .match-timer span{font-size:5px;letter-spacing:.5px;margin-bottom:2px}
 .match-timer strong{font-size:16px}
 .stage{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:98px minmax(0,1fr) 88px;gap:5px}
 .slot-zero .player-panel{padding:4px 5px 5px}
 .slot-zero .player-header{height:32px;margin-bottom:2px}
}
@media(min-height:750px) and (max-width:720px) and (orientation:portrait){
 .stage{grid-template-rows:120px minmax(0,1fr) 112px}
 .relic-panel{grid-template-columns:102px 1fr}
 .relic-assembly{width:102px}
}
@media(max-height:630px) and (orientation:portrait){.stage{grid-template-rows:78px minmax(0,1fr) 75px}}
@media(max-width:950px) and (orientation:landscape){
 body.playing .topbar{height:48px}
 .game{height:calc(100dvh - 48px);padding:5px 8px 7px}
 .stage{grid-template-columns:minmax(0,1.35fr) minmax(174px,.85fr) minmax(0,.8fr);grid-template-rows:repeat(3,minmax(0,1fr));gap:5px}
 .match-bar h2{font-size:17px}
 .match-timer{padding:3px 8px;min-width:54px}
 .match-timer span{font-size:6px}
 .match-timer strong{font-size:18px}
}
/* Keep the growing relic catalogue near the room list. */
.relic-choices{max-height:420px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:4px;align-content:start;scroll-padding:5px}
@media(max-width:720px) and (orientation:portrait){.relic-choices{max-height:330px}}
/* Rooms remain visible; the catalogue opens only when choosing a quick game. */
.welcome-grid{grid-template-columns:240px minmax(0,1fr);gap:16px}
.lobby-profile{padding:15px;display:grid;grid-template-columns:58px minmax(0,1fr);gap:7px 12px;align-content:center;text-align:left}
.lobby-profile #profilePortrait{width:58px;margin:0;grid-row:1/4;align-self:center}
.lobby-profile>.eyebrow,.lobby-profile>p{display:none}
.lobby-profile>h2{font-size:20px;margin:0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lobby-profile .profile-numbers{margin:0;justify-content:flex-start;gap:15px;text-align:left}
.lobby-profile .profile-numbers b{font-size:17px}
.lobby-profile .profile-numbers span{font-size:8px}
.lobby-profile>.soft-button{grid-column:2;font-size:9px;padding:7px 9px}
.lobby-hero{min-height:0;padding:18px 24px}
.lobby-hero .hero-copy{width:calc(100% - 130px)}
.lobby-hero h1{font-size:27px;margin:6px 0;letter-spacing:-.4px}
.lobby-hero p{font-size:11px;margin:0 0 10px;line-height:1.5}
.lobby-hero .hero-art{width:120px;right:10px;top:50%;transform:translateY(-50%)}
.lobby-hero .primary{padding:9px 18px 12px;min-height:43px;font-size:12px;gap:12px}
.lobby-hero .primary>small{font-size:8px;margin-top:-7px}
.lobby-hero .floating-star{display:none}
.room-heading{margin-top:19px}
#quickDialog{width:min(900px,calc(100vw - 24px));padding:25px}
#quickDialog h2{margin-bottom:10px;padding-right:25px}
#quickDialog .quick-note{font-size:12px;margin:0 0 10px}
#quickDialog .quick-status{font-size:12px;color:#8970ad;min-height:18px;line-height:1.4;margin:0 0 8px}
#quickDialog .relic-choices{grid-template-columns:repeat(4,minmax(0,1fr));max-height:calc(100dvh - 245px);min-height:140px;overflow:auto}
#quickDialog .relic-choice b{font-size:14px}
#quickDialog .relic-choice>div{width:90px;height:90px}
@media(max-width:720px) and (orientation:portrait){
 .welcome-grid{display:flex;flex-direction:column-reverse;gap:9px}
 .lobby-profile{display:flex;gap:10px;padding:10px 12px;border-radius:15px}
 .lobby-profile #profilePortrait{width:40px;flex-shrink:0}
 .lobby-profile>h2{font-size:16px;flex:1}
 .lobby-profile .profile-numbers{gap:10px;flex-shrink:0}
 .lobby-profile .profile-numbers b{font-size:14px}
 .lobby-profile>.soft-button{display:none}
 .lobby-hero{padding:14px 15px;min-height:0}
 .lobby-hero .hero-copy{width:calc(100% - 70px)}
 .lobby-hero h1{font-size:22px;margin:5px 0}
 .lobby-hero p{font-size:10px;margin-bottom:9px}
 .lobby-hero .hero-art{width:85px;right:1px;top:46%}
 .lobby-hero .primary{font-size:11px;padding:8px 12px 12px;gap:8px;min-height:40px}
 .lobby-hero .eyebrow{font-size:6px;letter-spacing:1px}
 .room-heading{margin-top:15px}
 .room-heading h2{font-size:22px}
 #quickDialog{padding:21px 15px;max-height:calc(100dvh - 18px)}
 #quickDialog h2{font-size:24px}
 #quickDialog .eyebrow{font-size:8px;letter-spacing:1.1px}
 #quickDialog .quick-note{font-size:10px;line-height:1.5}
 #quickDialog .relic-choices{grid-template-columns:repeat(2,minmax(0,1fr));max-height:calc(100dvh - 215px);gap:8px}
 #quickDialog .relic-choice>div{width:75px;height:75px}
 #quickDialog .relic-choice b{font-size:12px}
}
@media(max-width:950px) and (orientation:landscape){
 .welcome-grid{grid-template-columns:200px minmax(0,1fr);gap:10px}
 .lobby-profile{padding:10px;grid-template-columns:45px minmax(0,1fr);gap:5px 9px}
 .lobby-profile #profilePortrait{width:45px}
 .lobby-profile>h2{font-size:17px}
 .lobby-profile .profile-numbers b{font-size:14px}
 .lobby-hero{padding:12px 16px}
 .lobby-hero h1{font-size:22px}
 .lobby-hero .eyebrow{font-size:7px}
 .lobby-hero .hero-copy{width:calc(100% - 100px)}
 .lobby-hero .hero-art{width:95px}
 .room-heading{margin:10px 0 8px}
 #quickDialog .relic-choices{max-height:calc(100dvh - 205px)}
}
@media(max-width:720px) and (orientation:portrait){.lobby-hero{padding:12px 15px}.lobby-hero h1{font-size:20px}.room-info b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}

.platform-entry{position:fixed;inset:0;z-index:200;background:#f7f1e7;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:24px;text-align:center}.platform-entry h2{font-size:clamp(23px,4vw,32px);margin:0;max-width:550px}.platform-entry p{font-size:14px;line-height:1.6;max-width:480px;margin:0}
