/* Equipment console — this stylesheet only changes the limits round and duel hit areas. */
html[data-round=limits] .stage{display:grid;grid-template-columns:280px minmax(0,1fr);column-gap:38px;row-gap:14px;align-items:center;width:min(1040px,100%);margin-inline:auto;padding:12px 0 4px}
html[data-round=limits] .stage>.conflict{grid-column:1/-1;justify-self:center;width:100%;max-width:100%}
html[data-round=limits] .round-head{padding-bottom:2px}
html[data-round=limits] .round-head h1{font-size:clamp(30px,3vw,44px)}
.live-count.forge-reactor{align-self:center;display:grid;grid-template-columns:1fr;justify-items:center;align-content:center;gap:7px;position:relative;isolation:isolate;width:280px;height:335px;padding:45px 15px 0}
.forge-reactor>.count-orbit{display:none}
.forge-reactor .forge-core{position:absolute;left:-8px;top:5px;width:296px;height:296px;z-index:-1;overflow:visible;pointer-events:none}
.forge-core *{fill:none;stroke:#8bc8e3;stroke-width:.9}
.forge-core .reactor-outer{opacity:.6;transform-origin:150px 150px;animation:forge-shell 16s ease-in-out infinite}
.forge-core .reactor-ticks{stroke:#daefff;stroke-width:2}
.forge-core .reactor-track{transform-origin:150px 150px;animation:forge-orbit 22s linear infinite}
.forge-core .reactor-track circle{stroke-dasharray:2 9;opacity:.45}
.forge-core .reactor-current{stroke:#b2f2ff;stroke-width:2;stroke-dasharray:90 50;opacity:.85}
.forge-core .reactor-spark{fill:#dbf8ff;stroke:none}
.forge-core .reactor-inner{opacity:.19;transform-origin:150px 150px;animation:forge-orbit 35s linear infinite reverse}
.forge-core .reactor-face{fill:#183e5f26;stroke:#8fc9e738;stroke-width:1.4}
.forge-core .reactor-brackets{stroke:#badff2;stroke-width:1.2;opacity:.65}
.live-count.forge-reactor b{position:relative;font:700 84px/.95 Hanken,Tahoma,sans-serif;letter-spacing:-4px;color:#d6f3ff;text-shadow:0 3px 0 #173a59,0 0 28px #70c6e640;font-variant-numeric:tabular-nums}
.live-count.forge-reactor>.forge-kicker{font:700 9px/1.4 Hanken,Tahoma;letter-spacing:2.4px;color:#8fcbe1;margin-bottom:7px;text-transform:uppercase}
.live-count.forge-reactor>span:not(.gauge):not(.forge-kicker){max-width:185px;text-align:center;font-size:11px;line-height:1.7;color:#b1d1e7}
.live-count.forge-reactor .gauge{height:3px;width:140px;margin-top:10px;background:#163956}
.live-count.forge-reactor .gauge i{background:linear-gradient(90deg,#77d8ed,#b4b6f0);box-shadow:0 0 8px #c1f2ff55}
.live-count.forge-reactor.empty b{color:#f4b9c6}
.forge-reactor.empty .reactor-current{stroke:#e8a6b7}
.toolbag[data-forge]{width:100%;max-width:none;display:grid;gap:16px;padding:0;border:0;background:none;box-shadow:none;border-radius:0}
.toolbag[data-forge] .tools-row{display:flex;flex-wrap:wrap;gap:10px;position:relative;min-width:0;padding:14px 14px 13px;border:1px solid #7199b64d;border-radius:2px 15px 2px 15px;background:linear-gradient(135deg,#204364c9,#0c2037e8);box-shadow:inset 0 0 0 4px #10263c66,0 8px 20px #020b1b30;isolation:isolate}
.toolbag[data-forge] .tools-row:before{content:"";position:absolute;inset:auto 0 0;height:2px;background:linear-gradient(90deg,transparent,#8ed8ed70,transparent);opacity:.65;pointer-events:none}
.toolbag[data-forge] .tools-row legend{float:none;display:flex;align-items:center;gap:8px;width:auto;min-width:0;max-width:100%;padding:0 10px;margin:0 0 0 2px;color:#d5e9f7;font-size:11px;line-height:1.8;letter-spacing:.3px}
.toolbag[data-forge] .forge-step{display:inline-grid;place-items:center;min-width:22px;height:22px;color:#9ad3e9;border:1px solid #8dc1dc6b;font:700 9px/1 Hanken,Tahoma;background:#102a43;clip-path:polygon(0 0,75% 0,100% 25%,100% 100%,25% 100%,0 75%)}
.toolbag[data-forge] .tools-row .chip{flex:1;min-width:0;min-height:112px;display:grid;grid-template-columns:58px 1fr;grid-template-rows:1fr 1fr;column-gap:7px;row-gap:0;align-items:center;align-content:center;padding:14px 9px;border:1px solid #81b3d066;border-radius:2px 9px 2px 9px;background:radial-gradient(ellipse at 25% 30%,#315b7b4a,transparent 75%),linear-gradient(135deg,#183c5b,#0f2943);box-shadow:inset 0 0 0 3px #8db5ce08,0 4px 0 #0b1e32;overflow:hidden;transition:translate .25s,border-color .25s,box-shadow .25s}
.toolbag[data-forge] .tools-row .chip:before{content:"";position:absolute;inset:5px;border:1px solid #aacde30e;border-radius:1px 5px;pointer-events:none}
.toolbag[data-forge] .forge-item-icon{grid-row:1/3;width:58px;height:58px;overflow:visible;color:#a8dcf1;pointer-events:none}
.forge-item-icon path{fill:none;stroke:currentColor;stroke-width:1.25;stroke-linejoin:round;stroke-linecap:round}
.forge-item-icon .gem-face{fill:#83c6e21a;stroke:#bae6f7}
.forge-item-icon .gem-highlight{stroke:#ddf5ff;stroke-width:2}
.forge-item-icon .forge-gem{transform-origin:32px 30px;animation:forge-gem 5s ease-in-out infinite}
.forge-item-icon .item-orbit{stroke-dasharray:18 9 1 12;opacity:.48;animation:forge-charge 8s linear infinite}
.forge-item-icon .hour-sand{fill:#9edfee2a;stroke:none}
.forge-item-icon .hour-flow{stroke:#d2f6ff;stroke-width:2;stroke-dasharray:1 3;animation:forge-charge 3s linear infinite}
.forge-chip-caption{align-self:end;text-align:start;font-size:9px;line-height:1.5;color:#91b3cd;letter-spacing:1px}
.forge-chip-value{align-self:start;text-align:start;white-space:nowrap;font:700 25px/1.35 Hanken,Tahoma,sans-serif;color:#e1f2ff;letter-spacing:-.6px}
.tools-row[data-forge-group=length] .forge-chip-value{font-size:18px;letter-spacing:0}
.toolbag[data-forge] .tools-row[data-forge-group=length] .chip{min-height:83px;grid-template-columns:55px 1fr;padding-block:9px}
.toolbag[data-forge] .tools-row[data-forge-group=exclude] .chip{flex:1;min-height:61px;grid-template-columns:43px 1fr;padding:7px 15px;max-width:100%}
.tools-row[data-forge-group=exclude] .forge-item-icon{width:42px;height:44px}
.tools-row[data-forge-group=exclude] .forge-chip-value{font-size:13px;letter-spacing:0}
.tools-row[data-forge-group=exclude] .forge-chip-caption{font-size:8px}
.toolbag[data-forge] .tools-row small{display:block;flex-basis:100%;font-size:10px;color:#b3cadc;line-height:1.8}
.toolbag[data-forge] .forge-check{position:absolute;inset-inline-end:8px;top:7px;display:grid;place-items:center;width:16px;height:16px;font:700 10px/1 Tahoma;background:#c8efff;color:#143452;border-radius:50%;opacity:0;transform:scale(.2);transition:opacity .2s,transform .25s}
.toolbag[data-forge] .chip[aria-pressed=true]{background:radial-gradient(ellipse at 20% 35%,#629ebc4f,transparent 65%),linear-gradient(135deg,#2c5b7c,#233e64);border-color:#c0edfa;box-shadow:inset 0 0 0 2px #a0d8ec26,0 4px 0 #18334e,0 0 19px #8accf321;color:#e5f6ff}
.toolbag[data-forge] .chip[aria-pressed=true] .forge-check{opacity:1;transform:scale(1)}
.toolbag[data-forge] .chip[aria-pressed=true] .forge-chip-caption{color:#c5e4f5}
.toolbag[data-forge] .chip[aria-pressed=true] .forge-item-icon{color:#c7efff}
.toolbag[data-forge] .chip[aria-pressed=true] .forge-gem{animation-duration:2.7s}
.toolbag[data-forge] .chip[aria-pressed=true]:before{border-color:#bae9ff3d}
.toolbag[data-forge] .chip:hover,.toolbag[data-forge] .chip:focus-visible{border-color:#bce9fa;translate:0 -5px;transform:none;box-shadow:inset 0 0 0 2px #9dd6eb21,0 7px 0 #0b2038,0 14px 24px #010c1e66;outline:0}
html[data-round=limits] #actions .primary{min-width:290px;min-height:56px;font-size:18px;box-shadow:0 5px 0 #294e70,0 12px 24px #02091e55}
/* Card click is delegated in the game; native preview/selection buttons remain independent. */
.fighter{cursor:pointer}
.fighter:has(>.primary:focus-visible){outline:2px solid #b9eeff;outline-offset:5px}
@keyframes forge-orbit{to{transform:rotate(360deg)}}
@keyframes forge-shell{0%,100%{transform:rotate(-3deg)}50%{transform:rotate(3deg)}}
@keyframes forge-gem{0%,100%{transform:translateY(2px) rotate(-6deg)}50%{transform:translateY(-3px) rotate(6deg)}}
@keyframes forge-charge{to{stroke-dashoffset:-100}}
@media(max-width:1000px) and (min-width:761px){
  html[data-round=limits] .stage{grid-template-columns:220px minmax(0,1fr);column-gap:20px}
  .live-count.forge-reactor{width:220px;height:290px}.forge-reactor .forge-core{width:240px;height:240px;left:-10px;top:10px}
  .live-count.forge-reactor b{font-size:70px}.toolbag[data-forge] .tools-row .chip{grid-template-columns:1fr;justify-items:center;min-height:110px;padding:8px}
  .toolbag[data-forge] .forge-item-icon{grid-row:auto;width:38px;height:38px}.forge-chip-caption,.forge-chip-value{text-align:center}.forge-chip-value{font-size:23px}
}
@media(max-width:760px){
  html[data-round=limits] .stage{display:flex;flex-direction:column;gap:8px;padding-top:0}
  .live-count.forge-reactor{width:230px;height:225px;padding:33px 15px 0;gap:3px}
  .forge-reactor .forge-core{width:225px;height:225px;left:2px;top:0}
  .live-count.forge-reactor b{font-size:64px;letter-spacing:-2px}
  .live-count.forge-reactor>.forge-kicker{font-size:8px;letter-spacing:1.5px;margin-bottom:3px}
  .live-count.forge-reactor>span:not(.gauge):not(.forge-kicker){font-size:10px;max-width:145px}
  .live-count.forge-reactor .gauge{width:105px;margin-top:5px}
  .toolbag[data-forge]{gap:12px;width:100%}
  .toolbag[data-forge] .tools-row{gap:7px;padding:8px 9px 10px}
  .toolbag[data-forge] .tools-row legend{font-size:10px;gap:6px;padding:0 6px}
  .toolbag[data-forge] .forge-step{min-width:18px;height:18px;font-size:8px}
  .toolbag[data-forge] .tools-row .chip{grid-template-columns:1fr;grid-template-rows:auto auto auto;justify-items:center;min-height:102px;padding:9px 4px;gap:1px}
  .toolbag[data-forge] .forge-item-icon{grid-row:auto;width:38px;height:36px}
  .forge-chip-caption,.forge-chip-value{text-align:center}
  .forge-chip-caption{font-size:8px}.forge-chip-value{font-size:23px}
  .toolbag[data-forge] .tools-row[data-forge-group=length] .chip{min-height:82px;grid-template-columns:1fr;padding:8px}
  .tools-row[data-forge-group=length] .forge-item-icon{height:30px;width:35px}
  .tools-row[data-forge-group=length] .forge-chip-value{font-size:15px}
  .toolbag[data-forge] .tools-row[data-forge-group=exclude] .chip{grid-template-columns:35px 1fr;grid-template-rows:1fr 1fr;min-height:59px;padding:6px 10px;column-gap:7px}
  .tools-row[data-forge-group=exclude] .forge-item-icon{grid-row:1/3;width:35px;height:37px}
  .tools-row[data-forge-group=exclude] .forge-chip-value,.tools-row[data-forge-group=exclude] .forge-chip-caption{text-align:start}
  .tools-row[data-forge-group=exclude] .forge-chip-value{font-size:11px}
  .toolbag[data-forge] .forge-check{width:13px;height:13px;font-size:8px;top:5px;inset-inline-end:5px}
  html[data-round=limits] #actions{margin-top:14px}html[data-round=limits] #actions .primary{width:100%;min-width:0;font-size:17px}
}
html[data-atelier-paused] .forge-core *,html[data-atelier-paused] .forge-item-icon *{animation-play-state:paused!important}
html[data-motion=off] .forge-core *,html[data-motion=off] .forge-item-icon *{animation:none!important;transition:none!important}
@media(prefers-reduced-motion:reduce){.forge-core *,.forge-item-icon *{animation:none!important;transition:none!important}}
/* Presence: persistent, replayable placement simulation plus the original product player. */
.stream.presence-simulator{width:min(680px,95%);aspect-ratio:16/8.4;max-height:none;border:5px solid #365d7d;border-radius:3px 16px;background:#0c2338;box-shadow:0 0 0 1px #a5cfe3,0 16px 35px #020d2180}
.presence-simulator .sky{background:linear-gradient(0deg,#07142133,#11284422),url('/assets/gwen-world/atelier-cinematic-clean.webp') center 63%/cover;transform:scale(1.02)}
.presence-scene-light{position:absolute;inset:0;background:radial-gradient(ellipse at 70% 10%,#8ddbff26,transparent 55%);pointer-events:none}
.presence-game-world{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.presence-game-world .scene-ground{fill:none;stroke:#92c9e124;stroke-width:1}
.presence-game-world .scene-path{fill:none;stroke:#a2e9f2;stroke-width:1;stroke-dasharray:3 14;opacity:.3;animation:forge-charge 8s linear infinite}
.presence-actor{animation:presence-path 11s ease-in-out infinite;transform:translate(188px,233px)}
.presence-actor path{fill:#82c8f24d;stroke:#d2f4ff;stroke-width:1.2}
.presence-actor ellipse{fill:#06152c9c;stroke:#5ba3cd}
.presence-actor circle{fill:none;stroke:#9edce43d;stroke-width:.8;stroke-dasharray:3 6}
.scene-objective{fill:none;stroke:#a8d6ef99;stroke-width:1}
.scene-objective circle{transform-origin:498px 174px;animation:presence-target 4s ease-in-out infinite}
.presence-simulator .presence-hud{position:absolute;inset:auto 14px 12px;display:flex;align-items:center;gap:10px;padding:7px 10px;border:1px solid #7ba9c34f;background:#071b31c9;box-shadow:inset 0 0 0 3px #b6dff90a;font:700 8px Hanken,Tahoma;color:#accde1;direction:ltr}
.hud-health{display:block;width:100px;height:4px;background:#20435a;overflow:hidden}.hud-health i{display:block;width:76%;height:100%;background:linear-gradient(90deg,#78c5d1,#afe2e8)}
.hud-abilities{display:flex;gap:4px;margin-left:auto}.hud-abilities i{display:grid;place-items:center;width:22px;height:22px;border:1px solid #98c5e066;background:#24465d7d;font-style:normal;color:#d1eafb}
.presence-simulator .presence-demo-label{position:absolute;top:12px;left:12px;padding:5px 8px;border:1px solid #a9d2e466;background:#092039cc;font:700 8px Hanken,Tahoma;letter-spacing:1.4px;color:#d2ecf7;z-index:3}
.presence-simulator .demo{z-index:2}
.presence-simulator .demo.go .full-cover{animation:presence-full-in .9s cubic-bezier(.2,.85,.2,1) both;object-fit:cover}
.presence-simulator .demo .float-logo{position:absolute;width:22%;height:auto;inset-inline-end:13%;top:25%;filter:drop-shadow(0 4px 12px #02122d)}
.presence-simulator .demo.go .float-logo{animation:presence-overlay-in .85s cubic-bezier(.2,1.15,.2,1) both}
.presence-simulator .demo .ribbon{bottom:15%;max-width:80%;background:linear-gradient(100deg,#b3e6f5,#acb6e7);color:#102c47;border:1px solid #d8f4ff;border-radius:2px 10px;padding:9px 20px;box-shadow:0 5px 18px #06112b99;font-size:14px}
.presence-simulator .demo[data-k=transparent] .ribbon{inset-inline-end:9%;bottom:30%;font-size:12px;padding:6px 13px}
.presence-simulator .demo.go .ribbon{animation:presence-caption-in .8s ease-out both}
.presence-status{margin:10px 0 0;color:#d0e5f6;font-size:12px;line-height:1.8;text-align:center;max-width:650px}
.presence-controls{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:3px}
.presence-controls .secondary{padding:10px 19px;border:1px solid #8dbed3;border-radius:2px 9px;background:linear-gradient(130deg,#244a66,#122e49);color:#d7edfa;font-size:11px;min-height:40px}
.presence-controls .presence-watch{border-color:#a9d8ed;background:#a3d7e8;color:#12324b;font-weight:700}
.presence-controls .secondary:hover,.presence-controls .secondary:focus-visible{translate:0 -3px;outline:1px solid #c2ecfa;outline-offset:3px}
.presence-note{font-size:10px;line-height:1.8;color:#9db9d0;text-align:center;max-width:600px;margin:1px 0 5px}
@keyframes presence-path{0%,100%{transform:translate(188px,233px)}45%{transform:translate(323px,218px)}75%{transform:translate(398px,238px)}}
@keyframes presence-target{0%,100%{transform:scale(.85);opacity:.4}50%{transform:scale(1.12);opacity:1}}
@keyframes presence-full-in{from{opacity:0;transform:scale(1.12)}to{opacity:1;transform:scale(1)}}
@keyframes presence-overlay-in{from{opacity:0;transform:translateY(24px) rotate(-12deg) scale(.55)}to{opacity:1;transform:none}}
@keyframes presence-caption-in{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@media(max-width:760px){
  .stream.presence-simulator{width:calc(100% - 10px);max-width:none;border-width:3px;aspect-ratio:16/10}
  .presence-simulator .presence-hud{inset:auto 7px 7px;gap:6px;padding:5px 7px;font-size:6px}.hud-health{width:55px}.hud-abilities i{width:17px;height:17px;font-size:7px}
  .presence-simulator .presence-demo-label{font-size:6px;top:8px;left:8px;padding:4px 6px}
  .presence-simulator .demo .ribbon{font-size:11px;padding:6px 14px}.presence-simulator .demo[data-k=transparent] .ribbon{font-size:9px;padding:5px 9px}
  .presence-controls{gap:8px;width:100%}.presence-controls .secondary{flex:1;min-width:0;font-size:9px;padding:9px 8px}
  .presence-status{font-size:11px;max-width:95%}.presence-note{font-size:9px}
}
html[data-motion=off] *,html[data-motion=off] *:before,html[data-motion=off] *:after{animation:none!important;transition:none!important}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}.presence-simulator .demo .full-cover,.presence-simulator .demo .float-logo,.presence-simulator .demo .ribbon{opacity:1;transform:none}}
.stream.presence-simulator{width:min(600px,95%)}@media(max-width:760px){.stream.presence-simulator{width:calc(100% - 10px)}}
/* Readable game guidance and progress — no extra animation or JavaScript. */
.arena .game-top{height:44px;max-height:44px}
.arena .game-top>.eyebrow{font-size:11px;letter-spacing:1.5px;color:#a9d7ea}
.arena .game-top #counter{font-size:17px;line-height:1.3;padding:8px 14px;min-width:94px;color:#d2ecfa}
.arena .steps{width:min(500px,85%);height:24px;gap:12px;margin:3px 0 7px}
.arena .steps:before{border-top:1px dashed #89b7d391}
.arena .steps li{width:12px;height:12px;flex:0 0 12px;border-color:#83abc9;background:#143451}
.arena .steps li:before{inset:2px}
.arena .steps li.done{border-color:#a9d8ec}
.arena .steps li.done:before{background:#a8e1f4;transform:scale(1)}
.arena .steps li.current{border-color:#e1f7ff;background:#467a9c;box-shadow:0 0 0 4px #8ddcf51f,0 0 13px #8bd8f33b}
.arena .steps li.current:before{background:#e4faff;transform:scale(.75)}
.arena .gwen-say{display:flex;width:min(780px,100%);min-height:54px;gap:12px;margin:0 auto 4px}
.arena .gwen-badge{width:44px;height:44px}
.arena .gwen-badge img{width:34px;height:34px}
.arena #bubble{min-width:0;max-width:min(690px,calc(100% - 60px));font-size:15px;line-height:1.8;color:#d2e5f4;padding:10px 16px;border-inline-start:2px solid #a3d9ef94;background:#0b1e34cf}
.arena .round-kicker{display:inline-block!important;font-size:12px!important;line-height:1.5;padding:6px 14px!important;margin-bottom:6px;color:#d1eafa}
@media(max-width:760px){
  .arena .game-top{height:42px;max-height:42px}
  .arena .game-top #counter{font-size:16px;padding:7px 12px;min-width:88px}
  .arena .steps{width:90%;height:22px;gap:8px;margin-bottom:5px}
  .arena .steps li{width:10px;height:10px;flex-basis:10px}
  .arena .gwen-say{gap:9px;min-height:48px;margin-bottom:3px}
  .arena .gwen-badge{width:39px;height:39px}
  .arena .gwen-badge img{width:30px;height:30px}
  .arena #bubble{max-width:calc(100% - 48px);font-size:13px;line-height:1.8;padding:9px 12px}
  .arena .round-kicker{font-size:11px!important;padding:5px 12px!important}
}
/* One on-demand Live Demo preview, using the existing studio player. */
.stream.presence-inline-demo{aspect-ratio:16/9}
.presence-live-demo .presence-poster{position:absolute;inset:0;display:grid;place-items:center;background:#06162acc}
.presence-live-demo .presence-cover{width:100%;height:100%!important;object-fit:cover;opacity:.75}
.presence-inline-demo .presence-demo-label{pointer-events:none}
.presence-live-demo .presence-launch{position:relative;z-index:4;min-height:51px;padding:12px 23px;pointer-events:auto;font-size:16px;background:linear-gradient(110deg,#b2e8f8,#a5b4e7);color:#102d46;border:1px solid #e0f6ff;box-shadow:0 6px 0 #213f60,0 12px 25px #020b2366;border-radius:3px 14px}
.presence-live-demo .presence-launch:focus-visible{outline:2px solid #d2f6ff;outline-offset:6px}
.presence-inline-slot{position:absolute;inset:0;pointer-events:auto;z-index:3;background:#071424}
.presence-inline-slot .studio-player{width:100%;height:100%;border-radius:0;background:#000}
.presence-inline-slot .presence-alert-video{display:block;width:100%;height:100%!important;max-height:none;aspect-ratio:16/9;object-fit:contain;background:#000;pointer-events:auto}
.presence-inline-slot .studio-controls{position:absolute;inset:auto 0 0;min-height:40px;padding:6px 9px;gap:8px;background:#0c2039ed;border-top:1px solid #a6d4ea55;z-index:5}
.presence-inline-slot .studio-controls button{width:28px;height:28px;font-size:14px;border-color:#91bbd56b;background:#173650}
.presence-inline-slot .studio-time{font-size:10px}
.presence-inline-slot .studio-volume{width:55px}
.presence-inline-slot .studio-player:fullscreen .studio-controls{position:static;min-height:50px}
.presence-inline-slot .studio-player:fullscreen .presence-alert-video{height:calc(100vh - 50px)!important;min-height:0}
.presence-inline-demo[data-state=loading]:after{border-color:#b6c7f4;animation:live-loading 2s ease-in-out infinite}
.presence-feedback{margin:0;min-height:20px;max-width:650px;color:#b5d5e8;text-align:center;font-size:11px;line-height:1.8}
.presence-inline-demo[data-state=error]~.presence-feedback{color:#f4becb}
.presence-controls .presence-stop{background:#152d47;border-color:#81adc766;color:#b8d4e7}
.presence-controls .secondary:disabled{opacity:.4;cursor:default;translate:none;outline:0}
.presence-status{font-family:Hanken,Tahoma,sans-serif;font-weight:700;color:#d8eef9}
@keyframes live-loading{50%{opacity:.4}}
@media(max-width:760px){
 .presence-live-demo .presence-launch{min-height:44px;padding:10px 17px;font-size:14px}
 .presence-inline-slot .studio-controls{min-height:36px;padding:5px;gap:5px}
 .presence-inline-slot .studio-controls button{width:24px;height:24px;font-size:12px}
 .presence-inline-slot .studio-volume{width:39px}
 .presence-inline-slot .studio-seek{min-width:20px}
 .presence-inline-slot .studio-time{font-size:9px}
 .presence-feedback{font-size:10px;max-width:95%}
 .presence-controls .secondary{min-height:40px}
}
html[data-motion=off] .presence-inline-demo:after{animation:none!important}
@media(prefers-reduced-motion:reduce){.presence-inline-demo:after{animation:none!important}}
html[data-round=presence] .stage:has(.presence-sidebar){display:grid;grid-template-columns:minmax(0,600px) minmax(230px,300px);justify-content:center;align-items:center;gap:26px;width:min(1000px,100%);margin-inline:auto;padding-top:12px}
html[data-round=presence] .stage .presence-inline-demo{width:100%;max-width:100%;margin:0}
.presence-sidebar{display:flex;flex-direction:column;gap:12px;min-width:0;padding:19px 17px;border:1px solid #7caac35c;border-radius:3px 16px 3px 16px;background:linear-gradient(145deg,#214563d9,#0b2037eb);box-shadow:inset 0 0 0 4px #a9d3ee07,0 12px 24px #03102140}
.presence-sidebar .presence-status{font-size:14px;line-height:1.6;margin:0;overflow-wrap:anywhere;text-align:start}
.presence-sidebar .presence-controls{flex-direction:column;margin:0;gap:10px}
.presence-sidebar .presence-controls .secondary{width:100%;font-size:11px;min-height:42px}
.presence-sidebar .presence-feedback{font-size:11px;min-height:36px;text-align:start}
.presence-sidebar .presence-note{font-size:10px;margin:0;text-align:start;border-top:1px solid #87b1ce36;padding-top:10px}
.presence-sidebar .choices-row{display:flex;flex-direction:column;gap:7px}
.presence-sidebar .choices-row .pick-card{width:100%;max-width:none;min-height:0;padding:8px 11px!important;align-items:flex-start;text-align:start;border-color:#779dba70}
.presence-sidebar .choices-row .pick-card h2{font-size:14px!important;margin:0!important;line-height:1.7}
.presence-sidebar .choices-row .pick-card p{font-size:10px;line-height:1.5}
.presence-sidebar .choices-row .pick-card.selected{background:#3f75935c;border-color:#c6edff;box-shadow:inset 0 0 0 1px #a2dbf34d;translate:none}
@media(max-width:1000px) and (min-width:761px){
 html[data-round=presence] .stage:has(.presence-sidebar){grid-template-columns:minmax(0,1fr) 240px;gap:18px}
 .presence-sidebar{padding:15px 13px;gap:9px}
}
@media(max-width:760px){
 html[data-round=presence] .stage:has(.presence-sidebar){display:flex;flex-direction:column;gap:15px;padding-top:8px}
 html[data-round=presence] .stage .presence-inline-demo{width:calc(100% - 10px);max-width:none}
 .presence-sidebar{width:100%;max-width:440px;padding:14px 12px;gap:11px}
 .presence-sidebar .presence-status{font-size:13px}
 .presence-sidebar .presence-controls{flex-direction:row;gap:8px}
 .presence-sidebar .presence-controls .secondary{font-size:10px;padding:9px 7px;min-height:40px}
 .presence-sidebar .presence-feedback{font-size:10px;min-height:0}
 .presence-sidebar .choices-row{flex-direction:row;gap:7px}
 .presence-sidebar .choices-row .pick-card{flex:1;padding:9px 7px!important;align-items:center;text-align:center}
 .presence-sidebar .choices-row .pick-card h2{font-size:11px!important}
 .presence-sidebar .choices-row .pick-card p{font-size:9px!important}
}
.presence-feedback[data-state=error]{color:#f4becb}
@media(min-width:761px){
 .presence-sidebar .presence-controls{flex-direction:row;gap:8px}
 .presence-sidebar .presence-controls .secondary{flex:1;min-width:0;font-size:10px;padding:9px 7px}
 .presence-sidebar .choices-row{flex-direction:row;gap:6px}
 .presence-sidebar .choices-row .pick-card{flex:1;align-items:center;text-align:center;padding:9px 6px!important}
 .presence-sidebar .choices-row .pick-card h2{font-size:11px!important;line-height:1.6}
 .presence-sidebar .choices-row .pick-card p{display:none}
 .presence-sidebar .presence-feedback{min-height:0}
}

/* Reserve rendering work for the requested video while it is playing. */
html[data-inline-playing] .ambient *,html[data-inline-playing] .ambient *:before,html[data-inline-playing] .ambient *:after,html[data-inline-playing] .gwen-cursor *{animation-play-state:paused!important}
/* Stream setup: same local image, opacity and positioning controls as the store Live Demo. */
.presence-setup-image{position:absolute;inset:0;width:100%;height:100%!important;object-fit:contain;background:#05030c;z-index:1;pointer-events:none}
.presence-inline-demo.has-stream-image>.sky,.presence-inline-demo.has-stream-image>.presence-scene-light,.presence-inline-demo.has-stream-image>.presence-game-world,.presence-inline-demo.has-stream-image>.presence-hud{display:none}
.presence-live-demo .presence-poster{inset:auto;left:var(--setup-x,50%);top:var(--setup-y,32%);width:var(--setup-size,40%);height:var(--setup-size,40%);transform:translate(-50%,-50%);opacity:var(--setup-opacity,.8);background:transparent}
.presence-live-demo .presence-cover{object-fit:contain;opacity:1}
.presence-inline-slot,.presence-inline-slot .studio-player{background:transparent;pointer-events:none}
.presence-inline-slot .presence-alert-video{position:absolute;left:var(--setup-x,50%);top:var(--setup-y,32%);width:var(--setup-size,40%);height:var(--setup-size,40%)!important;transform:translate(-50%,-50%);opacity:var(--setup-opacity,.8);object-fit:contain;max-height:none;pointer-events:auto}
.presence-inline-slot .studio-controls{pointer-events:auto}
.presence-inline-slot .studio-player:fullscreen{background:#000}
.presence-inline-slot .studio-player:fullscreen .presence-alert-video{position:relative;inset:auto;width:100%!important;height:calc(100vh - 50px)!important;transform:none;opacity:1}
.presence-drag-handle{position:absolute;z-index:7;left:var(--setup-x,50%);top:var(--setup-top,12%);width:var(--setup-size,40%);min-height:24px;transform:translate(-50%,-100%);padding:4px 8px;touch-action:none;border:1px dashed #9bd0e37d;background:#0d2945de;color:#d4ecf6;border-radius:3px 7px 0 0;font-size:9px;cursor:grab;white-space:nowrap}
.presence-drag-handle:active{cursor:grabbing}.presence-drag-handle:focus-visible{outline:2px solid #c8f1ff;outline-offset:2px}
.presence-inline-demo.is-positioning .presence-drag-handle{background:#477792;color:#fff}
.presence-setup-panel{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(160px,.8fr) minmax(0,1fr);gap:18px;align-items:start;padding:14px 17px;border:1px solid #7eacc654;border-radius:3px 12px;background:linear-gradient(140deg,#1c3c56d9,#0c2239e8)}
.presence-photo-tools{display:flex;gap:8px;flex-wrap:wrap;align-items:center;min-width:0}
.presence-upload{min-height:39px;padding:8px 12px;border:1px solid #abd6e9;background:#a3d8eb;color:#12324c;font-size:11px;border-radius:2px 8px}
.presence-remove-image{font-size:10px;min-height:35px;padding:7px;color:#c5e1ef;border:1px solid #83a8bd5a;border-radius:3px}
.presence-image-status{flex-basis:100%;overflow-wrap:anywhere;margin:0;color:#aec9dc;font-size:10px;line-height:1.7}
.presence-setup-range{display:grid;grid-template-columns:1fr auto;gap:7px;min-width:0;color:#d2e7f4;font-size:11px;line-height:1.6;align-items:center}
.presence-setup-range output{font:700 11px Hanken,Tahoma;color:#a7e4f4}
.presence-setup-range input{grid-column:1/-1;width:100%;min-width:0;margin:3px 0;accent-color:#9ccfeb;cursor:ew-resize}
.presence-setup-advanced{min-width:0}
.presence-setup-advanced summary{padding:8px 11px;border:1px solid #87b3cb6b;border-radius:3px 8px;font-size:11px;color:#d0e7f6;cursor:pointer;background:#15354e}
.presence-setup-adjustments{display:grid;gap:12px;margin-top:13px}
.presence-reset-setup{padding:8px 10px;min-height:35px;border:1px solid #86accb;background:#193a55;color:#cde5f4;font-size:10px;border-radius:2px 8px}
html[data-round=presence] .stage:has(.presence-sidebar){row-gap:13px}
.presence-inline-demo .presence-launch{font-size:14px;min-height:45px;align-self:end;margin-bottom:8%}
.demo-smooth img:only-of-type{opacity:1;animation:cinematic-glide 4.8s ease-in-out infinite alternate}
@keyframes cinematic-glide{from{transform:scale(1.035) translateX(-1%)}to{transform:scale(1.18) translateX(1.5%)}}
.result-cards{display:flex;flex-wrap:wrap;justify-content:center;gap:20px}
.result-cards>.loot{flex:0 1 calc((100% - 40px)/3);min-width:0}
@media(max-width:1000px) and (min-width:761px){.presence-setup-panel{grid-template-columns:1fr 1fr;gap:14px}.presence-setup-advanced{grid-column:1/-1}.result-cards>.loot{flex-basis:calc((100% - 20px)/2)}}
@media(max-width:760px){
 .presence-setup-panel{display:grid;grid-template-columns:1fr;width:100%;max-width:440px;gap:14px;padding:13px}
 .presence-upload{font-size:12px;flex:1}.presence-remove-image{font-size:10px}
 .presence-setup-range{font-size:11px}.presence-setup-advanced summary{font-size:11px}
 .presence-drag-handle{font-size:8px;padding:3px 4px;min-height:23px}
 .presence-inline-demo .presence-launch{font-size:12px;padding:9px 14px;min-height:40px;margin-bottom:5%}
 .result-cards>.loot{flex-basis:100%;width:100%;max-width:355px}
}
.presence-drag-handle{top:max(3px,var(--setup-top,12%));transform:translateX(-50%)}
.presence-setup-range input{direction:ltr}

@media(max-width:760px){.presence-setup-panel{order:-1}.presence-inline-demo{order:0}.presence-sidebar{order:1}}

/* Keep every modal player control reachable on narrow/short phone screens. */
#preview{max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain}
#preview .preview-head h2{min-width:0;overflow-wrap:anywhere}
#preview .preview-head button{flex-shrink:0;min-width:40px;min-height:40px}
@media(max-width:600px){
 #preview .studio-controls{display:grid;grid-template-columns:32px minmax(20px,1fr) 32px 42px 32px;gap:6px;padding:8px;align-items:center}
 #preview .studio-controls button{width:32px;height:32px}
 #preview .studio-play{grid-column:1;grid-row:1}
 #preview .studio-seek{grid-column:2;grid-row:1;width:100%;min-width:0;margin:0}
 #preview .studio-mute{grid-column:3;grid-row:1}
 #preview .studio-volume{grid-column:4;grid-row:1;width:100%;min-width:0;margin:0}
 #preview .studio-full{grid-column:5;grid-row:1}
 #preview .studio-time{grid-column:1/-1;grid-row:2;text-align:center;font-size:11px}
}

@media(max-width:760px){
 .deck.badges{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;max-width:440px}
 .deck.badges .badge{max-width:none;width:100%;min-width:0}
}
@media(max-width:380px){
 .world-card .symbol,.thread-card .symbol{width:100%;max-width:142px;height:auto!important;aspect-ratio:1}
 .thread-card .symbol svg.mood-sigil{width:88%!important;height:94%!important}
}

@media(min-width:761px) and (max-width:1000px){
 .world-card .symbol,.thread-card .symbol{width:100%;max-width:145px;height:auto!important;aspect-ratio:1}
 .world-card .symbol svg{width:80%!important;height:85%!important}
 .thread-card .symbol svg.mood-sigil{width:88%!important;height:94%!important}
}

/* Stretch each result face with its row; badges do not shift the first poster. */
.result-cards>.loot{display:flex;flex-direction:column}
.loot .loot-inner{display:grid;flex:1;height:auto;min-width:0}
.loot .loot-front{min-width:0}
.loot.gold .rank{position:absolute}

/* One stable canvas keeps the room, dolls and effects aligned while mobile chrome moves. */
@media(pointer:coarse){
 .ambient{inset:0 0 auto;height:var(--workshop-height,100vh)}
 @supports(height:100lvh){.ambient{height:var(--workshop-height,100lvh)}}
 .deck.fan .world-card{animation:none;opacity:1;transform-style:flat}
 .world-card .sigil-field,.thread-card .sigil-field{transform:none;transition:none}
}
/* The whole landscape cover stays visible, with separate caption and preview space. */
.flip{aspect-ratio:auto;display:flex;flex-direction:column}
.flip-inner{position:relative;inset:auto;display:flex;flex-direction:column;flex:1;height:auto}
.flip-front{position:relative;inset:auto;display:flex;flex-direction:column;flex:1;padding-bottom:50px}
.flip-front img{width:100%;height:auto!important;max-height:none;aspect-ratio:16/9;object-fit:contain;flex:none;background:#061326}
.flip-front b{position:static;inset:auto;display:grid;align-content:center;flex:1;min-height:38px;margin:0;padding:6px 8px;background:none;text-align:center;font-size:16px;line-height:1.35;overflow-wrap:anywhere}
.flip .preview-trigger{bottom:8px;inset-inline:8px;margin:0;min-height:36px;display:flex;align-items:center;justify-content:center;padding:7px 4px;font-size:11px;white-space:normal}
@media(max-width:760px){.flip-front b{font-size:14px}}

#preview-retry{min-height:42px;min-width:150px;margin:6px 0 12px;padding:9px 18px}

/* back button: bigger and clearer (owner, 5 Nov 2026) */
.arena .game-top .back{font-size:16px;font-weight:700;line-height:1.3;min-height:38px;padding:7px 18px;color:#d2ecfa;background:#18283bcc;border:1px solid #94d8ed80;border-radius:10px;cursor:pointer;transition:background .2s,border-color .2s,color .2s}
.arena .game-top .back:hover{color:#fff;background:#203953;border-color:#a6eaff}
.arena .game-top .back:focus-visible{outline:2px solid #a6eaff;outline-offset:2px}
@media(max-width:760px){.arena .game-top .back{font-size:14px;min-height:34px;padding:6px 13px}}

/* top bar controls: bigger and clearer (owner, 5 Nov 2026) */
.topbar .tools{max-width:none;gap:8px}
.topbar .tools button,.topbar .tools a{font-size:13px;font-weight:600;line-height:1.3;min-height:38px;padding:8px 15px}
.topbar .tools .game-audio{min-height:38px;padding:6px 13px;gap:10px}
.topbar .game-audio span{font-size:12px}
.topbar .game-audio output{font-size:13px}
.topbar .game-audio input{width:95px}
@media(max-width:760px){.topbar .tools{gap:6px}.topbar .tools button,.topbar .tools a{font-size:11.5px;min-height:34px;padding:6px 11px}.topbar .tools .game-audio{min-height:34px;padding:5px 10px}.topbar .game-audio span{font-size:10.5px}.topbar .game-audio output{font-size:11.5px}.topbar .game-audio input{width:75px}}
.topbar .game-audio span{white-space:nowrap}
@media(max-width:760px){.topbar .tools .game-audio{max-width:none}}
