/*
 * Built-in profile presets. Every decorative motif is CSS-generated.
 * A generated, same-origin profile stylesheet may override only the
 * documented custom properties.
 */

.theme-modern-minimal,
.theme-preview--modern-minimal {
  --theme-bg: #f4f7fb;
  --theme-bg-gradient: radial-gradient(circle at 15% 5%, #e4ecff 0, transparent 30rem);
  --theme-text: #14213d;
  --theme-text-muted: #4a5872;
  --theme-accent: #275ddb;
  --theme-focus: #0b57d0;
  --theme-surface: #ffffff;
  --theme-surface-hover: #f8faff;
  --theme-border: #d9e1ec;
  --theme-avatar-border: #ffffff;
  --theme-tile-radius: 1.125rem;
  --theme-tile-shadow: 0 0.5rem 1.5rem rgb(20 33 61 / 0.1);
  --theme-splash-button-bg: #275ddb;
  --theme-splash-button-text: #ffffff;
  --theme-lock-bg: #f4f7fb;
  --theme-lock-surface: #ffffff;
  --theme-lock-text: #14213d;
}

.theme-neon-night,
.theme-preview--neon-night {
  color-scheme: dark;
  --theme-bg: #070814;
  --theme-bg-gradient:
    radial-gradient(circle at 20% 10%, rgb(87 61 190 / 0.45), transparent 30rem),
    radial-gradient(circle at 85% 75%, rgb(30 164 153 / 0.28), transparent 28rem),
    linear-gradient(150deg, #0b0d20, #070814 58%, #04050b);
  --theme-text: #f7f7ff;
  --theme-text-muted: #c7c9e8;
  --theme-accent: #32e6d2;
  --theme-focus: #f5d90a;
  --theme-surface: #15152b;
  --theme-surface-hover: #1d2040;
  --theme-border: #5854d6;
  --theme-avatar-border: #32e6d2;
  --theme-tile-radius: 1rem;
  --theme-tile-shadow: 0 0.55rem 1.8rem rgb(50 230 210 / 0.14);
  --theme-hover-transform: translateY(-2px) scale(1.005);
  --theme-splash-button-bg: #32e6d2;
  --theme-splash-button-text: #051512;
  --theme-lock-bg: #070814;
  --theme-lock-surface: #15152b;
  --theme-lock-text: #f7f7ff;
}

.theme-neon-night .public-background::before,
.pattern-orbits .public-background::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.035) 1px, transparent 1px);
  background-size: 2.5rem 2.5rem;
  content: "";
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}

.theme-neon-night .profile-link:focus-visible {
  box-shadow: 0 0 0 0.35rem rgb(245 217 10 / 0.2);
}

.theme-rally-stage,
.theme-preview--rally-stage {
  color-scheme: dark;
  --theme-bg: #101315;
  --theme-bg-gradient:
    radial-gradient(ellipse at 12% 18%, rgb(255 225 79 / 0.13), transparent 24rem),
    repeating-linear-gradient(164deg, transparent 0 4rem, rgb(255 255 255 / 0.018) 4.05rem 4.15rem),
    linear-gradient(135deg, #2b3033, #101315 52%, #07090a);
  --theme-text: #fffdf4;
  --theme-text-muted: #c8cac3;
  --theme-accent: #ff5a3d;
  --theme-focus: #ffe14f;
  --theme-surface: #202427;
  --theme-surface-hover: #2b3033;
  --theme-border: #62666a;
  --theme-font-heading: "Arial Narrow", "Aptos Narrow", system-ui, sans-serif;
  --theme-title-size: clamp(2.2rem, 7vw, 4rem);
  --theme-avatar-border: #ff5a3d;
  --theme-tile-radius: 0.375rem;
  --theme-tile-shadow: 0.4rem 0.4rem 0 rgb(0 0 0 / 0.38);
  --theme-splash-button-bg: #ff5a3d;
  --theme-splash-button-text: #1c0906;
  --theme-lock-bg: #101315;
  --theme-lock-surface: #202427;
  --theme-lock-text: #fffdf4;
}

.theme-rally-stage .public-background::before,
.pattern-stage-lines .public-background::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(106deg, transparent 0 8%, rgb(255 90 61 / 0.2) 8.1% 8.45%, transparent 8.55% 100%),
    linear-gradient(74deg, transparent 0 78%, rgb(255 225 79 / 0.11) 78.1% 78.45%, transparent 78.55%),
    repeating-linear-gradient(132deg, transparent 0 2.4rem, rgb(255 255 255 / 0.035) 2.45rem 2.6rem, transparent 2.65rem 4.8rem);
  content: "";
  mask-image: linear-gradient(90deg, #000, transparent 34%, transparent 70%, #000);
}

.theme-rally-stage .profile-link {
  border-left: max(0.25rem, var(--theme-tile-border-width)) solid var(--theme-accent);
  background-image: linear-gradient(96deg, rgb(255 90 61 / 0.08), transparent 32%);
}

.theme-canadian-wilderness,
.theme-preview--canadian-wilderness {
  color-scheme: dark;
  --theme-bg: #071f2b;
  --theme-bg-gradient:
    radial-gradient(ellipse at 72% -8%, rgb(166 244 213 / 0.24), transparent 34rem),
    linear-gradient(165deg, transparent 22%, rgb(59 135 121 / 0.2) 35%, transparent 52%),
    linear-gradient(180deg, #113747, #071f2b 62%, #031014);
  --theme-text: #f7faec;
  --theme-text-muted: #c7d9d2;
  --theme-accent: #f4b942;
  --theme-focus: #a6f4d5;
  --theme-surface: #123b3b;
  --theme-surface-hover: #194b48;
  --theme-border: #4a756a;
  --theme-font-heading: ui-rounded, "Trebuchet MS", system-ui, sans-serif;
  --theme-avatar-border: #f4b942;
  --theme-tile-radius: 1.375rem;
  --theme-tile-shadow: 0 0.8rem 2rem rgb(0 8 8 / 0.3);
  --theme-splash-button-bg: #f4b942;
  --theme-splash-button-text: #251702;
  --theme-lock-bg: #071f2b;
  --theme-lock-surface: #123b3b;
  --theme-lock-text: #f7faec;
}

.theme-canadian-wilderness .public-background::before,
.pattern-forest .public-background::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(156deg, transparent 0 58%, rgb(5 27 30 / 0.86) 58.2% 72%, transparent 72.2%),
    linear-gradient(204deg, transparent 0 62%, rgb(4 20 24 / 0.78) 62.2% 78%, transparent 78.2%),
    repeating-linear-gradient(150deg, transparent 0 3.7rem, rgb(3 18 20 / 0.52) 3.75rem 4.7rem, transparent 4.75rem 7.4rem);
  content: "";
  mask-image: linear-gradient(to bottom, transparent 18%, #000 68%);
}

.theme-norwegian-fjords,
.theme-preview--norwegian-fjords {
  color-scheme: dark;
  --theme-bg: #082433;
  --theme-bg-gradient:
    radial-gradient(ellipse at 50% 95%, rgb(124 225 239 / 0.18), transparent 44%),
    linear-gradient(145deg, rgb(3 20 29 / 0.9) 0 24%, transparent 24.2%),
    linear-gradient(215deg, rgb(16 55 71 / 0.88) 0 31%, transparent 31.2%),
    linear-gradient(180deg, #17475a, #082433 58%, #04131c);
  --theme-text: #f4f8f5;
  --theme-text-muted: #bfd1d5;
  --theme-accent: #e1513e;
  --theme-focus: #7ce1ef;
  --theme-surface: #103747;
  --theme-surface-hover: #164757;
  --theme-border: #4e7c89;
  --theme-font-heading: Georgia, "Times New Roman", serif;
  --theme-avatar-border: #f4f8f5;
  --theme-tile-radius: 1.125rem;
  --theme-tile-shadow: 0 0.75rem 2rem rgb(0 12 20 / 0.36);
  --theme-splash-button-bg: #e1513e;
  --theme-splash-button-text: #ffffff;
  --theme-lock-bg: #082433;
  --theme-lock-surface: #103747;
  --theme-lock-text: #f4f8f5;
}

.theme-norwegian-fjords .public-background::before,
.pattern-fjords .public-background::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(143deg, rgb(2 18 26 / 0.64) 0 23%, transparent 23.2%),
    linear-gradient(217deg, rgb(5 28 38 / 0.58) 0 28%, transparent 28.2%),
    repeating-linear-gradient(180deg, transparent 0 2.6rem, rgb(124 225 239 / 0.055) 2.65rem 2.72rem);
  content: "";
  mask-image: linear-gradient(to bottom, #000 0 38%, transparent 76%, #000);
}

.theme-norwegian-fjords .profile-link:nth-child(3n + 1) {
  border-left: max(0.2rem, var(--theme-tile-border-width)) solid var(--theme-accent);
}

.theme-gaming-rgb,
.theme-preview--gaming-rgb {
  color-scheme: dark;
  --theme-bg: #06070b;
  --theme-bg-gradient:
    radial-gradient(circle at 12% 20%, rgb(45 226 230 / 0.17), transparent 22rem),
    radial-gradient(circle at 88% 70%, rgb(255 60 172 / 0.16), transparent 25rem),
    #06070b;
  --theme-text: #f5f8ff;
  --theme-text-muted: #bfc7d9;
  --theme-accent: #2de2e6;
  --theme-focus: #fff200;
  --theme-surface: #131721;
  --theme-surface-hover: #1b2030;
  --theme-border: #58647f;
  --theme-avatar-border: #2de2e6;
  --theme-tile-radius: 0.875rem;
  --theme-tile-shadow: 0 0.6rem 1.6rem rgb(45 226 230 / 0.12);
  --theme-hover-transform: translateY(-2px) scale(1.008);
  --theme-splash-button-bg: #2de2e6;
  --theme-splash-button-text: #041315;
  --theme-lock-bg: #06070b;
  --theme-lock-surface: #131721;
  --theme-lock-text: #f5f8ff;
}

.theme-gaming-rgb .public-background::before,
.pattern-rgb-rails .public-background::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(118deg, transparent 0 18%, rgb(45 226 230 / 0.1) 18.1% 18.4%, transparent 18.5%),
    linear-gradient(62deg, transparent 0 76%, rgb(255 60 172 / 0.1) 76.1% 76.4%, transparent 76.5%),
    repeating-linear-gradient(0deg, transparent 0 5px, rgb(255 255 255 / 0.018) 6px);
  content: "";
}

.theme-gaming-rgb .profile-link::after {
  position: absolute;
  inset: 0;
  padding: 1px;
  background: linear-gradient(100deg, #2de2e6, transparent 30%, transparent 70%, #ff3cac);
  border-radius: inherit;
  content: "";
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.theme-dark-carbon,
.theme-preview--dark-carbon {
  color-scheme: dark;
  --theme-bg: #101113;
  --theme-bg-gradient:
    repeating-linear-gradient(45deg, rgb(255 255 255 / 0.018) 0 2px, transparent 2px 6px),
    repeating-linear-gradient(-45deg, rgb(255 255 255 / 0.014) 0 2px, transparent 2px 6px),
    #101113;
  --theme-text: #f4f2ee;
  --theme-text-muted: #c7c3ba;
  --theme-accent: #e9a23b;
  --theme-focus: #67d5ff;
  --theme-surface: #1c1e21;
  --theme-surface-hover: #25282c;
  --theme-border: #555960;
  --theme-avatar-border: #e9a23b;
  --theme-tile-radius: 0.5rem;
  --theme-tile-shadow: 0 0.8rem 1.8rem rgb(0 0 0 / 0.34);
  --theme-splash-button-bg: #e9a23b;
  --theme-splash-button-text: #201300;
  --theme-lock-bg: #101113;
  --theme-lock-surface: #1c1e21;
  --theme-lock-text: #f4f2ee;
}

.theme-dark-carbon .profile-link {
  border-top-color: #686c73;
  border-left-color: #686c73;
}

.theme-clean-light,
.theme-preview--clean-light {
  color-scheme: dark;
  --theme-bg: #090A0C;
  --theme-bg-gradient:
    radial-gradient(circle at 88% 8%, rgb(255 0 0 / 0.12), transparent 24rem),
    repeating-linear-gradient(45deg, rgb(255 255 255 / 0.018) 0 2px, transparent 2px 7px),
    repeating-linear-gradient(-45deg, rgb(255 255 255 / 0.012) 0 2px, transparent 2px 7px),
    linear-gradient(145deg, #121418, #090A0C 58%, #050506);
  --theme-text: #F7F7F8;
  --theme-text-muted: #A9ACB3;
  --theme-accent: #FF0000;
  --theme-focus: #FFFFFF;
  --theme-surface: #15171B;
  --theme-surface-hover: #1D2025;
  --theme-border: #3B3F47;
  --theme-avatar-border: #FF0000;
  --theme-tile-radius: 0.625rem;
  --theme-tile-shadow: 0 0.85rem 2.1rem rgb(0 0 0 / 0.4);
  --theme-splash-button-bg: #FF0000;
  --theme-splash-button-text: #090A0C;
  --theme-lock-bg: #090A0C;
  --theme-lock-surface: #15171B;
  --theme-lock-text: #F7F7F8;
}

.theme-clean-light .profile-link {
  border-color: #3B3F47;
  border-top-color: rgb(255 0 0 / 0.72);
  background:
    linear-gradient(105deg, rgb(255 0 0 / 0.055), transparent 32%),
    var(--theme-surface);
}

.theme-clean-light .profile-link:hover {
  border-color: rgb(255 0 0 / 0.78);
  background:
    linear-gradient(105deg, rgb(255 0 0 / 0.09), transparent 38%),
    var(--theme-surface-hover);
}

.theme-clean-light .public-background::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 9%, rgb(255 0 0 / 0.48) 9% 9.08%, transparent 9.08%),
    linear-gradient(180deg, transparent 0 4.5rem, rgb(255 0 0 / 0.28) 4.5rem 4.56rem, transparent 4.56rem),
    radial-gradient(circle at 88% 10%, rgb(255 0 0 / 0.1), transparent 19rem);
  content: "";
  pointer-events: none;
}

.pattern-editorial-grid .public-background::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0 7%, rgb(228 73 91 / 0.16) 7% 7.15%, transparent 7.15%),
    radial-gradient(circle at 88% 12%, rgb(49 87 213 / 0.13) 0 5rem, transparent 5.1rem);
  content: "";
  pointer-events: none;
}

.theme-leonida-afterglow,
.theme-preview--leonida-afterglow {
  color-scheme: dark;
  --theme-bg: #32104a;
  --theme-bg-gradient:
    radial-gradient(circle at 72% 18%, #ffd18c 0 4.7rem, rgb(255 107 138 / 0.42) 4.8rem 10rem, transparent 18rem),
    linear-gradient(180deg, #8d337b 0, #5b205f 34%, #32104a 62%, #160e31 100%);
  --theme-text: #fff6ed;
  --theme-text-muted: #e9c7e8;
  --theme-accent: #ff6b8a;
  --theme-focus: #74f5d3;
  --theme-surface: #5a235fe8;
  --theme-surface-hover: #71306df2;
  --theme-border: #ef83a7;
  --theme-font-heading: "Trebuchet MS", "Segoe UI", sans-serif;
  --theme-avatar-border: #74f5d3;
  --theme-tile-radius: 1.625rem;
  --theme-tile-shadow: 0 0.8rem 2.2rem rgb(20 5 43 / 0.38), 0 0 1.2rem rgb(255 107 138 / 0.14);
  --theme-splash-button-bg: #ff6b8a;
  --theme-splash-button-text: #32104a;
  --theme-lock-bg: #32104a;
  --theme-lock-surface: #5a235f;
  --theme-lock-text: #fff6ed;
}

.theme-leonida-afterglow .public-background::before,
.pattern-sunset-drive .public-background::before {
  position: absolute;
  inset: 42% -18% -28%;
  background:
    repeating-linear-gradient(90deg, transparent 0 7.5%, rgb(116 245 211 / 0.12) 7.65% 7.85%, transparent 8%),
    repeating-linear-gradient(0deg, transparent 0 2.6rem, rgb(116 245 211 / 0.12) 2.7rem 2.8rem),
    linear-gradient(90deg, transparent 49.7%, rgb(255 107 138 / 0.38) 49.8% 50.2%, transparent 50.3%);
  content: "";
  perspective: 25rem;
  transform: perspective(30rem) rotateX(58deg);
  transform-origin: top;
}

.theme-leonida-afterglow .profile-link {
  backdrop-filter: blur(0.7rem);
  background-image: linear-gradient(105deg, rgb(255 255 255 / 0.08), transparent 45%);
}

.theme-leonida-afterglow .profile-header h1 {
  text-shadow: 0.08em 0.08em 0 rgb(255 107 138 / 0.5);
}

.theme-ouninpohja-flight,
.theme-preview--ouninpohja-flight {
  color-scheme: dark;
  --theme-bg: #0c171c;
  --theme-bg-gradient:
    radial-gradient(circle at 82% 16%, rgb(94 180 241 / 0.15), transparent 24rem),
    repeating-linear-gradient(112deg, transparent 0 3.2rem, rgb(255 255 255 / 0.022) 3.25rem 3.4rem),
    linear-gradient(150deg, #23363b, #0c171c 55%, #060d10);
  --theme-text: #f3f0df;
  --theme-text-muted: #bac8c2;
  --theme-accent: #f4c430;
  --theme-focus: #5eb4f1;
  --theme-surface: #18282d;
  --theme-surface-hover: #22353b;
  --theme-border: #52656a;
  --theme-font-heading: "Arial Narrow", "Aptos Narrow", system-ui, sans-serif;
  --theme-avatar-border: #5eb4f1;
  --theme-tile-radius: 0.25rem;
  --theme-tile-shadow: 0.42rem 0.42rem 0 rgb(0 0 0 / 0.42);
  --theme-splash-button-bg: #f4c430;
  --theme-splash-button-text: #161300;
  --theme-lock-bg: #0c171c;
  --theme-lock-surface: #18282d;
  --theme-lock-text: #f3f0df;
}

.theme-ouninpohja-flight .public-background::before,
.pattern-tire-tread .public-background::before {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(132deg, transparent 0 2.8rem, rgb(244 196 48 / 0.1) 2.85rem 3rem, transparent 3.05rem 5.6rem),
    repeating-linear-gradient(48deg, transparent 0 2.8rem, rgb(255 255 255 / 0.035) 2.85rem 3rem, transparent 3.05rem 5.6rem),
    linear-gradient(90deg, transparent 0 86%, rgb(244 196 48 / 0.22) 86.1% 88.8%, transparent 88.9%);
  content: "";
  mask-image: linear-gradient(90deg, #000, transparent 38%, transparent 70%, #000);
}

.theme-ouninpohja-flight .profile-link {
  border-top: max(0.2rem, var(--theme-tile-border-width)) solid var(--theme-accent);
  text-transform: none;
}

.theme-aurora-cq,
.theme-preview--aurora-cq {
  color-scheme: dark;
  --theme-bg: #061317;
  --theme-bg-gradient:
    radial-gradient(ellipse at 50% -10%, rgb(108 255 154 / 0.22), transparent 38rem),
    linear-gradient(155deg, #0d292a, #061317 58%, #02090b);
  --theme-text: #e8fff5;
  --theme-text-muted: #9ec2b5;
  --theme-accent: #6cff9a;
  --theme-focus: #ffce55;
  --theme-surface: #0d2526;
  --theme-surface-hover: #143334;
  --theme-border: #2a665c;
  --theme-font-body: ui-monospace, "Cascadia Code", "SFMono-Regular", monospace;
  --theme-font-heading: ui-monospace, "Cascadia Code", "SFMono-Regular", monospace;
  --theme-avatar-border: #6cff9a;
  --theme-tile-radius: 0.625rem;
  --theme-tile-shadow: 0 0 1.5rem rgb(108 255 154 / 0.14), inset 0 0 0 1px rgb(108 255 154 / 0.05);
  --theme-splash-button-bg: #6cff9a;
  --theme-splash-button-text: #061317;
  --theme-lock-bg: #061317;
  --theme-lock-surface: #0d2526;
  --theme-lock-text: #e8fff5;
}

.theme-aurora-cq .public-background::before,
.pattern-radio-waves .public-background::before {
  position: absolute;
  inset: 0;
  background:
    repeating-radial-gradient(circle at 50% 7%, transparent 0 3.4rem, rgb(108 255 154 / 0.09) 3.45rem 3.52rem),
    linear-gradient(rgb(108 255 154 / 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgb(108 255 154 / 0.035) 1px, transparent 1px);
  background-size: auto, 1.75rem 1.75rem, 1.75rem 1.75rem;
  content: "";
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}

.theme-aurora-cq .profile-link {
  border-left: 0.22rem solid var(--theme-accent);
}

.theme-aurora-cq .profile-link::before {
  width: 0.46rem;
  height: 0.46rem;
  margin-right: 0.4rem;
  background: var(--theme-accent);
  border-radius: 50%;
  box-shadow: 0 0 0.7rem var(--theme-accent);
  content: "";
}

.theme-swedish-archipelago,
.theme-preview--swedish-archipelago {
  color-scheme: dark;
  --theme-bg: #102c3b;
  --theme-bg-gradient:
    radial-gradient(circle at 76% 15%, #f6c453 0 3.7rem, rgb(246 196 83 / 0.14) 3.8rem 10rem, transparent 18rem),
    linear-gradient(180deg, #31566a 0, #173f4c 48%, #102c3b 72%, #081c28);
  --theme-text: #fbf4de;
  --theme-text-muted: #c6d6d3;
  --theme-accent: #f6c453;
  --theme-focus: #89d4e8;
  --theme-surface: #173f4ce8;
  --theme-surface-hover: #205160f2;
  --theme-border: #587885;
  --theme-font-heading: Georgia, "Times New Roman", serif;
  --theme-avatar-border: #f6c453;
  --theme-tile-radius: 1.25rem;
  --theme-tile-shadow: 0 0.9rem 2.3rem rgb(2 16 25 / 0.4);
  --theme-splash-button-bg: #f6c453;
  --theme-splash-button-text: #17230e;
  --theme-lock-bg: #102c3b;
  --theme-lock-surface: #173f4c;
  --theme-lock-text: #fbf4de;
}

.theme-swedish-archipelago .public-background::before,
.pattern-archipelago .public-background::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 12% 88%, rgb(7 25 31 / 0.88) 0 13%, transparent 13.3%),
    radial-gradient(ellipse at 63% 82%, rgb(9 32 37 / 0.78) 0 18%, transparent 18.3%),
    radial-gradient(ellipse at 96% 92%, rgb(5 22 28 / 0.92) 0 20%, transparent 20.3%),
    repeating-linear-gradient(180deg, transparent 0 3rem, rgb(137 212 232 / 0.055) 3.05rem 3.12rem);
  content: "";
}

.theme-swedish-archipelago .profile-link {
  backdrop-filter: blur(0.55rem);
}

.theme-finnish-lakeland,
.theme-preview--finnish-lakeland {
  --theme-bg: #e7f1ec;
  --theme-bg-gradient:
    linear-gradient(180deg, #f6faf8 0, #dbeae5 49%, #c9dfde 50%, #e7f1ec 78%),
    radial-gradient(ellipse at 50% 80%, rgb(0 94 184 / 0.13), transparent 48%);
  --theme-text: #14352d;
  --theme-text-muted: #48675e;
  --theme-accent: #186b52;
  --theme-focus: #005eb8;
  --theme-surface: #f8fcf9e8;
  --theme-surface-hover: #eef7f3;
  --theme-border: #a2bdb4;
  --theme-font-heading: Georgia, "Times New Roman", serif;
  --theme-avatar-border: #f8fcf9;
  --theme-tile-radius: 1.5rem;
  --theme-tile-shadow: 0 0.7rem 1.8rem rgb(20 53 45 / 0.12);
  --theme-splash-button-bg: #186b52;
  --theme-splash-button-text: #ffffff;
  --theme-lock-bg: #e7f1ec;
  --theme-lock-surface: #f8fcf9;
  --theme-lock-text: #14352d;
}

.theme-finnish-lakeland .public-background::before,
.pattern-lakeland .public-background::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(153deg, transparent 0 58%, rgb(24 107 82 / 0.16) 58.2% 63%, transparent 63.2%),
    linear-gradient(207deg, transparent 0 63%, rgb(20 73 59 / 0.13) 63.2% 69%, transparent 69.2%),
    repeating-linear-gradient(180deg, transparent 0 2.8rem, rgb(0 94 184 / 0.045) 2.85rem 2.92rem);
  content: "";
  mask-image: linear-gradient(to bottom, transparent 18%, #000 62%, transparent 96%);
}

.theme-finnish-lakeland .profile-link {
  backdrop-filter: blur(0.45rem);
}

.theme-packet-forge,
.theme-preview--packet-forge {
  color-scheme: dark;
  --theme-bg: #07111f;
  --theme-bg-gradient:
    radial-gradient(circle at 18% 14%, rgb(93 228 199 / 0.12), transparent 24rem),
    radial-gradient(circle at 86% 72%, rgb(197 134 255 / 0.1), transparent 28rem),
    linear-gradient(145deg, #0b1b2b, #07111f 58%, #030914);
  --theme-text: #e7f0ff;
  --theme-text-muted: #91a4bf;
  --theme-accent: #5de4c7;
  --theme-focus: #ffcc66;
  --theme-surface: #0e1c2d;
  --theme-surface-hover: #14273c;
  --theme-border: #32506d;
  --theme-font-body: ui-monospace, "Cascadia Code", "SFMono-Regular", monospace;
  --theme-font-heading: ui-monospace, "Cascadia Code", "SFMono-Regular", monospace;
  --theme-avatar-border: #c586ff;
  --theme-tile-radius: 0.75rem;
  --theme-tile-shadow: 0 0 1.4rem rgb(93 228 199 / 0.12), inset 0 1px rgb(255 255 255 / 0.035);
  --theme-splash-button-bg: #5de4c7;
  --theme-splash-button-text: #07111f;
  --theme-lock-bg: #07111f;
  --theme-lock-surface: #0e1c2d;
  --theme-lock-text: #e7f0ff;
}

.theme-packet-forge .public-background::before,
.pattern-packet-mesh .public-background::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle, rgb(93 228 199 / 0.32) 0 0.12rem, transparent 0.16rem) 0 0 / 4rem 4rem,
    linear-gradient(120deg, transparent 0 24%, rgb(93 228 199 / 0.09) 24.1% 24.25%, transparent 24.35% 68%, rgb(255 204 102 / 0.08) 68.1% 68.25%, transparent 68.35%),
    linear-gradient(60deg, transparent 0 42%, rgb(197 134 255 / 0.075) 42.1% 42.25%, transparent 42.35%);
  content: "";
  mask-image: radial-gradient(ellipse at center, #000, transparent 88%);
}

.theme-packet-forge .profile-link {
  border-left: 0.2rem solid var(--theme-accent);
  background-image:
    linear-gradient(90deg, rgb(93 228 199 / 0.055), transparent 35%),
    repeating-linear-gradient(0deg, transparent 0 0.45rem, rgb(255 255 255 / 0.012) 0.5rem);
}

.theme-packet-forge .profile-link__title::before {
  display: inline-block;
  width: 0.48rem;
  height: 0.48rem;
  margin-right: 0.5rem;
  background: #c586ff;
  border-radius: 0.12rem;
  box-shadow: 0 0 0.5rem rgb(197 134 255 / 0.45);
  content: "";
}

.theme-packet-forge .profile-header h1 {
  text-shadow: 0.08em 0.08em 0 rgb(93 228 199 / 0.18);
}

.theme-packet-forge .profile-header h1::after {
  display: block;
  width: min(12rem, 42vw);
  height: 0.15rem;
  margin: 0.5rem auto 0;
  background: linear-gradient(90deg, transparent, var(--theme-accent), #c586ff, transparent);
  content: "";
}

.pattern-none {
  --theme-bg-gradient: none;
}

.pattern-carbon {
  --theme-bg-gradient:
    repeating-linear-gradient(45deg, rgb(255 255 255 / 0.018) 0 2px, transparent 2px 6px),
    repeating-linear-gradient(-45deg, rgb(255 255 255 / 0.014) 0 2px, transparent 2px 6px);
}

.theme-clean-light.pattern-carbon {
  --theme-bg-gradient:
    radial-gradient(circle at 88% 8%, rgb(255 0 0 / 0.12), transparent 24rem),
    repeating-linear-gradient(45deg, rgb(255 255 255 / 0.018) 0 2px, transparent 2px 7px),
    repeating-linear-gradient(-45deg, rgb(255 255 255 / 0.012) 0 2px, transparent 2px 7px),
    linear-gradient(145deg, #121418, #090A0C 58%, #050506);
}

.pattern-dots {
  --theme-bg-gradient: radial-gradient(circle, var(--theme-border) 1px, transparent 1.5px);
  --theme-bg-size: 1.5rem 1.5rem;
}

/* Editor preset thumbnails */

.theme-preview--modern-minimal .theme-preset-card__sample {
  background: #f4f7fb;
}
.theme-preview--modern-minimal .theme-preset-card__sample i {
  background: #275ddb;
}

.theme-preview--neon-night .theme-preset-card__sample {
  background: linear-gradient(140deg, #2a2056, #070814);
}
.theme-preview--neon-night .theme-preset-card__sample i {
  background: #32e6d2;
  box-shadow: 0 0 0.5rem #32e6d2;
}

.theme-preview--rally-stage .theme-preset-card__sample {
  background:
    repeating-linear-gradient(132deg, transparent 0 1.1rem, rgb(255 255 255 / 0.05) 1.15rem 1.25rem),
    linear-gradient(105deg, #202427 0 58%, #ff5a3d 59% 63%, #101315 64%);
}
.theme-preview--rally-stage .theme-preset-card__sample i {
  background: #fffdf4;
  border-left: 0.3rem solid #ff5a3d;
  border-radius: 0.1rem;
}

.theme-preview--canadian-wilderness .theme-preset-card__sample {
  background:
    linear-gradient(155deg, transparent 45%, #0a2b31 46% 64%, transparent 65%),
    radial-gradient(ellipse at 70% 0, #5da990, transparent 48%),
    linear-gradient(#174657, #071f2b);
}
.theme-preview--canadian-wilderness .theme-preset-card__sample i {
  background: #f4b942;
}

.theme-preview--norwegian-fjords .theme-preset-card__sample {
  background:
    linear-gradient(145deg, #061923 0 32%, transparent 33%),
    linear-gradient(215deg, #164757 0 38%, transparent 39%),
    linear-gradient(#24556a, #082433);
}
.theme-preview--norwegian-fjords .theme-preset-card__sample i {
  background: #e1513e;
}

.theme-preview--gaming-rgb .theme-preset-card__sample {
  background: linear-gradient(130deg, #06070b, #171b26);
}
.theme-preview--gaming-rgb .theme-preset-card__sample i:nth-child(1) { background: #2de2e6; }
.theme-preview--gaming-rgb .theme-preset-card__sample i:nth-child(2) { background: #ff3cac; }
.theme-preview--gaming-rgb .theme-preset-card__sample i:nth-child(3) { background: #a8ff3e; }

.theme-preview--dark-carbon .theme-preset-card__sample {
  background:
    repeating-linear-gradient(45deg, rgb(255 255 255 / 0.04) 0 2px, transparent 2px 6px),
    #101113;
}
.theme-preview--dark-carbon .theme-preset-card__sample i {
  background: #e9a23b;
}

.theme-preview--clean-light .theme-preset-card__sample {
  background:
    linear-gradient(90deg, transparent 0 10%, rgb(255 0 0 / 0.8) 10% 10.8%, transparent 10.8%),
    radial-gradient(circle at 82% 18%, rgb(255 0 0 / 0.2), transparent 34%),
    repeating-linear-gradient(45deg, rgb(255 255 255 / 0.035) 0 1px, transparent 1px 5px),
    linear-gradient(145deg, #191B20, #090A0C 68%);
  border: 1px solid #3B3F47;
}
.theme-preview--clean-light .theme-preset-card__sample i {
  background: #FF0000;
  border-radius: 0.2rem;
}
.theme-preview--clean-light .theme-preset-card__sample i:nth-child(2) {
  background: #4A4E57;
}
.theme-preview--clean-light .theme-preset-card__sample i:nth-child(3) {
  background: #F7F7F8;
}

.theme-preview--leonida-afterglow .theme-preset-card__sample {
  background:
    radial-gradient(circle at 72% 18%, #ffd18c 0 12%, transparent 13%),
    linear-gradient(#a43b83, #32104a 62%, #160e31);
}
.theme-preview--leonida-afterglow .theme-preset-card__sample i {
  background: #ff6b8a;
  border: 1px solid #74f5d3;
  border-radius: 0.8rem;
}

.theme-preview--ouninpohja-flight .theme-preset-card__sample {
  background:
    repeating-linear-gradient(132deg, transparent 0 1rem, rgb(255 255 255 / 0.06) 1.05rem 1.15rem),
    linear-gradient(110deg, #22353b 0 72%, #f4c430 73% 78%, #0c171c 79%);
}
.theme-preview--ouninpohja-flight .theme-preset-card__sample i {
  background: #f3f0df;
  border-top: 0.2rem solid #f4c430;
  border-radius: 0.1rem;
}

.theme-preview--aurora-cq .theme-preset-card__sample {
  background:
    repeating-radial-gradient(circle at 50% 0, transparent 0 0.8rem, rgb(108 255 154 / 0.13) 0.85rem 0.9rem),
    #061317;
}
.theme-preview--aurora-cq .theme-preset-card__sample i {
  background: #0d2526;
  border-left: 0.2rem solid #6cff9a;
  box-shadow: 0 0 0.4rem rgb(108 255 154 / 0.38);
}

.theme-preview--swedish-archipelago .theme-preset-card__sample {
  background:
    radial-gradient(circle at 76% 18%, #f6c453 0 10%, transparent 11%),
    radial-gradient(ellipse at 18% 95%, #07191f 0 28%, transparent 29%),
    linear-gradient(#31566a, #102c3b);
}
.theme-preview--swedish-archipelago .theme-preset-card__sample i {
  background: #f6c453;
  border-radius: 0.7rem;
}

.theme-preview--finnish-lakeland .theme-preset-card__sample {
  background:
    linear-gradient(155deg, transparent 0 58%, rgb(24 107 82 / 0.28) 59% 65%, transparent 66%),
    linear-gradient(#f6faf8 0 49%, #c9dfde 50%, #e7f1ec);
}
.theme-preview--finnish-lakeland .theme-preset-card__sample i {
  background: #186b52;
  border-radius: 0.7rem;
}

.theme-preview--packet-forge .theme-preset-card__sample {
  background:
    radial-gradient(circle, rgb(93 228 199 / 0.42) 0 1px, transparent 1.5px) 0 0 / 1rem 1rem,
    linear-gradient(135deg, #0e1c2d, #07111f);
}
.theme-preview--packet-forge .theme-preset-card__sample i:nth-child(1) { background: #5de4c7; }
.theme-preview--packet-forge .theme-preset-card__sample i:nth-child(2) { background: #c586ff; }
.theme-preview--packet-forge .theme-preset-card__sample i:nth-child(3) { background: #ffcc66; }

/* Safe lock-page aliases only expose palette-level styling. */

.lock-theme-modern-minimal {
  --theme-lock-bg: #f4f7fb;
  --theme-lock-surface: #ffffff;
  --theme-lock-text: #14213d;
  --theme-text-muted: #4a5872;
  --theme-border: #d9e1ec;
  --theme-focus: #0b57d0;
}

.lock-theme-neon-night,
.lock-theme-gaming-rgb {
  color-scheme: dark;
  --theme-lock-bg: #070814;
  --theme-lock-surface: #15152b;
  --theme-lock-text: #f7f7ff;
  --theme-text-muted: #c7c9e8;
  --theme-border: #5854d6;
  --theme-focus: #f5d90a;
}

.lock-theme-rally-stage {
  color-scheme: dark;
  --theme-lock-bg: #101315;
  --theme-lock-surface: #202427;
  --theme-lock-text: #fffdf4;
  --theme-text-muted: #c8cac3;
  --theme-border: #62666a;
  --theme-focus: #ffe14f;
}

.lock-theme-dark-carbon {
  color-scheme: dark;
  --theme-lock-bg: #111315;
  --theme-lock-surface: #202326;
  --theme-lock-text: #fafaf7;
  --theme-text-muted: #c8c9c5;
  --theme-border: #5b6064;
  --theme-focus: #ffd84a;
}

.lock-theme-canadian-wilderness {
  color-scheme: dark;
  --theme-lock-bg: #071f2b;
  --theme-lock-surface: #123b3b;
  --theme-lock-text: #f7faec;
  --theme-text-muted: #c7d9d2;
  --theme-border: #4a756a;
  --theme-focus: #a6f4d5;
}

.lock-theme-norwegian-fjords {
  color-scheme: dark;
  --theme-lock-bg: #082433;
  --theme-lock-surface: #103747;
  --theme-lock-text: #f4f8f5;
  --theme-text-muted: #bfd1d5;
  --theme-border: #4e7c89;
  --theme-focus: #7ce1ef;
}

.lock-theme-clean-light {
  color-scheme: dark;
  --theme-lock-bg: #090A0C;
  --theme-lock-surface: #15171B;
  --theme-lock-text: #F7F7F8;
  --theme-text-muted: #A9ACB3;
  --theme-border: #3B3F47;
  --theme-focus: #FF0000;
}

.lock-theme-leonida-afterglow {
  color-scheme: dark;
  --theme-lock-bg: #32104a;
  --theme-lock-surface: #5a235f;
  --theme-lock-text: #fff6ed;
  --theme-text-muted: #e9c7e8;
  --theme-border: #ef83a7;
  --theme-focus: #74f5d3;
}

.lock-theme-ouninpohja-flight {
  color-scheme: dark;
  --theme-lock-bg: #0c171c;
  --theme-lock-surface: #18282d;
  --theme-lock-text: #f3f0df;
  --theme-text-muted: #bac8c2;
  --theme-border: #52656a;
  --theme-focus: #5eb4f1;
}

.lock-theme-aurora-cq {
  color-scheme: dark;
  --theme-lock-bg: #061317;
  --theme-lock-surface: #0d2526;
  --theme-lock-text: #e8fff5;
  --theme-text-muted: #9ec2b5;
  --theme-border: #2a665c;
  --theme-focus: #ffce55;
}

.lock-theme-swedish-archipelago {
  color-scheme: dark;
  --theme-lock-bg: #102c3b;
  --theme-lock-surface: #173f4c;
  --theme-lock-text: #fbf4de;
  --theme-text-muted: #c6d6d3;
  --theme-border: #587885;
  --theme-focus: #89d4e8;
}

.lock-theme-finnish-lakeland {
  --theme-lock-bg: #e7f1ec;
  --theme-lock-surface: #f8fcf9;
  --theme-lock-text: #14352d;
  --theme-text-muted: #48675e;
  --theme-border: #a2bdb4;
  --theme-focus: #005eb8;
}

.lock-theme-packet-forge {
  color-scheme: dark;
  --theme-lock-bg: #07111f;
  --theme-lock-surface: #0e1c2d;
  --theme-lock-text: #e7f0ff;
  --theme-text-muted: #91a4bf;
  --theme-border: #32506d;
  --theme-focus: #ffcc66;
}

@media (prefers-reduced-motion: no-preference) {
  .entry-rise-soft .profile-link {
    animation: theme-rise var(--theme-entry-duration) var(--theme-motion-ease) both;
  }

  .entry-fade .profile-link {
    animation: theme-fade var(--theme-entry-duration) var(--theme-motion-ease) both;
  }

  .entry-scale-soft .profile-link {
    animation: theme-scale var(--theme-entry-duration) var(--theme-motion-ease) both;
  }

  .profile-grid > :nth-child(2) { animation-delay: 35ms; }
  .profile-grid > :nth-child(3) { animation-delay: 70ms; }
  .profile-grid > :nth-child(4) { animation-delay: 105ms; }
  .profile-grid > :nth-child(n + 5) { animation-delay: 140ms; }
}

.hover-none .profile-link:hover {
  transform: none;
}

.hover-lift .profile-link:hover {
  transform: translateY(var(--theme-hover-lift));
}

.hover-shift .profile-link:hover {
  transform: translateX(var(--theme-hover-shift));
}

.hover-glow .profile-link:hover {
  box-shadow: 0 0 1.4rem color-mix(in srgb, var(--theme-accent) 28%, transparent);
  transform: translateY(-1px);
}

.shadow-none .profile-link {
  box-shadow: none;
}

.shadow-hard .profile-link {
  box-shadow: 0.35rem 0.35rem 0 color-mix(in srgb, var(--theme-text) 35%, transparent);
}

.shadow-deep .profile-link {
  box-shadow: 0 0.8rem 2rem rgb(0 0 0 / 0.35);
}

.shadow-glow .profile-link {
  box-shadow: 0 0 1.2rem color-mix(in srgb, var(--theme-accent) 25%, transparent);
}

@media (prefers-reduced-motion: reduce) {
  .hover-none .profile-link:hover,
  .hover-lift .profile-link:hover,
  .hover-shift .profile-link:hover,
  .hover-glow .profile-link:hover {
    transform: none;
  }
}

@keyframes theme-rise {
  from {
    opacity: 0;
    transform: translateY(0.5rem);
  }
}

@keyframes theme-fade {
  from { opacity: 0; }
}

@keyframes theme-scale {
  from {
    opacity: 0;
    transform: scale(0.985);
  }
}
