@charset "UTF-8";
:root{--paper:#f6f0e1;--ink:#302c29;--muted:#786d60;--accent:#b6482f;--line:#d9ceba;--serif:"Noto Serif TC","Songti TC","PMingLiU",serif;--sans:"PingFang TC","Noto Sans TC","Microsoft JhengHei",sans-serif}
*{box-sizing:border-box}body{margin:0;color:var(--ink);font:16px/1.5 var(--sans);background:var(--paper)}button,select,a{-webkit-tap-highlight-color:transparent}button,select{font:inherit}button,a,select{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default}a{color:inherit;text-decoration:none}button{color:inherit}button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid #239cd7;outline-offset:4px}button:disabled{opacity:.45}[hidden]{display:none!important}.site-head{height:76px;margin:0 4%;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:16px}.brand{font-weight:800;letter-spacing:.08em;white-space:nowrap}.brand span{font-weight:400;font-size:12px;letter-spacing:.16em;margin-left:15px;padding-left:15px;border-left:1px solid #bfb39f}.site-head nav{display:flex;gap:8px}.icon-button{border:1px solid #d5cab8;background:transparent;padding:9px 14px;border-radius:6px;min-height:44px;font-size:13px}.icon-button:hover{background:#e7ddc9}.eyebrow{font-size:11px;font-weight:700;letter-spacing:.16em}.game-shell{max-width:1560px;margin:auto;padding:0 4%;height:calc(100dvh - 76px);min-height:600px;display:grid;grid-template-rows:110px minmax(0,1fr) 44px}.chapter{display:flex;align-items:center;justify-content:space-between}.chapter .eyebrow{color:var(--accent)}h1,h2,p{margin:0}h1{font-family:var(--serif);font-size:36px;letter-spacing:.045em;line-height:1.35;font-weight:900;margin-top:5px}.chapter>p{font-family:var(--serif);color:var(--muted);font-size:14px;line-height:1.7;border-left:1px solid var(--line);padding-left:22px}.play-area{display:grid;grid-template-columns:minmax(0,1fr) 350px;border:1px solid #463d36;border-radius:14px;overflow:hidden;box-shadow:0 15px 35px #5b40211c;background:#33262a}.world{min-width:0;position:relative;overflow:hidden;isolation:isolate;color:#fff5dd}.environment{position:absolute;width:100%;height:100%;inset:0;z-index:-3}.scene-hud{position:absolute;left:24px;right:24px;top:22px;display:flex;justify-content:space-between;z-index:4;font-size:12px;letter-spacing:.12em}.scene-hud span{border:1px solid #c2a67e44;background:#14222688;padding:7px 12px;border-radius:5px}.scene-caption{position:absolute;left:6%;right:6%;bottom:22px;min-height:44px;text-align:center;border:1px solid #c7bc9738;border-radius:8px;background:#171b20e8;padding:10px 16px;font-size:14px;z-index:6;box-shadow:0 5px 20px #0003}.console{position:relative;display:flex;flex-direction:column;padding:26px;background:#f9f4e8;min-width:0;overflow:auto}.console-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.console-top .eyebrow{color:var(--accent)}.quest-mark{font-family:Georgia,serif;font-style:italic;font-size:26px;color:#ac9c86;line-height:1}.console h2{font-family:var(--serif);font-size:24px;line-height:1.45;margin-bottom:12px}.intro{font-size:14px;color:#6c6053;line-height:1.8;margin-bottom:20px}.console label{display:block;font-size:13px;font-weight:650;margin-bottom:9px}select{width:100%;min-height:48px;border:1px solid #cfc2ab;background:#fffdf6;border-radius:6px;padding:8px 30px 8px 10px;font-size:14px;color:#3f3428}.question-preview{margin:12px 0 18px;min-height:64px;font-size:14px;line-height:1.7;color:#6c6053}.primary{border:1px solid #953e2c;background:var(--accent);border-radius:6px;padding:12px 17px;color:#fff9e8;width:100%;min-height:48px;font-weight:650;box-shadow:0 3px 0 #752b24}.primary span{float:right}.primary:hover:not(:disabled){filter:brightness(1.1)}.console-bottom{margin-top:auto;padding-top:18px}.status-line{font-size:12px;line-height:1.6;color:#786952;min-height:38px}.utility{display:flex;justify-content:space-between;gap:6px;border-top:1px solid var(--line);padding-top:10px;margin-top:10px}.utility button{font-size:13px;background:transparent;border:0;min-height:44px;padding:6px 0}.utility button:hover{color:var(--accent);text-decoration:underline}.game-foot{display:flex;align-items:center;justify-content:space-between;font-size:11px;color:#7b6b58;letter-spacing:.04em}.game-foot a:hover{text-decoration:underline}.portals{position:absolute;top:18%;left:13%;right:13%;height:54%;display:flex;justify-content:space-between;gap:18%}.portal{position:relative;width:42%;height:100%;border:0;background:transparent;padding:0 0 35px;opacity:1!important;transition:filter .3s,transform .3s}.portal-inner{display:flex;align-items:center;justify-content:center;height:100%;border:14px solid #776064;border-radius:48% 48% 5% 5%;background:repeating-linear-gradient(0deg,transparent 0 42px,#23172522 43px 45px),radial-gradient(ellipse at 50% 95%,#a87bbd,#492e52 52%,#1e2434);box-shadow:inset 0 0 0 4px #bc9b96,inset 0 0 45px #daacff55,0 5px 0 5px #302a32,0 0 45px #ed766333}.portal:nth-child(2) .portal-inner{background:repeating-linear-gradient(0deg,transparent 0 42px,#18272522 43px 45px),radial-gradient(ellipse at 50% 95%,#79b4a1,#31504d 52%,#1e2434)}.door-sigil{font-size:80px;color:#e9c8ac77;text-shadow:0 0 20px #ebbfcd}.door-label{position:absolute;bottom:0;left:50%;transform:translateX(-50%);background:#372b29;border:1px solid #af8b67;border-radius:4px;padding:3px 17px;font-size:14px;white-space:nowrap}.portal:not(:disabled){cursor:pointer;filter:brightness(1.2)}.portal:not(:disabled):hover,.portal:not(:disabled):focus-visible{filter:brightness(1.5);transform:translateY(-3px)}.guard-row{position:absolute;bottom:13%;left:21%;right:21%;display:flex;justify-content:space-between;gap:25%}.guard{position:relative;width:36%;padding:0;background:transparent;border:0;opacity:1!important;filter:drop-shadow(0 10px 8px #0006);transition:transform .2s}.guard img{display:block;width:100%;pointer-events:none}.guard>span:not(.sprite){display:block;width:max-content;margin:-7px auto 0;padding:3px 14px;border:1px solid #d5c3a255;background:#262129e8;border-radius:30px;font-size:12px;position:relative}.guard[aria-pressed="true"]{transform:translateY(-8px)}.guard[aria-pressed="true"]>span:not(.sprite){background:#fae5b8;color:#452c20;border-color:#fff3c9}.guard[aria-pressed="true"]:before{content:'▼';position:absolute;top:-16px;left:calc(50% - 6px);color:#ffdc8c;font-size:18px}.guard:hover:not(:disabled){transform:translateY(-5px)}.answer-label{font-size:12px;color:#7a6852}.answer-text{font-family:var(--serif);font-size:25px;color:var(--accent);padding:16px 0}.answer-text+p{font-size:14px;color:#6c6053}.ambient{position:absolute;inset:0;pointer-events:none;z-index:-1}.ambient i{position:absolute;left:20%;bottom:15%;width:4px;height:4px;border-radius:50%;background:#ffce85;box-shadow:0 0 14px 5px #fa803144;animation:drift 8s infinite linear;opacity:0}.ambient i:nth-child(2){left:78%;animation-delay:-1s}.ambient i:nth-child(3){left:45%;animation-delay:-4s}.ambient i:nth-child(4){left:60%;animation-delay:-6s}.ambient i:nth-child(5){left:8%;animation-delay:-3s}.ambient i:nth-child(6){left:89%;animation-delay:-5s}@keyframes drift{0%{transform:translate(0,0);opacity:0}20%,80%{opacity:.75}100%{transform:translate(25px,-230px);opacity:0}}.scene-result{position:absolute;inset:21% 10% 24%;z-index:10;border:1px solid #e0ba82;border-radius:15px;background:#172527f2;box-shadow:0 0 90px #f1b86b44;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:14px;padding:18px;animation:arrive .45s ease-out}.scene-result strong{font-family:var(--serif);font-size:32px;color:#f8d798}.scene-result span{font-size:15px}.scene-result .result-icon{font-size:45px;color:#f5d482;line-height:1}.scene-result.success{background:radial-gradient(ellipse at top,#456b4bf5,#142d2bf7)}@keyframes arrive{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}dialog{border:1px solid #c8b691;border-radius:14px;background:#fbf5e7;color:var(--ink);padding:34px;max-width:590px;width:calc(100% - 32px);max-height:85dvh;box-shadow:0 25px 100px #0006}dialog::backdrop{background:#122025b3;backdrop-filter:blur(5px)}.close{position:absolute;right:10px;top:8px;width:44px;height:44px;background:transparent;border:0;font-size:26px}dialog h2{font:800 25px var(--serif);margin:8px 0 20px;padding-right:20px}dialog h3{font-size:17px;margin:24px 0 8px}dialog p{margin:12px 0;font-size:15px;line-height:1.85}dialog table{border-collapse:collapse;width:100%;font-size:13px;margin:18px 0}dialog td,dialog th{border-bottom:1px solid #d9ceba;padding:9px 5px;text-align:left}dialog .callout{padding:13px 16px;background:#eae0c9;border-left:3px solid var(--accent);border-radius:3px}dialog button.pill{padding:10px 15px;border:1px solid #a9ad89;background:#f3eddc;border-radius:6px;min-height:44px;margin:5px}.forest{--accent:#2b6653}.forest .play-area{border-color:#254135}.forest .scene-caption{background:#102f29ed}.forest .ambient i{background:#ebf8a3;box-shadow:0 0 15px 5px #cef58433}.ball-hud{position:absolute;top:15%;left:50%;transform:translateX(-50%);display:flex;align-items:baseline;gap:12px;white-space:nowrap;color:#f5e3ac}.ball-hud strong{font:64px/.95 Georgia,serif;font-weight:400;text-shadow:0 3px 15px #0d392e}.ball-hud span{font-size:12px}.orb-board{position:absolute;left:25%;right:25%;top:32%;height:43%;display:grid;grid-template-columns:repeat(10,1fr);grid-template-rows:repeat(10,1fr);gap:5px;padding:20px;background:linear-gradient(140deg,#1a403cd6,#102b23d9);border:2px solid #a99a6477;box-shadow:0 15px 0 #0a2925,0 18px 0 #64784c66,0 25px 30px #03191566;border-radius:20px}.orb{align-self:center;justify-self:center;width:min(100%,19px);aspect-ratio:1;border-radius:50%;background:radial-gradient(circle at 30% 25%,#ffffe7 0,#fbe0a3 20%,#ddb34d 60%,#9f6d27 100%);box-shadow:0 1px 4px #060f0d;transition:opacity .3s,transform .3s}.orb.gone{opacity:.08;transform:scale(.65);background:#a9cdaa}.competitors{position:absolute;inset:32% 3% 16%;display:flex;justify-content:space-between;pointer-events:none;align-items:end}.competitor{width:24%;text-align:center;position:relative}.competitor img{width:100%;filter:drop-shadow(0 8px 8px #0005);transition:transform .3s}.competitor.active img{transform:translateY(-7px)}.competitor>span:not(.sprite){display:inline-block;border:1px solid #baae7e77;border-radius:30px;padding:4px 10px;background:#1c3a2a;font-size:11px;white-space:nowrap}.competitor.active>span:not(.sprite){background:#e7d3a2;color:#2c4533}.rival:before{content:'';position:absolute;top:7%;left:37%;width:38%;height:17%;border-radius:95% 0 95% 0;background:linear-gradient(45deg,#658c3a,#bbcf74);transform:rotate(-25deg);z-index:2;box-shadow:0 2px 3px #0004}.rule-note{font-size:12px;color:#746550;border-left:2px solid #c4b68e;padding-left:10px;margin:-8px 0 22px;line-height:1.65}.take-label{display:flex;justify-content:space-between;font-size:13px;gap:8px;margin:3px 0 10px}.take-label span+span{font-size:11px;color:#88765e}.take-buttons{display:flex;gap:7px}.take-buttons button{width:20%;aspect-ratio:1;min-height:44px;border:1px solid #718d6c;border-bottom:4px solid #3d6044;border-radius:8px;background:#e2ead3;font:26px Georgia,serif;color:#244e3f;transition:background .2s,transform .2s}.take-buttons button:hover:not(:disabled){background:#c5d7af;transform:translateY(-3px)}.take-buttons button:active:not(:disabled){transform:translateY(1px)}.round-log{font-size:13px;line-height:1.8;min-height:66px;border-top:1px dashed #d4c7ad;margin-top:18px;padding-top:13px;color:#71634e}.round-log b{color:#2b6653;font-weight:650}.practice-link{margin-top:5px;font-size:11px;background:none;border:0;color:#766b55;text-decoration:underline;width:100%;min-height:32px}.lobby{background:radial-gradient(ellipse at 50% 15%,#fff9eb,#ede4d3);min-height:100dvh}.edition{font-size:12px;color:#8b775e;letter-spacing:.12em}.lobby-main{max-width:1320px;margin:auto;padding:42px 4% 20px}.lobby-copy{text-align:center;margin:0 0 35px}.lobby-copy .eyebrow{color:#936242}.lobby-copy h1{font-size:48px;margin:10px 0}.lobby-copy>p:last-child{color:#7f6b57;font-family:var(--serif)}.adventures{display:grid;grid-template-columns:1fr 1fr;gap:26px}.adventure{display:flex;min-height:350px;border:1px solid #a38c69;border-radius:14px;overflow:hidden;color:#fff2d2;transition:transform .25s,box-shadow .25s;box-shadow:0 10px 30px #34261318}.adventure:hover{transform:translateY(-5px);box-shadow:0 20px 40px #34261326}.lava-card{background:radial-gradient(ellipse at 25% 80%,#b85435,#482a31 50%,#22232d)}.forest-card{background:radial-gradient(ellipse at 25% 80%,#627c40,#234c3d 50%,#123832)}.card-art{width:45%;position:relative;display:flex;align-items:end;justify-content:center;padding-bottom:30px;isolation:isolate}.card-art img{width:115%;position:relative;z-index:2;margin-right:-25px;filter:drop-shadow(0 12px 14px #0006)}.card-copy{flex:1;padding:45px 28px 36px 12px;z-index:3}.card-copy .eyebrow{font-size:10px;color:#efc78d}.card-copy h2{font-family:var(--serif);font-size:28px;margin:14px 0 20px;white-space:nowrap}.card-copy p{font-size:13px;line-height:1.9;color:#d5c6a9}.enter{display:flex;justify-content:space-between;align-items:center;margin-top:38px;padding-top:16px;border-top:1px solid #dfc49055;font-size:13px}.enter b{font-size:21px;font-weight:400}.mini-door{position:absolute;width:66%;height:75%;border:13px solid #b38c7244;border-radius:48% 48% 0 0;bottom:30px;background:linear-gradient(#322a48,#bd7972);z-index:0}.mini-orbs{position:absolute;top:25px;font-size:42px;line-height:1.1;color:#eacd89;letter-spacing:6px;transform:rotate(-12deg);text-shadow:0 0 30px #efce55}.lobby footer{font-size:11px;color:#87735a;display:flex;justify-content:space-between;margin-top:32px;letter-spacing:.06em}
@media(min-width:1100px) and (max-height:820px){.site-head{height:60px}.game-shell{height:calc(100dvh - 60px);min-height:540px;grid-template-rows:90px minmax(0,1fr) 36px}.console{padding:20px 24px}.console-top{margin-bottom:10px}.console h2{font-size:23px;margin-bottom:8px}.intro{margin-bottom:14px}.console-bottom{padding-top:10px}.question-preview{min-height:54px;margin:10px 0 12px}.rule-note{margin-bottom:13px}.round-log{margin-top:13px;padding-top:10px;min-height:58px}.console .status-line{min-height:32px}.utility{padding-top:4px;margin-top:6px}.practice-link{margin-top:0}.ball-hud strong{font-size:55px}.orb-board{gap:4px;padding:16px}.scene-caption{bottom:16px}}
@media(max-width:1100px){.play-area{grid-template-columns:minmax(0,1fr) 315px}.console{padding:22px}.portals{left:10%;right:10%;gap:12%}.portal{width:44%}.guard-row{left:17%;right:17%;gap:20%}.guard{width:40%}.orb-board{left:18%;right:18%;top:29%;height:42%;gap:4px;padding:16px}.competitors{inset:45% 2% 16%}.competitor{width:25%}.card-copy{padding-right:18px}.card-copy h2{font-size:24px}}
@media(max-width:760px){.site-head{height:62px;margin:0 4%;gap:6px}.brand{font-size:14px;letter-spacing:0}.brand span{display:none}.site-head nav{gap:4px}.icon-button{font-size:11px;padding:7px 9px;min-height:40px}.game-shell{height:calc(100dvh - 62px);min-height:655px;padding:0 12px;grid-template-rows:80px minmax(0,1fr) 30px}.chapter h1{font-size:25px;margin-top:2px}.chapter .eyebrow{font-size:9px}.chapter>p{display:none}.play-area{grid-template-columns:1fr;grid-template-rows:minmax(235px,1fr) auto;border-radius:11px}.console{overflow:visible;padding:14px 17px}.console-top,.console>.intro{display:none}.console h2{font-size:18px;margin-bottom:9px}.console label{font-size:12px;margin-bottom:6px}select{min-height:44px;font-size:14px}.question-preview{font-size:12px;min-height:38px;line-height:1.5;margin:7px 0 9px}.primary{min-height:44px;padding:9px 14px;font-size:14px}.console-bottom{padding-top:5px}.status-line{font-size:11px;min-height:18px;line-height:1.5}.utility{margin-top:5px;padding-top:3px}.utility button{font-size:12px;min-height:38px}.scene-hud{top:12px;left:14px;right:14px;font-size:10px}.scene-hud span{padding:3px 8px}.scene-caption{bottom:10px;left:4%;right:4%;font-size:12px;padding:6px 10px;min-height:32px}.portals{top:18%;left:21%;right:21%;height:53%;gap:17%}.portal{width:41%;padding-bottom:23px}.portal-inner{border-width:8px;box-shadow:inset 0 0 0 2px #b18f86,0 3px 0 3px #342630}.door-sigil{font-size:40px}.door-label{font-size:11px;padding:1px 10px}.guard-row{left:24%;right:24%;bottom:15%;gap:23%}.guard{width:32%;max-width:85px}.guard>span:not(.sprite){font-size:10px;padding:1px 9px}.guard[aria-pressed="true"]{transform:translateY(-3px)}.guard[aria-pressed="true"]:before{top:-10px;font-size:12px}.game-foot{font-size:9px;letter-spacing:0}.game-foot span{max-width:49%}.scene-result{inset:18% 7% 20%;gap:8px;padding:14px}.scene-result strong{font-size:25px}.scene-result span{font-size:12px}.scene-result .result-icon{font-size:25px}.answer-text{font-size:21px;padding:8px 0}.answer-text+p{font-size:13px}.answer-label{font-size:11px}.forest .console h2{margin-bottom:6px}.rule-note{font-size:11px;margin:0 0 8px;line-height:1.6}.take-label{font-size:12px;margin:7px 0}.take-buttons{gap:8px}.take-buttons button{height:44px;aspect-ratio:auto;font-size:24px}.round-log{font-size:12px;line-height:1.6;min-height:45px;margin-top:9px;padding-top:7px}.practice-link{font-size:10px;min-height:28px}.ball-hud{top:15%;gap:8px}.ball-hud strong{font-size:38px}.ball-hud span{font-size:10px}.orb-board{top:34%;left:27%;right:27%;height:42%;gap:3px;padding:10px;border-radius:10px;box-shadow:0 5px 0 #0a2925,0 7px 0 #64784c66,0 10px 18px #03191544}.competitors{inset:34% 4% 15%}.competitor{width:23%;max-width:108px}.competitor>span:not(.sprite){font-size:9px;padding:2px 6px}.lobby-main{padding-top:25px}.lobby-copy{margin-bottom:25px}.lobby-copy h1{font-size:34px}.lobby-copy>p:last-child{font-size:13px}.adventures{grid-template-columns:1fr;gap:16px}.adventure{min-height:255px}.card-art{width:42%;padding-bottom:18px}.card-art img{width:108%;max-height:235px;object-fit:contain}.card-copy{padding:28px 22px 22px 15px}.card-copy h2{font-size:23px;margin:10px 0}.card-copy p{font-size:12px}.enter{margin-top:20px;padding-top:10px;font-size:12px}.lobby footer{margin-top:22px;display:block;text-align:center}.lobby footer span{display:block;margin-top:8px}.edition{font-size:10px}.mini-orbs{font-size:30px}dialog{padding:26px 22px}dialog h2{font-size:23px}dialog p{font-size:14px}}
@media(max-width:760px) and (max-height:740px){.game-shell{min-height:625px;grid-template-rows:62px minmax(0,1fr) 25px}.console{padding:10px 14px}.console h2{font-size:17px}.game-shell .play-area{grid-template-rows:minmax(220px,1fr) auto}.question-preview{min-height:34px;margin:5px 0 7px}.forest .round-log{min-height:40px;margin-top:6px;padding-top:5px}.forest .console-bottom{padding-top:3px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.ambient{display:none}}
/* Door labels stay above the characters, including narrow scenes. */
.door-label{bottom:auto;top:14px;z-index:2}
@media(max-width:760px){.door-label{top:8px}.console>.intro{display:block;font-size:12px;line-height:1.5;margin-bottom:9px}.forest .console>.intro{font-size:12px}}
.orb-board{grid-template-rows:repeat(10,minmax(0,1fr));grid-template-columns:repeat(10,minmax(0,1fr))}
.orb{height:100%;width:auto;max-height:19px;max-width:100%;min-width:0;min-height:0}
@media(max-width:760px){.guard-row{left:17%;right:17%;gap:16%}.guard{width:42%;max-width:106px}}
@media(max-width:760px) and (max-height:740px){.console h2,.console .status-line{display:none}.console>.intro{margin-bottom:6px}.console-bottom{padding-top:0}}
@media(min-width:761px) and (max-height:700px){
.site-head{height:50px}.game-shell{height:calc(100dvh - 50px);min-height:0;grid-template-rows:70px minmax(0,1fr) 28px}.chapter h1{font-size:29px}.chapter>p{font-size:12px}.console{padding:15px 18px}.console-top{display:none}.console h2{font-size:20px;margin-bottom:8px}.console .intro{font-size:13px;line-height:1.6;margin-bottom:12px}.console label{margin-bottom:6px}select{min-height:44px}.question-preview{min-height:0;margin:10px 0;font-size:13px}.console-bottom{padding-top:5px}.console .status-line{display:none}.utility{padding-top:3px;margin-top:6px}.utility button{min-height:38px}.rule-note{margin-bottom:12px;font-size:11px}.take-buttons button{min-height:44px;height:44px}.round-log{min-height:48px;margin-top:12px;padding-top:8px}.practice-link{min-height:30px}.ball-hud strong{font-size:48px}.scene-caption{bottom:14px}
}
/* Reserve the action area through phase changes, so the scene does not jump. */
@media(max-width:760px){.lava .console{min-height:344px}.forest .console{min-height:364px}}
@media(max-width:760px) and (max-height:740px){.lava .console{min-height:267px}.forest .console{min-height:293px}}
@media(min-width:761px) and (max-width:1100px){.orb-board{left:27%;right:27%}.competitor{width:24%}}
/* After asking, the locked gatekeepers must not block the door buttons. */
.lava .guard:disabled{pointer-events:none}
