/* theme.css = bg-red-gold + layout-cards + btn-nusantara (urutan jangan diubah) */
/* ==========================================================
   印尼电子游艺风 · 红金喜庆主题(统一背景)
   所有页面在 </head> 前引用:<link rel="stylesheet" href="/sxof2q/bg-red-gold.css"/>
   ========================================================== */

/* 1) 色板变量:覆盖各页 :root 里的紫色系 */
:root {
  --primary: #f5c242;
  --primary-dark: #c4920f;
  --secondary: #e11d48;
  --accent: #ffd54f;

  --dark: #12040a;
  --gray-50: #1f070c;   /* 页面主背景 */
  --gray-100: #2c0b12;  /* 次级区块背景 */
  --gray-200: #4d1a22;  /* 边框、分隔线 */
  --gray-300: #70262f;

  --gray-400: #c9a48c;  /* 文字:由弱到强,全部偏暖色 */
  --gray-500: #dcbfa8;
  --gray-600: #ead3be;
  --gray-700: #f3e3d1;
  --gray-800: #faf0e2;
  --gray-900: #fff4d6;

  --white: #3a0f17;     /* 卡片、面板底色 */

  --bg-red-deep: #2a0a10;
  --bg-red-glow: rgba(225, 29, 72, 0.38);
  --bg-gold-glow: rgba(245, 194, 66, 0.14);
}

/* 2) 全站统一背景:深红底 + 顶部红光 + 金色光晕 + 细菱形纹理 */
html {
  background-color: var(--gray-50);
}

html body {
  background-color: var(--gray-50);
  background-image:
    radial-gradient(ellipse 90% 55% at 50% -8%, var(--bg-red-glow), transparent 62%),
    radial-gradient(ellipse 55% 45% at 100% 38%, var(--bg-gold-glow), transparent 70%),
    radial-gradient(ellipse 55% 45% at 0% 78%, rgba(225, 29, 72, 0.16), transparent 70%),
    repeating-linear-gradient(45deg, rgba(245, 194, 66, 0.045) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(-45deg, rgba(245, 194, 66, 0.045) 0 1px, transparent 1px 26px),
    linear-gradient(180deg, var(--bg-red-deep) 0%, var(--gray-50) 100%);
  background-attachment: fixed;
}

::selection {
  background: #e11d48;
  color: #fff4d6;
}

/* 3) 浅色块 → 深红半透明块(原来是浅灰、浅蓝、浅绿、浅橙) */
[style*="background: #f5f7fa"], [style*="background:#f5f7fa"],
[style*="background-color: #f5f7fa"], [style*="background-color:#f5f7fa"] {
  background: rgba(245, 194, 66, 0.07) !important;
}
[style*="background: #e3f2fd"], [style*="background:#e3f2fd"] {
  background: rgba(245, 194, 66, 0.12) !important;
}
[style*="background: #e8f5e9"], [style*="background:#e8f5e9"] {
  background: rgba(0, 200, 83, 0.12) !important;
}
[style*="background: #fff3e0"], [style*="background:#fff3e0"] {
  background: rgba(255, 145, 0, 0.13) !important;
}
[style*="background: #f0f0f0"], [style*="background:#f0f0f0"] {
  background: rgba(255, 255, 255, 0.12) !important;
}

/* 3b) 其余材质风浅色块(粉、紫、青、近白)→ 红金暗色 */
[style*="background: #fafafa"], [style*="background:#fafafa"] {
  background: rgba(18, 4, 10, 0.32) !important;
}
[style*="background: #ffebee"], [style*="background:#ffebee"],
[style*="background: #fce4ec"], [style*="background:#fce4ec"] {
  background: rgba(225, 29, 72, 0.18) !important;
}
[style*="background: #f3e5f5"], [style*="background:#f3e5f5"] {
  background: rgba(225, 29, 72, 0.12) !important;
}
[style*="background: #e0f2f1"], [style*="background:#e0f2f1"] {
  background: rgba(0, 200, 83, 0.12) !important;
}
[style*="background: #e0e0e0"], [style*="background:#e0e0e0"] {
  background: rgba(255, 255, 255, 0.14) !important;
}
[style*="background: rgba(255, 255, 255, 0.95)"], [style*="background:rgba(255,255,255,0.95)"],
[style*="background: rgba(255,255,255,0.95)"], [style*="background: rgba(255, 255, 255, 0.9)"],
[style*="background:rgba(255,255,255,0.9)"], [style*="background: rgba(255,255,255,0.9)"] {
  background: rgba(58, 15, 23, 0.92) !important;
}

[style*="background: rgba(255, 255, 255, 0.98)"], [style*="background:rgba(255,255,255,0.98)"],
[style*="background: rgba(255,255,255,0.98)"] {
  background: rgba(58, 15, 23, 0.94) !important;
}

/* 用 --gray-900(现为奶油色文字色)当背景的表头、哈希框 → 红色渐变,保证白字可读 */
[style*="background: var(--gray-900)"], [style*="background:var(--gray-900)"] {
  background: linear-gradient(135deg, #8f0f2a 0%, #5c1020 100%) !important;
}

/* 金色底配白字看不清 → 金底一律用深红字 */
[style*="background: var(--accent)"], [style*="background:var(--accent)"],
[style*="background: var(--primary);"], [style*="background:var(--primary);"],
a.liquid_f720.layout_pressed_d8b8:not([style*="#3a0f17"]):not([style*="background: transparent"]) {
  color: #3a0a10 !important;
}
/* 导航当前页:金色底 + 深红字(各页原先写法不一致,统一) */
a.button_orange_2741.fn-active-9200 {
  background: var(--primary) !important;
  color: #3a0a10 !important;
}

[style*="color: #333"], [style*="color:#333"] {
  color: var(--gray-500) !important;
}
.__cf_email__ {
  color: var(--primary);
}

/* 橙色实心按钮 → 金色按钮(深色字) */
[style*="background: #ff9800"], [style*="background:#ff9800"] {
  background: linear-gradient(180deg, #ffe566 0%, #e8b923 55%, #c4920f 100%) !important;
  color: #3a0a10 !important;
}

/* 4) 原浅色主题遗留的深灰文字 → 暖色浅字 */
[style*="color: #666"], [style*="color:#666"],
[style*="color: #424242"], [style*="color:#424242"],
[style*="color: #999"], [style*="color:#999"] {
  color: var(--gray-500) !important;
}
[style*="color: #1976d2"], [style*="color:#1976d2"],
[style*="color: #1565c0"], [style*="color:#1565c0"] {
  color: var(--primary) !important;
}
[style*="color: #2e7d32"], [style*="color:#2e7d32"] {
  color: #7ee8a6 !important;
}
[style*="color: #e65100"], [style*="color:#e65100"] {
  color: #ffb066 !important;
}
[style*="color: #616161"], [style*="color:#616161"] {
  color: var(--gray-500) !important;
}
[style*="color: #9c27b0"], [style*="color:#9c27b0"],
[style*="color: #7b1fa2"], [style*="color:#7b1fa2"],
[style*="color: #6a1b9a"], [style*="color:#6a1b9a"],
[style*="color: #c2185b"], [style*="color:#c2185b"] {
  color: #ff8fa8 !important;
}
[style*="color: #c62828"], [style*="color:#c62828"],
[style*="color: #d32f2f"], [style*="color:#d32f2f"] {
  color: #ff8a8a !important;
}
[style*="color: #00695c"], [style*="color:#00695c"] {
  color: #7ee8a6 !important;
}

/* 5) 彩虹渐变块(粉、蓝、绿、紫)→ 红金渐变,保持统一 */
[style*="linear-gradient(135deg, #f093fb"],
[style*="linear-gradient(135deg, #ff9800"],
[style*="linear-gradient(135deg, #fa709a"],
[style*="linear-gradient(135deg, #7c3aed"],
[style*="linear-gradient(135deg, #667eea"] {
  background: linear-gradient(135deg, #e11d48 0%, #8f0f2a 100%) !important;
}
[style*="linear-gradient(135deg, #4facfe"],
[style*="linear-gradient(135deg, #43e97b"] {
  background: linear-gradient(135deg, #d9a521 0%, #8a5d08 100%) !important;
}
[style*="background: #667eea"], [style*="background:#667eea"] {
  background: linear-gradient(135deg, #e11d48 0%, #8f0f2a 100%) !important;
}
[style*="background: rgba(124, 58, 237"], [style*="background:rgba(124,58,237"] {
  background: rgba(225, 29, 72, 0.18) !important;
}

/* 6) 彩色边条 → 统一金色 */
[style*="solid #667eea"], [style*="solid #f093fb"], [style*="solid #4facfe"],
[style*="solid #fa709a"], [style*="solid #fee140"], [style*="solid #1976d2"],
[style*="solid #9c27b0"], [style*="solid #00bcd4"], [style*="solid #64748b"] {
  border-color: var(--primary) !important;
}

/* 7) 补漏:蓝、紫、青色的实心块、头像、社交按钮、图标 → 红金 */
[style*="background: #1976d2"], [style*="background:#1976d2"] {
  background: linear-gradient(135deg, #ffe566 0%, #c4920f 100%) !important;
  color: #3a0a10 !important;
}
[style*="background: #9c27b0"], [style*="background:#9c27b0"],
[style*="background: #0077b5"], [style*="background:#0077b5"],
[style*="background: #1da1f2"], [style*="background:#1da1f2"],
[style*="background: #1877f2"], [style*="background:#1877f2"],
[style*="linear-gradient(135deg, #2563eb"] {
  background: linear-gradient(135deg, #e11d48 0%, #8f0f2a 100%) !important;
  color: #fff4d6 !important;
}
[style*="linear-gradient(180deg, #1976d2"] {
  background: linear-gradient(180deg, #f5c242 0%, #e11d48 100%) !important;
}
[style*="background: #334155"], [style*="background:#334155"] {
  background: rgba(245, 194, 66, 0.16) !important;
  color: var(--accent) !important;
}
[style*="background: #2a2438"], [style*="background:#2a2438"] {
  background: rgba(225, 29, 72, 0.2) !important;
}
[style*="color: #cbd5e1"], [style*="color:#cbd5e1"] {
  color: var(--gray-500) !important;
}
[style*="color: #0077b5"], [style*="color:#0077b5"],
[style*="color: #1da1f2"], [style*="color:#1da1f2"],
[style*="color: #1877f2"], [style*="color:#1877f2"] {
  color: var(--primary) !important;
}
[style*="color: #f093fb"], [style*="color:#f093fb"] {
  color: #ff8fa8 !important;
}
svg[fill="#1976d2"], svg[fill="#667eea"], svg[fill="#0077b5"], svg[fill="#1da1f2"] {
  fill: #f5c242;
}
svg[fill="#f093fb"] {
  fill: #ff8fa8;
}

/* 8) 无障碍跳转链接:聚焦时显示为金色 */
a[href="#main-content"]:focus {
  left: 12px !important;
  top: 12px !important;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--primary);
  color: #3a0a10 !important;
  font-weight: 700;
}

/* ==========================================================
   印尼电子游艺风 · 游戏大厅式卡片排版
   在 bg-red-gold.css 之后引用:
   <link rel="stylesheet" href="/sxof2q/layout-cards.css"/>
   只改版式,不改页面文字、标签、结构化数据(SEO 不受影响)
   ========================================================== */

:root {
  --lobby-w: 1240px;
  --lobby-edge: 14px;
  --gold-line: rgba(245, 194, 66, 0.28);
  --gold-line-strong: rgba(245, 194, 66, 0.55);
  --panel-bg: linear-gradient(180deg, rgba(58, 15, 23, 0.84), rgba(31, 7, 12, 0.88));
  --font-display: 'Exo 2', 'Rajdhani', sans-serif;
}

html {
  scroll-padding-top: calc(var(--header-height, 72px) + 32px);
}

/* 悬浮导航栏下方留白(导航条自身浮在页面上) */
html body {
  padding-top: calc(var(--header-height, 72px) + var(--safe-top, 0px) + 26px) !important;
}

/* ---------- 1) 悬浮胶囊导航栏 ---------- */
html body header#header,
html body header.purple_5fd8 {
  top: calc(10px + var(--safe-top, 0px)) !important;
  left: var(--lobby-edge) !important;
  right: var(--lobby-edge) !important;
  width: auto !important;
  max-width: var(--lobby-w) !important;
  margin: 0 auto !important;
  padding-top: 0 !important;
  border-radius: 22px !important;
  border: 1px solid var(--gold-line-strong) !important;
  background: linear-gradient(180deg, rgba(58, 15, 23, 0.94), rgba(31, 7, 12, 0.94)) !important;
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(225, 29, 72, 0.22),
    0 0 30px rgba(225, 29, 72, 0.22) !important;
}

html body header.purple_5fd8 .background_2ccd {
  max-width: none;
  padding: 0 1.25rem;
}

.pink_8bdc {
  padding: 0.6rem 0 !important;
}

.mask_8eea {
  gap: 0.2rem !important;
}

.button_orange_2741 {
  padding: 0.5rem 0.95rem !important;
  border-radius: 999px !important;
  font-family: var(--font-display);
  font-weight: 700 !important;
  letter-spacing: 0.02em;
}

a.button_orange_2741::after {
  display: none !important;
}

a.button_orange_2741:hover,
.progress-d8f4:hover > .inner_1377,
.progress-d8f4.narrow-3206 > .inner_1377 {
  background: rgba(245, 194, 66, 0.15);
  color: var(--accent);
}

.right_baf5 {
  border-radius: 18px !important;
  border: 1px solid var(--gold-line-strong) !important;
  background: linear-gradient(180deg, #3a0f17, #240810) !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 22px rgba(225, 29, 72, 0.2) !important;
  padding: 0.5rem !important;
}

.right_baf5 a {
  border-radius: 12px;
}

.right_baf5 a:hover {
  background: linear-gradient(90deg, rgba(245, 194, 66, 0.28), rgba(225, 29, 72, 0.12)) !important;
  color: var(--accent) !important;
}

/* ---------- 2) 按钮:胶囊形、金色发光 ---------- */
.liquid_f720 {
  border-radius: 999px !important;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.layout_pressed_d8b8 {
  background: linear-gradient(180deg, #ffe566 0%, #e8b923 55%, #c4920f 100%);
  color: #3a0a10;
  box-shadow: 0 0 18px rgba(232, 185, 35, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.article_south_1753:hover {
  color: #3a0a10;
}

/* ---------- 3) Hero:舞台式横幅 ---------- */
.widget-green-cf6b,
main > section:has(h1) {
  position: relative !important;
  width: auto !important;
  max-width: var(--lobby-w) !important;
  margin: 0 var(--lobby-edge) 1.75rem !important;
  border-radius: 30px !important;
  border: 1px solid var(--gold-line-strong) !important;
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(225, 29, 72, 0.3),
    0 0 60px rgba(225, 29, 72, 0.22) !important;
  overflow: hidden !important;
  padding: 3.25rem 0 3rem !important;
  isolation: isolate;
}

@media (min-width: 1268px) {
  .widget-green-cf6b,
  main > section:has(h1) {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* 内层虚线框:像游戏大厅的跑马灯边框 */
.widget-green-cf6b::after,
main > section:has(h1)::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 22px;
  border: 1px dashed rgba(245, 194, 66, 0.38);
  pointer-events: none;
  z-index: 0;
}

/* 非首页的内页 Hero:加红金光斑 */
main > section:has(h1):not(.widget-green-cf6b)::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 88% 14%, rgba(245, 194, 66, 0.28), transparent 42%),
    radial-gradient(circle at 8% 92%, rgba(225, 29, 72, 0.4), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

main > section:has(h1) > *,
.widget-green-cf6b > .background_2ccd {
  position: relative;
  z-index: 1;
}

.backdrop-ccd1,
.cold_a91a h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.6rem) !important;
  letter-spacing: -0.01em;
}

/* 高亮词:金色渐变发光字 */
.column-slow-db45 {
  background: linear-gradient(180deg, #fff3a0 0%, #f5c242 55%, #c4920f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  text-shadow: none !important;
  filter: drop-shadow(0 0 18px rgba(245, 194, 66, 0.45));
}

/* 封面卡:金框 + 呼吸光 */
.input_e3b7 {
  border: 2px solid rgba(245, 194, 66, 0.65) !important;
  background: linear-gradient(145deg, rgba(245, 194, 66, 0.2), rgba(225, 29, 72, 0.2)) !important;
  border-radius: 28px !important;
  transform: rotate(2deg);
  animation: lobbyGlow 3.4s ease-in-out infinite;
}

@keyframes lobbyGlow {
  0%, 100% {
    box-shadow: 0 0 24px rgba(245, 194, 66, 0.3), 0 22px 44px rgba(0, 0, 0, 0.5);
  }
  50% {
    box-shadow: 0 0 48px rgba(245, 194, 66, 0.6), 0 22px 44px rgba(0, 0, 0, 0.5);
  }
}

@media (prefers-reduced-motion: reduce) {
  .input_e3b7 { animation: none; }
}

/* Hero 数据:筹码式小卡 */
.module-up-7ae6 {
  border-top: 0 !important;
  padding-top: 0 !important;
  gap: 0.9rem !important;
}

.disabled_plasma_e8ee {
  background: rgba(18, 4, 10, 0.5);
  border: 1px solid rgba(245, 194, 66, 0.38);
  border-radius: 18px;
  padding: 0.95rem 0.5rem;
  box-shadow: inset 0 1px 0 rgba(245, 194, 66, 0.2);
}

.button_1338 {
  color: var(--accent);
  text-shadow: 0 0 16px rgba(245, 194, 66, 0.5);
}

/* ---------- 4) 内容区:一块一块的浮动面板 ---------- */
main > section:not(:has(h1)),
main > article {
  position: relative;
  width: auto !important;
  max-width: var(--lobby-w);
  margin: 0 var(--lobby-edge) 1.75rem !important;
  padding-top: 2.75rem !important;
  padding-bottom: 2.75rem !important;
  border-radius: 28px;
  border: 1px solid var(--gold-line) !important;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(245, 194, 66, 0.16);
  overflow: hidden;
  isolation: isolate;
}

@media (min-width: 1268px) {
  main > section:not(:has(h1)),
  main > article {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* 面板底色(渐变式 CTA 横幅保留自己的背景) */
main > section:not(:has(h1)):not([style*="gradient"]):not(.footer-mini-8cf6):not(.black-459b):not(.alert-smooth-2f5a),
main > article:not([style*="gradient"]) {
  background: var(--panel-bg) !important;
}

/* 面板顶部金色亮线 */
main > section:not(:has(h1))::before,
main > article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 170px;
  height: 3px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg, transparent, #ffe566, transparent);
  box-shadow: 0 0 16px rgba(245, 194, 66, 0.75);
  pointer-events: none;
  z-index: 0;
}

/* 角落光斑:奇偶交替,红金呼应 */
main > section:not(:has(h1))::after,
main > article::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -90px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.24), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

main > section:not(:has(h1)):nth-of-type(even)::after {
  right: auto;
  bottom: auto;
  left: -90px;
  top: -90px;
  background: radial-gradient(circle, rgba(245, 194, 66, 0.2), transparent 70%);
}

main > section:not(:has(h1)) > *,
main > article > * {
  position: relative;
  z-index: 1;
}

/* 原本就很薄的条带(面包屑、作者栏、信任条)保持紧凑,不撑成大面板 */
main > section[style*="padding: 1rem 0"] {
  padding-top: 0.9rem !important;
  padding-bottom: 0.9rem !important;
}

main > section[style*="padding: 2rem 0"],
.alert-a366 {
  padding-top: 1.35rem !important;
  padding-bottom: 1.35rem !important;
}

main > section[style*="padding: 1rem 0"]::before,
main > section[style*="padding: 1rem 0"]::after {
  display: none;
}

/* ---------- 5) 卡片:悬停上浮 + 金色光晕 ---------- */
main [style*="display: grid"] > div[style*="background"],
main [style*="display:grid"] > div[style*="background"],
main article[style*="border-radius"],
.west_ea1a,
.gallery-9485,
.fixed_b8b6 {
  border-radius: 20px !important;
  box-shadow: 0 0 0 1px rgba(245, 194, 66, 0.2), 0 12px 28px rgba(0, 0, 0, 0.38) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

main [style*="display: grid"] > div[style*="background"]:hover,
main [style*="display:grid"] > div[style*="background"]:hover,
main article[style*="border-radius"]:hover,
.west_ea1a:hover,
.gallery-9485:hover,
.fixed_b8b6:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(245, 194, 66, 0.6),
    0 18px 38px rgba(0, 0, 0, 0.5),
    0 0 26px rgba(245, 194, 66, 0.2) !important;
}

/* 宽卡片网格:面板内宽放得下时排成整齐的 4 列,避免 3+1 */
main [style*="minmax(280px"],
main [style*="minmax(300px"],
main [style*="minmax(320px"] {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
}

/* ---------- 6) 标题:金红装饰条 ---------- */
main h2 {
  font-family: var(--font-display);
  letter-spacing: 0.01em;
  text-shadow: 0 0 22px rgba(245, 194, 66, 0.18);
}

main h2:not([style*="display: flex"])::after {
  content: "";
  display: block;
  width: 76px;
  height: 4px;
  margin-top: 0.7rem;
  border-radius: 4px;
  background: linear-gradient(90deg, #ffe566, #e11d48);
  box-shadow: 0 0 12px rgba(245, 194, 66, 0.5);
}

main [style*="text-align: center"] h2::after,
main h2[style*="text-align: center"]::after {
  margin-left: auto;
  margin-right: auto;
}

/* ---------- 7) 表格 ---------- */
main table {
  border-collapse: separate !important;
  border-spacing: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(245, 194, 66, 0.28);
}

main tbody tr:hover td,
main tbody tr:hover {
  background-color: rgba(245, 194, 66, 0.07);
}

/* ---------- 8) 页脚:收成一块圆角面板 ---------- */
html body footer {
  position: relative;
  max-width: var(--lobby-w);
  margin: 2.25rem var(--lobby-edge) 1.25rem !important;
  padding: 3rem 0 1.75rem !important;
  border-radius: 30px;
  border: 1px solid var(--gold-line-strong) !important;
  background: linear-gradient(180deg, #2a0710 0%, #12040a 100%) !important;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.5), 0 0 40px rgba(225, 29, 72, 0.16);
  overflow: hidden;
}

@media (min-width: 1268px) {
  html body footer {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

html body footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  height: 3px;
  border-radius: 0 0 6px 6px;
  background: linear-gradient(90deg, transparent, #ffe566, #e11d48, #ffe566, transparent);
  box-shadow: 0 0 18px rgba(245, 194, 66, 0.8);
}

/* ---------- 9) 手机端:导航回到通栏,面板收窄 ---------- */
@media (max-width: 768px) {
  html body {
    padding-top: calc(var(--header-height, 56px) + var(--safe-top, 0px)) !important;
  }

  html body header#header,
  html body header.purple_5fd8 {
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    max-width: none !important;
    border-radius: 0 0 18px 18px !important;
    border-width: 0 0 1px 0 !important;
    padding-top: var(--safe-top, 0px) !important;
  }

  .widget-green-cf6b,
  main > section:has(h1) {
    margin: 10px 8px 1.25rem !important;
    border-radius: 22px !important;
    padding: 2rem 0 !important;
  }

  main > section:not(:has(h1)),
  main > article {
    margin: 0 8px 1.1rem !important;
    border-radius: 20px;
    padding-top: 1.75rem !important;
    padding-bottom: 1.75rem !important;
  }

  html body footer {
    margin: 1.5rem 8px 1rem !important;
    border-radius: 22px;
  }

  .input_e3b7 {
    transform: none;
  }

  /* 表格在窄屏上可横向滑动,不被面板裁切 */
  main table {
    display: block;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }

  .widget-green-cf6b::after,
  main > section:has(h1)::after {
    inset: 6px;
    border-radius: 18px;
  }
}

/* ==========================================================
   Tombol "Tumpal Songket" - set tombol bergaya Nusantara
   Dipasang setelah layout-cards.css:
   <link rel="stylesheet" href="/sxof2q/btn-nusantara.css"/>

   Bentuk   : ujung runcing seperti ketupat / pucuk rebung
   Bingkai  : cincin emas ala songket (tepi luar + pelat dalam)
   Motif    : kawung (batik) halus di dalam pelat
   Efek     : kilau emas menyapu saat disentuh

   Varian (dipasang lewat class di HTML):
     .nusa-btn .nusa-gold  -> Emas Songket   (aksi utama: unduh, install)
     .nusa-btn .nusa-ruby  -> Merah Batik    (aksi kedua: lihat panduan)
     .nusa-btn .nusa-dark  -> Malam Aceh     (CTA di atas latar terang/merah)
     .nusa-sm              -> ukuran kecil (tombol di header)
     .nusa-chip            -> tombol mungil (mis. "Membantu")
   Tombol filter FAQ (.bronze_1eaf) dan menu seluler (.north-7bc3)
   ikut bergaya sama tanpa class tambahan.
   ========================================================== */

:root {
  --nusa-gold-hi: #fff3a0;
  --nusa-gold: #f5c242;
  --nusa-gold-lo: #a87912;
  --nusa-ruby: #c4172f;
  --nusa-ruby-lo: #6e0a1f;
  --nusa-night: #240810;
  --nusa-ink: #3a0a10;
  --nusa-cream: #fff4d6;

  /* motif kawung: empat elips yang saling bertumpuk + titik pusat */
  --kawung-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 16 16'%3E%3Cg fill='none' stroke='%238a5d08' stroke-opacity='.22' stroke-width='.8'%3E%3Cellipse cx='8' cy='4' rx='2' ry='4'/%3E%3Cellipse cx='8' cy='12' rx='2' ry='4'/%3E%3Cellipse cx='4' cy='8' rx='4' ry='2'/%3E%3Cellipse cx='12' cy='8' rx='4' ry='2'/%3E%3C/g%3E%3Ccircle cx='8' cy='8' r='.9' fill='%238a5d08' fill-opacity='.3'/%3E%3C/svg%3E");
  --kawung-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 16 16'%3E%3Cg fill='none' stroke='%23ffd54f' stroke-opacity='.22' stroke-width='.8'%3E%3Cellipse cx='8' cy='4' rx='2' ry='4'/%3E%3Cellipse cx='8' cy='12' rx='2' ry='4'/%3E%3Cellipse cx='4' cy='8' rx='4' ry='2'/%3E%3Cellipse cx='12' cy='8' rx='4' ry='2'/%3E%3C/g%3E%3Ccircle cx='8' cy='8' r='.9' fill='%23ffd54f' fill-opacity='.32'/%3E%3C/svg%3E");
}

/* ---------- Dasar semua tombol Nusantara ---------- */
html body .nusa-btn.nusa-btn {
  --cut: 10px;
  --ring: linear-gradient(180deg, var(--nusa-gold-hi) 0%, var(--nusa-gold-lo) 100%);
  --plate: linear-gradient(180deg, #ffe566 0%, var(--nusa-gold) 52%, #d9a521 100%);
  --ink: var(--nusa-ink);
  --pat: var(--kawung-dark);

  position: relative !important;
  isolation: isolate;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-sizing: border-box;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--ring) !important;
  color: var(--ink) !important;
  font-family: 'Exo 2', 'Rajdhani', sans-serif;
  font-weight: 800 !important;
  letter-spacing: 0.03em;
  line-height: 1.25;
  text-align: center;
  text-decoration: none !important;
  text-shadow: none !important;
  box-shadow: none !important;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  clip-path: polygon(
    var(--cut) 0,
    calc(100% - var(--cut)) 0,
    100% 50%,
    calc(100% - var(--cut)) 100%,
    var(--cut) 100%,
    0 50%
  );
  transition: transform 0.2s ease, filter 0.2s ease;
}

/* pelat dalam + motif kawung */
html body .nusa-btn.nusa-btn::before,
html body .nusa-btn.nusa-btn::after {
  content: "";
  position: absolute;
  inset: 3px;
  z-index: -1;
  pointer-events: none;
  clip-path: polygon(
    calc(var(--cut) - 1px) 0,
    calc(100% - var(--cut) + 1px) 0,
    100% 50%,
    calc(100% - var(--cut) + 1px) 100%,
    calc(var(--cut) - 1px) 100%,
    0 50%
  );
}

html body .nusa-btn.nusa-btn::before {
  background-image: var(--pat), var(--plate);
  background-size: 18px 18px, 100% 100%;
}

/* kilau emas yang menyapu dari kiri ke kanan */
html body .nusa-btn.nusa-btn::after {
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.55) 50%, transparent 62%);
  background-size: 260% 100%;
  background-position: 160% 0;
  transition: background-position 0.7s ease;
}

html body .nusa-btn.nusa-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1) saturate(1.08);
}
html body .nusa-btn.nusa-btn:hover::after {
  background-position: -60% 0;
}
html body .nusa-btn.nusa-btn:active {
  transform: translateY(1px);
  filter: brightness(0.96);
}

/* clip-path menyembunyikan outline bawaan, jadi fokus keyboard diganti cincin putih */
html body .nusa-btn.nusa-btn:focus {
  outline: none;
}
html body .nusa-btn.nusa-btn:focus-visible {
  --ring: linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
  filter: brightness(1.12);
}

html body .nusa-btn.nusa-btn svg {
  flex-shrink: 0;
}

/* ---------- Varian 1: Emas Songket (aksi utama) ---------- */
html body .nusa-btn.nusa-gold.nusa-gold {
  --ring: linear-gradient(180deg, var(--nusa-gold-hi) 0%, var(--nusa-gold-lo) 100%);
  --plate: linear-gradient(180deg, #ffe566 0%, var(--nusa-gold) 52%, #d9a521 100%);
  --ink: var(--nusa-ink);
  --pat: var(--kawung-dark);
}

/* ---------- Varian 2: Merah Batik (aksi kedua) ---------- */
html body .nusa-btn.nusa-ruby.nusa-ruby {
  --ring: linear-gradient(180deg, #ffd54f 0%, var(--nusa-gold-lo) 100%);
  --plate: linear-gradient(180deg, var(--nusa-ruby) 0%, var(--nusa-ruby-lo) 100%);
  --ink: var(--nusa-cream);
  --pat: var(--kawung-gold);
}

/* ---------- Varian 3: Malam Aceh (CTA di latar terang / merah) ---------- */
html body .nusa-btn.nusa-dark.nusa-dark {
  --ring: linear-gradient(180deg, #ffd54f 0%, var(--nusa-gold-lo) 100%);
  --plate: linear-gradient(180deg, #3a0f17 0%, var(--nusa-night) 100%);
  --ink: #ffd54f;
  --pat: var(--kawung-gold);
}

/* ---------- Ukuran kecil (tombol di header) ---------- */
html body .nusa-btn.nusa-sm.nusa-sm {
  --cut: 7px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
html body .nusa-btn.nusa-sm.nusa-sm::before,
html body .nusa-btn.nusa-sm.nusa-sm::after {
  inset: 2px;
}

/* ---------- Tombol filter FAQ ---------- */
html body button.bronze_1eaf {
  --cut: 8px;
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 11px 24px !important;
  background: linear-gradient(180deg, rgba(255, 213, 79, 0.75), rgba(168, 121, 18, 0.75)) !important;
  color: #f3e3d1 !important;
  font-family: 'Exo 2', 'Rajdhani', sans-serif;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% 50%, calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 50%);
  transition: color 0.2s ease, filter 0.2s ease;
}
html body button.bronze_1eaf::before {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: -1;
  clip-path: polygon(calc(var(--cut) - 1px) 0, calc(100% - var(--cut) + 1px) 0, 100% 50%, calc(100% - var(--cut) + 1px) 100%, calc(var(--cut) - 1px) 100%, 0 50%);
  background-image: var(--kawung-gold), linear-gradient(180deg, #3a0f17, #240810);
  background-size: 18px 18px, 100% 100%;
}
html body button.bronze_1eaf:hover,
html body button.bronze_1eaf.medium-dd2d {
  color: var(--nusa-ink) !important;
  background: linear-gradient(180deg, var(--nusa-gold-hi), var(--nusa-gold-lo)) !important;
}
html body button.bronze_1eaf:hover::before,
html body button.bronze_1eaf.medium-dd2d::before {
  background-image: var(--kawung-dark), linear-gradient(180deg, #ffe566, #d9a521);
}
html body button.bronze_1eaf:focus {
  outline: none;
}
html body button.bronze_1eaf:focus-visible {
  filter: brightness(1.2);
}

/* ---------- Tombol menu seluler: belah ketupat emas ---------- */
html body button.north-7bc3 {
  position: relative;
  isolation: isolate;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0 !important;
  background: linear-gradient(180deg, #ffd54f, var(--nusa-gold-lo)) !important;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
html body button.north-7bc3::before {
  content: "";
  position: absolute;
  inset: 3px;
  z-index: -1;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background-image: var(--kawung-gold), linear-gradient(180deg, #3a0f17, #240810);
  background-size: 18px 18px, 100% 100%;
}
html body button.north-7bc3 .notice_gas_8aa0 span {
  width: 18px;
  height: 2px;
  background: #ffd54f !important;
}
html body button.north-7bc3:focus {
  outline: none;
}
html body button.north-7bc3:focus-visible {
  filter: brightness(1.25);
}

/* ---------- Tombol mungil (mis. "Membantu (248)") ---------- */
html body button.nusa-chip {
  --cut: 6px;
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  padding: 0.4rem 1rem !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: linear-gradient(180deg, rgba(255, 213, 79, 0.7), rgba(168, 121, 18, 0.7)) !important;
  color: #ffd54f !important;
  font-family: 'Exo 2', 'Rajdhani', sans-serif;
  font-size: 0.85rem;
  font-weight: 700 !important;
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% 50%, calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 50%);
  transition: color 0.2s ease;
}
html body button.nusa-chip::before {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: -1;
  clip-path: polygon(calc(var(--cut) - 1px) 0, calc(100% - var(--cut) + 1px) 0, 100% 50%, calc(100% - var(--cut) + 1px) 100%, calc(var(--cut) - 1px) 100%, 0 50%);
  background: linear-gradient(180deg, #3a0f17, #240810);
}
html body button.nusa-chip:hover {
  color: var(--nusa-ink) !important;
}
html body button.nusa-chip:hover::before {
  background: linear-gradient(180deg, #ffe566, #d9a521);
}
html body button.nusa-chip:focus {
  outline: none;
}
html body button.nusa-chip:focus-visible {
  filter: brightness(1.25);
}

/* ---------- Tombol "kembali ke atas": belah ketupat emas ---------- */
html body button[aria-label="Kembali ke atas"] {
  width: 54px !important;
  height: 54px !important;
  border-radius: 0 !important;
  isolation: isolate;
  background: linear-gradient(180deg, #ffd54f, var(--nusa-gold-lo)) !important;
  color: #ffd54f !important;
  box-shadow: none !important;
  font-family: 'Exo 2', 'Rajdhani', sans-serif;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
}
html body button[aria-label="Kembali ke atas"]::before {
  content: "";
  position: absolute;
  inset: 3px;
  z-index: -1;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background-image: var(--kawung-gold), linear-gradient(180deg, #3a0f17, #240810);
  background-size: 18px 18px, 100% 100%;
}
html body button[aria-label="Kembali ke atas"]:hover {
  color: #ffffff !important;
  filter: brightness(1.2);
}
html body button[aria-label="Kembali ke atas"]:focus {
  outline: none;
}
html body button[aria-label="Kembali ke atas"]:focus-visible {
  filter: brightness(1.3);
}
/* ---------- Layar kecil: tombol lebar penuh tetap rapi ---------- */
@media (max-width: 768px) {
  html body .nusa-btn.nusa-btn {
    white-space: normal;
  }
}

/* hormati pengguna yang mengurangi animasi */
@media (prefers-reduced-motion: reduce) {
  html body .nusa-btn.nusa-btn,
  html body .nusa-btn.nusa-btn::after {
    transition: none;
  }
  html body .nusa-btn.nusa-btn:hover {
    transform: none;
  }
}
