/* JakSky v219: targeted corrections for verified index.html components. */
:root {
  --jak219-cream: #f2e6d9;
  --jak219-cream-hi: #fff5e9;
  --jak219-mocha: #5d4b41;
  --jak219-mocha-deep: #352a24;
  --jak219-muted: #736057;
  --jak219-accent: #d1ac8e;
}

/* Adult confirmation: the panel is marked via actual .ageEnter/.ageWarn/.ageExit elements. */
html body .jak219-age-panel {
  background: linear-gradient(170deg,#685449 0%,#514036 56%,#3c2e28 100%) !important;
  border: 1px solid rgba(250,229,207,.57) !important;
  color: var(--jak219-cream-hi) !important;
  -webkit-text-fill-color: var(--jak219-cream-hi) !important;
  box-shadow: 0 22px 52px rgba(26,17,12,.38), inset 0 1px rgba(255,247,234,.13) !important;
}
html body .jak219-age-backdrop {
  background: rgba(27,19,15,.79) !important;
}
html body .jak219-age-panel :is(h1,h2,h3,p,small,strong) {
  color: var(--jak219-cream-hi) !important;
  -webkit-text-fill-color: var(--jak219-cream-hi) !important;
  text-shadow: none !important;
}
html body .jak219-age-panel .ageWarn {
  background: rgba(255,241,224,.10) !important;
  border: 1px solid rgba(254,234,209,.35) !important;
  color: var(--jak219-cream-hi) !important;
  -webkit-text-fill-color: var(--jak219-cream-hi) !important;
}
html body .jak219-age-panel .ageIcon {
  color: var(--jak219-cream-hi) !important;
  -webkit-text-fill-color: var(--jak219-cream-hi) !important;
  filter: sepia(1) saturate(.2) !important;
}
html body .jak219-age-panel .ageImage {
  border-color: var(--jak219-accent) !important;
  box-shadow: 0 0 0 3px rgba(230,205,179,.20) !important;
}
html body .jak219-age-panel button.ageEnter {
  background: linear-gradient(180deg,#f5e8d9,#ddc7b2) !important;
  color: var(--jak219-mocha-deep) !important;
  -webkit-text-fill-color: var(--jak219-mocha-deep) !important;
  border: 1px solid #f9ecde !important;
  box-shadow: inset 0 1px rgba(255,255,255,.60), 0 5px 12px rgba(24,15,10,.22) !important;
}
html body .jak219-age-panel button.ageExit {
  background: rgba(255,241,224,.08) !important;
  color: var(--jak219-cream-hi) !important;
  -webkit-text-fill-color: var(--jak219-cream-hi) !important;
  border: 1px solid rgba(250,229,207,.40) !important;
  box-shadow: none !important;
}

/* Existing video modal: preserve the cream card and mocha action buttons. */
html body .resumePlaybackActions .jak219-resume-continue {
  background: linear-gradient(155deg,#806352,#5d483d) !important;
  color: #fff5e9 !important;
  -webkit-text-fill-color: #fff5e9 !important;
  border-color: #9e7e66 !important;
  box-shadow: none !important;
}
html body .jak219-fullscreen-control {
  background: #5d4b41 !important;
  border: 1px solid #bb9c84 !important;
  color: #fff3e5 !important;
  -webkit-text-fill-color: #fff3e5 !important;
  box-shadow: 0 2px 6px rgba(28,20,16,.15) !important;
}
html body .jak219-fullscreen-control :is(svg,i) {
  stroke: currentColor !important;
  color: currentColor !important;
}

/* Comment title and its chat icon are identified by the real dynamic header. */
html body .jak219-comment-title {
  color: #3b2d27 !important;
  -webkit-text-fill-color: #3b2d27 !important;
  text-shadow: none !important;
}
html body .jak219-comment-subtitle {
  color: #736057 !important;
  -webkit-text-fill-color: #736057 !important;
}
html body .jak219-comment-icon {
  background: #6b5447 !important;
  border-color: #9d806b !important;
  color: #fff3e5 !important;
  -webkit-text-fill-color: #fff3e5 !important;
  filter: none !important;
  box-shadow: none !important;
}
html body .jak219-comment-icon :is(svg,i) {
  color: #fff3e5 !important;
  stroke: currentColor !important;
  filter: none !important;
}
html body .jak219-rating-label {
  color: #3b2d27 !important;
  -webkit-text-fill-color: #3b2d27 !important;
  text-shadow: none !important;
}
html body :is(.jak219-age-panel button,.jak219-resume-continue,.jak219-fullscreen-control):focus-visible {
  outline: 2px solid #f6d7b4 !important;
  outline-offset: 3px !important;
}
@media (prefers-reduced-motion: reduce) {
  html body :is(.jak219-age-panel button,.jak219-resume-continue,.jak219-fullscreen-control) {
    transition: none !important;
  }
}
