/* JakSky Mocha Polish v218 | layered visual fixes; no global color rewrites. */
:root {
  --jak218-taupe: #ad9586;
  --jak218-mocha: #5d4c44;
  --jak218-mocha-deep: #46372f;
  --jak218-cream: #f0e6db;
  --jak218-cream-soft: #fbf2e8;
  --jak218-amber: #d2af91;
  --jak218-ink: #322922;
  --jak218-stroke: rgba(248,236,221,.55);
}

/* Floating support: recolor the actual button, not a full-screen overlay. */
html.jak218-theme-ready .jak218-help {
  color: var(--jak218-cream-soft) !important;
  -webkit-text-fill-color: var(--jak218-cream-soft) !important;
  background: linear-gradient(145deg,rgba(103,84,73,.98),rgba(82,66,57,.98)) !important;
  border: 1px solid rgba(240,230,219,.5) !important;
  box-shadow: 0 6px 20px rgba(45,31,24,.2), inset 0 1px rgba(255,245,234,.10) !important;
}
html.jak218-theme-ready .jak218-help:where(:hover,:focus-visible) {
  background: linear-gradient(145deg,#775f51,#5b463b) !important;
  border-color: var(--jak218-cream) !important;
}
html.jak218-theme-ready .jak218-help .jak218-help-emoji {
  display: inline-grid !important;
  place-items: center !important;
  vertical-align: middle;
  inline-size: 34px !important;
  block-size: 34px !important;
  min-inline-size: 34px;
  padding: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  background: #b69a84 !important;
  border: 1px solid rgba(255,244,234,.25) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  filter: none !important;
}
html.jak218-theme-ready .jak218-help .jak218-help-emoji::before {
  content: '';
  display: block;
  inline-size: 19px;
  block-size: 19px;
  background: var(--jak218-cream-soft);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3C6.48 3 2 6.74 2 11.35c0 2.35 1.16 4.46 3.02 5.99L4 21l4.6-2.13c1.07.38 2.21.58 3.4.58 5.52 0 10-3.73 10-8.1S17.52 3 12 3Zm-5 9.65a1.45 1.45 0 1 1 0-2.9 1.45 1.45 0 0 1 0 2.9Zm5 0a1.45 1.45 0 1 1 0-2.9 1.45 1.45 0 0 1 0 2.9Zm5 0a1.45 1.45 0 1 1 0-2.9 1.45 1.45 0 0 1 0 2.9Z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3C6.48 3 2 6.74 2 11.35c0 2.35 1.16 4.46 3.02 5.99L4 21l4.6-2.13c1.07.38 2.21.58 3.4.58 5.52 0 10-3.73 10-8.1S17.52 3 12 3Zm-5 9.65a1.45 1.45 0 1 1 0-2.9 1.45 1.45 0 0 1 0 2.9Zm5 0a1.45 1.45 0 1 1 0-2.9 1.45 1.45 0 0 1 0 2.9Zm5 0a1.45 1.45 0 1 1 0-2.9 1.45 1.45 0 0 1 0 2.9Z'/%3E%3C/svg%3E") center/contain no-repeat;
}
html.jak218-theme-ready .jak218-help .jak218-help-vector {
  background: #b69a84 !important;
  color: var(--jak218-cream-soft) !important;
  -webkit-text-fill-color: var(--jak218-cream-soft) !important;
  filter: sepia(.85) saturate(.50) hue-rotate(340deg) !important;
  border-radius: 9px;
}
html.jak218-theme-ready .jak218-help .jak218-help-vector :is(svg,i) {
  color: var(--jak218-cream-soft) !important;
  stroke: currentColor !important;
}

/* Only the flame beside the title, not thumbnail imagery. */
html.jak218-theme-ready .jak218-latest-icon {
  color: #bd9476 !important;
  -webkit-text-fill-color: #bd9476 !important;
  border-color: currentColor !important;
  filter: none !important;
}
html.jak218-theme-ready :is(svg.jak218-latest-icon,.jak218-latest-icon svg) {
  color: #bd9476 !important;
  stroke: currentColor !important;
}
html.jak218-theme-ready .jak218-latest-emoji {
  filter: sepia(1) saturate(.60) hue-rotate(345deg) !important;
}

/* Navigation: remove accidental one-off raised tile on an inactive Profile tab. */
html.jak218-theme-ready .jak218-profile:not(.jak218-profile-active) {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
html.jak218-theme-ready .jak218-profile.jak218-profile-active {
  color: var(--jak218-cream-soft) !important;
  background: linear-gradient(180deg,rgba(230,207,187,.20),rgba(92,75,67,.34)) !important;
  border-color: rgba(240,230,219,.48) !important;
  box-shadow: inset 0 1px 0 rgba(255,245,235,.20) !important;
}

/* Adult-content confirmation: scoped ONLY to explicitly identified 18+ dialogs. */
html.jak218-theme-ready .jak218-age-panel {
  color: var(--jak218-cream-soft) !important;
  background: linear-gradient(170deg,#69564b 0%,#4e4038 58%,#3f332d 100%) !important;
  border-color: rgba(245,229,210,.44) !important;
  box-shadow: 0 22px 55px rgba(27,18,14,.38),inset 0 1px 0 rgba(255,244,232,.14) !important;
}
html.jak218-theme-ready .jak218-age-panel :is(h1,h2,h3,p,small,label,strong) {
  color: inherit;
}
html.jak218-theme-ready .jak218-age-panel .jak218-age-cta {
  background: linear-gradient(180deg,#f4e8da,#e2cbb8) !important;
  color: var(--jak218-ink) !important;
  -webkit-text-fill-color: var(--jak218-ink) !important;
  border: 1px solid #f6ebdd !important;
  box-shadow: inset 0 1px 0 #fffaf3,0 5px 12px rgba(34,21,16,.18) !important;
}
html.jak218-theme-ready .jak218-age-panel .jak218-age-cta:where(:focus-visible,:hover) {
  background: #fff1e4 !important;
}
html.jak218-theme-ready .jak218-age-panel .jak218-age-secondary {
  background: rgba(255,244,231,.07) !important;
  color: var(--jak218-cream-soft) !important;
  -webkit-text-fill-color: var(--jak218-cream-soft) !important;
  border: 1px solid rgba(255,241,224,.3) !important;
}
html.jak218-theme-ready :is(.jak218-help,.jak218-profile,.jak218-age-panel button):focus-visible {
  outline: 2px solid #f3d9bd !important;
  outline-offset: 3px;
}
@media (prefers-reduced-motion:reduce) {
  html.jak218-theme-ready :is(.jak218-help,.jak218-profile,.jak218-age-panel) { transition: none !important; }
}
