:root{color-scheme:dark;--bg:#141514;--panel:#212220;--line:#45453e;--text:#f2eada;--quiet:#c4bdab;--orange:#fa8055;--mono:'IBM Plex Mono','SFMono-Regular',Consolas,monospace;--sans:'Barlow','Avenir Next',system-ui,sans-serif;-webkit-tap-highlight-color:transparent}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text);font:16px var(--sans)}body{background-image:radial-gradient(ellipse at 15% 3%,#392d243f,transparent 57%),linear-gradient(90deg,#181918 1px,transparent 1px);background-size:auto,8px 100%;}button{font:inherit;color:inherit;cursor:pointer;touch-action:manipulation}button:disabled{opacity:.43;cursor:default}button:focus-visible,canvas:focus-visible{outline:3px solid #ffd281;outline-offset:3px}button,canvas{-webkit-user-select:none;user-select:none}button{border-radius:3px}.page{max-width:1120px;margin:auto;padding:0 clamp(14px,3.2vw,45px) 22px}
.mast{height:75px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;margin-bottom:21px}.brand,.switches,.switch,.section-title,.pad,.venue{display:flex;align-items:center}.brand{gap:14px}.brand img{width:67px;height:47px;object-fit:contain}.brand span{font:700 15px var(--mono);letter-spacing:.22em;border-left:1px solid #65584a;padding:9px 0 9px 15px}.switches{gap:8px}.switch{font:600 13px var(--sans);gap:8px;background:#232421;border:1px solid #484841;padding:8px 13px;min-height:40px}.switch svg{height:19px;width:19px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.switch:hover:enabled,.secondary:hover,.world:hover{background:#30322c}.silent,[aria-pressed=false] .audible{display:none}[aria-pressed=false] .silent{display:block}
.layout{max-width:1000px;margin:auto;display:grid;grid-template-columns:minmax(205px,.49fr) minmax(0,1fr);gap:clamp(16px,2.2vw,33px);align-items:start}
.side{display:flex;flex-direction:column;gap:21px;min-width:0}.poster{border:1px solid #74543a;width:100%;height:clamp(220px,49vh,490px);background:#191c19;position:relative;overflow:hidden;isolation:isolate;box-shadow:0 6px 18px #0003}.section-title{gap:11px;margin-bottom:9px}.section-title h2{margin:0;font-weight:720;font-size:18px;letter-spacing:-.03em}.rule{flex:1;height:1px;background:#47463f}#worlds{display:grid;grid-template-columns:1fr 1fr;gap:7px}.world{position:relative;text-align:left;isolation:isolate;overflow:hidden;min-height:62px;border:1px solid #4b4b41;background:#292a27;padding:7px 7px 6px;display:flex;align-items:flex-end;line-height:1;color:#fff5dc}.world:before{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#121512ee 1%,#14181576 57%,#1818101c),var(--thumb) center/cover;z-index:-1}.world[aria-pressed=true]{border-color:var(--orange);box-shadow:inset 0 0 0 1px var(--orange)}.world[aria-pressed=true]:after{content:'';position:absolute;right:6px;top:6px;background:var(--orange);border-radius:50%;width:7px;height:7px;box-shadow:0 0 0 2px #241d16}.world b{font:700 13px/1.1 var(--sans);text-shadow:0 1px 3px #000}
.cabinet{background:#242522;border:1px solid #515149;padding:0 clamp(7px,1.15vw,16px) 10px;border-radius:5px;box-shadow:0 14px 30px #0004}.scoreboard{height:64px;display:flex;align-items:center;gap:clamp(16px,3.5vw,60px);padding:0 6px}.stat{display:flex;flex-direction:column;gap:4px}.stat>span,.venue small,.dialog-stage{color:var(--quiet);font:600 11px/1.1 var(--mono);text-transform:uppercase;letter-spacing:.13em}.stat>b{font:700 clamp(19px,2vw,26px)/1 var(--mono);letter-spacing:.065em;font-variant-numeric:tabular-nums;color:#ffd09b}.stat.best>b{color:#e3decf}.lives{margin-left:auto}.lives>b{display:flex;gap:6px;height:24px;align-items:center}#lives i{display:block;width:12px;height:12px;border-radius:50%;border:1px solid #f6d4a0;background:radial-gradient(circle at 30% 28%,#fff6cf 15%,#e5bc7f 55%,#ab7955 100%)}#lives .spent{background:transparent;border-color:#6b675b}
.screen{position:relative;width:100%;aspect-ratio:600/565;isolation:isolate;overflow:hidden;background:#242527;box-shadow:0 0 0 1px #736754;border:2px solid #161714;border-radius:2px}.scene,.shade,canvas{position:absolute;inset:0;width:100%;height:100%}.scene{background:var(--scene,url('art/salmona.webp')) center/cover no-repeat;filter:saturate(.75);opacity:.92;z-index:-2}.shade{z-index:-1;background:linear-gradient(180deg,#15181ada 0%,#171b1ab8 30%,#14181a63 58%,#15191d9c 78%,#0c1219e6 100%),linear-gradient(90deg,#11151b5e,transparent 30%,transparent 71%,#11151b5e)}canvas{display:block;touch-action:none;border:0;outline-offset:-4px!important}
.serve{position:absolute;left:50%;top:63%;transform:translate(-50%,-50%);display:flex;align-items:center;flex-direction:column;gap:8px;text-align:center;white-space:nowrap}.primary{background:#ff8556;color:#211a17;border:1px solid #ffc296;border-bottom:3px solid #953b27;border-radius:3px;font-weight:800;min-height:44px;padding:9px 24px;display:inline-flex;justify-content:center;align-items:center;gap:9px;box-shadow:0 4px 13px #0006}.primary:hover{background:#ff9d70}.primary:active{transform:translateY(1px)}.triangle{border-top:5px solid transparent;border-bottom:5px solid transparent;border-left:8px solid currentColor}.serve small{color:#fff3d8;font-size:13px;font-weight:650;text-shadow:0 1px 4px #000,0 0 6px #000;background:#2323219c;padding:3px 7px;border-radius:2px}
.venue{justify-content:space-between;padding:12px 4px 10px;gap:8px}.venue small{display:block;font-size:10px;line-height:1.3}.venue strong{font-size:clamp(17px,2.2vw,23px);letter-spacing:-.035em}.wall-count{text-align:right}.wall-count b{font:700 15px var(--mono);color:#ebd6b0}.pad{justify-content:space-between;min-height:43px;border:1px solid #494b43;border-radius:3px;padding:0 15px;background:repeating-linear-gradient(110deg,#2e302b 0 2px,#2a2c27 2px 7px);touch-action:none;user-select:none;cursor:ew-resize}.pad-text{font-size:14px;font-weight:600;color:#ddd5c4}.arrows{font:800 22px var(--mono);letter-spacing:-3px;color:#d88d68}.notice{position:absolute;bottom:16%;left:50%;transform:translateX(-50%);color:#ffdeb1;text-align:center;background:#211d19df;font:bold 14px var(--mono);border-radius:4px;pointer-events:none;white-space:nowrap}.notice:not(:empty){padding:6px 10px}
dialog{color:var(--text);background:#242422;border:1px solid #8c7558;border-top:4px solid var(--orange);padding:0;max-width:min(340px,90vw);border-radius:3px;box-shadow:0 14px 45px #000b}dialog::backdrop{background:#0c0e0ddd}.dialog-inner{padding:24px}.dialog-stage{margin:0 0 10px;color:#efb785}.dialog-inner h2{margin:0;font-size:30px;line-height:1.12;letter-spacing:-.04em}.dialog-inner p:not(.dialog-stage){line-height:1.45;color:#ddd5c4}.dialog-inner button{width:100%;margin-top:6px}.secondary{min-height:42px;background:#30312c;border:1px solid #545348;font-weight:650}.sr{height:1px;width:1px;overflow:hidden;position:absolute;clip-path:inset(50%);white-space:nowrap}[hidden]{display:none!important}
@media(min-width:761px) and (min-height:560px){.layout{grid-template-columns:minmax(215px,.52fr) minmax(0,1fr);max-width:min(100%,calc((100svh - 266px)*1.63 + 36px));min-width:min(100%,665px)}}
@media(max-width:760px) and (orientation:portrait){.page{padding:0 12px 18px}.mast{height:52px;margin-bottom:10px}.switch{min-height:35px;padding:5px 9px}.brand img{width:47px;height:37px}.brand,.switches{gap:7px}.brand span{font-size:12px;padding:7px}.layout,.side{display:contents}.layout{display:grid;grid-template-columns:1fr;gap:9px}.poster{height:clamp(64px,12.9svh,110px);grid-row:1;background-position:left 3% top 0;background-size:auto 295%;position:relative;overflow:hidden}.cabinet{grid-row:2;padding:0 6px 6px}.scoreboard{height:46px;padding:0 4px;gap:23px}.stat{gap:3px}.stat>span{font-size:10px}.stat>b{font-size:18px}.lives>b{height:18px}.lives i{width:10px!important;height:10px!important}.venue{padding:7px 3px}.pad{min-height:42px}.atlas{grid-row:3;margin-top:3px}.section-title{margin-bottom:6px}.section-title h2{font-size:16px}#worlds{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.world{min-height:55px;padding:5px}.world b{font-size:12px}}
@media(orientation:landscape) and (max-height:560px){.page{padding:0 12px 6px}.mast{height:36px;margin-bottom:5px}.brand img{width:40px;height:28px}.brand{gap:7px}.brand span{font-size:11px;padding:4px 8px}.switch{min-height:29px;padding:3px 9px}.switch svg{height:16px}.layout{--court-h:calc(100svh - 113px);width:min(100%,calc(var(--court-h)*1.07 + 295px));grid-template-columns:minmax(150px,.79fr) minmax(0,1fr);gap:12px}.side{gap:7px;min-height:0}.poster{height:clamp(65px,calc(100svh - 174px),235px);background-position:center 21%}.section-title{margin-bottom:4px}.section-title h2{font-size:14px}.world{min-height:31px;padding:4px}.world b{font-size:11px}#worlds{gap:4px}.cabinet{padding:0 4px 3px}.scoreboard{height:32px;gap:15px}.stat{flex-direction:row;align-items:center;gap:5px}.stat>span,.venue small{font-size:9px}.stat>b{font-size:13px}.lives>b{gap:3px}.lives i{width:7px!important;height:7px!important}.venue{padding:3px 2px}.venue strong{font-size:13px}.venue>div:first-child{display:flex;align-items:center;gap:8px}.wall-count b{font-size:12px}.wall-count small{display:none}.pad{min-height:24px}.pad-text{font-size:11px}.arrows{font-size:13px}.serve .primary{min-height:32px;font-size:13px;padding:5px 11px}.serve small{font-size:10px}.serve{gap:3px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
.choices{display:grid;gap:6px}.choices button{display:flex;align-items:center;gap:9px;width:100%;background:#262623;border:1px solid #575146;text-align:left;border-radius:3px;min-height:43px;padding:4px 8px}.choices button:hover,.pick-tile:hover{border-color:#efac7b}.choices img{width:43px;height:33px;object-fit:cover;border-radius:2px}.choices span,.pick-tile span{display:grid;gap:2px;min-width:0}.choices small,.pick-tile small{font:600 10px/1.16 var(--mono);color:#d7bd96}.choices b,.pick-tile b{font-size:14px;line-height:1.13;color:#f4e9d9}.choices i{color:#edb683;margin-left:auto;font-style:normal;font-size:21px}#talent{font-size:12px;line-height:1.35;color:#d6c8b2;margin:7px 0 0}#picker{width:min(710px,94vw);max-width:94vw;max-height:82svh;overflow:auto}.picker-head{display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:1;background:#252521;padding:10px 16px;border-bottom:1px solid #585244}.picker-head h2{margin:0;font-size:21px}.picker-head button{width:40px;height:40px;font-size:25px;border:1px solid #655e50;background:#38362e}#pick-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:8px;padding:12px}.pick-tile{display:grid;text-align:left;border:1px solid #514c41;border-radius:3px;overflow:hidden;background:#302e28;padding:0}.pick-tile[aria-pressed=true]{border:2px solid #ffc18a}.pick-tile img{width:100%;height:76px;object-fit:cover}.pick-tile span{padding:6px}.pick-tile small{padding-top:2px}@media(max-width:760px){.choices{grid-template-columns:1fr 1fr}.choices button{gap:5px;padding:3px 5px}.choices img{width:30px;height:30px}.choices b{font-size:12px}#talent{font-size:11px}}@media(orientation:landscape) and (max-height:560px){.choices{grid-template-columns:1fr}.choices button{min-height:29px}.choices img{height:25px}.choices span{gap:0}.choices small{font-size:8px}#talent{margin:2px 0 0;font-size:10px}.side .poster{height:clamp(50px,calc(100svh - 205px),200px)}}

/* Keep the keyboard cursor legible over both artwork and solid controls. */
:is(button, a, summary, input):focus-visible {
  outline: 3px solid #ffefbc;
  outline-offset: 1px;
  box-shadow: 0 0 0 6px #181e25;
}
:where(button, a, summary) { touch-action: manipulation; }

.round-guide:not([hidden]) {
  text-align: start;
  border-block: 1px solid currentColor;
  margin-block: .45rem;
}
.round-guide summary {
  cursor: pointer;
  font: inherit;
  font-weight: 650;
  line-height: 1.35;
  padding: .65rem .15rem;
}
.round-guide p { margin: .15rem 0 .7rem; line-height: 1.45; }

@media (pointer: coarse), (max-width: 700px), (max-height: 550px) {
  #sound,#pause,#picker-close,.round-guide summary { min-inline-size: 44px; min-block-size: 44px; }
}

@media (pointer: coarse), (max-width: 700px), (max-height: 550px) {
  #launch,#confirm,#other { min-height: 44px; min-width: 44px; }
}

/* The marquee stays separate from the illustrated mask at each aspect ratio. */
.poster-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.poster::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, #171b17e8 0%, #171b1780 32%, transparent 62%);
}
.poster-title {
  position: relative; z-index: 2; margin: 0; padding: clamp(8px, 1.3vw, 20px);
  width: 90%; line-height: 0; box-sizing: border-box;
}
.poster-title img { display: block; width: 100%; height: auto; max-height: 18vh; object-fit: contain; object-position: left center; }
@media (max-width:760px) and (orientation:portrait), (orientation:landscape) and (max-height:560px) {
  .poster { display: flex; align-items: center; }
  .poster-art { left: 43%; width: 57%; }
  .poster::before { background: linear-gradient(90deg, #151916 20%, #151916e8 37%, transparent 70%); }
  .poster-title { width: 56%; height: 100%; padding: 6px max(5px, 2.8%); }
  .poster-title img { height: 100%; max-height: none; }
}

.scene { opacity: 1; filter: none; }
.shade { background: linear-gradient(180deg,#12131740,transparent 44%,transparent 74%,#10101477); }
.guardian-deck { display: grid; gap: 6px; grid-template-columns: minmax(0,1fr) auto; align-items: stretch; }
.guardian-deck .pad { min-width: 0; padding-inline: 8px; }
.invoke,.guardian-book { font: inherit; color: #faecd5; background:#262724; border:1px solid #746453; border-radius:3px; }
.invoke { display:flex; gap:8px; align-items:center; justify-content:center; min-width:96px; min-height:44px; padding:4px 10px; font-size:.85rem; font-weight:700; }
.invoke b { color:var(--guardian-color);font:600 .78rem var(--mono); }
.invoke[aria-disabled="false"] { color:#191914;border-color:var(--guardian-color);background:var(--guardian-color); }
.invoke[aria-disabled="false"] b { color:inherit; }
.guardian-book { width:100%;min-height:44px;display:flex;align-items:center;gap:8px;padding:5px 8px;text-align:left; }
.guardian-book img { width:clamp(43px,5vw,69px);height:30px;object-fit:contain; }
.guardian-book small,.book-action {display:block;color:#ddc9ad;font-size:.72rem;}
.guardian-book strong {display:block;font-size:.87rem;}
.book-action {margin-left:auto;font-weight:650;}
#chamber-name { display:block; color:#dfc79e; font:600 .72rem/1.35 var(--mono); }
.form-grid { display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px; }
.form-card {border:1px solid #5a5245;background:#252521;padding:10px;min-width:0;border-radius:3px;}
.form-card[data-active="true"] {border-color:var(--guardian-color);}
.form-card img {display:block;width:100%;height:clamp(48px,9vh,78px);object-fit:contain;margin:0 auto 8px;}
.form-card small {color:var(--guardian-color);font:600 .74rem var(--mono);}
.form-card h3 {margin:4px 0 9px;font-size:1.1rem;}
.form-card strong {color:#f4d6a7;font-size:.86rem;}
.form-card p {margin:3px 0 0;color:#e0d5c4;font-size:.88rem;line-height:1.4;}
.notice { max-width:92%; width:max-content; white-space:normal; }
@media(max-height:560px) and (orientation:landscape) {
 .layout { --court-h:calc(100svh - 151px); }
 .guardian-book {padding-block:2px;}
 .side .poster {height:clamp(50px,calc(100svh - 255px),165px);}
 .guardian-deck .pad-text {font-size:.73rem;}
 .invoke {min-width:82px;padding-inline:6px;}
}

/* Grupo ONO: la marca vuelve a todos los juegos (grupo-ono.com/#games). */
a.brand{color:inherit;text-decoration:none}
a.brand>span::before{content:"\2039";margin-right:.35em}
a.brand:hover>span,a.brand:focus-visible>span{text-decoration:underline;text-underline-offset:4px}
