/* Battle skins are screen-only; status colors and printed documents stay intact. */
html[data-skin="goku"], html[data-skin="vegeta"], html[data-skin="saiyan"] {
  --ki: #ffac28; --ki-light: #ffeeb2; --ki-secondary: #45cfff;
  --shadow: 4px 5px 0 #14233540; --radius: 4px;
}
html[data-skin="vegeta"] { --ki: #49bfff; --ki-light: #d1f5ff; --ki-secondary: #ffd445; }
html[data-skin="saiyan"] { --ki: #ffdf4e; --ki-light: #fff6bb; --ki-secondary: #62deff; }
.skin-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; }
.motion-picker { display: flex; align-items: center; min-height: 44px; gap: 8px; font-size: 13px; cursor: pointer; margin: 0; }
.motion-picker input { width: 20px; height: 20px; margin: 0; accent-color: var(--ki, #0f766e); }
.battle-menu, .battle-world, .battle-title { display: none; }
.battle-menu[hidden] { display: none !important; }
html:not([data-skin="classic"]) .skin-tools label { color: #ecf4ff; }
html:not([data-skin="classic"]) body { isolation: isolate; }
html:not([data-skin="classic"]) .battle-world { display: block; position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: #90c3e0; }
.battle-art { position: absolute; inset: -2%; background: url("../img/dbz-battle.482a2521f14c.png") center / cover no-repeat; transform: scale(1.02); }
#ki-background { position: absolute; width: 100%; height: 100%; inset: 0; }
html[data-motion="on"] .battle-art { animation: battlefield 20s ease-in-out infinite alternate; }
@keyframes battlefield { from { transform: scale(1.02) translateY(-.4%); } to { transform: scale(1.07) translateY(.4%); } }
html:not([data-skin="classic"]) .topbar { position: relative; background: #111c2bf2; color: #f7fbff; border-top: 4px solid var(--ki); border-bottom: 3px solid var(--ki-secondary); box-shadow: 0 6px 0 #13203055; }
html:not([data-skin="classic"]) .brand { color: #fff; font-style: italic; }
html:not([data-skin="classic"]) .brand-mark { color: #142030; background: var(--ki); border: 2px solid #fff; border-radius: 3px; box-shadow: 3px 3px 0 var(--skin-accent); transform: skew(-7deg); }
html:not([data-skin="classic"]) .skin-picker select { background: #fff; color: #182536; border: 2px solid #6c86a4; }
html:not([data-skin="classic"]) .main-nav :is(a,button) { color: #eff8ff; background: #1b3048; border: 1px solid #5c7898; border-left: 4px solid var(--ki); border-radius: 2px; min-height: 44px; box-shadow: 2px 2px 0 #060e1b; }
html:not([data-skin="classic"]) .main-nav :is(a,button):hover { background: var(--primary); color: var(--skin-ink); border-color: var(--ki-light); }
html:not([data-skin="classic"]) .page { margin-top: 0; }
html:not([data-skin="classic"]) .battle-title { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 148px; padding: 16px 0; }
.battle-wordmark { font-family: Impact, 'Arial Black', sans-serif; font-size: 42px; font-style: italic; color: #ffdc49; -webkit-text-stroke: 1.5px #162134; text-shadow: 3px 4px 0 #142035, 5px 6px 0 #fff; line-height: 1.12; }
.battle-wordmark b { color: #f24a20; font-size: 60px; }
.battle-energy { display: flex; gap: 5px; height: 22px; transform: skew(-18deg); }
.battle-energy i { width: 16px; height: 100%; background: var(--ki); border: 1px solid #15243b; box-shadow: 2px 2px 0 #15243b; }
html[data-motion="on"] .battle-energy i { animation: charge 2.8s ease-in-out infinite; }
.battle-energy i:nth-child(2n) { animation-delay: .3s !important; }.battle-energy i:nth-child(3n) { animation-delay: .6s !important; }
@keyframes charge { 0%,100% { opacity: .6; transform: scaleY(.8); } 50% { opacity: 1; transform: scaleY(1); } }
html:not([data-skin="classic"]) .page-header { background: #fffffff5; border-left: 6px solid var(--ki); border-bottom: 3px solid #21334b; padding: 16px 18px; box-shadow: 4px 4px 0 #14203544; }
html:not([data-skin="classic"]) h1 { font-style: italic; text-transform: uppercase; font-weight: 900; font-size: 28px; }
html:not([data-skin="classic"]) :is(.panel,.table-wrap,.login-panel,.stat-card,.filter-panel,.form-panel,.hp-invoice-form,.hp-batch-progress) { background: #fffffff5; border-color: #21334b; }
html:not([data-skin="classic"]) .stat-card { position: relative; overflow: hidden; border: 2px solid #20344e; border-left: 7px solid var(--ki); box-shadow: var(--shadow); }
html:not([data-skin="classic"]) .stat-card::after { content: ''; position: absolute; right: -12px; top: 0; height: 100%; width: 34px; background: var(--skin-accent); transform: skew(-16deg); opacity: .12; pointer-events: none; }
html:not([data-skin="classic"]) .stat-card strong { font-style: italic; font-size: 40px; }
html:not([data-skin="classic"]) :is(.button,.back-to-top,.battle-menu) { position: relative; overflow: hidden; min-height: 44px; border: 2px solid #16263e; border-radius: 3px; background: #fff; color: #17273c; box-shadow: 3px 4px 0 #15273e; font-weight: 800; transition: transform .12s, box-shadow .12s, background-color .12s; }
html:not([data-skin="classic"]) :is(.button-primary,.back-to-top) { color: var(--skin-ink); background: var(--primary); border-left: 6px solid var(--ki-light); border-right: 6px solid var(--ki-secondary); text-shadow: 1px 1px 0 #0003; }
html:not([data-skin="classic"]) .back-to-top { position: fixed; }
html:not([data-skin="classic"]) .button-primary:hover { background: var(--primary-strong); color: #fff; }
html:not([data-skin="classic"]) :is(.button,.back-to-top):active { transform: translate(2px,3px); box-shadow: 1px 1px 0 #15273e; }
html:not([data-skin="classic"]) :is(.button,.back-to-top)::after { content: ''; position: absolute; top: -50%; left: -50%; width: 24px; height: 200%; background: #fff8; transform: skew(-25deg); pointer-events: none; opacity: 0; }
html[data-motion="on"]:not([data-skin="classic"]) .button-primary::after { animation: energy-sweep 5s ease-in-out infinite; }
html[data-motion="on"]:not([data-skin="classic"]) .ki-hit::after { animation: energy-sweep .55s ease-out !important; }
@keyframes energy-sweep { 0%,65% { left: -50%; opacity: 0; } 70% { opacity: .8; } 100% { left: 140%; opacity: 0; } }
html:not([data-skin="classic"]) :is(input,select,textarea) { border-color: #8c9db3; }
html:not([data-skin="classic"]) .page > :is(p,form:not(.hp-invoice-form),nav:not(.hp-sales-pagination)) { background: #fffffff5; padding: 10px 14px; }
html:not([data-skin="classic"]) .hp-sales-pagination { background: #fffffff5; padding: 12px; }
html:not([data-skin="classic"]) .hp-sale-line { background: #fff; }
html:not([data-skin="classic"]) .page > section:first-of-type:not(.page-header):not(.stats-grid):not(.panel) { background: #fffffff5; padding: 16px; }
html:not([data-skin="classic"]) .button:disabled { opacity: .65; box-shadow: none; cursor: wait; }
@media (max-width: 860px) {
  .topbar { position: static !important; grid-template-columns: minmax(0,1fr) auto; gap: 12px; padding: 12px 14px; }
  .brand { grid-column: 1; font-size: 14px; }.brand-mark { width: 30px; height: 30px; }
  .battle-menu { display: block; grid-column: 2; grid-row: 1; min-width: 70px; padding: 8px; font: inherit; cursor: pointer; }
  .skin-tools { grid-column: 1; grid-row: 2; min-width: 0; gap: 4px; }
  .skin-picker { flex-wrap: wrap; gap: 4px; min-width: 0; }.skin-picker select { width: 175px; max-width: 100%; font-size: 16px; }
  .logout-form { grid-column: 2; grid-row: 2; align-self: start; }.logout-form .button { padding: 8px; font-size: 12px; }
  .main-nav { grid-row: 3; grid-column: 1/-1; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); width: 100%; }
  html[data-menu="closed"] .main-nav { display: none; }
  .main-nav :is(a,button) { min-height: 44px; padding: 8px; display: flex; align-items: center; justify-content: center; text-align: center; overflow-wrap: anywhere; }
  .battle-art { background-position: 20% center; }
  html[data-skin="vegeta"] .battle-art { background-position: 80% center; }
  html:not([data-skin="classic"]) .battle-title { min-height: 140px; align-items: end; padding-bottom: 20px; }
  .battle-wordmark { font-size: 27px; }.battle-wordmark b { font-size: 38px; }
  .battle-energy { height: 16px; gap: 3px; }.battle-energy i { width: 7px; }
  html:not([data-skin="classic"]) h1 { font-size: 23px; overflow-wrap: anywhere; }
}
html[data-motion="off"] .battle-art, html[data-motion="off"] .battle-energy i, html[data-motion="off"] .button::after { animation: none !important; }
html[data-paused="true"] .battle-art, html[data-paused="true"] .battle-energy i, html[data-paused="true"] .button::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) { .battle-art,.battle-energy i,.button::after { animation: none !important; } }
