:root {
  color-scheme: dark;
  --bg: #14070d;
  --bg-raised: #1d0a13;
  --panel: rgba(31, 10, 20, 0.92);
  --panel-soft: rgba(44, 12, 26, 0.78);
  --pink: #ff4778;
  --pink-bright: #ff638a;
  --pink-muted: #d4869e;
  --text: #fff3f6;
  --muted: #c5a9b2;
  --line: rgba(255, 93, 136, 0.25);
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --display: Impact, "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 85% 13%, rgba(115, 17, 50, .24), transparent 37rem),
    linear-gradient(155deg, #1b0811 0%, var(--bg) 47%, #10060b 100%);
  color: var(--text);
  font-family: "Arial Narrow", "Roboto Condensed", "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: .14;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}
button, input { font: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

.ambient {
  position: absolute;
  z-index: -1;
  width: 21rem;
  height: 21rem;
  border: 1px solid rgba(255, 71, 120, .08);
  border-radius: 50%;
  pointer-events: none;
}
.ambient-one { top: 28rem; right: -14rem; box-shadow: 0 0 0 2.8rem rgba(255,71,120,.025), 0 0 0 5.6rem rgba(255,71,120,.018); }
.ambient-two { top: 78rem; left: -17rem; width: 26rem; height: 26rem; }

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(100% - 56px, 1120px);
  min-height: 92px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.brand-mark { display: block; width: 20px; height: 20px; overflow: hidden; border: 1px solid rgba(255,118,18,.55); background: #12080b; box-shadow: 0 0 8px rgba(255,106,12,.18); }
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: cover; }
.brand-name, .footer-brand {
  font-family: var(--display);
  font-size: 1.28rem;
  letter-spacing: .09em;
  font-weight: 900;
}
.brand-name b, .footer-brand b { color: var(--pink); }
.back-button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .1em;
  transition: background .2s ease, border-color .2s ease;
}
.back-button:hover { border-color: var(--pink); background: rgba(255,71,120,.08); }
.back-button span { margin-right: 6px; color: var(--pink); font-size: 1rem; }

.catalog-tabs { display: grid; width: min(100% - 56px, 1120px); margin: 0 auto; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; padding: 14px 0 0; }
.catalog-tab { position: relative; display: flex; min-width: 0; min-height: 62px; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid rgba(255,93,136,.24); border-left: 3px solid rgba(255,93,136,.42); background: linear-gradient(115deg,rgba(255,71,120,.075),rgba(22,7,14,.85)); color: #d4b2bd; font-family: var(--mono); font-size: .66rem; font-weight: 700; letter-spacing: .09em; text-decoration: none; transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease; }
.catalog-tab:hover { transform: translateY(-2px); border-color: rgba(255,99,138,.6); border-left-color: var(--pink); background: linear-gradient(115deg,rgba(255,71,120,.15),rgba(22,7,14,.9)); color: var(--text); box-shadow: 0 7px 18px rgba(0,0,0,.18); }
.catalog-tab[aria-current="page"] { border-color: rgba(255,99,138,.66); border-left-color: var(--pink-bright); background: linear-gradient(115deg,rgba(255,71,120,.24),rgba(43,8,21,.9)); color: #fff3f6; box-shadow: inset 0 0 0 1px rgba(255,99,138,.08),0 8px 21px rgba(255,29,91,.09); }
.catalog-tab-icon { display: grid; width: 31px; height: 31px; flex: 0 0 31px; place-items: center; border: 1px solid rgba(255,99,138,.32); background: rgba(255,71,120,.1); color: var(--pink-bright); font-family: var(--display); font-size: 1rem; }
.catalog-tab-label { min-width: 0; flex: 1; }
.tab-count { display: grid; min-width: 24px; height: 24px; margin-left: auto; padding: 0 5px; place-items: center; border: 1px solid rgba(255,71,120,.36); background: rgba(255,71,120,.09); color: var(--pink-bright); font-size: .56rem; text-align: center; }
.discord-menu-tab { border-color: rgba(255,71,120,.56); border-left-color: var(--pink-bright); background: linear-gradient(115deg,rgba(255,71,120,.18),rgba(48,8,22,.5)); color: #ffe5ec; }
.discord-menu-tab .catalog-tab-icon { border-color: rgba(255,99,138,.46); background: rgba(255,71,120,.16); color: #ff9ab4; }
.discord-menu-tab:hover { border-color: var(--pink-bright); border-left-color: var(--pink-bright); background: linear-gradient(115deg,rgba(255,71,120,.28),rgba(48,8,22,.6)); color: white; box-shadow: 0 8px 22px rgba(0,0,0,.2),0 0 18px rgba(255,71,120,.12); }
.discord-external-mark { margin-left: auto; color: var(--pink-bright); font-size: 1rem; }

.page-shell { width: min(100% - 56px, 1120px); min-height: calc(100vh - 172px); margin: 0 auto; }
.view { padding: 0 0 4rem; animation: view-in .32s ease both; }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.breadcrumb {
  display: flex;
  gap: 13px;
  padding: 27px 0 0;
  align-items: center;
  color: var(--pink-muted);
  font-family: var(--mono);
  font-size: .82rem;
}
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb-slash { color: #894055; }
.hero { max-width: 760px; padding: 74px 0 78px; }
.hero-home { display: block; max-width: 760px; }
.hero-home-copy { min-width: 0; max-width: 760px; }
.eyebrow, .section-label h2, .game-card-top, .game-card-footer, .script-count, .results-count, .script-status, .site-footer > span {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
}
.eyebrow { margin: 0 0 21px; color: var(--pink-bright); }
.eyebrow > span:first-child { padding-right: 7px; }
.eyebrow-divider { padding: 0 7px; color: #8e5265; }
h1 {
  margin: 0;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(3.6rem, 10vw, 6.8rem);
  font-weight: 900;
  letter-spacing: .018em;
  line-height: .86;
}
h1 span { color: var(--pink); }
.game-title { max-width: 100%; font-size: clamp(3.1rem, 8vw, 5.8rem); line-height: .96; overflow-wrap: normal; word-break: normal; text-wrap: balance; }
.hero-copy { max-width: 690px; margin: 31px 0 0; color: var(--muted); font-size: clamp(1.12rem, 2vw, 1.48rem); line-height: 1.62; }

.section-label { display: flex; gap: 20px; align-items: center; margin-bottom: 24px; }
.section-label h2 { flex: 0 0 auto; margin: 0; color: var(--pink-muted); font-size: .7rem; }
.label-line { display: block; height: 1px; flex: 1; background: linear-gradient(90deg, rgba(255,71,120,.62), transparent); }
.catalog-toolbar { display: flex; gap: 24px; align-items: center; justify-content: space-between; margin-bottom: 17px; }
.catalog-toolbar .section-label { width: 100%; margin: 0; }
.game-search-box { width: min(280px, 42%); }
.game-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.game-card {
  position: relative;
  display: flex;
  min-height: 340px;
  flex-direction: column;
  overflow: hidden;
  padding: 25px 27px 23px;
  border: 1px solid rgba(255, 84, 130, .42);
  background: linear-gradient(135deg, rgba(56, 11, 30, .95), rgba(24, 8, 16, .95) 68%);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.game-card::before {
  position: absolute;
  top: -125px;
  right: -35px;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(255, 98, 142, .13);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(255,71,120,.025), 0 0 0 68px rgba(255,71,120,.018);
  content: "";
}
.game-card::after { position: absolute; inset: 0 auto auto 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--pink), rgba(255,71,120,.1)); content: ""; }
.game-card:hover { transform: translateY(-4px); border-color: var(--pink); box-shadow: 0 20px 55px rgba(0,0,0,.22), 0 0 30px rgba(255,71,120,.08); }
.game-card-top, .game-card-content, .game-card-footer { position: relative; z-index: 1; }
.game-card-top { display: flex; justify-content: space-between; align-items: center; color: var(--pink-muted); }
.game-card-top .eyebrow { margin: 0; }
.script-count { color: #f1a8bb; font-size: .65rem; }
.game-card-content { margin: auto 0; padding: 30px 0 28px; }
.game-emoji { display: block; margin-bottom: 9px; font-size: 1.65rem; line-height: 1; }
.game-number { display: block; margin-bottom: 7px; color: var(--pink); font-family: var(--display); font-size: clamp(3.3rem, 8vw, 4.4rem); line-height: .95; }
.game-card h3 { margin: 0; font-family: var(--display); font-size: clamp(1.5rem, 2.5vw, 2.15rem); letter-spacing: .04em; overflow-wrap: anywhere; }
.game-card-content p { max-width: 630px; margin: 15px 0 0; color: var(--muted); font-size: 1.08rem; line-height: 1.55; }
.game-card-footer { display: flex; min-height: 50px; align-items: flex-end; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 17px; color: #f0a6ba; }
.arrow-box { display: grid; width: 42px; height: 42px; margin-bottom: -4px; place-items: center; border: 1px solid var(--pink); border-radius: 50%; color: var(--pink); font-family: sans-serif; font-size: 1.2rem; transition: color .2s, background .2s; }
.game-card:hover .arrow-box { background: var(--pink); color: var(--bg); }
.catalog-note { display: flex; align-items: center; gap: 10px; margin: 27px 0 0; color: #957580; font-family: var(--mono); font-size: .68rem; letter-spacing: .04em; }
.note-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 12px rgba(255,71,120,.6); }

.game-hero { padding-bottom: 56px; }
.collection-hero { padding-bottom: 56px; }
.scripts-toolbar { display: flex; gap: 24px; align-items: center; justify-content: space-between; margin-bottom: 17px; }
.scripts-label { width: 100%; margin: 0; }
.search-box { display: flex; width: min(260px, 45%); min-height: 43px; flex: 0 0 auto; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid var(--line); background: rgba(22,7,14,.7); }
.search-box:focus-within { border-color: var(--pink); box-shadow: 0 0 0 2px rgba(255,71,120,.08); }
.search-icon { color: var(--pink); font-size: 1.45rem; line-height: 1; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; }
.search-box input::placeholder { color: #966b79; }
.results-count { margin: 0 0 16px; color: #a77b89; font-size: .64rem; letter-spacing: .12em; }
.script-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.script-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 84, 130, .28);
  background: linear-gradient(145deg, rgba(34, 10, 20, .94), rgba(23, 8, 15, .96));
}
.script-card::before { position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--pink); content: ""; opacity: .85; }
.script-card.is-pending::before { background: #986575; }
.script-card-head { display: flex; min-height: 82px; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 18px 15px 22px; border-bottom: 1px solid rgba(255,84,130,.16); }
.script-title-wrap { min-width: 0; }
.script-game-link { display: block; margin-bottom: 6px; color: var(--pink-muted); font-family: var(--mono); font-size: .6rem; letter-spacing: .08em; text-decoration: none; }
.script-game-link:hover { color: var(--text); }
.script-index { display: block; margin-bottom: 5px; color: #a87888; font-family: var(--mono); font-size: .58rem; letter-spacing: .16em; }
.script-card h3 { overflow-wrap: anywhere; margin: 0; color: var(--text); font-family: var(--display); font-size: 1.35rem; letter-spacing: .04em; }
.script-status { flex: 0 0 auto; padding: 6px 7px; border: 1px solid rgba(255,71,120,.32); color: var(--pink-bright); font-size: .52rem; letter-spacing: .1em; }
.script-card.is-pending .script-status { border-color: rgba(190,150,163,.26); color: #bd98a4; }
.script-code-wrap { display: flex; min-height: 134px; flex: 1; flex-direction: column; padding: 15px 17px 14px 22px; }
.script-code { display: block; overflow: auto; max-height: 160px; margin: 0; color: #eeb5c4; font-family: var(--mono); font-size: .71rem; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; scrollbar-color: #79364d transparent; }
.script-pending-copy { margin: auto 0; color: #b18e99; font-size: .94rem; line-height: 1.5; }
.script-card-footer { display: flex; min-height: 60px; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px 12px 22px; border-top: 1px solid rgba(255,84,130,.16); }
.script-note { margin: 0; color: #9f7986; font-family: var(--mono); font-size: .58rem; letter-spacing: .04em; }
.script-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.favorite-button { display: grid; width: 38px; min-height: 36px; padding: 0; place-items: center; border: 1px solid rgba(255,71,120,.38); background: transparent; color: #e4b5c2; cursor: pointer; font-size: 1.16rem; line-height: 1; transition: color .18s ease, background .18s ease, border-color .18s ease; }
.favorite-button:hover, .favorite-button.is-favorite { border-color: var(--pink); background: rgba(255,71,120,.12); color: var(--pink-bright); }
.copy-button { min-height: 36px; padding: 0 12px; border: 1px solid rgba(255,71,120,.65); background: rgba(255,71,120,.1); color: #ffd8e2; cursor: pointer; font-family: var(--mono); font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transition: background .18s ease, color .18s ease, border .18s ease; }
.copy-button:hover:not(:disabled) { background: var(--pink); color: #1a0710; }
.copy-button:focus-visible, .favorite-button:focus-visible, .back-button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid #ffd2df; outline-offset: 3px; }
.copy-button:disabled { border-color: rgba(190,150,163,.2); background: rgba(190,150,163,.05); color: #81636e; cursor: not-allowed; }
.empty-state { margin: 30px 0; padding: 26px; border: 1px dashed var(--line); color: var(--muted); text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; clip-path: inset(50%); }
.toast { position: fixed; z-index: 5; right: 22px; bottom: 24px; max-width: calc(100vw - 44px); padding: 13px 16px; transform: translateY(14px); border: 1px solid var(--pink); background: #2c0a19; color: #fff1f5; font-family: var(--mono); font-size: .72rem; letter-spacing: .07em; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.is-visible { transform: translateY(0); opacity: 1; }
.site-footer { display: flex; width: min(100% - 56px, 1120px); min-height: 80px; margin: 0 auto; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); }
.footer-brand { font-size: .9rem; text-decoration: none; }
.site-footer > span { color: #8d6674; font-size: .57rem; letter-spacing: .12em; text-align: right; }

@media (max-width: 720px) {
  .site-header, .page-shell, .site-footer { width: calc(100% - 32px); }
  .site-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; min-height: 0; padding: 12px 0 10px; row-gap: 10px; }
  .back-button:not([hidden]) { min-height: 39px; padding: 0 10px; font-size: .53rem; }
  .catalog-tabs { width: calc(100% - 32px); grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; padding-top: 11px; }
  .catalog-tab { min-height: 70px; flex-direction: column; justify-content: center; gap: 6px; padding: 8px 3px; font-size: .55rem; letter-spacing: .025em; text-align: center; }
  .catalog-tab-icon { width: 26px; height: 26px; flex-basis: 26px; font-size: .82rem; }
  .catalog-tab-label { max-width: 100%; white-space: nowrap; }
  .tab-count { position: absolute; top: 3px; right: 3px; min-width: 18px; height: 18px; padding: 0 3px; font-size: .43rem; }
  .discord-external-mark { display: none; }
  .brand { gap: 7px; }
  .brand-mark { width: 18px; height: 18px; }
  .brand-name { font-size: 1.08rem; }
  .page-shell { min-height: calc(100vh - 145px); }
  .breadcrumb { padding-top: 23px; font-size: .72rem; }
  .hero { padding: 57px 0 61px; }
  .eyebrow { font-size: .62rem; letter-spacing: .16em; }
  h1 { font-size: clamp(2.8rem, 13vw, 4.4rem); }
  .game-title { font-size: clamp(2.5rem, 10vw, 4.1rem); }
  .hero-copy { margin-top: 24px; font-size: 1.1rem; }
  .section-label { gap: 12px; }
  .section-label h2 { font-size: .62rem; letter-spacing: .12em; }
  .catalog-toolbar { flex-direction: column; align-items: stretch; gap: 17px; }
  .game-search-box { width: 100%; }
  .game-list { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .game-card { min-height: 295px; padding: 25px 22px 20px; }
  .game-card-top { font-size: .62rem; }
  .script-count { font-size: .55rem; }
  .game-card-content p { font-size: 1rem; }
  .game-card h3 { font-size: 2rem; }
  .scripts-toolbar { flex-direction: column; align-items: stretch; gap: 17px; }
  .search-box { width: 100%; }
  .script-list { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .script-card-head { min-height: 74px; }
  .script-card-footer { gap: 8px; padding-right: 11px; padding-left: 17px; }
  .script-note { max-width: 130px; font-size: .52rem; }
  .script-actions { gap: 6px; }
  .favorite-button { width: 35px; min-height: 36px; }
  .copy-button { padding: 0 9px; font-size: .57rem; }
  .script-code-wrap { min-height: 115px; }
  .script-code { max-height: 190px; font-size: .68rem; }
  .site-footer { min-height: 70px; }
}

@media (min-width: 1100px) {
  .game-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* Entry cards and executor directory */
.header-controls { display: flex; align-items: center; gap: 9px; }
.theme-toggle { display: inline-flex; min-height: 40px; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid var(--line); background: rgba(255,71,120,.07); color: var(--pink-bright); cursor: pointer; font-family: var(--mono); font-size: .6rem; font-weight: 700; letter-spacing: .08em; }
.theme-toggle:hover { border-color: var(--pink); background: rgba(255,71,120,.14); }
.theme-toggle-icon { font-family: sans-serif; font-size: 1.05rem; }
.theme-toggle:focus-visible, .category-filter:focus-visible, .platform-card:focus-visible { outline: 2px solid #ffd2df; outline-offset: 3px; }
.catalog-tabs { grid-template-columns: repeat(4,minmax(0,1fr)); }
.home-view { padding-top: 40px; }
.home-landing-heading { display: flex; align-items: center; gap: 20px; margin-bottom: 22px; }
.home-landing-heading .eyebrow { flex: 0 0 auto; margin: 0; }
.home-landing-heading .label-line { flex: 1; }
.home-area-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.game-card.home-area-card { min-height: 520px; padding: 34px; gap: 0; color: var(--text); }
.home-area-card .home-area-index { position: relative; z-index: 1; margin: 0 0 36px; color: var(--pink-muted); }
.home-area-icon { position: relative; z-index: 1; display: grid; width: 100px; height: 100px; margin-bottom: 30px; place-items: center; border: 1px solid rgba(255,99,138,.4); background: rgba(255,71,120,.08); color: var(--pink-bright); font-family: var(--display); font-size: 2.25rem; font-weight: 900; }
.home-area-content { position: relative; z-index: 1; display: block; }
.home-area-content strong { display: block; margin-bottom: 14px; color: var(--text); font-family: var(--display); font-size: clamp(2.1rem,5vw,3.2rem); letter-spacing: .025em; line-height: 1; }
.home-area-content > span { display: block; max-width: 560px; color: var(--muted); font-size: clamp(1.08rem,2vw,1.35rem); line-height: 1.6; }
.home-area-tags { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 10px; margin: 25px 0 22px; }
.home-area-tags > span { padding: 10px 13px; border: 1px solid rgba(255,93,136,.27); color: #e4a5b7; font-family: var(--mono); font-size: .67rem; font-weight: 700; letter-spacing: .09em; }
.home-area-card .home-area-footer { margin-top: auto; min-height: 58px; align-items: center; padding-top: 14px; }
.home-area-card .home-area-footer > span:first-child { color: #f0a6ba; }
.executors-hero { padding: 54px 0 38px; }
.executors-title { font-size: clamp(3.2rem,8vw,5.8rem); line-height: .96; }
.platform-section-label { margin: 0 0 20px; }
.platform-card-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin-bottom: 25px; }
button.game-card.platform-card { width: 100%; min-height: 460px; align-items: stretch; padding: 31px 34px 26px; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.platform-index { position: relative; z-index: 1; margin: 0 0 36px; color: var(--pink-muted); }
.platform-symbol { position: relative; z-index: 1; display: block; margin-bottom: 23px; color: var(--pink); font-family: var(--display); font-size: clamp(3.5rem,8vw,5rem); font-weight: 900; line-height: .95; }
.platform-card-title { position: relative; z-index: 1; display: block; color: var(--text); font-family: var(--display); font-size: clamp(1.7rem,3vw,2.45rem); font-weight: 900; letter-spacing: .03em; line-height: 1.06; }
.platform-card-description { position: relative; z-index: 1; display: block; margin: 17px 0 24px; color: var(--muted); font-size: 1.15rem; line-height: 1.55; }
.platform-card-footer { margin-top: auto; align-items: center; }
.external-links-notice { margin: 16px 0 35px; padding: 15px 17px; border-left: 3px solid var(--pink); background: rgba(255,71,120,.08); color: var(--muted); font-size: .9rem; line-height: 1.55; }
.resource-group { scroll-margin-top: 20px; margin: 35px 0 0; }
.resource-group .section-label { margin-bottom: 18px; }
.resource-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.resource-card { display: flex; min-width: 0; flex-direction: column; padding: 19px 20px 14px; border: 1px solid rgba(255,84,130,.35); border-left: 3px solid var(--pink); background: linear-gradient(145deg,rgba(34,10,20,.94),rgba(23,8,15,.96)); }
.resource-card h3 { margin: 0 0 12px; color: var(--text); font-family: var(--display); font-size: 1.35rem; letter-spacing: .04em; }
.resource-card > a { display: flex; min-height: 42px; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid rgba(255,84,130,.15); color: #e7b0bf; font-size: .93rem; line-height: 1.3; text-decoration: none; }
.resource-card > a:hover { color: var(--pink-bright); }
.resource-card > a span { flex: 0 0 auto; color: var(--pink); }
.resource-card.is-discontinued { border-left-color: #8d6774; }
.resource-retired { display: block; padding: 11px 0; border-top: 1px solid rgba(255,84,130,.13); color: #b28d99; font-family: var(--mono); font-size: .8rem; letter-spacing: .08em; text-decoration: line-through; }
.category-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 18px; }
.category-filter { min-height: 38px; padding: 0 13px; border: 1px solid rgba(255,93,136,.27); background: rgba(31,10,20,.76); color: #d4a2b1; cursor: pointer; font-family: var(--mono); font-size: .62rem; font-weight: 700; letter-spacing: .08em; transition: background .18s,border-color .18s,color .18s,transform .18s; }
.category-filter:hover { transform: translateY(-1px); border-color: var(--pink); color: var(--text); }
.category-filter.is-active { border-color: var(--pink); background: rgba(255,71,120,.18); color: var(--pink-bright); box-shadow: inset 0 0 0 1px rgba(255,99,138,.09); }
.copy-button.is-loading { display: inline-flex; align-items: center; gap: 8px; cursor: progress; opacity: .82; }
.copy-button.is-loading::before { width: 12px; height: 12px; flex: 0 0 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; content: ""; animation: copy-spin .7s linear infinite; }
@keyframes copy-spin { to { transform: rotate(360deg); } }

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4edf0;
  --bg-raised: #fff9fb;
  --panel: rgba(255,249,251,.96);
  --panel-soft: rgba(255,239,244,.9);
  --pink: #cb2858;
  --pink-bright: #d53263;
  --pink-muted: #87364f;
  --text: #29131c;
  --muted: #654550;
  --line: rgba(158,44,79,.24);
}
:root[data-theme="light"] body { background: radial-gradient(ellipse at 85% 13%,rgba(203,40,88,.13),transparent 37rem),linear-gradient(155deg,#fff8fa 0%,var(--bg) 47%,#efe3e8 100%); color: var(--text); }
:root[data-theme="light"] body::before { opacity: .08; background-image: linear-gradient(rgba(74,18,37,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(74,18,37,.055) 1px,transparent 1px); }
:root[data-theme="light"] .catalog-tab { background: linear-gradient(115deg,rgba(203,40,88,.06),rgba(255,255,255,.92)); color: #67404d; }
:root[data-theme="light"] .catalog-tab[aria-current="page"] { background: linear-gradient(115deg,rgba(203,40,88,.14),rgba(255,255,255,.98)); color: #2b131c; }
:root[data-theme="light"] .discord-menu-tab { background: linear-gradient(115deg,rgba(203,40,88,.12),rgba(255,246,249,.95)); color: #451527; }
:root[data-theme="light"] .game-card { background: linear-gradient(135deg,rgba(255,255,255,.98),rgba(249,233,239,.97) 68%); }
:root[data-theme="light"] .script-card { background: linear-gradient(145deg,rgba(255,255,255,.98),rgba(249,237,241,.98)); }
:root[data-theme="light"] .script-card-head,.resource-card > a { border-color: rgba(158,44,79,.16); }
:root[data-theme="light"] .script-code { color: #603446; }
:root[data-theme="light"] .script-note,.resource-card > a { color: #694451; }
:root[data-theme="light"] .script-status { color: #a51b47; }
:root[data-theme="light"] .search-box { background: rgba(255,255,255,.82); }
:root[data-theme="light"] .search-box input { color: #29131c; }
:root[data-theme="light"] .search-box input::placeholder { color: #8a5e6e; }
:root[data-theme="light"] .category-filter { background: rgba(255,255,255,.8); color: #67404d; }
:root[data-theme="light"] .category-filter.is-active { background: rgba(203,40,88,.12); color: #a51b47; }
:root[data-theme="light"] .resource-card { background: linear-gradient(145deg,rgba(255,255,255,.98),rgba(249,237,241,.98)); }
:root[data-theme="light"] .external-links-notice { background: rgba(203,40,88,.07); }
:root[data-theme="light"] .theme-toggle { background: rgba(203,40,88,.08); }
:root[data-theme="light"] .toast { border-color: #b5224e; background: #fff8fa; color: #29131c; }
:root[data-theme="light"] .catalog-note { color: #704d59; }

@media (max-width: 720px) {
  .header-controls { gap: 6px; }
  .theme-toggle { width: 40px; min-height: 39px; justify-content: center; padding: 0; }
  .theme-toggle-label { display: none; }
  .catalog-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-view { padding-top: 28px; }
  .home-landing-heading { gap: 12px; margin-bottom: 16px; }
  .home-landing-heading .eyebrow { font-size: .59rem; letter-spacing: .13em; }
  .home-area-list,.platform-card-list { grid-template-columns: minmax(0,1fr); gap: 13px; }
  .game-card.home-area-card { min-height: 0; padding: 25px 22px 22px; }
  .home-area-card .home-area-index { margin-bottom: 26px; font-size: .6rem; }
  .home-area-icon { width: 76px; height: 76px; margin-bottom: 23px; font-size: 1.8rem; }
  .home-area-content strong { font-size: 2.5rem; }
  .home-area-content > span { font-size: 1.08rem; }
  .home-area-tags { margin: 20px 0 16px; }
  .home-area-tags > span { padding: 8px 10px; font-size: .59rem; }
  .executors-hero { padding: 42px 0 32px; }
  .executors-title { font-size: clamp(3rem,14vw,4.4rem); }
  button.game-card.platform-card { min-height: 400px; padding: 25px 22px 21px; }
  .platform-index { margin-bottom: 28px; font-size: .6rem; }
  .platform-symbol { margin-bottom: 18px; font-size: 4.2rem; }
  .platform-card-title { font-size: 2rem; }
  .platform-card-description { font-size: 1.08rem; }
  .resource-grid { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .resource-group { scroll-margin-top: 12px; margin-top: 29px; }
  .resource-card { padding: 17px 17px 12px; }
  .external-links-notice { margin-bottom: 28px; font-size: .82rem; }
  .category-filters { gap: 7px; margin-bottom: 15px; }
  .category-filter { min-height: 36px; padding: 0 10px; font-size: .56rem; }
}

@media (min-width: 721px) and (max-width: 1050px) {
  .resource-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .game-card.home-area-card { min-height: 470px; padding: 28px; }
  button.game-card.platform-card { min-height: 420px; padding: 27px; }
}

:root[data-theme="light"] .home-area-tags > span { border-color: rgba(135,54,79,.42); color: #71344a; }
:root[data-theme="light"] .home-area-card .home-area-footer > span:first-child,
:root[data-theme="light"] .platform-card-footer > span:first-child { color: #87243d; }
:root[data-theme="light"] .home-area-index,
:root[data-theme="light"] .platform-index { color: #7f2e48; }
:root[data-theme="light"] .eyebrow,
:root[data-theme="light"] .script-index { color: #9d2448; }
:root[data-theme="light"] .resource-card > a span { color: #a51b47; }


/* Keep the first landing screen focused on the two primary choices. */
body.is-landing .catalog-tabs,
body.is-landing .header-controls { display: none; }
body.is-landing .site-header { justify-content: flex-start; }
