:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --bg: #f7f9fd;
  --surface: #ffffff;
  --surface-muted: #f0f3fa;
  --surface-soft: #f8faff;
  --surface-tinted: #edf1ff;
  --text: #172033;
  --text-strong: #101728;
  --muted: #657087;
  --muted-strong: #4e5a72;
  --line: #dde4ef;
  --line-strong: #cbd5e4;
  --primary: #5969ef;
  --primary-strong: #4354de;
  --primary-soft: #e9ecff;
  --accent: #7d62ef;
  --success: #2eaf7d;
  --danger: #d64d65;
  --shadow-sm: 0 8px 24px rgba(36, 49, 84, 0.08);
  --shadow-md: 0 20px 54px rgba(36, 49, 84, 0.13);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --page-width: 1180px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1420;
  --surface: #171e2c;
  --surface-muted: #20293a;
  --surface-soft: #141b29;
  --surface-tinted: #181f36;
  --text: #eaf0fb;
  --text-strong: #ffffff;
  --muted: #a2aec3;
  --muted-strong: #c0cade;
  --line: #2b3548;
  --line-strong: #3b475e;
  --primary: #7b88ff;
  --primary-strong: #929cff;
  --primary-soft: #252d58;
  --accent: #a28bff;
  --success: #4ed2a2;
  --danger: #ff728a;
  --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 24px 64px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
}

body,
button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button {
  color: inherit;
}

::selection {
  background: var(--primary-soft);
  color: var(--text-strong);
}

.page-shell {
  width: min(calc(100% - 40px), var(--page-width));
  margin-inline: auto;
}

.site-frame {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

.app-state {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background: var(--bg);
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, background 180ms ease;
}

.site-header__inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 28px;
  overflow: hidden;
  transition: min-height 180ms ease, opacity 140ms ease;
}

.site-header--collapsed {
  border-bottom-color: transparent;
  background: transparent;
  backdrop-filter: none;
  pointer-events: none;
}

.site-header--collapsed .site-header__inner {
  min-height: 0;
  height: 0;
  opacity: 0;
  visibility: hidden;
}

.header-expand-button {
  position: absolute;
  top: 8px;
  right: 16px;
  display: none;
  min-height: 34px;
  cursor: pointer;
  align-items: center;
  gap: 6px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  box-shadow: var(--shadow-sm);
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 700;
  pointer-events: auto;
}

.site-header--collapsed .header-expand-button {
  display: inline-flex;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.brand__mark,
.brand__logo {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--primary), var(--accent));
  box-shadow: 0 9px 24px color-mix(in srgb, var(--primary) 28%, transparent);
  color: white;
  font-size: 19px;
  font-weight: 800;
  object-fit: cover;
}

.brand > span:last-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.brand strong {
  overflow: hidden;
  color: var(--text-strong);
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand small {
  overflow: hidden;
  max-width: 220px;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 13px;
  border-radius: 11px;
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 650;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.main-nav a:hover {
  color: var(--text-strong);
  background: var(--surface-muted);
}

.main-nav a.active {
  color: var(--primary-strong);
  background: var(--primary-soft);
}

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

.icon-button {
  display: inline-grid;
  width: 40px;
  height: 40px;
  cursor: pointer;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 3px 12px color-mix(in srgb, var(--text) 5%, transparent);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.icon-button:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: var(--surface-muted);
}

.menu-button {
  display: none;
}

.button {
  display: inline-flex;
  min-height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-weight: 720;
  line-height: 1;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  box-shadow: 0 11px 24px color-mix(in srgb, var(--primary) 28%, transparent);
  color: white;
}

.button--primary:hover {
  box-shadow: 0 14px 28px color-mix(in srgb, var(--primary) 36%, transparent);
}

.button--secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text-strong);
  box-shadow: var(--shadow-sm);
}

.button--secondary:hover {
  border-color: var(--line-strong);
  background: var(--surface-muted);
}

.button--ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--muted-strong);
}

.button--ghost:hover {
  background: var(--surface-muted);
  color: var(--text-strong);
}

.button--small {
  min-height: 36px;
  gap: 7px;
  padding-inline: 12px;
  border-radius: 10px;
  font-size: 13px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary-strong);
  font-size: 14px;
  font-weight: 740;
}

.text-link svg {
  transition: transform 160ms ease;
}

.text-link:hover svg {
  transform: translateX(3px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--primary-strong);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.home-first-screen {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 76px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--primary) 14%, transparent), transparent 34%),
    radial-gradient(circle at 92% 22%, color-mix(in srgb, var(--accent) 11%, transparent), transparent 30%),
    var(--bg);
}

.home-first-screen__inner {
  position: relative;
  z-index: 1;
  padding-block: 30px 48px;
}

.home-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
}

.instant-play-badge {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 1px solid color-mix(in srgb, var(--success) 34%, var(--line));
  border-radius: 99px;
  background: color-mix(in srgb, var(--success) 12%, var(--surface));
  box-shadow: 0 8px 22px color-mix(in srgb, var(--success) 12%, transparent);
  color: var(--success);
  font-size: 13px;
  font-weight: 820;
}

.home-intro__description {
  margin: 12px 0 0;
  color: var(--muted-strong);
  font-size: 15px;
  line-height: 1.65;
}

.home-intro__action {
  flex: 0 0 auto;
}

.home-project-tabs {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  box-shadow: var(--shadow-md);
}

.home-tab-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 4px;
  border-radius: 18px;
  background: var(--surface-muted);
}

.home-tab {
  display: flex;
  min-height: 60px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 15px;
  background: transparent;
  color: var(--muted-strong);
  text-align: left;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.home-tab > span {
  display: grid;
  gap: 2px;
}

.home-tab strong {
  font-size: 15px;
}

.home-tab small {
  color: var(--muted);
  font-size: 11px;
}

.home-tab.active {
  border-color: var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--primary-strong);
}

.home-tab-panel {
  padding: 19px 8px 8px;
}

.home-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 3px 15px;
}

.home-panel-heading > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.home-panel-heading strong {
  color: var(--text-strong);
  font-size: 15px;
}

.home-panel-heading span {
  color: var(--muted);
  font-size: 12px;
}

.home-recent {
  margin-top: 28px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}

.home-recent__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.home-recent__heading h2 {
  margin: 5px 0 0;
  color: var(--text-strong);
  font-size: 24px;
  letter-spacing: -0.025em;
}

.home-recent__heading > span {
  color: var(--muted);
  font-size: 12px;
}

.home-recent__empty {
  display: grid;
  min-height: 104px;
  place-items: center;
  padding: 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.hero-section {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 62%, transparent);
  background:
    radial-gradient(circle at 16% 8%, color-mix(in srgb, var(--primary) 12%, transparent), transparent 38%),
    radial-gradient(circle at 86% 18%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 34%),
    var(--bg);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 670px;
  align-items: center;
  grid-template-columns: minmax(0, 1.04fr) minmax(380px, 0.96fr);
  gap: 70px;
  padding-block: 72px 86px;
}

.hero-copy {
  max-width: 660px;
}

.hero-copy h1 {
  max-width: 650px;
  margin: 18px 0 20px;
  color: var(--text-strong);
  font-size: clamp(46px, 6.2vw, 78px);
  font-weight: 860;
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.hero-copy > p {
  max-width: 610px;
  margin: 0;
  color: var(--muted-strong);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.78;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 42px;
}

.hero-stats > div {
  display: grid;
  gap: 4px;
  min-width: 118px;
  padding-right: 28px;
  margin-right: 28px;
  border-right: 1px solid var(--line);
}

.hero-stats > div:last-child {
  padding-right: 0;
  margin-right: 0;
  border-right: 0;
}

.hero-stats strong {
  color: var(--text-strong);
  font-size: 23px;
}

.hero-stats span {
  color: var(--muted);
  font-size: 13px;
}

.hero-showcase {
  position: relative;
  min-width: 0;
  padding: 30px 20px;
}

.showcase-window {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line-strong) 74%, transparent);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  transform: rotate(1.2deg);
}

.showcase-window__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 46px;
  padding-inline: 17px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.showcase-window__bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}

.showcase-window__screen {
  display: grid;
  min-height: 342px;
  place-items: center;
  align-content: center;
  padding: 46px 48px;
  text-align: center;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--primary-soft) 72%, transparent), transparent 54%),
    var(--surface);
}

.showcase-icon {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
  border-radius: 28px;
  background: linear-gradient(145deg, var(--primary-soft), var(--surface));
  color: var(--primary-strong);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--primary) 18%, transparent);
}

.showcase-window__screen strong {
  margin-top: 25px;
  color: var(--text-strong);
  font-size: 22px;
}

.showcase-window__screen p {
  max-width: 360px;
  margin: 10px 0 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.showcase-progress {
  overflow: hidden;
  width: min(280px, 88%);
  height: 8px;
  border-radius: 99px;
  background: var(--surface-muted);
}

.showcase-progress span {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.floating-card {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: var(--shadow-sm);
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 750;
  backdrop-filter: blur(14px);
}

.floating-card svg {
  color: var(--primary-strong);
}

.floating-card--tool {
  right: -12px;
  bottom: 76px;
  transform: rotate(-2deg);
}

.floating-card--game {
  top: 10px;
  left: -12px;
  transform: rotate(2deg);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(4px);
  opacity: 0.58;
}

.hero-orb--one {
  width: 150px;
  height: 150px;
  top: 100px;
  right: -72px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}

.hero-orb--two {
  width: 110px;
  height: 110px;
  bottom: -50px;
  left: 7%;
  background: color-mix(in srgb, var(--primary) 15%, transparent);
}

.content-section {
  padding-block: 92px;
}

.content-section--tinted {
  border-block: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  background: var(--surface-soft);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}

.section-heading h2 {
  margin: 9px 0 0;
  color: var(--text-strong);
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.035em;
}

.section-heading p {
  max-width: 650px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-heading__action {
  flex: 0 0 auto;
  padding-bottom: 5px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.project-grid--games {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 560px));
  justify-content: start;
}

.project-card {
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 7px 22px color-mix(in srgb, var(--text) 5%, transparent);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--primary) 28%, var(--line));
  box-shadow: var(--shadow-md);
}

.project-card__cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--surface-muted);
}

.cover-placeholder {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  align-content: center;
  gap: 8px;
  overflow: hidden;
  background: linear-gradient(110deg, var(--surface-muted) 28%, var(--surface) 42%, var(--surface-muted) 56%);
  background-size: 240% 100%;
  color: var(--muted);
  animation: cover-skeleton 1.8s ease-in-out infinite;
}

.cover-placeholder small {
  font-size: 11px;
  font-weight: 700;
}

.cover-missing .cover-placeholder {
  display: grid;
}

@keyframes cover-skeleton {
  to { background-position: -240% 0; }
}

.project-card__cover--portrait {
  width: 100%;
  height: 100%;
  min-height: 278px;
  aspect-ratio: 9 / 16;
  max-height: none;
  margin: 0;
  border-right: 1px solid var(--line);
  border-bottom: 0;
  background:
    radial-gradient(circle at 50% 20%, color-mix(in srgb, var(--primary) 12%, transparent), transparent 46%),
    var(--surface-muted);
  box-shadow: inset -18px 0 28px -28px color-mix(in srgb, var(--text) 40%, transparent);
}

.project-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.project-card__cover--portrait img {
  object-fit: contain;
}

.project-card:hover .project-card__cover img {
  transform: scale(1.025);
}

.project-card--portrait-game:hover .project-card__cover img {
  transform: scale(1.012);
}

.project-card--portrait-game {
  display: grid;
  overflow: hidden;
  height: 310px;
  grid-template-columns: minmax(160px, 36%) minmax(0, 1fr);
  min-height: 0;
}

.project-card--portrait-game .project-card__cover--portrait {
  height: 310px;
  min-height: 0;
  aspect-ratio: auto;
}

.project-card--tool {
  display: grid;
  height: 320px;
  grid-template-rows: 58% 42%;
}

.project-card--tool .project-card__cover {
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  border-right: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface-muted);
  box-shadow: inset 0 -22px 34px -28px color-mix(in srgb, var(--text) 46%, transparent);
}

.project-card--tool .project-card__cover img {
  object-fit: cover;
  object-position: center;
}

.project-card--tool .project-card__cover::after {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 34%;
  background: linear-gradient(to bottom, transparent, rgba(13, 19, 32, 0.16));
  content: '';
  pointer-events: none;
}

.project-card--tool .project-card__kind {
  z-index: 2;
}

.project-card--portrait-game .project-card__body {
  display: flex;
  overflow: hidden;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 18px 17px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--surface) 96%, var(--primary-soft)), var(--surface));
}

.project-card--portrait-game .project-card__title-row {
  align-items: flex-start;
}

.project-card--portrait-game h3 {
  font-size: 17px;
  line-height: 1.28;
}

.project-card--portrait-game .project-card__body > p {
  min-height: auto;
  margin-block: 9px 12px;
  font-size: 12px;
  line-height: 1.55;
  -webkit-line-clamp: 3;
}

.project-card--portrait-game .tag-row {
  gap: 5px;
}

.project-card--portrait-game .tag-row span {
  min-height: 22px;
  padding-inline: 7px;
  font-size: 10px;
}

.project-card--portrait-game .text-link {
  margin-top: 14px;
}

.project-card__actions {
  display: grid;
  width: 100%;
  align-items: center;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.game-card-action,
.taptap-link--card {
  display: inline-flex;
  width: 100%;
  min-width: 0;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 7px;
  border-radius: 9px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.game-card-action--play {
  border: 1px solid color-mix(in srgb, var(--primary) 42%, var(--line));
  background: var(--primary-soft);
  color: var(--primary-strong);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.game-card-action--play:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: 0 9px 22px color-mix(in srgb, var(--primary) 18%, transparent);
}

.taptap-link {
  position: relative;
  display: inline-flex;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, #20c7d9 48%, var(--line));
  background: linear-gradient(135deg, color-mix(in srgb, #20c7d9 18%, var(--surface)), color-mix(in srgb, #3388ff 15%, var(--surface)));
  box-shadow: 0 8px 22px color-mix(in srgb, #20c7d9 18%, transparent);
  color: color-mix(in srgb, #20c7d9 72%, var(--text-strong));
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  animation: taptap-attention 2.6s ease-in-out infinite;
}

.taptap-link:hover {
  transform: translateY(-2px);
  border-color: #20c7d9;
  box-shadow: 0 12px 28px color-mix(in srgb, #20c7d9 28%, transparent);
}

.taptap-link--card {
  min-height: 32px;
}

@keyframes taptap-attention {
  0%, 72%, 100% { box-shadow: 0 8px 22px color-mix(in srgb, #20c7d9 16%, transparent); }
  82% { box-shadow: 0 8px 26px color-mix(in srgb, #20c7d9 42%, transparent), 0 0 0 4px color-mix(in srgb, #20c7d9 9%, transparent); }
}

.project-card--tool .project-card__body {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  padding: 10px 14px 12px;
  border-top: 1px solid color-mix(in srgb, white 35%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 96%, var(--primary-soft)), var(--surface));
}

.project-card--tool h3 {
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-card--tool .project-card__body > p {
  min-height: 34px;
  margin: 5px 0 7px;
  font-size: 12px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
}

.project-card--tool .tag-row {
  display: none;
}

.project-card--tool .tag-row span {
  min-height: 21px;
  padding-inline: 7px;
  font-size: 10px;
}

.project-card--tool .tag-row span:nth-child(n + 3) {
  display: none;
}

.project-card--tool .text-link {
  margin-top: auto;
  font-size: 12px;
}

.project-card__kind,
.status-badge {
  position: absolute;
  top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 29px;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, white 30%, transparent);
  border-radius: 9px;
  background: rgba(14, 19, 31, 0.72);
  color: white;
  font-size: 11px;
  font-weight: 760;
  backdrop-filter: blur(10px);
}

.project-card__kind {
  left: 14px;
}

.status-badge {
  right: 14px;
}

.status-badge--static {
  position: static;
  align-self: start;
  border-color: var(--line);
  background: var(--primary-soft);
  color: var(--primary-strong);
}

.project-card__body {
  padding: 21px 21px 22px;
}

.project-card__title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.project-card h3 {
  min-width: 0;
  margin: 0;
  color: var(--text-strong);
  font-size: 19px;
  letter-spacing: -0.02em;
}

.project-card h3 a:hover {
  color: var(--primary-strong);
}

.project-card__title-row small {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
}

.project-card__body > p {
  display: -webkit-box;
  overflow: hidden;
  min-height: 47px;
  margin: 10px 0 15px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.67;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 650;
}

.project-card .text-link {
  margin-top: 20px;
}

.home-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  margin-block: 86px;
  padding: 38px 42px;
  border: 1px solid color-mix(in srgb, var(--primary) 24%, var(--line));
  border-radius: 28px;
  background: linear-gradient(135deg, var(--primary-soft), var(--surface));
  box-shadow: var(--shadow-sm);
}

.home-cta h2 {
  margin: 9px 0 8px;
  color: var(--text-strong);
  font-size: clamp(25px, 3.5vw, 37px);
  letter-spacing: -0.035em;
}

.home-cta p {
  max-width: 760px;
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.7;
}

.listing-page,
.detail-page {
  padding-block: 58px 96px;
}

.page-intro {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 30px 0 36px;
  border-bottom: 1px solid var(--line);
}

.page-intro__icon {
  display: grid;
  width: 66px;
  height: 66px;
  flex: 0 0 66px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--primary) 25%, var(--line));
  border-radius: 20px;
  background: var(--primary-soft);
  color: var(--primary-strong);
}

.page-intro h1 {
  margin: 7px 0 7px;
  color: var(--text-strong);
  font-size: clamp(36px, 5vw, 54px);
  letter-spacing: -0.045em;
}

.page-intro p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.listing-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: 30px 0;
}

.listing-toolbar > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
}

.search-box {
  display: flex;
  width: min(100%, 520px);
  min-height: 46px;
  align-items: center;
  gap: 10px;
  padding-inline: 14px 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 5px 16px color-mix(in srgb, var(--text) 4%, transparent);
  color: var(--muted);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.search-box:focus-within {
  border-color: color-mix(in srgb, var(--primary) 58%, var(--line));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 11%, transparent);
}

.search-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}

.search-box input::placeholder {
  color: var(--muted);
}

.search-box button {
  display: grid;
  width: 32px;
  height: 32px;
  cursor: pointer;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
}

.search-box button:hover {
  background: var(--surface-muted);
  color: var(--text);
}

.empty-panel {
  display: grid;
  min-height: 180px;
  place-items: center;
  padding: 30px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
  color: var(--muted);
  text-align: center;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 24px;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 700;
}

.back-link:hover {
  color: var(--primary-strong);
}

.detail-hero {
  display: grid;
  align-items: center;
  grid-template-columns: 280px minmax(0, 1fr) 210px;
  gap: 34px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.detail-hero__cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 19px;
  background: var(--surface-muted);
  object-fit: cover;
}

.detail-hero__copy h1 {
  margin: 10px 0 13px;
  color: var(--text-strong);
  font-size: clamp(34px, 4vw, 51px);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.detail-hero__copy > p {
  margin: 0 0 18px;
  color: var(--muted-strong);
  line-height: 1.78;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.detail-meta {
  display: grid;
  gap: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface-soft);
}

.detail-meta > div {
  display: grid;
  gap: 6px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
}

.detail-meta > div:last-child {
  border-bottom: 0;
}

.detail-meta dt {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.detail-meta dd {
  margin: 0;
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 730;
}

.readme-layout {
  display: grid;
  align-items: start;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  margin-top: 28px;
}

.readme-aside {
  position: sticky;
  top: 104px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.readme-aside strong {
  color: var(--text-strong);
  font-size: 13px;
}

.readme-aside p {
  margin: 9px 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.readme-aside code {
  display: block;
  overflow-wrap: anywhere;
  padding: 9px;
  border-radius: 9px;
  background: var(--surface-muted);
  color: var(--muted-strong);
  font-size: 10px;
  line-height: 1.5;
}

.readme-panel {
  min-width: 0;
  padding: clamp(24px, 4vw, 52px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.markdown-body {
  min-width: 0;
  color: var(--text);
  font-size: 15px;
  line-height: 1.78;
}

.markdown-body > *:first-child {
  margin-top: 0;
}

.markdown-body > *:last-child {
  margin-bottom: 0;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
  color: var(--text-strong);
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.markdown-body h1 {
  margin: 0 0 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(29px, 4vw, 40px);
}

.markdown-body h2 {
  margin: 42px 0 15px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
  font-size: 25px;
}

.markdown-body h3 {
  margin: 30px 0 10px;
  font-size: 19px;
}

.markdown-body p,
.markdown-body ul,
.markdown-body ol,
.markdown-body blockquote,
.markdown-body pre,
.markdown-body table {
  margin-block: 15px;
}

.markdown-body a {
  color: var(--primary-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.markdown-body ul,
.markdown-body ol {
  padding-left: 24px;
}

.markdown-body li + li {
  margin-top: 5px;
}

.markdown-body blockquote {
  margin-inline: 0;
  padding: 11px 16px;
  border-left: 4px solid var(--primary);
  border-radius: 0 11px 11px 0;
  background: var(--primary-soft);
  color: var(--muted-strong);
}

.markdown-body code {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-muted);
  color: var(--text-strong);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.88em;
}

.markdown-body pre {
  overflow: auto;
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #111827;
  color: #e8edf7;
  line-height: 1.62;
}

.markdown-body pre code {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
}

.markdown-body table {
  display: block;
  overflow-x: auto;
  width: 100%;
  border-spacing: 0;
  border-collapse: collapse;
}

.markdown-body th,
.markdown-body td {
  padding: 10px 13px;
  border: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.markdown-body th {
  background: var(--surface-muted);
  color: var(--text-strong);
}

.markdown-body hr {
  height: 1px;
  margin: 34px 0;
  border: 0;
  background: var(--line);
}

.markdown-body img {
  border: 1px solid var(--line);
  border-radius: 14px;
}

.state-panel {
  display: flex;
  min-height: 160px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--muted-strong);
  text-align: left;
}

.state-panel svg {
  flex: 0 0 auto;
  color: var(--primary-strong);
}

.state-panel p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.state-panel--error {
  flex-wrap: wrap;
}

.state-panel--error > svg {
  color: var(--danger);
}

.spin {
  animation: spin 0.85s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.game-title-row {
  display: grid;
  align-items: center;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 20px;
  margin-bottom: 25px;
}

.game-title-cover {
  position: relative;
  display: block;
  width: 92px;
  height: 92px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-muted);
}

.game-title-cover > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-title-row h1 {
  margin: 8px 0 6px;
  color: var(--text-strong);
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.game-title-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.game-player-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.game-player-toolbar {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 13px 10px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.game-player-toolbar > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.game-player-toolbar > div:last-child {
  gap: 8px;
}

.game-player-actions,
.game-scale-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.game-scale-controls {
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}

.game-scale-button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  box-shadow: none;
  font-size: 18px;
  line-height: 1;
}

.game-scale-value {
  min-width: 62px;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 700;
}

.game-player-toolbar strong {
  color: var(--text-strong);
  font-size: 13px;
}

.game-player-toolbar small {
  color: var(--muted);
  font-size: 11px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 14%, transparent);
}

.game-stage {
  position: relative;
  overflow: hidden;
  width: min(100%, var(--game-max-width, 1180px));
  margin-inline: auto;
  aspect-ratio: var(--game-aspect, 16 / 9);
  background: var(--game-background, #10131c);
  contain: layout paint;
}

.game-stage-layout {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
}

.game-stage-layout--with-promo {
  gap: 14px;
  padding: 14px;
}

.game-promo-side {
  display: flex;
  width: 132px;
  flex: 0 1 132px;
  justify-content: center;
}

.taptap-link--player {
  width: 100%;
  min-height: 116px;
  flex-direction: column;
  gap: 5px;
  padding: 18px 12px;
  border-radius: 18px;
  text-align: center;
}

.taptap-link--player small {
  color: var(--muted);
  font-size: 10px;
}

.taptap-link--player strong {
  color: var(--text-strong);
  font-size: 13px;
}

.taptap-link__pulse {
  width: 10px;
  height: 10px;
  margin-bottom: 4px;
  border: 2px solid var(--surface);
  border-radius: 50%;
  background: #20c7d9;
  box-shadow: 0 0 0 0 color-mix(in srgb, #20c7d9 52%, transparent);
  animation: taptap-pulse 1.8s ease-out infinite;
}

@keyframes taptap-pulse {
  70%, 100% { box-shadow: 0 0 0 10px transparent; }
}

.game-stage:fullscreen {
  width: 100vw;
  height: 100vh;
  max-width: none;
  aspect-ratio: auto;
  border-radius: 0;
}

.unity-embed,
.unity-canvas,
.unity-iframe {
  width: 100%;
  height: 100%;
}

.unity-embed {
  position: relative;
}

.unity-canvas {
  display: block;
  border: 0;
  outline: 0;
  background: var(--game-background, #10131c);
}

.unity-iframe {
  display: block;
  border: 0;
  background: var(--game-background, #10131c);
}

.player-overlay {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  padding: 26px;
  background: linear-gradient(145deg, #111725, #171d2b);
  color: white;
  text-align: center;
}

.player-overlay svg {
  color: #aab3ff;
}

.player-overlay strong {
  font-size: 15px;
}

.player-overlay--error svg {
  color: #ff8096;
}

.load-progress {
  position: relative;
  overflow: hidden;
  width: min(330px, 72vw);
  height: 12px;
  margin-top: 2px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.12);
}

.load-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7180ff, #9b7cff);
  transition: width 180ms ease;
}

.load-progress small {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
}

.game-player-hint {
  margin: 0;
  padding: 11px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.game-info-grid {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 24px;
  margin-top: 26px;
}

.game-description-card,
.game-meta-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.game-description-card h2 {
  margin: 9px 0 10px;
  color: var(--text-strong);
  font-size: 25px;
  letter-spacing: -0.025em;
}

.game-description-card > p {
  margin: 0 0 19px;
  color: var(--muted-strong);
  line-height: 1.78;
}

.game-meta-card {
  padding: 0;
}

.not-found-page {
  display: grid;
  min-height: 64vh;
  place-items: center;
  align-content: center;
  padding-block: 80px;
  text-align: center;
}

.not-found-page > svg {
  margin-bottom: 18px;
  color: var(--primary-strong);
}

.not-found-page h1 {
  margin: 8px 0 10px;
  color: var(--text-strong);
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: -0.045em;
}

.not-found-page p {
  max-width: 520px;
  margin: 0 0 25px;
  color: var(--muted);
  line-height: 1.7;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
}

.site-footer__inner {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 34px;
  padding-block: 30px;
}

.site-footer strong {
  color: var(--text-strong);
  font-size: 14px;
}

.site-footer p {
  max-width: 640px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 700;
}

.site-footer a:hover {
  color: var(--primary-strong);
}

.site-footer small {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 46px;
    padding-block: 68px 76px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-showcase {
    width: min(100%, 610px);
    margin-inline: auto;
  }

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

  .detail-hero {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .detail-meta {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .detail-meta > div {
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .detail-meta > div:last-child {
    border-right: 0;
  }

  .game-meta-card {
    display: grid;
    grid-template-columns: 1fr;
  }

  .game-meta-card > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .game-meta-card > div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(calc(100% - 28px), var(--page-width));
  }

  .site-header__inner {
    min-height: 68px;
    gap: 10px;
  }

  .brand small {
    display: none;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 14px;
    left: 14px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow-md);
  }

  .main-nav--open {
    display: flex;
  }

  .main-nav a {
    min-height: 44px;
  }

  .header-actions {
    margin-left: auto;
  }

  .menu-button {
    display: inline-grid;
  }

  .home-first-screen {
    min-height: calc(100vh - 68px);
  }

  .home-first-screen__inner {
    padding-block: 22px 34px;
  }

  .home-intro {
    align-items: stretch;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 18px;
  }

  .home-intro__action {
    align-self: flex-start;
  }

  .home-tab {
    min-height: 54px;
    padding-inline: 8px;
  }

  .home-tab small {
    display: none;
  }

  .home-panel-heading > div span {
    display: none;
  }

  .home-recent__heading {
    align-items: start;
    flex-direction: column;
    gap: 5px;
  }

  .hero-grid {
    min-height: auto;
    padding-block: 52px 64px;
  }

  .hero-copy h1 {
    font-size: clamp(42px, 13vw, 64px);
  }

  .hero-copy > p {
    font-size: 16px;
  }

  .hero-stats > div {
    min-width: 92px;
    padding-right: 17px;
    margin-right: 17px;
  }

  .hero-showcase {
    padding-inline: 0;
  }

  .floating-card--tool {
    right: -4px;
  }

  .floating-card--game {
    left: -4px;
  }

  .content-section {
    padding-block: 66px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 14px;
  }

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

  .home-cta {
    align-items: start;
    flex-direction: column;
    margin-block: 64px;
    padding: 28px;
  }

  .listing-page,
  .detail-page {
    padding-block: 38px 70px;
  }

  .page-intro {
    align-items: flex-start;
  }

  .page-intro__icon {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
    border-radius: 16px;
  }

  .listing-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .detail-hero {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .detail-hero__cover {
    max-height: 310px;
  }

  .detail-meta {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .detail-meta > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .readme-layout {
    grid-template-columns: 1fr;
  }

  .readme-aside {
    position: static;
  }

  .game-title-row {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 18px;
  }

  .game-title-cover {
    width: 72px;
    height: 72px;
    border-radius: 17px;
  }

  .game-title-row .status-badge {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .game-title-row h1 {
    margin-block: 5px 3px;
    font-size: clamp(27px, 8.5vw, 38px);
  }

  .game-title-row p {
    font-size: 13px;
    line-height: 1.5;
  }

  .game-player-panel {
    border-radius: 18px;
  }

  .game-player-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
  }

  .game-player-toolbar > div:last-child {
    width: 100%;
    flex-wrap: wrap;
  }

  .game-player-toolbar > div:last-child .button {
    flex: 1;
  }

  .game-scale-controls {
    width: 100%;
    justify-content: center;
  }

  .game-stage {
    max-width: 100%;
  }

  .game-stage-layout--with-promo {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
  }

  .game-promo-side {
    width: 100%;
    flex: 0 0 auto;
  }

  .game-promo-side--right {
    display: none;
  }

  .taptap-link--player {
    min-height: 48px;
    flex-direction: row;
    gap: 8px;
    padding: 8px 13px;
    border-radius: 13px;
  }

  .taptap-link--player .taptap-link__pulse {
    margin: 0 2px 0 0;
  }

  .taptap-link--player small {
    display: none;
  }

  .game-player-hint {
    padding: 9px 12px;
    line-height: 1.45;
  }

  .game-info-grid {
    grid-template-columns: 1fr;
  }

  .site-footer__inner {
    align-items: start;
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 480px) {
  .project-card--portrait-game {
    height: 300px;
    grid-template-columns: minmax(120px, 40%) minmax(0, 1fr);
    min-height: 0;
  }

  .project-card__cover--portrait {
    height: 300px;
    min-height: 0;
  }

  .project-card--portrait-game .project-card__body {
    padding: 15px 13px;
  }

  .project-card--portrait-game .tag-row span:nth-child(n + 3) {
    display: none;
  }

  .brand strong {
    max-width: 135px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }

  .hero-stats > div {
    min-width: 0;
    padding-right: 10px;
    margin-right: 10px;
  }

  .hero-stats strong {
    font-size: 18px;
  }

  .hero-stats span {
    font-size: 10px;
  }

  .showcase-window__screen {
    min-height: 300px;
    padding: 36px 24px;
  }

  .floating-card {
    display: none;
  }

  .page-intro {
    gap: 14px;
  }

  .page-intro h1 {
    font-size: 34px;
  }

  .readme-panel {
    padding: 22px 18px;
  }

  .game-title-row {
    align-items: start;
  }

  .game-title-row h1 {
    font-size: 30px;
  }
}

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