/* GENERATED by tools/theme-build.mjs — do not edit by hand. Theme "gold" (admin-only, experimental). */
/* hand-written: tools/themes/metal.css */
/* The metal themes (owner 2026-10-19). Black stays black; words are graded gold; numbers are graded in the theme colour;
   every frame is metal of the theme colour whose very edge catches gold light from one source (top-left), fading softly.
   Written in Royal Red's colours: tools/theme-build.mjs swaps them for each theme's own (tools/themes/themes.mjs) and
   replaces ":root:root:root:not([data-theme])" with the theme's scope. */
:root:root:root:not([data-theme]) {
  --text: #f3dcae; --text-2: #d2b583; --text-3: #a88f66;
  --danger: #ff7a3d; --danger-soft: rgba(255, 122, 61, .14);         /* warnings must not look like the theme's buttons */
  --rr-red: linear-gradient(180deg, #d6a752 0%, #a0742e 30%, #5a3c12 70%, #261806 100%);
  /* numbers and gold as polished metal (owner: a natural gradient and a natural shine, numbers too): a bright top light,
     the colour itself, a deep band, and a soft light bouncing back at the bottom */
  --rr-num: linear-gradient(180deg, #fff1cc 0%, #f6d28a 16%, #d2a048 40%, #a0742e 62%, #6a4716 80%, #9c7030 93%, #dcb062 100%);
  --rr-word: linear-gradient(180deg, #fff1cc 0%, #f1c879 42%, #c48c3c 78%, #e8bd74 100%);
  --rr-gold: linear-gradient(180deg, #fffaf0 0%, #ffe6ad 14%, #f3c27a 38%, #c48a3a 62%, #8a5a20 80%, #c9974c 92%, #f0cc87 100%);
  --rr-rim: linear-gradient(135deg, #fff4d8 0%, #f5c97f 5%, #ecc57e 9%, #c99440 17%, #a0742e 32%, #6a4716 58%, #85591d 80%, #e2bb6c 92%, #f3c27a 97%, #fff0cc 100%);
  --rr-ring: conic-gradient(from 0deg, #ad8034 0deg, #7e5419 60deg, #6a4716 110deg, #e2bb6c 132deg, #f3c27a 138deg, #e2bb6c 144deg, #6a4716 175deg, #7e5419 230deg, #c08f3e 275deg, #efcb85 300deg, #fff4d8 315deg, #efcb85 330deg, #d6a752 345deg, #ad8034 360deg);
  --rr-glow: 0 0 1rem -2px rgba(212, 160, 70, .5), 0 0 2.5rem -0.75rem rgba(212, 160, 70, .55);
  --rr-edge: drop-shadow(0 -0.6px 0 rgba(255, 214, 150, .85)) drop-shadow(0 0 .35px rgba(255, 214, 150, .55));
}

/* ---- frames: crimson metal with a gold-lit edge ----
   Controls paint the edge as a border-box background (no positioning needed); pictures, avatars and rings use ::after. */
:root:root:root:not([data-theme]) :is(.cat-pill, .cat-search, .hero-btn, .btn, .chip, .seg, .cm-entry, .re-step, .legacy-seg, .legacy-help, .room-card, .room-card-icon, .settings-link) {
  border: 1.2px solid transparent; background: var(--rr-fill) padding-box, var(--rr-rim) border-box; }
:root:root:root:not([data-theme]) :is(.re-step, .legacy-help, .room-card-icon, .hero-btn-icon) { background: var(--rr-fill) padding-box, var(--rr-ring) border-box; }
:root:root:root:not([data-theme]) { --rr-fill: linear-gradient(180deg, #110e09, #070604); }
:root:root:root:not([data-theme]) .room-card { --rr-fill: linear-gradient(160deg, #100d08 0%, #070604 55%); }
:root:root:root:not([data-theme]) .room-card-icon { --rr-fill: radial-gradient(circle at 35% 30%, #5a3c12, #17110a); color: #f0c878; }
:root:root:root:not([data-theme]) :is(.btn-gold, .hero-btn-gold, .cat-pill[aria-selected="true"], .seg[aria-selected="true"]) { --rr-fill: var(--rr-red); }
:root:root:root:not([data-theme]) .btn-danger { --rr-fill: linear-gradient(var(--danger), var(--danger)); color: #1a0703; }
:root:root:root:not([data-theme]) :is(.cm-entry, .room-card, .settings-link, .legacy-seg, .chip, .btn-ghost) { box-shadow: inset 1px 1px 0 rgba(255, 214, 150, .07); }

:root:root:root:not([data-theme]) :is(.hero, .legacy-card, .poster-art, .poster-add, .avatar, .brand-ring, .splash-ring, .fab-create) { border-color: transparent; }
:root:root:root:not([data-theme]) :is(.hero, .legacy-card, .brand-ring, .splash-ring) { position: relative; }
:root:root:root:not([data-theme]) :is(.hero, .legacy-card, .poster-art)::after, :root:root:root:not([data-theme]) :is(.poster-add, .avatar, .brand-ring, .splash-ring, .fab-create)::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.2px; pointer-events: none; z-index: 2; background: var(--rr-rim);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
:root:root:root:not([data-theme]) :is(.poster-add, .avatar, .brand-ring, .splash-ring, .fab-create)::after { background: var(--rr-ring); padding: 1.6px; }
:root:root:root:not([data-theme]) .avatar::after { inset: -2px; padding: 1.6px; }
:root:root:root:not([data-theme]) .brand-ring { border-width: 0; } :root:root:root:not([data-theme]) .brand-ring::after { padding: 2.4px; }
:root:root:root:not([data-theme]) .splash-ring { border-width: 0; } :root:root:root:not([data-theme]) .splash-ring::after { padding: 0.2rem; }
:root:root:root:not([data-theme]) .profile-avatar .avatar::after { inset: -0.25rem; padding: 0.2rem; }
:root:root:root:not([data-theme]) :is(.avatar.ring-online, .avatar.ring-host, .profile-avatar .avatar, .rooms-friends .avatar.ring-online, .legacy-row.me .avatar) { box-shadow: none; }
:root:root:root:not([data-theme]) .avatar.ring-offline::after, :root:root:root:not([data-theme]) .avatar.add::after { opacity: .55; }

/* ---- glow only where it means something ---- */
:root:root:root:not([data-theme]) :is(.brand-ring, .splash-ring, .profile-avatar .avatar) { box-shadow: var(--rr-glow); }
:root:root:root:not([data-theme]) .legacy-card { background: linear-gradient(160deg, #100d08, #070604 60%); box-shadow: 0 0 2.5rem -1.375rem rgba(212, 160, 70, .55), inset 1px 1px 0 rgba(255, 214, 160, .08); }

/* ---- main actions: the crimson gradient, deep to a little light, a line of gold light on top, gold lettering ---- */
:root:root:root:not([data-theme]) :is(.btn-gold, .hero-btn-gold, .cat-pill[aria-selected="true"], .seg[aria-selected="true"]) { color: #f6cf86; text-shadow: 0 1px 0 rgba(30, 20, 4, .55);
  box-shadow: var(--rr-glow), inset 0 1px 0 rgba(255, 214, 160, .45), inset 0 -1px 0 rgba(0, 0, 0, .4); }
:root:root:root:not([data-theme]) .legacy-tab.on { background: var(--rr-red); color: #f6cf86; box-shadow: inset 0 1px 0 rgba(255, 214, 160, .4); }
:root:root:root:not([data-theme]) .fab-create { background: radial-gradient(circle at 32% 25%, #d4a04a 0%, #a0742e 40%, #5a3c12 80%, #2a1c08 100%); color: #f6cf86;
  box-shadow: 0 0.625rem 1.625rem rgba(0, 0, 0, .5), var(--rr-glow), inset 0 1px 0 rgba(255, 214, 160, .45); }
:root:root:root:not([data-theme]) :is(.btn-ghost, .hero-btn-icon, .cat-search, .cat-pill:not([aria-selected="true"]), .seg:not([aria-selected="true"]), .chip, .re-step) { color: var(--text); }
:root:root:root:not([data-theme]) .legacy-bar > * { background: linear-gradient(90deg, #d6a752 0%, #a0742e 30%, #5a3c12 100%); }

/* ---- words: graded gold; numbers: graded crimson; large ones catch the gold light on their top edge ---- */
:root:root:root:not([data-theme]) :is(h1, h2, h3, .page-title, .brand-word, .fy-name, .poster-title, .friend-name, .room-card-text b, .hero-title, .title-name, .stat span, .legacy-cap, .set-label, .settings-link > span, .section-head a, .see-all, .hero-rank, .read-more) {
  background-image: var(--rr-word); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
:root:root:root:not([data-theme]) :is(.stat b, .legacy-big, .legacy-big small, .fy-match, .re-saved-num, .score .gold, .legacy-hrs, .brand-o, .splash-word span) {
  background-image: var(--rr-num); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
:root:root:root:not([data-theme]) :is(h1, h2, .hero-title, .title-name, .stat b, .legacy-big, .re-saved-num, .brand-word) { filter: var(--rr-edge); }
:root:root:root:not([data-theme]) .hero-title a { -webkit-text-fill-color: transparent; }
:root:root:root:not([data-theme]) .splash-word { color: #f1c879; }
/* the opening (owner 2026-11-09): the word in graded gold like every word, its line in a quiet gold, in every theme */
:root:root:root:not([data-theme]) .splash-word { background-image: var(--rr-word); }
:root:root:root:not([data-theme]) .intro-word .iw-l, :root:root:root:not([data-theme]) .intro-word .iw-v { background-image: linear-gradient(100deg, transparent 0 38%, rgba(255, 249, 234, .95) 50%, transparent 62%), var(--rr-word); }
:root:root:root:not([data-theme]) .intro-tag { color: rgba(214, 176, 108, .78); }
:root:root:root:not([data-theme]) .hero-dot[aria-selected="true"]::before { background: var(--rr-gold); box-shadow: 0 0 0.375rem rgba(243, 194, 122, .5); }

/* ---- bottom navigation: gold icons; the active one glows in the theme colour ---- */
:root:root:root:not([data-theme]) .nav-item { color: #9c8662; }
:root:root:root:not([data-theme]) .nav-item.active { color: #f3c27a; }
:root:root:root:not([data-theme]) .nav-item.active .ic, :root:root:root:not([data-theme]) .nav-item.active .ic * { stroke: url(#theme-gold-icon); }
:root:root:root:not([data-theme]) .nav-item.active .ic { filter: drop-shadow(0 0 .5px rgba(255, 236, 200, .9)) drop-shadow(0 0 0.5rem rgba(212, 160, 70, .75)); }
:root:root:root:not([data-theme]) .nav-item.active .nav-label { background-image: var(--rr-gold); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; text-shadow: none; }
:root:root:root:not([data-theme]) .bottom-nav .nav-item.active::before { width: 4.5rem; height: 3.125rem; top: 0; background: radial-gradient(closest-side, rgba(212, 160, 70, .42), rgba(212, 160, 70, .12) 60%, transparent); }
:root:root:root:not([data-theme]) .bottom-nav { box-shadow: 0 -1px 0 rgba(212, 160, 70, .25); }

/* ---- the bell: gold; filled with the theme colour when something is unread ---- */
:root:root:root:not([data-theme]) .topbar .bell { color: #f3c27a; }
:root:root:root:not([data-theme]) .topbar .bell .ic, :root:root:root:not([data-theme]) .topbar .bell .ic * { stroke: url(#theme-gold-icon); }
:root:root:root:not([data-theme]) .topbar .bell.unread .ic path:first-child { fill: url(#theme-accent); }
:root:root:root:not([data-theme]) .topbar .bell.unread .ic { filter: drop-shadow(0 0 0.375rem rgba(212, 160, 70, .7)); }
/* the friend / Room bell: gold outline when off; filled with the theme colour when on (owner rule) */
:root:root:root:not([data-theme]) .bell-btn { color: #f3c27a; }
:root:root:root:not([data-theme]) .bell-btn .ic, :root:root:root:not([data-theme]) .bell-btn .ic * { stroke: url(#theme-gold-icon); }
:root:root:root:not([data-theme]) .bell-btn.on .ic path:first-child { fill: url(#theme-accent); }
:root:root:root:not([data-theme]) .bell-btn.on .ic { filter: drop-shadow(0 0 0.375rem rgba(212, 160, 70, .7)); }
#theme-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---- For You mark: a ring of crimson metal catching gold light, and a gold star with a natural shine ---- */
:root:root:root:not([data-theme]) .fy-icon { color: #c08f3e; filter: drop-shadow(0 0 0.375rem rgba(212, 160, 70, .45)); }
:root:root:root:not([data-theme]) .fy-icon circle { stroke: url(#theme-ring); }
:root:root:root:not([data-theme]) .fy-icon path { fill: url(#theme-gold); filter: drop-shadow(0 0 2px rgba(255, 220, 150, .9)); }

/* ---- every edge on the site (owner 2026-10-19): gold-lit rims on every box and gold-lit hairlines where only one side
   is drawn. The page, cards and sheets stay black in every theme (owner). ---- */
:root:root:root:not([data-theme]) {
  --line: rgba(243, 194, 122, .14); --line-strong: rgba(243, 194, 122, .24);
  --rr-line: linear-gradient(90deg, rgba(106, 71, 22, 0) 0%, #85591d 14%, #e2bb6c 34%, #f3c27a 50%, #e2bb6c 66%, #85591d 86%, rgba(106, 71, 22, 0) 100%);
}
:root:root:root:not([data-theme]) :is(.season-chip, .set-tile, .toggle, .cm-gate-card, .dialog, .help-log, .help-msg.bot, .search-bar, .set-group-body, .chat-form, .input, .room-indicator, .banner-edit-preview, .theme-option, .room-clock) {
  border-color: transparent; border-style: solid; background: var(--rr-fill) padding-box, var(--rr-rim) border-box; }
:root:root:root:not([data-theme]) :is(.person-photo, .seat-empty, .poster-fallback-ring, .stage-ring) { border-color: transparent; border-style: solid; background: var(--rr-fill) padding-box, var(--rr-ring) border-box; }
:root:root:root:not([data-theme]) .dialog { --rr-fill: linear-gradient(180deg, #131314 0%, #0c0c0d 70%); }   /* black, like the page */
:root:root:root:not([data-theme]) .toggle[aria-checked="true"], :root:root:root:not([data-theme]) .theme-option[aria-checked="true"], :root:root:root:not([data-theme]) .season-chip.done, :root:root:root:not([data-theme]) .season-chip[aria-pressed="true"] { --rr-fill: var(--rr-red); }
:root:root:root:not([data-theme]) .input:focus { box-shadow: 0 0 0 2px rgba(212, 160, 70, .35); }
:root:root:root:not([data-theme]) :is(.notif.unread, .side-tabs, .side-tab, .cm-panel-top, .device-row, .diag-row, .set-row) { border-image: var(--rr-line) 1; }
:root:root:root:not([data-theme]) .bottom-nav { border-top: 1px solid transparent; border-image: var(--rr-line) 1; }

/* ---- ⋯ menu and toast actions: graded gold with a natural shine (owner: icons and words in gold, never the theme colour) ---- */
:root:root:root:not([data-theme]) .action-item .ic { color: #f3c27a; filter: drop-shadow(0 0 .5px rgba(255, 236, 200, .7)); }
:root:root:root:not([data-theme]) .action-item .ic, :root:root:root:not([data-theme]) .action-item .ic * { stroke: url(#theme-gold-icon); }
:root:root:root:not([data-theme]) .action-label, :root:root:root:not([data-theme]) .toast-action { background-image: var(--rr-gold); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---- the friends count when the list is open to others (v9_086): graded gold, not the theme colour ---- */
:root:root:root:not([data-theme]) .stat.friends-open b { background-image: var(--rr-gold); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 .5px rgba(255, 236, 200, .9)) drop-shadow(0 0 0.4375rem rgba(243, 194, 122, .45)); }

/* ---- friends list page: names in graded gold ---- */
:root:root:root:not([data-theme]) .fl-name { background-image: var(--rr-word); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ---- loading ring: the theme's metal track, the gold light sweeping round it ---- */
:root:root:root:not([data-theme]) .ring-loader-ring { border-color: rgba(106, 71, 22, .55); box-shadow: 0 0 1rem -0.375rem rgba(212, 160, 70, .5); }
:root:root:root:not([data-theme]) .ring-loader-ring::after { background: conic-gradient(from 0deg, rgba(106, 71, 22, 0) 0deg, #6a4716 110deg, #c08f3e 200deg, #ecc57e 285deg, #f3c27a 320deg, #fff4d8 350deg, rgba(255, 244, 216, 0) 360deg); }

/* Room cards: the ring is metallic gold (Host) or silver (everybody else) in every theme (owner 2026-10-21), so the theme adds no frame of its own */
:root:root:root:not([data-theme]) .participants .avatar::after { display: none; }

/* ---- The logo (owner 2026-11-09, choice "ج"): polished gold metal in every theme — dark bronze at the bottom lightening smoothly to bright gold at
   the top (owner 2026-11-09), light on its top edge, a shadow under it and a warm glow. In the opening and in the bar at the top
   of the app a band of light passes over it now and then; everywhere else it stands still. */
:root:root:root:not([data-theme]) {
  --logo-metal: linear-gradient(0deg, #4f300b 0%, #7a4f19 18%, #a8752d 38%, #d29f4f 58%, #f1c879 78%, #fff1cc 100%);
  --logo-edge: drop-shadow(0 -.03em 0 rgba(255, 246, 220, .9)) drop-shadow(0 .045em 0 rgba(60, 35, 5, .9)) drop-shadow(0 0 .22em rgba(255, 205, 120, .42));
  --logo-glint: linear-gradient(105deg, transparent 0 40%, rgba(255, 255, 255, .95) 49%, rgba(255, 255, 255, .95) 51%, transparent 60%);
}
:root:root:root:not([data-theme]) :is(.brand-word, .splash-word, .intro-word .iw-l, .intro-word .iw-v) {
  background-image: var(--logo-glint), var(--logo-metal); background-size: 300% 100%, 100% 100%; background-position: 100% 0, 0 0; background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: var(--logo-edge); }
:root:root:root:not([data-theme]) .intro-tag { color: rgba(226, 190, 122, .85); }
:root:root:root:not([data-theme]):not(.motion-off) .brand .brand-word { animation: logoGlint 6s 1.2s cubic-bezier(.4, 0, .2, 1) infinite; }   /* Motion Off: no light passes */
@keyframes logoGlint { 0% { background-position: 100% 0, 0 0; } 20%, 100% { background-position: 0% 0, 0 0; } }
/* this theme's own rules: tools/themes/themes.mjs */
:root:root:root:not([data-theme]) { --text: #f5f3ef; --text-2: #a9a6a0; --text-3: #8a8781; --danger: #e5484d; --danger-soft: rgba(229, 72, 77, 0.14);
  --rr-glow: 0 0 12px -4px rgba(212, 160, 70, .45), 0 2px 10px -6px rgba(0, 0, 0, .6);
  --rr-red: linear-gradient(0deg, #2c1c07 0%, #4a3210 35%, #74511c 75%, #9a7030 100%);   /* filled pills and buttons (owner 2026-11-04): deep gold rising to semi-light, so the gold lettering on them reads */
  --rr-num: linear-gradient(180deg, #fff3d2 0%, #f8d996 16%, #e0b05a 40%, #b5853a 62%, #8a5e22 80%, #c3934a 93%, #e6be72 100%); }
/* gold on gold: the dark text shadow showed through the letters as a smudge, so the shadow becomes part of the filter */
:root:root:root:not([data-theme]) .profile-v2 .profile-name-row h1 { text-shadow: none; filter: var(--rr-edge) drop-shadow(0 1px 6px rgba(0, 0, 0, .7)); }
:root:root:root:not([data-theme]) :is(.btn-gold, .hero-btn-gold, .cat-pill[aria-selected="true"], .seg[aria-selected="true"]) { color: #f6cf86; box-shadow: var(--rr-glow), inset 0 1px 0 rgba(255, 236, 190, .55), inset 0 -1px 0 rgba(0, 0, 0, .45); }
:root:root:root:not([data-theme]) :is(.toggle[aria-checked="true"], .theme-option[aria-checked="true"], .season-chip.done, .season-chip[aria-pressed="true"], .legacy-tab.on, .fav-tab.on, .fab-create) { color: #f6cf86; }
/* bright graded gold lettering on the deep fill, with a soft dark edge so it stands off it */
:root:root:root:not([data-theme]):root:root :is(.hero-btn, .cat-pill, .btn-gold, .seg, .legacy-tab, .fav-tab) > span { background-image: linear-gradient(180deg, #fff6dc 0%, #f8dc9c 35%, #e8b964 70%, #f3d08a 100%); filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .55)); }
:root:root:root:not([data-theme]) .btn-danger { color: #fff; }
