/* Өөрийн сервер дээр байрлуулсан үсэг — Google Fonts руу хандахгүй.
   Golos Text = үндсэн үсэг, Unbounded = зөвхөн том гарчигт. */
@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/golos-text-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/golos-text-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/golos-text-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Golos Text";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/golos-text-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("../fonts/unbounded-cyrillic-ext.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("../fonts/unbounded-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("../fonts/unbounded-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0c0c0e;
  --panel: #141416;
  --panel-2: #1c1c20;
  --chrome: #101012;
  --line: #2b2b30;
  --line-soft: #242428;
  --line-hot: #50505a;
  --text: #f3f2ef;
  --muted: #a1a1aa;
  --soft: #ceced3;
  --accent: #ca2634;
  --accent-hi: #e3323e;
  --accent-text: #ff7a82;
  --accent-ink: #ffffff;
  --mono: ui-monospace, "Cascadia Mono", "Consolas", monospace;
  --sans: "Golos Text", system-ui, "Segoe UI", sans-serif;
  --display: "Unbounded", "Golos Text", system-ui, sans-serif;
  --r-art: 13px;
  --r-ctl: 6px;
  --pad-l: max(20px, env(safe-area-inset-left));
  --pad-r: max(20px, env(safe-area-inset-right));
  color-scheme: dark;
}

* { box-sizing: border-box; }

/* .btn болон .card display-г тохируулдаг тул [hidden] тусгайлан хамгаав. */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: #3c3c46 transparent;
  scrollbar-width: thin;
}

@supports selector(::-webkit-scrollbar) {
  * { scrollbar-color: auto; scrollbar-width: auto; }
}

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

::-webkit-scrollbar-track { background: transparent; }

::-webkit-scrollbar-thumb {
  background: #3c3c46;
  border: 3px solid transparent;
  border-radius: 8px;
  background-clip: padding-box;
}

@media (hover: hover) {
  ::-webkit-scrollbar-thumb:hover { background: #54545e; background-clip: padding-box; }
}

::-webkit-scrollbar-thumb:active { background: var(--accent); background-clip: padding-box; }

::-webkit-scrollbar-corner { background: transparent; }

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* агуулга багах үед хөл хэсэг дэлгэцийн доод ирмэгт наалдана */
body > main { flex: 1 0 auto; }

::selection { background: var(--accent); color: #fff; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent-hi);
  outline-offset: 2px;
}

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

a, .btn, .copy, .card {
  -webkit-tap-highlight-color: rgba(207, 38, 48, 0.16);
  touch-action: manipulation;
}

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: var(--pad-l);
  padding-right: var(--pad-r);
}

.mono { font-family: var(--mono); }

h1, h2, h3 { margin: 0; letter-spacing: -0.018em; line-height: 1.25; }

p { margin: 0; }

/* header */
header {
  border-top: 2px solid var(--accent);
  border-bottom: 1px solid var(--line-soft);
  background: var(--chrome);
  position: sticky;
  top: 0;
  z-index: 10;
  padding-top: env(safe-area-inset-top);
}

.bar {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
}

.mark {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.mark [data-site-suffix] { color: var(--accent-text); }

.mark img { width: 28px; height: 28px; margin-right: 11px; }
.mark { flex-shrink: 0; }

.search {
  margin-left: 4px;
  flex: 1 1 180px;
  max-width: 300px;
}

.search input {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  background: #101013;
  border: 1px solid var(--line);
  border-radius: var(--r-ctl);
  padding: 9px 12px;
  min-height: 40px;
}

.search input::placeholder { color: #6d6d76; }

@media (hover: hover) {
  .search input:hover { border-color: var(--line-hot); }
}

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

.bar nav a {
  font-size: 14px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  min-width: 40px;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

@media (hover: hover) {
  .bar nav a:hover { color: var(--text); }
}

.bar nav a[aria-current] { color: var(--text); border-bottom-color: var(--accent); }

/* page head */
.head-row { padding: 54px 0 4px; }

/* Unbounded үсэгт «Ө Ү» байхгүй — монгол том гарчгийг Golos-оор бичнэ. */
.head-row h1 {
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.022em;
  margin: 16px 0 18px;
  max-width: 22ch;
}

.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .11em; color: var(--accent-text); }

.head-row .eyebrow { color: var(--accent-text); font-size: 11px; margin: 0; }

.head-row p {
  margin-top: 6px;
  font-size: 14.5px;
  color: var(--muted);
  max-width: 52ch;
}

/* section label */
.label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 14px;
}

/* grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(184px, 1fr));
  gap: 34px 20px;
  padding-top: 26px;
  padding-bottom: 8px;
}

/* тэнцүү мөр биш — тэнэг багануудыг дундаас нь доош гулсуулж, хуудсыг "хавтан хавтгай" харагдуулна */
@media (min-width: 900px) {
  .grid { align-items: start; }
  .grid > .card:nth-child(even) { margin-top: 22px; }
}

.note {
  margin: 26px 0 34px;
  font-size: 13px;
  color: var(--muted);
  max-width: 60ch;
}

.more-row { text-align: center; padding-top: 6px; }

.card {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

@media (hover: hover) {
  .card:hover h2 { color: var(--accent-text); }
  .card:hover .cover img { transform: scale(1.035); }
}

.cover {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--panel-2);
  border-radius: var(--r-art);
  overflow: hidden;
  flex: none;
}

.cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.cover.plate {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 13px 12px 15px;
  background: #131318;
  border-left: 2px solid var(--accent);
}

.plate-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.015em;
}

.plate-mark {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: #5c5c64;
}

.card-body { padding: 0 2px; display: flex; flex-direction: column; gap: 8px; flex: 1; }

.card h2 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.28;
  transition: color 0.15s ease;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.card-sum {
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.facts {
  margin-top: auto;
  padding-top: 4px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}

.facts .size {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--soft);
  font-variant-numeric: tabular-nums;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--r-ctl);
  padding: 12px 18px;
  min-height: 46px;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }

@media (hover: hover) {
  .btn:hover { border-color: var(--line-hot); background: var(--panel); }
  .btn.primary:hover { background: var(--accent-hi); }
}

.btn:disabled, .btn.off { opacity: 0.45; cursor: not-allowed; }

/* game page */
.hero {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  padding: 4px 0 28px;
}

.hero-art { background: var(--panel); }

.two-col .stack > .hero { padding-bottom: 0; }

@media (max-width: 1100px) {
  .hero { grid-template-columns: 200px minmax(0, 1fr); gap: 20px; }
}

.cover.plate.hero-art { padding: 16px 15px 18px; }

.cover.plate.hero-art .plate-title { font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }

.hero-info { padding-top: 2px; }

h1.title {
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.15;
  max-width: 22ch;
}

.sub { font-size: 14px; color: var(--muted); margin-top: 9px; }

.hero-info .dl-row {
  margin-top: 20px;
  max-width: 460px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-info .dl-row .btn { flex: 1 1 180px; }

.hero-meta {
  margin: 22px 0 0;
  padding: 15px 0 0;
  border-top: 1px solid var(--line-soft);
  display: grid;
  gap: 8px;
  font-size: 13px;
  max-width: 380px;
}

.hero-meta > div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }

.hero-meta dt { color: var(--muted); }

.hero-meta dd { margin: 0; color: var(--text); font-variant-numeric: tabular-nums; }

.steps {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: var(--soft);
  max-width: 66ch;
}

.steps li::marker {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent-text);
}

.specs { width: 100%; border-collapse: collapse; font-size: 14px; }

.specs th, .specs td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }

.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }

.specs th {
  width: 140px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.panel {
  border-top: 2px solid var(--line);
  padding: 16px 0 4px;
}

.panel h3 {
  font-size: 13px;
  color: var(--soft);
  font-weight: 600;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
  letter-spacing: 0;
}

.dl-row { display: grid; gap: 10px; }

.rows { display: grid; gap: 9px; font-size: 13px; }

.rows > div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }

.rows .k { color: var(--muted); }

.rows .v { color: var(--text); font-variant-numeric: tabular-nums; }

.panel .rows {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.dl-note { margin-top: 14px; font-size: 13px; color: var(--muted); }

.dl-note a { color: var(--accent-text); text-decoration: underline; }

.body-copy { font-size: 15px; color: var(--soft); max-width: 66ch; white-space: pre-line; }

.files {
  list-style: none;
  margin: 0;
  padding: 0 6px 0 0;
  font-family: var(--mono);
  font-size: 13px;
  max-height: 432px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.files li { padding: 9px 0; border-bottom: 1px solid var(--line-soft); color: var(--soft); word-break: break-all; }

.files li:last-child { border-bottom: 0; }

.files .sz {
  display: inline-block;
  min-width: 76px;
  margin-right: 10px;
  text-align: right;
  color: var(--muted);
}

.tinfo { display: grid; gap: 9px; font-family: var(--mono); font-size: 13px; }

.tinfo div { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }

.tinfo dt, .tinfo .k { color: var(--muted); min-width: 104px; }

.tinfo .v { word-break: break-all; color: var(--soft); }

.tinfo .copy {
  margin-left: 8px;
  vertical-align: 1px;
  word-break: normal;
  white-space: nowrap;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 32px;
  align-items: start;
  padding-bottom: 44px;
}

.grid.related { padding-top: 0; padding-bottom: 36px; grid-template-columns: repeat(auto-fit, minmax(184px, 1fr)); }

.two-col .stack { display: grid; gap: 30px; align-content: start; }

.copy {
  border: 1px solid var(--line);
  background: #101013;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--r-ctl);
  padding: 6px 10px;
  min-height: 30px;
  align-self: center;
}

@media (hover: hover) {
  .copy:hover { border-color: var(--line-hot); color: var(--text); }
}

.warn {
  font-size: 13px;
  color: var(--accent-text);
  background: #190f11;
  border-left: 3px solid var(--accent-hi);
  border-radius: 0 var(--r-ctl) var(--r-ctl) 0;
  padding: 12px 14px 12px 15px;
}

.back { margin: 24px 0 6px; }

.back a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  font-size: 14px;
  color: var(--muted);
}

@media (hover: hover) {
  .back a:hover { color: var(--text); }
}

/* footer */
footer { border-top: 1px solid var(--line); margin-top: 12px; }

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  align-items: baseline;
  padding-top: 22px;
  padding-bottom: calc(26px + env(safe-area-inset-bottom));
  font-size: 13px;
  color: var(--muted);
}

.foot nav { margin-left: auto; display: flex; gap: 4px; }

.foot a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 10px; }

@media (hover: hover) {
  .foot a:hover { color: var(--text); }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 200px minmax(0, 1fr); gap: 20px; }
  .two-col { grid-template-columns: 1fr; gap: 28px; }
  .two-col .stack { display: contents; }
  .p-about { order: 1; }
  .p-req { order: 2; }
  .p-files { order: 3; }
  .p-steps { order: 4; }
  .p-tinfo { order: 5; }
}

@media (max-width: 620px) {
  .head-row { padding-top: 26px; }
  .head-row h1, h1.title { font-size: 24px; }
  .hero { padding-bottom: 22px; }
  .specs th { width: 108px; }
}

@media (max-width: 560px) {
  .bar { flex-wrap: wrap; gap: 10px 12px; padding-bottom: 12px; }
  .search { order: 3; flex: 1 1 100%; max-width: none; }
  .bar nav { gap: 10px; }
  .hero { grid-template-columns: 1fr; gap: 18px; }
  .hero-art { max-width: 220px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .card-body { padding: 10px 11px 12px; }
  .card h2 { font-size: 13px; }
  .cover.plate { padding: 11px 10px 13px; }
  .plate-title { font-size: 13px; }
  .label { margin: 28px 0 12px; }
  .panel { padding: 14px 0 2px; }
  .dl-row .btn { flex-basis: 100%; }
  .foot nav { margin-left: 0; width: 100%; }
  .foot nav a { padding-left: 0; }
}

@media (max-width: 400px) {
  .files .sz { min-width: 62px; margin-right: 8px; }
  .tinfo dt, .tinfo .k { min-width: 88px; }
  .specs th { width: 96px; }
}

@media (pointer: coarse) {
  .copy { min-height: 40px; }
  .specs th, .specs td { padding: 12px 0; }
  .btn { min-height: 48px; }
}

@media (max-width: 480px) {
  .specs tr { display: block; border-bottom: 1px solid var(--line-soft); padding-bottom: 11px; }
  .specs tr:last-child { border-bottom: 0; padding-bottom: 0; }
  .specs th, .specs td { display: block; width: auto; border: 0; padding: 0; }
  .specs th { padding-top: 11px; }
  .specs tr:first-child th { padding-top: 0; }
}

.hero-summary { max-width: 58ch; margin-top: 16px; color: var(--soft); font-size: 15px; }
.download-gate { margin-top: 24px; max-width: 440px; padding: 24px 26px; background: var(--panel); border-left: 3px solid var(--accent); border-radius: 0 var(--r-art) var(--r-art) 0; }
.download-gate h2 { margin: 10px 0; font-size: 28px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.download-gate h2 small { font-size: 14px; color: var(--muted); font-weight: 400; }
.download-gate > p:not(.eyebrow) { font-size: 14px; color: var(--soft); }
.download-gate .btn { margin-top: 18px; width: 100%; }
.download-gate > span { display: block; margin-top: 10px; font-size: 12px; text-align: center; color: var(--muted); }
.grid > .warn { grid-column: 1 / -1; }
select:focus-visible, summary:focus-visible { outline: 2px solid var(--accent-hi); outline-offset: 3px; }

.account-main { padding-bottom: 72px; }
.membership-layout { display: grid; grid-template-columns: 1fr 460px; gap: 72px; padding-top: 28px; align-items: start; }
.plan-intro { padding-top: 24px; }
.plan-intro h1 { font-size: clamp(30px, 4.4vw, 50px); font-weight: 700; line-height: 1.14; margin-top: 22px; letter-spacing: -.026em; }
.plan-price { font-size: 42px; font-weight: 700; margin: 30px 0 12px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.plan-price span { font-size: 17px; font-weight: 400; color: var(--muted); }
.plan-description { color: var(--soft); max-width: 36ch; }
.plan-features { padding: 24px 0; margin: 24px 0 20px; list-style: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plan-features li { display: flex; gap: 14px; padding: 9px 0; font-size: 14px; }
.plan-features li::before { content: "+"; font-family: var(--mono); color: var(--accent-text); }
.plan-fine { color: var(--muted); font-size: 13px; max-width: 50ch; margin-top: 12px; }
.account-workspace { min-width: 0; }
.account-card { background: var(--panel); border-radius: var(--r-art); padding: 28px; margin-bottom: 18px; }
.account-card h2 { font-size: 23px; margin-bottom: 12px; }
.account-card > .eyebrow { margin-bottom: 14px; }
.account-help { font-size: 14px; color: var(--muted); margin: 8px 0 20px; }
.auth-tabs { display: flex; border-bottom: 1px solid var(--line); margin: -4px 0 28px; gap: 24px; }
.auth-tabs button { border: 0; border-bottom: 2px solid transparent; background: none; padding: 10px 0 14px; font: 600 14px var(--sans); color: var(--muted); cursor: pointer; }
.auth-tabs button[aria-pressed="true"] { border-color: var(--accent); color: var(--text); }
.account-field { display: grid; gap: 8px; margin: 18px 0; }
.account-field label { font-size: 13px; font-weight: 600; color: var(--soft); }
.account-field input { width: 100%; min-width: 0; border: 1px solid var(--line-hot); background: var(--bg); border-radius: var(--r-ctl); padding: 12px; font: 16px var(--sans); color: var(--text); }
.account-field span { color: var(--muted); font-size: 12px; }
.account-submit { width: 100%; margin-top: 6px; }
.notice { font-size: 13px; padding: 12px 14px 12px 15px; margin: 12px 0; color: var(--soft); border-left: 2px solid var(--line-hot); background: #101013; border-radius: 0 var(--r-ctl) var(--r-ctl) 0; overflow-wrap: anywhere; }
.notice.error { border-left-color: var(--accent-hi); color: var(--accent-text); }
.account-heading { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.account-heading .eyebrow { margin-bottom: 12px; }
.account-email { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.membership-state { display: grid; gap: 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; margin: 20px 0; }
.membership-state strong { font-size: 17px; }
.membership-state span { font-size: 13px; color: var(--muted); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--accent-text); }
.account-password { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 12px; }
.account-password summary { cursor: pointer; font-size: 13px; color: var(--muted); min-height: 36px; line-height: 36px; }
.payment-method { display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; width: 100%; text-align: left; border: 1px solid var(--line-hot); background: var(--bg); color: var(--text); border-radius: var(--r-ctl); padding: 16px; cursor: pointer; font-family: var(--sans); }
.payment-method strong { font-size: 16px; }
.payment-method span { grid-column: 1; font-size: 12px; color: var(--muted); }
.payment-method b { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--accent-text); }
.payment-method:not(:disabled):hover { border-color: var(--accent); }
.payment-method:disabled { opacity: .5; cursor: not-allowed; }
.method-help { font-size: 12px; color: var(--muted); margin: 8px 0 18px; }
.current-order { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.current-order h3 { font-size: 17px; }
.payment-details { margin: 18px 0; display: grid; gap: 14px; }
.payment-details div { display: grid; gap: 3px; }
.payment-details dt { font-size: 12px; color: var(--muted); }
.payment-details dd { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
#qpay-qr { display: block; max-width: 100%; height: auto; margin: 20px auto; padding: 12px; background: white; border-radius: var(--r-ctl); }
.bank-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.bank-links .btn { font-size: 12px; padding: 8px 12px; }
.payment-history-row { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.payment-history-row:last-child { border-bottom: 0; padding-bottom: 0; }
.payment-history-row > div { display: grid; gap: 5px; align-content: start; min-width: 0; }
.payment-history-row > div:last-child { text-align: right; }
.payment-history-row strong { font-size: 13px; }
.payment-history-row span, .payment-history-row code { font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .membership-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
  .account-card { padding: 22px; }
}
@media (max-width: 680px) {
  .membership-layout { grid-template-columns: 1fr; gap: 28px; padding-top: 0; }
  .plan-intro { padding-top: 8px; }
  .plan-intro h1 { font-size: 38px; }
  .plan-price { margin-top: 20px; font-size: 34px; }
  .plan-features { margin-top: 18px; padding: 12px 0; }
  .account-card { padding: 22px 18px; }
  .download-gate { padding: 18px 18px 18px 20px; }
}
@media (max-width: 400px) {
  .mark { font-size: 15px; }
  .mark img { width: 24px; height: 24px; margin-right: 8px; }
  .bar { column-gap: 8px; }
  .bar nav { gap: 10px; }
  .bar nav a { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn, .card h2, .cover img { transition: none; }
  .card:hover .cover img { transform: none; }
}
