/* Cellarune's approved identity (Direction A "C-Bottle Refined" v1.1) with Apple Pro showcase elevation; the shared support site and K-Core keep their styles. */
body.cellarune {
  --bg: #F7F1E8;
  --bg-soft: #E8CDD7;
  --surface: rgba(255, 252, 248, 0.82);
  --surface-hover: rgba(255, 253, 250, 0.96);
  --surface-strong: #E8CDD7;
  --topbar-bg: rgba(247, 241, 232, 0.8);
  --text: #542136;
  --muted: #53484D;
  --primary: #542136;
  --primary-strong: #241B21;
  --accent: #542136;
  --border: rgba(84, 33, 54, 0.15);
  --border-hover: rgba(84, 33, 54, 0.36);
  --shadow: 0 20px 50px rgba(36, 27, 33, 0.07), 0 2px 10px rgba(36, 27, 33, 0.04);
  --shadow-hover: 0 28px 64px rgba(36, 27, 33, 0.13), 0 4px 16px rgba(36, 27, 33, 0.06);
  --radius-stage: 36px;
  --radius-card: 26px;
  --radius-pill: 980px;
  color-scheme: light;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 86% 6%, rgba(232, 205, 215, 0.55), transparent 40%),
    radial-gradient(circle at 10% 34%, rgba(232, 205, 215, 0.32), transparent 46%);
  background-attachment: scroll;
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
}

body.cellarune,
body.cellarune * {
  font-family: "Helvetica Neue", Arial, sans-serif;
}

body.cellarune:lang(th),
body.cellarune:lang(th) * {
  font-family: Thonburi, system-ui, sans-serif;
  letter-spacing: normal;
}

body.cellarune :is(h1, h2, h3) {
  font-family: Georgia, serif;
  color: var(--text);
  font-weight: 400;
  letter-spacing: -0.032em;
  text-wrap: balance;
  background: none;
  -webkit-text-fill-color: currentColor;
}

body.cellarune:lang(th) :is(h1, h2, h3) {
  font-family: Thonburi, system-ui, sans-serif;
  letter-spacing: normal;
  line-height: 1.48;
}

body.cellarune :is(p, li, td) {
  color: var(--muted);
}

body.cellarune a {
  text-underline-offset: 0.22em;
}

body.cellarune :is(a, summary):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* Sticky Frosted-Glass Apple Product Sub-Nav */
body.cellarune .topbar {
  --topbar-scrolled-radius: 999px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 18px;
  position: sticky;
  top: 12px;
  z-index: 100;
  margin-top: 12px;
  padding: 10px 22px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--topbar-bg);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  box-shadow: 0 12px 34px rgba(36, 27, 33, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  text-align: left;
  transition: padding 0.22s ease, top 0.22s ease, border-radius 0.22s ease, box-shadow 0.22s ease;
}

body.cellarune .brand {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 1px;
  justify-self: start;
}

body.cellarune .brand-lockup {
  display: block;
  width: 186px;
  min-width: 180px;
  padding: 2px 4px;
  transition: padding 0.22s ease;
}

body.cellarune .brand-lockup img {
  display: block;
  width: 100%;
  height: auto;
}

body.cellarune .brand-description {
  margin-left: 4px;
  max-height: 18px;
  overflow: hidden;
  font-size: 0.7rem;
  line-height: 1.25;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.01em;
  color: var(--muted);
  transition: max-height 0.22s ease, opacity 0.18s ease, margin 0.22s ease;
}

body.cellarune .topbar > .nav:not(.language-switch) {
  grid-row: 1;
  grid-column: 2;
  gap: 2px 4px;
  justify-content: center;
  padding-top: 0;
  border-top: 0;
}

body.cellarune .topbar > .nav:not(.language-switch):last-child {
  grid-column: 2 / -1;
  justify-content: flex-end;
}

body.cellarune .nav a {
  min-height: 30px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: 0.81rem;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}

body.cellarune .nav a:hover {
  background: rgba(84, 33, 54, 0.08);
  color: var(--text);
  text-decoration: none;
}

body.cellarune .language-switch {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  border: 1px solid var(--border);
  padding: 2px 5px;
  border-radius: var(--radius-pill);
  background: rgba(84, 33, 54, 0.04);
  gap: 4px;
}

body.cellarune .language-switch a {
  min-height: 26px;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
}

@keyframes cellarune-topbar-shrink {
  to {
    top: 8px;
    padding-top: 4px;
    padding-bottom: 4px;
    row-gap: 2px;
    border-radius: var(--topbar-scrolled-radius);
    box-shadow: 0 10px 26px rgba(36, 27, 33, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  }
}

@keyframes cellarune-brand-desc-hide {
  to {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    margin-bottom: 0;
  }
}

@keyframes cellarune-brand-lockup-compact {
  to {
    padding-top: 0;
    padding-bottom: 0;
  }
}

@supports (animation-timeline: scroll()) {
  body.cellarune .topbar {
    animation: cellarune-topbar-shrink linear both;
    animation-timeline: scroll(root);
    animation-range: 0px 72px;
  }

  body.cellarune .brand-description {
    animation: cellarune-brand-desc-hide linear both;
    animation-timeline: scroll(root);
    animation-range: 0px 48px;
  }

  body.cellarune .topbar .brand-lockup {
    animation: cellarune-brand-lockup-compact linear both;
    animation-timeline: scroll(root);
    animation-range: 0px 72px;
  }
}

body.cellarune .language-switch [aria-current="page"] {
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  font-weight: 500;
}

body.cellarune :is(.pill, .eyebrow) {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border: 1px solid var(--border-hover);
  background: rgba(84, 33, 54, 0.06);
  color: var(--text);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

body.cellarune .pill {
  padding: 6px 14px;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  text-transform: none;
}

/* Zone 1: Sculpted Apple Pro Hero Stage */
body.cellarune .hero {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: center;
  gap: 52px;
  margin-top: 24px;
  padding: 64px 56px;
  border-radius: var(--radius-stage);
  border: 1px solid var(--border);
  background:
    radial-gradient(circle at 88% 20%, rgba(232, 205, 215, 0.7), transparent 54%),
    linear-gradient(145deg, rgba(255, 252, 248, 0.94) 0%, rgba(247, 241, 232, 0.86) 56%, rgba(232, 205, 215, 0.48) 100%);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

body.cellarune .hero h1 {
  font-size: clamp(2.85rem, 5.2vw, 4.75rem);
  line-height: 1.06;
  max-width: 13ch;
  margin: 6px 0 22px;
}

body.cellarune:lang(th) .hero h1 {
  font-size: clamp(2.35rem, 4.4vw, 3.85rem);
  line-height: 1.38;
  max-width: 14ch;
}

body.cellarune .lead {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.82;
  max-width: 48ch;
}

body.cellarune .brand-story {
  min-width: 0;
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.85), rgba(232, 205, 215, 0.72));
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 48px 32px 36px;
  margin-top: 0;
  text-align: center;
  box-shadow: 0 20px 44px rgba(36, 27, 33, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

body.cellarune .story-symbol {
  display: block;
  width: min(100%, 216px);
  height: auto;
  margin: 0 auto 36px;
  filter: drop-shadow(0 14px 24px rgba(84, 33, 54, 0.14));
}

body.cellarune .brand-line {
  font-family: Georgia, serif;
  color: var(--text);
  font-size: 1.55rem;
  line-height: 1.35;
  margin: 0;
  text-wrap: balance;
}

body.cellarune:lang(th) .brand-line {
  font-family: Thonburi, system-ui, sans-serif;
  font-size: 1.35rem;
  line-height: 1.55;
}

body.cellarune :is(.hero-actions, .contact-actions) {
  gap: 14px;
  margin: 28px 0;
}

body.cellarune .hero-actions {
  margin: 28px 0 0;
}

body.cellarune .hero-meta {
  margin: 14px 0 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted);
}

body.cellarune .button {
  font-family: "Helvetica Neue", Arial, sans-serif;
  padding: 13px 26px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.45;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

body.cellarune .button-primary {
  background: #542136;
  color: #FFFFFF;
  border: 1px solid #542136;
  box-shadow: 0 10px 24px rgba(84, 33, 54, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

body.cellarune .button-secondary {
  background: rgba(255, 255, 255, 0.55);
  color: var(--text);
  border: 1px solid var(--border-hover);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.cellarune .button:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

body.cellarune .button-primary:hover {
  background: #3D1626;
  border-color: #3D1626;
  color: #FFFFFF;
  box-shadow: 0 14px 30px rgba(84, 33, 54, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

body.cellarune .button-secondary:hover {
  background: var(--bg-soft);
  border-color: var(--text);
}

/* Section Layout & Bento Cards */
body.cellarune .section {
  padding: 64px 0;
  border-top: 0;
}

body.cellarune .section-heading {
  max-width: 760px;
  margin-bottom: 40px;
}

body.cellarune .section-heading h2 {
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  line-height: 1.16;
  margin: 0 0 12px;
}

body.cellarune .section-heading p {
  font-size: 0.94rem;
  margin: 0;
}

body.cellarune :is(.glass-card, .info-card, .contact-card, .notice-card, .feature-card, .faq-item) {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  box-shadow: var(--shadow);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

body.cellarune :is(.glass-card, .info-card, .contact-card, .feature-card):hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
  background: var(--surface-hover);
}

body.cellarune :is(.card-grid, .legal-grid) {
  gap: 24px;
}

body.cellarune :is(.info-card, .legal-card) {
  padding: 32px;
}

body.cellarune .info-card h3,
body.cellarune .legal-card h3 {
  font-size: 1.45rem;
  line-height: 1.32;
  margin: 0 0 12px;
}

body.cellarune :is(.info-card p, .info-card li, .legal-card p) {
  font-size: 0.93rem;
  line-height: 1.78;
}

/* Full-Stage Dark Wine Hardware Showcase (#features) */
body.cellarune #features {
  --text: #F7F1E8;
  --muted: #ECC8D5;
  --border: rgba(236, 200, 213, 0.2);
  --border-hover: rgba(236, 200, 213, 0.44);
  margin-top: 32px;
  padding: 72px 48px;
  border-radius: var(--radius-stage);
  border: 1px solid rgba(236, 200, 213, 0.22);
  background:
    radial-gradient(circle at 50% 18%, rgba(236, 200, 213, 0.16), transparent 54%),
    radial-gradient(circle at 15% 85%, rgba(84, 33, 54, 0.65), transparent 50%),
    linear-gradient(180deg, #241B21 0%, #2F1926 52%, #20151C 100%);
  color: #F7F1E8;
  box-shadow: 0 32px 80px rgba(36, 27, 33, 0.24), inset 0 1px 0 rgba(247, 241, 232, 0.12);
}

body.cellarune #features .section-heading {
  text-align: center;
  margin: 0 auto 52px;
}

body.cellarune #features .section-heading h2 {
  color: #F7F1E8;
}

body.cellarune #features .section-heading p {
  color: #ECC8D5;
}

body.cellarune .screenshot-grid {
  gap: 28px;
  margin-bottom: 52px;
  align-items: end;
}

body.cellarune .screenshot-grid figure {
  background: linear-gradient(180deg, rgba(84, 33, 54, 0.42) 0%, rgba(22, 14, 19, 0.64) 100%);
  border: 1px solid rgba(236, 200, 213, 0.2);
  border-radius: 30px;
  padding: 28px 18px 22px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(247, 241, 232, 0.08);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease;
}

body.cellarune .screenshot-grid figure:nth-child(2) {
  transform: translateY(-14px);
  border-color: rgba(236, 200, 213, 0.38);
  background: linear-gradient(180deg, rgba(84, 33, 54, 0.58) 0%, rgba(28, 17, 24, 0.78) 100%);
}

body.cellarune .screenshot-grid figure:hover {
  border-color: rgba(236, 200, 213, 0.5);
}

/* Simple Vector Phone Bezel per brand-guidelines.md */
body.cellarune .screenshot-grid img {
  max-width: 242px;
  padding: 9px;
  background: #120C10;
  border: 2px solid rgba(236, 200, 213, 0.34);
  border-radius: 36px;
  display: block;
  margin: 0 auto;
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(247, 241, 232, 0.08);
}

body.cellarune .screenshot-grid figcaption {
  color: #F7F1E8;
  font-size: 0.88rem;
  font-weight: 500;
  margin-top: 18px;
}

body.cellarune #features .card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.cellarune #features .info-card {
  background: rgba(84, 33, 54, 0.44);
  border: 1px solid rgba(236, 200, 213, 0.22);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(247, 241, 232, 0.08);
}

body.cellarune #features .info-card:hover {
  background: rgba(84, 33, 54, 0.62);
  border-color: rgba(236, 200, 213, 0.42);
}

body.cellarune #features .info-card h3 {
  color: #F7F1E8;
}

body.cellarune #features .info-card p {
  color: #ECC8D5;
}

/* Tier Comparison Bento (#free-and-premium) */
body.cellarune #free-and-premium .card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 24px;
}

body.cellarune #free-and-premium .info-card:nth-child(2) {
  --text: #F7F1E8;
  --muted: #ECC8D5;
  background:
    radial-gradient(circle at 88% 16%, rgba(236, 200, 213, 0.2), transparent 52%),
    linear-gradient(155deg, #542136 0%, #241B21 100%);
  border: 1px solid rgba(236, 200, 213, 0.36);
  box-shadow: 0 24px 56px rgba(36, 27, 33, 0.2), inset 0 1px 0 rgba(247, 241, 232, 0.16);
}

body.cellarune #free-and-premium .info-card:nth-child(2) h3 {
  color: #F7F1E8;
}

body.cellarune #free-and-premium .info-card:nth-child(2) p {
  color: #ECC8D5;
}

body.cellarune #free-and-premium > p {
  font-size: 0.85rem;
  line-height: 1.72;
  max-width: 84ch;
  margin: 0;
}

/* Editorial Guides Bento (#guides) */
body.cellarune .guide-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

body.cellarune .guide-grid .info-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 32px;
}

body.cellarune .guide-grid h3 {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.32;
}

body.cellarune .guide-grid p {
  margin: 0;
}

/* Banner & Contact Cards (#accessibility, #contact) */
body.cellarune #contact .contact-card {
  padding: 40px 44px;
  background:
    radial-gradient(circle at 92% 20%, rgba(232, 205, 215, 0.55), transparent 55%),
    var(--surface);
}

body.cellarune .contact-card {
  grid-template-columns: 1.5fr 1fr;
  gap: 36px;
  padding: 36px 40px;
}

body.cellarune .contact-card h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

/* Zone 2: Support & Spec Drawer */
body.cellarune .quick-links {
  padding: 36px 0 16px;
  border-top: 1px solid var(--border);
}

body.cellarune .quick-links h2 {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 18px;
}

body.cellarune .mini-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

body.cellarune .mini-card {
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  background: var(--surface);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

body.cellarune .mini-card:hover {
  transform: translateY(-2px);
  background: var(--surface-hover);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
  text-decoration: none;
}

body.cellarune .mini-card strong {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
}

body.cellarune .mini-card small {
  font-size: 0.8rem;
  line-height: 1.55;
}

/* FAQ Accordion Drawer */
body.cellarune .faq-list {
  gap: 14px;
}

body.cellarune .faq-item {
  padding: 0 28px;
  border-radius: 22px;
}

body.cellarune .faq-item[open] {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  box-shadow: var(--shadow);
}

body.cellarune .faq-item summary {
  padding: 22px 0;
  gap: 20px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--text);
}

body.cellarune .faq-item p {
  font-size: 0.94rem;
  line-height: 1.82;
  max-width: 82ch;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  animation: none;
}

body.cellarune .faq-item :is(ol, ul) {
  max-width: 82ch;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.8;
}

body.cellarune .faq-item figure img {
  display: block;
  width: 100%;
  height: auto;
  padding: 7px;
  background: #120C10;
  border: 2px solid var(--border-hover);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

body.cellarune .faq-item figure figcaption {
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
}

/* Developer Guides & Legal Views */
body.cellarune .article {
  max-width: 820px;
  padding-top: 36px;
}

body.cellarune .article-heading {
  padding: 28px 0 34px;
  border-bottom: 1px solid var(--border);
}

body.cellarune .article-heading h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.15;
}

body.cellarune .article-heading .lead {
  max-width: 62ch;
}

body.cellarune .article-copy {
  font-size: 1.02rem;
  line-height: 1.9;
  margin: 46px 0;
}

body.cellarune .article-copy h2 {
  font-size: 1.85rem;
  margin-top: 44px;
}

body.cellarune .notice-card {
  padding: 28px 32px;
  background: var(--surface);
  border: 1px solid var(--border-hover);
  border-radius: 24px;
}

body.cellarune .notice-card h2 {
  font-size: 1.5rem;
}

body.cellarune .notice-card p {
  font-size: 0.92rem;
}

body.cellarune .legal-hero {
  padding: 56px 0 24px;
  overflow-wrap: anywhere;
}

body.cellarune .legal-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.18;
}

body.cellarune .legal-copy {
  gap: 28px;
  padding-top: 0;
}

body.cellarune .legal-section {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

body.cellarune .legal-section h2 {
  font-size: 1.75rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

body.cellarune .legal-section :is(p, li, td, th) {
  font-size: 0.94rem;
  line-height: 1.8;
}

body.cellarune .legal-table-wrap {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.35);
}

body.cellarune .legal-table th {
  color: var(--text);
  font-weight: 600;
}

/* Footer */
body.cellarune .footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px 32px;
  align-items: end;
  text-align: left;
  margin-top: 56px;
  padding: 44px 0 56px;
  border-top: 1px solid var(--border);
}

body.cellarune .footer-brand {
  grid-column: 1 / -1;
  margin-bottom: 12px;
}

body.cellarune .footer-brand .brand-lockup {
  width: 192px;
}

body.cellarune .footer-brand p {
  font-family: Georgia, serif;
  font-size: 1.3rem;
  color: var(--text);
  margin: 14px 0 0;
}

body.cellarune:lang(th) .footer-brand p {
  font-family: Thonburi, system-ui, sans-serif;
  font-size: 1.1rem;
}

body.cellarune .footer > p {
  margin: 0;
  font-size: 0.78rem;
}

body.cellarune .footer-links {
  gap: 18px;
  font-size: 0.82rem;
}

body.cellarune .skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  padding: 12px 16px;
  z-index: 200;
  background: var(--bg);
  border-radius: 12px;
}

body.cellarune .skip-link:focus {
  top: 12px;
}

/* Dark Mode Palette (Direction A Dark Wine) */
@media (prefers-color-scheme: dark) {
  body.cellarune {
    --bg: #241B21;
    --bg-soft: #542136;
    --surface: rgba(54, 27, 40, 0.68);
    --surface-hover: rgba(68, 33, 50, 0.86);
    --surface-strong: #542136;
    --topbar-bg: rgba(36, 27, 33, 0.78);
    --text: #F7F1E8;
    --muted: #ECC8D5;
    --accent: #ECC8D5;
    --border: rgba(236, 200, 213, 0.2);
    --border-hover: rgba(236, 200, 213, 0.45);
    --shadow: 0 24px 60px rgba(8, 4, 7, 0.45), 0 2px 12px rgba(8, 4, 7, 0.3);
    --shadow-hover: 0 32px 76px rgba(8, 4, 7, 0.62), 0 6px 20px rgba(8, 4, 7, 0.4);
    color-scheme: dark;
    background-image:
      radial-gradient(circle at 86% 6%, rgba(84, 33, 54, 0.55), transparent 40%),
      radial-gradient(circle at 10% 34%, rgba(84, 33, 54, 0.36), transparent 46%);
  }

  body.cellarune .topbar {
    box-shadow: 0 14px 38px rgba(6, 3, 5, 0.45), inset 0 1px 0 rgba(247, 241, 232, 0.1);
  }

  body.cellarune .nav a:hover {
    background: rgba(236, 200, 213, 0.12);
  }

  body.cellarune .language-switch {
    background: rgba(247, 241, 232, 0.05);
  }

  body.cellarune :is(.pill, .eyebrow) {
    background: rgba(236, 200, 213, 0.1);
  }

  body.cellarune .hero {
    background:
      radial-gradient(circle at 86% 22%, rgba(236, 200, 213, 0.14), transparent 54%),
      linear-gradient(145deg, rgba(56, 26, 40, 0.92) 0%, rgba(36, 27, 33, 0.96) 58%, rgba(84, 33, 54, 0.52) 100%);
    box-shadow: var(--shadow), inset 0 1px 0 rgba(247, 241, 232, 0.1);
  }

  body.cellarune .brand-story {
    background: radial-gradient(circle at 50% 32%, rgba(84, 33, 54, 0.88), rgba(28, 18, 24, 0.94));
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(247, 241, 232, 0.12);
  }

  body.cellarune .button-primary {
    background: #ECC8D5;
    color: #241B21;
    border-color: #ECC8D5;
    box-shadow: 0 10px 26px rgba(236, 200, 213, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  }

  body.cellarune .button-primary:hover {
    background: #F7F1E8;
    border-color: #F7F1E8;
    color: #241B21;
  }

  body.cellarune .button-secondary {
    background: rgba(247, 241, 232, 0.06);
  }

  body.cellarune #contact .contact-card {
    background:
      radial-gradient(circle at 92% 20%, rgba(84, 33, 54, 0.65), transparent 55%),
      var(--surface);
  }

  body.cellarune .legal-table-wrap {
    background: rgba(20, 12, 16, 0.45);
  }
}

/* Responsive Breakpoints */
@media (max-width: 980px) {
  body.cellarune .topbar {
    --topbar-scrolled-radius: 16px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 14px;
    padding: 10px 18px;
    border-radius: 20px;
  }

  body.cellarune .language-switch {
    grid-column: 2;
    grid-row: 1;
  }

  body.cellarune .topbar > .nav:not(.language-switch),
  body.cellarune .topbar > .nav:not(.language-switch):last-child {
    grid-row: 2;
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-top: 4px;
    border-top: 1px solid var(--border);
  }

  body.cellarune .topbar > .nav:not(.language-switch)::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 900px) {
  body.cellarune .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding: 48px 36px;
  }

  body.cellarune .brand-story {
    padding: 36px 24px 28px;
  }

  body.cellarune .story-symbol {
    margin-bottom: 28px;
  }

  body.cellarune #features {
    padding: 56px 32px;
  }

  body.cellarune .screenshot-grid figure:nth-child(2) {
    transform: none;
  }

  body.cellarune #features .card-grid,
  body.cellarune #free-and-premium .card-grid,
  body.cellarune .guide-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

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

  body.cellarune .contact-card {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 680px) {
  body.cellarune .topbar {
    top: 8px;
    margin-top: 10px;
    padding: 8px 14px;
    gap: 6px 10px;
    border-radius: 16px;
  }

  body.cellarune .brand-lockup {
    width: 184px;
    min-width: 180px;
  }

  body.cellarune .nav a {
    font-size: 0.76rem;
    padding: 4px 8px;
  }

  body.cellarune .topbar > .nav:not(.language-switch) {
    gap: 4px 6px;
  }

  body.cellarune .language-switch {
    gap: 4px;
    padding: 2px 4px;
  }

  body.cellarune .language-switch a {
    padding: 3px 7px;
  }

  body.cellarune .hero {
    padding: 36px 22px;
    border-radius: 28px;
    gap: 28px;
  }

  body.cellarune .hero h1 {
    font-size: clamp(2.3rem, 9vw, 3.1rem);
    max-width: 13ch;
  }

  body.cellarune:lang(th) .hero h1 {
    font-size: clamp(2rem, 8vw, 2.65rem);
  }

  body.cellarune .brand-story {
    margin: 0;
    padding: 28px 20px;
    border-radius: 22px;
  }

  body.cellarune .story-symbol {
    width: 144px;
    margin-bottom: 22px;
  }

  body.cellarune .brand-line {
    font-size: 1.35rem;
  }

  body.cellarune .section {
    padding: 42px 0;
  }

  body.cellarune #features {
    padding: 44px 20px;
    border-radius: 28px;
  }

  body.cellarune .section-heading h2 {
    font-size: 1.95rem;
  }

  body.cellarune :is(.info-card, .legal-card, .legal-section) {
    padding: 24px 20px;
    border-radius: 22px;
  }

  body.cellarune #contact .contact-card,
  body.cellarune .contact-card {
    padding: 26px 22px;
    border-radius: 24px;
  }

  body.cellarune .faq-item {
    padding: 0 20px;
  }

  body.cellarune .article-heading h1,
  body.cellarune .legal-hero h1 {
    font-size: 2.35rem;
  }

  body.cellarune .footer {
    grid-template-columns: 1fr;
  }

  body.cellarune .footer-brand {
    grid-column: 1;
  }
}

@media (max-width: 380px) {
  body.cellarune .language-switch {
    grid-row: 2;
    grid-column: 1;
    justify-self: start;
  }

  body.cellarune .topbar > .nav:not(.language-switch) {
    grid-row: 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.cellarune *,
  body.cellarune *::before,
  body.cellarune *::after {
    animation: none !important;
    transition: none !important;
  }
}

body.cellarune:lang(th) :is(.button, .faq-item summary, .quick-links h2) {
  font-family: Thonburi, system-ui, sans-serif;
}

body.cellarune :is(p, li, td) a {
  text-decoration: underline;
}

body.cellarune .hero h1 .brand-word {
  white-space: nowrap;
}
