
/* Adventure collection: illustrated worlds and a wide arcade stage. */
.adventure-card .card-visual{height:250px!important;background:#19213b}
.adventure-card .card-visual:after{background:linear-gradient(180deg,#06142322,transparent 55%,#06142388)}
.adventure-card .card-visual img{width:100%;height:100%;object-fit:cover;transition:transform .5s}
.adventure-card:hover .card-visual img{transform:scale(1.06)}
.adventure-card .visual-label{color:#fff;background:#102333d9;border-color:#efffff40;z-index:1}
.adventure-card .card-portrait{position:absolute;right:24px;bottom:9px;width:92px;height:100px;filter:drop-shadow(0 4px 12px #060f2580);z-index:1}
.adventure-card .card-info h3{font-size:23px}
.adventure-card .visual-index{color:white;left:20px;right:auto;z-index:1}
.adventure-announcement{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 28px;padding:23px 27px;background:linear-gradient(105deg,#203d3044,#291e5144);border:1px solid #6b916655;border-radius:7px}
.adventure-announcement h3{font-size:20px;font-weight:500;margin:0 0 7px}.adventure-announcement p{font-size:12px;color:#abb7a8;margin:0;line-height:1.6}.adventure-announcement button{white-space:nowrap}
dialog.adventure-dialog{width:min(1280px,calc(100% - 24px));max-height:97dvh}
.adventure-dialog .game-layout{grid-template-columns:minmax(0,1fr);gap:15px}
.adventure-dialog .mission{border-left:0;border-top:1px solid var(--line);padding:22px 0 0;display:grid;grid-template-columns:1fr 1.2fr;gap:0 28px}
.adventure-dialog .mission>.eyebrow{grid-column:1}.adventure-dialog .mission h3{grid-column:1;margin:10px 0}
.adventure-dialog #mission-description{grid-column:1;margin:0}.adventure-dialog #mission-how{grid-column:2;grid-row:1/5}.adventure-dialog #mission-how h4:first-child{margin-top:0}
.adventure-dialog .mission-footer{grid-column:1;margin:12px 0}.adventure-dialog .game-hud{margin-bottom:12px}.adventure-dialog .hud-item strong{font-size:17px}.adventure-dialog .hud-item:last-child{flex:1.5}
.adventure-dialog #game-controls{display:block;margin-top:10px}.adventure-dialog .game-header{padding-bottom:15px}.adventure-dialog .game-header h2{font-size:26px}
.adventure-stage{position:relative;background:#152b44;border:1px solid #66808555;border-radius:9px;overflow:hidden;aspect-ratio:16/9;max-height:66dvh;margin-inline:auto;width:100%}
.adventure-canvas{display:block;width:100%;height:100%;object-fit:contain;background:#151d32;outline-offset:-5px!important}
.adventure-overlay-host{position:absolute;inset:0;pointer-events:none}.adventure-overlay-host:empty{display:none}
.adventure-overlay{pointer-events:auto;position:absolute;inset:0;background:linear-gradient(120deg,#07152be8,#131a39bb);backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:20px;color:#fff}
.adventure-avatar{width:77px;height:77px;margin-bottom:9px;filter:drop-shadow(0 0 17px #cfffc855)}
.adventure-kicker{font:9px var(--mono);letter-spacing:2px;color:var(--adventure-accent)}
.adventure-overlay h3{font-size:clamp(23px,3vw,39px);font-weight:650;letter-spacing:-1.3px;margin:12px 0}
.adventure-overlay p{font-size:12px;line-height:1.65;color:#cad7e4;max-width:480px;margin:0 0 16px}
.adventure-overlay .primary-button{background:var(--adventure-accent);padding:13px 23px;margin-top:9px;color:#142538}
.adventure-level-picker{display:flex;gap:9px;margin:2px 0 11px}
.adventure-level-picker button{background:#f0ffff08;border:1px solid #dbedff3b;padding:10px 14px;border-radius:6px;width:165px;color:#bdd1e2}
.adventure-level-picker button.chosen{border-color:var(--adventure-accent);background:#a7ddff15}
.adventure-level-picker strong{font:16px var(--mono);display:block;color:var(--adventure-accent)}
.adventure-level-picker span{display:block;font-size:10px;margin:6px 0}.adventure-level-picker small{color:#eed797;letter-spacing:3px;font-size:11px}
.adventure-start-hint{font:8px var(--mono);letter-spacing:.5px;margin-top:15px;color:#90a5bb}
.adventure-overlay.compact .ghost-button{margin-top:12px}.adventure-overlay.victory small{font-size:9px;color:#a8bfd1;margin-top:15px}
.adventure-stars{font-size:52px;color:#ffe6a3;text-shadow:0 0 30px #ffe99955;letter-spacing:12px;margin-top:13px}
.adventure-toast{position:absolute;top:14px;left:50%;transform:translate(-50%,-8px);background:#101e33dd;border:1px solid #e3f5ff44;color:#f5ffea;padding:10px 17px;border-radius:7px;font-size:11px;pointer-events:none;opacity:0;transition:.2s;white-space:nowrap}
.adventure-toast.visible{opacity:1;transform:translate(-50%,0)}.adventure-console{width:100%}
.adventure-tools{display:flex;gap:8px;align-items:center}.adventure-keyboard{margin-left:auto;font:9px var(--mono);color:#8ca698}
.adventure-touch{display:flex;align-items:center;justify-content:space-between;margin-top:10px;touch-action:none;user-select:none;-webkit-user-select:none}
.adventure-dpad,.adventure-action-buttons{display:flex;align-items:center;gap:10px}
.adventure-touch button{touch-action:none;-webkit-user-select:none;user-select:none;width:61px;height:53px;border-radius:12px;border:1px solid #617b6455;background:linear-gradient(#23382b,#132119);box-shadow:0 4px 0 #070d09;color:#dcffd1;font-size:19px}
.adventure-touch button.pressed{transform:translateY(3px);box-shadow:0 1px 0 #070d09;background:#405d36}
.adventure-touch .ability-touch{width:87px;background:linear-gradient(#32354d,#1d2437);border-color:#8183ad55;color:#c7d5ff}
.adventure-touch .jump-touch{width:82px;background:linear-gradient(#bedc96,#80ac5c);color:#1a3716;border-color:#ceefa5}
.adventure-action-buttons span{display:block;line-height:19px}.adventure-action-buttons small{font:8px var(--mono);display:block;margin-top:6px}
.adventure-dialog:fullscreen{width:100vw;max-width:none;max-height:100dvh;height:100dvh;border-radius:0;border:none;overflow:auto}
.adventure-dialog:fullscreen .game-shell{padding:12px;max-width:1250px;margin:auto}.adventure-dialog:fullscreen .adventure-stage{max-height:70dvh}
@media(min-width:1000px){.adventure-touch{margin-top:8px}.adventure-touch button{height:45px;width:55px}.adventure-touch .jump-touch{width:80px}.adventure-touch .ability-touch{width:85px}}
@media(max-width:760px){
 .adventure-card .card-visual{height:230px!important}.adventure-announcement{padding:18px;align-items:flex-start;flex-direction:column}.adventure-announcement h3{font-size:19px}
 dialog.adventure-dialog{width:calc(100% - 8px);max-height:98dvh}.adventure-dialog .game-shell{padding:10px}
 .adventure-dialog .game-header h2{font-size:18px;letter-spacing:-.4px}.adventure-dialog .game-header .eyebrow{font-size:7px}
 .adventure-dialog .game-layout{padding-top:11px}.adventure-dialog .game-hud{gap:3px;margin-bottom:8px}.adventure-dialog .hud-item{padding:7px 5px}.adventure-dialog .hud-item span{font-size:6px;letter-spacing:0}.adventure-dialog .hud-item strong{font-size:11px}.adventure-dialog .hud-item:last-child{flex:1.25}
 .adventure-stage{aspect-ratio:16/10;max-height:none;border-radius:6px}.adventure-canvas{object-fit:fill}
 .adventure-overlay{padding:9px}.adventure-avatar{display:none}.adventure-kicker{font-size:6px;letter-spacing:1px}
 .adventure-overlay h3{font-size:22px;margin:7px 0}.adventure-overlay p{font-size:9px;line-height:1.5;margin-bottom:8px;max-width:290px}
 .adventure-level-picker{gap:5px;margin:0 0 5px}.adventure-level-picker button{width:94px;padding:5px 4px}.adventure-level-picker strong{font-size:11px}.adventure-level-picker span{font-size:7px;margin:3px 0}.adventure-level-picker small{font-size:8px}
 .adventure-overlay .primary-button{font-size:10px;padding:8px 15px;margin-top:3px}.adventure-start-hint{font-size:6px;margin-top:8px}
 .adventure-tools .ghost-button{font-size:9px;padding:8px 10px}.adventure-keyboard{display:none}
 .adventure-touch{margin-top:12px}.adventure-dpad,.adventure-action-buttons{gap:8px}.adventure-touch button{height:51px;width:51px}.adventure-touch .ability-touch{width:84px}.adventure-touch .jump-touch{width:70px}
 .adventure-dialog .mission{display:block;padding-top:17px}.adventure-dialog .mission h3{font-size:18px}.adventure-dialog #mission-how h4:first-child{margin-top:20px}
 .adventure-toast{font-size:8px;max-width:95%;white-space:normal;width:max-content;padding:7px 10px;top:7px}
 .adventure-stars{font-size:32px;margin:6px 0;letter-spacing:5px}.adventure-overlay.victory small{font-size:7px;margin-top:8px}
 .adventure-dialog #game-status{font-size:10px;min-height:22px}
}
@media(max-height:560px) and (orientation:landscape){
 .adventure-dialog .game-header{padding-bottom:7px}.adventure-dialog .game-header h2{font-size:18px}.adventure-dialog .game-layout{padding-top:7px}
 .adventure-dialog .game-hud{display:none}.adventure-dialog .mission,.adventure-dialog #game-status{display:none}
 .adventure-dialog .game-shell{padding:8px}.adventure-stage{width:min(100%,calc((100dvh - 90px)*1.777));max-height:calc(100dvh - 90px);aspect-ratio:16/9}
 .adventure-dialog .adventure-tools{position:absolute;right:20px;top:74px;z-index:5;flex-direction:column}.adventure-tools .ghost-button{font-size:8px;padding:7px}
 .adventure-keyboard{display:none}.adventure-touch{position:absolute;left:16px;right:16px;bottom:16px;pointer-events:none;z-index:4}.adventure-touch button{pointer-events:auto;opacity:.85}.adventure-dialog #game-controls{margin:0}
 .adventure-dialog .game-shell{position:relative;min-height:96dvh}.adventure-overlay h3{font-size:22px}.adventure-avatar{display:none}.adventure-level-picker button{padding:6px 9px;width:130px}
}

/* Pinocchio: a warm storybook adventure inside the arcade. */
.pinocchio-dialog .adventure-avatar{width:136px;height:108px;margin:0 auto 4px}
.pinocchio-dialog .adventure-avatar svg{width:100%;height:100%}
.pinocchio-dialog .adventure-overlay.intro{background:linear-gradient(145deg,#0c2339ed,#242237ef);border-color:#d9ad6966}
.pinocchio-dialog .adventure-overlay h3{font-family:Georgia,serif;color:#ffe3b8}
.pinocchio-dialog .adventure-kicker{color:#ffd497}
.pinocchio-dialog .adventure-tools{flex-wrap:wrap}
.pinocchio-dialog .adventure-tools [data-action=sound]{margin-left:auto}
.pinocchio-dialog .adventure-touch .truth-touch{background:#123d4d;color:#b2ffff;border-color:#70cfda}
.pinocchio-dialog .adventure-touch .ability-touch{background:#594026;color:#ffe0a6;border-color:#ca9c5a}
.pinocchio-dialog .adventure-start{background:#ffd39a;color:#292426}
.pinocchio-riddle{max-width:630px;background:linear-gradient(145deg,#13263ff5,#242032f5);border:1px solid #e9ba7977}
.pinocchio-riddle blockquote{margin:16px 0;padding:14px 20px;border-left:2px solid #efc993;text-align:left;font:italic clamp(16px,2.5vw,23px)/1.5 Georgia,serif;color:#ffe0b8;background:#ffdaac09;border-radius:0 9px 9px 0}
.riddle-choices{display:flex;gap:12px;justify-content:center;margin:15px 0}
.riddle-choices button{min-width:140px;padding:14px 22px;border:1px solid;border-radius:10px;font-weight:750;cursor:pointer;font-size:16px}
.riddle-choices .truth-choice{background:#163c4a;color:#b5fffc;border-color:#80dbde}
.riddle-choices .lie-choice{background:#4c3428;color:#ffdbab;border-color:#d9ac70}
.riddle-choices button:hover,.riddle-choices button:focus-visible{filter:brightness(1.2);outline:2px solid #fff;outline-offset:3px}
.pinocchio-riddle .riddle-feedback{min-height:42px;font-size:12px;line-height:1.5;color:#b8ced7;margin-bottom:0}
.game-card:has([data-play="pinocchio"]) .card-portrait{width:140px;height:112px;right:22px;bottom:21px}
.game-card:has([data-play="pinocchio"]){border-color:#ba8e5055}
@media(max-width:600px){
 .pinocchio-dialog .adventure-touch{gap:6px}
 .pinocchio-dialog .adventure-action-buttons{gap:5px}
 .pinocchio-dialog .adventure-touch button{width:52px;height:52px}
 .pinocchio-dialog .adventure-touch button small{font-size:8px}
 .pinocchio-dialog .adventure-dpad{gap:5px}
 .pinocchio-dialog .adventure-overlay.intro .adventure-avatar{width:95px;height:74px}
 .pinocchio-riddle{padding:18px 14px}
 .pinocchio-riddle h3{font-size:24px}
 .pinocchio-riddle blockquote{font-size:16px;margin:10px 0;padding:10px 13px}
 .riddle-choices button{min-width:110px;padding:11px}
}
@media(max-height:500px) and (orientation:landscape){
 .pinocchio-dialog .adventure-overlay.intro .adventure-avatar{display:none}
 .pinocchio-riddle{padding:12px 22px;max-width:640px}
 .pinocchio-riddle h3{font-size:21px;margin:4px}
 .pinocchio-riddle blockquote{font-size:16px;margin:8px 0;padding:7px 12px}
 .pinocchio-riddle p{margin:5px 0}
 .riddle-choices{margin:8px}
 .riddle-choices button{padding:8px 18px}
}
