/* BOZOKO Brighter Arcade v4 — additive presentation theme.
   Palette follows the approved game illustrations: deep navy, ultraviolet, turquoise and cyan.
   Intentional exclusions: puzzle tile values, scoring colours, account/error/disabled states. */
:root {
  --bzv4-night: #090e26;
  --bzv4-panel: #101b38;
  --bzv4-raised: #142448;
  --bzv4-turquoise: #36e5dc;
  --bzv4-cyan: #49ceff;
  --bzv4-violet: #865dff;
  --bzv4-gold: #f9c84a;
  --bzv4-white: #f7fbff;
  --bzv4-copy: #c8d8ed;
  --bzv4-border: #58cbd867;
}
html[data-bozoko-theme="ultraviolet"] { color-scheme: dark; }
html[data-bozoko-theme="ultraviolet"] body {
  color: var(--bzv4-white);
  background:
    radial-gradient(ellipse at 92% 5%, #5b2db536 0, transparent 37%),
    radial-gradient(ellipse at 8% 36%, #00c4de1e 0, transparent 34%),
    radial-gradient(ellipse at 90% 88%, #1d58c523 0, transparent 43%),
    linear-gradient(165deg, #091126, #0b1030 55%, #080e25) !important;
}
html[data-bozoko-theme="ultraviolet"] :is(.site-header,.topbar,.masthead) {
  background: #0a122df2 !important;
  border-bottom-color: #31d8db5c !important;
  box-shadow: 0 1px 0 #9774f52d, 0 10px 35px #05091620 !important;
}
html[data-bozoko-theme="ultraviolet"] :is(.site-header,.topbar,.masthead) :is(a,button):focus-visible,
html[data-bozoko-theme="ultraviolet"] :is(.button,.btn,.score-row,.die,.game-card,.bi-card):focus-visible {
  outline: 3px solid #87fff5 !important;
  outline-offset: 3px;
}
html[data-bozoko-theme="ultraviolet"] :is(.main-nav a[aria-current="page"],.game-nav a[aria-current="page"],.level-button[aria-pressed="true"],.filter[aria-pressed="true"]) {
  border-radius: 10px;
  background: linear-gradient(120deg, #61f3e9, #17c8d0) !important;
  color: #061b30 !important;
  box-shadow: 0 5px 18px #06cfe030 !important;
}
html[data-bozoko-theme="ultraviolet"] :is(.eyebrow,.kicker,.bi-eyebrow,.hr-kicker,.game-card-kicker) {
  color: #74f4ed !important;
  letter-spacing: .095em;
}
html[data-bozoko-theme="ultraviolet"] :is(.hero,.hr-hero,.tournament-intro,.six-banner,.game-arena,.play-panel,.game-stage-shell) {
  border-color: #48c8df68 !important;
  box-shadow: inset 0 1px #b7ffff12, 0 14px 32px #04091c45 !important;
}
html[data-bozoko-theme="ultraviolet"] :is(.hero,.hr-hero,.tournament-intro,.six-banner) {
  background: linear-gradient(118deg, #112045, #101b40 53%, #103753) !important;
}
html[data-bozoko-theme="ultraviolet"] :is(.game-card,.bi-card,.hr-feature-card,.hr-pick) {
  background: #101c3a !important;
  border: 1px solid #8a66f8a3 !important;
  border-radius: 17px !important;
  box-shadow: 0 7px 24px #0408214d !important;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
html[data-bozoko-theme="ultraviolet"] :is(.game-card,.bi-card,.hr-feature-card,.hr-pick):hover {
  border-color: #54e5e0 !important;
  box-shadow: 0 10px 28px #19d4df1a, 0 0 0 1px #5bcbff36 !important;
  transform: translateY(-2px);
}
html[data-bozoko-theme="ultraviolet"] :is(.game-card,.bi-card) :is(h2,h3,.bi-title) {color:#fff!important;}
html[data-bozoko-theme="ultraviolet"] :is(.game-card,.bi-card) :is(p,.bi-description,.bi-desc) {color:var(--bzv4-copy)!important;}
html[data-bozoko-theme="ultraviolet"] :is(.button-gold,.button-primary,.button.gold,.button.primary,.btn.primary,.bi-play,.hr-primary-cta,.hr-feature .button,.game-card .button):not(:disabled) {
  background: linear-gradient(105deg, #5ceee8, #17c6d5) !important;
  color: #061b2a !important;
  border-color: #8cfff2 !important;
  text-shadow: none !important;
  box-shadow: 0 4px 0 #096b8e5c, 0 0 16px #1ccdda32 !important;
  font-weight: 800;
}
html[data-bozoko-theme="ultraviolet"] :is(.button-gold,.button-primary,.button.gold,.button.primary,.btn.primary,.bi-play,.hr-primary-cta,.hr-feature .button,.game-card .button):not(:disabled):hover {
  background: linear-gradient(108deg, #90fff1, #35d9f0) !important;
}
html[data-bozoko-theme="ultraviolet"] :is(.button-outline,.button-quiet,.button.quiet,.btn.secondary):not(:disabled) {
  border-color: #67cadb91 !important;
  background: #14234ab8 !important;
  color: #dffaff !important;
}
html[data-bozoko-theme="ultraviolet"] :is(.player-bar,.setup-card,.result-card,.information-page,.settings-panel,.bests-panel,.space-profile,.bp-panel,.tournament-board,.round-card,.info-card,.score-section,.score-columns,.panel,.stage,.results,.play-frame,.dialog-inner) {
  border-color: #5dc3e363 !important;
  box-shadow: inset 0 1px #ffffff09, 0 9px 25px #04071a2e;
}
html[data-bozoko-theme="ultraviolet"] :is(.player-bar,.setup-card,.information-page,.settings-panel,.bests-panel,.space-profile,.bp-panel,.tournament-board,.info-card,.panel,.stage,.dialog-inner) {
  background-color: #121e3e;
}
html[data-bozoko-theme="ultraviolet"] :is(.run-stats,.scorecard-head,.score-strip,.roundbar,.grand-total,.match-toolbar) {
  border-color: #44d2db59 !important;
}
html[data-bozoko-theme="ultraviolet"] :is(.tag,.badge,.pill,.chip,.bi-art-tag) {border-color:#62dce07d!important;}
html[data-bozoko-theme="ultraviolet"] :is(.page-heading h1,.section-heading h2,.run-title h1,.game-card h3,.bi-card h3) {
  text-shadow: none;
  letter-spacing: -.028em;
}
html[data-bozoko-theme="ultraviolet"] :is(.site-footer,.footer,.site-footer a) {border-color:#48bcd349;}
/* High Five: star map glow around the board, without covering its dice or score rows. */
html[data-bz-page="roll-riot"] body {
  background:
    radial-gradient(circle at 7% 13%,#6b46ba42 0,transparent 29%),
    radial-gradient(circle at 91% 34%,#10bbda30 0,transparent 31%),
    radial-gradient(circle at 57% 86%,#5145c637 0,transparent 39%),
    radial-gradient(circle at 22% 38%,#a9ecff57 0 1px,transparent 1.6px),
    radial-gradient(circle at 73% 66%,#c9bbff53 0 1px,transparent 1.6px),
    linear-gradient(160deg,#080e29,#0c1734 58%,#090b23) !important;
  background-size: auto,auto,auto, 93px 111px, 149px 127px, auto;
}
html[data-bz-page="roll-riot"] .play-panel {
  position:relative;
  isolation:isolate;
  background:linear-gradient(155deg,#112247e8,#101b39f5 52%,#131942f5)!important;
  border:1px solid #56dce17d!important;
}
html[data-bz-page="roll-riot"] .play-panel::before {
  content:"";position:absolute;inset:0;pointer-events:none;z-index:-1;
  background: radial-gradient(ellipse at 93% 5%,#17d6e411,transparent 47%),
              radial-gradient(ellipse at 7% 100%,#9b5afa18,transparent 47%);
}
html[data-bz-page="roll-riot"] :is(.dice-tray,.score-section) {border-color:#56bbda72;}
html[data-bz-page="roll-riot"] .die.held {outline:2px solid #52f7e5;outline-offset:1px;box-shadow:0 0 18px #22e3d74f;}
html[data-bz-page="roll-riot"] .die:not(:disabled):hover .die-face{box-shadow:0 0 17px #42dced4b;}
html[data-bz-page="roll-riot"] #selectionBar {background:linear-gradient(110deg,#101c3bf5,#16295df9)!important;border:1px solid #67e3e69e!important;box-shadow:0 -8px 33px #060f2b9e,0 0 21px #23dbdb15!important;}
/* On phones/tablets: dice and original Roll/Bank buttons share one bottom dock.
   The game module continues to own every die and button event handler. */
html.hf-dice-docked[data-bz-page="roll-riot"] .dice-area {display:none!important;}
html.hf-dice-docked[data-bz-page="roll-riot"] #selectionBar {
  display:flex!important;flex-direction:column!important;align-items:stretch!important;
  gap:7px!important;max-height:min(47dvh,290px);padding:9px 12px!important;
}
html.hf-dice-docked[data-bz-page="roll-riot"] #selectionBar > div:first-child:not(.dice-tray) {display:none!important;}
html.hf-dice-docked[data-bz-page="roll-riot"] #selectionBar > .dice-tray {
  display:flex!important;flex-direction:column;align-items:stretch;
  width:100%;padding:3px 2px 0!important;margin:0!important;
  border:0!important;background:transparent!important;box-shadow:none!important;
}
html.hf-dice-docked[data-bz-page="roll-riot"] #selectionBar .dice {
  display:flex!important;justify-content:center;align-items:center;
  flex-wrap:nowrap!important;gap:clamp(4px,1.3vw,14px)!important;
  width:100%;margin:0 auto;
}
html.hf-dice-docked[data-bz-page="roll-riot"] #selectionBar .die {
  flex:1 1 0!important;max-width:62px!important;min-width:0!important;
  width:auto!important;height:clamp(48px,8vh,62px)!important;
  padding:2px!important;
}
html.hf-dice-docked[data-bz-page="roll-riot"] #selectionBar .die-face {
  width:min(100%,54px)!important;height:clamp(42px,7.5vh,54px)!important;
  padding:clamp(5px,1.6vw,9px)!important;margin:auto;
}
html.hf-dice-docked[data-bz-page="roll-riot"] #selectionBar .die-caption {font-size:9px!important;white-space:nowrap;}
html.hf-dice-docked[data-bz-page="roll-riot"] #selectionBar #holdNote {
  margin:0!important;padding:0!important;min-height:0!important;
  text-align:center;font-size:11px!important;line-height:1.35;color:#d6eff9!important;
}
html.hf-dice-docked[data-bz-page="roll-riot"] #scoreActions {
  display:grid!important;grid-template-columns:1fr 1fr;gap:8px!important;
  width:100%!important;flex:none!important;
}
html.hf-dice-docked[data-bz-page="roll-riot"] #scoreActions #rollBtn {
  background:linear-gradient(100deg,#5df7e8,#19bdf0)!important;
  border-color:#a1fff1!important;color:#061a34!important;
}
html.hf-dice-docked[data-bz-page="roll-riot"] #scoreActions :is(#rollBtn,#bankBtn) {min-height:48px!important;font-size:clamp(12px,3.6vw,16px)!important;}
@media (max-width:440px) {
  html.hf-dice-docked[data-bz-page="roll-riot"] #selectionBar {padding:7px 8px!important;gap:5px!important;}
  html.hf-dice-docked[data-bz-page="roll-riot"] #selectionBar .die {height:50px!important;}
  html.hf-dice-docked[data-bz-page="roll-riot"] #selectionBar .die-face {height:44px!important;max-width:44px!important;}
  html.hf-dice-docked[data-bz-page="roll-riot"] #holdNote {font-size:10px!important;}
}
@media (min-width:600px) and (max-height:500px) {
  html.hf-dice-docked[data-bz-page="roll-riot"] #selectionBar {flex-direction:row!important;align-items:center!important;max-height:125px;}
  html.hf-dice-docked[data-bz-page="roll-riot"] #selectionBar > .dice-tray {width:56%!important;}
  html.hf-dice-docked[data-bz-page="roll-riot"] #selectionBar #scoreActions {width:44%!important;grid-template-columns:1fr!important;}
  html.hf-dice-docked[data-bz-page="roll-riot"] #selectionBar .die {height:45px!important;}
  html.hf-dice-docked[data-bz-page="roll-riot"] #selectionBar .die-face {height:41px!important;max-width:41px!important;}
}
/* Celebration overlay: brief, pointer-transparent and silent. */
.bzv4-burst {position:fixed;inset:0;z-index:2147483000;overflow:hidden;pointer-events:none!important;contain:layout style;}
.bzv4-burst-piece {position:absolute;left:var(--bzx);top:var(--bzy);width:var(--bzw);height:var(--bzh);border-radius:2px;background:var(--bzc);box-shadow:0 0 7px var(--bzc);opacity:0;animation:bzv4-fly var(--bzd) cubic-bezier(.16,.48,.4,1) both;transform-origin:center;}
@keyframes bzv4-fly {0%{opacity:0;transform:translate(0,0) rotate(0deg) scale(.65)}14%{opacity:.9}64%{opacity:.95}100%{opacity:0;transform:translate(var(--bzdx),var(--bzdy)) rotate(var(--bzrot)) scale(.8)}}
@media(prefers-reduced-motion:reduce){.bzv4-burst{display:none!important}html[data-bozoko-theme="ultraviolet"] :is(.bi-card,.game-card){transition:none!important;transform:none!important}}
/* Reserve space for the measured bottom dock on compact/tabletop layouts, so
   even the last score choice remains visible above it while scrolling. */
html.hf-dice-docked:is(.bz-phone,.hf-tabletop)[data-bz-page="roll-riot"] .score-columns {
  max-height:max(90px,calc(100dvh - var(--hf-dock-height,145px) - 170px))!important;
  overflow-y:auto!important;overscroll-behavior:contain;
}
@media(min-width:600px) and (max-height:500px){
  html.hf-dice-docked[data-bz-page="roll-riot"] #selectionBar {
    flex-direction:column!important;max-height:160px;
  }
  html.hf-dice-docked[data-bz-page="roll-riot"] #selectionBar > .dice-tray {
    width:100%!important;
  }
  html.hf-dice-docked[data-bz-page="roll-riot"] #selectionBar #scoreActions {
    width:100%!important;grid-template-columns:1fr 1fr!important;
  }
}
/* Shared arcade identity on standalone games: same turquoise B, navigational
   accents and clear panel hierarchy as the updated Home/Games catalogue. */
html[data-bozoko-theme="ultraviolet"] .brand-mark {
  color:#06182e!important;background:linear-gradient(145deg,#8dfff0,#27d4f3)!important;
  box-shadow:0 3px 0 #0f719e,0 0 13px #38ddf054!important;
}
html[data-bozoko-theme="ultraviolet"] :is(.game-nav,.stage-head,.scorecard-head,.play-panel,.topbar-inner) {border-color:#56d0e06e!important;}
html[data-bozoko-theme="ultraviolet"] :is(.game-nav a,.header-help,.text-button,.back-link):hover {color:#7ff8f1!important;}
html[data-bozoko-theme="ultraviolet"] :is(.grand-total,.score-strip,.scorebar,.hud,.run-stats) {
  background-image:linear-gradient(110deg,#2e51aa12,#00e6dd08) !important;
}
html[data-bozoko-theme="ultraviolet"] :is(.score-row.selected,.round-card.current,.level-button[aria-pressed="true"]) {
  border-color:#77fff087!important;
}
