/* dream-site.css (v0.54.0 · CEO 2026-11-14 "เปลี่ยนม่วงเป็นดำ-น้ำเงิน")
   โหลดเฉพาะโหมดเว็บฝัน (head.html {{if .DreamSite}} · หลัง head-extra) → lucky-number.co ไม่โหลดไฟล์นี้ สีไม่เปลี่ยน
   · ทับ token ของ tokens.css ด้วยชุดดำ-น้ำเงิน (hue ~215–225°) · คงทอง accent เดิมทุกตัว
   · ทับกฎใน main.css / content.css ที่เขียนสีม่วงตรง (selector เดิม · ไฟล์นี้มาทีหลังจึงชนะ) เฉพาะคลาสที่หน้าเว็บฝันใช้
   · SVG inline ในแม่แบบร่วม (season.html decor.html 404.html) ทับด้วย selector ค่า attribute (CSS ชนะ presentation attribute)
   · คอนทราสต์ (WCAG) บนพื้น #070B14 / การ์ด #0D1526 / ชิป #111C33:
     ink #E0E6F0 15.7/14.5/13.5 · ink-2 #B3BFD5 10.6/9.8/9.2 · muted #A9B6CF 9.6/8.9/8.3 · ลิงก์ #8FA8D8 8.2/7.6/7.1
     placeholder #7F8DA8 5.9/5.5/5.1 · ขอบช่องกรอก #5E79AD 4.5/4.2/3.9 (≥ 3:1) · ทอง #EBB869 10.9/10.1/9.4 */

:root {
  --ground: #070B14;
  --surface: #0D1526;
  --surface-glass: rgba(13, 21, 38, 0.95);
  --surface-2: #111C33;
  --panel: #1F2B47;
  --line: #2A3A5C;
  --line-input: #5E79AD;
  --line-2: #34508A;
  --line-soft: rgba(143, 168, 216, 0.18);

  --ink-strong: #E6ECF5;
  --ink: #E0E6F0;
  --ink-2: #B3BFD5;
  --muted: #A9B6CF;
  --muted-2: #8FA8D8;
  --placeholder: #7F8DA8;

  --fill-light: #E0E6F0;
  --fill-light-hover: #C9D3E5;

  --violet: #4A6FB5;
  --violet-ink: #8FA8D8;
  --violet-soft: #C9D6EE;
  --violet-dim: #1C2D50;
  --violet-edge: #3E5F9E;

  --on-gold: #070B14;

  --shadow-glow: 0 0 60px rgba(64, 104, 180, 0.2);
  --glow-1: radial-gradient(circle at 50% 14%, rgba(52, 92, 170, 0.42), rgba(30, 58, 120, 0.18) 30%, rgba(15, 34, 68, 0) 55%);
  --glow-2: radial-gradient(circle at 10% 8%, rgba(70, 110, 190, 0.2), rgba(70, 110, 190, 0) 40%), radial-gradient(circle at 92% 40%, rgba(59, 107, 214, 0.18), rgba(59, 107, 214, 0) 40%);
}

/* ---------- main.css: เมนูเต็มจอ (วงโคจรตกแต่ง data URI + แสงมุม) ---------- */
.site-menu {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420' viewBox='0 0 420 420' fill='none'%3E%3Ccircle cx='210' cy='210' r='190' stroke='%234A6FB5' stroke-width='.7' opacity='.45'/%3E%3Ccircle cx='210' cy='210' r='150' stroke='%234A6FB5' stroke-width='.7' opacity='.6' stroke-dasharray='2 8'/%3E%3Ccircle cx='210' cy='210' r='110' stroke='%238FA8D8' stroke-width='.6' opacity='.35'/%3E%3Cg fill='%23EBB869'%3E%3Ccircle cx='210' cy='20' r='3'/%3E%3Ccircle cx='344' cy='76' r='2'/%3E%3Ccircle cx='400' cy='210' r='2.5'/%3E%3C/g%3E%3Cpath d='M210 20L344 76L400 210' stroke='%23EBB869' stroke-width='.8' opacity='.6'/%3E%3C/svg%3E") right -170px bottom -140px / 420px 420px no-repeat,
    radial-gradient(circle at 90% 95%, rgba(52, 92, 170, 0.32), rgba(52, 92, 170, 0) 45%),
    radial-gradient(circle at 0% 15%, rgba(15, 34, 68, 0.6), rgba(15, 34, 68, 0) 45%),
    var(--ground);
}
.menu-tools a { border-bottom-color: rgba(143, 168, 216, 0.16); }

/* ---------- main.css: 404 ---------- */
.not-found-code { text-shadow: 0 0 30px rgba(74, 111, 181, 0.7); }

/* ---------- main.css: แถบแชร์ + ปุ่มกลับขึ้นบน ---------- */
.share-bar { border-top-color: rgba(42, 58, 92, 0.7); }
.share-head { color: #A9B6CF; }
.share-btn { border-color: #2A3A5C; color: #C9D3E5; }
.share-btn:hover { border-color: #3E5F9E; background: rgba(62, 95, 158, 0.14); color: #E6ECF5; }
.share-icon { color: #C9D3E5; }
.share-link { border-color: #2A3A5C; color: #C9D3E5; }
.share-preview { color: #A9B6CF; }
.share-text { color: #C9D3E5; }
.share-note { color: #A9B6CF; }
.to-top { border-color: #2A3A5C; background: #0D1526; color: #C9D3E5; }
.to-top:hover { border-color: #3E5F9E; color: #E6ECF5; }

/* ---------- content.css: ภาพประกอบหน้าตำรา / 404 ---------- */
.amb-d { fill: #8FA8D8; }
.art-d { fill: #8B99B5; }
.art-fig { background: radial-gradient(circle at 50% 50%, rgba(62, 95, 158, 0.45), var(--surface) 70%); }
.art-big { text-shadow: 0 0 40px rgba(143, 168, 216, 0.3); }
.nf-fig { background: radial-gradient(circle at 50% 50%, rgba(62, 95, 158, 0.45), rgba(62, 95, 158, 0) 70%); }
body:has(.ph-day)::before { background: radial-gradient(circle 572px at 80% 160px, rgba(62, 95, 158, 0.32), rgba(62, 95, 158, 0) 50%); }

/* ---------- SVG inline ของแม่แบบร่วม (ค่า attribute ม่วงเดิม → น้ำเงิน) ---------- */
[stroke="#7C5CFF"], [stroke="#7B5CE6"] { stroke: #4A6FB5; }
[stroke="#6A4FD0"] { stroke: #3E5F9E; }
[stroke="#B39CF5"], [stroke="#C4B5FD"] { stroke: #8FA8D8; }
[fill="#B39CF5"], [fill="#C4B5FD"] { fill: #8FA8D8; }
[fill="#EDE8FF"], [fill="#E9E2FF"] { fill: #E6ECF5; }
[fill="#E3DDF2"] { fill: #E0E6F0; }
[stop-color="#B39CF5"], [stop-color="#7B5CE6"], [stop-color="#6A4FD0"] { stop-color: #4A6FB5; }

/* ---------- เมนูหัวเว็บฝัน (nav-dream.html) · ย้ายจาก dream.css v0.54.0: หน้าตำรา + 404 ไม่โหลด dream.css จึงล้นจอ 390 ---------- */
/* v0.53.0 เว็บฝัน: ชื่อเว็บอังกฤษยาว ("Thai Dream Meanings · thdata") ดันปุ่มภาษา + ปุ่มเมนูออกนอกจอ 390px
   → จอแคบแสดงชื่อสั้น · ชื่อเว็บหดได้ (min-width 0) · ปุ่มไม่หด · คลาส dream-brand มีเฉพาะ nav-dream.html (ไม่กระทบ nav ของ lucky) */
.dream-brand { min-width: 0; flex: 0 1 auto; }
.dream-brand .brand-name { display: flex; min-width: 0; overflow: hidden; white-space: nowrap; }
/* ชื่อเต็ม (จอ ≥ 480px) · ชื่อสั้น = ชื่อหน้าหลักฝัน (จอ < 480px) · aria-label ของลิงก์ = ชื่อเต็มเสมอ · ellipsis เป็นตัวกันพลาด */
.dream-brand-full,
.dream-brand-short { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dream-brand-short { display: none; }
@media (max-width: 479px) {
  .dream-brand-full { display: none; }
  .dream-brand-short { display: block; }
  /* ชื่อสั้นอังกฤษ "Dream meanings" ยังกว้างกว่าที่ว่างที่ 360-390px → ซ่อนป้ายภาษาปัจจุบัน (aria-hidden · ปุ่มสลับภาษายังอยู่ · แบบเดียวกับ main.css จอ < 360px) */
  .dream-brand ~ .lang-pill .lang-cur,
  .site-menu-head .dream-brand + .site-menu-tools .lang-cur { display: none; }
}
.site-head-inner > .lang-pill,
.site-menu-head > .site-menu-tools { flex: none; }
