:root {
  --bg-0: #020806;
  --bg-1: #04140f;
  --bg-2: #06271c;
  --bg-vignette: rgba(1, 7, 5, 0.7);
  --bg-grid: rgba(109, 255, 175, 0.035);
  --line-soft: rgba(110, 255, 178, 0.16);
  --line-mid: rgba(110, 255, 178, 0.42);
  --line-hard: rgba(110, 255, 178, 0.72);
  --accent: #79ffc3;
  --accent-strong: #24d185;
  --accent-cyan: #45ff8d;
  --accent-cyan-soft: rgba(69, 255, 141, 0.38);
  --text-main: #dcfff0;
  --text-soft: #9ecfba;
  --text-dim: #6ca990;
  --warn: #dcf87e;
  --danger: #ff9e9e;
  --panel: rgba(5, 23, 15, 0.65);
  --panel-strong: rgba(7, 27, 18, 0.82);
  --shadow-main: 0 22px 54px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 8px 32px rgba(31, 185, 120, 0.16);
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--text-main);
  font-family: "Manrope", "Segoe UI", sans-serif;
  scrollbar-width: thin;
  scrollbar-color: rgba(82, 255, 154, 0.84) rgba(4, 22, 15, 0.78);
}

body {
  position: relative;
  overflow-x: hidden;
  background-color: var(--bg-0);
  background-image:
    radial-gradient(95% 70% at 12% -12%, rgba(54, 154, 110, 0.18), transparent 72%),
    radial-gradient(85% 62% at 100% 8%, rgba(11, 85, 59, 0.28), transparent 68%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg-1) 44%, var(--bg-0) 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

*::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

*::-webkit-scrollbar-track {
  background: linear-gradient(180deg, rgba(6, 28, 18, 0.82), rgba(3, 14, 9, 0.9));
  border-left: 1px solid rgba(108, 255, 174, 0.11);
}

*::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: 2px solid rgba(3, 15, 10, 0.94);
  background: linear-gradient(180deg, rgba(41, 188, 120, 0.95), rgba(24, 132, 83, 0.95));
  box-shadow: inset 0 0 0 1px rgba(136, 255, 198, 0.18), 0 0 16px rgba(88, 255, 161, 0.25);
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(61, 225, 143, 0.98), rgba(28, 149, 94, 0.98));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle at center, transparent 42%, var(--bg-vignette) 100%);
}

#matrixCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 0;
  opacity: 0.2;
  pointer-events: none;
}

.scanlines,
.noise,
.matrix-dimmer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.scanlines {
  z-index: 1;
  background: repeating-linear-gradient(
    to bottom,
    rgba(10, 255, 141, 0.03) 0,
    rgba(10, 255, 141, 0.03) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.16;
}

.noise {
  z-index: 1;
  background-image: radial-gradient(rgba(122, 255, 173, 0.12) 0.35px, transparent 0.35px);
  background-size: 4px 4px;
  opacity: 0.018;
}

.matrix-dimmer {
  z-index: 3;
  background: radial-gradient(
    ellipse at center,
    rgba(2, 10, 7, 0.66) 0%,
    rgba(2, 10, 7, 0.38) 44%,
    rgba(2, 10, 7, 0.08) 100%
  );
}

.top-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 1px;
  width: 0;
  z-index: 30;
  background: rgba(89, 214, 139, 0.55);
  box-shadow: none;
  transition: width 150ms linear;
}

.fx-off #matrixCanvas,
.fx-off .scanlines,
.fx-off .noise,
.fx-off .matrix-dimmer,
.fx-off .top-progress {
  display: none;
}

.fx-off .topbar,
.fx-off .game-card,
.fx-off .guide-panel,
.fx-off .landing-card,
.fx-off .control-bar {
  backdrop-filter: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px clamp(16px, 2.8vw, 42px);
  border-bottom: 1px solid rgba(109, 255, 175, 0.18);
  background: rgba(2, 12, 8, 0.7);
  backdrop-filter: blur(5px);
}

.topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(96, 255, 161, 0.62), transparent);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
}

.brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 0 9px rgba(121, 255, 195, 0.32));
}

.brand-text {
  font-family: "Russo One", "Manrope", sans-serif;
  letter-spacing: 0.09em;
  font-size: 0.95rem;
}

.topbar-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(7, 28, 18, 0.84);
  color: var(--text-soft);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(121, 255, 195, 0.8);
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(7, 29, 18, 0.85);
  box-shadow: inset 0 0 22px rgba(98, 255, 172, 0.08);
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-soft);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
  min-width: 48px;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: 220ms ease;
}

.lang-btn:hover {
  color: var(--text-main);
  text-shadow: 0 0 12px rgba(96, 255, 161, 0.52);
}

.lang-btn.active {
  background: linear-gradient(120deg, rgba(18, 124, 78, 0.96), rgba(76, 242, 145, 0.44));
  color: #effff8;
  box-shadow: 0 0 18px rgba(88, 255, 161, 0.28);
}

.app-shell {
  position: relative;
  z-index: 4;
  width: min(1360px, 100% - 34px);
  margin: 0 auto;
  padding: clamp(30px, 4vw, 54px) 0 48px;
}

.hero {
  position: relative;
  margin-bottom: 26px;
  padding: 8px 2px 2px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40px -20px auto;
  height: 200px;
  pointer-events: none;
  background: radial-gradient(circle at 15% 50%, rgba(31, 187, 121, 0.2), transparent 68%);
  filter: blur(22px);
  z-index: -1;
}

.kicker {
  margin: 0;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.73rem;
  font-family: "JetBrains Mono", monospace;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Russo One", "Manrope", sans-serif;
  letter-spacing: 0.02em;
}

h1 {
  margin-top: 10px;
  font-size: clamp(1.88rem, 4.2vw, 3.15rem);
  line-height: 1.08;
}

.subtitle {
  margin: 12px 0 0;
  color: var(--text-soft);
  font-size: 1.02rem;
}

.hero-console {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(103, 255, 164, 0.32);
  background: rgba(5, 20, 13, 0.84);
  color: #b7e9d3;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.86rem;
}

.console-prompt {
  color: var(--accent-cyan);
}

.console-cursor {
  width: 8px;
  height: 1.1em;
  background: var(--accent-cyan);
  display: inline-block;
  animation: blink 1s steps(1, end) infinite;
}

.hero-meta {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-pill {
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--text-dim);
  background: rgba(5, 18, 12, 0.8);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.control-bar {
  margin-bottom: 22px;
  display: grid;
  grid-template-columns: 1.4fr minmax(150px, 0.8fr) minmax(170px, 0.85fr);
  gap: 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 10px;
  background: rgba(6, 23, 15, 0.72);
  box-shadow: var(--shadow-glow);
  backdrop-filter: none;
}

.control-input,
.control-select {
  width: 100%;
  border: 1px solid rgba(102, 255, 172, 0.18);
  border-radius: 10px;
  background: rgba(5, 20, 13, 0.82);
  color: var(--text-main);
  font-family: "Manrope", sans-serif;
  font-size: 0.9rem;
  padding: 10px 12px;
  outline: none;
  transition: 180ms ease;
}

.control-input::placeholder {
  color: #7ba892;
}

.control-input:focus,
.control-select:focus {
  border-color: var(--accent-cyan-soft);
  box-shadow: 0 0 0 2px rgba(102, 255, 159, 0.2);
}

.landing-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xl);
  padding: clamp(20px, 3vw, 30px);
  background: var(--panel);
  box-shadow: var(--shadow-main);
  backdrop-filter: none;
}

.landing-card p {
  margin: 12px 0 0;
  color: var(--text-soft);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 22px;
}

.game-card {
  position: relative;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xl);
  padding: 19px;
  background: linear-gradient(180deg, rgba(6, 27, 18, 0.75), rgba(5, 19, 13, 0.78));
  box-shadow: var(--shadow-main), var(--shadow-glow), inset 0 0 0 1px rgba(117, 255, 186, 0.04);
  backdrop-filter: none;
  overflow: hidden;
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.game-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: calc(var(--radius-xl) - 1px);
  border: 1px solid rgba(142, 255, 198, 0.08);
  pointer-events: none;
}

.game-card::after {
  display: none;
}

.game-card:hover {
  transform: translateY(-3px);
  border-color: rgba(121, 255, 195, 0.45);
  box-shadow: 0 26px 56px rgba(0, 0, 0, 0.52), 0 12px 34px rgba(88, 255, 161, 0.16);
}

.game-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 14px;
}

.game-title {
  font-size: 1.26rem;
  text-shadow: 0 0 12px rgba(112, 255, 182, 0.2);
}

.product-count {
  color: var(--text-dim);
  font-size: 0.76rem;
  font-family: "JetBrains Mono", monospace;
  text-transform: uppercase;
}

.products-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(112, 255, 180, 0.12);
  background: rgba(4, 20, 13, 0.72);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.product-row:hover {
  transform: translateY(-2px);
  border-color: rgba(88, 255, 161, 0.62);
  background: rgba(7, 31, 21, 0.84);
  box-shadow: 0 10px 26px rgba(26, 122, 79, 0.28);
}

.product-data {
  min-width: 0;
}

.product-name {
  margin: 0;
  color: #ebfff4;
  font-size: 0.98rem;
  font-family: "JetBrains Mono", monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-dev {
  margin: 5px 0 0;
  color: var(--text-soft);
  font-size: 0.78rem;
}

.product-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.open-btn,
.copy-btn,
.block-action {
  text-decoration: none;
  font: inherit;
  font-size: 0.8rem;
  white-space: nowrap;
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 190ms ease, box-shadow 190ms ease, border-color 190ms ease, background 190ms ease, color 190ms ease;
}

.open-btn,
.block-action {
  color: #e8fff5;
  border: 1px solid rgba(107, 255, 181, 0.42);
  background: linear-gradient(135deg, rgba(9, 98, 62, 0.95), rgba(19, 164, 106, 0.42));
  box-shadow: inset 0 0 0 1px rgba(145, 255, 201, 0.12);
}

.copy-btn {
  color: #dfffe9;
  border: 1px solid rgba(109, 255, 175, 0.5);
  background: rgba(7, 31, 23, 0.86);
  box-shadow: inset 0 0 0 1px rgba(109, 255, 175, 0.12);
}

.open-btn:hover,
.copy-btn:hover,
.block-action:hover {
  transform: translateY(-1px);
}

.open-btn:hover,
.block-action:hover {
  border-color: rgba(125, 255, 193, 0.85);
  box-shadow: 0 8px 22px rgba(44, 182, 119, 0.34);
}

.copy-btn:hover {
  border-color: rgba(109, 255, 175, 0.88);
  background: rgba(11, 38, 28, 0.92);
  box-shadow: 0 8px 22px rgba(88, 255, 161, 0.26);
}

.hidden {
  display: none !important;
}

.guide-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.mode-guide .guide-head {
  position: relative;
  justify-content: center;
}

.guide-meta {
  text-align: right;
}

.mode-guide .guide-meta {
  text-align: center;
  width: 100%;
}

.guide-game {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: "JetBrains Mono", monospace;
}

.guide-dev {
  margin: 8px 0 0;
  color: var(--text-soft);
  font-size: 0.84rem;
}

.guide-dev.buyer-brand {
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.back-btn {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(5, 22, 14, 0.76);
  color: var(--text-main);
  font: inherit;
  padding: 10px 14px;
  cursor: pointer;
  transition: 180ms ease;
}

.mode-admin.mode-guide .back-btn {
  position: absolute;
  top: 0;
  left: 0;
}

.back-btn:hover {
  border-color: var(--accent-cyan-soft);
  background: rgba(8, 30, 20, 0.9);
  box-shadow: 0 10px 26px rgba(88, 255, 161, 0.24);
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(210px, 250px) minmax(0, 1fr);
  gap: 18px;
}

.guide-sidebar {
  position: sticky;
  top: 84px;
  align-self: start;
  border: 1px solid rgba(109, 255, 175, 0.28);
  border-radius: var(--radius-lg);
  padding: 12px;
  background: rgba(4, 18, 12, 0.82);
  backdrop-filter: none;
}

.sidebar-title {
  margin-bottom: 10px;
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.guide-toc {
  display: grid;
  gap: 6px;
}

.toc-link {
  border: 1px solid rgba(110, 255, 178, 0.12);
  border-radius: 10px;
  padding: 9px 10px;
  color: #b6e8d2;
  text-decoration: none;
  font-size: 0.82rem;
  line-height: 1.3;
  background: rgba(5, 22, 14, 0.7);
  transition: 180ms ease;
}

.toc-link:hover {
  border-color: rgba(109, 255, 175, 0.62);
  color: #e6ffef;
}

.toc-link.active {
  border-color: rgba(109, 255, 175, 0.9);
  color: #f1fff8;
  box-shadow: 0 0 0 1px rgba(109, 255, 175, 0.24);
}

.guide-panel {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xl);
  padding: clamp(16px, 3vw, 30px);
  background:
    linear-gradient(180deg, rgba(8, 33, 22, 0.74), rgba(4, 16, 11, 0.82)),
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 22px,
      rgba(114, 255, 181, 0.015) 22px,
      rgba(114, 255, 181, 0.015) 23px
    );
  box-shadow: var(--shadow-main);
  backdrop-filter: none;
}

.guide-intro {
  margin: 0 0 16px;
  color: #d2ffe5;
  line-height: 1.62;
  font-size: 1.04rem;
  font-weight: 560;
}

.guide-blocks {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.guide-block {
  position: relative;
  scroll-margin-top: 104px;
  padding: 18px 18px 17px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(112, 255, 180, 0.2);
  background:
    linear-gradient(180deg, rgba(5, 26, 16, 0.85), rgba(4, 17, 11, 0.86)),
    radial-gradient(120% 140% at 100% 0%, rgba(75, 255, 160, 0.055), transparent 64%);
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(121, 255, 193, 0.08);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.guide-block:hover {
  transform: translateY(-2px);
  border-color: rgba(114, 255, 181, 0.74);
  box-shadow:
    0 16px 30px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(114, 255, 181, 0.22);
}

.guide-block[data-type="prep"] {
  border-left: 4px solid rgba(102, 245, 170, 0.88);
}

.guide-block[data-type="launch"] {
  border-left: 4px solid rgba(109, 255, 175, 0.94);
}

.guide-block[data-type="warning"] {
  border-left: 4px solid rgba(206, 255, 104, 0.9);
}

.guide-block[data-type="download"] {
  border-left: 4px solid rgba(92, 255, 161, 0.9);
}

.guide-block[data-type="code"] {
  border-left: 4px solid rgba(130, 255, 208, 0.88);
}

.block-head {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(113, 255, 180, 0.14);
  padding-bottom: 8px;
}

.block-type {
  display: none;
}

.block-title {
  font-size: clamp(1.04rem, 1.6vw, 1.32rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.block-body {
  color: #deffea;
  line-height: 1.62;
  font-size: 1.03rem;
  font-weight: 560;
  white-space: pre-wrap;
}

.block-body p {
  margin: 0;
}

.block-body p + p {
  margin-top: 8px;
}

.block-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.block-list.is-steps {
  counter-reset: step;
}

.item-card {
  border: 1px solid rgba(110, 255, 176, 0.16);
  border-radius: 12px;
  background: rgba(5, 22, 14, 0.78);
  padding: 13px 14px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.block-list.is-steps .item-card {
  position: relative;
  padding-left: 50px;
}

.block-list.is-steps .item-card::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  left: 13px;
  top: 12px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(110, 255, 176, 0.48);
  background: rgba(10, 45, 28, 0.86);
  color: #d8ffe9;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-family: "JetBrains Mono", monospace;
}

.item-card:hover {
  transform: translateY(-2px);
  border-color: rgba(113, 255, 180, 0.82);
  background: rgba(8, 30, 20, 0.9);
  box-shadow: 0 12px 24px rgba(88, 255, 161, 0.23);
}

.item-text {
  line-height: 1.5;
  font-size: 1.03rem;
  font-weight: 560;
}

.item-sublist,
.issue-sublist {
  margin: 10px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

.item-sublist.depth-1,
.issue-sublist.depth-1 {
  margin-top: 8px;
  padding-left: 18px;
}

.item-sublist.depth-2,
.issue-sublist.depth-2 {
  margin-top: 6px;
  padding-left: 16px;
}

.item-sublist.is-steps,
.issue-sublist.is-steps {
  list-style: decimal;
}

.item-sublist.is-checklist,
.issue-sublist.is-checklist {
  list-style: disc;
}

.item-sublist li,
.issue-sublist li {
  line-height: 1.44;
  font-size: 0.98rem;
  font-weight: 540;
}

.item-sublist li::marker,
.issue-sublist li::marker {
  color: rgba(137, 239, 192, 0.94);
}

.item-figure {
  margin-top: 10px;
}

.inline-link {
  color: #8fffc8;
  text-decoration: none;
  border-bottom: 1px dashed rgba(130, 255, 197, 0.48);
  transition: color 170ms ease, border-color 170ms ease, text-shadow 170ms ease;
}

.inline-link:hover {
  color: #dcfff0;
  border-color: rgba(130, 255, 197, 0.9);
  text-shadow: 0 0 14px rgba(104, 255, 168, 0.34);
}

.inline-copy {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin: 0 2px;
  border: 1px solid rgba(120, 255, 188, 0.44);
  border-radius: 7px;
  padding: 1px 8px;
  background: rgba(8, 31, 21, 0.9);
  color: #d9ffe8;
  font: inherit;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9em;
  line-height: 1.35;
  white-space: normal;
  word-break: break-all;
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.inline-copy:hover {
  border-color: rgba(145, 255, 204, 0.88);
  box-shadow: 0 0 0 1px rgba(145, 255, 204, 0.22);
}

.inline-copy.is-copied {
  border-color: rgba(132, 255, 196, 0.95);
  box-shadow: 0 0 0 1px rgba(132, 255, 196, 0.35);
}

.inline-copy.is-error {
  border-color: rgba(255, 150, 150, 0.85);
  color: #ffe5e5;
}

.inline-copy[data-copy-state]::after {
  content: attr(data-copy-state);
  margin-left: 7px;
  color: rgba(179, 255, 220, 0.9);
  font-size: 0.78em;
  font-family: "Manrope", sans-serif;
}

.item-issue {
  display: grid;
  gap: 7px;
}

.issue-line {
  display: grid;
  gap: 4px;
}

.issue-label {
  color: #89e8bf;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.issue-line.solution .issue-label {
  color: #a8ffd8;
}

.issue-text {
  line-height: 1.5;
  font-size: 1.02rem;
  font-weight: 560;
}

.block-body strong,
.item-text strong,
.issue-text strong,
.item-sublist strong,
.issue-sublist strong {
  color: #f3fff8;
  font-weight: 800;
}

.code-wrap {
  position: relative;
}

.code-copy-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  border: 1px solid rgba(113, 255, 180, 0.42);
  border-radius: 8px;
  padding: 5px 9px;
  background: rgba(7, 31, 19, 0.9);
  color: #dfffee;
  font-size: 0.74rem;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}

.code-copy-btn:hover {
  border-color: rgba(140, 255, 204, 0.9);
  background: rgba(10, 41, 25, 0.95);
}

.code-panel {
  margin: 0;
  padding: 36px 12px 12px;
  border-radius: 10px;
  background: rgba(0, 8, 5, 0.86);
  border: 1px solid rgba(97, 255, 169, 0.2);
  overflow-x: auto;
  font-family: "JetBrains Mono", monospace;
}

.guide-figure {
  --img-width: 100%;
  --img-max-width: 100%;
  margin: 12px 0 0;
  border-radius: 12px;
  overflow: clip;
  background: rgba(4, 19, 12, 0.58);
  box-shadow:
    inset 0 0 0 1px rgba(108, 255, 173, 0.14),
    0 8px 24px rgba(0, 0, 0, 0.24);
  width: min(100%, var(--img-width));
  max-width: var(--img-max-width);
}

.guide-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 0;
  border-radius: inherit;
}

.guide-figure[data-align="center"] {
  margin-left: auto;
  margin-right: auto;
}

.guide-figure[data-align="right"] {
  margin-left: auto;
  margin-right: 0;
}

.block-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
}

.empty-state {
  border: 1px dashed rgba(126, 255, 188, 0.3);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  color: var(--text-soft);
  background: rgba(5, 22, 14, 0.5);
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 460ms ease, transform 460ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@media (max-width: 1050px) {
  .guide-layout {
    grid-template-columns: 1fr;
  }

  .guide-sidebar {
    position: relative;
    top: 0;
  }
}

@media (max-width: 940px) {
  .control-bar {
    grid-template-columns: 1fr;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }

  .guide-head {
    flex-direction: column;
    align-items: stretch;
  }

  .guide-meta,
  .mode-guide .guide-meta {
    text-align: left;
    width: auto;
  }

  .mode-admin.mode-guide .back-btn {
    position: static;
  }

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

  .product-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 620px) {
  .topbar {
    padding-inline: 12px;
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-right {
    justify-content: space-between;
  }

  .app-shell {
    width: min(1360px, 100% - 18px);
  }
}

@media (max-width: 520px) {
  .product-actions {
    justify-content: stretch;
    flex-direction: column;
  }

  .open-btn,
  .copy-btn {
    width: 100%;
    text-align: center;
  }
}
