:root {
  color-scheme: dark;
  --bg: #070915;
  --panel: #11182a;
  --panel-strong: #17213a;
  --text: #f8fafc;
  --muted: #9aa8bf;
  --line: rgba(255, 255, 255, 0.12);
  --gold: #f7c948;
  --blue: #5ab4ff;
  --red: #ff4d63;
  --green: #4ade80;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% -10%, rgba(247, 201, 72, 0.2), transparent 34rem),
    radial-gradient(circle at 85% 5%, rgba(90, 180, 255, 0.16), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  background: rgba(7, 9, 21, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #f97316);
  color: #111827;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.top-nav a,
.eyebrow,
.section-heading p,
.card-label,
.footer {
  color: var(--muted);
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
  max-width: 100%;
}

.top-nav a,
.primary-action,
.secondary-action,
button {
  min-height: 2.4rem;
  border-radius: 0.75rem;
  padding: 0.65rem 0.9rem;
  text-decoration: none;
  font-weight: 800;
}

.top-nav a {
  border: 1px solid transparent;
}

.top-nav a:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
}

main {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 1.25rem;
  align-items: stretch;
  padding: clamp(2rem, 6vw, 5rem) 0 1rem;
}

.hero-copy,
.hero-card,
.control-panel,
.result-panel,
.saved-panel,
.stats-grid article,
.analytics-panel,
.vip-panel,
.method {
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: rgba(17, 24, 42, 0.82);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: clamp(1.3rem, 4vw, 3rem);
}

.eyebrow,
.section-heading p,
.card-label {
  margin: 0 0 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 900;
}

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

h1 {
  max-width: 10ch;
  margin-bottom: 1rem;
  font-size: clamp(2.4rem, 8vw, 5rem);
  line-height: 1;
  letter-spacing: 0;
}

.lead {
  max-width: 46rem;
  color: #d6deed;
  font-size: 1.08rem;
}

.hero-actions,
.toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.primary-action,
.primary-button {
  border: 0;
  background: linear-gradient(135deg, var(--gold), #fb923c);
  color: #111827;
}

.secondary-action,
.ghost-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.hero-card {
  padding: 1.25rem;
}

.latest-draws {
  display: grid;
  gap: 0.9rem;
}

.latest-item {
  padding: 1rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.06);
}

.latest-item strong {
  display: block;
  margin-bottom: 0.4rem;
}

.notice {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 0.5rem 0 1.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(247, 201, 72, 0.35);
  border-radius: 0.9rem;
  background: rgba(247, 201, 72, 0.1);
  color: #fff7cf;
}

.data-health {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(90, 180, 255, 0.28);
  border-radius: 0.9rem;
  background: rgba(90, 180, 255, 0.08);
  color: #dbeafe;
}

.data-health span {
  color: var(--muted);
}

.tool-grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.control-panel,
.result-panel,
.saved-panel,
.stats-grid article,
.analytics-panel,
.vip-panel,
.method {
  padding: 1.1rem;
}

.control-panel {
  position: sticky;
  top: 5.3rem;
  display: grid;
  gap: 0.9rem;
}

label {
  display: grid;
  gap: 0.35rem;
  color: #dce6f8;
  font-weight: 800;
}

.check {
  display: inline-flex;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.2rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.05);
  font-size: 0.92rem;
}

select,
input,
textarea {
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: rgba(7, 9, 21, 0.88);
  color: var(--text);
  padding: 0 0.8rem;
  font: inherit;
}

textarea {
  min-height: 7rem;
  padding: 0.75rem 0.8rem;
  resize: vertical;
}

button {
  cursor: pointer;
  font: inherit;
}

.results,
.saved-picks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.85rem;
}

.pick-card {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  background: rgba(7, 9, 21, 0.55);
}

.pick-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.75rem;
}

.pick-score {
  color: var(--gold);
  font-weight: 900;
}

.balls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-bottom: 0.75rem;
}

.ball {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  border-radius: 50%;
  font-weight: 900;
  box-shadow: inset 0 -0.2rem 0 rgba(0, 0, 0, 0.18);
}

.ball.front {
  background: linear-gradient(135deg, var(--red), #f97316);
}

.ball.back {
  background: linear-gradient(135deg, #3b82f6, var(--blue));
}

.pick-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.pick-meta span,
.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.24rem 0.55rem;
  background: rgba(255, 255, 255, 0.05);
}

.save-button,
.delete-button,
.danger-button {
  min-height: 2.1rem;
  margin-top: 0.75rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.delete-button {
  color: #fecaca;
}

.danger-button {
  border-color: rgba(255, 77, 99, 0.45);
  color: #fecaca;
}

.saved-panel,
.stats-grid,
.analytics-panel,
.vip-panel,
.method {
  margin-top: 1rem;
}

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

.admin-stats {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 1rem 0;
}

.admin-stats article h2 {
  margin-bottom: 0;
  font-size: 1.8rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: end;
  margin: 1rem 0;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(17, 24, 42, 0.72);
}

.filter-bar label {
  min-width: 12rem;
}

.pill-grid,
.pattern-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill strong {
  color: var(--text);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.method-grid.single-column {
  grid-template-columns: 1fr;
}

.method article {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.05);
}

.analytics-panel {
  padding: 1.1rem;
}

.vip-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem;
  background:
    linear-gradient(135deg, rgba(247, 201, 72, 0.18), rgba(90, 180, 255, 0.08)),
    rgba(17, 24, 42, 0.9);
}

.vip-panel p {
  max-width: 58rem;
  color: #d6deed;
}

.vip-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.price-card {
  display: grid;
  gap: 0.85rem;
  align-content: start;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(17, 24, 42, 0.82);
  box-shadow: var(--shadow);
}

.price-card.featured {
  border-color: rgba(247, 201, 72, 0.55);
  background:
    linear-gradient(180deg, rgba(247, 201, 72, 0.14), rgba(17, 24, 42, 0.9)),
    rgba(17, 24, 42, 0.9);
}

.price {
  display: block;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--gold);
}

.price-card ul {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding-left: 1.1rem;
  color: #d6deed;
}

.lead-form {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(17, 24, 42, 0.82);
  box-shadow: var(--shadow);
}

.lead-form.compact {
  max-width: 34rem;
  box-shadow: none;
}

.lead-form .form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.form-status {
  min-height: 1.6rem;
  margin: 0;
  color: #d6deed;
}

.form-status.success {
  color: #bbf7d0;
}

.form-status.error {
  color: #fecaca;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.8rem;
}

.access-result {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(74, 222, 128, 0.4);
  border-radius: 1rem;
  background: rgba(74, 222, 128, 0.1);
}

.access-result h2 {
  margin: 0;
  color: #bbf7d0;
  font-size: clamp(1.8rem, 8vw, 2.8rem);
  overflow-wrap: anywhere;
}

.admin-table-wrap {
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(17, 24, 42, 0.82);
}

.status-select {
  min-width: 7rem;
}

.note-input {
  min-width: 13rem;
  min-height: 4rem;
}

.lead-actions {
  display: flex;
  gap: 0.45rem;
}

.lead-actions button {
  margin-top: 0;
  white-space: nowrap;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.copy-card {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(17, 24, 42, 0.82);
  box-shadow: var(--shadow);
}

.copy-card textarea {
  min-height: 13rem;
  resize: vertical;
  padding: 0.9rem;
  line-height: 1.65;
}

.copy-button {
  justify-self: start;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.poster {
  padding: 1.2rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #fff7d6, #dbeafe);
  color: #111827;
}

.poster h3 {
  margin-bottom: 0.8rem;
  font-size: 1.8rem;
}

.poster p {
  margin-bottom: 0.45rem;
  font-weight: 900;
}

.poster small {
  color: #374151;
}

.chart-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  background: #0b1020;
}

.chart-wrap canvas {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.trend-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 0.95rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

th {
  background: rgba(255, 255, 255, 0.07);
  color: #dce6f8;
}

td {
  color: #f8fafc;
}

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

.footer {
  width: min(1180px, calc(100% - 2rem));
  margin: 1.5rem auto 0;
  padding: 1.5rem 0 2rem;
}

.footer p {
  margin-bottom: 0.35rem;
}

@media (max-width: 900px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .tool-grid,
  .stats-grid,
  .pricing-grid,
  .content-grid,
  .method-grid {
    grid-template-columns: 1fr;
  }

  .vip-panel {
    grid-template-columns: 1fr;
  }

  .vip-actions {
    justify-content: flex-start;
  }

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

  .control-panel {
    position: static;
  }

  h1 {
    max-width: none;
  }
}

@media (max-width: 560px) {
  main,
  .footer {
    width: min(100% - 1rem, 1180px);
  }

  .top-nav {
    justify-content: flex-start;
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    -webkit-overflow-scrolling: touch;
  }

  .top-nav a,
  .primary-action,
  .secondary-action,
  button {
    padding-inline: 0.72rem;
  }

  .top-nav a {
    flex: 0 0 auto;
  }

  .hero {
    padding-top: 1rem;
  }

  .hero-copy,
  .hero-card,
  .control-panel,
  .result-panel,
  .saved-panel,
  .stats-grid article,
  .analytics-panel,
  .vip-panel,
  .method {
    border-radius: 0.85rem;
  }

  .hero-copy,
  .hero-card,
  .control-panel,
  .result-panel,
  .saved-panel,
  .analytics-panel,
  .vip-panel,
  .method,
  .price-card,
  .copy-card,
  .lead-form {
    padding: 0.95rem;
  }

  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
  }

  .admin-stats article h2 {
    font-size: 1.45rem;
  }

  .filter-bar {
    padding: 0.75rem;
  }

  .filter-bar label,
  .lead-form.compact {
    min-width: 0;
    max-width: none;
    width: 100%;
  }

  .admin-table-wrap table {
    min-width: 58rem;
    font-size: 0.88rem;
  }

  .lead-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .lead-actions button {
    min-height: 2rem;
    padding-block: 0.4rem;
  }

  .results,
  .saved-picks {
    grid-template-columns: 1fr;
  }
}

@media print {
  .site-header,
  .hero,
  .notice,
  .copy-card:not(.poster-card),
  .footer {
    display: none !important;
  }

  body {
    background: #fff;
  }

  main {
    width: 100%;
  }

  .poster-card {
    box-shadow: none;
    border: 0;
  }
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(310px, 0.95fr);
  gap: 1rem;
  align-items: stretch;
  padding: clamp(1.2rem, 5vw, 4rem) 0 1rem;
}

.home-copy h1 {
  max-width: 12ch;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

.trust-row span {
  border: 1px solid rgba(247, 201, 72, 0.25);
  border-radius: 999px;
  padding: 0.34rem 0.64rem;
  background: rgba(247, 201, 72, 0.08);
  color: #fff7cf;
  font-size: 0.86rem;
  font-weight: 800;
}

.daily-board {
  display: grid;
  gap: 0.75rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background:
    linear-gradient(180deg, rgba(90, 180, 255, 0.1), transparent),
    rgba(17, 24, 42, 0.84);
  box-shadow: var(--shadow);
}

.daily-link {
  display: grid;
  gap: 0.18rem;
  min-height: 4.5rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.055);
  text-decoration: none;
}

.daily-link.hot {
  border-color: rgba(247, 201, 72, 0.5);
  background: rgba(247, 201, 72, 0.12);
}

.daily-link strong {
  color: var(--text);
  font-size: 1.02rem;
}

.daily-link span {
  color: #cbd5e1;
  font-size: 0.92rem;
}

.quick-strip,
.tool-cards {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.quick-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.quick-strip a {
  display: grid;
  gap: 0.1rem;
  min-height: 4.2rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.055);
  text-decoration: none;
}

.quick-strip strong {
  color: var(--text);
}

.quick-strip span {
  color: var(--muted);
  font-size: 0.88rem;
}

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

.tool-cards article {
  display: grid;
  align-content: start;
  gap: 0.75rem;
  padding: 1.05rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(17, 24, 42, 0.82);
  box-shadow: var(--shadow);
}

.proof-list {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding-left: 1.15rem;
  color: #d6deed;
}

.faq-panel .method-grid article {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.05);
}

.mobile-dock {
  display: none;
}

.mode-hint,
.batch-note {
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(90, 180, 255, 0.28);
  border-radius: 0.8rem;
  background: rgba(90, 180, 255, 0.08);
  color: #dbeafe;
  font-size: 0.92rem;
}

.mode-hint span,
.lead-small {
  color: var(--muted);
}

.form-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.compact-cta {
  margin-top: 1rem;
}

.gear-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.gear-grid article {
  min-height: 9rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.05);
}

.gear-grid h3 {
  margin-bottom: 0.45rem;
}

.gear-grid p {
  color: #d6deed;
}

.nested-panel {
  margin: 1rem 0;
  box-shadow: none;
}

.ad-slot {
  margin: 1rem 0;
}

.ad-card {
  overflow: hidden;
  border: 1px solid rgba(247, 201, 72, 0.28);
  border-radius: 1rem;
  background:
    linear-gradient(135deg, rgba(247, 201, 72, 0.12), rgba(90, 180, 255, 0.08)),
    rgba(17, 24, 42, 0.92);
  box-shadow: var(--shadow);
}

.ad-card a {
  display: grid;
  grid-template-columns: minmax(160px, 0.38fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  min-height: 8.4rem;
  padding: 0.85rem;
  text-decoration: none;
}

.ad-card img {
  width: 100%;
  height: 7.2rem;
  object-fit: cover;
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.06);
}

.ad-content {
  display: grid;
  gap: 0.28rem;
}

.ad-content small {
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0.18rem 0.48rem;
  color: #fff7cf;
  font-size: 0.76rem;
  font-weight: 900;
}

.ad-content strong {
  color: var(--text);
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
}

.ad-content span {
  color: #d6deed;
}

@media (max-width: 900px) {
  .home-hero,
  .tool-cards,
  .quick-strip,
  .gear-grid {
    grid-template-columns: 1fr;
  }

  .home-copy h1 {
    max-width: none;
  }
}

@media (max-width: 560px) {
  body {
    padding-bottom: calc(4.2rem + env(safe-area-inset-bottom));
  }

  .site-header {
    gap: 0.7rem;
    padding: 0.85rem;
  }

  .brand {
    width: 100%;
  }

  .brand-mark {
    width: 2.35rem;
    height: 2.35rem;
    font-size: 0.78rem;
  }

  .brand strong {
    font-size: 0.98rem;
  }

  .brand small {
    font-size: 0.76rem;
  }

  .home-hero {
    padding-top: 0.8rem;
  }

  .home-copy h1,
  h1 {
    font-size: clamp(2.05rem, 11vw, 3rem);
    line-height: 1.04;
  }

  .lead {
    font-size: 0.98rem;
    line-height: 1.68;
  }

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

  .primary-action,
  .secondary-action,
  .primary-button {
    justify-content: center;
    width: 100%;
    min-height: 2.8rem;
    text-align: center;
  }

  .daily-board,
  .quick-strip a,
  .tool-cards article,
  .faq-panel .method-grid article,
  .ad-card {
    border-radius: 0.85rem;
  }

  .ad-card a {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .ad-card img {
    height: 9rem;
  }

  .notice {
    display: grid;
    gap: 0.35rem;
  }

  .mobile-dock {
    position: fixed;
    right: 0.75rem;
    bottom: calc(0.75rem + env(safe-area-inset-bottom));
    left: 0.75rem;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.45rem;
    padding: 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 1rem;
    background: rgba(7, 9, 21, 0.94);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(14px);
  }

  .mobile-dock a {
    min-height: 2.6rem;
    display: grid;
    place-items: center;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.07);
    color: var(--text);
    text-decoration: none;
    font-weight: 900;
  }

  .mobile-dock a:first-child {
    background: linear-gradient(135deg, var(--gold), #fb923c);
    color: #111827;
  }
}

.guide-body {
  display: grid;
  gap: 1rem;
}

.guide-body article {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.05);
}

.guide-body h2 {
  margin-bottom: 0.45rem;
  font-size: clamp(1.15rem, 3vw, 1.55rem);
}

.guide-body p {
  color: #d6deed;
}

.guide-links {
  margin-top: 1.25rem;
}

.compact-grid {
  grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
}

.tool-card {
  display: grid;
  gap: 0.45rem;
  min-height: 7.5rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.tool-card:hover {
  transform: translateY(-2px);
  border-color: rgba(250, 204, 21, 0.55);
  background: rgba(255, 255, 255, 0.09);
}

.tool-card strong {
  font-size: 1.02rem;
}

.tool-card span {
  color: #cbd5e1;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .guide-links {
    margin-top: 0.8rem;
  }

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

  .tool-card {
    min-height: 0;
    padding: 0.95rem;
  }
}

