﻿/* ==========================================================
   万字世界 WanZi World — Imperial Gold design system
   Shared stylesheet for all pages
   Typography tuned for older audience: larger base, taller line-height
   ========================================================== */
:root {
  --ivory:        #FBF5E6;
  --cream:        #FFFBF2;
  --parchment:    #F6EDD3;
  --paper:        #FFFFFF;

  --ink:          #1A1408;
  --ink-soft:     #3E342A;
  --ink-mute:     #6B5E4C;
  --ink-faint:    #A89A7E;

  --gold:         #E9A800;
  --gold-bright:  #FFC727;
  --gold-deep:    #B57F08;
  --gold-shadow:  #8A5E04;
  --gold-glow:    #FFE48A;

  --vermilion:    #D8392C;
  --jade:         #3E9B6B;
  --azure:        #2C75C9;
  --plum:         #7E4FB7;
  --rose:         #E26B7A;
  --slate:        #4A5566;

  --line:         #EEE3C5;
  --line-strong:  #D9C898;

  --shadow-sm:    0 1px 2px rgba(138,94,4,.06), 0 2px 6px rgba(138,94,4,.04);
  --shadow-md:    0 6px 18px -8px rgba(138,94,4,.18), 0 10px 30px -12px rgba(138,94,4,.10);
  --shadow-lg:    0 18px 40px -20px rgba(138,94,4,.28), 0 28px 60px -30px rgba(138,94,4,.18);
  --shadow-gold:  0 14px 30px -12px rgba(233,168,0,.45);

  --display:      'Noto Serif SC', 'Songti SC', 'STSong', serif;
  --display-en:   'Fraunces', 'Noto Serif SC', serif;
  --body:         'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --mono:         'JetBrains Mono', ui-monospace, monospace;

  --r-sm:  8px;
  --r-md:  14px;
  --r-lg:  22px;
  --r-xl:  32px;

  /* font-size scale for elderly readability */
  --fs-xs:   14px;   /* small labels, badges */
  --fs-sm:   17px;   /* secondary text */
  --fs-base: 20px;   /* body */
  --fs-md:   21px;   /* card titles, leads */
  --fs-lg:   24px;   /* feature text */
  --fs-xl:   28px;   /* section / panel heads */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 20px; }
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  font-size: 20px;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .35;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.6  0 0 0 0 0.45  0 0 0 0 0.1  0 0 0 .05 0'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea, select { font: inherit; }

.container { width: min(1240px, 92vw); margin-inline: auto; position: relative; z-index: 2; }

/* ==========================================================
   Topbar
   ========================================================== */
.topbar {
  background: linear-gradient(90deg, #1A1408 0%, #2A1F0E 100%);
  color: #E7D9B5;
  font-size: 17px;
  letter-spacing: .12em;
}
.topbar .container {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0;
}
.topbar .pulse { display: inline-flex; align-items: center; gap: 9px; }
.topbar .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #FFC727;
  box-shadow: 0 0 0 0 rgba(255,199,39,.7);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,199,39,.6); }
  70%  { box-shadow: 0 0 0 8px rgba(255,199,39,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,199,39,0); }
}
.topbar .ticker { display: flex; gap: 32px; opacity: .9; }
.topbar .ticker span b { color: #FFC727; font-weight: 700; margin-left: 7px; letter-spacing: 0; font-size: 17px; }

/* ==========================================================
   Site header
   ========================================================== */
.site-header {
  position: sticky; top: 0;
  background: rgba(255, 251, 242, .9);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0;
}
.brand { display: flex; align-items: center; gap: 16px; }
.brand-mark { width: 56px; height: 56px; display: grid; place-items: center; position: relative; }
.brand-mark svg { filter: drop-shadow(0 4px 10px rgba(233,168,0,.45)); width: 100%; height: 100%; }
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name .cn {
  font-family: var(--display);
  font-weight: 900;
  font-size: 25px;
  letter-spacing: .12em;
  background: linear-gradient(180deg, #B57F08 0%, #E9A800 50%, #FFC727 75%, #B57F08 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-name .en {
  font-family: var(--display-en);
  font-weight: 600; font-size: 17px;
  letter-spacing: .28em;
  color: var(--ink-mute);
  text-transform: uppercase;
  margin-top: 4px;
}
.brand-name .tag {
  font-size: 17px; color: var(--ink-faint);
  letter-spacing: .1em; margin-top: 4px;
}
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 20px; }
.nav-links a { color: var(--ink-soft); position: relative; padding: 10px 0; transition: color .2s; font-weight: 500; font-size: 20px; }
.nav-links a.active { color: var(--ink); font-weight: 700; }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 4px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright));
  border-radius: 2px;
}
.nav-links a:hover { color: var(--gold-deep); }
.nav-links .dropdown { position: relative; cursor: pointer; }
.nav-links .dropdown::after { content: '▾'; font-size: 11px; margin-left: 6px; opacity: .6; }
.nav-links .dropdown-menu {
  position: absolute;
  top: 100%; left: -16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: 14px;
  min-width: 240px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 100;
}
.nav-links .dropdown:hover .dropdown-menu { display: flex; }
.nav-links .dropdown-menu a {
  padding: 10px 14px; border-radius: var(--r-sm);
  font-size: 20px; color: var(--ink-soft);
}
.nav-links .dropdown-menu a:hover { background: var(--parchment); color: var(--gold-deep); }
.nav-links .dropdown-menu a::after { display: none; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-size: 17px; font-weight: 600;
  letter-spacing: .06em;
  box-shadow: var(--shadow-sm);
  transition: transform .2s;
}
.nav-cta:hover { transform: translateY(-1px); color: #FFC727; }
.nav-cta::after { display: none !important; }

.menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.menu-toggle svg { width: 28px; height: 28px; stroke: var(--ink); stroke-width: 2; }

/* ==========================================================
   Sections / typography
   ========================================================== */
.section {
  padding: 90px 0 40px;
  position: relative;
}
.section-sm { padding: 60px 0 30px; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 42px;
  gap: 30px;
  flex-wrap: wrap;
}
.section-head .heading-block { max-width: 680px; }
.section-eyebrow {
  font-family: var(--display-en);
  font-size: 16px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
}
.section-eyebrow::before { content: '◆'; color: var(--gold); font-size: 9px; }
.section-title {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(32px, 3.2vw, 44px);
  line-height: 1.22;
  letter-spacing: .02em;
  color: var(--ink);
}
.section-title em {
  font-style: italic;
  font-family: var(--display-en);
  color: var(--gold-deep);
}
.section-lead {
  font-size: 20px;
  color: var(--ink-soft);
  margin-top: 14px;
  line-height: 1.75;
  max-width: 680px;
}
.section-link {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 20px; font-weight: 700;
  color: var(--ink);
  padding: 14px 26px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  transition: all .25s;
}
.section-link:hover { background: var(--ink); color: var(--gold-bright); transform: translateY(-2px); }

/* ==========================================================
   Buttons
   ========================================================== */
.btn-primary {
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, #FFC727 0%, #E9A800 50%, #B57F08 100%);
  color: #1A1408;
  font-weight: 700; font-size: 18px;
  letter-spacing: .06em;
  box-shadow: var(--shadow-gold);
  overflow: hidden;
  transition: transform .25s;
  cursor: pointer;
  border: none;
}
.btn-primary::before {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
  transition: left .8s;
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-primary:hover::before { left: 130%; }
.btn-primary .arrow { display: inline-block; transition: transform .25s; }
.btn-primary:hover .arrow { transform: translateX(4px); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 18px 28px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  font-weight: 700; font-size: 18px;
  color: var(--ink);
  transition: all .2s;
  cursor: pointer;
  background: transparent;
}
.btn-ghost:hover { background: var(--ink); color: var(--gold-bright); }
.btn-sm { padding: 11px 20px; font-size: 17px; }

/* ==========================================================
   Lottery balls — larger for visibility
   ========================================================== */
.mini-ball {
  display: inline-grid; place-items: center;
  min-width: 44px; height: 44px;
  padding: 0 10px;
  border-radius: 50%;
  font-family: var(--display-en);
  font-weight: 700; font-size: 18px;
  background: radial-gradient(circle at 35% 30%, #FFF5D4, #FFE48A 50%, #FFC727 100%);
  color: #6B4400;
  box-shadow: inset -2px -3px 6px rgba(0,0,0,.1), inset 1px 2px 4px rgba(255,255,255,.7);
  position: relative;
}
.mini-ball.cold { background: radial-gradient(circle at 35% 30%, #E5F2FF, #B5D8FF 50%, #6FB1F5 100%); color: #134B7F; }
.mini-ball.ai   { background: radial-gradient(circle at 35% 30%, #EFE6FB, #C9B0F0 50%, #9170D8 100%); color: #421C7A; }
.mini-ball.hot  { background: radial-gradient(circle at 35% 30%, #FFE0E0, #FFB5B5 50%, #FF7070 100%); color: #7A1A1A; }
.mini-ball.jade { background: radial-gradient(circle at 35% 30%, #D6F2E2, #9FDFB7 50%, #5BBD86 100%); color: #1B5535; }

.ball-r {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display-en);
  font-weight: 800; font-size: 24px;
  background: radial-gradient(circle at 35% 30%, #FFF5D4, #FFE48A 40%, #FFC727 75%, #B57F08 100%);
  color: #6B4400;
  box-shadow:
    inset -2px -3px 6px rgba(0,0,0,.15),
    inset 1px 2px 4px rgba(255,255,255,.7),
    0 6px 14px -4px rgba(138,94,4,.4);
  position: relative;
}
.ball-r::after {
  content: ''; position: absolute; top: 18%; left: 22%;
  width: 28%; height: 22%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255,255,255,.85), transparent 70%);
  filter: blur(1.5px);
}
.digit {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display-en);
  font-weight: 800; font-size: 26px;
  background: radial-gradient(circle at 35% 30%, #FFF8DA, #FFE9A6 40%, #FFC727 75%, #B57F08 100%);
  color: #6B4400;
  box-shadow:
    inset -2px -3px 6px rgba(0,0,0,.12),
    inset 1px 2px 3px rgba(255,255,255,.7);
}

/* ==========================================================
   Cards
   ========================================================== */
.card {
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: 30px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* ==========================================================
   Inner-page hero
   ========================================================== */
.page-hero {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 800px 300px at 50% 0%, rgba(255,199,39,.18), transparent 65%),
    linear-gradient(180deg, var(--cream) 0%, var(--ivory) 100%);
  z-index: 0;
}
.page-hero-inner {
  position: relative; z-index: 1;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.page-hero h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(38px, 4.6vw, 58px);
  line-height: 1.18;
  letter-spacing: .02em;
  margin: 18px 0 22px;
}
.page-hero h1 em {
  font-style: italic;
  font-family: var(--display-en);
  background: linear-gradient(180deg, #B57F08, #E9A800 40%, #FFC727 60%, #B57F08);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-hero p {
  font-size: 20px;
  line-height: 1.78;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto;
}
.crumbs {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--display-en);
  font-size: 17px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold-deep);
  font-weight: 600;
}
.crumbs span { opacity: .4; }

/* ==========================================================
   Footer
   ========================================================== */
.footer-cta {
  margin-top: 90px;
  margin-bottom: 80px;
  padding: 76px 56px;
  border-radius: var(--r-xl);
  background:
    radial-gradient(ellipse 600px 400px at 20% 50%, rgba(255,228,138,.4), transparent),
    radial-gradient(ellipse 500px 400px at 80% 50%, rgba(255,255,255,.3), transparent),
    linear-gradient(135deg, #FFD453 0%, #FFC727 50%, #E9A800 100%);
  color: #1A1408;
  position: relative;
  overflow: hidden;
}
.footer-cta::after {
  content: '◆';
  position: absolute;
  font-size: 400px;
  color: rgba(255,255,255,.2);
  right: -100px; top: -150px;
  font-family: serif;
}
.footer-cta-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 50px;
  position: relative; z-index: 1;
}
.foot-brand .brand-name .cn {
  background: linear-gradient(180deg, #1A1408, #4A3210);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.foot-brand .brand-name .en { color: rgba(26,20,8,.78); }
.foot-brand .tag {
  font-size: 20px; line-height: 1.7;
  color: rgba(26,20,8,.8);
  margin-top: 16px;
  max-width: 240px;
}
.foot-social { display: flex; gap: 12px; margin-top: 22px; }
.foot-social a {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #1A1408;
  color: #FFC727;
  display: grid; place-items: center;
  transition: transform .25s;
}
.foot-social a:hover { transform: translateY(-2px); }
.foot-social a svg { width: 18px; height: 18px; }
.foot-col h6 {
  font-family: var(--display);
  font-weight: 900;
  font-size: 16.5px;
  letter-spacing: .1em;
  margin-bottom: 18px;
  color: #1A1408;
}
.foot-col ul { list-style: none; display: grid; gap: 10px; }
.foot-col a {
  font-size: 18px;
  color: rgba(26,20,8,.82);
  transition: color .2s;
  line-height: 1.5;
}
.foot-col a:hover { color: #1A1408; font-weight: 700; }

.newsletter p {
  font-size: 18px; color: rgba(26,20,8,.82);
  line-height: 1.65; margin-bottom: 16px;
}
.newsletter form { display: flex; flex-direction: column; gap: 10px; }
.newsletter input {
  padding: 14px 18px;
  border-radius: 10px;
  border: 1.5px solid rgba(26,20,8,.18);
  background: rgba(255,255,255,.6);
  font-family: var(--body);
  font-size: 18px;
  outline: none;
}
.newsletter input::placeholder { color: rgba(26,20,8,.42); }
.newsletter input:focus { border-color: #1A1408; background: #fff; }
.newsletter button {
  padding: 14px 18px;
  border-radius: 10px;
  background: #1A1408;
  color: #FFC727;
  font-weight: 700; font-size: 18px;
  letter-spacing: .08em;
  transition: transform .2s;
  cursor: pointer;
  border: none;
}
.newsletter button:hover { transform: translateY(-1px); }

.foot-meta {
  margin-top: 54px;
  padding-top: 28px;
  border-top: 1px solid rgba(26,20,8,.18);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 17px;
  color: rgba(26,20,8,.75);
  letter-spacing: .04em;
  position: relative; z-index: 1;
  flex-wrap: wrap; gap: 12px;
}
.foot-meta b { color: #1A1408; }

/* ==========================================================
   Form fields (shared)
   ========================================================== */
.field { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.field label {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-family: var(--display-en);
}
.field input, .field textarea, .field select {
  padding: 16px 20px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--line-strong);
  background: var(--paper);
  font-size: 18px;
  color: var(--ink);
  outline: none;
  transition: border .2s;
  font-family: var(--body);
  line-height: 1.5;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 4px rgba(233,168,0,.15);
}
.field textarea { resize: vertical; min-height: 130px; }

/* ==========================================================
   Tables (data)
   ========================================================== */
.tbl {
  width: 100%;
  background: var(--paper);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  border-collapse: collapse;
  font-size: 18px;
}
.tbl th, .tbl td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.tbl th {
  background: var(--parchment);
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  letter-spacing: .04em;
}
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: rgba(255,228,138,.15); }
.tbl td.num {
  font-family: var(--display-en);
  font-weight: 700;
  font-size: 20px;
}

/* ==========================================================
   Brand badges (lottery brands)
   ========================================================== */
.brand-logo {
  width: 72px; height: 72px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  font-family: var(--display);
  font-weight: 900;
  color: #1A1408;
  flex-shrink: 0;
  overflow: hidden;
  padding: 6px;
  box-shadow: var(--shadow-sm);
}
.brand-logo img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}
/* fallback color tints when no image is present — letter still readable */
.brand-logo.magnum  { background: linear-gradient(135deg, #FFF5D4, #FFE48A); }
.brand-logo.toto    { background: linear-gradient(135deg, #FFEAEA, #FFD1D1); }
.brand-logo.damacai { background: linear-gradient(135deg, #E5F2FF, #B5D8FF); }
/* When an <img> is present, give it a clean white pad so any logo
   (transparent, dark-bg, or wide aspect) sits cleanly in the badge */
.brand-logo:has(img) {
  background: #FFFFFF;
  border: 1px solid var(--line);
  padding: 6px;
}

/* ==========================================================
   Reveal animations
   ========================================================== */
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rise { opacity: 0; animation: rise 1s cubic-bezier(.2,.7,.2,1) forwards; }
.d-1 { animation-delay: .1s; }
.d-2 { animation-delay: .25s; }
.d-3 { animation-delay: .4s; }
.d-4 { animation-delay: .55s; }
.d-5 { animation-delay: .7s; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1100px) {
  .footer-cta-grid { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 900px) {
  body { font-size: 19px; line-height: 1.7; }

  /* Nav */
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 10px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 16px 26px; font-size: 18px; }
  .nav-links a.active::after { display: none; }
  .menu-toggle { display: inline-flex; }

  /* Footer */
  .footer-cta { padding: 50px 36px; }
  .footer-cta-grid { grid-template-columns: 1fr 1fr; gap: 36px; }

  /* Page hero */
  .page-hero { padding: 60px 0 40px; }
  .page-hero h1 { font-size: clamp(32px, 6vw, 48px); }

  /* Balls */
  .ball-r { width: 48px; height: 48px; font-size: 18px; }
  .digit  { width: 40px; height: 40px; font-size: 18px; }
}

@media (max-width: 640px) {
  body { font-size: 18px; }

  /* Topbar */
  .topbar .ticker { display: none; }
  .topbar .container { padding: 10px 0; }

  /* Nav brand */
  .brand-name .tag { display: none; }
  .nav { padding: 14px 0; }

  /* Footer */
  .footer-cta { padding: 40px 20px; border-radius: 20px 20px 0 0; }
  .footer-cta-grid { grid-template-columns: 1fr; gap: 28px; }
  .foot-meta { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* Sections */
  .section { padding: 50px 0 24px; }
  .page-hero { padding: 48px 0 32px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 28px; }
  .section-link { font-size: 16px; padding: 11px 20px; }

  /* Buttons */
  .btn-primary { padding: 15px 24px; font-size: 17px; }
  .btn-ghost   { padding: 15px 24px; font-size: 17px; }

  /* Balls — smaller on phones */
  .ball-r { width: 42px; height: 42px; font-size: 16px; }
  .digit  { width: 36px; height: 36px; font-size: 15px; }
  .mini-ball { min-width: 36px; height: 36px; font-size: 16px; }

  /* Card padding */
  .card { padding: 20px; }

  /* Tables — horizontal scroll */
  .tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}




