/* Coding RPG: readable midnight surfaces, violet energy, blue navigation. */
body.rpg-active{background:#070b18;color:#edf0ff}body.rpg-active .wrap{max-width:1440px}body.rpg-active .layout{grid-template-columns:195px minmax(0,1fr)}body.rpg-active .side{background:#0d1327;border-color:#273253;color:#dfe5ff}body.rpg-active .side-title,body.rpg-active .side-progress{color:#a5b3d4}body.rpg-active .nav button{font-size:14px;color:#c5d0ec}body.rpg-active .nav button:hover,body.rpg-active .nav button.active{background:#242047;color:#d9c5ff;border-color:#675298}body.rpg-active .top{color:#e9edff}body.rpg-active .brand .mark{background:#9d7cff;color:#0b1021}body.rpg-active .footer{color:#a8b4d4}.rpg-main{background:#0a1022!important;border-color:#293250!important;padding:28px!important;color:#edf0ff;--text:#edf0ff;--muted:#a8b5d4;--panel:#0d152b;--panel2:#151f3a;--line:#35405d;--mint:#bda4ff;--gold:#ffd58f;--code-bg:#080d1d}.rpg-main label{color:#bdc9e6;font-size:14px}.rpg-main input,.rpg-main select,.rpg-main textarea{background:#0b1329;color:#edf0ff;border:1px solid #3c4869;border-radius:10px;padding:12px;font:inherit;font-size:16px}.rpg-main textarea{width:100%;resize:vertical;line-height:1.65}.rpg-main button{cursor:pointer}.rpg-main button:disabled{cursor:default;opacity:.55}.rpg-main button:focus-visible,.rpg-main input:focus-visible,.rpg-main textarea:focus-visible,.rpg-main select:focus-visible{outline:3px solid #c4a8ff;outline-offset:3px}.rpg-shell{min-width:0}.rpg-kicker{font-size:12px;line-height:1.65;font-weight:750;letter-spacing:.12em;color:#bda4ff}.rpg-world-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.rpg-world-header h1{font-size:clamp(28px,3vw,40px);line-height:1.2;letter-spacing:-.035em;margin:8px 0}.rpg-world-header p{font-size:16px;color:#a8b5d4;margin:0}.rpg-link{border:0;background:transparent;color:#c6afff;padding:10px 0;font-size:14px;font-weight:650;text-decoration:underline;text-underline-offset:4px}.rpg-button{min-height:46px;padding:12px 18px;border:1px solid #a78aff;background:#9f7cff;color:#0a1022;font-size:16px;font-weight:750;border-radius:10px;transition:background .15s,transform .15s}.rpg-button:hover{background:#b99eff;transform:translateY(-1px)}.rpg-secondary{background:#1a2340;border-color:#445479;color:#edf0ff}.rpg-secondary:hover{background:#263155}.rpg-player-hud{display:flex;align-items:center;gap:18px;border:1px solid #39365e;border-radius:16px;padding:20px 24px;margin-bottom:22px;background:linear-gradient(105deg,#241b44,#141e38 80%)}.rpg-player-emblem{width:66px;height:66px;border:1px solid #997cdd;background:#302257;color:#d5bdff;display:grid;place-items:center;border-radius:18px;font-size:38px;flex-shrink:0;box-shadow:0 0 22px #a27dff18}.rpg-player-identity{flex:1;min-width:0}.rpg-player-identity>span{display:block;font-size:12px;letter-spacing:.13em;color:#d0baff;font-weight:750}.rpg-player-identity strong{display:block;font-size:20px;margin-top:5px}.rpg-player-identity p,.rpg-xp-track p{margin:6px 0 0;font-size:14px;color:#b3bed9;line-height:1.5}.rpg-xp-track{width:260px}.rpg-xp-track>div:first-child{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:10px}.rpg-xp-track strong{font-size:20px;color:#e0ccff}.rpg-xp-track>div>span{font-size:12px;color:#b7c4e3}.rpg-xp-bar{height:9px;border-radius:6px;background:#060b1a;overflow:hidden;border:1px solid #36415b}.rpg-xp-bar>span{display:block;height:100%;background:linear-gradient(90deg,#9674fc,#51aeff);border-radius:6px;transition:width .6s ease}.rpg-world-columns{display:grid;grid-template-columns:1.4fr 1fr;gap:18px}.rpg-current-quest,.rpg-daily{border:1px solid #364564;border-radius:16px;padding:24px;background:#111a31}.rpg-current-quest{border-top:3px solid #a78aff;background:radial-gradient(ellipse at top right,#2a2049,transparent 70%),#11182e}.rpg-current-quest h2,.rpg-daily h2{font-size:24px;letter-spacing:-.02em;margin:12px 0}.rpg-current-quest p,.rpg-daily p{font-size:16px;line-height:1.65;color:#b9c5e2}.rpg-chapter-track{display:flex;gap:10px;margin:20px 0}.rpg-chapter-track span{width:34px;height:34px;display:grid;place-items:center;border:1px solid #4b5475;border-radius:8px;font-size:14px;color:#b7c6e3;background:#0c1327}.rpg-chapter-track span.done{background:#392763;color:#e0c9ff;border-color:#9778d7}.rpg-current-actions{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0 12px}.rpg-small{font-size:14px!important;line-height:1.6;color:#a6b4d4}.rpg-daily .rpg-kicker{color:#85c7ff}.rpg-daily-count{display:block;font-size:40px;color:#c4e2ff;line-height:1.2;margin:16px 0 12px}.rpg-daily-count span{font-size:24px;color:#93a4c7}.rpg-daily-bottom{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin-top:14px;font-size:14px;color:#ffcfa7}.rpg-bot-note{display:flex;gap:14px;align-items:center;padding:18px 22px;margin:20px 0 28px;background:#11182d;border:1px dashed #465175;border-radius:12px}.rpg-bot-note>span{font-size:28px;color:#c0a4ff}.rpg-bot-note strong{font-size:14px;color:#cfbaff}.rpg-bot-note p{margin:5px 0 0;font-size:16px;color:#bdc9e5;line-height:1.6}.rpg-world-tabs{display:flex;gap:8px;margin-bottom:20px;border-bottom:1px solid #33405c}.rpg-world-tabs button{border:0;border-bottom:2px solid transparent;background:transparent;color:#aab8d8;font-size:14px;padding:12px 14px;font-weight:650}.rpg-world-tabs button.selected{color:#d9c5ff;border-bottom-color:#b192ff}.rpg-modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.rpg-mode-card{border:1px solid #344363;border-radius:14px;background:#0f1930;padding:20px;text-align:left;position:relative;overflow:hidden;transition:border-color .2s,background .2s}.rpg-mode-card:hover{border-color:#8a70bf;background:#182342}.rpg-mode-icon{display:block;font:26px/1.3 ui-monospace,monospace;color:#b9a0ff;margin-bottom:14px}.rpg-mode-tag{display:block;font-size:12px;color:#88baf0;line-height:1.5}.rpg-mode-card h3{font-size:18px;color:#ecedff;margin:8px 0;line-height:1.35}.rpg-mode-card p{font-size:14px;line-height:1.65;color:#b2bed9;margin:8px 0 18px;min-height:45px}.rpg-mode-action{display:block;font-size:14px;font-weight:650;color:#c6afff}.rpg-boss{border-color:#755c43;background:#241d25}.rpg-boss .rpg-mode-icon,.rpg-boss .rpg-mode-action{color:#ffd58f}.rpg-build{grid-column:span 2;background:linear-gradient(105deg,#152347,#1c1b36)}.rpg-build p{min-height:0}.rpg-mode-footnote{margin:18px 0}.rpg-world-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid #303e5d;margin-top:28px;padding-top:24px;gap:14px}.rpg-world-stats strong{display:block;font-size:24px;color:#d9c9ff}.rpg-world-stats span{display:block;font-size:14px;color:#b4c0df;margin-top:7px}.rpg-skill-tree{max-width:720px}.rpg-section-intro h2{font-size:24px;line-height:1.4}.rpg-section-intro p{font-size:16px;line-height:1.65;color:#b4c2e2}.rpg-skill{display:flex;align-items:center;gap:18px;position:relative;width:100%;border:1px solid #3c4c70;background:#111b34;border-radius:12px;padding:18px;margin-top:14px;text-align:left}.rpg-skill>span:first-child{display:grid;place-items:center;width:42px;height:42px;background:#222447;border:1px solid #77709f;border-radius:50%;color:#d5c1ff;flex-shrink:0}.rpg-skill.mastered>span:first-child{background:#50357b}.rpg-skill strong{font-size:16px;color:#edf0ff}.rpg-skill p{font-size:14px;color:#b6c1dc;margin:5px 0 0}.rpg-skill-action{font-size:14px;color:#cbb2ff;margin-left:auto}.rpg-badges{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.rpg-badge{padding:24px 18px;border:1px solid #3a435d;border-radius:14px;text-align:center;background:#11192c}.rpg-badge>span{display:inline-grid;place-items:center;width:54px;height:54px;border:1px solid #455473;border-radius:14px;background:#1a223a;color:#8392b7;font-size:28px}.rpg-badge.earned{border-color:#876cac;background:#251d38}.rpg-badge.earned>span{color:#eed1ff;border-color:#a481c7;background:#3c2956}.rpg-badge h3{font-size:16px;line-height:1.4;margin-top:16px}.rpg-badge p{font-size:14px;line-height:1.65;color:#b4bfd9}.rpg-badge strong{font-size:14px;color:#d0b3f7}.rpg-onboarding{max-width:620px;margin:10px auto 25px}.rpg-onboarding h1{font-size:clamp(28px,3vw,40px);line-height:1.2;letter-spacing:-.04em}.rpg-onboarding p{font-size:16px;line-height:1.7;color:#b7c5e3}.rpg-bot-mark{display:grid;place-items:center;width:64px;height:64px;background:#32254e;border:1px solid #886cbc;color:#d3b5ff;font-size:38px;border-radius:18px;margin:24px 0}.rpg-onboarding fieldset{border:0;padding:0;margin:4px 0 22px}.rpg-onboarding legend{font-size:14px;color:#bdc9e6;margin-bottom:12px}.rpg-avatar-choices{display:flex;gap:12px}.rpg-avatar-choices button{width:52px;height:52px;background:#17213a;border:1px solid #526181;border-radius:12px;color:#c4b1f3;font-size:27px}.rpg-avatar-choices .selected,.rpg-answer-list .selected{border-color:#c5a4ff;background:#34224f;color:#efe2ff}.rpg-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.rpg-assessment{border:1px solid #445071;background:#111a30;padding:24px;border-radius:16px}.rpg-assessment>span{font-size:12px;color:#b69bea;letter-spacing:.1em}.rpg-assessment h2{font-size:22px;line-height:1.4}.rpg-assessment pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#090f20;border:1px solid #3b4563;padding:18px;border-radius:10px;font:16px/1.7 ui-monospace,monospace;color:#dfe6ff}.rpg-answer-list{display:grid;gap:10px;margin-bottom:18px}.rpg-answer-list button{background:#1b2440;border:1px solid #4f5c7e;color:#e4eaff;border-radius:10px;text-align:left;padding:14px;font-size:16px}.rpg-assessment-result{border:1px solid #705294;background:#221935;border-radius:12px;padding:22px;margin:24px 0}.rpg-assessment-result strong{font-size:32px;display:block;color:#d6b7ff}.rpg-assessment-result span{font-size:14px;color:#b4c1e1}.rpg-welcome-message{padding:22px;border-left:3px solid #a787e4;background:#18203a}.rpg-state{text-align:center;padding:70px 20px}.rpg-state>span{display:block;font-size:48px;color:#b69aff}.rpg-state h1{font-size:28px}.rpg-state p{font-size:16px;color:#b8c4e1;line-height:1.6}.rpg-spinner{animation:rpg-breathe 1.5s ease-in-out infinite}@keyframes rpg-breathe{50%{opacity:.5;transform:scale(.95)}}.rpg-execution-notice{padding:18px 22px;border:1px solid #66533c;background:#241f26;border-radius:12px;margin-bottom:20px}.rpg-execution-notice strong{font-size:16px;color:#ffd6a9}.rpg-execution-notice p{font-size:14px;line-height:1.7;color:#d1c4ba;margin:8px 0 0}.rpg-playground{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:18px;align-items:start}.rpg-code-chat,.rpg-editor-panel{border:1px solid #3a4868;border-radius:14px;overflow:hidden;background:#0d152a;min-width:0}.rpg-code-chat header,.rpg-editor-panel header{display:flex;align-items:center;gap:12px;padding:16px 18px;border-bottom:1px solid #35415d;background:#17203a}.rpg-code-chat header strong,.rpg-code-chat header div>span{display:block;font-size:16px}.rpg-code-chat header div>span{font-size:14px;color:#b0bcda;margin-top:4px}.rpg-bot-icon{display:grid;place-items:center;width:38px;height:38px;background:#413063;color:#dbc0ff;border-radius:10px;font-size:24px}.rpg-code-log{height:395px;overflow-y:auto;padding:18px}.rpg-chat-bubble{border:1px solid #3c496a;background:#1a2340;border-radius:4px 14px 14px;margin:0 15px 16px 0;padding:14px;font-size:16px;line-height:1.65;overflow-wrap:anywhere}.rpg-chat-bubble>strong{font-size:14px;color:#ceb6ff}.rpg-chat-bubble.player{margin-left:20px;margin-right:0;border-radius:14px 4px 14px 14px;border-color:#765799;background:#2b1f42}.rpg-chat-bubble pre{overflow-x:auto;max-width:100%}.rpg-bot-intro h2{font-size:24px}.rpg-bot-intro p{font-size:16px;line-height:1.7;color:#b5c4e2}.rpg-code-quick{display:flex;gap:8px;flex-wrap:wrap;padding:12px 18px;border-top:1px solid #334260}.rpg-code-quick button{padding:8px 12px;border:1px solid #4e5a7f;background:#1c2644;color:#d6dffa;border-radius:18px;font-size:14px}.rpg-code-chat form{padding:4px 18px 16px}.rpg-code-chat textarea{margin:8px 0 12px}.rpg-code-chat form .rpg-button{width:100%}.rpg-error{font-size:14px;color:#ffc3c3;line-height:1.6}.rpg-error:empty{margin:0}.rpg-editor-panel header{justify-content:space-between;font-size:14px}.rpg-editor-panel header .rpg-link{padding:0}.rpg-monaco{height:380px;background:#0b1021}.rpg-monaco.editor-loading{height:0}.rpg-editor-fallback{padding:12px}.rpg-editor-fallback textarea{height:340px;font:16px/1.65 ui-monospace,monospace;tab-size:2;white-space:pre}.rpg-editor-actions{display:flex;gap:10px;flex-wrap:wrap;padding:16px;border-top:1px solid #33415e;align-items:center}.rpg-editor-actions>span{font-size:14px;color:#b9c9e7}.rpg-terminal{margin:0 16px 16px;border:1px solid #3a4967;background:#080d1b;border-radius:10px;padding:18px}.rpg-terminal strong{font-size:12px;letter-spacing:.1em;color:#a0b5d5}.rpg-terminal p{font:14px/1.7 ui-monospace,monospace;color:#a8b9d7;margin-bottom:0}.rpg-code-privacy{padding:0 16px 6px}.rpg-mobile-tabs{display:none}@media(min-width:1500px){.rpg-code-log{height:480px}.rpg-monaco{height:460px}}@media(max-width:1150px){.rpg-modes{grid-template-columns:repeat(2,minmax(0,1fr))}.rpg-build{grid-column:auto}.rpg-player-hud{flex-wrap:wrap}.rpg-xp-track{width:100%}.rpg-world-columns{grid-template-columns:1fr 1fr}.rpg-current-actions{flex-direction:column}.rpg-badges{grid-template-columns:repeat(2,minmax(0,1fr))}.rpg-playground{grid-template-columns:1fr 1fr}}@media(max-width:900px){body.rpg-active .layout{grid-template-columns:1fr}body.rpg-active .side{position:static}body.rpg-active .nav{grid-template-columns:repeat(3,minmax(0,1fr))!important}.rpg-main{padding:22px!important}.rpg-world-columns{grid-template-columns:1fr 1fr}}@media(max-width:640px){.rpg-main{padding:18px!important}.rpg-world-header{align-items:flex-start}.rpg-world-header h1{font-size:28px}.rpg-world-columns{grid-template-columns:1fr}.rpg-player-hud{padding:18px}.rpg-player-emblem{width:52px;height:52px}.rpg-player-identity strong{font-size:18px}.rpg-player-identity p{font-size:14px}.rpg-current-quest,.rpg-daily{padding:20px}.rpg-modes{grid-template-columns:1fr 1fr;gap:10px}.rpg-mode-card{padding:16px}.rpg-mode-card h3{font-size:16px}.rpg-mode-card p{min-height:0}.rpg-world-tabs{gap:0}.rpg-world-tabs button{font-size:14px;padding:12px 8px}.rpg-world-stats{grid-template-columns:repeat(2,1fr);gap:24px}.rpg-form-grid{grid-template-columns:1fr;gap:0}.rpg-assessment{padding:18px}.rpg-mobile-tabs{display:flex;gap:8px;margin-bottom:14px}.rpg-mobile-tabs button{flex:1;padding:12px;border:1px solid #586789;background:#192542;color:#c8d5f3;font-size:14px;border-radius:10px}.rpg-mobile-tabs button[aria-pressed=true]{background:#3b295d;border-color:#b995ff;color:#eadcff}.rpg-playground{display:block}.rpg-playground>section{display:none}.rpg-playground>section.mobile-visible{display:block}.rpg-code-log{height:350px}.rpg-monaco{height:380px}.rpg-world-header .rpg-link{font-size:14px;flex-shrink:0}.rpg-bot-note{padding:16px}.rpg-skill{padding:14px;gap:12px}}@media(max-width:380px){.rpg-modes{grid-template-columns:1fr}.rpg-world-tabs{flex-wrap:wrap}.rpg-world-header{flex-wrap:wrap}.rpg-skill-action{display:none}}@media(prefers-reduced-motion:reduce){.rpg-spinner{animation:none}.rpg-button,.rpg-mode-card,.rpg-xp-bar>span{transition:none}.rpg-button:hover{transform:none}}
.rpg-main{--on-accent:#0b1022;--control-line:#657299;--success-bg:#1c2d34;--success-text:#b9f0d2;--success-border:#4e9275;--error-bg:#3c2231;--error-text:#ffd0d9;--error-border:#a97280;--info-bg:#20324b;--info-text:#cce2ff;--selected-bg:#312650;--selected-border:#ab8cdf;--code-text:#e4eaff}.rpg-main .journey-heading h1{color:#f1efff}.rpg-main .journey-heading p{color:#b5c2e2}.rpg-main .technology-tab{color:#c9d4ed}.rpg-main .technology-monogram{background:#2d2852;color:#cebbff}.rpg-main .quest-chat-log{background:#090f21}.rpg-main .quest-avatar{background:#a582ef;color:#0b1022}.rpg-main .quest-chat-head{background:#17213b}.rpg-main .quest-mission{border-top:3px solid #a887ee}.rpg-main .arena-stats strong{color:#dbcdff}.rpg-main .arena-stats>div{background:#151e35}.rpg-main .tutor-code{background:#080d1c}.rpg-main .btn.primary{background:#a384ee;color:#0a1022}.rpg-main .btn.secondary{background:#1a2542;border-color:#526386;color:#e5ebff}.rpg-main .quest-chat-compose textarea{font-family:inherit}.rpg-main .quest-bubble{font-size:16px}.rpg-main .tutor-thinking{color:#c1adf5}
