:root {
  --bg: #0d0d10;
  --panel: #15151b;
  --panel-2: #1c1b22;
  --text: #f4f0e8;
  --muted: #a8a29a;
  --soft: #d6d0c4;
  --line: rgba(255, 255, 255, 0.12);
  --purple: #8b5cf6;
  --purple-soft: #c4b5fd;
  --gold: #c9a86a;
  --ink: #1b1920;
  --paper: #f7f4f0;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(139, 92, 246, 0.12), transparent 34%),
    linear-gradient(240deg, rgba(201, 168, 106, 0.08), transparent 32%),
    linear-gradient(180deg, #0d0d10 0%, #111116 42%, #0d0d10 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(13, 13, 16, 0.74);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(var(--max), calc(100% - 40px));
  height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--purple-soft);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  transition: color 0.18s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-cta {
  color: var(--text) !important;
  padding: 9px 14px;
  border: 1px solid rgba(196, 181, 253, 0.36);
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.14);
}

.section {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0;
}

.hero {
  position: relative;
  min-height: calc(100vh - 74px);
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 56px;
  align-items: center;
  padding: 64px 0 88px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--purple-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--purple), transparent);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.98;
  font-weight: 860;
  letter-spacing: 0;
}

.lead {
  max-width: 640px;
  color: var(--soft);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.72;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 750;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

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

.button.primary {
  border: 1px solid rgba(196, 181, 253, 0.44);
  background: #7c5ce7;
  color: white;
  box-shadow: 0 18px 44px rgba(124, 92, 231, 0.28);
}

.button.ghost {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.button.ghost:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.08);
}

.hero-visual {
  position: relative;
  min-height: 620px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 34px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
    linear-gradient(135deg, rgba(139, 92, 246, 0.2), transparent 54%),
    #121217;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
}

.phone-stack {
  position: absolute;
  inset: 42px 34px;
  display: grid;
  place-items: center;
}

.phone {
  width: min(310px, 76vw);
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 36px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.52);
}

.phone img {
  border-radius: 28px;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
}

.floating-note {
  position: absolute;
  right: 26px;
  bottom: 28px;
  width: 220px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: rgba(13, 13, 16, 0.72);
  backdrop-filter: blur(16px);
}

.floating-note strong {
  display: block;
  margin-bottom: 6px;
}

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

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

.section-heading h2 {
  max-width: 720px;
  margin-bottom: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: 0;
}

.section-heading p {
  max-width: 420px;
  margin-bottom: 0;
  color: var(--muted);
}

.app-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 52px;
  align-items: center;
}

.feature-list {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.feature-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--purple-soft);
  background: rgba(139, 92, 246, 0.16);
}

.feature-row h3 {
  margin-bottom: 4px;
  font-size: 17px;
}

.feature-row p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

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

.screen-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.34);
}

.screen-card img {
  border-radius: 18px;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.step {
  position: relative;
  min-height: 180px;
  padding: 26px 22px;
  border-right: 1px solid var(--line);
}

.step:last-child {
  border-right: 0;
}

.step-number {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.step h3 {
  margin: 34px 0 8px;
  font-size: 20px;
}

.step p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

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

.note-card {
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.note-card:hover {
  transform: translateY(-2px);
  border-color: rgba(196, 181, 253, 0.34);
  background: rgba(255, 255, 255, 0.07);
}

.note-card small {
  color: var(--gold);
  font-weight: 760;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.note-card h3 {
  margin: 18px 0 10px;
  font-size: 24px;
  line-height: 1.18;
}

.note-card p {
  color: var(--muted);
}

.note-card span {
  color: var(--purple-soft);
  font-size: 14px;
  font-weight: 760;
}

.quote-band {
  padding: 104px 0;
  background:
    linear-gradient(90deg, rgba(139, 92, 246, 0.14), rgba(201, 168, 106, 0.08)),
    #141418;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.quote-band blockquote {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  color: var(--text);
  font-size: clamp(32px, 5vw, 60px);
  line-height: 1.22;
  font-weight: 820;
  letter-spacing: 0;
}

.quote-band p {
  width: min(900px, calc(100% - 40px));
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 18px;
}

.page-hero {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 92px 0 54px;
}

.page-hero h1 {
  max-width: 850px;
  font-size: clamp(42px, 7vw, 82px);
}

.page-hero p {
  max-width: 680px;
  color: var(--soft);
  font-size: 19px;
}

.page-hero.compact {
  padding-bottom: 28px;
}

.app-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 42px;
  align-items: start;
}

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

.capability {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
}

.capability h3 {
  font-size: 20px;
}

.capability p {
  color: var(--muted);
}

.download-section {
  margin-top: 28px;
  padding: 28px;
  border: 1px solid rgba(196, 181, 253, 0.28);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(139, 92, 246, 0.14), rgba(139, 92, 246, 0.04)),
    rgba(255, 255, 255, 0.04);
}

.download-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.version-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border: 1px solid rgba(196, 181, 253, 0.34);
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.2);
  color: var(--purple-soft);
  font-size: 13px;
  font-weight: 780;
}

.file-meta {
  color: var(--muted);
  font-size: 13px;
}

.download-section h3 {
  margin-bottom: 10px;
  font-size: 24px;
}

.download-section p {
  color: var(--muted);
  margin-bottom: 18px;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.download-btn {
  display: inline-flex;
  align-items: center;
}

.download-note {
  margin-top: 18px;
  margin-bottom: 0 !important;
  font-size: 13px;
  color: var(--muted);
}

.story-panel {
  margin-top: 28px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(201, 168, 106, 0.1), transparent 54%),
    rgba(255, 255, 255, 0.045);
}

.story-panel h3 {
  margin-bottom: 12px;
  font-size: 24px;
}

.story-panel p {
  color: var(--soft);
}

.story-panel p:last-child {
  margin-bottom: 0;
}

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.use-case {
  min-height: 170px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
}

.use-case span {
  display: inline-flex;
  margin-bottom: 30px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 820;
  letter-spacing: 0.08em;
}

.use-case h3 {
  margin-bottom: 8px;
  font-size: 20px;
}

.use-case p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.article-list {
  display: grid;
  gap: 16px;
}

.changelog-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.changelog-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.changelog-item:last-child {
  border-bottom: 0;
}

.changelog-date {
  color: var(--gold);
  font-size: 13px;
  font-weight: 820;
  letter-spacing: 0.08em;
}

.changelog-item h2 {
  margin-bottom: 10px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.16;
}

.changelog-item p {
  max-width: 720px;
  color: var(--muted);
}

.changelog-item ul {
  margin: 18px 0 0;
  padding-left: 1.2rem;
}

.changelog-item li {
  margin-bottom: 8px;
  color: var(--soft);
}

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

.note-index-section {
  padding-top: 24px;
}

.note-tile {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03)),
    #15151b;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.note-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(196, 181, 253, 0.34);
  background:
    linear-gradient(180deg, rgba(139, 92, 246, 0.12), rgba(255, 255, 255, 0.035)),
    #17171d;
}

.note-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 13px;
}

.note-tag {
  color: var(--gold);
  font-weight: 780;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.note-tile h2 {
  margin-bottom: 14px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
}

.note-tile p {
  color: var(--muted);
}

.note-tile .read-more {
  color: var(--purple-soft);
  font-size: 14px;
  font-weight: 780;
}

.article-row {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.article-row time,
.article-row span {
  color: var(--muted);
  font-size: 14px;
}

.article-row h2 {
  margin: 0 0 6px;
  font-size: 26px;
}

.article-row p {
  margin: 0;
  color: var(--muted);
}

.note-article {
  width: min(820px, calc(100% - 40px));
  margin: 0 auto;
  padding: 70px 0 110px;
}

.note-article h1 {
  max-width: 780px;
  font-size: clamp(40px, 7vw, 78px);
}

.note-article .article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 14px;
}

.note-article .article-lead {
  color: var(--soft);
  font-size: 20px;
  line-height: 1.75;
}

.note-article h2 {
  margin-top: 48px;
  font-size: 28px;
}

.note-article p {
  color: var(--soft);
  font-size: 17px;
}

.note-article ul {
  padding-left: 1.2rem;
}

.note-article li {
  margin-bottom: 10px;
  color: var(--soft);
}

.article-callout {
  margin: 34px 0;
  padding: 22px;
  border: 1px solid rgba(196, 181, 253, 0.22);
  border-radius: 22px;
  background: rgba(139, 92, 246, 0.1);
}

.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.article-nav a {
  color: var(--purple-soft);
  font-weight: 780;
}

.privacy {
  width: min(820px, calc(100% - 40px));
  margin: 0 auto;
  padding: 70px 0 110px;
}

.privacy h1 {
  font-size: clamp(38px, 6vw, 64px);
}

.privacy h2 {
  margin-top: 46px;
  font-size: 24px;
}

.privacy p,
.privacy li {
  color: var(--soft);
}

.privacy ul {
  padding-left: 1.2rem;
}

.privacy table {
  width: 100%;
  margin: 20px 0 34px;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.privacy th,
.privacy td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--soft);
  text-align: left;
  vertical-align: top;
}

.privacy th {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  font-size: 14px;
}

.privacy tr:last-child td {
  border-bottom: 0;
}

.privacy .summary-box {
  margin: 28px 0;
  padding: 22px;
  border: 1px solid rgba(196, 181, 253, 0.22);
  border-radius: 22px;
  background: rgba(139, 92, 246, 0.1);
}

.game-hero {
  width: min(1280px, calc(100% - 40px));
  min-height: calc(100vh - 74px);
  margin: 0 auto;
  padding: 70px 0 86px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: 52px;
  align-items: center;
}

.game-preview {
  position: relative;
  min-height: 520px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 30px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.18), transparent 45%),
    linear-gradient(225deg, rgba(251, 113, 133, 0.16), transparent 48%),
    #111116;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.44);
}

.game-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 54px 54px;
}

.preview-card {
  position: absolute;
  width: 112px;
  height: 132px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08)),
    #20202a;
  color: white;
  font-size: 28px;
  font-weight: 850;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
}

.preview-card:nth-child(1) {
  left: 14%;
  top: 18%;
  color: #a78bfa;
  transform: rotate(-8deg);
}

.preview-card:nth-child(2) {
  right: 17%;
  top: 14%;
  color: #22d3ee;
  transform: rotate(7deg);
}

.preview-card:nth-child(3) {
  left: 32%;
  top: 38%;
  color: #34d399;
  transform: rotate(3deg);
}

.preview-card:nth-child(4) {
  left: 12%;
  bottom: 17%;
  color: #f59e0b;
  transform: rotate(9deg);
}

.preview-card:nth-child(5) {
  right: 13%;
  bottom: 18%;
  color: #fb7185;
  transform: rotate(-6deg);
}

.game-shell {
  position: relative;
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto 96px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.035)),
    #111116;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.34);
}

.game-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.game-kicker {
  display: block;
  color: #22d3ee;
  font-size: 13px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.game-topbar h2 {
  margin: 4px 0 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.1;
}

.game-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(84px, 1fr));
  gap: 10px;
}

.game-stats div {
  min-height: 70px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.game-stats span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.game-stats strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 24px;
  line-height: 1;
}

.game-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
}

.difficulty-tabs {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(74px, 1fr));
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.16);
}

.difficulty-tab {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 780;
  cursor: pointer;
  transition:
    background 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
}

.difficulty-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.difficulty-tab.active {
  color: #071014;
  background: #67e8f9;
  box-shadow: 0 10px 26px rgba(34, 211, 238, 0.22);
}

.difficulty-tab:disabled {
  cursor: wait;
  opacity: 0.58;
}

.round-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.round-actions .button {
  border: 0;
  cursor: pointer;
}

.round-actions .button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.sound-btn {
  min-width: 92px;
}

.game-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.game-panel {
  display: grid;
  align-content: start;
  gap: 14px;
}

.game-panel-block {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
}

.game-panel-block h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.game-panel-block p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.tool-buttons {
  display: grid;
  gap: 10px;
}

.game-tool {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease;
}

.game-tool:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(34, 211, 238, 0.38);
  background: rgba(34, 211, 238, 0.11);
}

.game-tool:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.game-tool span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(34, 211, 238, 0.14);
  color: #67e8f9;
  font-weight: 850;
}

.game-tool strong {
  font-size: 14px;
}

.board-wrap {
  min-width: 0;
}

.game-board {
  position: relative;
  min-height: 590px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(167, 139, 250, 0.09), transparent 45%),
    linear-gradient(225deg, rgba(34, 211, 238, 0.08), transparent 48%),
    #181820;
}

.game-board::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}

.game-board.waiting .music-tile {
  opacity: 0.34;
  filter: grayscale(0.35) brightness(0.72);
}

.game-board.loading {
  cursor: wait;
}

.board-prompt {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 12000;
  width: min(320px, calc(100% - 48px));
  min-height: 120px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 24px;
  border: 1px solid rgba(103, 232, 249, 0.28);
  border-radius: 22px;
  background: rgba(13, 13, 16, 0.78);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.42);
  transform: translate(-50%, -50%);
}

.board-prompt strong {
  color: #67e8f9;
  font-size: 28px;
  line-height: 1;
}

.board-prompt span {
  color: var(--soft);
  font-size: 14px;
}

.loading-prompt {
  min-height: 150px;
}

.loading-dot {
  width: 26px;
  height: 26px;
  border: 3px solid rgba(103, 232, 249, 0.22);
  border-top-color: #67e8f9;
  border-radius: 50%;
  animation: loading-spin 0.72s linear infinite;
}

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

.music-tile {
  position: absolute;
  width: 50px;
  height: 64px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  border: 1px solid color-mix(in srgb, var(--tile-color), white 18%);
  border-radius: 15px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.07)),
    color-mix(in srgb, var(--tile-color), #111116 72%);
  color: white;
  font: inherit;
  cursor: pointer;
  box-shadow:
    0 10px 0 rgba(0, 0, 0, 0.22),
    0 20px 38px rgba(0, 0, 0, 0.32);
  transform: translate(-50%, -50%);
  transition:
    transform 0.15s ease,
    filter 0.15s ease,
    opacity 0.15s ease;
}

.music-tile:hover:not(.covered) {
  transform: translate(-50%, -53%);
  filter: brightness(1.1);
}

.music-tile.covered {
  cursor: not-allowed;
  opacity: 0.55;
  filter: grayscale(0.45) brightness(0.68);
}

.music-tile strong {
  font-size: 18px;
  line-height: 1;
}

.music-tile span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 760;
}

.tray-wrap {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.16);
}

.tray-label {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.tray {
  display: grid;
  grid-template-columns: repeat(var(--tray-limit, 7), minmax(0, 1fr));
  gap: 10px;
}

.tray-slot {
  min-height: 76px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.tray-slot.filled {
  border-style: solid;
  border-color: color-mix(in srgb, var(--tile-color), white 18%);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06)),
    color-mix(in srgb, var(--tile-color), #111116 74%);
}

.tray-slot strong {
  font-size: 19px;
  line-height: 1;
}

.tray-slot span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 760;
}

.game-modal {
  position: absolute;
  inset: 0;
  z-index: 20000;
  display: grid;
  place-items: center;
  padding: 24px;
  border-radius: 28px;
  background: rgba(8, 8, 12, 0.68);
  backdrop-filter: blur(8px);
}

.game-modal[hidden] {
  display: none;
}

.game-dialog {
  width: min(430px, 100%);
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background: #17171d;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.42);
}

.modal-badge {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 5px 12px;
  border: 1px solid rgba(34, 211, 238, 0.32);
  border-radius: 999px;
  color: #67e8f9;
  background: rgba(34, 211, 238, 0.12);
  font-size: 13px;
  font-weight: 780;
}

.game-dialog h2 {
  margin-bottom: 10px;
  font-size: 34px;
}

.game-dialog p {
  color: var(--soft);
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 38px 0;
}

.footer-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

@media (max-width: 920px) {
  .hero,
  .app-intro,
  .app-showcase,
  .game-hero,
  .game-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 42px;
  }

  .hero-visual {
    min-height: 560px;
  }

  .workflow,
  .notes-grid,
  .note-index-grid,
  .use-case-grid,
  .capability-grid {
    grid-template-columns: 1fr;
  }

  .step {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .step:last-child {
    border-bottom: 0;
  }

  .section-heading {
    display: block;
  }

  .section-heading p {
    margin-top: 16px;
  }

  .game-topbar {
    display: grid;
  }

  .game-controls {
    display: grid;
  }

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

@media (max-width: 640px) {
  .site-header {
    position: sticky;
  }

  .nav {
    width: min(100% - 28px, var(--max));
    height: auto;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 0;
    align-items: center;
  }

  .brand {
    min-width: 100%;
  }

  .nav-links {
    width: 100%;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0 4px;
    font-size: 13px;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links a,
  .nav-cta {
    display: inline-flex !important;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.045);
    color: var(--muted) !important;
  }

  .nav-links a.active,
  .nav-links a:hover,
  .nav-cta {
    color: var(--text) !important;
    border-color: rgba(103, 232, 249, 0.28);
    background: rgba(34, 211, 238, 0.1);
  }

  .section,
  .page-hero {
    width: min(100% - 28px, var(--max));
  }

  .hero {
    width: min(100% - 28px, 1280px);
    min-height: auto;
  }

  h1 {
    font-size: clamp(44px, 14vw, 66px);
  }

  .lead {
    font-size: 16px;
  }

  .hero-visual {
    min-height: 500px;
    border-radius: 26px;
  }

  .phone {
    width: min(250px, 72vw);
  }

  .floating-note {
    left: 18px;
    right: 18px;
    bottom: 18px;
    width: auto;
  }

  .screenshot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .article-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .changelog-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .note-article {
    width: min(100% - 28px, 820px);
  }

  .article-nav {
    display: grid;
  }

  .footer-inner {
    display: grid;
    gap: 14px;
  }

  .game-hero,
  .game-shell {
    width: min(100% - 28px, 1280px);
  }

  .game-hero {
    min-height: auto;
    padding-top: 42px;
  }

  .game-preview {
    min-height: 360px;
    border-radius: 24px;
  }

  .preview-card {
    width: 82px;
    height: 96px;
    font-size: 20px;
  }

  .game-shell {
    padding: 14px;
  }

  .game-stats,
  .game-panel {
    grid-template-columns: 1fr;
  }

  .game-controls {
    padding: 12px;
  }

  .difficulty-tabs,
  .round-actions {
    width: 100%;
  }

  .round-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .round-actions .button:first-child {
    grid-column: 1 / -1;
  }

  .game-board {
    min-height: 460px;
  }

  .music-tile {
    width: 22px;
    height: 28px;
    border-radius: 6px;
  }

  .music-tile strong {
    font-size: 10px;
  }

  .music-tile span,
  .tray-slot span {
    display: none;
  }

  .tray {
    gap: 6px;
  }

  .tray-slot {
    min-height: 52px;
    border-radius: 10px;
  }
}
