:root{color-scheme:light;--paper: #fff8ec;--paper-deep: #f4ead6;--ink: #1e2935;--muted: #57616b;--green: #1e684e;--green-deep: #15533d;--sun: #ffd153;--coral: #e86a4d;--lavender: #e9e2fb;--line: #e5ddcf;--game-bg: #0b1020;--game-panel: #131a32;--game-panel-2: #1b2347;--game-fg: #f5f7ff;--radius: 16px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-width:320px;background:var(--paper);color:var(--ink);font-family:Trebuchet MS,Segoe UI,sans-serif;font-size:16px;line-height:1.55;-webkit-tap-highlight-color:transparent}button,input{font:inherit}button,a{touch-action:manipulation}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #ba4b31;outline-offset:4px}.hidden{display:none!important}#product-site{overflow:clip}.site-header{width:min(1180px,calc(100% - 64px));min-height:88px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:28px}.brand{display:inline-flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none;font-size:1.25rem;font-weight:900;letter-spacing:-.045em;white-space:nowrap}.brand-mark{width:36px;height:36px;display:grid;place-items:center;border-radius:11px 11px 11px 4px;background:var(--sun);color:var(--ink);font-size:1.35rem;font-weight:900;transform:rotate(-5deg)}.brand-accent{color:var(--green)}.site-nav{display:flex;align-items:center;gap:clamp(20px,3vw,40px)}.site-nav a{color:var(--ink);text-decoration:none;font-weight:700;font-size:.94rem}.site-nav a:hover,.text-link:hover{text-decoration:underline;text-underline-offset:5px}.button{min-height:52px;padding:12px 20px;display:inline-flex;justify-content:center;align-items:center;gap:14px;border:0;border-radius:999px;text-decoration:none;font-weight:800;font-size:.96rem;line-height:1.2;cursor:pointer;transition:transform .18s ease,background-color .18s ease,box-shadow .18s ease}.button:hover{transform:translateY(-2px)}.button:active{transform:translateY(1px)}.button-dark{background:var(--ink);color:#fff}.button-dark:hover{background:#344456}.button-primary{background:var(--green);color:#fff;box-shadow:0 5px 0 var(--green-deep)}.button-primary:hover{background:var(--green-deep);box-shadow:0 7px #103e2e}.button-paper{background:var(--sun);color:var(--ink)}.button-paper:hover{background:#ffdf80}.hero{width:min(1280px,calc(100% - 64px));min-height:625px;margin:0 auto;padding:54px 6.3% 66px;display:grid;grid-template-columns:1.05fr .95fr;align-items:center;gap:34px;overflow:hidden;position:relative;border-radius:30px;background:var(--sun)}.hero:after{width:380px;height:380px;position:absolute;top:-240px;left:45%;border:1px solid rgb(30 41 53 / 12%);border-radius:50%;box-shadow:0 0 0 30px #1e29350a,0 0 0 60px #1e29350a;content:"";pointer-events:none}.hero-copy{position:relative;z-index:1}.hero h1,.promise h2,.section-heading h2,.print-copy h2{margin:0;letter-spacing:-.055em;line-height:1.04;text-wrap:balance}.hero h1{max-width:700px;font-size:clamp(3rem,6.5vw,5.3rem)}.hero h1 span,.promise h2 span,.print-copy h2 span{color:var(--green)}.hero-description{max-width:54ch;margin:24px 0 27px;color:#344252;font-size:1.15rem;line-height:1.65}.hero-actions{display:flex;align-items:center;flex-wrap:wrap;gap:24px}.text-link{display:inline-flex;align-items:center;gap:9px;color:var(--ink);font-weight:800;text-decoration-thickness:1px;text-underline-offset:4px}.hero-note{margin:25px 0 0;color:#42515d;font-size:.84rem;font-weight:700}.hero-art{min-height:440px;position:relative;display:grid;place-items:center;isolation:isolate}.hero-art:before{width:min(390px,95%);aspect-ratio:1;position:absolute;z-index:-1;border:1px solid rgb(255 255 255 / 44%);border-radius:50%;background:#e3aa24;box-shadow:0 0 0 18px #ffffff24,inset 0 -15px #7f490c14;content:""}.hero-art img{width:min(92%,440px);height:430px;object-fit:contain;filter:drop-shadow(0 23px 13px rgb(89 52 21 / 25%));animation:mascot-arrive .8s cubic-bezier(.16,1,.3,1) both}.hero-orbit{width:min(430px,100%);aspect-ratio:1;position:absolute;z-index:-1;border:1px dashed rgb(30 41 53 / 35%);border-radius:50%;transform:rotate(-18deg) scaleY(.48)}.hero-orbit-two{transform:rotate(28deg) scaleY(.62);border-style:solid;opacity:.4}.hero-star{position:absolute;color:var(--coral);font-size:2.1rem}.hero-star-one{top:35px;left:9%;transform:rotate(14deg)}.hero-star-two{top:17%;right:4%;color:var(--green);font-size:1.5rem}.hero-creature-label{position:absolute;right:1%;bottom:4%;min-width:215px;padding:13px 15px;display:flex;align-items:center;gap:11px;border:1px solid rgb(30 41 53 / 12%);border-radius:14px;background:var(--paper);box-shadow:0 7px 17px #1e29351f}.creature-dot{width:11px;height:11px;flex:0 0 auto;border-radius:50%;background:var(--green)}.hero-creature-label strong,.hero-creature-label small{display:block}.hero-creature-label strong{font-size:1rem;line-height:1.2}.hero-creature-label small{margin-top:3px;color:var(--muted);font-size:.76rem}.label-star{margin-left:auto;color:#ac6b0d;font-size:1.1rem}.promise{width:min(1120px,calc(100% - 64px));min-height:250px;margin:0 auto;padding:72px 32px 68px;display:grid;grid-template-columns:1.25fr .75fr;align-items:center;gap:60px}.promise h2{font-size:clamp(2.1rem,4vw,3.3rem)}.promise>p{max-width:49ch;margin:0;color:#454f59;font-size:1.04rem;line-height:1.8}.how-to{padding:80px max(32px,calc((100% - 1120px)/2)) 92px;background:#e7f0e3}.section-heading{display:flex;justify-content:space-between;align-items:end;gap:36px}.section-heading h2{font-size:clamp(2.2rem,4vw,3.5rem)}.section-heading>p{max-width:42ch;margin:0 0 3px;color:#4b5860;line-height:1.65}.steps{margin:45px 0 0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(24px,4.3vw,58px);list-style:none}.steps li{display:grid;grid-template-columns:47px 1fr;align-content:start;gap:15px}.step-number{width:43px;height:43px;display:grid;place-items:center;border-radius:50%;background:var(--green);color:#fff;font-size:1.15rem;font-weight:900}.steps h3{margin:4px 0 9px;font-size:1.16rem;letter-spacing:-.025em}.steps p{margin:0;color:#4b5860;line-height:1.65}.collection{padding:94px max(32px,calc((100% - 1120px)/2)) 105px;background:var(--paper)}.collection-heading{margin-bottom:40px}.monster-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}.monster-card{min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:18px;background:#fffdf8;transition:transform .2s ease,box-shadow .2s ease}.monster-card:hover{transform:translateY(-4px);box-shadow:0 10px 22px #2c302a1a}.monster-art{width:100%;height:222px;display:block;object-fit:contain;background:#f2eadb}.monster-details{padding:16px 18px 18px}.monster-details h3{margin:0;font-size:1.19rem;letter-spacing:-.025em}.monster-details p{margin:4px 0 0;color:var(--muted);font-size:.89rem;text-transform:capitalize}.print-section{min-height:434px;padding:50px max(32px,calc((100% - 1120px)/2));display:grid;grid-template-columns:.82fr 1.18fr;align-items:center;gap:clamp(40px,7vw,92px);overflow:hidden;background:#233d34;color:#fff}.print-art{min-height:315px;position:relative;display:grid;place-items:center;isolation:isolate}.print-art:before{width:300px;aspect-ratio:1;position:absolute;z-index:-1;border:1px solid rgb(255 255 255 / 35%);border-radius:50%;background:#35624a;box-shadow:0 0 0 22px #ffffff0d;content:""}.print-art img{width:min(100%,330px);height:300px;object-fit:contain;filter:drop-shadow(0 20px 13px rgb(0 0 0 / 28%))}.print-spark{position:absolute;color:var(--sun);font-size:2.1rem}.print-spark-one{top:9%;right:17%}.print-spark-two{bottom:19%;left:9%;font-size:1.5rem}.print-copy h2{font-size:clamp(2.35rem,4.4vw,3.8rem)}.print-copy h2 span{color:var(--sun)}.print-copy>p:not(.print-note){max-width:53ch;margin:19px 0 24px;color:#e3ebdf;line-height:1.7}.download-links{display:flex;flex-wrap:wrap;align-items:center;gap:22px}.download-links .text-link{min-height:44px;display:inline-flex;align-items:center}.download-links{max-width:760px}.light-link{color:#fff}.print-note{margin:16px 0 0;color:#d5e0d4;font-size:.79rem}.site-footer{min-height:92px;width:min(1120px,calc(100% - 64px));margin:0 auto;display:flex;justify-content:space-between;align-items:center;gap:24px}.footer-brand{font-size:1.08rem}.footer-brand .brand-mark{width:31px;height:31px;font-size:1.1rem}.site-footer p{margin:0;color:var(--muted);font-size:.89rem}.footer-play{padding:9px 0 9px 12px;border:0;background:transparent;color:var(--green-deep);font-weight:800;cursor:pointer}@keyframes mascot-arrive{0%{opacity:.65;transform:translateY(18px) scale(.94)}to{opacity:1;transform:translateY(0) scale(1)}}@media (max-width: 900px){.site-header{width:min(100% - 40px,680px);min-height:76px}.hero{width:calc(100% - 40px);min-height:550px;padding:42px 5%;grid-template-columns:1fr .85fr;gap:18px}.hero-art{min-height:370px}.hero-art img{height:360px}.hero-creature-label{right:-2%;bottom:2%;min-width:180px}.promise{width:min(100% - 52px,720px);padding:64px 4px;grid-template-columns:1fr;gap:20px}.promise>p{max-width:68ch}.how-to,.collection{padding-right:32px;padding-left:32px}.monster-grid{grid-template-columns:repeat(3,1fr);gap:16px}.monster-art{height:205px}.print-section{padding-right:36px;padding-left:36px;gap:36px}}@media (max-width: 620px){html{scroll-behavior:auto}.site-header{width:calc(100% - 36px);min-height:72px;gap:10px}.brand{gap:8px;font-size:1.05rem}.brand-mark{width:32px;height:32px}.site-nav{display:none}.header-play{min-height:42px;padding:9px 12px;gap:6px;font-size:.82rem}.hero{width:calc(100% - 24px);min-height:0;padding:36px 25px 28px;grid-template-columns:1fr;gap:0;border-radius:23px}.hero h1{font-size:clamp(2.75rem,12vw,4.25rem)}.hero-description{margin:18px 0 21px;font-size:1.03rem}.hero-actions{align-items:flex-start;flex-direction:column;gap:16px}.hero-note{margin-top:19px;font-size:.77rem}.hero-art{min-height:315px;margin:10px 0 -6px}.hero-art:before{width:min(270px,86%)}.hero-art img{height:315px}.hero-orbit{width:285px}.hero-creature-label{right:0;bottom:0;min-width:175px;padding:10px 12px}.hero-star-one{top:22px;left:5%}.hero-star-two{right:8%}.promise{width:calc(100% - 48px);padding:57px 0 62px;gap:15px}.promise h2{font-size:2.25rem}.promise>p{font-size:.98rem}.how-to{padding:57px 25px 62px}.section-heading{align-items:flex-start;flex-direction:column;gap:13px}.section-heading h2{font-size:2.35rem}.steps{margin-top:30px;grid-template-columns:1fr;gap:26px}.steps li{grid-template-columns:40px 1fr;gap:12px}.step-number{width:37px;height:37px}.collection{padding:63px 18px 69px}.collection-heading{margin:0 7px 27px}.monster-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.monster-card{border-radius:13px}.monster-art{height:clamp(142px,48vw,205px)}.monster-details{padding:11px 12px 13px}.monster-details h3{font-size:1rem}.monster-details p{font-size:.77rem;line-height:1.4}.print-section{min-height:0;padding:48px 25px 46px;grid-template-columns:1fr;gap:23px}.print-art{min-height:250px}.print-art:before{width:230px}.print-art img{height:255px}.print-copy h2{font-size:2.55rem}.download-links{align-items:flex-start;flex-direction:column;gap:18px}.site-footer{width:calc(100% - 36px);min-height:98px;flex-wrap:wrap;justify-content:space-between;gap:0 10px}.site-footer p{order:2;width:100%;margin:-22px 0 12px;font-size:.81rem}.footer-play{font-size:.86rem}}@media (max-width: 360px){.header-play{padding:9px;font-size:.75rem}.hero{padding-right:19px;padding-left:19px}.collection{padding-right:13px;padding-left:13px}.monster-art{height:136px}}@media (prefers-reduced-motion: reduce){*,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}.hero h1,.promise h2,.section-heading h2,.print-copy h2{letter-spacing:-.035em}.hero{border-radius:16px}#hero-canvas{position:absolute;inset:0;width:100%;height:100%;z-index:1;touch-action:pan-y;cursor:grab;opacity:0}#hero-canvas:active{cursor:grabbing}.hero-creature-label{z-index:2;pointer-events:none}.hero-controls{position:absolute;z-index:3;display:flex;align-items:center;gap:8px;bottom:-45px}.hero-controls button{border:1px solid #1e293550;background:#ffe18f;color:#1e2935;border-radius:999px;min-height:40px;padding:6px 15px;font-weight:700;cursor:pointer}.hero-controls button:hover{background:#fff}#hero-hint{position:absolute;bottom:-80px;font-size:.75rem;color:#344252;text-align:center}.hero-art{margin-bottom:55px}.adventure-banner{width:min(1120px,calc(100% - 48px));margin:50px auto 0;display:flex;align-items:center;justify-content:space-between;gap:32px;padding:26px 0;border-block:1px solid var(--line)}.adventure-banner h2{margin:0 0 10px;font-size:clamp(1.4rem,3vw,2rem);letter-spacing:-.03em}.adventure-banner p{max-width:62ch;margin:0;color:var(--muted)}.adventure-banner .button{flex-shrink:0}.adventure-symbol{color:var(--green);font-size:1.6rem}@media (max-width: 620px){.hero-art{margin-bottom:65px}.hero-controls{bottom:-42px}.adventure-banner{flex-direction:column;align-items:flex-start;margin-top:20px;gap:20px}}@media (prefers-reduced-motion: reduce){.hero-art img{animation:none}}#hero-canvas:focus-visible{outline:3px solid #15533d;outline-offset:-4px;border-radius:14px}.game-active{height:100dvh;overflow:hidden;background:var(--game-bg)}#app{height:100dvh;display:flex;overflow:hidden;color:var(--game-fg);background:var(--game-bg);color-scheme:dark}#app .screen{flex:1;min-width:0;min-height:0;width:min(100%,800px);margin-inline:auto;padding:max(16px,env(safe-area-inset-top)) max(16px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left));display:flex;flex-direction:column;gap:14px;overflow-y:auto;overscroll-behavior:contain}.screen>*{flex-shrink:0}#app h1,#app h2,#app h3,#app p{margin:0}#app h1,#app h2{font-size:clamp(1.35rem,4vw,1.8rem);line-height:1.2}#app h1{color:var(--sun)}#app p{line-height:1.4}#app button,#app input,#app select{font:inherit}#app button{min-height:48px;padding:12px 16px;border:0;border-radius:12px;background:var(--sun);color:#191d29;font-weight:800;line-height:1.25;cursor:pointer;touch-action:manipulation}#app button:hover:not(:disabled){filter:brightness(1.08)}#app button:active:not(:disabled){filter:brightness(.9)}#app button:disabled{opacity:.55;cursor:default}#app :focus-visible{outline:3px solid #fff1b3;outline-offset:2px}#app button.secondary,#app button.home-button,#app .battle-sound{background:#24324b;color:#f5f7ff}#app input,#app select{width:100%;min-width:0;min-height:48px;padding:10px 12px;border:2px solid #526382;border-radius:10px;background:#18243a;color:#fff;font-size:1.05rem}#app label{font-weight:700}.game-titlebar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px}.game-titlebar .home-button{flex-shrink:0}#connection-status{position:fixed;z-index:15;inset:auto 12px 8px;width:fit-content;max-width:calc(100% - 24px);margin:auto;padding:8px 12px;background:#44361b;color:#fff0b3;border-radius:8px;font-size:.85rem;opacity:0;pointer-events:none}#connection-status.visible{opacity:1}.mode-choice{display:flex;align-items:center;gap:18px;text-align:left}#app .mode-choice{padding:22px}#app .duel-choice{background:#c7ebda}.mode-art{font-size:2.5rem}.mode-choice strong,.mode-choice small,.mode-choice b{display:block}.mode-choice strong{font-size:1.4rem}.mode-choice small{margin:8px 0 14px;font-size:.95rem;font-weight:500;line-height:1.4}.zila-picker{display:flex;align-items:center;justify-content:center;gap:22px;background:#17273e;border-radius:12px;padding:6px}.zila-picker img{width:112px;height:112px;object-fit:contain}.zila-picker button{width:48px}.selection-layout,.selection-character,.selection-options{display:flex;flex-direction:column;gap:10px}.disc-options summary{display:flex;align-items:center;min-height:48px;cursor:pointer;color:#d4e5ff;font-weight:700}.disc-options summary:before{content:"+";margin-right:10px}.disc-options[open] summary:before{content:"−"}.disc-options button{width:100%;margin-top:10px}.offline-actions{display:grid;gap:10px}.camera-choice{display:flex;align-items:center;gap:12px;min-height:48px;padding:10px;background:#17273e;border-radius:10px}#app .camera-choice input{width:24px;min-height:24px;height:24px;flex:0 0 24px}#cam-offline,#cam-arena{width:100%;max-height:220px;object-fit:cover;border-radius:12px;background:#050b15}#nickname-error,#lobby-notice,#challenge-status,#scan-status{color:#ffe3a1}#nickname-error:empty,#scan-status:empty,#quiz-feedback:empty{display:none}#lobby-list,#arena-qrs{list-style:none;padding:0;margin:0}#lobby-list li{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;padding:12px;border-radius:10px;background:#19283e}#lobby-list li span{min-width:0;overflow-wrap:anywhere}#lobby-list button{flex-shrink:0}.lobby-navigation{display:flex;flex-wrap:wrap;gap:10px;margin-top:auto;padding-top:16px}.lobby-navigation button{flex:1 1 180px}#arena-qrs li{display:flex;gap:10px;align-items:center;padding:8px}.dot{width:12px;height:12px;border-radius:50%;background:#e99b6d}.dot.ok{background:#81e9a3}#journey-summary{display:flex;align-items:center;gap:16px;padding:12px;border-radius:12px;background:#18283e}#journey-summary img{width:76px;height:84px;object-fit:contain}#journey-summary>div{flex:1;min-width:0}#journey-summary h2{font-size:1.15rem;color:#ffe39a}#journey-summary progress{width:100%;height:12px;accent-color:#ffd153}#journey-summary p,#journey-save-note{font-size:.85rem;color:#d4dfef}#journey-path{list-style:none;padding:0;margin:0;display:grid;gap:10px}#app #journey-path button{width:100%;display:flex;align-items:center;gap:12px;text-align:left;color:#f5f7ff;background:#19283e;border:2px solid transparent}#app #journey-path .journey-current button{border-color:#ffd153}#app #journey-path .journey-cleared button{border-color:#76c9a9}#app #journey-path button:disabled{opacity:.7}#journey-path img{width:54px;height:60px;object-fit:contain}#journey-path strong,#journey-path small{display:block}#journey-path small{margin-top:4px;color:#d0deef;font-size:.8rem;font-weight:500}.journey-badge{margin-left:auto;color:#ffe199;font-size:1.4rem}#app #screen-battle{position:relative;width:100%;max-width:1400px;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:48px minmax(150px,1fr) auto;gap:8px;padding:max(8px,env(safe-area-inset-top)) max(8px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))}.battle-toolbar{display:flex;align-items:stretch;justify-content:space-between;gap:12px;min-width:0}.battle-toolbar button{font-size:.9rem}.battle-field{min-width:0;min-height:0;display:flex;flex-direction:column;gap:6px}.hud{display:grid;grid-template-columns:minmax(0,1fr) 28px minmax(0,1fr);align-items:center;gap:5px}.hud-center{text-align:center;color:#ffe3a1;font-size:.75rem}.hud-player{--zila: #ffd153;--zila-light: #ffefb8;min-width:0;padding:6px 8px;border:1px solid var(--zila);border-radius:10px;background:#182438}.hp-identity{display:flex;align-items:center;gap:5px}.hp-portrait{width:28px;height:30px;object-fit:contain}.hp-heading{min-width:0}.hp-heading strong{display:block;font-size:.82rem;line-height:1.15;overflow-wrap:anywhere}.hp-owner{display:block;color:var(--zila-light);font-size:.65rem;line-height:1.3}.hp-symbol{display:none}.hp-track{height:10px;position:relative;overflow:hidden;border-radius:4px;margin-top:4px;background:#07101e}.hp-fill,.hp-trail,.hp-facets{position:absolute;inset:0;transform-origin:left}.hp-fill{background:var(--zila);transform:scaleX(var(--hp,1));transition:transform .4s ease-out}.hp-trail{background:#fff;opacity:.6;transform:scaleX(var(--trail,1))}.hp-stats{display:flex;justify-content:space-between;align-items:center;gap:4px;font-size:.8rem;line-height:1.4}.hp-number{font-weight:800}.hp-number small{color:#c3d0e4;font-weight:500}.hp-shield{color:#c3e9ff}.hp-delta{opacity:0}.hurt .hp-delta,.healed .hp-delta,.shielded .hp-delta{opacity:1}.hp-warning{font-size:.7rem;color:#ffe7a4}#scene-3d{flex:1;min-height:72px;min-width:0;position:relative;overflow:hidden;border-radius:12px;background:#18303d}#three-canvas{position:absolute;inset:0;width:100%;height:100%;z-index:2}#scene-3d video{position:absolute;z-index:1;max-height:none;max-width:none}#scene-3d.ar-active #three-canvas{right:auto;bottom:auto}#scene-3d.ar-active video{object-fit:fill}#ar-status{font-size:.78rem;line-height:1.25;padding:4px}.battle-controls{position:relative;display:flex;flex-direction:column;gap:8px;min-width:0;min-height:0}.is-answering #battle-cue{display:none}#battle-cue{min-height:36px;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:5px;padding:6px 10px;border-radius:8px;background:#17253b;text-align:center;font-size:.92rem;line-height:1.25}#battle-cue strong{color:var(--cue-color,#ffe199)}.cue-damage{color:#ffbfbb;font-weight:800}.actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}#app .power{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:76px;padding:10px 6px;background:#263650;color:#fff;font-size:.9rem}#app .power[data-power="3"]{background:#ffd153;color:#202536}.pdamage{font-size:.76rem;font-weight:500}.quiz{padding:10px;background:#17253b;border-radius:12px;text-align:center}#app #quiz-power-label{font-size:.9rem;font-weight:500;line-height:1.2}.quiz-q{margin:4px 0 8px;font-weight:900;font-size:2rem;color:#ffe199;line-height:1.15}#quiz-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(100px,1fr);gap:8px}#app #quiz-answer{text-align:center;font-size:1.4rem;padding:4px;caret-color:transparent}#quiz-keypad{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:0;margin:8px 0 0;border:0;min-width:0}#app #quiz-keypad button{background:#31445f;color:#fff;padding:4px;min-height:44px;font-size:1.2rem}#app #quiz-keypad [data-key]{font-size:.85rem;background:#23364e}#quiz-feedback{margin-top:6px;font-size:.82rem;line-height:1.2;color:#d6e5f7}#answer-feedback{position:absolute;z-index:5;inset:auto 0 100%;pointer-events:none;padding-bottom:6px}.answer-feedback-card{margin:auto;width:fit-content;max-width:100%;display:flex;flex-direction:column;gap:3px;padding:10px 16px;border-radius:10px;background:#fce9b5;color:#35250b;text-align:center;animation:answer-feedback-fade 2.4s ease-out both}.answer-feedback-card.good{background:#c9f5d9;color:#123b25}.answer-feedback-card span{font-size:1.5rem;font-weight:800}#result-screen{position:absolute;z-index:6;inset:64px 8px 8px;display:flex;flex-direction:column;align-items:center;justify-content:safe center;gap:16px;padding:24px;background:#15253af5;border:2px solid #536783;border-radius:12px;text-align:center;overflow:auto}#result-screen>*{flex-shrink:0;max-width:520px}#app #result-title{color:#ffe199;font-size:1.8rem}#result-screen button{width:min(100%,360px)}@keyframes answer-feedback-fade{0%,to{opacity:0}8%,90%{opacity:1}}@media (orientation: landscape) and (min-width: 540px){.selection-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}#app #screen-battle{grid-template-columns:minmax(0,1fr) clamp(250px,37vw,380px);grid-template-rows:44px minmax(0,1fr)}.battle-toolbar{grid-column:1 / -1}.battle-toolbar button{min-height:44px!important;padding:8px 14px!important}.battle-controls{overflow-y:auto;overscroll-behavior:contain;padding:2px}.is-answering #battle-cue{display:none}.quiz{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:4px}#quiz-form,#quiz-keypad,#quiz-feedback{grid-column:1 / -1}#quiz-power-label{text-align:left}.quiz-q{margin:0}.actions{grid-template-columns:1fr}#app .power{min-height:54px;flex-direction:row;justify-content:space-between;padding:10px;text-align:left}#answer-feedback{position:fixed;inset:auto auto 12px 12px;width:calc(63vw - 24px)}#app #screen-mode{display:grid;grid-template-columns:1fr 1fr;align-content:start}#screen-mode .game-titlebar,#mode-selected{grid-column:1 / -1}#app .mode-choice{padding:16px;align-items:flex-start}.mode-art{display:none}#journey-path{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-height: 700px){#app .screen{gap:10px;padding-top:10px}#battle-cue{min-height:28px;font-size:.85rem;padding:4px 6px}.battle-controls{gap:5px}.quiz{padding:6px}.quiz-q{font-size:1.65rem;margin:3px 0 5px}#quiz-feedback{display:none}#quiz-form button,#app #quiz-answer{min-height:44px}#quiz-keypad{margin-top:6px;gap:4px}}@media (prefers-reduced-motion: reduce){.hp-fill{transition:none}.answer-feedback-card{animation:none}}
