/* undertale.wiki-inspired UI layer (original CSS 鈥?no copied assets) */

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ut-header {
  border-bottom: 1px solid #2a2035 !important;
  background: #050508 !important;
  backdrop-filter: none;
}

.ut-header-inner {
  max-width: var(--ut-shell);
  gap: 0.65rem 1rem;
  padding: 0.65rem 1rem;
}

.ut-brand {
  display: inline-flex !important;
  align-items: center;
  gap: 0.55rem;
  color: #fff !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-right: 0.35rem;
  text-decoration: none;
}

.ut-brand-mark {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  flex-shrink: 0;
}

.ut-brand:hover {
  color: var(--ut-accent-hot) !important;
}

.ut-search {
  order: 0 !important;
  display: flex !important;
  flex: 1 1 16rem;
  max-width: 24rem !important;
  margin-left: 0.5rem;
  margin-right: 0.75rem;
  gap: 0 !important;
}

.ut-menu {
  justify-content: center;
  gap: 0.15rem 0.75rem;
}

.ut-menu > .menu-item > a {
  text-transform: uppercase;
  letter-spacing: 0.045em;
  font-size: 0.76rem;
  font-weight: 700;
  color: #e8e0f0;
  min-height: 2.25rem;
}

.ut-search input[type="search"] {
  flex: 1;
  width: auto;
  min-width: 10rem;
  min-height: 2.25rem;
  border: 1px solid #3a2f4a;
  border-right: 0;
  border-radius: 3px 0 0 3px;
  background: #1a1422;
  font-size: 0.88rem;
}

.ut-search button {
  min-height: 2.25rem;
  border: 1px solid var(--ut-accent-deep);
  background: var(--ut-accent-deep);
  color: #fff !important;
  border-radius: 0 3px 3px 0;
  font-size: 0.85rem;
}

.ut-search button:hover {
  background: var(--ut-accent) !important;
  border-color: var(--ut-accent);
  color: #fff !important;
}

.ut-nav-toggle {
  border-color: var(--ut-accent);
  color: var(--ut-accent-hot);
}

.ut-nav-toggle:hover {
  background: var(--ut-accent);
  color: #fff;
}

/* Stage + side tower frame */
.ut-stage {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 0.5rem;
}

.ut-stage::before,
.ut-stage::after {
  content: "";
  position: absolute;
  top: 1.5rem;
  bottom: 2rem;
  width: 48px;
  pointer-events: none;
  opacity: 0.55;
  background:
    linear-gradient(180deg, transparent 0 8%, var(--ut-accent-deep) 8% 12%, transparent 12% 20%, var(--ut-accent) 20% 22%, transparent 22% 35%, var(--ut-accent-deep) 35% 42%, transparent 42% 58%, var(--ut-accent) 58% 60%, transparent 60% 78%, var(--ut-accent-deep) 78% 88%, transparent 88%),
    repeating-linear-gradient(90deg, rgba(155, 93, 229, 0.35) 0 4px, transparent 4px 8px);
  border-radius: 2px;
}

.ut-stage::before {
  left: 0;
}

.ut-stage::after {
  right: 0;
}

.ut-home--wiki {
  max-width: 1040px;
  margin: 0 auto;
  padding: 1.35rem 1rem 2.5rem;
}

.ut-welcome {
  margin-bottom: 1.25rem;
}

.ut-welcome-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.ut-welcome-lead {
  margin: 0 0 1.15rem;
  max-width: 48rem;
  color: #ddd5e8;
  font-size: 1rem;
}

.ut-welcome-note {
  margin: 0.85rem 0 0;
  color: var(--ut-muted);
  font-size: 0.88rem;
}

.ut-icon-strips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem 1.25rem;
}

.ut-icon-strip-label {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #cbb8e0;
}

.ut-icon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.ut-icon-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: #1a1424;
  color: #fff;
  transition: transform 0.15s var(--ut-ease), border-color 0.15s var(--ut-ease);
}

.ut-icon-btn span {
  font-size: 1rem;
  line-height: 1;
}

.ut-icon-btn em {
  font-style: normal;
  font-size: 0.55rem;
  margin-top: 0.15rem;
  opacity: 0.85;
}

.ut-icon-btn:hover {
  transform: translateY(-2px);
  border-color: var(--ut-accent-hot);
  color: #fff;
}

.ut-icon-btn--heart { background: linear-gradient(145deg, #ff4d6d, #c9184a); }
.ut-icon-btn--info { background: linear-gradient(145deg, #7b2cbf, #5a189a); }
.ut-icon-btn--mail { background: linear-gradient(145deg, #4895ef, #3a0ca3); }
.ut-icon-btn--steam { background: linear-gradient(145deg, #1b2838, #66c0f4); }
.ut-icon-btn--shop { background: linear-gradient(145deg, #f77f00, #d62828); }
.ut-icon-btn--buy { background: linear-gradient(145deg, #2a9d8f, #264653); }
.ut-icon-btn--guide { background: linear-gradient(145deg, #9b5de5, #5a189a); }
.ut-icon-btn--news { background: linear-gradient(145deg, #f72585, #7209b7); }
.ut-icon-btn--search { background: linear-gradient(145deg, #4cc9f0, #4361ee); }

.ut-home-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(240px, 1fr);
  gap: 1rem;
  align-items: start;
}

.ut-wiki-block {
  margin-bottom: 1rem;
  background: var(--ut-bg-panel);
  border: 1px solid #2c2238;
  border-radius: 4px;
  overflow: hidden;
}

.ut-bar-heading {
  margin: 0 !important;
  padding: 0.45rem 0.85rem;
  background: var(--ut-accent-deep);
  color: #fff !important;
  font-family: var(--ut-font) !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em;
  line-height: 1.35 !important;
  border: 0;
  text-shadow: none;
}

.ut-wiki-block-body {
  padding: 0.85rem 0.95rem 1rem;
}

.ut-wiki-block-body p {
  margin: 0 0 0.75rem;
  max-width: none;
}

.ut-wiki-block-body p:last-child {
  margin-bottom: 0;
}

.ut-portal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}

.ut-portal {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #3a2f4a;
  background: #0c0a10;
  transition: border-color 0.15s var(--ut-ease), transform 0.15s var(--ut-ease);
}

.ut-portal:hover {
  border-color: var(--ut-accent-hot);
  transform: translateY(-2px);
  color: inherit;
}

.ut-portal-art {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  font-size: 2rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
  image-rendering: pixelated;
}

.ut-portal-art--a { background: linear-gradient(160deg, #3d5a80, #98c1d9); }
.ut-portal-art--b { background: linear-gradient(160deg, #1d3557, #457b9d); }
.ut-portal-art--c { background: linear-gradient(160deg, #f4a261, #e76f51); }
.ut-portal-art--d { background: linear-gradient(160deg, #2a9d8f, #264653); }
.ut-portal-art--e { background: linear-gradient(160deg, #e63946, #9d0208); }
.ut-portal-art--f { background: linear-gradient(160deg, #7b2cbf, #3c096c); }
.ut-portal-art--g { background: linear-gradient(160deg, #ffd60a, #f77f00); color: #1a1a1a; }
.ut-portal-art--h { background: linear-gradient(160deg, #495057, #212529); }

.ut-portal-label {
  display: block;
  padding: 0.4rem 0.35rem;
  background: #120e18;
  color: #fff;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
}

.ut-chips--tight {
  margin-top: 0.25rem;
}

.ut-chips--tight .ut-chip,
.ut-chips--tight a {
  min-height: 2.25rem;
  font-size: 0.82rem;
  padding: 0.3rem 0.65rem;
  border-color: #4a3a5c;
  background: #181022;
}

.ut-side-news {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ut-side-news li {
  margin: 0 0 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #2c2238;
}

.ut-side-news li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.ut-side-news-date {
  display: block;
  color: var(--ut-muted);
  font-size: 0.8rem;
  margin-bottom: 0.15rem;
}

.ut-side-news a {
  font-weight: 700;
  text-decoration: none;
  color: var(--ut-link);
}

.ut-side-news a:hover {
  color: var(--ut-link-hover);
}

/* Interior pages: purple bar titles */
.ut-article-title,
.ut-entity-title {
  color: var(--ut-accent-hot) !important;
}

.ut-btn {
  border-color: var(--ut-accent);
  color: var(--ut-accent-hot);
}

.ut-btn:hover {
  background: var(--ut-accent);
  color: #fff;
}

.ut-rail {
  border-color: #3a2f4a;
}

.ut-rail-title {
  color: var(--ut-accent-hot);
}

@media (max-width: 960px) {
  .ut-stage::before,
  .ut-stage::after {
    display: none;
  }

  .ut-icon-strips,
  .ut-home-columns,
  .ut-portal-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .ut-search {
    order: 3 !important;
    width: 100% !important;
  }

  .ut-search input[type="search"] {
    flex: 1;
    width: auto;
  }

  .ut-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .ut-icon-strips,
  .ut-home-columns,
  .ut-portal-grid {
    grid-template-columns: 1fr;
  }

  .ut-menu {
    justify-content: flex-start;
  }
}

/* 鈥斺€?Approved Main Page scheme (Purple Wiki Hub + lighthouse) 鈥斺€?*/
body.home.ut-body,
body.front-page.ut-body {
  background-color: #08080b;
  background-image: none;
}

.ut-main--scheme {
  max-width: none;
  padding: 0;
  margin: 0;
}

.ut-header--scheme {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #080809 !important;
  border-bottom: 1px solid #1c1428 !important;
}

.ut-header-inner--scheme {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.85rem 1.1rem;
  padding: 0.7rem 1.15rem;
}

.ut-header--scheme .ut-brand {
  display: inline-flex !important;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  color: #fff !important;
  text-decoration: none !important;
  font-family: var(--ut-pixel) !important;
  font-size: 0.68rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.ut-header--scheme .ut-brand-mark {
  width: 1.85rem;
  height: 1.85rem;
  object-fit: contain;
  image-rendering: pixelated;
}

.ut-search--scheme {
  position: relative;
  display: flex !important;
  align-items: center;
  flex: 1 1 16rem;
  max-width: 26rem !important;
  margin: 0 auto !important;
  order: 0 !important;
}

.ut-search--scheme .ut-search-ico {
  position: absolute;
  left: 0.85rem;
  color: #8a8496;
  pointer-events: none;
  font-size: 0.95rem;
}

.ut-search--scheme input[type="search"] {
  width: 100%;
  min-height: 2.4rem;
  padding: 0 1rem 0 2.35rem;
  border: 1px solid #2a2436;
  border-radius: 999px;
  background: #121018;
  color: #e8e0f0;
  font-size: 0.92rem;
}

.ut-search--scheme input[type="search"]::placeholder {
  color: #7a7488;
}

.ut-header--scheme .ut-nav {
  margin-left: 0;
}

.ut-header--scheme .ut-menu {
  justify-content: flex-end;
  gap: 0.15rem 0.9rem;
}

.ut-header--scheme .ut-menu > .menu-item > a {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: #ece6f4;
  min-height: 2.2rem;
}


.ut-home--scheme {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 2.75rem;
  background: #08080b;
}

.ut-sch-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.25rem 1.15rem 0;
}

.ut-sch-columns--rail {
  display: grid;
  grid-template-columns: minmax(17rem, 0.34fr) minmax(0, 0.66fr);
  gap: 1.35rem;
  align-items: start;
}

.ut-sch-rail {
  position: sticky;
  top: 5.1rem;
  animation: ut-sch-rise 0.65s var(--ut-ease) both;
}

.ut-sch-rail-panel {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
  padding: 0 1.25rem 1.4rem;
  border: 1px solid #a353d9;
  border-radius: 0.7rem;
  overflow: hidden;
  background: #1c0d29;
}

.ut-sch-rail-art {
  display: block;
  width: calc(100% + 2.5rem);
  margin: 0 -1.25rem;
  min-height: clamp(13rem, 42vw, 17.5rem);
  border: 0;
  background: #1c0d29;
  overflow: hidden;
}

.ut-sch-rail-art-img,
.ut-sch-rail-art img {
  display: block !important;
  width: 120% !important;
  max-width: none !important;
  height: clamp(13rem, 42vw, 17.5rem) !important;
  min-height: 0;
  margin-left: -10%;
  object-fit: cover;
  object-position: center 22%;
  image-rendering: pixelated;
  background: #1c0d29;
}

.ut-sch-rail-intro {
  text-align: center;
  padding: 0 0.2rem;
}

.ut-sch-rail-title {
  margin: 0 0 0.65rem;
  font-family: var(--ut-pixel);
  font-size: clamp(0.8rem, 1.45vw, 1rem);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.03em;
  color: #fff;
  text-transform: uppercase;
}

.ut-sch-rail-sub {
  margin: 0;
  color: #f4eefb;
  font-size: 0.9rem;
  line-height: 1.5;
}

.ut-sch-rail-divider {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 1rem 0 0.15rem;
  width: 100%;
}

.ut-sch-rail-divider::before,
.ut-sch-rail-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #a353d9;
  opacity: 0.85;
}

.ut-sch-rail-divider-heart {
  flex-shrink: 0;
  color: #e879f9;
  font-size: 0.95rem;
  line-height: 1;
}

.ut-sch-rail-preview {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ut-sch-rail-preview-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 0.05rem;
}

.ut-sch-rail-preview-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #e879f9;
}

.ut-sch-rail-preview-count {
  font-size: 0.88rem;
  font-weight: 700;
  color: #e879f9;
  letter-spacing: 0.02em;
}

.ut-sch-rail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ut-sch-rail-item {
  display: grid;
  grid-template-columns: 1.05rem minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: center;
  padding: 0.48rem 0.05rem;
  border-bottom: 1px solid rgba(163, 83, 217, 0.22);
}

.ut-sch-rail-item:last-child {
  border-bottom: 0;
}

.ut-sch-rail-check {
  width: 0.95rem;
  height: 0.95rem;
  border: 1.5px solid #f4f0fa;
  border-radius: 0.12rem;
  background: transparent;
}

.ut-sch-rail-item-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

.ut-sch-rail-item-place {
  font-size: 0.82rem;
  color: #b39bc9;
  white-space: nowrap;
}

.ut-sch-rail-dash {
  display: block;
  width: 100%;
  margin: 0.35rem 0 0.15rem;
  border: 0;
  border-top: 1px dashed rgba(163, 83, 217, 0.65);
  height: 0;
}

.ut-sch-rail-progress-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: #c9a6e8;
  text-align: center;
}

.ut-sch-rail-star {
  color: #e879f9;
  font-size: 0.9rem;
  line-height: 1;
}

.ut-sch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.85rem;
  padding: 0 1.3rem;
  border-radius: 0.55rem;
  background: #d953cc;
  color: #fff !important;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none !important;
  box-shadow: 0 10px 28px rgba(217, 83, 204, 0.35);
  transition: background 0.15s var(--ut-ease), transform 0.15s var(--ut-ease), box-shadow 0.25s var(--ut-ease);
  animation: ut-sch-pulse 2.8s var(--ut-ease) infinite;
}

.ut-sch-btn:hover {
  background: #e879f9;
  transform: translateY(-1px);
  color: #fff !important;
}

.ut-sch-btn:focus-visible {
  outline: none;
  box-shadow: var(--ut-focus);
}

.ut-sch-btn-heart {
  color: #fff;
}

.ut-sch-btn--rail {
  width: 100%;
  min-height: 3.15rem;
  font-family: var(--ut-font);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.25;
  border-radius: 0.65rem;
  background: #d953cc;
}

.ut-sch-rail-cta {
  margin: 0.25rem 0 0;
}

.ut-sch-rail-more {
  margin: 0.1rem 0 0;
  text-align: center;
}

.ut-sch-rail-more a {
  color: #c9a6e8 !important;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none !important;
}

.ut-sch-rail-more a:hover {
  color: #e879f9 !important;
}
.ut-sch-main {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  min-width: 0;
}

.ut-sch-welcome {
  padding: 0.15rem 0.1rem 0;
}

.ut-sch-welcome-title {
  margin: 0 0 0.75rem;
  font-family: var(--ut-pixel);
  font-size: clamp(0.85rem, 1.55vw, 1.05rem);
  font-weight: 400;
  line-height: 1.5;
  color: #fff;
}

.ut-sch-welcome-lead {
  margin: 0;
  max-width: 52rem;
  color: #d8cee8;
  font-size: 0.98rem;
  line-height: 1.6;
}

.ut-sch-spoiler {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 1.05rem 0 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid #8a4fb8;
  border-radius: 0.35rem;
  background: #10081a;
  color: #ebe3f5;
  font-size: 0.92rem;
  line-height: 1.45;
}

.ut-sch-spoiler-ico {
  color: #e879f9;
  flex-shrink: 0;
  font-size: 1.05rem;
}

.ut-sch-portals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.ut-sch-portal {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
  min-height: 12.5rem;
  padding: 1.15rem 0.85rem 1.15rem;
  border: 1px solid #8b4de3;
  border-radius: 0.65rem;
  background: #0a0014;
  color: #fff !important;
  text-decoration: none !important;
  transition: border-color 0.15s var(--ut-ease), background 0.15s var(--ut-ease), transform 0.15s var(--ut-ease);
}

.ut-sch-portal:hover {
  border-color: #e879f9;
  background: #12081c;
  transform: translateY(-2px);
}

.ut-sch-portal:focus-visible {
  outline: none;
  box-shadow: var(--ut-focus);
}

.ut-sch-portal-ico {
  width: 3.25rem;
  height: 3.25rem;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
  image-rendering: pixelated;
  background: transparent;
  border-radius: 0;
}

.ut-sch-portal-label {
  font-family: var(--ut-pixel);
  font-size: 0.68rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
}

.ut-sch-portal-desc {
  flex: 1;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #c8c0d4;
}

.ut-sch-portal-more {
  margin-top: auto;
  font-size: 0.88rem;
  font-weight: 700;
  color: #8b4de3;
}

.ut-sch-ann {
  padding-top: 0.25rem;
}

.ut-sch-ann-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.ut-sch-ann-title {
  margin: 0;
  font-family: var(--ut-pixel);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.4;
  color: #e879f9;
  text-transform: uppercase;
}

.ut-sch-ann-all {
  font-size: 0.88rem;
  font-weight: 600;
  color: #c77dff !important;
  text-decoration: none !important;
  white-space: nowrap;
}

.ut-sch-ann-all:hover {
  color: #e879f9 !important;
}

.ut-sch-ann-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ut-sch-ann-item {
  margin: 0;
}

.ut-sch-ann-link {
  display: grid;
  grid-template-columns: 3.1rem 1fr;
  gap: 0.85rem;
  align-items: center;
  padding: 0.65rem 0.75rem;
  border: 1px solid #2f1159;
  border-radius: 0.35rem;
  background: #0e0b14;
  text-decoration: none !important;
  color: inherit !important;
  transition: border-color 0.15s var(--ut-ease), background 0.15s var(--ut-ease);
}

.ut-sch-ann-link:hover {
  border-color: #8a4fb8;
  background: #161022;
}

.ut-sch-ann-thumb {
  width: 3.1rem;
  height: 3.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0.25rem;
  background: #0a0610;
  border: 1px solid #6b3fa0;
}

.ut-sch-ann-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}

.ut-sch-ann-thumb-fallback {
  color: #e879f9;
  font-size: 1.15rem;
}

.ut-sch-ann-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ut-sch-ann-item-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.ut-sch-ann-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  font-size: 0.8rem;
  color: #a99bbb;
}

.ut-sch-ann-empty {
  margin: 0;
  color: #a99bbb;
  font-size: 0.92rem;
}

.ut-sch-buybox-title {
  margin: 0 0 0.85rem;
  font-family: var(--ut-pixel);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.4;
  color: #e879f9;
  text-transform: uppercase;
}

.ut-sch-buy--cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.ut-sch-buy-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3.25rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #5a5a5a;
  border-radius: 0.35rem;
  background: #000;
  color: #fff !important;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: border-color 0.15s var(--ut-ease), background 0.15s var(--ut-ease), transform 0.15s var(--ut-ease);
}

.ut-sch-buy-item:hover {
  border-color: #e879f9;
  background: #0e0b14;
  transform: translateY(-1px);
  color: #fff !important;
}

.ut-sch-buy-ico {
  display: block;
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  object-fit: contain;
  object-position: center;
  image-rendering: pixelated;
  background: transparent;
  border: 0;
  padding: 0;
}

.ut-sch-buy-label {
  flex: 1;
  min-width: 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ut-sch-buy-ext {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.85;
  color: #fff;
  line-height: 0;
}

.ut-sch-buy-ext svg {
  display: block;
}

.ut-sch-buybox-note {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: #8f849f;
}

@keyframes ut-sch-pulse {
  0%, 100% { box-shadow: 0 10px 28px rgba(232, 121, 249, 0.35); }
  50% { box-shadow: 0 12px 34px rgba(232, 121, 249, 0.55); }
}

@keyframes ut-sch-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .ut-sch-columns--rail {
    grid-template-columns: 1fr;
  }

  .ut-sch-rail {
    position: static;
    order: -1;
  }

  .ut-sch-portals {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .ut-header-inner--scheme {
    flex-wrap: wrap;
  }

  .ut-search--scheme {
    order: 3;
    max-width: none !important;
    width: 100%;
    flex-basis: 100%;
  }

  .ut-sch-portals,
  .ut-sch-buy--cards {
    grid-template-columns: 1fr;
  }

  .ut-sch-portal {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ut-sch-btn,
  .ut-sch-rail {
    animation: none !important;
  }

  .ut-sch-btn:hover,
  .ut-sch-portal:hover,
  .ut-sch-buy-item:hover {
    transform: none;
  }
}
