/* JulianMC V281 — old appearance, ported based on JMC V122.
   The default dark theme stays intact. Only the explicit classic selection enables these rules. */
html[data-jmc-classic="true"]{
  color-scheme:dark;
  --bg:#050b14;
  --bg-2:#0a1220;
  --panel:#101a29;
  --panel-2:#152338;
  --panel-3:#0b1524;
  --line:#243c58;
  --line-soft:#182a40;
  --text:#f1f6fb;
  --muted:#93a4b5;
  --muted-2:#65798e;
  --green:#2f78c4;
  --green-2:#1d4f85;
  --green-3:#0e2947;
  --lime:#5eb8ff;
  --gold:#73d1ff;
  --shadow:#02050a;
  --radius:0px;
}
html[data-jmc-classic="true"] body{
  color:#f1f6fb;
  background:radial-gradient(circle at 18% -10%,rgba(47,120,196,.18),transparent 30%),radial-gradient(circle at 88% 5%,rgba(110,145,180,.09),transparent 26%),linear-gradient(180deg,#050b14 0%,#08111d 40%,#050b14 100%)!important;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
/* V122 had square, pixel-art boxes, not the rounded V125+ mobile cards. */
html[data-jmc-classic="true"] :is(.section,.step,.card,.form-side,.form-panel,.ip-panel,.showcase,.logo-block,.game-card,.top-card,.jmc-skin-card,.jmc-gallery-item,.jmc-current-skin-card,.jmc-mini-map-frame,.panel,.workspace .panel){
  border-radius:0!important;
}
html[data-jmc-classic="true"] :is(.section,.card,.step,.showcase,.ip-panel,.form-side,.form-panel){
  box-shadow:4px 4px 0 #02050a;
}
html[data-jmc-classic="true"] :is(.btn,.copy,.chip,.edition-btn,.view-btn,.jmc-map-camera-btn){border-radius:0!important}
/* Single shared header retained from V279, styled with the old V122 square navbar. */
html[data-jmc-classic="true"] body .shell > nav.jmc-shared-nav{
  background:transparent!important;
  border:0!important;
  border-bottom:1px solid rgba(255,255,255,.07)!important;
  border-radius:0!important;
  box-shadow:none!important;
  height:80px;
  min-height:80px;
}
html[data-jmc-classic="true"] body .shell > nav.jmc-shared-nav .brand{
  color:#fff!important;
  font-weight:950!important;
  letter-spacing:.09em!important;
  text-transform:uppercase!important;
}
html[data-jmc-classic="true"] body .shell > nav.jmc-shared-nav .nav-actions > a.btn{
  background:#101d2d!important;
  border:1px solid #39546e!important;
  color:#dcebf5!important;
  border-radius:0!important;
  box-shadow:inset 0 -4px 0 rgba(0,0,0,.28),inset 3px 3px 0 rgba(120,180,230,.025),4px 4px 0 #02050a!important;
  font:900 .72rem/1 Inter,system-ui,sans-serif;
}
html[data-jmc-classic="true"] body .shell > nav.jmc-shared-nav .nav-actions > a.btn.green{
  background:#1e5d96!important;border-color:#4a8dcc!important;color:#f1f9ff!important;
}
html[data-jmc-classic="true"] body .shell > nav.jmc-shared-nav .nav-actions > a.btn:hover{background:#17283d!important}
html[data-jmc-classic="true"] body .shell > nav.jmc-shared-nav .nav-actions > a.btn.green:hover{background:#2b6fab!important}
html[data-jmc-classic="true"] .jmc-settings-button{border-radius:0!important}
/* Reinstate V122 home sizing on narrow viewports where V125 introduced a different layout. */
@media(max-width:760px){
  html[data-jmc-classic="true"] .hero{gap:42px!important;padding:54px 0 68px!important}
  html[data-jmc-classic="true"] .section{padding:28px 18px!important;border-radius:0!important}
  html[data-jmc-classic="true"] .showcase{min-height:260px!important;border-radius:0!important}
  html[data-jmc-classic="true"] .logo-block{width:155px!important;height:155px!important;border-radius:0!important}
  html[data-jmc-classic="true"] .logo-block strong{font-size:2.6rem!important}
  html[data-jmc-classic="true"] :is(.step,.card,.form-side,.form-panel){border-radius:0!important}
  html[data-jmc-classic="true"] :is(.ip-panel,.chip,.copy,.jmc-mini-map-frame,.jmc-skin-card,.jmc-gallery-item){border-radius:0!important}
  html[data-jmc-classic="true"] .hero h1{font-size:clamp(3.8rem,8.6vw,7.6rem)!important;line-height:.86!important}
  html[data-jmc-classic="true"] .hero-lead{margin-top:24px!important}
  html[data-jmc-classic="true"] .ip-panel{display:block!important}
  html[data-jmc-classic="true"] .ip-panel .copy{min-height:52px!important;border-left:0!important;border-top:1px solid #2c4660!important;border-radius:0!important}
  html[data-jmc-classic="true"] .form-actions{display:flex!important;flex-direction:column!important;align-items:stretch!important}
  html[data-jmc-classic="true"] .form-actions .btn{width:100%!important;min-height:52px!important}
  html[data-jmc-classic="true"] footer{display:block!important;line-height:1.8!important}
}
@media(max-width:640px){
  /* Keep the V279 responsive sticky navigation functional in the old preset. */
  html[data-jmc-classic="true"] body .shell > nav.jmc-shared-nav{height:auto!important;min-height:68px!important;border-radius:0!important}
  html[data-jmc-classic="true"] body .shell > nav.jmc-shared-nav .nav-actions > a.btn{font-size:.61rem!important;padding:9px 10px!important}
}

/* V281 — complete, opt-in classic theme on EVERY visible JulianMC page. */
html[data-jmc-classic="true"] {
  color-scheme:dark!important;
  /* Newer pages rely on full palette variables rather than the original V122 names. */
  --jmc-full-bg:#050b14; --jmc-full-bg2:#0a1220;
  --jmc-full-surface:#101a29; --jmc-full-surface2:#152338; --jmc-full-surface3:#0b1524;
  --jmc-full-border:#243c58; --jmc-full-border-soft:#182a40;
  --jmc-full-text:#f1f6fb; --jmc-full-muted:#93a4b5; --jmc-full-muted2:#65798e;
  --jmc-full-accent:#2f78c4; --jmc-full-accent-dark:#1d4f85;
  --jmc-full-accent-light:#5eb8ff; --jmc-full-accent-text:#fff;
  --jmc-full-accent-soft:rgba(47,120,196,.15);
  --jmc-full-accent-soft2:rgba(47,120,196,.27);
  --jmc-full-nav:#0a1220; --jmc-full-nav2:#101d2d;
  --jmc-full-input:#0b1524;
  --jmc-full-shadow:rgba(0,0,0,.35);
  --sim-bg:#050b14;--sim-panel:#101a29;--sim-edge:#243c58;
  --sim-mint:#5eb8ff;--sim-gold:#73d1ff;
  --arcade-accent:#2f78c4;
  --txt:#f1f6fb;--accent:#5eb8ff;--surface:#101a29;--surface2:#152338;
}
/* Old V122 hard edges and dark blue surfaces on the main tools and result screens. */
html[data-jmc-classic="true"] body :is(
  .section,.step,.card,.panel,.game-card,.game-head,.top-card,.top-toolbar,
  .jmc-skin-wrap,.jmc-skin-card,.jmc-gallery,.jmc-gallery-item,.jmc-capes,.jmc-head-give,
  .jmc-current-skin,.jmc-current-skin-card,.jmc-top-skins-wrap,.jmc-top-skin,.meta,
  .jmc-mini-map-frame,.jmc-gallery-card,.jmc-cape-card,.jmc-profile-card,
  .jmc-arcade-panel,.jmc-arcade-bar > *, .jmc-stats-box,
  .map,.head,.faq,.stat,.jclick-stat,.sim-card,.sim-stat,.sim-tab,
  .player-card,.room-card,.lobby-card,.modal-card,
  .editor-page .message,.editor-page .panel,
  .jmc-settings-popover,.jmc-settings-choice,.jmc-settings-choice-icon
){border-radius:0!important;}
html[data-jmc-classic="true"] body :is(
  .btn,.copy,.chip,.nav-button,.mini-btn,.tool,.action-btn,
  .jmc-map-camera-btn,.sim-tab,.jmc-arcade-panel,.jmc-settings-button,
  .jmc-settings-choice,.jmc-color-swatch,.jmc-custom-mode,
  .game-btn,.control-btn,.stage-toolbar button,
  input,textarea,select,button:not(.jmc-settings-choice):not(.jmc-settings-button)
){border-radius:0!important;}
html[data-jmc-classic="true"] body :is(
  .section,.game-card,.game-head,.top-card,.jmc-skin-wrap,.jmc-gallery,
  .jmc-capes,.jmc-head-give,.jmc-current-skin,.jmc-current-skin-card,.jmc-top-skins-wrap,
  .panel,.jmc-arcade-panel,.faq,.modal-card,.sim-card,.editor-page .panel
){background-color:#101a29!important;border-color:#243c58!important;box-shadow:4px 4px 0 #02050a!important;}
html[data-jmc-classic="true"] body :is(.jmc-settings-choice,.jmc-color-custom,.jmc-color-group){border-radius:0!important;}
html[data-jmc-classic="true"] body :is(input,textarea,select){background-color:#0b1524;color:#f1f6fb;border-color:#39546e;}
html[data-jmc-classic="true"] body :is(.btn,.nav-button,.sim-tab,.mini-btn){background-color:#101d2d;border-color:#39546e;color:#dcebf5;box-shadow:inset 0 -3px 0 rgba(0,0,0,.28),3px 3px 0 #02050a;}
html[data-jmc-classic="true"] body :is(.btn.green,.btn.primary,.nav-button.active,.sim-tab.active){background-color:#1e5d96!important;border-color:#4a8dcc!important;color:#fff!important;}
html[data-jmc-classic="true"] body :is(.section-head p,.sub,.note,.eyebrow,.helper,.muted,.intro p){color:#93a4b5;}
/* Profile, skins, maps and TOP use older boxy rows without flattening previews/canvases. */
html[data-jmc-classic="true"] body :is(.jmc-edition-bar,.jmc-skin-card-title,.jmc-gallery-head,.jmc-cape-head,.jmc-model-switch-row,.jmc-skin-tools,.jmc-head-give-head,.top-toolbar,.meta){background:#152338!important;border-color:#243c58!important;}
html[data-jmc-classic="true"] body :is(.jmc-viewer-stage,.jmc-gallery-image,.jmc-skin-thumb-preview,.jmc-current-skin-preview,.preview){background-color:#0b1524!important;}
/* Keep V279 identical sticky navigation on main page + Pędzel. */
html[data-jmc-classic="true"] body .shell > nav.jmc-shared-nav{position:relative;}
/* Five independent V249 simulators were missing V122 mode entirely. */
html[data-jmc-classic="true"] body.nsim{--ns-accent:#5eb8ff!important;background:radial-gradient(circle at 18% -10%,rgba(47,120,196,.18),transparent 30%),linear-gradient(180deg,#050b14,#08111d 40%,#050b14)!important;color:#f1f6fb!important;}
html[data-jmc-classic="true"] .nsim :is(nav,.navbar){border-color:#243c58!important;}
html[data-jmc-classic="true"] .nsim :is(.stat,.panel,.newsim-area,.rebirth-block,.newsim-collection,.newsim-shop-btn,.newsim-egg-list button){border-color:#243c58!important;border-radius:0!important;background:#101a29!important;box-shadow:4px 4px 0 #02050a!important;}
html[data-jmc-classic="true"] .nsim :is(.stat,.panel-header,.newsim-collection){color:#f1f6fb!important;}
html[data-jmc-classic="true"] .nsim :is(.mini-btn,.nav-button,.newsim-shop-btn,.newsim-egg-list button){border:1px solid #39546e!important;border-radius:0!important;background:#101d2d!important;color:#dcebf5!important;}
html[data-jmc-classic="true"] .nsim :is(.nav-button.active,.newsim-egg-list button.chosen){border-color:#4a8dcc!important;background:#1e5d96!important;color:#fff!important;}
html[data-jmc-classic="true"] .nsim :is(.intro p,.area-note,.panel-header span,.stat small){color:#93a4b5!important;}
/* Standalone turn-based games (Kółko i Krzyżyk, Papier/Kamień/Nożyce). */
html[data-jmc-classic="true"] body .site :is(.navbar,.intro,.game-card,.game-panel,.arena,.lobby,.notice,.room-card,.score-card,.rules,.player-card){border-radius:0!important;border-color:#243c58!important;}
html[data-jmc-classic="true"] body .site :is(.navbar,.game-card,.game-panel,.arena,.lobby,.room-card,.score-card,.rules,.player-card){background-color:#101a29!important;}
html[data-jmc-classic="true"] body .site :is(.navright a,.play-btn,.mode-btn,.lobby-btn){border-radius:0!important;}
/* Other simulators, game hubs, editor, games and arcade modules retain layouts/logic. */
html[data-jmc-classic="true"] body :is(.sim-page,.jclick,.jmc-arcade-v138){color:#f1f6fb;}
html[data-jmc-classic="true"] body :is(.sim-tab,.jclick-stat,.sim-stat,.jmc-arcade-panel,.game-head,.jmc-arcade-bar > *){border-radius:0!important;}
html[data-jmc-classic="true"] body .editor-page :is(.tool,.swatch,.color-chip,.control-card,.status-box){border-radius:0!important;}
/* Settings menu itself must have the same old square appearance on all 23 views. */
html[data-jmc-classic="true"] .jmc-settings-popover{background:rgba(8,18,31,.99)!important;border:1px solid #39546e!important;border-radius:0!important;box-shadow:4px 4px 0 #02050a!important;}
html[data-jmc-classic="true"] .jmc-settings-choice.active{background:#15314a!important;}
html[data-jmc-classic="true"] .jmc-settings-choice:hover{background:#11263b!important;}
/* Accessibility: keep keyboard focus and per-game state markings visible. */
html[data-jmc-classic="true"] :is(a,button,input,select,textarea):focus-visible{outline:2px solid #73d1ff;outline-offset:2px;}
@media (max-width:560px){
  /* Keep the appearance selector fully inside the phone viewport. */
  html[data-jmc-classic="true"] .jmc-settings-popover{
    right:10px!important;max-width:calc(100vw - 20px)!important;
  }
}
