@font-face {
  font-family: Norwester;
  src: url('assets/norwester.woff') format('woff');
  font-display: swap;
}
:root {
  color-scheme: dark;
  --pink: #ffd0e1;
  --display: Norwester, sans-serif;
  font-family: var(--display);
  background: #000;
  color: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, select, input { color: inherit; }
button { border: 0; }
svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.shell { position: relative; width: min(100% - 32px, 560px); margin-inline: auto; }
.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 66px;
}
.brand { font: 23px var(--display); letter-spacing: .035em; }
.brand span { color: var(--pink); }
.aid-explorer summary {
  border-color: #ffd0e144;
  background: #150e11;
  color: #fff;
}
.aid-explorer summary::after { color: var(--pink); }
.site-header .aid-explorer nav {
  background: #100b0e;
  box-shadow: 0 18px 38px #000a;
}
.site-header .aid-explorer nav .explore-aid,
.site-header .aid-explorer nav .explore-contact {
  background: #ffd0e10b;
  color: var(--pink);
}
.site-header .aid-explorer nav a:hover { background: #35202a; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 4px; }
.video-frame {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #ffd0e14a;
  border-radius: 12px;
  background: #080608;
  box-shadow: 0 0 28px #ffc4dc25, 0 0 70px #ffc4dc0c;
}
video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 55svh;
  object-fit: contain;
}
.sound-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #000b;
  border: 1px solid #ffffff50;
}
.audible { display: none; }
.sound-toggle[aria-pressed='true'] .audible { display: block; }
.sound-toggle[aria-pressed='true'] .muted { display: none; }
.video-tools { display: flex; justify-content: center; margin-top: 3px; }
.video-tools button {
  min-height: 32px;
  padding: 4px 12px;
  background: transparent;
  color: var(--pink);
  font-size: 12px;
}
h1 {
  margin: 3px 0 6px;
  text-align: center;
  font: clamp(27px, 5vw, 33px)/1.12 var(--display);
  color: var(--pink);
}
.intro {
  max-width: 480px;
  margin: 0 auto 14px;
  text-align: center;
  font-size: 15px;
  line-height: 1.45;
}
.actions { display: grid; gap: 8px; }
.action {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 47px;
  padding: 10px 14px;
  border: 1px solid #ffd0e12e;
  border-radius: 8px;
  background: #110d10;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}
.action:hover { background: #24171e; border-color: #ffd0e177; }
.primary { color: #201018; background: var(--pink); }
.primary:hover { background: #ffe4ee; }
.arrow { margin-left: auto; }
.crypto summary { cursor: pointer; list-style: none; }
.crypto summary::-webkit-details-marker { display: none; }
.crypto[open] .chevron { transform: rotate(180deg); }
.wallet { padding: 14px 12px 4px; }
.wallet label { display: block; font-size: 12px; margin-bottom: 7px; }
input, select {
  width: 100%;
  padding: 11px 9px;
  background: #100d0f;
  border: 1px solid #ffd0e149;
  border-radius: 6px;
}
#wallet-address { font: 12px monospace; margin-bottom: 8px; }
#wallet-qr {
  display: block;
  width: 210px;
  height: 210px;
  margin: 14px auto;
  border-radius: 8px;
}
.socials { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.share {
  display: block;
  margin: 8px auto 0;
  min-height: 40px;
  background: transparent;
  color: var(--pink);
  font-size: 13px;
}
[role='status'] { text-align: center; font-size: 12px; margin: 6px 0; }
[role='status']:empty { display: none; }
footer { text-align: center; padding: 10px 0 20px; }
footer .brand { font-size: 17px; }
.sparkles { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.sparkles i {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 7px #ffd0e1aa;
  animation: twinkle 5s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .2; } to { opacity: .85; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
}
@media (max-width: 360px) {
  .shell { position: relative; width: calc(100% - 24px); }
  .action { padding: 10px; font-size: 13px; }
}

/* Draw icons as SVG paths so mobile emoji fonts cannot replace them. */
.ui-icon { width: 18px; height: 18px; vertical-align: middle; }
.action > span[aria-hidden], .arrow { display: inline-flex; }
#play-toggle { display: inline-flex; align-items: center; gap: 6px; }
#play-toggle .ui-icon { width: 13px; height: 13px; }
.pause-icon, .is-playing .play-icon { display: none; }
.is-playing .pause-icon { display: block; }
.share .ui-icon { margin-left: 4px; }

@property --edge-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}
@keyframes edge-light { to { --edge-angle: 360deg; } }
.action:not(.primary), .share, #play-toggle, .sound-toggle,
.aid-explorer summary {
  border: 1px solid transparent;
  background:
    linear-gradient(#110d10, #110d10) padding-box,
    conic-gradient(from var(--edge-angle),
      #e79bb966 0deg, #e79bb966 235deg,
      #ffd0e1 285deg, #fff4f9 305deg,
      #ffd0e1 320deg, #e79bb966 360deg) border-box;
  animation: edge-light 5s linear infinite;
  box-shadow: 0 0 9px #ffd0e114;
}
.share { border-radius: 8px; padding: 8px 16px; }
#play-toggle { border-radius: 6px; margin: 3px 0; }
.wallet label[for='network'] {
  color: var(--pink);
  font-weight: 700;
  font-size: 14px;
}
#network {
  min-height: 48px;
  border: 2px solid var(--pink);
  color: var(--pink);
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0 14px #ffd0e11a;
}
@media (prefers-reduced-motion: reduce) {
  .action:not(.primary), .share, #play-toggle, .sound-toggle,
  .aid-explorer summary { border-color: var(--pink); }
}

.telegram { grid-column: 1 / -1; }

/* Soft rose accents, with drawn sparkles that never become emoji. */
.video-frame {
  border-color: #ffc4dc99;
  box-shadow: 0 0 24px #ffc4dc38, 0 0 65px #ff91bc18;
}
h1 { text-shadow: 0 0 22px #ff9ec44d; }
.action:not(.primary) svg { color: var(--pink); }
.primary {
  background: linear-gradient(115deg, #ffe5ee, #ffc3db);
  box-shadow: 0 3px 18px #ffafd329;
}
.sparkles i:nth-child(5n) {
  width: 9px;
  height: 9px;
  border-radius: 0;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%,
    50% 100%, 38% 62%, 0 50%, 38% 38%);
  background: #ffc4dc;
}
footer .brand { text-shadow: 0 0 16px #ff9ec455; }

/* Use Norwester consistently; keep wallet addresses easy to verify. */
.action, #network { font-weight: 400; letter-spacing: .02em; }
.intro { font-size: 16px; letter-spacing: .015em; }
