@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.static{position:static}.hidden{display:none}.resize{resize:both}}:root{--bg-top:#8ed1ff;--bg-mid:#bce7ff;--bg-bottom:#dff7ea;--text:#fdfefe;--ink:#18311b;--ink-soft:#355238;--line:#ffffff57;--panel:#ffffff38;--gold:#fff0ad;--green:#2f7d32;--green-deep:#235f26;--shadow:#2556212e;--board-light:#f3edd7;--board-dark:#78985a}*{box-sizing:border-box}html,body,#app{min-height:100%}body{color:var(--text);background:linear-gradient(180deg,var(--bg-top) 0%,var(--bg-mid) 52%,var(--bg-bottom) 100%);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;overflow-x:hidden}a{color:inherit}button{font:inherit}h1,h2{margin:0;font-family:Georgia,Times New Roman,serif}.castle-page,.about-page{min-height:100vh}.castle-page{padding:clamp(.75rem,2vw,1.25rem)}.scene-shell{border:1px solid var(--line);min-height:calc(100vh - clamp(1.5rem,4vw,2.5rem));box-shadow:inset 0 1px #ffffff4d,0 24px 60px var(--shadow);background:linear-gradient(#ffffff29,#ffffff0a);border-radius:clamp(1.25rem,2vw,1.8rem);position:relative;overflow:hidden}.scene-shell:before{content:"";pointer-events:none;z-index:1;background:radial-gradient(circle at 18% 14%,#ffffff38,#0000 24%),radial-gradient(circle at 82% 12%,#ffefad2e,#0000 18%);position:absolute;inset:0}.castle-canvas{width:100%;height:100%;display:block;position:absolute;inset:0}.scene-copy{z-index:3;max-width:min(34rem,100% - 2rem);position:absolute;top:clamp(1rem,3vw,2rem);left:clamp(1rem,3vw,2rem)}.scene-kicker,.puzzle-panel__eyebrow,.scene-card__eyebrow{letter-spacing:.24em;text-transform:uppercase;margin:0 0 .8rem;font-size:.74rem;font-weight:700}.scene-kicker{color:#f5f9ff;text-shadow:0 3px 12px #345f2938}.scene-copy h1,.about-panel h1,.scene-card h2,.puzzle-panel h2{letter-spacing:.02em;text-wrap:balance;font-size:clamp(2.35rem,6vw,5rem);line-height:.95}.scene-copy h1{text-shadow:0 10px 24px #35602b33}.scene-copy p:last-child,.scene-card p,.about-panel p,.puzzle-status{max-width:35rem;margin:1rem 0 0;line-height:1.7}.scene-hud{z-index:4;gap:.75rem;display:flex;position:absolute;top:clamp(1rem,3vw,2rem);right:clamp(1rem,3vw,2rem)}.hud-pill{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#19572247;border:1px solid #ffffff47;border-radius:1rem;min-width:7rem;padding:.85rem 1rem;box-shadow:0 12px 28px #2c5d271a}.hud-pill__label,.puzzle-meta span{letter-spacing:.14em;text-transform:uppercase;color:#ecf8eb;font-size:.72rem;font-weight:700;display:block}.hud-pill strong,.puzzle-meta strong{margin-top:.2rem;font-size:1.1rem;display:block}.scene-castles{z-index:4;position:absolute;inset:0}.castle-hotspot{color:var(--text);cursor:pointer;background:0 0;border:0;transition:transform .18s;position:absolute;transform:translate(-50%,-50%)}.castle-hotspot.is-disabled{cursor:default}.castle-hotspot__outline{background:linear-gradient(#ffffff14,#fff0) padding-box padding-box;border:1px solid #0000;border-radius:1.25rem;transition:border-color .18s,background .18s,box-shadow .18s,transform .18s;position:absolute;inset:0}.castle-hotspot__badge{-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#124f2161;border:1px solid #ffffff47;border-radius:.95rem;flex-direction:column;gap:.2rem;min-width:8.25rem;padding:.6rem .85rem;display:flex;position:absolute;bottom:-2.7rem;left:50%;transform:translate(-50%);box-shadow:0 12px 24px #2c5d271f}.castle-hotspot__badge strong{font-size:.96rem;line-height:1.1}.castle-hotspot__badge em{letter-spacing:.14em;text-transform:uppercase;color:var(--gold);font-size:.72rem;font-style:normal;font-weight:700}.castle-hotspot.is-active .castle-hotspot__outline,.castle-hotspot:not(.is-disabled):hover .castle-hotspot__outline{background:linear-gradient(#ffffff1f,#ffffff08);border-color:#ffffff6b;box-shadow:0 0 0 1px #ffffff2e,0 0 32px #ffffff1f}.castle-hotspot.is-active .castle-hotspot__badge{background:#235f268f}.castle-hotspot.is-recommended .castle-hotspot__outline{border-color:#fff0add9;box-shadow:0 0 0 1px #fff0ad57,0 0 28px #fff0ad61,inset 0 0 24px #fff0ad24}.castle-hotspot.is-recommended .castle-hotspot__badge{background:#4d5a167a}.castle-hotspot.is-recommended:not(.is-disabled){animation:1.9s ease-in-out infinite castle-pulse}.castle-hotspot.is-complete .castle-hotspot__badge{background:#1b6d238f}.castle-hotspot.is-failed .castle-hotspot__badge{background:#755a1885}.scene-overlay{z-index:5;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);background:#1d4e1f1f;place-items:center;padding:1rem;display:grid;position:absolute;inset:0}.scene-card,.puzzle-panel,.about-panel{background:linear-gradient(#fff9,#e1f3e2e6);border:1px solid #ffffff59;box-shadow:0 24px 80px #37693129}.scene-card{width:min(32rem,100%);color:var(--ink);border-radius:1.5rem;padding:clamp(1.4rem,3vw,2rem)}.scene-card__eyebrow,.puzzle-panel__eyebrow{color:var(--green)}.scene-card h2,.puzzle-panel h2,.about-panel h1{color:var(--ink);font-size:clamp(2rem,4vw,3.25rem)}.scene-card p,.about-panel p{color:var(--ink-soft)}.start-button,.action-button,.panel-close{cursor:pointer;border:0}.start-button,.action-button{letter-spacing:.02em;border-radius:999px;justify-content:center;align-items:center;padding:.9rem 1.2rem;font-weight:800;display:inline-flex}.start-button,.action-button--primary{color:#fff;background:linear-gradient(#2f8a35,#236727);box-shadow:0 12px 24px #2367273d}.action-button{color:var(--ink);background:#ffffffbf;border:1px solid #235f262e}.puzzle-modal{z-index:30;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#12220e47;place-items:center;padding:1rem;display:grid;position:fixed;inset:0;overflow:auto}.puzzle-panel{width:min(64rem,100%);max-height:calc(100vh - 2rem);color:var(--ink);border-radius:1.5rem;overflow:auto}.puzzle-panel__header{justify-content:space-between;align-items:center;gap:1rem;padding:1.25rem 1.25rem 0;display:flex}.puzzle-header-tools{align-items:center;gap:.75rem;display:flex}.puzzle-timer-pill{background:#fffc;border:1px solid #235f2624;border-radius:1rem;min-width:7rem;padding:.7rem .9rem}.puzzle-timer-pill span{letter-spacing:.14em;text-transform:uppercase;color:var(--green);font-size:.68rem;font-weight:800;display:block}.puzzle-timer-pill strong{color:var(--ink);margin-top:.2rem;font-size:1.1rem;display:block}.panel-close{width:2.5rem;height:2.5rem;color:var(--ink);background:#ffffffd1;border-radius:999px;place-items:center;font-size:1.5rem;line-height:1;display:inline-grid}.puzzle-panel__body{grid-template-columns:minmax(0,26rem) minmax(0,1fr);gap:1.25rem;padding:1.25rem;display:grid}.board-wrap{width:100%;min-width:0}.board-wrap>div{width:100%}.board-fallback{aspect-ratio:1;background:linear-gradient(45deg,var(--board-light) 25%,transparent 25%) 0 0 / 25% 25%,linear-gradient(-45deg,var(--board-light) 25%,transparent 25%) 0 12.5% / 25% 25%,linear-gradient(45deg,transparent 75%,var(--board-light) 75%) 12.5% -12.5% / 25% 25%,linear-gradient(-45deg,transparent 75%,var(--board-light) 75%) -12.5% 0 / 25% 25%,var(--board-dark);border-radius:1rem;width:100%}.puzzle-side{flex-direction:column;gap:1rem;display:flex}.puzzle-side__summary{background:#ffffff9e;border-radius:1rem;flex-direction:column;gap:.2rem;padding:1rem;display:flex}.puzzle-side__summary strong{color:var(--ink);font-size:clamp(2rem,5vw,3rem);line-height:.95}.puzzle-note{color:var(--ink-soft);background:#f3f8ecd1;border-radius:1rem;margin:0;padding:.9rem 1rem;line-height:1.6}.puzzle-side__turn{letter-spacing:.14em;text-transform:uppercase;color:var(--green);font-size:.72rem;font-weight:800}.puzzle-status{min-height:5.5rem;color:var(--ink-soft);background:#ffffffb8;border-radius:1rem;margin:0;padding:1rem}.puzzle-status.is-failed{color:#6d5312;background:#fff4d6eb}.puzzle-status.is-complete{color:#235f26;background:#e0fae1eb}.puzzle-actions{flex-wrap:wrap;gap:.75rem;display:flex}.puzzle-meta{grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;margin-top:auto;display:grid}.puzzle-meta>div{background:#ffffffb8;border-radius:1rem;padding:.9rem 1rem}.toast{left:50%;bottom:calc(1rem + env(safe-area-inset-bottom,0px));z-index:40;color:#fff;border-radius:1rem;width:min(28rem,100% - 2rem);padding:1rem 1.15rem;font-weight:700;position:fixed;transform:translate(-50%);box-shadow:0 18px 40px #0000002e}.toast.is-success{background:linear-gradient(#2f8a35,#236727)}.toast.is-failure{background:linear-gradient(#ab6d1e,#8d5311)}.about-page{place-items:center;padding:2rem;display:grid}.about-panel{width:min(42rem,100%);color:var(--ink);border-radius:2rem;padding:clamp(1.5rem,4vw,3rem)}.rise-in{animation:.72s cubic-bezier(.16,1,.3,1) both rise-in}@keyframes rise-in{0%{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}@keyframes castle-pulse{0%,to{transform:translate(-50%,-50%)scale(1)}50%{transform:translate(-50%,-50%)scale(1.02)}}@media(max-width:1080px){.scene-copy p:last-child{max-width:28rem}.castle-hotspot__badge{min-width:7.2rem;padding:.5rem .7rem}.puzzle-panel__body{grid-template-columns:1fr}}@media(max-width:820px){.scene-hud{inset:auto auto 1rem 1rem}.hud-pill{min-width:6rem}.castle-hotspot__badge{border-radius:.85rem;min-width:6.5rem;bottom:-2.3rem}.castle-hotspot__badge strong{font-size:.82rem}.castle-hotspot__badge em{font-size:.62rem}}@media(max-width:640px){.castle-page{padding:.5rem}.scene-shell{border-radius:1rem;min-height:calc(100vh - 1rem)}.scene-copy{max-width:13rem;top:.9rem;left:.9rem;right:7.2rem}.scene-copy h1,.about-panel h1,.scene-card h2,.puzzle-panel h2{font-size:clamp(1.9rem,10vw,2.7rem)}.scene-copy p:last-child{max-width:12rem;font-size:.78rem;line-height:1.45}.scene-hud{flex-direction:column;align-items:flex-end;gap:.45rem;inset:.7rem .7rem auto auto}.hud-pill{border-radius:.85rem;min-width:4.8rem;padding:.6rem .68rem}.hud-pill strong{font-size:1rem}.castle-hotspot{height:24%!important}.castle-hotspot__badge{min-width:5.2rem;padding:.44rem .56rem;bottom:-1.95rem}.castle-hotspot__badge strong{font-size:.75rem}.castle-hotspot__badge em{letter-spacing:.1em;font-size:.56rem}.scene-card,.puzzle-panel{border-radius:1.2rem}.puzzle-modal{align-items:stretch;padding:.55rem}.puzzle-panel{max-height:calc(100vh - 1.1rem)}.puzzle-panel__header,.puzzle-panel__body{padding:.85rem}.puzzle-panel__header{align-items:flex-start}.puzzle-header-tools{gap:.55rem}.puzzle-timer-pill{border-radius:.85rem;min-width:5.9rem;padding:.58rem .68rem}.puzzle-timer-pill strong{font-size:.98rem}.puzzle-panel__body{gap:.85rem}.puzzle-side{gap:.75rem}.puzzle-side__summary,.puzzle-status,.puzzle-meta>div{border-radius:.9rem;padding:.8rem .9rem}.puzzle-side__summary strong{font-size:1.7rem}.puzzle-status{min-height:auto;font-size:.94rem;line-height:1.45}.puzzle-meta{grid-template-columns:1fr;margin-top:0}.panel-close{width:2.25rem;height:2.25rem;font-size:1.35rem}.toast{width:min(22rem,100% - 1rem);bottom:calc(.7rem + env(safe-area-inset-bottom,0px));padding:.9rem 1rem}}
