/* ArtisanNest user pages: original DOM and actions stay in control.
   All wood, foil and foliage effects here are CSS/SVG, never page screenshots. */

#s-home,
#s-reg,
#s-reset,
body.an-privacy-page {
  --an-emerald-950: #06170d;
  --an-emerald-900: #092313;
  --an-emerald-800: #10391b;
  --an-emerald-700: #174a21;
  --an-leaf: #7bc943;
  --an-leaf-bright: #9be15b;
  --an-cream: #fff3d4;
  --an-cream-muted: #e6d6b2;
  --an-gold: #e5bc63;
  --an-gold-light: #f5d992;
  --an-wood-dark: #311709;
  --an-wood-mid: #75401d;
  --an-wood-light: #a6662d;
  --an-wood-grain:
    repeating-linear-gradient(176deg, transparent 0 8px, rgba(255, 226, 170, .10) 9px, transparent 11px 18px),
    repeating-linear-gradient(2deg, transparent 0 18px, rgba(31, 11, 4, .27) 19px, transparent 22px 34px);
  --an-wood:
    linear-gradient(176deg, rgba(255, 220, 148, .24), transparent 21%, transparent 78%, rgba(25, 9, 3, .40)),
    var(--an-wood-grain),
    linear-gradient(106deg, #452011 0%, #8c4e25 22%, #603016 46%, #a5622d 70%, #462011 100%);
  --an-wood-edge:
    inset 0 2px 2px rgba(255, 238, 189, .7),
    inset 0 -4px 6px rgba(26, 9, 3, .56),
    0 5px 13px rgba(0, 0, 0, .34);
  --an-logo-lockup: url("/assets/artisannest-user-pages/artisannest-logo.svg?v=1");
  --an-brand-mark: var(--an-logo-lockup);
}

/* HOME — preserve the live feed, wallet values, module order, and all handlers. */
#s-home.screen {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  height: 100dvh !important;
  min-height: 0 !important;
  overflow: hidden !important;
  color: var(--an-cream) !important;
  background:
    radial-gradient(ellipse at 50% -9%, rgba(91, 147, 51, .34), transparent 46%),
    radial-gradient(ellipse at 6% 62%, rgba(83, 131, 41, .14), transparent 30%),
    radial-gradient(ellipse at 96% 75%, rgba(81, 131, 40, .14), transparent 31%),
    linear-gradient(180deg, #0a2711 0%, #06190d 62%, #092212 100%) !important;
  font-family: Georgia, "Times New Roman", serif !important;
}

#s-home.screen *,
#s-home.screen *::before,
#s-home.screen *::after {
  box-sizing: border-box;
}

#s-home .announce {
  color: #f9e7b9 !important;
  background:
    linear-gradient(90deg, rgba(11, 39, 16, .96), rgba(28, 76, 24, .9), rgba(11, 39, 16, .96)) !important;
  border-bottom: 1px solid rgba(229, 188, 99, .42);
}

#s-home .hdr {
  position: relative;
  z-index: 3;
  min-height: 72px;
  padding: 9px 13px !important;
  border-bottom: 1px solid rgba(235, 197, 112, .74);
  background:
    radial-gradient(ellipse at 50% 0, rgba(101, 148, 52, .24), transparent 65%),
    linear-gradient(180deg, #0b2f13, #06190c) !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, .3);
}

#s-home .hdr-brand-wrap {
  min-width: 0;
}

#s-home .hdr-brand-wrap::before {
  display: block;
  width: 25px;
  height: 24px;
  margin-bottom: 1px;
  background: var(--an-brand-mark) center / contain no-repeat;
  content: "";
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .48));
}

#s-home .hdr-brand-title {
  color: var(--an-cream) !important;
  font-size: clamp(15px, 4.6vw, 19px) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-weight: 700 !important;
  letter-spacing: -.35px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, .6);
}

#s-home .hdr-brand-title .artisan { color: #fff2d1 !important; }
#s-home .hdr-brand-title .nest { color: var(--an-leaf-bright) !important; }

#s-home .back-btn,
#s-home .hdr-btn {
  min-width: 42px;
  min-height: 42px;
  border: 1px solid rgba(246, 211, 133, .72) !important;
  border-radius: 15px !important;
  color: var(--an-cream) !important;
  background: var(--an-wood) !important;
  box-shadow: var(--an-wood-edge) !important;
}

#s-home .hdr-btn:focus-visible,
#s-home .back-btn:focus-visible,
#s-home .btn-row button:focus-visible,
#s-home .bni:focus-visible,
#s-home .widget:focus-visible,
#s-home .an-home-access-card:focus-visible {
  outline: 3px solid var(--an-gold-light) !important;
  outline-offset: 3px;
}

#s-home .badge {
  border: 1px solid rgba(255, 233, 173, .9);
  color: #fff6e4 !important;
  background: #d73b27 !important;
}

#s-home .currency-switch {
  min-height: 47px;
  border: 1.5px solid var(--an-gold) !important;
  border-radius: 23px !important;
  color: #fff0cc !important;
  background: var(--an-wood) !important;
  box-shadow: var(--an-wood-edge) !important;
}

#s-home .currency-rate {
  color: #fff0cc !important;
}

#s-home #home-ticker-strip {
  border-top: 1px solid rgba(242, 205, 120, .35);
  border-bottom: 1px solid rgba(242, 205, 120, .35);
  color: #f4dcaa;
  background: rgba(5, 23, 11, .86);
}

#s-home #home-scroll {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 1120px;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  margin-inline: auto !important;
  padding: 13px 12px 18px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(229, 188, 99, .55) rgba(7, 28, 13, .55);
  background:
    radial-gradient(ellipse at 15% 16%, rgba(120, 168, 61, .10), transparent 34%),
    radial-gradient(ellipse at 91% 44%, rgba(120, 168, 61, .09), transparent 33%);
}

#s-home .home-top {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 13px !important;
  border: 1px solid rgba(229, 188, 99, .88) !important;
  border-radius: 23px !important;
  color: var(--an-cream) !important;
  background:
    radial-gradient(ellipse at 86% 8%, rgba(97, 152, 48, .20), transparent 40%),
    linear-gradient(135deg, rgba(18, 66, 27, .98), rgba(5, 28, 13, .98)) !important;
  box-shadow: inset 0 0 0 2px rgba(255, 229, 155, .12), 0 7px 18px rgba(0, 0, 0, .28) !important;
}

#s-home .bal-card {
  border: 1px solid rgba(231, 192, 111, .78) !important;
  border-radius: 19px !important;
  color: var(--an-cream) !important;
  background:
    linear-gradient(150deg, rgba(35, 94, 37, .98), rgba(7, 37, 17, .98)) !important;
  box-shadow: inset 0 1px rgba(255, 237, 190, .24), 0 5px 12px rgba(0, 0, 0, .25) !important;
}

#s-home .bal-label,
#s-home .bal-card .bal-label {
  color: #f6deab !important;
}

#s-home .bal-row {
  border-color: rgba(244, 214, 151, .22) !important;
}

#s-home .bal-card button,
#s-home .home-top .btn-row button,
#s-home .dw-btn,
#s-home .btn-gw,
#s-home .w-btn {
  min-height: 43px !important;
  padding: 8px 12px !important;
  border: 1px solid rgba(247, 213, 136, .82) !important;
  border-radius: 17px !important;
  color: #fff2d0 !important;
  background: var(--an-wood) !important;
  box-shadow: var(--an-wood-edge) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-weight: 700;
}

#s-home .home-top .btn-row button:active,
#s-home .dw-btn:active,
#s-home .btn-gw:active,
#s-home .w-btn:active {
  transform: translateY(1px);
}

#s-home .home-top .btn-row button {
  position: relative !important;
  isolation: isolate;
  overflow: hidden;
}

#s-home .home-top .btn-row button::before {
  position: absolute;
  z-index: -1;
  inset: 1px;
  border-radius: inherit;
  background: var(--an-wood);
  box-shadow: var(--an-wood-edge);
  content: "";
  pointer-events: none;
}

#s-home .home-top > button {
  position: relative !important;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(247, 213, 136, .86) !important;
  border-radius: 18px !important;
  color: #fff2d0 !important;
  box-shadow: var(--an-wood-edge) !important;
}

#s-home .home-top > button::before {
  position: absolute;
  z-index: -1;
  inset: 1px;
  border-radius: inherit;
  background: var(--an-wood);
  box-shadow: var(--an-wood-edge);
  content: "";
  pointer-events: none;
}

#s-home .dev-widget,
#s-home #ci-home-card,
#s-home #home-gw-card,
#s-home .an-home-access-card,
#s-home .widget,
#s-home #home-news,
#s-home #home-news-video-wrap {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(236, 197, 113, .82) !important;
  border-radius: 20px !important;
  color: var(--an-cream) !important;
  background:
    linear-gradient(145deg, rgba(27, 78, 29, .97), rgba(7, 31, 14, .98)) !important;
  box-shadow: inset 0 1px rgba(255, 237, 188, .18), 0 6px 15px rgba(0, 0, 0, .3) !important;
}

#s-home .dev-widget::before,
#s-home #ci-home-card::before,
#s-home #home-gw-card::before,
#s-home .an-home-access-card::before,
#s-home .widget::before,
#s-home #home-news::before,
#s-home #home-news-video-wrap::before {
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(255, 221, 148, .22);
  border-radius: 15px;
  content: "";
  pointer-events: none;
}

#s-home .dev-widget,
#s-home #ci-home-card,
#s-home #home-gw-card,
#s-home .widget,
#s-home .an-home-access-card {
  padding: 13px !important;
}

#s-home .dw-title,
#s-home .gw-title,
#s-home .an-home-access-title,
#s-home .widget h2,
#s-home .widget h3 {
  color: #fff0ca !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-weight: 700 !important;
}

#s-home .dw-amt,
#s-home #home-gw-bal,
#s-home .gw-bal,
#s-home #h-pend,
#s-home #h-usdt,
#s-home #h-inr {
  color: #f7d85f !important;
  text-shadow: 0 2px 7px rgba(0, 0, 0, .38);
}

#s-home .dw-sub,
#s-home .gw-sub,
#s-home .an-home-access-subtitle {
  color: var(--an-cream-muted) !important;
}

#s-home .w-title {
  color: #fff1cc !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-weight: 700 !important;
}

#s-home .w-sub,
#s-home .w-meta {
  color: var(--an-cream-muted) !important;
}

#s-home .w-badge {
  border: 1px solid rgba(247, 215, 139, .66);
  color: #fff0c8 !important;
  background: rgba(24, 76, 28, .92) !important;
}

#s-home .an-home-access-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px !important;
  margin-block: 12px !important;
}

#s-home .an-home-access-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

#s-home .widget {
  min-height: 142px;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

#s-home .widget:active,
#s-home .an-home-access-card:active {
  transform: translateY(1px);
  border-color: var(--an-gold-light) !important;
}

#s-home .sec {
  display: flex !important;
  margin-block: 13px !important;
}

#s-home .sec > h2,
#s-home .sec > h3,
#s-home .sec-title {
  color: var(--an-leaf-bright) !important;
  font-family: Georgia, "Times New Roman", serif !important;
}

#s-home .home-gw-card,
#s-home .gw-card {
  border-color: rgba(235, 196, 110, .85) !important;
}

#s-home .news-video-wrap,
#s-home .news-video-wrap video,
#s-home #home-news-vid {
  width: 100%;
  max-width: 100%;
  border-radius: 15px;
}

#s-home .news-video-ctrl {
  border: 1px solid rgba(245, 210, 134, .65);
  border-radius: 50%;
  color: var(--an-cream);
  background: rgba(5, 24, 11, .82);
}

#s-home .bnav {
  position: relative !important;
  z-index: 30 !important;
  display: flex !important;
  width: 100% !important;
  max-width: 1120px;
  min-height: 70px;
  margin-inline: auto !important;
  padding: 7px 8px calc(7px + env(safe-area-inset-bottom, 0px)) !important;
  border: 1px solid rgba(246, 211, 127, .9) !important;
  border-bottom: 0 !important;
  border-radius: 21px 21px 0 0 !important;
  background: var(--an-wood) !important;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, .38), inset 0 2px rgba(255, 239, 197, .4) !important;
  backdrop-filter: blur(10px);
}

#s-home #bnav-bar {
  position: absolute !important;
  z-index: 1 !important;
  top: 0 !important;
  right: auto !important;
  bottom: auto !important;
  left: 0;
  height: 2px !important;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, #f8de91, #9ddc54, #f8de91) !important;
  box-shadow: 0 0 12px rgba(191, 230, 113, .65);
  transition: left .2s ease, width .2s ease;
  pointer-events: none;
}

#s-home .bni {
  position: relative;
  z-index: 2;
  display: flex !important;
  flex: 1 1 0 !important;
  min-width: 0;
  min-height: 48px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-inline-end: 1px solid rgba(255, 223, 157, .2);
  border-radius: 12px;
  color: rgba(255, 242, 212, .82) !important;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 12px !important;
}

#s-home .bni:last-child { border-inline-end: 0; }
#s-home .bni.active {
  color: #fff1c4 !important;
  background: rgba(13, 58, 21, .55) !important;
  box-shadow: inset 0 0 0 1px rgba(249, 218, 146, .35), 0 0 12px rgba(186, 228, 94, .18);
}
#s-home .bni .ic { font-size: 21px !important; line-height: 1.05; }

@media (max-width: 359px) {
  #s-home #home-scroll { padding-inline: 8px !important; }
  #s-home .an-home-access-grid { grid-template-columns: 1fr; }
  #s-home .bni { font-size: 10.5px !important; }
  #s-home .bnav { min-height: 65px; padding-inline: 4px !important; }
}

@media (min-width: 620px) {
  #s-home #home-scroll {
    padding: 18px 20px 22px !important;
  }
  #s-home #ci-home-card,
  #s-home #dev-widget-wrap,
  #s-home #home-gw-card {
    width: 100%;
  }
  #s-home .an-home-access-grid { gap: 14px !important; }
  #s-home .widget { min-height: 160px; }
}

@media (min-width: 900px) {
  body:has(#s-home.active) .app {
    width: min(100%, 1280px) !important;
    max-width: 1280px !important;
    margin-inline: auto !important;
  }

  #s-home.screen {
    right: 0 !important;
    left: 0 !important;
    width: min(100vw, 1280px) !important;
    max-width: 1280px !important;
    transform: none !important;
  }

  #s-home #home-scroll {
    display: grid !important;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-content: start;
    align-items: stretch;
    gap: 14px;
    padding: 20px 24px 24px !important;
  }

  #s-home #home-scroll > .home-top,
  #s-home #home-scroll > button,
  #s-home #home-scroll > .an-home-access-grid,
  #s-home #home-scroll > .sec,
  #s-home #home-scroll > #home-news,
  #s-home #home-scroll > #home-news-video-wrap {
    grid-column: 1 / -1;
    min-width: 0;
  }

  #s-home #home-scroll > #ci-home-card,
  #s-home #home-scroll > #dev-widget-wrap,
  #s-home #home-scroll > #home-gw-card {
    grid-column: span 6;
    align-self: stretch;
  }

  #s-home #home-scroll > .widget {
    grid-column: span 3;
    width: auto !important;
    min-width: 0 !important;
    min-height: 190px;
    margin: 0 !important;
  }

  #s-home #home-scroll > .widget .w-img {
    height: 190px !important;
  }

  #s-home #home-scroll > .widget .w-body {
    padding: 12px 12px 13px !important;
  }

  #s-home #home-scroll > .widget .w-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
  }

  #s-home #home-scroll > .sec .widget {
    min-height: 175px;
  }

  #s-home .bnav { border-radius: 22px 22px 0 0 !important; }
}

@media (prefers-reduced-motion: reduce) {
  #s-home .widget,
  #s-home .an-home-access-card,
  #s-home .bal-card button,
  #s-home .home-top .btn-row button {
    transition: none !important;
    animation: none !important;
  }
}

/* RESET SUPPORT — a dedicated screen with one external contact action. */
#s-reset.screen {
  position: fixed !important;
  z-index: 1000 !important;
  inset: 0 !important;
  display: none !important;
  width: 100% !important;
  max-width: none !important;
  height: 100dvh !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior-y: contain;
  color: var(--an-cream) !important;
  background:
    radial-gradient(ellipse at 50% 4%, rgba(95, 150, 50, .35), transparent 42%),
    linear-gradient(145deg, #092512 0%, #06170d 54%, #103319 100%) !important;
  font-family: Georgia, "Times New Roman", serif !important;
}

#s-reset.screen.active { display: flex !important; }

#s-reset .an-reset-shell {
  position: relative;
  display: flex;
  width: min(100%, 640px);
  min-height: 100%;
  flex-direction: column;
  align-items: stretch;
  margin-inline: auto;
  padding: max(16px, env(safe-area-inset-top, 0px)) 18px calc(24px + env(safe-area-inset-bottom, 0px));
}

#s-reset .an-reset-back {
  display: inline-flex;
  width: fit-content;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(241, 205, 127, .78);
  border-radius: 18px;
  color: var(--an-cream);
  background: var(--an-wood);
  box-shadow: var(--an-wood-edge);
  font: 700 15px Georgia, "Times New Roman", serif;
  cursor: pointer;
}

#s-reset .an-reset-brand {
  display: grid;
  justify-items: center;
  gap: 3px;
  margin: clamp(44px, 15vh, 116px) 0 29px;
  text-align: center;
}

#s-reset .an-reset-leaf {
  width: 64px;
  height: 64px;
  color: var(--an-leaf-bright);
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, .45));
}

#s-reset .an-reset-wordmark {
  color: #fff2d2;
  font-size: clamp(34px, 9vw, 52px);
  font-weight: 700;
  letter-spacing: -1.2px;
  line-height: 1;
  text-shadow: 0 2px 0 #15260d, 0 5px 15px rgba(0, 0, 0, .6);
}

#s-reset .an-reset-wordmark span { color: var(--an-leaf-bright); }
#s-reset .an-reset-wordmark .brand-artisan { color: #fff2d2; }

#s-reset .an-reset-subbrand {
  margin: 8px 0 0;
  color: #f1d9a4;
  font-size: 17px;
  font-weight: 600;
}

#s-reset .an-reset-card {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 13px;
  padding: clamp(20px, 6vw, 32px);
  border: 1.5px solid var(--an-gold);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 226, 151, .1), transparent 22%),
    linear-gradient(145deg, #143d1c, #081c0f);
  box-shadow: inset 0 0 0 4px rgba(255, 231, 167, .055), 0 12px 28px rgba(0, 0, 0, .34);
  text-align: center;
}

#s-reset .an-reset-card::before {
  position: absolute;
  z-index: -1;
  inset: 5px;
  border: 1px solid rgba(244, 213, 143, .22);
  border-radius: 18px;
  content: "";
  pointer-events: none;
}

#s-reset .an-reset-title {
  margin: 0;
  color: #fff2d0;
  font-size: clamp(24px, 6vw, 32px);
  line-height: 1.15;
}

#s-reset .an-reset-copy {
  margin: 0;
  color: var(--an-cream-muted);
  font-size: 16px;
  line-height: 1.5;
}

#s-reset .an-reset-status {
  min-height: 22px;
  margin: 0;
  color: #e9d5a5;
  font-size: 14px;
  line-height: 1.45;
}

#s-reset .an-reset-contact {
  display: inline-flex;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 20px;
  border: 2px solid #e7c46b;
  border-radius: 23px;
  color: #fff0c4 !important;
  background: var(--an-wood);
  box-shadow: var(--an-wood-edge), 0 0 0 1px rgba(255, 226, 140, .22);
  font-size: clamp(20px, 5.5vw, 26px);
  font-weight: 700;
  text-decoration: none !important;
  text-shadow: 0 2px 2px rgba(34, 14, 4, .8);
  transition: filter .15s ease, transform .15s ease;
}

#s-reset .an-reset-contact svg { width: 27px; height: 27px; flex: 0 0 auto; }
#s-reset .an-reset-contact:hover { filter: brightness(1.08); }
#s-reset .an-reset-contact:active { transform: translateY(1px); }
#s-reset .an-reset-contact:focus-visible,
#s-reset .an-reset-back:focus-visible {
  outline: 3px solid #fff0a8;
  outline-offset: 3px;
}

#s-reset .an-reset-contact[aria-disabled="true"] {
  border-color: rgba(230, 202, 139, .45);
  color: rgba(255, 241, 210, .62) !important;
  filter: saturate(.45);
  cursor: not-allowed;
}

@media (min-width: 760px) {
  #s-reset .an-reset-shell { padding-inline: 28px; }
  #s-reset .an-reset-brand { margin-top: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  #s-reset .an-reset-contact { transition: none; }
}

/* PRIVACY — keep every policy paragraph; restyle only its existing wrappers. */
body.an-privacy-page {
  min-height: 100dvh;
  color: #fff0d0 !important;
  background:
    radial-gradient(ellipse at 50% -4%, rgba(87, 141, 46, .26), transparent 45%),
    radial-gradient(ellipse at 4% 32%, rgba(91, 137, 47, .1), transparent 30%),
    linear-gradient(180deg, #0a2912, #06170c 68%, #092311) !important;
  font-family: Georgia, "Times New Roman", serif !important;
}

body.an-privacy-page .header {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 6vw, 48px) 17px 28px !important;
  border-bottom: 2px solid rgba(227, 193, 105, .88) !important;
  color: #fff1d1 !important;
  background:
    linear-gradient(145deg, rgba(15, 52, 22, .94), rgba(5, 25, 12, .96)) padding-box,
    var(--an-wood) border-box !important;
  border: 7px solid transparent !important;
  box-shadow: 0 7px 21px rgba(0, 0, 0, .34);
}

body.an-privacy-page .an-privacy-slideshow {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(100%, 1000px);
  height: clamp(160px, 28vh, 250px);
  margin: 0 auto 18px;
  border: 6px solid transparent;
  border-radius: 20px;
  background:
    linear-gradient(145deg, #092713, #061a0d) padding-box,
    var(--an-wood) border-box;
  box-shadow: var(--an-wood-edge);
}

body.an-privacy-page .an-privacy-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-position: center 60%;
  background-size: cover;
  filter: brightness(1.24) saturate(1.12) contrast(1.04);
  animation: anPrivacyCraftFade 24s ease-in-out infinite both;
}

body.an-privacy-page .an-privacy-slide-1 { animation-delay: 0s; }
body.an-privacy-page .an-privacy-slide-2 { animation-delay: 6s; }
body.an-privacy-page .an-privacy-slide-3 { animation-delay: 12s; }
body.an-privacy-page .an-privacy-slide-4 { animation-delay: 18s; }

@keyframes anPrivacyCraftFade {
  0%, 100% { opacity: 0; }
  4%, 25% { opacity: 1; }
  29% { opacity: 0; }
}

body.an-privacy-page .an-privacy-shade {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 15, 7, .02), rgba(3, 15, 7, .06) 42%, rgba(3, 15, 7, .46));
  pointer-events: none;
}

body.an-privacy-page .an-privacy-caption {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 27px;
  left: 16px;
  color: #fff0ca;
  font-size: clamp(17px, 4vw, 24px);
  font-weight: 700;
  letter-spacing: .02em;
  text-shadow: 0 2px 7px rgba(0, 0, 0, .92);
  pointer-events: none;
}

body.an-privacy-page .an-privacy-caption::before {
  content: "Handcrafted traditions from around the world";
}

body.an-privacy-page .an-privacy-dots {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 12px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 7px;
  pointer-events: none;
}

body.an-privacy-page .an-privacy-dots i {
  width: 7px;
  height: 7px;
  border: 1px solid rgba(255, 239, 199, .85);
  border-radius: 50%;
  background: rgba(255, 239, 199, .42);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .6);
}

@media (prefers-reduced-motion: reduce) {
  body.an-privacy-page .an-privacy-slide { animation: none; }
  body.an-privacy-page .an-privacy-slide-1 { opacity: 1; }
}

body.an-privacy-page .header::after {
  position: absolute;
  right: 8%;
  bottom: 5px;
  left: 8%;
  height: 2px;
  border-radius: 50%;
  background: linear-gradient(90deg, transparent, var(--an-leaf), transparent);
  content: "";
  opacity: .65;
}

body.an-privacy-page .header h1 {
  color: #fff0c8 !important;
  font-size: clamp(27px, 6vw, 40px) !important;
  font-weight: 700;
  letter-spacing: -.5px !important;
  text-shadow: 0 2px 0 #13240d, 0 5px 15px rgba(0, 0, 0, .6);
}

body.an-privacy-page .header h1::first-letter { color: #e4c368; }

body.an-privacy-page .header p {
  margin-top: 9px !important;
  color: #e8d6ad !important;
  font-size: 15px !important;
}

body.an-privacy-page .container {
  width: min(100%, 980px);
  margin: 0 auto !important;
  padding: clamp(17px, 4vw, 30px) clamp(13px, 4vw, 24px) 34px !important;
}

body.an-privacy-page .section {
  position: relative;
  overflow: hidden;
  margin: 0 0 17px !important;
  padding: clamp(18px, 4vw, 27px) !important;
  border: 6px solid transparent !important;
  border-radius: 22px !important;
  color: #f8ebd0 !important;
  background:
    linear-gradient(145deg, rgba(21, 64, 28, .96), rgba(7, 28, 14, .97)) padding-box,
    var(--an-wood) border-box !important;
  box-shadow: inset 0 0 0 4px rgba(255, 225, 152, .04), 0 7px 17px rgba(0, 0, 0, .24) !important;
}

body.an-privacy-page .section h2,
body.an-privacy-page .section h3 {
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(229, 188, 99, .35);
  color: #a5e274 !important;
  font-family: Georgia, "Times New Roman", serif !important;
}

body.an-privacy-page .section p,
body.an-privacy-page .section li {
  color: #f4ead5 !important;
  font-size: clamp(15px, 3.8vw, 18px);
  line-height: 1.72;
}

body.an-privacy-page .highlight {
  margin-top: 15px !important;
  padding: 14px 16px !important;
  border: 1px solid rgba(224, 189, 104, .28);
  border-left: 3px solid var(--an-leaf) !important;
  border-radius: 0 13px 13px 0 !important;
  color: #f2e3bd !important;
  background: rgba(45, 91, 35, .31) !important;
}

body.an-privacy-page a {
  color: #a8e778 !important;
  text-underline-offset: 3px;
}

body.an-privacy-page a:focus-visible {
  outline: 2px solid var(--an-gold-light);
  outline-offset: 3px;
  border-radius: 3px;
}

body.an-privacy-page .footer {
  padding: 18px 10px max(22px, env(safe-area-inset-bottom, 0px));
  color: #d5c29b !important;
  text-align: center;
}

@media (min-width: 760px) {
  body.an-privacy-page .container { padding-top: 32px !important; }
  body.an-privacy-page .section { margin-bottom: 21px !important; }
}

/* Match the reference Home composition instead of merely recoloring old cards. */
#s-home .hdr {
  display: grid !important;
  grid-template-columns: 42px minmax(150px, 1fr) 34px auto !important;
  grid-template-areas: "back brand flag actions";
  align-items: center;
  gap: 8px;
  min-height: 166px !important;
  padding: 9px 12px 10px !important;
  border-bottom: 1px solid rgba(234, 196, 114, .8);
  background:
    radial-gradient(ellipse at 50% 0, rgba(118, 168, 59, .27), transparent 62%),
    linear-gradient(180deg, #103b19, #06190c) !important;
}

#s-home .hdr .back-btn { grid-area: back; }

#s-home .hdr-brand-wrap {
  display: flex !important;
  grid-area: brand;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

#s-home .hdr-brand-wrap::before {
  display: block;
  width: min(100%, 190px);
  height: 99px;
  margin: 0;
  background: var(--an-logo-lockup) center / contain no-repeat;
  content: "";
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .45));
}

#s-home .hdr-brand-title {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip-path: inset(50%);
  white-space: nowrap !important;
}

#s-home .hdr-brand-wrap .currency-switch {
  min-height: 31px !important;
  padding: 4px 12px !important;
  border-radius: 18px !important;
  font-size: 12px !important;
}

#s-home .hdr-brand-wrap .currency-rate {
  font-size: 10px;
  line-height: 1.2;
}

#s-home .hdr-flag { grid-area: flag; align-self: start; }

#s-home .hdr-icons {
  grid-area: actions;
  display: flex !important;
  flex-direction: column;
  gap: 7px;
}

#s-home .hdr-icons .hdr-btn {
  min-width: 40px;
  min-height: 40px;
  border-radius: 15px !important;
}

#s-home #home-scroll {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  align-items: stretch;
  gap: 11px;
  padding: 13px 12px 20px !important;
}

#s-home #home-scroll > .home-top { display: contents !important; }

#s-home #home-scroll > .home-top > .bal-card,
#s-home #home-scroll > .home-top > #home-vslide-wrap,
#s-home #home-scroll > .home-top > .btn-row,
#s-home #home-scroll > .home-top > button,
#s-home #home-scroll > .home-top > #pwa-install-btn,
#s-home #home-scroll > button[onclick*="s-gateway-payments"],
#s-home #home-scroll > .an-home-access-grid,
#s-home #home-scroll > #home-gw-card,
#s-home #home-scroll > .sec,
#s-home #home-scroll > .widget,
#s-home #home-scroll > #home-news-video-wrap,
#s-home #home-scroll > #home-news {
  grid-column: 1 / -1;
  min-width: 0;
}

#s-home #home-scroll > .home-top > button[onclick*="s-invite"] { order: 2; }
#s-home #home-scroll > .home-top > #pwa-install-btn { order: 3; }
#s-home #home-scroll > #ci-home-card,
#s-home #home-scroll > #dev-widget-wrap { order: 4; }
#s-home #home-scroll > .an-home-access-grid { order: 5; }
#s-home #home-scroll > #home-gw-card { order: 6; }
#s-home #home-scroll > button[onclick*="s-gateway-payments"] { order: 7; }
#s-home #home-scroll > .home-top > .btn-row { order: 8; }
#s-home #home-scroll > .home-top > button[onclick*="openWalletHistory"] { order: 1; }
#s-home #home-scroll > .home-top > .bal-card { order: 10; }
#s-home #home-scroll > .home-top > #home-vslide-wrap { order: 11; }
#s-home #home-scroll > .sec { order: 12; }
#s-home #home-scroll > .sec:has(> a) { order: 17; }
#s-home #home-scroll > .widget { order: 13; }
#s-home #home-scroll > #home-news-video-wrap { order: 18; }
#s-home #home-scroll > #home-news { order: 19; }

#s-home #home-scroll > #ci-home-card,
#s-home #home-scroll > #dev-widget-wrap {
  grid-column: span 1;
  min-width: 0;
  margin: 0 !important;
}

#s-home #home-scroll > #dev-widget-wrap .dev-widget {
  height: 100%;
  min-height: 100%;
}

#s-home .home-top > .bal-card {
  margin: 0 !important;
  padding: 15px !important;
  border: 2px solid rgba(239, 204, 126, .9) !important;
  border-radius: 23px !important;
  background:
    linear-gradient(145deg, rgba(31, 91, 36, .97), rgba(6, 34, 16, .98)) !important;
  box-shadow:
    inset 0 0 0 4px rgba(255, 230, 160, .08),
    0 7px 18px rgba(0, 0, 0, .34) !important;
}

#s-home #home-scroll > .home-top > button[onclick*="s-invite"],
#s-home #home-scroll > .home-top > #pwa-install-btn,
#s-home #home-scroll > button[onclick*="s-gateway-payments"],
#s-home #home-scroll > .home-top > button[onclick*="openWalletHistory"] {
  min-height: 56px !important;
  margin: 0 !important;
  padding: 12px 17px !important;
  border: 2px solid rgba(247, 214, 141, .86) !important;
  border-radius: 23px !important;
  color: #fff1c8 !important;
  background: var(--an-wood) !important;
  box-shadow: var(--an-wood-edge), inset 0 0 0 3px rgba(255, 228, 160, .1) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-weight: 700 !important;
  text-align: center;
}

#s-home #home-scroll > .home-top > .btn-row {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px !important;
  margin: 0 !important;
}

#s-home #home-scroll > .home-top > .btn-row button {
  min-width: 0;
  min-height: 54px !important;
  border-radius: 22px !important;
  font-size: clamp(14px, 4vw, 18px) !important;
}

#s-home #home-scroll > .an-home-access-grid {
  margin: 0 !important;
  grid-template-columns: minmax(0, 1fr) !important;
}

#s-home .an-home-access-card {
  display: flex !important;
  isolation: isolate;
  min-height: 112px;
  padding: 0 !important;
  border-width: 2px !important;
  border-radius: 24px !important;
  background:
    linear-gradient(90deg, rgba(4, 19, 9, .9), rgba(4, 19, 9, .22) 52%, rgba(4, 19, 9, .05)),
    var(--an-wood) !important;
  color: #fff0c8 !important;
  text-decoration: none !important;
}

#s-home .an-home-access-card img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

#s-home .an-home-access-title {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1 1 auto;
  min-height: 112px;
  flex-direction: column;
  justify-content: center;
  padding: 14px 74px 14px 18px;
  font-size: clamp(18px, 5vw, 24px) !important;
  text-shadow: 0 2px 5px #071108;
  text-decoration: none !important;
}

#s-home .an-home-access-card::after {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  color: #fff0c8;
  content: "🎮";
  font-size: 42px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .65));
  pointer-events: none;
}

#s-home .an-home-access-subtitle {
  margin-top: 4px;
  font-size: 13px;
}

#s-home #ci-home-card,
#s-home #dev-widget-wrap .dev-widget {
  border: 2px solid rgba(243, 207, 126, .9) !important;
  border-radius: 22px !important;
  background:
    linear-gradient(145deg, rgba(26, 82, 31, .98), rgba(5, 29, 13, .98)) !important;
  box-shadow:
    inset 0 0 0 4px rgba(255, 229, 155, .07),
    0 6px 16px rgba(0, 0, 0, .35) !important;
}

#s-home #ci-home-card { min-height: 148px; }
#s-home #ci-home-card > div:first-child {
  display: grid !important;
  grid-template-columns: 32px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  align-items: center;
  gap: 5px 8px;
  height: 100%;
  min-height: 142px;
  padding: 15px 12px !important;
}
#s-home #ci-home-ic { font-size: 33px; }
#s-home #ci-home-ic { grid-column: 1; grid-row: 1 / 3; }
#s-home #ci-home-card > div:first-child > div:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}
#s-home #ci-home-card > div:first-child > div:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  text-align: left !important;
}
#s-home #ci-home-title { white-space: nowrap; font-size: 12px !important; }
#s-home #ci-home-sub {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 10px !important;
  line-height: 1.25;
}
#s-home #ci-home-reward { font-size: 15px !important; }
#s-home #ci-home-badge { font-size: 9px !important; }
#s-home #dev-widget-wrap .dev-widget {
  display: flex !important;
  min-height: 148px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 7px;
  padding: 15px 12px !important;
}
#s-home #dev-widget-wrap .dw-ic { font-size: 27px; }
#s-home #dev-widget-wrap .dw-info { width: 100%; }
#s-home #dev-widget-wrap .dw-title { font-size: 12px !important; line-height: 1.3; }
#s-home #dev-widget-wrap .dw-amt { font-size: clamp(17px, 5vw, 23px) !important; }
#s-home #dev-widget-wrap .dw-btn { min-height: 35px !important; align-self: stretch; }

#s-home .widget {
  min-height: 158px;
  border: 2px solid rgba(242, 205, 122, .86) !important;
  border-radius: 24px !important;
  box-shadow:
    inset 0 0 0 4px rgba(255, 228, 155, .09),
    0 7px 18px rgba(0, 0, 0, .32) !important;
}

#s-home .widget .w-img { height: 158px !important; }
#s-home .widget .w-overlay {
  background: linear-gradient(90deg, rgba(3, 16, 8, .9), rgba(5, 20, 9, .52) 58%, rgba(5, 20, 9, .16)) !important;
}
#s-home .widget .w-body { padding: 14px 15px !important; }
#s-home .widget .w-title { font-size: clamp(18px, 4.8vw, 24px) !important; }
#s-home .widget .w-sub { font-size: 13px !important; }

#s-home .sec {
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 8px 14px !important;
  border: 1px solid rgba(240, 204, 126, .76);
  border-radius: 18px;
  background: var(--an-wood);
  box-shadow: var(--an-wood-edge);
}
#s-home .sec h3 { margin: 0 !important; }
#s-home .bnav {
  position: sticky !important;
  bottom: 0;
  margin-top: 0 !important;
  border-radius: 22px 22px 0 0 !important;
}

/* Country chooser: retain the searchable catalog, present it as its own page. */
#s-reg #cp-overlay.cp-open {
  position: fixed !important;
  z-index: 100000 !important;
  inset: 0 !important;
  display: flex !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  padding: 0 !important;
  background:
    radial-gradient(ellipse at 50% 0, rgba(126, 172, 61, .22), transparent 55%),
    linear-gradient(180deg, #0b2c14, #06170c 70%, #092211) !important;
  backdrop-filter: none !important;
}

#s-reg #cp-box {
  position: relative;
  display: flex !important;
  width: 100% !important;
  max-width: none !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  flex-direction: column;
  overflow: hidden !important;
  padding: max(7px, env(safe-area-inset-top, 0px)) 10px max(8px, env(safe-area-inset-bottom, 0px)) !important;
  border: 6px double rgba(228, 190, 104, .92) !important;
  border-radius: 0 !important;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(39, 91, 35, .35), transparent 62%),
    var(--an-wood-grain),
    linear-gradient(145deg, #12351a, #06190d 65%, #103319) !important;
  box-shadow: inset 0 0 0 4px rgba(255, 232, 167, .08) !important;
}

#s-reg #cp-box::before {
  display: block;
  flex: 0 0 auto;
  width: min(76vw, 290px);
  height: clamp(118px, 25vh, 176px);
  margin: 4px auto 0;
  background: var(--an-logo-lockup) center / contain no-repeat;
  content: "";
  filter: drop-shadow(0 4px 7px rgba(0, 0, 0, .43));
}

#s-reg #cp-hdr {
  position: relative;
  display: flex !important;
  flex: 0 0 auto;
  min-height: 55px;
  align-items: center;
  justify-content: center;
  margin: 0 0 9px;
  padding: 8px 52px !important;
  border: 1px solid rgba(239, 202, 121, .58) !important;
  border-radius: 18px !important;
  background: rgba(7, 29, 14, .76);
  color: #fff0c9 !important;
  font-size: 19px !important;
}

#s-reg #cp-close {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  border: 2px solid #e5bc63 !important;
  border-radius: 15px !important;
  background: var(--an-wood) !important;
  box-shadow: var(--an-wood-edge);
}

#s-reg #cp-swrap { flex: 0 0 auto; padding: 0 0 10px !important; }
#s-reg #cp-search {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  flex: 0 0 auto !important;
  height: 52px !important;
  margin: 0 !important;
  padding: 0 15px !important;
  border: 2px solid #e0b65e !important;
  border-radius: 19px !important;
  color: #fff0d5 !important;
  background:
    var(--an-wood-grain),
    linear-gradient(105deg, #452011, #8a4b21 32%, #623116 62%, #a6622b 82%, #462011) !important;
  box-shadow: inset 0 2px 4px rgba(255, 232, 168, .25), 0 4px 9px rgba(0, 0, 0, .3) !important;
  font: 17px Georgia, "Times New Roman", serif !important;
}

#s-reg #cp-list {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none !important;
  padding: 2px 0 max(12px, env(safe-area-inset-bottom, 0px)) !important;
}

#s-reg .cp-item {
  min-height: 54px !important;
  margin: 0 0 7px;
  padding: 8px 12px !important;
  border: 1px solid rgba(224, 187, 101, .46) !important;
  border-radius: 16px !important;
  color: #fff0d0 !important;
  background: var(--an-wood) !important;
  box-shadow: var(--an-wood-edge) !important;
  font: 16px Georgia, "Times New Roman", serif !important;
}

#s-reg .cp-item:active,
#s-reg .cp-item.cp-sel {
  border-color: #f4d47f !important;
  background:
    linear-gradient(180deg, rgba(255, 222, 151, .13), transparent 42%),
    linear-gradient(100deg, rgba(99, 55, 25, .72), rgba(24, 73, 27, .92)) !important;
}

#s-reg .cp-item .cpi-flag { font-size: 24px; }
#s-reg .cp-item .cpi-dial { color: #f2d18a !important; font-size: 14px !important; }
#s-reg #cp-nores { color: #fff0d0 !important; font: 16px Georgia, "Times New Roman", serif; }

/* Reuse the Login/Register lockup on Reset and Privacy Policy. */
#s-reset .an-reset-brand {
  margin: clamp(24px, 9vh, 70px) 0 24px !important;
}

#s-reset .an-reset-logo {
  display: block;
  width: min(100%, 320px);
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .4));
}

body.an-privacy-page .header h1.an-privacy-brand {
  display: flex !important;
  justify-content: center;
  margin: 0 auto 10px !important;
  font-size: 0 !important;
  line-height: 0;
}

body.an-privacy-page .an-privacy-brand img {
  display: block;
  width: min(78vw, 320px);
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .4));
}

.an-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

@media (min-width: 900px) {
  #s-home .hdr { grid-template-columns: 44px minmax(160px, 1fr) 42px auto !important; }
  #s-home #home-scroll > #ci-home-card,
  #s-home #home-scroll > #dev-widget-wrap { grid-column: span 6; }
  #s-home #home-scroll > .home-top > .bal-card { grid-column: 1 / -1; }
  #s-home #home-scroll > .home-top > button,
  #s-home #home-scroll > .home-top > #pwa-install-btn,
  #s-home #home-scroll > button[onclick*="s-gateway-payments"],
  #s-home #home-scroll > .home-top > .btn-row,
  #s-home #home-scroll > .home-top > #home-vslide-wrap,
  #s-home #home-scroll > .home-top > button[onclick*="openWalletHistory"],
  #s-home #home-scroll > .an-home-access-grid,
  #s-home #home-scroll > #home-gw-card,
  #s-home #home-scroll > .sec,
  #s-home #home-scroll > #home-news-video-wrap,
  #s-home #home-scroll > #home-news {
    grid-column: 1 / -1;
  }
  #s-home #home-scroll > .widget { grid-column: span 6; }
  #s-reg #cp-box { width: min(100%, 900px) !important; margin-inline: auto; }
}

@media (max-width: 370px) {
  #s-home .hdr { grid-template-columns: 36px minmax(118px, 1fr) 30px auto !important; gap: 5px; padding-inline: 8px !important; }
  #s-home .hdr-brand-wrap::before { width: min(100%, 162px); height: 84px; }
  #s-home .hdr-icons .hdr-btn { min-width: 36px; min-height: 36px; }
  #s-home #home-scroll { gap: 8px; padding-inline: 8px !important; }
  #s-home #ci-home-card > div:first-child { flex-wrap: wrap; }
  #s-reg #cp-box { padding-inline: 7px !important; }
}
