@font-face {
  font-family: "Cinzel Decorative";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/cinzel-decorative-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}

@font-face {
  font-family: "Cinzel Decorative";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/cinzel-decorative-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+1E00-1EFF, U+1EF2-1EFF;
}

@font-face {
  font-family: "Cinzel Decorative";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("fonts/cinzel-decorative-900-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}

@font-face {
  font-family: "Cinzel Decorative";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("fonts/cinzel-decorative-900-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+1E00-1EFF, U+1EF2-1EFF;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url("fonts/cormorant-garamond-700-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url("fonts/cormorant-garamond-700-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+2DE0-2DFF, U+A640-A69F;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url("fonts/cormorant-garamond-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}

@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url("fonts/cormorant-garamond-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+1E00-1EFF, U+1EF2-1EFF;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/inter-400-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/inter-400-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+2DE0-2DFF, U+A640-A69F;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/inter-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("fonts/inter-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+1E00-1EFF, U+1EF2-1EFF;
}

@font-face {
  font-family: "Marcellus";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/marcellus-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}

@font-face {
  font-family: "Marcellus";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/marcellus-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+1E00-1EFF, U+1EF2-1EFF;
}

:root {
  color-scheme: light;
  --sky-top: #ffffff;
  --bg: #eaf7ff;
  --bg-deep: #a8d9f4;
  --panel: rgba(255, 255, 255, 0.3);
  --panel-strong: rgba(255, 255, 255, 0.78);
  --button-bg: #1f6ea7;
  --button-text: #ffffff;
  --icon-text: #2d7dab;
  --tabs-bg: rgba(236, 247, 255, 0.84);
  --toast-bg: #202832;
  --text: #2d7dab;
  --muted: #4a95bc;
  --line: rgba(62, 111, 145, 0.22);
  --accent: #1f6ea7;
  --accent-strong: #2f5e7b;
  --accent-soft: rgba(77, 159, 214, 0.18);
  --warm: #ffb44a;
  --nick-color: #9a3459;
  --nick-glow: rgba(255, 255, 255, 0.62);
  --blue-glow: rgba(58, 169, 255, 0.12);
  --gold-glow: rgba(255, 255, 255, 0.56);
  --body-radial-main: radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.85), transparent 28%);
  --body-radial-side: radial-gradient(circle at 88% 12%, rgba(112, 191, 236, 0.22), transparent 24%);
  --landscape-image: url("assets/fantasy-day.png");
  --landscape-overlay: rgba(255, 255, 255, 0.15);
  --panel-landscape-overlay: rgba(255, 255, 255, 0.12);
  --landscape-boost: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0));
  --panel-overlay: linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 56%);
  --panel-inner-shadow: inset 0 0 18px rgba(115, 185, 230, 0.05);
  --heading-shadow:
    0 1px 0 rgba(255, 255, 255, 0.86),
    0 0 10px rgba(255, 255, 255, 0.58),
    0 0 18px rgba(82, 176, 230, 0.2);
  --label-shadow:
    0 1px 0 rgba(255, 255, 255, 0.86),
    0 0 8px rgba(255, 255, 255, 0.58),
    0 0 14px rgba(88, 180, 232, 0.2);
  --nick-shadow:
    0 1px 0 rgba(255, 255, 255, 0.86),
    0 0 10px var(--nick-glow),
    0 0 18px rgba(255, 210, 145, 0.2);
  --shadow: 0 18px 42px rgba(42, 94, 130, 0.16);
  font-family: Marcellus, "Cormorant Garamond", serif;
}

:root.dark {
  color-scheme: dark;
  --sky-top: #0a2d59;
  --bg: #071a33;
  --bg-deep: #031026;
  --panel: rgba(3, 16, 38, 0.42);
  --panel-strong: rgba(8, 38, 82, 0.78);
  --button-bg: #173c75;
  --button-text: #e2c65b;
  --icon-text: #e2c65b;
  --tabs-bg: rgba(4, 17, 36, 0.72);
  --toast-bg: #08264d;
  --text: #d9b83c;
  --muted: #c9ad4e;
  --line: rgba(218, 180, 58, 0.34);
  --accent: #d6ac2e;
  --accent-strong: #e2c65b;
  --accent-soft: rgba(214, 172, 46, 0.14);
  --nick-color: #f28a2f;
  --nick-glow: rgba(242, 138, 47, 0.32);
  --shadow: 0 22px 54px rgba(0, 0, 0, 0.42);
  --gold-glow: rgba(214, 172, 46, 0.34);
  --blue-glow: rgba(68, 181, 255, 0.38);
  --body-radial-main: radial-gradient(circle at 50% -10%, rgba(69, 178, 255, 0.34), transparent 32%);
  --body-radial-side: radial-gradient(circle at 10% 18%, rgba(214, 172, 46, 0.09), transparent 22%);
  --landscape-image: url("assets/fantasy-night.png");
  --landscape-overlay: rgba(3, 16, 38, 0.15);
  --panel-landscape-overlay: rgba(3, 16, 38, 0.18);
  --landscape-boost: linear-gradient(rgba(0, 24, 58, 0.08), rgba(0, 24, 58, 0.08));
  --panel-overlay: linear-gradient(180deg, rgba(31, 91, 144, 0.14), transparent 52%);
  --panel-inner-shadow:
    inset 0 0 26px rgba(79, 180, 255, 0.12),
    0 0 34px rgba(40, 126, 214, 0.22);
  --heading-shadow:
    0 0 5px var(--gold-glow),
    0 0 12px rgba(214, 172, 46, 0.22),
    0 0 18px rgba(72, 177, 255, 0.24);
  --label-shadow:
    0 0 5px var(--gold-glow),
    0 0 10px rgba(91, 188, 255, 0.24);
  --nick-shadow:
    0 0 5px var(--nick-glow),
    0 0 14px rgba(242, 138, 47, 0.22),
    0 0 20px rgba(74, 182, 255, 0.22);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(180deg, var(--sky-top) 0%, var(--bg) 42%, var(--bg-deep) 100%),
    var(--bg);
  color: var(--text);
  text-shadow: none;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: 0;
  background: url("./assets/fantasy-day.png?v=5") center / cover no-repeat;
}

body::after {
  z-index: 0;
  background:
    linear-gradient(var(--landscape-overlay), var(--landscape-overlay)),
    var(--landscape-boost),
    var(--body-radial-main),
    var(--body-radial-side),
    linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.12) 100%);
}

:root.dark body::before {
  background-image: url("./assets/fantasy-night.png?v=5");
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 980px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px;
  display: grid;
  gap: 16px;
  align-content: start;
}

.site-nav {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 8px 16px;
  overflow: visible;
  padding: 6px 2px 0;
  grid-column: 1 / -1;
}

.link-grid a {
  min-height: 0;
  display: inline;
  align-items: center;
  justify-content: start;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  text-shadow: var(--label-shadow);
}

.site-nav a {
  color: var(--accent-strong);
  font-size: 1.08rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  text-shadow: var(--label-shadow);
}

.site-nav a.active {
  color: var(--nick-color);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.generator-panel,
.results-panel,
.content-panel {
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.generator-panel {
  padding: 20px;
}

.results-panel {
  padding: 16px;
}

.content-panel {
  padding: 18px;
  grid-column: 1 / -1;
}

.content-panel p {
  max-width: 68ch;
  margin: 12px 0 0;
  color: var(--text);
  line-height: 1.55;
}

.category-article {
  max-width: 78ch;
}

.category-article ul {
  margin: 10px 0 0;
  padding-left: 22px;
  color: var(--text);
  line-height: 1.5;
}

.category-article li + li {
  margin-top: 3px;
}

.category-article code {
  color: var(--nick-color);
  font-family: Inter, sans-serif;
  font-weight: 800;
  text-shadow: var(--nick-shadow);
}

.article-toggle {
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-shadow: var(--label-shadow);
}

.content-panel h2 {
  font-size: clamp(1.12rem, 4.4vw, 2.18rem);
}

.info-shell {
  min-height: 100vh;
}

.info-page {
  max-width: 860px;
}

.info-page h1 {
  margin-bottom: 18px;
}

.contact-form {
  width: min(100%, 640px);
  margin-top: 22px;
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
  text-shadow: var(--label-shadow);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent),
    var(--panel-strong);
  color: var(--text);
  box-shadow:
    inset 0 0 10px rgba(214, 172, 46, 0.08),
    0 0 12px rgba(61, 163, 255, 0.08);
  outline: 0;
}

.contact-form input {
  min-height: 44px;
  padding: 0 12px;
}

.contact-form textarea {
  min-height: 150px;
  padding: 12px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow:
    inset 0 0 10px rgba(214, 172, 46, 0.12),
    0 0 14px rgba(214, 172, 46, 0.14);
}

.form-status {
  color: var(--accent-strong);
  font-weight: 800;
  text-shadow: var(--label-shadow);
}

.link-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px 18px;
  justify-items: center;
  margin-top: 18px;
  text-align: center;
}

.link-grid a {
  padding: 0;
  line-height: 1.12;
}

.link-grid a:hover {
  color: var(--nick-color);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.link-grid a.active {
  color: var(--nick-color);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-shadow: var(--nick-shadow);
}

.brand-row,
.section-heading,
.control-row,
.switch-row,
.item-actions {
  display: flex;
  align-items: center;
}

.brand-row,
.section-heading {
  justify-content: space-between;
  gap: 12px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent-strong);
  font-family: "Cinzel Decorative", "Cormorant Garamond", serif;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: var(--label-shadow);
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
  font-family: "Cinzel Decorative", "Cormorant Garamond", serif;
  color: var(--accent-strong);
  text-shadow: var(--heading-shadow);
}

h1 {
  font-size: clamp(1.12rem, 4.4vw, 2.18rem);
  line-height: 0.94;
  white-space: nowrap;
}

h2 {
  font-size: 1.15rem;
}

.content-panel h2.privacy-cookie-heading {
  font-family: Marcellus, "Cormorant Garamond", serif;
  font-size: 1.72rem;
  font-weight: 400;
  text-transform: none;
}

.section-heading h2 {
  font-size: 1.36rem;
}

.section-heading .text-button {
  font-size: 1.18rem;
}

.icon-button,
.small-button {
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--text);
  box-shadow: inset 0 0 10px rgba(214, 172, 46, 0.05);
}

.icon-button {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
}

.preview {
  position: relative;
  margin: 16px 0 14px;
  padding: 12px 44px 12px 12px;
  border-radius: 8px;
  background:
    radial-gradient(circle at top, rgba(91, 188, 255, 0.18), transparent 62%),
    var(--panel-strong);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  box-shadow:
    inset 0 0 16px rgba(214, 172, 46, 0.05),
    0 0 28px rgba(41, 141, 227, 0.2);
}

.preview-label {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.76rem;
}

#featuredNick {
  max-width: 100%;
  overflow: hidden;
  color: var(--nick-color);
  font-family: "Cinzel Decorative", "Cormorant Garamond", serif;
  font-size: clamp(1rem, 4vw, 1.72rem);
  font-weight: 650;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: var(--nick-shadow);
}

#featuredNick .nick-lower,
.nick-name .nick-lower {
  display: inline-block;
  font-size: 0.82em;
  font-weight: 650;
  transform: translateY(0.02em);
}

body[data-default-category="russianGaming"] #featuredNick,
body[data-default-category="russianGaming"] .nick-name {
  font-family: Inter, sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}

body[data-default-category="russianGaming"] #featuredNick .nick-lower,
body[data-default-category="russianGaming"] .nick-name .nick-lower {
  font-size: 0.86em;
  font-weight: 700;
}

body[data-default-category="slavicNames"] #featuredNick {
  font-size: clamp(1.12rem, 4.3vw, 1.9rem);
}

body[data-default-category="slavicNames"] .nick-name {
  font-size: 1.22rem;
}

.copy-featured,
.primary-button,
.text-button,
.tab,
.copy-button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  font-size: 1.08rem;
  font-weight: 800;
}

.copy-featured,
.primary-button {
  background:
    linear-gradient(180deg, rgba(255, 244, 161, 0.2), transparent),
    var(--button-bg);
  color: var(--button-text);
  border: 1px solid var(--line);
  box-shadow:
    inset 0 0 10px rgba(214, 172, 46, 0.1),
    0 0 18px rgba(61, 163, 255, 0.25);
  text-shadow: 0 0 5px var(--gold-glow);
}

.copy-featured {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  min-height: 30px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--icon-text);
  box-shadow: none;
  font-size: 0.95rem;
}

.controls {
  display: grid;
  gap: 16px;
}

.category-field {
  display: none;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

legend,
.control-row > label,
.control-label {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 800;
}

.segmented-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.letter-case-grid,
.format-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.format-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.segmented-grid label,
.switch-row label {
  position: relative;
}

.segmented-grid input,
.switch-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented-grid span,
.switch-row span {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(80, 179, 255, 0.13), transparent),
    var(--panel-strong);
  color: var(--text);
  font-size: 1.08rem;
  text-align: center;
  font-weight: 750;
  text-shadow: var(--label-shadow);
}

.segmented-grid input:checked + span,
.switch-row input:checked + span {
  border-color: var(--accent);
  background:
    linear-gradient(180deg, rgba(255, 234, 112, 0.18), transparent),
    var(--accent-soft);
  color: var(--accent-strong);
  box-shadow:
    inset 0 0 10px rgba(214, 172, 46, 0.12),
    0 0 10px rgba(214, 172, 46, 0.12);
}

.segmented-grid input:disabled + span,
.switch-row input:disabled + span {
  opacity: 0.42;
  cursor: default;
}

.control-row {
  align-items: stretch;
  flex-direction: column;
}

.mood-menu {
  position: relative;
}

.mood-menu.disabled {
  opacity: 0.46;
}

.mood-trigger {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent),
    var(--panel-strong);
  color: var(--text);
  font-size: 1.08rem;
  box-shadow:
    inset 0 0 10px rgba(214, 172, 46, 0.08),
    0 0 12px rgba(61, 163, 255, 0.08);
  font-weight: 800;
  text-shadow: var(--label-shadow);
}

.mood-trigger:disabled {
  cursor: default;
}

.mood-arrow {
  color: var(--icon-text);
  font-size: 1.2rem;
  line-height: 1;
  transition: transform 160ms ease;
}

.mood-menu.open .mood-arrow {
  transform: rotate(180deg);
}

.mood-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 10;
  display: none;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(var(--panel-landscape-overlay), var(--panel-landscape-overlay)),
    var(--landscape-image) center / cover,
    var(--panel-strong);
  box-shadow:
    var(--shadow),
    inset 0 0 14px rgba(214, 172, 46, 0.08);
}

.mood-menu.open .mood-options {
  display: grid;
  gap: 4px;
}

.mood-option {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  font-size: 1.04rem;
  font-weight: 850;
  text-align: left;
  padding: 0 10px;
  text-shadow: var(--label-shadow);
}

.mood-option.active,
.mood-option:hover {
  border-color: var(--accent);
  background:
    linear-gradient(180deg, rgba(255, 234, 112, 0.18), transparent),
    var(--accent-soft);
  color: var(--accent-strong);
}

.switch-row {
  gap: 8px;
}

.switch-row label {
  flex: 1 1 0;
}

.primary-button {
  width: 100%;
  padding: 0 18px;
}

.ad-slot {
  min-height: 64px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
}

.ad-after-generate {
  margin-top: -4px;
}

.ad-after-results {
  margin-top: 18px;
}

.text-button,
.copy-button {
  background: transparent;
  color: var(--accent-strong);
  text-shadow: 0 0 4px var(--gold-glow);
}

.tab {
  min-height: 38px;
  background:
    linear-gradient(180deg, rgba(255, 244, 161, 0.2), transparent),
    var(--button-bg);
  border: 1px solid var(--line);
  color: var(--button-text);
  box-shadow:
    inset 0 0 10px rgba(214, 172, 46, 0.1),
    0 0 14px rgba(61, 163, 255, 0.18);
  text-shadow: 0 0 5px var(--gold-glow);
}

.tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 14px 0;
  padding: 4px;
  border-radius: 8px;
  border: 1px solid rgba(214, 172, 46, 0.14);
  background: var(--tabs-bg);
}

.tab.active {
  background:
    linear-gradient(180deg, rgba(255, 234, 112, 0.18), transparent),
    var(--accent-soft);
  color: var(--accent-strong);
  box-shadow:
    inset 0 0 0 1px var(--accent),
    0 0 12px rgba(214, 172, 46, 0.12);
}

.nick-list {
  display: grid;
  gap: 2px;
}

.nick-item {
  min-height: 27px;
  padding: 0 4px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.nick-name {
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--nick-color);
  font-family: "Cinzel Decorative", "Cormorant Garamond", serif;
  font-size: 1.05rem;
  font-weight: 650;
  text-align: left;
  overflow-wrap: anywhere;
  text-shadow: var(--nick-shadow);
}

.item-actions {
  gap: 6px;
}

.small-button {
  width: 40px;
  height: 40px;
}

.item-actions .small-button {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--icon-text);
}

.decor-button.active {
  color: var(--warm);
  text-shadow: 0 0 7px rgba(214, 140, 52, 0.34);
}

.decor-panel {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 2px 0 8px;
}

.decor-panel[hidden] {
  display: none;
}

.decor-variant {
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 34, 70, 0.46);
  color: var(--nick-color);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0;
  text-shadow: var(--nick-shadow);
}

html:not(.dark) .decor-variant {
  background: rgba(234, 246, 255, 0.64);
}

.save-button.saved {
  color: var(--warm);
  text-shadow: 0 0 7px rgba(214, 140, 52, 0.34);
}

.copy-button {
  min-width: 40px;
  padding: 0;
  font-size: 1.05rem;
}

.empty-state {
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  max-width: calc(100vw - 32px);
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--toast-bg);
  color: var(--accent-strong);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
  pointer-events: none;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 760px) {
  .site-nav {
    grid-template-columns: repeat(5, max-content);
  }

  .app-shell {
    grid-template-columns: minmax(340px, 0.88fr) minmax(360px, 1.12fr);
    align-items: start;
    padding: 28px;
  }

  .generator-panel {
    padding: 26px;
  }

  .results-panel {
    padding: 22px;
  }

  .link-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .site-nav {
    grid-template-columns: repeat(9, max-content);
  }
}
