
:root {font-family:Arial,Helvetica,sans-serif;color:#17466d;background:#eaf3fa}
*{box-sizing:border-box} body{margin:0;background:linear-gradient(180deg,#e4eff8,#eff7fc);color:#214d70}
.shell{max-width:1190px;margin:0 auto;padding:12px 14px 28px}
.header{background:#fff;border-radius:18px;min-height:76px;box-shadow:0 2px 12px #3d67821c;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:9px 16px;gap:10px}
.brand{display:flex;align-items:center;gap:8px;min-width:0}.brand img{width:50px;height:50px;object-fit:contain}.brand strong{font-size:15px;color:#11507e;display:block}.brand small{font-size:11px;color:#557996;white-space:nowrap}
.headline{text-align:center}.headline h1{font-weight:600;font-size:clamp(21px,2.3vw,28px);margin:0 0 2px;color:#10476f}.headline p{font-size:13px;margin:0;color:#536e85}.header-actions{justify-self:end;display:flex;gap:8px;align-items:center}.header-actions a,.header-actions button{white-space:nowrap}
button{cursor:pointer;font:inherit;border:1px solid #a5cce5;background:#eef7fc;color:#15527b;border-radius:10px;padding:9px 13px;font-weight:600}button:hover{background:#dceefc}button:focus-visible,input:focus-visible{outline:3px solid #ffb52f;outline-offset:2px}button:disabled{opacity:.4;cursor:default}
.card{margin-top:10px;background:#fff;border:1px solid #c5dfef;border-radius:16px;padding:14px;box-shadow:0 1px 6px #b4d0e226}.training{text-align:center;padding:12px 8px 11px}.sample-label{font-size:12px;color:#738ba0;margin:0 0 7px}.letter{font-family:Georgia,serif;font-weight:bold;font-size:44px;color:#183c59;line-height:1.1}.answers{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:9px}.answer{min-width:95px;padding:9px 14px;background:#e4f3fc;box-shadow:inset 0 -3px #bddbf0;font-size:24px;color:#194774}
.game-art{margin-top:10px;background:#fff;border:2px solid #fff;border-radius:14px;overflow:hidden;box-shadow:0 0 0 1px #c0d9e8}.scene{position:relative;width:100%;aspect-ratio:1672/940;overflow:hidden;user-select:none;touch-action:pan-y}.scene>.background{width:100%;height:100%;display:block}.winlight{position:absolute;pointer-events:none;opacity:0;transition:opacity .43s ease-in-out}.winlight.lit{opacity:1}
.progress{margin-top:8px;display:grid;grid-template-columns:minmax(170px,1fr) repeat(4,minmax(0,1fr));gap:7px;align-items:stretch}.total,.house-progress{background:#f7fbff;border:1px solid #c6ddec;border-radius:9px;padding:9px 10px;font-size:12px;font-weight:600}.house-progress{padding:7px 9px}.house-progress .top{display:flex;justify-content:space-between;gap:3px}.dots{display:flex;gap:3px;margin-top:5px}.dot{height:8px;flex:1;border-radius:10px;background:#d9e7f0;border:1px solid #c3d6e4}.dot.active{background:#ffca65;border-color:#d69b3c}
.demo-controls{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;margin:12px 0}.demo-controls input{width:min(280px,44vw);accent-color:#2973a5}.note{font-size:12px;color:#658097;text-align:center;margin-top:10px}.work-label{font-size:12px;color:#416c8b;text-align:center;margin:4px 0 0}
.editor-toolbar{margin-top:12px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;align-items:center}.tools{display:flex;gap:9px;flex-wrap:wrap}.coord{font-size:13px;color:#526f85}
.editor-scene{touch-action:none}.window-handle{position:absolute;transform:translate(-50%,-50%);border:2px solid #fff;box-shadow:0 1px 5px #172f45;background:rgba(14,75,123,.83);color:#fff;padding:0;border-radius:50%;width:28px;height:28px;font-size:12px;z-index:3;touch-action:none;cursor:grab}.window-handle.active{background:#bf5f20;width:34px;height:34px;z-index:4}.editor-scene .winlight{opacity:0.9}.editor-scene .winlight.highlight{filter:drop-shadow(0 0 7px yellow)}
@media(max-width:760px){.shell{padding:8px}.header{grid-template-columns:1fr auto;min-height:0;padding:8px 10px;gap:6px}.headline{grid-column:1/-1;grid-row:2}.header-actions{grid-column:2;grid-row:1}.headline h1{font-size:21px}.headline p{font-size:12px}.brand img{width:42px;height:42px}.brand strong{font-size:12px}.brand small{font-size:10px}.card{padding:10px}.progress{grid-template-columns:repeat(4,minmax(0,1fr))}.total{grid-column:1/-1}.house-progress{font-size:10px;padding:6px}.training{padding:5px}.letter{font-size:34px}.answer{font-size:18px;min-width:75px}.window-handle{width:20px;height:20px;font-size:10px}}

.header-actions .nav-button{cursor:pointer;text-decoration:none;border:1px solid #a5cce5;background:#eef7fc;color:#15527b;border-radius:10px;padding:9px 13px;font-weight:600}.header-actions .nav-button:hover{background:#dceefc}
