.adriel-page { min-height:0; height:100vh; height:100dvh; overflow:hidden; color:#eaf4f6; background:#0d1d26; font:16px/1.5 'Segoe UI',Arial,sans-serif; }
.adriel-shell { --game-ink:#eaf4f6; --game-muted:#9bb5c1; --game-line:#2a4654; --game-accent:#a9e7ca; display:flex; flex-direction:column; width:100%; height:100%; min-height:0; background:#0d1d26; }
.adriel-shell:fullscreen { height:100%; }
.adriel-toolbar { --bookmark-ink:#bcd6de; --bookmark-line:#35525f; --bookmark-hover:#1c3440; display:flex; flex:none; align-items:center; flex-wrap:wrap; gap:12px 18px; min-height:66px; padding:10px 22px; background:#10232b; border-bottom:1px solid #2c4650; box-shadow:0 3px 20px #0002; z-index:3; }
.adriel-directory { font-size:14px; color:#a4bdc7; text-decoration:none; padding-right:18px; border-right:1px solid #38515d; }
.adriel-brand { font-size:25px!important; font-weight:800; letter-spacing:-1px; border:0!important; padding:0!important; background:none!important; }
.adriel-brand span,.adriel-hero h1 span { color:#ff9a7c; }
.adriel-run-info { display:flex; flex-wrap:wrap; align-items:center; gap:8px 14px; min-width:0; font-size:13px; }
.run-level { color:#b9e8d8; font-weight:650; white-space:nowrap; }
.run-metric { display:grid; gap:1px; line-height:1.2; }
.run-metric>span { color:#9bb5c1; font-size:10px; letter-spacing:.8px; text-transform:uppercase; }
.run-metric strong { color:#f0f8f9; min-width:5.5ch; font-size:16px; font-weight:650; font-variant-numeric:tabular-nums; }
.run-attempt { color:#b5cbd4; white-space:nowrap; }
.adriel-actions { display:flex; flex-wrap:wrap; gap:5px; margin-left:auto; }
.adriel-shell button { font:inherit; color:#eaf4f6; background:#1c3440; border:1px solid #35525f; border-radius:7px; padding:9px 14px; line-height:1.35; transition:background .15s,border-color .15s,transform .15s; }
.adriel-shell button:hover:enabled { background:#2b4854; border-color:#638a93; }
.adriel-shell button:active:enabled { transform:translateY(1px); }
.adriel-shell button:disabled { cursor:default; opacity:.45; }
.adriel-shell :focus-visible { outline:2px solid #b8f6dd; outline-offset:3px; }
.adriel-actions button { font-size:14px; padding:7px 11px; }
.adriel-run-info button { padding:7px 10px; font-size:13px; }
.adriel-actions [data-adriel-touch-toggle][aria-pressed="true"] { border-color:#a9e7ca; background:#254b47; color:#c6ffe5; }
.adriel-toolbar .form-message { margin:0; }
.adriel-workspace { display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:minmax(0,1fr); flex:1; min-height:0; }
.adriel-shell[data-mode="edit"] .adriel-workspace { grid-template-columns:minmax(0,1fr) 310px; }
.adriel-shell[data-mode="edit"][data-testing="true"] .adriel-workspace { grid-template-columns:minmax(0,1fr); grid-template-rows:minmax(0,1fr); }
.adriel-shell[data-testing="true"] .editor-panel { display:none; }
.adriel-stage { position:relative; min-width:0; min-height:0; overflow:hidden; }
.adriel-stage canvas { position:absolute; inset:0; display:block; width:100%; height:100%; image-rendering:auto; touch-action:none; }
.adriel-stage canvas:focus-visible { outline:1px solid #9bd5bd66; outline-offset:-2px; }
.adriel-stage canvas[data-editor-tool="select"] { cursor:default; }
.adriel-stage canvas[data-editor-tool="pan"],.adriel-stage canvas[data-dragging="pan"] { cursor:grab; }
.adriel-stage canvas[data-dragging="move"] { cursor:move; }
.adriel-stage canvas[data-dragging="resize"] { cursor:nwse-resize; }
.adriel-shell[data-mode="edit"] canvas:not([data-editor-tool="select"]):not([data-editor-tool="pan"]) { cursor:crosshair; }
.adriel-screen { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; padding:32px; overflow:auto; background:linear-gradient(110deg,#091a2b88,transparent 85%); }
.adriel-hero { display:grid; grid-template-columns:minmax(0,1fr) 280px; align-items:center; gap:60px; max-width:900px; padding:45px 50px; border:1px solid #a8d8e42b; border-radius:24px; background:#102632d9; box-shadow:0 30px 90px #0005; backdrop-filter:blur(12px); }
.adriel-kicker { color:#9edcce; font-size:12px; font-weight:650; letter-spacing:2px; text-transform:uppercase; margin:0 0 8px; }
.adriel-hero h1 { color:#f2f8f8; font-size:clamp(58px,6vw,88px); font-weight:850; letter-spacing:-5px; line-height:1.05; margin:0 0 18px; }
.hero-description { max-width:420px; color:#bed2db; font-size:18px; line-height:1.65; }
.hero-facts { display:flex; gap:10px 18px; flex-wrap:wrap; margin:24px 0; font-size:13px; color:#a8bdc8; }
.hero-facts span { padding-bottom:5px; border-bottom:1px solid #44636d; }
.hero-buttons { display:flex; gap:10px; flex-wrap:wrap; }
.adriel-shell .game-primary { background:#a9e7ca; color:#14332f; border-color:#a9e7ca; font-weight:700; }
.adriel-shell .game-primary:hover:enabled { background:#c2f4dd; border-color:#c2f4dd; }
.adriel-shell .game-text-button { display:block; padding:0; margin-top:22px; border:0; background:none; color:#a9c4cf; font-size:14px; text-align:left; }
.hero-cube { width:100%; height:auto; filter:drop-shadow(0 28px 22px #0005); animation:cube-float 5s ease-in-out infinite; transform:rotate(-8deg); }
@keyframes cube-float { 50% { transform:translateY(-12px) rotate(-3deg); } }
.game-card { width:min(100%,680px); padding:32px; border:1px solid #71979f5c; border-radius:17px; background:#102632f2; box-shadow:0 20px 60px #0004; max-height:100%; overflow:auto; }
.game-card h2 { font-size:28px; font-weight:700; line-height:1.25; margin:0 0 14px; letter-spacing:-.7px; color:#f1f8f9; }
.game-card p { margin-bottom:20px; }
.game-card .adriel-kicker { margin-bottom:8px; }
.game-card .card-muted { color:#9bb5c1; font-size:14px; }
.level-screen { justify-content:flex-end; pointer-events:none; background:linear-gradient(90deg,transparent 30%,#07182380); }
.adriel-screen.level-screen { padding-bottom:64px; }
.level-credit { position:absolute; left:24px; bottom:18px; max-width:calc(100% - 48px); margin:0; padding:6px 10px; border-radius:6px; background:#0d2433e6; color:#bdd4dc; font-size:13px; line-height:1.4; overflow-wrap:anywhere; }
.level-panel { pointer-events:auto; width:380px; padding:26px; }
.level-panel h2 { margin-bottom:7px; }
.level-actions { display:grid; grid-template-columns:1fr 1.25fr 1fr; gap:7px; margin-bottom:10px; }
.level-actions button { padding:9px 6px; font-size:14px; }
.replay-button { width:100%; margin-bottom:24px; font-size:14px!important; }
.level-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.adriel-shell .level-card { display:flex; flex-direction:column; gap:3px; padding:10px 6px; text-align:center; }
.level-card strong { font-size:18px; }
.level-card span { font-size:12px; color:#9dbac7; white-space:nowrap; }
.adriel-shell .level-card[aria-pressed="true"] { border-color:#a9e7ca; background:#294d4b; }
.level-card[aria-pressed="true"] span { color:#c8e7dd; }
.control-list { display:grid; grid-template-columns:135px minmax(0,1fr); gap:12px 20px; margin:24px 0; font-size:16px; }
.control-list dt { color:#a1c0ca; }
.control-list dd { margin:0; color:#edf5f8; }
.adriel-hud { position:absolute; top:22px; left:24px; max-width:calc(100% - 48px); pointer-events:none; }
.adriel-hud .hud-jump-counter { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; min-width:92px; padding:9px 13px; border:2px solid #617d89; border-radius:10px; background:#183441; text-align:center; box-shadow:0 8px 22px #0002; }
.adriel-hud .hud-jump-label { color:#e5f2f6; font-size:13px; font-weight:650; white-space:nowrap; }
.adriel-hud .hud-jump-count { color:#ffcfb5; font-size:44px; font-weight:800; line-height:1.05; font-variant-numeric:tabular-nums; letter-spacing:-1px; }
.adriel-hud .hud-jump-counter[data-available="true"] { border-color:#a9e7ca; background:#214d47; box-shadow:0 0 18px #8ddfbd22; }
.adriel-hud .hud-jump-counter[data-available="true"] .hud-jump-count { color:#c6ffe5; }
.adriel-notice { position:absolute; left:50%; top:20px; transform:translateX(-50%); width:max-content; max-width:min(600px,calc(100% - 32px)); padding:16px 20px; border:1px solid #719b9c; border-radius:12px; background:#102c36f5; color:#eff8fa; font-size:16px; box-shadow:0 12px 38px #0005; z-index:6; text-align:center; }
.adriel-notice p { white-space:pre-line; }
.adriel-notice button { margin-top:12px; font-size:14px; }
.adriel-no-script { position:absolute; inset:24px auto auto 24px; padding:20px; background:#102c36; }
.editor-panel { padding:20px; overflow:auto; min-height:0; border-left:1px solid #34505e; background:#10232c; color:#e1edf2; font-size:14px; }
.editor-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:12px; }
.editor-heading h2 { font-size:22px; margin:0; }
.editor-heading .adriel-kicker { font-size:11px; margin-bottom:3px; }
.editor-panel button { padding:8px 10px; font-size:14px; }
.editor-hint { color:#9bb5c1; font-size:13px; line-height:1.6; margin:0 0 16px; }
.editor-tools { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; margin-bottom:14px; }
.editor-tools button { display:flex; align-items:center; gap:9px; text-align:left; min-height:39px; }
.editor-tools button[aria-pressed="true"] { border-color:#94dec7; background:#254b47; }
.material { display:inline-block; width:19px; height:19px; flex:none; border-radius:4px; border:1px solid #ffffff4d; box-shadow:inset 0 2px 3px #ffffff2b; }
.material.platform { background:linear-gradient(#93b5bf,#3a6177); }.material.lava { background:linear-gradient(35deg,#9c3d20,#ffb047); }
.material.magma { background:repeating-linear-gradient(45deg,#843c26 0 5px,#c57936 5px 9px); }.material.ice { background:linear-gradient(130deg,#d0f6ff,#478dc7); }
.material.bounce { background:linear-gradient(#c3ef8e,#57994d); }.material.player { background:#fa8067; }.material.flag { background:conic-gradient(#f3e4be 25%,#283444 0 50%,#f3e4be 0 75%,#283444 0) 0 0/10px 10px; }
.tool-symbol { display:inline-grid; place-items:center; width:19px; font-size:20px; font-style:normal; color:#b6dad9; }
.editor-history { display:flex; gap:6px; margin:10px 0; }
.editor-history button { flex:1; }
.editor-grid-options { display:flex; gap:12px; align-items:center; border-bottom:1px solid #2a4654; padding:0 0 16px; margin-bottom:18px; }
.editor-panel input[type="checkbox"] { width:16px; min-height:16px; margin:0; padding:0; accent-color:#a9e7ca; }
.editor-grid-options label,.inspector-heading label { display:flex; gap:6px; align-items:center; font-size:13px; color:#b5cbd4; }
.editor-panel .grid-size-label { margin-left:auto; gap:5px; }
.editor-panel select,.editor-panel input:not([type="checkbox"]),.editor-panel textarea { background:#0b1c25; border:1px solid #35515e; color:#dfedf4; padding:7px 8px; min-height:35px; border-radius:5px; font-size:14px; width:100%; }
.editor-panel .grid-size-label select { width:60px; }
.inspector-heading { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-bottom:12px; }
.inspector-heading h3 { margin:0; color:#d8e9ef; font-size:15px; }
.editor-properties { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.editor-field { display:flex; flex-direction:column; gap:4px; color:#9eb9c5; font-size:13px; min-width:0; }
.editor-wide { grid-column:1/-1; }
.editor-panel input[type="color"] { padding:3px; }
.editor-panel input:disabled { opacity:.45; }
.editor-panel .editor-danger { color:#ffb39f; }
.editor-files { border-top:1px solid #2a4654; margin-top:18px; padding-top:8px; }
.editor-load-label { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:6px; color:#a8c0cc; font-size:13px; }
.editor-load-label select { grid-column:1; }
.editor-load-label button { grid-column:2; grid-row:2; }
.editor-import { margin-top:15px; padding-top:14px; border-top:1px solid #34505e; }
.editor-import>label { display:block; margin-bottom:12px; color:#a7c0cc; }
.editor-import input,.editor-import textarea { margin-top:6px; }
.editor-coordinates { color:#9bd5c3; font:12px/1.5 Consolas,monospace; margin:18px 0 10px; }
.adriel-touch-controls { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; flex:none; gap:12px; padding:10px max(16px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left)); background:#10232bf5; border-top:1px solid #34505e; }
.adriel-touch-controls[hidden] { display:none; }
.touch-movement,.touch-actions { display:flex; align-items:center; gap:10px; }
.touch-utilities { display:flex; flex-wrap:wrap; justify-content:center; gap:6px; }
.adriel-touch-controls button { min-width:58px; min-height:48px; padding:10px; border:2px solid #426572; font-size:16px; font-weight:650; touch-action:none; user-select:none; -webkit-user-select:none; -webkit-touch-callout:none; }
.adriel-touch-controls .touch-direction { min-width:68px; min-height:64px; }
.adriel-touch-controls .touch-jump { min-width:86px; min-height:68px; background:#a9e7ca; border-color:#a9e7ca; color:#14332f; font-size:19px; }
.adriel-touch-controls .touch-down { min-height:56px; }
.touch-utilities button { min-height:44px; font-size:13px; font-weight:500; }
.adriel-touch-controls button[aria-pressed="true"] { background:#426b68; border-color:#c6ffe5; color:#effff8; box-shadow:inset 0 3px 7px #0005; transform:translateY(2px); }
.adriel-touch-controls .touch-jump[aria-pressed="true"] { background:#78cfa7; color:#103e2e; }
@media (any-pointer:coarse), (max-width:900px) {
  .adriel-page,.adriel-page * { -webkit-user-select:none; user-select:none; -webkit-touch-callout:none; }
  .adriel-page input,.adriel-page textarea { -webkit-user-select:text; user-select:text; -webkit-touch-callout:default; }
}
@media (max-width:1100px) { .adriel-hero { gap:30px; padding:35px; grid-template-columns:minmax(0,1fr) 220px; } }
@media (max-width:800px) {
  .adriel-toolbar { padding:8px max(12px,env(safe-area-inset-right)) 8px max(12px,env(safe-area-inset-left)); gap:8px 12px; }.adriel-run-info { order:1; flex-basis:100%; }.adriel-actions { order:2; width:100%; flex-wrap:nowrap; overflow-x:auto; padding-bottom:3px; }.adriel-actions button { flex:none; }.adriel-brand { margin-right:auto; }
  .adriel-hero { gap:15px; padding:28px; grid-template-columns:minmax(0,1fr) 140px; }.hero-description { font-size:16px; }
  .adriel-screen { padding:20px; }.adriel-shell[data-mode="edit"] .adriel-workspace { grid-template-columns:minmax(0,1fr) 265px; }.editor-panel { padding:14px; }
}
@media (max-width:600px) {
  .adriel-run-info { gap:6px 8px; font-size:12px; }.run-metric strong { font-size:15px; }.adriel-run-info button { padding:7px 8px; font-size:12px; }
  .adriel-touch-controls { grid-template-columns:1fr 1fr; gap:7px; padding-top:7px; }
  .touch-utilities { grid-column:1/-1; grid-row:1; }
  .touch-utilities button { min-height:36px; padding:6px 12px; }
  .touch-actions { justify-content:flex-end; }.adriel-touch-controls .touch-direction { min-width:61px; min-height:60px; }.adriel-touch-controls .touch-jump { min-width:78px; min-height:64px; }
  .adriel-hero { grid-template-columns:1fr; gap:0; padding:26px; max-width:420px; }.hero-cube { display:none; }.adriel-hero h1 { font-size:60px; }.hero-facts { margin:18px 0; }
  .adriel-screen { padding:14px; }.game-card { padding:22px; }.level-panel { width:100%; }.level-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .control-list { grid-template-columns:100px minmax(0,1fr); gap:10px; font-size:14px; }.adriel-hud { top:12px; left:12px; max-width:calc(100% - 24px); }
  .adriel-hud .hud-jump-counter { min-width:82px; padding:7px 10px; }.adriel-hud .hud-jump-count { font-size:38px; }
  .adriel-shell[data-mode="edit"] .adriel-workspace { grid-template-columns:1fr; grid-template-rows:minmax(120px,1fr) minmax(0,38%); }.editor-panel { border-left:0; border-top:1px solid #34505e; }
  .editor-tools { grid-template-columns:repeat(5,minmax(0,1fr)); }.editor-tools button { flex-direction:column; font-size:12px; padding:6px 3px; gap:4px; }.editor-properties { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-height:500px) and (min-width:480px) {
  .adriel-touch-controls { grid-template-columns:auto minmax(0,1fr) auto; padding-top:6px; gap:8px; }.touch-utilities { grid-column:auto; grid-row:auto; }.touch-utilities button { min-height:36px; padding:6px 8px; font-size:12px; }
  .adriel-touch-controls .touch-direction { min-height:50px; min-width:60px; }.adriel-touch-controls .touch-jump { min-height:54px; min-width:74px; }.adriel-touch-controls .touch-down { min-height:48px; }
}
@media (prefers-reduced-motion:reduce) { .hero-cube { animation:none; }.adriel-shell button { transition:none; } }
