:root{--forest: #1b5e43;--forest-dark: #0f2f24;--mint-bg: #eaf6f0;--card-bg: #ffffff;--text-main: #0f172a;--text-muted: #475569;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}html,body{margin:0;padding:0;width:100%;height:100%;overflow:hidden;background:linear-gradient(160deg,#dff4ff,#eaf6f0 60%,#fff8f2);color:var(--text-main);-webkit-user-select:none;user-select:none}#app{width:100%;height:100%;display:flex;flex-direction:column;position:relative}.hidden{display:none!important}.hud{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:max(8px,env(safe-area-inset-top)) 14px 8px;background:#fffffff0;border-bottom:1px solid #cbe9da;z-index:10;flex-wrap:wrap}body.embedded .hud{padding:8px 14px}.hud-left{display:flex;align-items:center;gap:10px}.hud-title{font-weight:700;font-size:14px;color:var(--forest-dark)}.hud-sub{font-size:11px;color:var(--text-muted)}.hud-stats{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.hud-actions{display:flex;align-items:center;gap:6px}.pill{background:#f1f5f9;border:1px solid #e2e8f0;border-radius:999px;padding:4px 10px;font-size:12px;font-weight:600}.pill-urgent{background:#fee2e2;border-color:#fca5a5;color:#b91c1c}.badge{display:inline-block;font-size:10px;font-weight:800;letter-spacing:.04em;padding:3px 8px;border-radius:999px}.badge-preview{background:#fef3c7;color:#92400e}.badge-live{background:#dcfce7;color:#166534}.badge-sandbox{background:#e0f2fe;color:#075985}#game-stage{flex:1;min-height:0;width:100%;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:0}#game-stage canvas{display:block;width:100%!important;height:100%!important;touch-action:manipulation}#ui-overlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:30;background:#0f2f2459;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);display:flex;align-items:center;justify-content:center;padding:16px;overflow-y:auto}.launcher-card{width:100%;max-width:920px;background:#fff;border-radius:24px;padding:24px;box-shadow:0 22px 50px #0f2f2433}.launcher-hero{display:flex;align-items:center;gap:18px;margin-bottom:20px}.hero-img{width:78px;height:78px;object-fit:contain;flex-shrink:0}.launcher-hero h1{margin:4px 0 6px;font-size:22px;color:var(--forest-dark)}.launcher-hero p{margin:0;font-size:13px;color:var(--text-muted);line-height:1.5}.preset-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px;margin-bottom:18px}.preset-tile{border:1.5px solid #e2e8f0;border-radius:18px;padding:16px;display:flex;flex-direction:column;gap:8px;background:#fbfdfc}.preset-tile h3{margin:2px 0 0;font-size:16px;color:var(--forest-dark)}.preset-tile p{margin:0 0 8px;font-size:12.5px;color:var(--text-muted);line-height:1.45;flex:1}.preset-tag{display:inline-block;align-self:flex-start;font-size:11px;font-weight:700;padding:3px 9px;border-radius:999px}.tag-avoid{background:#cffafe;color:#155e75}.tag-bridge{background:#ffedd5;color:#9a3412}.tag-match{background:#ede9fe;color:#5b21b6}.json-tester{border-top:1px solid #e2e8f0;padding-top:12px;font-size:12.5px}.json-tester summary{cursor:pointer;font-weight:600;color:var(--forest)}.json-tester textarea{width:100%;margin:8px 0;padding:10px;border-radius:12px;border:1px solid #cbd5e1;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;-webkit-user-select:text;user-select:text}.tester-row{display:flex;align-items:center;gap:12px}.error-text{color:#dc2626;font-size:12px}.result-card{width:100%;max-width:440px;background:#fff;border-radius:24px;padding:24px;text-align:center;box-shadow:0 22px 50px #0f2f243d}.result-emoji{font-size:46px;line-height:1.1}.result-card h2{margin:8px 0 4px;font-size:22px;color:var(--forest-dark)}.result-reason{margin:0 0 14px;font-size:13.5px;color:var(--text-muted)}.score-banner{background:var(--mint-bg);color:var(--forest-dark);padding:10px 14px;border-radius:12px;font-size:14px;margin-bottom:12px}.detail-list{text-align:left;margin:0 0 14px;padding-left:18px;font-size:13px;color:#334155;line-height:1.6}.server-box{font-size:12.5px;padding:10px 12px;border-radius:12px;margin-bottom:16px}.server-pending{background:#f1f5f9;color:#475569}.server-info{background:#fef3c7;color:#92400e}.server-ok{background:#dcfce7;color:#166534}.server-err{background:#fee2e2;color:#991b1b}.result-actions{display:flex;justify-content:center;gap:10px}button{cursor:pointer;border:none;font-family:inherit;font-weight:700;border-radius:12px;transition:transform .08s ease,opacity .15s ease}button:active{transform:scale(.97)}.btn-primary{background:var(--forest);color:#fff;padding:10px 16px;font-size:13.5px}.btn-secondary{background:#e2e8f0;color:var(--forest-dark);padding:10px 16px;font-size:13.5px}.btn-ghost{background:#f1f5f9;color:var(--forest-dark);padding:6px 10px;font-size:12px}.btn-icon{background:#f1f5f9;padding:6px 9px;font-size:13px}
