/* =========================================================
   style.css — ดีไซน์ทั้งเว็บ (แก้ที่นี่ที่เดียว ทุกหน้าเปลี่ยนตาม)
   ธีม: Cyber Pixel (เขียวนีออน)
   ========================================================= */

/* ---------- ฟอนต์ ---------- */
/* ไทย + อังกฤษแบบพิกเซล: GNU Unifont (OFL 1.1) ตัดเหลือเฉพาะไทย/อังกฤษ */
@font-face { font-family: 'PixelTH'; src: url('../fonts/pixel-th.woff') format('woff'); font-display: swap; }
/* ตัวไทยในหัวข้อ/ปุ่ม: ขยายให้ขนาดพอ ๆ กับ Press Start 2P */
@font-face { font-family: 'PixelTH-Head'; src: url('../fonts/pixel-th.woff') format('woff'); unicode-range: U+0E00-0E7F; size-adjust: 165%; font-display: swap; }

:root {
  --f-head: 'Press Start 2P', 'PixelTH-Head', 'PixelTH', 'Chakra Petch', monospace;  /* หัวข้อ (อังกฤษ = Press Start 2P) */
  --f-body: 'PixelTH', 'Chakra Petch', monospace;                     /* เนื้อหา */
  --f-digit: 'VT323', 'PixelTH', monospace;                           /* ตัวเลข */
  --lime: #00FF87; --yellow: #FFD166; --red: #FF4D4D; --ink: #0B0F17;
}
:root, [data-theme="dark"] {
  --bg: #0f131c; --surface: #121826; --sunk: #0B0F17; --line: #1E293B;
  --text: #dfe2ee; --muted: #94A3B8; --strong: #FFFFFF;
  --accent: #00FF87; --accent-2: #FFD166; --shadow: #000; --grid: rgba(0,255,135,.035);
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #E9EEF5; --surface: #FFFFFF; --sunk: #F5F7FA; --line: #0B0F17;
  --text: #1E293B; --muted: #475569; --strong: #0B0F17;
  --accent: #007A42; --accent-2: #8A5A00; --shadow: #0B0F17; --grid: rgba(15,23,42,.05);
  --red: #B91C1C;
  color-scheme: light;
}

/* ---------- พื้นฐาน ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--text); font-family: var(--f-body); font-size: 16px; line-height: 1.6;
  background: var(--bg);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  transition: background-color .25s ease, color .25s ease;
}
::selection { background: var(--accent); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
img { max-width: 100%; display: block; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.ms { font-family: 'Material Symbols Outlined'; font-weight: normal; font-style: normal; font-size: 20px; line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; direction: ltr; font-feature-settings: 'liga'; -webkit-font-feature-settings: 'liga'; overflow: hidden; width: 1em; flex-shrink: 0; }
.muted { color: var(--muted); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
main.wrap { padding-top: 28px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 48px; }

/* ---------- อนิเมชั่นพื้นฐาน ---------- */
@keyframes riseIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes clickRing { 0% { opacity: .9; transform: scale(.35); } 100% { opacity: 0; transform: scale(2.2); } }
@keyframes lineIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }
#app > * { animation: riseIn .52s cubic-bezier(.2,.8,.2,1) both; }
#app > *:nth-child(2) { animation-delay: .05s; }
#app > *:nth-child(3) { animation-delay: .1s; }
#app > *:nth-child(4) { animation-delay: .15s; }
#app > *:nth-child(5) { animation-delay: .2s; }
#app > *:nth-child(n+6) { animation-delay: .25s; }
.anim-panel { animation: panelIn .3s cubic-bezier(.2,.8,.2,1) both; }
.click-fx { position: fixed; z-index: 9999; width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 2px solid var(--accent); border-radius: 50%; pointer-events: none; box-shadow: 0 0 10px var(--accent); animation: clickRing .46s ease-out forwards; }

/* ---------- หัวเว็บ ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--sunk); background: color-mix(in srgb, var(--sunk) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 2px solid var(--line); transition: background-color .25s ease, border-color .25s ease; }
.site-header .bar { height: 64px; display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; font-family: var(--f-head); font-size: 12px; color: var(--strong); }
.brand .logo { width: 34px; height: 34px; display: grid; place-items: center; background: var(--lime); color: var(--ink); font-family: var(--f-digit); font-size: 26px; border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--yellow); flex-shrink: 0; transition: transform .2s ease, box-shadow .2s ease; }
.brand:hover .logo { transform: rotate(-4deg) scale(1.05); box-shadow: 4px 4px 0 var(--accent); }
.brand span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-nav { display: flex; gap: 4px; margin-left: auto; }
.site-nav a { position: relative; display: flex; align-items: center; gap: 6px; padding: 6px 10px; font-family: var(--f-head); font-size: 10px; color: var(--muted); border: 2px solid transparent; transition: color .18s, background-color .18s, transform .18s; }
.site-nav a:not(.active)::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.site-nav a:not(.active):hover { color: var(--accent); transform: translateY(-1px); }
.site-nav a:not(.active):hover::after { transform: scaleX(1); }
.site-nav a.active { background: var(--lime); color: var(--ink); border-color: var(--ink); box-shadow: 3px 3px 0 #000; }
.tools { display: flex; gap: 8px; }
.tbtn { height: 36px; min-width: 36px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; background: var(--surface); border: 2px solid var(--line); box-shadow: 2px 2px 0 var(--shadow); font-family: var(--f-head); font-size: 9px; color: var(--strong); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, color .15s ease, background-color .18s; }
.tbtn:hover { border-color: var(--accent); transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--accent); }
.tbtn:active { transform: translate(1px,1px); box-shadow: 1px 1px 0 var(--shadow); }
#sound-btn[aria-pressed="false"] { color: var(--muted); opacity: .75; }
.tbtn b { color: var(--muted); font-weight: 400; } .tbtn b.on { color: var(--accent-2); }
.tbtn .ms { transition: transform .2s ease; }
#theme-btn:hover .ms { transform: rotate(18deg); }
#sound-btn:hover .ms { transform: scale(1.12); }

/* ---------- ส่วนประกอบ ---------- */
.card { background: var(--surface); border: 2px solid var(--line); box-shadow: 6px 6px 0 var(--shadow); transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease; }
.term { display: flex; align-items: center; gap: 7px; padding: 8px 12px; border-bottom: 2px solid var(--line); background: var(--sunk); font-family: var(--f-head); font-size: 8px; letter-spacing: .06em; color: var(--muted); }
.term i { width: 10px; height: 10px; display: inline-block; }
.term i:nth-child(1) { background: #ffb4ab; } .term i:nth-child(2) { background: var(--yellow); } .term i:nth-child(3) { background: var(--lime); }
.term span { margin-left: 6px; }
.pad { padding: 20px; }
.sec-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 16px; }
.sec-head .tag { background: var(--lime); color: var(--ink); padding: 3px 8px; font-family: var(--f-head); font-size: 9px; }
.sec-head .tag.y { background: var(--yellow); }
.sec-head h2 { word-spacing: -.3em; font-family: var(--f-head); font-size: 20px; line-height: 1.5; color: var(--strong); text-transform: uppercase; }
.sec-head::after { content: ""; flex: 1; min-width: 2rem; height: 2px; background: var(--line); transform-origin: left; animation: lineIn .6s .15s ease both; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 14px; font-family: var(--f-head); font-size: 10px; border: 2px solid var(--line); background: var(--sunk); color: var(--strong); box-shadow: 4px 4px 0 var(--shadow); transition: transform .08s, box-shadow .08s, border-color .15s, background-color .18s, color .18s; }
.btn:hover { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--shadow); }
.btn:active { transform: translate(4px,4px); box-shadow: 0 0 0 var(--shadow); }
.btn.g { background: var(--lime); color: var(--ink); border-color: var(--ink); box-shadow: 4px 4px 0 #fff; }
.btn.g:hover { box-shadow: 2px 2px 0 #fff; }
.btn.g.flash { background: var(--yellow); }
.btn .count { background: #000; color: var(--lime); padding: 0 6px; }
[data-theme="light"] .btn.g { box-shadow: 4px 4px 0 var(--ink); }
/* Light mode: เหลืองบนพื้นสว่าง contrast ต่ำ → ใช้โทนเข้มเฉพาะตัวอักษร/เส้นที่สื่อข้อมูล */
[data-theme="light"] .digit,
[data-theme="light"] .cd2 { border-color: var(--accent-2); }
[data-theme="light"] .digit:first-child b,
[data-theme="light"] .stars,
[data-theme="light"] .match .score { color: var(--accent-2); }
[data-theme="light"] .f-mark { color: #fff; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border: 1px solid var(--line); background: var(--sunk); font-size: 14px; }
.ph { display: grid; place-items: center; color: var(--muted); font-size: 13px; text-align: center; background: repeating-linear-gradient(135deg, var(--sunk) 0 12px, var(--surface) 12px 24px); }
.ph .ms { font-size: 30px; color: var(--accent); }
.grid { display: grid; gap: 18px; }
@media (min-width: 720px) { .g2 { grid-template-columns: repeat(2,1fr); } .g3 { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 980px) { .g4 { grid-template-columns: repeat(4,1fr); } }
@media (min-width: 560px) and (max-width: 979px) { .g4 { grid-template-columns: repeat(2,1fr); } }
.notice { padding: 16px; border: 2px dashed var(--accent-2); color: var(--strong); background: var(--sunk); }
.notice code { color: var(--accent-2); }
.empty-showcase { position: relative; overflow: hidden; padding: clamp(18px, 3vw, 32px); border: 2px solid var(--line); background: linear-gradient(135deg, var(--surface), var(--sunk)); box-shadow: 6px 6px 0 var(--shadow); }
.empty-showcase::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-2), transparent 80%); }
.empty-showcase-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 150px; }
.empty-showcase-head h2 { margin-top: 16px; color: var(--strong); font-family: var(--f-head); font-size: clamp(18px, 2.4vw, 28px); line-height: 1.5; }
.empty-showcase-head p { max-width: 680px; margin-top: 8px; color: var(--muted); }
.preview-stamp, .preview-label { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); font-family: var(--f-head); font-size: 9px; letter-spacing: .06em; }
.preview-stamp .ms { font-size: 16px; }
.preview-orbit { position: relative; display: grid; place-items: center; width: 112px; height: 112px; flex: 0 0 112px; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 50%; color: var(--accent); background: radial-gradient(circle, color-mix(in srgb, var(--accent) 15%, transparent), transparent 68%); }
.preview-orbit::before, .preview-orbit::after { content: ""; position: absolute; inset: 10px; border: 1px dashed color-mix(in srgb, var(--accent) 40%, transparent); border-radius: 50%; }
.preview-orbit::after { inset: -7px; border-color: color-mix(in srgb, var(--accent-2) 32%, transparent); }
.preview-orbit > .ms { font-size: 40px; }
.preview-orbit i { position: absolute; width: 6px; height: 6px; background: var(--accent-2); border-radius: 50%; }
.preview-orbit i:nth-of-type(1) { top: 5px; left: 51px; }.preview-orbit i:nth-of-type(2) { right: 5px; bottom: 33px; }.preview-orbit i:nth-of-type(3) { left: 17px; bottom: 9px; }
.preview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.preview-card { overflow: hidden; border: 2px solid var(--line); background: var(--bg); box-shadow: 3px 3px 0 var(--shadow); }
.preview-art { position: relative; display: grid; place-items: center; min-height: 160px; overflow: hidden; color: var(--accent); background: radial-gradient(circle at 50% 48%, color-mix(in srgb, var(--accent) 20%, var(--surface)), var(--sunk) 68%); }
.preview-art::before, .preview-art::after { content: ""; position: absolute; width: 145px; height: 145px; border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); transform: rotate(45deg); }
.preview-art::after { width: 105px; height: 105px; border-color: color-mix(in srgb, var(--accent-2) 35%, transparent); transform: rotate(22deg); }
.preview-art.tone-1 { color: var(--accent-2); background: radial-gradient(circle at 50% 48%, color-mix(in srgb, var(--accent-2) 20%, var(--surface)), var(--sunk) 70%); }
.preview-art.tone-2 { color: #83a9ff; background: radial-gradient(circle at 50% 48%, color-mix(in srgb, #83a9ff 20%, var(--surface)), var(--sunk) 70%); }
.preview-art > .ms { z-index: 1; font-size: 48px; filter: drop-shadow(0 0 12px currentColor); }
.preview-art > b, .preview-art > small { position: absolute; z-index: 1; font-family: var(--f-head); font-size: 9px; letter-spacing: .08em; }
.preview-art > b { top: 12px; left: 14px; color: var(--text); opacity: .65; }.preview-art > small { right: 12px; bottom: 12px; padding: 4px 6px; background: var(--sunk); border: 1px solid currentColor; }
.preview-info { padding: 14px; }.preview-info h3 { margin-top: 8px; color: var(--strong); font-family: var(--f-head); font-size: 11px; line-height: 1.7; }.preview-info p { min-height: 42px; margin-top: 5px; color: var(--muted); font-size: 13px; }
.preview-lines { display: flex; gap: 6px; margin-top: 12px; }.preview-lines i { height: 5px; width: 30%; background: var(--line); }.preview-lines i:first-child { width: 54%; background: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.preview-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-family: var(--f-head); font-size: 8px; letter-spacing: .05em; }
.preview-foot span:first-child { color: var(--accent); }.preview-foot i { display: inline-block; width: 7px; height: 7px; margin-right: 4px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.preview-mini { display: flex; align-items: center; gap: 12px; min-height: 74px; padding: 12px 14px; border: 1px dashed var(--line); background: var(--sunk); color: var(--muted); }
.preview-mini > .ms { color: var(--accent); font-size: 24px; }.preview-mini b { display: block; color: var(--strong); font-family: var(--f-head); font-size: 9px; }.preview-mini p { margin-top: 4px; font-size: 13px; }.preview-mini > .preview-label { margin-left: auto; flex-shrink: 0; }
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 24px auto 8px; }
.pagination button { min-width: 42px; min-height: 42px; padding: 6px 12px; border: 2px solid var(--line); background: var(--surface); color: var(--strong); font-family: var(--f-head); font-size: 11px; box-shadow: 3px 3px 0 var(--shadow); }
.pagination button[aria-current="page"] { background: var(--lime); border-color: var(--ink); color: var(--ink); }
.pagination .page-gap { display: grid; place-items: center; min-width: 24px; color: var(--muted); }
.pagination button:disabled { opacity: .4; cursor: not-allowed; }
.pagination button:not(:disabled):hover { border-color: var(--accent); transform: translateY(-1px); }
.collection-search { display: flex; align-items: center; gap: 10px; min-height: 48px; margin: 0 0 18px; padding: 0 12px; border: 2px solid var(--line); background: var(--sunk); color: var(--accent); box-shadow: 3px 3px 0 var(--shadow); }
.collection-search:focus-within { border-color: var(--accent); box-shadow: 3px 3px 0 var(--accent); }
.collection-search > .ms { font-size: 20px; }
.collection-search input { flex: 1; min-width: 0; min-height: 44px; border: 0; outline: 0; background: transparent; color: var(--strong); font: inherit; }
.collection-search input::placeholder { color: var(--muted); opacity: .85; }
.search-count { color: var(--muted); font-family: var(--f-digit); font-size: 19px; white-space: nowrap; }
.search-empty { padding: 24px 16px; border: 1px dashed var(--line); background: var(--sunk); color: var(--muted); text-align: center; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.error-page { display: grid; min-height: 100vh; place-items: center; padding-top: 36px; padding-bottom: 36px; }
.error-card { width: min(100%, 720px); }
.error-code { display: block; color: var(--accent); font-family: var(--f-digit); font-size: clamp(92px, 22vw, 180px); line-height: .9; text-shadow: 6px 6px 0 var(--shadow), 0 0 28px color-mix(in srgb, var(--accent) 30%, transparent); }
.error-card h1 { margin: 20px 0 10px; color: var(--strong); font-family: var(--f-head); font-size: clamp(18px, 4vw, 28px); line-height: 1.5; }
.error-card .muted { max-width: 520px; }
.error-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.privacy-page { max-width: 900px; padding-top: 34px; padding-bottom: 52px; }
.privacy-content { display: grid; gap: 16px; }
.privacy-content h1 { color: var(--strong); font-family: var(--f-head); font-size: clamp(18px, 4vw, 28px); line-height: 1.6; }
.privacy-content h2 { margin: 12px 0 8px; color: var(--accent); font-family: var(--f-head); font-size: 13px; line-height: 1.7; }
.privacy-content p, .privacy-content li { color: var(--muted); }
.privacy-content ul { display: grid; gap: 8px; padding-left: 22px; }
.privacy-content code { color: var(--accent-2); overflow-wrap: anywhere; }
.privacy-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ---------- แท็บ (หน้า ของชอบ / ผลงาน) ---------- */
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; margin-bottom: 20px; }
.tabs button { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; font-family: var(--f-head); font-size: 10px; border: 2px solid var(--line); background: var(--surface); color: var(--muted); transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, color .16s ease, background-color .16s ease; }
.tabs button:hover { color: var(--strong); border-color: var(--accent); transform: translateY(-2px); }
.tabs button[aria-selected="true"] { background: var(--lime); color: var(--ink); border-color: var(--ink); box-shadow: 3px 3px 0 #000; }
.tabs button[aria-selected="true"]:hover { color: var(--ink); transform: none; }

/* ---------- หน้าแรก ---------- */
.profile { text-align: center; }
.profile .body { padding: 28px 20px 24px; }
.avatar { position: relative; width: 132px; height: 132px; margin: 0 auto; border: 3px solid var(--lime); box-shadow: 6px 6px 0 var(--yellow); background: var(--yellow); color: var(--ink); display: grid; place-items: center; font-family: var(--f-digit); font-size: 80px; overflow: hidden; cursor: pointer; transition: transform .15s, box-shadow .2s; }
.avatar:hover { transform: rotate(-3deg) scale(1.03); box-shadow: 8px 8px 0 var(--accent); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.tap { animation: tapPulse .16s ease; }
@keyframes tapPulse { 50% { transform: scale(.93); } }
.avatar .taps { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); display: flex; gap: 4px; padding: 3px 5px; background: rgba(11,15,23,.55); border: 1px solid rgba(255,255,255,.3); opacity: 0; transition: opacity .2s; pointer-events: none; }
.avatar .taps.show { opacity: 1; }
.avatar .taps i { width: 6px; height: 6px; background: #475569; }
.avatar .taps i.on { background: var(--lime); }
.profile h1 { margin-top: 20px; font-family: var(--f-head); font-size: 28px; line-height: 1.4; color: var(--strong); word-break: break-word; }
.profile h1 span { color: var(--accent); }
.profile .tagline { display: inline-block; margin-top: 8px; padding: 2px 10px; border: 1px solid var(--accent); color: var(--accent); font-family: var(--f-head); font-size: 9px; }
.profile .bio { max-width: 34rem; margin: 14px auto 0; color: var(--muted); }
.profile .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }
.socials { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 12px; }
.social { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px 10px; background: var(--sunk); border: 2px solid var(--line); transition: transform .1s, border-color .1s; }
.social:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 4px 4px 0 var(--accent); }
.social .tag { width: 44px; height: 44px; display: grid; place-items: center; border: 2px solid #000; color: #000; font-family: var(--f-head); font-size: 11px; }
.social small { font-size: 13px; color: var(--muted); }
.digits { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.digit { text-align: center; padding: 12px 0 8px; background: var(--sunk); border: 2px solid var(--yellow); box-shadow: 3px 3px 0 #000; }
.digit b { display: block; font-family: var(--f-digit); font-weight: 400; font-size: 52px; line-height: 1; color: var(--strong); }
.digit:first-child b { color: var(--yellow); }
.digit small { font-family: var(--f-head); font-size: 8px; color: var(--muted); }
.tick { animation: pop .25s ease; } @keyframes pop { 50% { transform: scale(1.1); } }
.skill-row + .skill-row { margin-top: 12px; }
.skill-top { display: flex; justify-content: space-between; color: var(--strong); }
.skill-top span:first-child { font-family: var(--f-head); font-size: 10px; }
.bar { display: grid; grid-template-columns: repeat(10,1fr); gap: 3px; margin-top: 6px; }
.bar i { height: 8px; background: var(--line); } .bar i.on { background: var(--lime); }
.list-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tile { display: flex; align-items: center; gap: 14px; padding: 18px; transition: transform .12s, box-shadow .12s; }
.tile:hover { transform: translate(-2px,-2px); box-shadow: 8px 8px 0 var(--lime); }
.tile .ms.ic { font-size: 34px; color: var(--accent); }
.tile b { display: block; font-family: var(--f-head); font-size: 12px; line-height: 1.6; color: var(--strong); }
.tile .ms.go { margin-left: auto; color: var(--muted); transition: transform .2s ease, color .2s ease; }
.tile:hover .ms.go { transform: translateX(3px); color: var(--accent); }
.link-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--sunk); border: 2px solid var(--line); color: var(--strong); }
.link-row:hover { border-color: var(--accent); }
.link-row .ms.end { margin-left: auto; font-size: 18px; color: var(--muted); transition: transform .2s ease, color .2s ease; }
.link-row:hover .ms.end { transform: translate(2px,-2px); color: var(--accent); }
.rows { display: flex; flex-direction: column; gap: 8px; }
.id-val { font-family: var(--f-digit); font-size: 26px; color: var(--yellow); }


/* ---------- หน้าแรก: เลย์เอาต์ 2 คอลัมน์ ---------- */
.telemetry { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 16px; background: var(--sunk); border: 2px solid var(--line); box-shadow: 4px 4px 0 var(--shadow); font-size: 12px; letter-spacing: .06em; }
.telemetry > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.telemetry .node { background: var(--lime); color: var(--ink); padding: 2px 8px; font-family: var(--f-head); font-size: 9px; }
.hero-grid { display: grid; gap: 24px; align-items: start; margin-top: -24px; }
.hero-grid > * { min-width: 0; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 7fr 5fr; } }
.hcol { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.bg-ic { position: absolute; right: -20px; bottom: -30px; font-size: 160px; width: 1em; opacity: .06; color: var(--strong); pointer-events: none; }
.ident { display: flex; align-items: center; gap: 20px; }
.ident .avatar { margin: 0; width: 104px; height: 104px; font-size: 64px; flex-shrink: 0; box-shadow: 5px 5px 0 var(--lime); border-color: var(--lime); }
.ident .role { color: var(--accent); border-color: var(--accent); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.ident h1 { margin-top: 8px; font-family: var(--f-head); font-size: 30px; line-height: 1.3; color: var(--strong); overflow-wrap: anywhere; }
.ident h1 span { color: var(--accent); }
.tagline2 { margin-top: 4px; font-family: var(--f-head); font-size: 11px; color: var(--accent-2); text-transform: uppercase; }
.bio2 { margin-top: 16px; color: var(--muted); max-width: 36rem; }
.actions2 { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--line); }
.card-title { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; margin-bottom: 14px; border-bottom: 2px solid var(--line); }
.card-title h2 { font-family: var(--f-head); font-size: 13px; line-height: 1.5; color: var(--strong); text-transform: uppercase; }
.card-title > span:last-child { margin-left: auto; font-size: 11px; letter-spacing: .1em; }
.soc-rows { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.soc-row { display: flex; align-items: center; gap: 10px; padding: 8px; background: var(--sunk); border: 2px solid var(--line); color: var(--strong); transition: border-color .1s, transform .1s, box-shadow .1s; }
.soc-row:hover { border-color: var(--accent); transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--accent); }
.soc-row .tag { width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center; border: 2px solid #000; color: #000; font-family: var(--f-head); font-size: 9px; }
.soc-row .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.soc-row .go { margin-left: auto; font-size: 16px; color: var(--muted); }
.soc-row.empty { opacity: .45; cursor: default; }
.soc-row.empty:hover { border-color: var(--line); transform: none; box-shadow: none; }
.soc-row.empty .go { visibility: hidden; }
.cd2 { border-color: var(--yellow); }
.cd2 .digit b { font-size: 46px; }
.cd-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; margin-top: 14px; padding: 8px 10px; border: 1px dashed var(--line); font-size: 12px; letter-spacing: .06em; }
.qr-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.qr-box { width: 128px; height: 128px; flex-shrink: 0; padding: 8px; background: #fff; border: 2px solid #000; box-shadow: 4px 4px 0 var(--lime); display: grid; place-items: center; color: #475569; font-family: var(--f-head); font-size: 10px; }
.qr-box img, .qr-box canvas { width: 100% !important; height: 100% !important; image-rendering: pixelated; }
.qr-info { flex: 1; min-width: 160px; display: flex; flex-direction: column; gap: 8px; }
.btn.sm { min-height: 36px; padding: 6px 10px; font-size: 9px; box-shadow: 3px 3px 0 var(--shadow); }
.music-ic { width: 42px; height: 42px; display: grid; place-items: center; background: var(--lime); color: var(--ink); border: 2px solid #000; box-shadow: 3px 3px 0 #fff; }
[data-theme="light"] .music-ic { box-shadow: 3px 3px 0 var(--ink); }
.eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 16px; margin-left: 10px; vertical-align: middle; }
.eq i { width: 4px; height: 4px; background: var(--lime); }
.eq i:nth-child(even) { background: var(--yellow); }
.eq.playing i { animation: eq .5s ease-in-out infinite alternate; }
.eq i:nth-child(2) { animation-delay: .15s; } .eq i:nth-child(3) { animation-delay: .3s; } .eq i:nth-child(4) { animation-delay: .08s; } .eq i:nth-child(5) { animation-delay: .22s; } .eq i:nth-child(6) { animation-delay: .38s; }
@keyframes eq { from { height: 3px; } to { height: 14px; } }
@media (max-width: 640px) {
  .preview-grid { grid-template-columns: 1fr; gap: 10px; }
  .preview-card { display: grid; grid-template-columns: minmax(92px, 34%) 1fr; }
  .preview-art { min-height: 140px; }
  .preview-info { align-self: center; padding: 10px; }
  .preview-info h3 { font-size: 9px; }.preview-info p { font-size: 12px; min-height: 0; }
  .preview-orbit { width: 68px; height: 68px; flex-basis: 68px; }.preview-orbit > .ms { font-size: 27px; }
  .empty-showcase-head { gap: 12px; min-height: 115px; }
  .preview-foot { font-size: 7px; }
  .hero-grid { margin-top: -12px; gap: 18px; } .hcol { gap: 18px; }
  .ident { gap: 14px; } .ident .avatar { width: 80px; height: 80px; font-size: 48px; }
  .ident h1 { font-size: 20px; }
  .actions2 .btn { flex: 1 1 calc(50% - 6px); }
  .soc-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cd2 .digit b { font-size: 36px; }
  .dossier { gap: 14px; } .dossier .dcol { gap: 14px; }
  .id-top { gap: 10px; } .id-pic { width: 46px; height: 46px; font-size: 22px; }
  .rig-head { gap: 10px; } .rig-badges { margin-left: 0; }
  .telemetry { display: none; }
}

/* ---------- หน้าแรก: ประวัติ & ข้อมูลส่วนตัว ---------- */
.dossier { display: grid; gap: 18px; align-items: stretch; }
@media (min-width: 1000px) { .dossier { grid-template-columns: 5fr 7fr; } }
.dossier .dcol { display: flex; flex-direction: column; gap: 18px; }
.id-top { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 2px solid var(--line); }
.id-pic { width: 52px; height: 52px; flex-shrink: 0; display: grid; place-items: center; overflow: hidden; border: 2px solid var(--accent); border-radius: 50%; background: var(--sunk); color: var(--accent); font-family: var(--f-digit); font-size: 26px; box-shadow: 3px 3px 0 var(--accent); }
.id-pic img { width: 100%; height: 100%; object-fit: cover; }
.id-who { min-width: 0; }
.id-who b { display: block; font-family: var(--f-head); font-size: 10px; line-height: 1.7; color: var(--strong); }
.id-who small { color: var(--accent-2); font-size: 12px; letter-spacing: .06em; }
.id-top .verified { margin-left: auto; align-self: flex-start; border-color: var(--accent); color: var(--accent); font-family: var(--f-head); font-size: 8px; padding: 3px 6px; }
.id-rows { display: flex; flex-direction: column; gap: 6px; }
.id-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 10px; background: var(--sunk); border: 1px solid var(--line); font-size: 14px; }
.id-row span { color: var(--muted); flex-shrink: 0; }
.id-row b { color: var(--strong); font-weight: 400; text-align: right; word-break: break-word; }
.id-row.y b { color: var(--accent-2); }
.id-row.g b { color: var(--accent); }
.id-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.id-foot .sys { color: var(--accent); }
.edu-grid { display: grid; gap: 10px; }
@media (min-width: 560px) { .edu-grid { grid-template-columns: 1fr 1fr; } }
.edu { display: flex; align-items: center; gap: 10px; padding: 10px; background: var(--sunk); border: 1px solid var(--line); }
.edu .no { font-family: var(--f-digit); font-size: 28px; line-height: 1; color: var(--accent); }
.edu b { display: block; color: var(--strong); font-weight: 400; font-size: 14px; line-height: 1.5; }
.edu small { color: var(--muted); font-size: 12px; }
.edu.current { border: 2px solid var(--accent); box-shadow: 3px 3px 0 var(--accent); }
.edu.current .no, .edu.current small { color: var(--accent); }
.int-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 720px) { .int-grid { grid-template-columns: repeat(4, 1fr); } }
.int { padding: 10px; background: var(--sunk); border: 1px solid var(--line); transition: border-color .1s; }
.int:hover { border-color: var(--accent); }
.int .ms { font-size: 20px; color: var(--accent); }
.int:nth-child(even) .ms { color: var(--accent-2); }
.int b { display: block; margin-top: 4px; color: var(--strong); font-weight: 400; font-size: 14px; line-height: 1.45; }
.int small { color: var(--muted); font-size: 12px; letter-spacing: .03em; }

/* ---------- หน้าแรก: เครื่องมือ / คอมที่ใช้ / เงื่อนไขเพื่อน ---------- */
.toolset { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); }
.toolset h3 { font-family: var(--f-head); font-size: 10px; line-height: 1.6; color: var(--accent-2); margin-bottom: 10px; text-transform: uppercase; }
.rig-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 2px solid var(--line); }
.rig-ic { width: 48px; height: 48px; flex-shrink: 0; display: grid; place-items: center; background: var(--sunk); border: 2px solid var(--accent); color: var(--accent); box-shadow: 3px 3px 0 var(--accent); }
.rig-ic .ms { font-size: 26px; }
.rig-id { min-width: 0; }
.rig-id b { display: block; font-family: var(--f-head); font-size: 11px; line-height: 1.7; color: var(--strong); text-transform: uppercase; }
.rig-id small { color: var(--accent); font-size: 12px; }
.rig-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.rig-badges .chip { font-size: 11px; letter-spacing: .05em; }
.rig-badges .os { border-color: var(--accent-2); color: var(--accent-2); }
.rig-badges .sw { border-color: var(--accent); color: var(--accent); }
.rig-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .rig-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .rig-grid { grid-template-columns: repeat(3, 1fr); } }
.spec { display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--sunk); border: 1px solid var(--line); transition: border-color .1s; }
.spec:hover { border-color: var(--accent); }
.spec.y:hover { border-color: var(--accent-2); }
.spec-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; letter-spacing: .06em; }
.spec-top .ms { font-size: 18px; color: var(--accent); }
.spec.y .spec-top .ms { color: var(--accent-2); }
.spec-mid small { display: block; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.spec-mid b { display: block; color: var(--strong); font-family: var(--f-head); font-size: 12px; line-height: 1.6; margin-top: 4px; }
.spec-sub { display: block; color: var(--accent); font-size: 12px; }
.spec.y .spec-sub { color: var(--accent-2); }
.spec-note { margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--line); color: var(--muted); font-size: 12px; }
.f-list { display: flex; flex-direction: column; gap: 10px; }
.f-item { display: flex; align-items: center; gap: 10px; padding: 10px; background: var(--sunk); border: 1px solid var(--line); }
.f-mark { width: 30px; height: 30px; flex-shrink: 0; display: grid; place-items: center; background: var(--accent); color: var(--ink); font-family: var(--f-head); font-size: 12px; }
.f-mark.y { background: var(--accent-2); }
.f-item b { display: block; color: var(--strong); font-weight: 400; font-size: 15px; line-height: 1.4; }
.f-item small { color: var(--muted); font-size: 12px; }
.f-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 11px; letter-spacing: .06em; color: var(--muted); }
.f-foot .ok { color: var(--accent); }
.f-foot .warn { color: var(--accent-2); }
.f-tech { display: flex; flex-direction: column; gap: 8px; }
.f-tech-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; background: var(--sunk); border: 1px solid var(--line); font-size: 14px; }
.f-tech-row span { color: var(--strong); }
.f-tech-row code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; color: var(--accent); letter-spacing: .04em; }
.f-tech-row.y code { color: var(--accent-2); }
.f-tech-row.m code { color: var(--muted); }

/* ---------- ของชอบ ---------- */
.song { display: flex; align-items: center; gap: 12px; padding: 12px; }
.song .no { font-family: var(--f-digit); font-size: 30px; color: var(--accent); min-width: 2ch; }
.song b { display: block; color: var(--strong); line-height: 1.3; }
.song small { color: var(--muted); }
.song .play { margin-left: auto; flex-shrink: 0; }
.cover { display: flex; flex-direction: column; overflow: hidden; }
.cover .img { aspect-ratio: 2/3; border-bottom: 2px solid var(--line); overflow: hidden; }
.cover .img img { transition: transform .35s ease; }
.cover:hover .img img { transform: scale(1.04); }
.cover .img.wide { aspect-ratio: 16/9; }
.cover .img img { width: 100%; height: 100%; object-fit: cover; }
.cover .info { padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.cover b { color: var(--strong); line-height: 1.3; }
.stars { color: var(--yellow); letter-spacing: 2px; font-size: 14px; }
.team { display: flex; align-items: center; gap: 14px; padding: 14px; }
.team .crest { width: 56px; height: 56px; flex-shrink: 0; display: grid; place-items: center; font-family: var(--f-head); font-size: 12px; border: 2px solid #000; color: var(--ink); }
.team .crest img { width: 100%; height: 100%; object-fit: contain; }
.match { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; padding: 12px 14px; text-align: center; }
.match .score { font-family: var(--f-digit); font-size: 34px; color: var(--yellow); }

/* ---------- ผลงาน ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filters button { padding: 6px 10px; font-family: var(--f-head); font-size: 9px; line-height: 1.4; border: 2px solid var(--line); background: var(--surface); color: var(--muted); transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, color .16s ease, background-color .16s ease; }
.filters button:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.filters button[aria-pressed="true"] { background: var(--lime); color: var(--ink); border-color: var(--ink); box-shadow: 2px 2px 0 var(--shadow); }
.filters button[aria-pressed="true"]:hover { color: var(--ink); transform: none; }
.proj .img { aspect-ratio: 16/10; border-bottom: 2px solid var(--line); overflow: hidden; }
.proj .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.proj:hover .img img { transform: scale(1.03); }
.proj .info { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.proj h3 { font-family: var(--f-head); font-size: 13px; line-height: 1.6; color: var(--strong); }
.status { align-self: flex-start; padding: 2px 8px; font-family: var(--f-head); font-size: 8px; background: var(--yellow); color: var(--ink); }
.status.done { background: var(--lime); }
.tags span { font-size: 13px; color: var(--accent); margin-right: 8px; }
.yt { aspect-ratio: 16/9; width: 100%; border: 0; display: block; }
.gallery { columns: 3 220px; column-gap: 12px; }
.gallery button { display: block; width: 100%; margin: 0 0 12px; break-inside: avoid; border: 2px solid var(--line); box-shadow: 4px 4px 0 var(--shadow); overflow: hidden; }
@media (hover: hover) {
  .proj, .cover, .team, .match, .song, .f-item, .spec, .int, .link-row, .gallery button { transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
  .proj:hover, .cover:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 8px 9px 0 var(--shadow); }
  .team:hover, .match:hover, .song:hover, .f-item:hover, .spec:hover, .int:hover, .link-row:hover { transform: translateY(-2px); border-color: var(--accent); }
  .spec.y:hover { border-color: var(--accent-2); }
  .gallery button:hover { transform: translateY(-2px); box-shadow: 6px 6px 0 var(--shadow); }
  .gallery button img { transition: transform .3s ease; }
  .gallery button:hover img { transform: scale(1.04); }
}
dialog.lb { padding: 0; border: 2px solid var(--line); background: var(--surface); max-width: min(960px, calc(100% - 24px)); box-shadow: 8px 8px 0 var(--lime); }
dialog.lb::backdrop { background: rgba(0,0,0,.8); }
dialog.lb img { max-height: 80vh; width: auto; margin: 0 auto; }
dialog.lb .cap { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; color: var(--strong); }

/* ---------- ปุ่ม BACK / TOP ---------- */
.tbtn.back { gap: 6px; padding: 0 10px; }
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); box-shadow: 4px 4px 0 #000; font-family: var(--f-head); font-size: 10px; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 640px) { .tbtn.back .label { display: none; } .to-top { right: 12px; bottom: 16px; padding: 8px 10px; } }

/* ---------- ท้ายเว็บ / toast ---------- */
.site-footer { border-top: 2px solid var(--line); padding: 20px 0 32px; font-size: 13px; color: var(--muted); transition: border-color .25s ease; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.toast { position: fixed; left: 50%; bottom: 20px; z-index: 300; transform: translate(-50%, 160%); max-width: calc(100% - 32px); padding: 10px 16px; background: var(--surface); color: var(--strong); border: 2px solid var(--yellow); box-shadow: 4px 4px 0 var(--shadow); transition: transform .25s; }
.toast:not(.show) { visibility: hidden; transition: transform .25s, visibility 0s .25s; }
.toast.show { transform: translate(-50%, 0); }

/* =========================================================
   ฉากเปิดหน้าลับ: หัวกะโหลก → แดงกะพริบ → ระเบิด
   ========================================================= */
.doom { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; background: rgba(0,0,0,.92); overflow: hidden; }
.doom .skull { width: min(46vw, 260px); image-rendering: pixelated; animation: skullIn .7s cubic-bezier(.2,1.6,.4,1) both, skullShake .09s linear .7s infinite; filter: drop-shadow(0 0 24px rgba(255,77,77,.6)); }
.doom .msg { position: absolute; bottom: 14vh; left: 0; right: 0; text-align: center; font-family: var(--f-head); color: #fff; font-size: clamp(12px, 3vw, 20px); line-height: 1.8; text-shadow: 3px 3px 0 #000; }
.doom .msg b { display: block; font-family: var(--f-digit); font-size: clamp(64px, 16vw, 140px); font-weight: 400; color: #FFD166; line-height: 1; }
.doom.alarm { animation: redAlarm .32s steps(1) infinite; }
.doom.alarm .skull { animation: skullShake .05s linear infinite; }
.doom.boom { animation: none; background: #fff; }
.doom.boom .skull, .doom.boom .msg { opacity: 0; }
.doom .ring { position: absolute; width: 20px; height: 20px; border: 6px solid #FFD166; border-radius: 50%; opacity: 0; }
.doom.boom .ring { animation: ring .6s ease-out forwards; }
.shake { animation: bodyShake .08s linear infinite; }
@keyframes skullIn { from { transform: scale(.1) rotate(-25deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes skullShake { 0% { transform: translate(0,0); } 25% { transform: translate(-4px,2px); } 50% { transform: translate(3px,-3px); } 75% { transform: translate(-2px,-2px); } }
@keyframes redAlarm { 0% { background: #B00000; } 50% { background: #000; } }
@keyframes bodyShake { 0% { transform: translate(0,0); } 33% { transform: translate(-6px,4px); } 66% { transform: translate(5px,-5px); } }
@keyframes ring { from { opacity: 1; width: 20px; height: 20px; } to { opacity: 0; width: 220vmax; height: 220vmax; border-width: 40px; } }

/* =========================================================
   หน้าลับ (โทนแดง)
   ========================================================= */
/* หน้าลับเป็นโทนแดงคงที่: ต้อง override "ครบทุกตัวแปร" ไม่ให้ --text/--muted จาก light theme รั่วเข้ามา */
body.secret {
  --bg: #0a0507; --surface: #160b0f; --sunk: #0d0609; --line: #3a1218;
  --text: #dfe2ee; --muted: #94A3B8; --strong: #FFFFFF;
  --accent: #FF4D4D; --lime: #FF4D4D; --accent-2: #FFD166; --yellow: #FFD166;
  --red: #FF4D4D;
  --shadow: #000; --grid: rgba(255,77,77,.06);
  color-scheme: dark;
}
body.secret .card { box-shadow: 6px 6px 0 #000; }
.classified { text-align: center; padding: 26px 16px; }
.classified h1 { font-family: var(--f-head); font-size: 26px; line-height: 1.5; color: #FF4D4D; text-shadow: 3px 3px 0 #000; animation: flicker 2.4s infinite; }
@keyframes flicker { 0%, 92%, 100% { opacity: 1; } 94% { opacity: .3; } 96% { opacity: 1; } 98% { opacity: .5; } }
.hate .img { aspect-ratio: 2/3; border-bottom: 2px solid var(--line); position: relative; }
.hate .img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.6) contrast(1.1); }
.hate .img::after { content: "REJECTED"; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%) rotate(-18deg); padding: 4px 10px; border: 3px solid #FF4D4D; color: #FF4D4D; font-family: var(--f-head); font-size: 12px; background: rgba(0,0,0,.55); }
.skulls { color: #FF4D4D; font-size: 14px; letter-spacing: 2px; }

/* ---------- มือถือ ---------- */
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  main.wrap { gap: 36px; padding-top: 18px; }
  .site-header .bar { height: 56px; gap: 8px; }
  .brand span:last-child { display: none; }
  .site-nav { margin-left: 0; flex: 1; justify-content: center; }
  .site-nav a { padding: 6px; } .site-nav a .label { display: none; } .site-nav a .ms { font-size: 22px; }
  .tools { gap: 4px; }
  .tbtn { height: 32px; min-width: 32px; padding: 0 5px; }
  #lang-btn { font-size: 8px; }
  .sec-head h2 { font-size: 15px; }
  .sec-head::after { display: none; }
  .profile h1 { font-size: 20px; }
  .avatar { width: 112px; height: 112px; }
  .digit b { font-size: 40px; }
  .socials { grid-template-columns: repeat(4,1fr); gap: 8px; }
  .social .tag { width: 38px; height: 38px; }
  .social small { font-size: 11px; }
  .gallery { columns: 2; column-gap: 8px; }
  .classified h1 { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #app > *, .anim-panel, .sec-head::after, .click-fx { animation: none !important; }
  * { animation-duration: .01s !important; animation-iteration-count: 1 !important; transition: none !important; }
}
