:root {
  color-scheme: dark;
  --background: #0b0a08;
  --surface: #17140f;
  --surface-hover: #262017;
  --gold: #efc56f;
  --gold-light: #ffe3a1;
  --text: #fff7e7;
  --muted: #c8bda9;
  --border: #69532e;
  font-family: "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 280px; min-height: 100vh; color: var(--text); background: var(--background); line-height: 1.6; isolation: isolate; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, #b77c242b, transparent 65%), linear-gradient(#09080680, #090806b3), url("../../img/themes-nowaste/background.webp") center top / 540px auto repeat;
}
body:has(dialog[open]) { overflow: hidden; }
a { color: var(--gold); text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; color: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
svg { flex-shrink: 0; }
a, button { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 5px; }
::selection { background: var(--gold); color: var(--background); }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 10; padding: 10px 18px; border-radius: 8px; background: var(--gold); color: var(--background); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.profile { width: min(100% - 40px, 560px); margin: 0 auto; padding: 28px 0 24px; }
.profile-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 800; letter-spacing: 1.8px; }
.brand img { border-radius: 8px; }
.page-actions { display: flex; gap: 8px; }
.icon-button { width: 44px; height: 44px; padding: 11px; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--gold); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .18s ease, border-color .18s ease; }
.gold-icon { filter: brightness(0) saturate(100%) invert(84%) sepia(44%) saturate(648%) hue-rotate(340deg) brightness(100%) contrast(88%); }
.profile-intro { text-align: center; }
.banner-frame { width: min(100%, 300px); margin: 0 auto 22px; padding: 5px; border: 1px solid var(--border); border-radius: 26px; background: #0b0906; box-shadow: 0 15px 55px #0009, 0 0 45px #b9781217; }
.banner { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 20px; }
h1 { margin: 0 0 6px; color: var(--gold-light); font-size: clamp(28px, 6vw, 36px); font-weight: 800; letter-spacing: 3px; line-height: 1.25; }
.tagline { max-width: 450px; margin: 0 auto; color: var(--muted); font-size: 15px; line-height: 1.65; }
.divider { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 23px 0; color: var(--gold); }
.divider span { width: 95px; height: 1px; background: linear-gradient(90deg, transparent, var(--border)); }
.divider span:last-child { transform: rotate(180deg); }
.primary-links { display: grid; gap: 13px; scroll-margin-top: 20px; }
.link-card { display: flex; align-items: center; min-height: 74px; border: 1px solid var(--border); border-radius: 16px; background: linear-gradient(110deg, #211b12, #15120e); box-shadow: 0 6px 20px #0003; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.primary-link { display: flex; align-items: center; gap: 14px; align-self: stretch; flex: 1; min-width: 0; padding: 13px 14px; border-radius: 16px 0 0 16px; color: var(--gold-light); font-weight: 750; font-size: 14px; line-height: 1.45; letter-spacing: .55px; }
.primary-link > span:not(.link-arrow) { flex: 1; overflow-wrap: anywhere; }
.link-thumbnail { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 0 0 1px #ffffff1a; }
.link-arrow { font-size: 21px; font-weight: 400; opacity: .8; }
.card-share { display: flex; align-items: center; justify-content: center; width: 47px; height: 44px; margin-right: 7px; flex-shrink: 0; padding: 10px; border: 0; border-left: 1px solid var(--border); border-radius: 0 8px 8px 0; background: transparent; color: var(--gold); }
.link-card-primary { border-color: #e0b15b; background: linear-gradient(110deg, #ffe3a1, #e2af52); box-shadow: 0 6px 28px #c18a2726; }
.link-card-primary .primary-link, .link-card-primary .card-share { color: #2a1b07; }
.link-card-primary .card-share { border-left-color: #88632266; }
.description { margin: 25px 8px 0; color: var(--muted); font-size: 14px; line-height: 1.8; text-align: center; }
.description a { font-weight: 700; }
.description a:hover, .page-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.page-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 18px; border-top: 1px solid #69532e66; color: var(--muted); font-size: 11px; letter-spacing: .4px; }
.page-footer a { font-weight: 800; letter-spacing: 1.5px; }
.noscript-message { color: var(--muted); font-size: 14px; text-align: center; }
.dialog { width: min(440px, calc(100% - 32px)); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); margin: auto; padding: 24px; overflow: auto; overscroll-behavior: contain; border: 1px solid var(--border); border-radius: 22px; color: var(--text); background: var(--surface); box-shadow: 0 24px 100px #000a; }
.dialog::backdrop { background: #030302cc; backdrop-filter: blur(6px); }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.eyebrow { margin: 0 0 4px; color: var(--gold); font-size: 11px; font-weight: 750; letter-spacing: 2px; }
h2 { margin: 0; font-size: 21px; line-height: 1.4; }
.field-label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 13px; }
.copy-field { display: flex; align-items: center; padding: 5px; gap: 5px; border: 1px solid var(--border); border-radius: 12px; background: var(--background); }
.copy-field input { width: 0; flex: 1; min-width: 0; padding: 10px 6px; border: 0; background: transparent; color: var(--text); font-size: 13px; }
.copy-button { min-height: 44px; padding: 9px 14px; border: 0; border-radius: 8px; background: var(--gold); color: #2a1b07; font-weight: 700; font-size: 13px; }
.share-options { display: grid; gap: 3px; margin-top: 18px; }
.share-option { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 49px; padding: 10px; border: 1px solid transparent; border-radius: 10px; color: var(--text); background: transparent; text-align: left; font-size: 14px; }
.share-option > img { flex-shrink: 0; object-fit: contain; }
.share-option span { flex: 1; }
.chevron { opacity: .7; }
.dialog-status { min-height: 22px; margin: 12px 0 0; color: var(--gold-light); font-size: 13px; text-align: center; }
.dialog-description { margin: 0 0 18px; color: var(--muted); font-size: 14px; text-align: center; }
.qr-image { width: min(100%, 280px); height: auto; margin: 0 auto; border-radius: 10px; background: #fff; }
.qr-url { margin: 15px 0 20px; overflow-wrap: anywhere; color: var(--muted); text-align: center; font-size: 13px; }
.gold-button, .secondary-button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; padding: 12px 16px; border: 1px solid var(--gold); border-radius: 12px; text-align: center; font-size: 14px; font-weight: 700; }
.gold-button { color: #2a1b07; background: linear-gradient(110deg, #ffe3a1, #e2af52); }
.secondary-button { margin-top: 10px; border-color: var(--border); color: var(--gold); background: transparent; }
@media (hover: hover) {
  .icon-button:hover, .share-option:hover, .secondary-button:hover { background: var(--surface-hover); border-color: var(--gold); }
  .link-card:hover { transform: translateY(-2px); border-color: var(--gold); box-shadow: 0 10px 25px #0006; }
  .card-share:hover { background: #efc56f1a; }
  .link-card-primary .card-share:hover { background: #2a1b0714; }
  .copy-button:hover, .gold-button:hover { filter: brightness(1.08); }
}
@media (max-width: 420px) {
  .profile { width: calc(100% - 32px); padding-top: 20px; }
  .profile-header { margin-bottom: 23px; }
  .banner-frame { width: min(100%, 250px); }
  .tagline { font-size: 14px; }
  .primary-link { gap: 10px; padding: 12px 10px; font-size: 12px; letter-spacing: .25px; }
  .link-card { min-height: 70px; }
  .link-thumbnail { width: 36px; height: 36px; flex-basis: 36px; }
  .card-share { width: 44px; margin-right: 3px; }
  .description { margin-inline: 0; font-size: 13px; }
  .dialog { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
  .link-card:hover { transform: none; }
}
