/* DinoTrak — หน้าตาแบบเกม (Kelvin 24 ต.ค. 2569: "เอาสไตล์ปุ่มเมนูและความสวยงามแบบ aaiixz มาใช้ เน้นความเป็น 3D ให้การเล่นมีมิติ
   ตัวการ์ตูนเคลื่อนไหวขยับได้ มีเอฟเฟกต์ต่าง ๆ" + "ปรับสไตล์เกมเป็นแบบในหนัง Ready Player One") · โหลดหลัง dino.css (ทับเฉพาะหน้าตา ไม่แตะโครง)
   · โครงปุ่มแบบ AaiixZ: ปุ่มนูนขอบเข้ม + เงาแข็งด้านล่าง (กดแล้วยุบ) · ปุ่มปิดกลมสีแดง · ฟอนต์ Anuphan
   · สีแบบโลกเสมือนไซไฟ (แรงบันดาลใจจากหนัง ไม่ใช้ชื่อ โลโก้ หรือตัวละครของหนัง): แผงกระจกสีกรมท่าเข้ม ขอบนีออนฟ้า/ชมพู ปุ่มหลักฟ้านีออน
   · แผนที่ยังสว่าง (อ่านง่ายกลางแดด) */
:root {
  --f-display: 'Anuphan', 'IBM Plex Sans Thai', system-ui, sans-serif;
  --f-body: 'IBM Plex Sans Thai', 'Noto Sans Thai', system-ui, sans-serif;
  --ol: #070a1f;                 /* เส้นขอบเข้ม */
  --cream1: #2b3576; --cream2: #1c2456;   /* ปุ่มรอง/ชิป = แผงกรมท่า */
  --leaf1: #6ff8ff; --leaf2: #17a9d1; --leafd: #04304a; /* ปุ่มหลัก = ฟ้านีออน */
  --amb1: #ffd66b; --amb2: #ff9a3d;
  --neon: #35f2ff; --pink: #ff4fb8; --violet: #8a6cff;
  --press: 0 4px 0;
  /* ตัวแปรของ dino.css → โทนมืด */
  --bg: #0b1026; --ink: #eef1ff; --muted: #aab4ea; --card: #1b2350; --line: #3a4590; --accent: #35f2ff; --amber: #ffc94d; --bad: #ff6b81;
}
body { font-family: var(--f-body); background: #0b1026; color: var(--ink); }
.dt-title b, .dt-card h2, .dt-dialog h2, .dt-dialog h3, .dt-btn, .dt-chipbtn, .dt-shoplist button, .dt-misslist .claim, .dt-team, .dt-gembtn span { font-family: var(--f-display); }

/* ── แถบบน: โลโก้ + ปุ่มกลมแบบเหรียญไม้ ── */
.dt-logo { border-radius: 12px; box-shadow: 0 3px 0 var(--ol), 0 0 14px rgba(53,242,255,.55); } /* โลโก้ mark.svg (แชทโลโก้ 24 ต.ค.) */
.dt-title b { font-weight: 800; color: #fff; text-shadow: 0 2px 0 var(--ol), 0 0 8px var(--neon); letter-spacing: .4px; }
.dt-title span { color: #fff; text-shadow: 0 1px 0 var(--ol), 0 0 4px var(--ol); }
.dt-top { background: linear-gradient(rgba(11,16,38,.9), rgba(11,16,38,.55) 75%, rgba(11,16,38,0)); }
.dt-title b, .dt-title span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 440px) { .dt-top { gap: 6px; padding-left: 8px; padding-right: 8px; } .dt-icon { width: 36px; height: 36px; font-size: 17px; } .dt-gembtn { min-width: 36px; padding: 0 8px; } .dt-logo { width: 36px; height: 36px; } .dt-title span { display: none; } }
.dt-icon { background: linear-gradient(var(--cream1), var(--cream2)); border: 3px solid var(--neon); box-shadow: var(--press) var(--ol), 0 0 12px rgba(53,242,255,.45); color: #fff; font-size: 20px; transition: transform .08s, box-shadow .08s; }
.dt-icon:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ol); }
.dt-icon[aria-pressed="true"] { background: linear-gradient(#ff8ad0, var(--pink)); border-color: #fff; box-shadow: var(--press) #4a0b30, 0 0 14px rgba(255,79,184,.6); color: #fff; }
.dt-gembtn span { color: #fff; font-weight: 800; }
.dt-badge { border: 2px solid #fff; box-shadow: 0 2px 0 rgba(0,0,0,.25); }

/* ── แผงล่าง + การ์ด = แผ่นกระดาษครีมขอบน้ำตาล ── */
.dt-sheet { background: linear-gradient(rgba(20,26,61,.96), rgba(11,16,38,.98)); border-top: 3px solid var(--neon); box-shadow: 0 -4px 18px rgba(53,242,255,.25); color: var(--ink); }
.dt-grip { background: linear-gradient(rgba(24,31,72,.98), rgba(18,24,58,.98)); color: var(--muted); }
.dt-grip .bar { background: var(--neon); box-shadow: 0 0 8px var(--neon); }
@media (min-width: 760px) { .dt-sheet { border-top: 0; border-left: 3px solid var(--neon); box-shadow: -4px 0 18px rgba(53,242,255,.25); } .dt-grip { color: #fff; font-weight: 700; } .dt-sheet.min { border: 3px solid var(--neon); box-shadow: 0 3px 0 var(--ol), 0 0 14px rgba(53,242,255,.55); } }
.dt-card { background: linear-gradient(#1d2658, #161d47); border: 2.5px solid #4554c9; border-radius: 16px; box-shadow: 0 4px 0 var(--ol), inset 0 0 0 1px rgba(53,242,255,.12); }
.dt-card h2 { font-weight: 800; color: #fff; }

/* ── ปุ่มหลัก: นูน 3 มิติ กดแล้วยุบ ── */
.dt-btn { background: linear-gradient(var(--leaf1), var(--leaf2)); border: 3px solid var(--leafd); border-radius: 16px; box-shadow: var(--press) var(--leafd), 0 0 16px rgba(53,242,255,.45); color: #04203a; font-weight: 800; font-size: 16px; text-shadow: 0 1px 0 rgba(255,255,255,.45); transition: transform .08s, box-shadow .08s; }
.dt-btn:not(:disabled):active { transform: translateY(3px); box-shadow: 0 1px 0 var(--leafd); }
.dt-btn:disabled { background: linear-gradient(#3a4270, #2c335c); border-color: #1a1f3f; box-shadow: var(--press) #1a1f3f; color: #8d96c4; text-shadow: none; }
.dt-btn.dt-ghost { background: linear-gradient(var(--cream1), var(--cream2)); border-color: var(--pink); box-shadow: var(--press) var(--ol), 0 0 10px rgba(255,79,184,.35); color: #ffd9f1; text-shadow: none; }
.dt-btnbad { background: linear-gradient(#ff8a9b, #e0405f); border-color: #4a0b1c; box-shadow: var(--press) #4a0b1c; color: #fff; }
.dt-chipbtn, a.dt-chipbtn { background: linear-gradient(var(--cream1), var(--cream2)); border: 2.5px solid #6f7cff; box-shadow: 0 3px 0 var(--ol); color: #eef1ff; font-weight: 700; transition: transform .08s, box-shadow .08s; }
.dt-chipbtn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ol); }
.dt-chipbtn.ready { background: linear-gradient(var(--amb1), var(--amb2)); border-color: #5a2a00; color: #3a1a00; }
.dt-chipbtn.on, .dt-chipbtn[aria-pressed="true"]:not(.dt-sound) { background: linear-gradient(#ff8ad0, var(--pink)); border-color: #fff; color: #fff; }

/* ── รายการ: แผ่นกระเบื้องนูน ── */
.dt-riftlist button { background: linear-gradient(#262f68, #1d2556); border: 2.5px solid #4a5bd6; border-radius: 14px; box-shadow: 0 3px 0 var(--ol); color: var(--ink); transition: transform .08s, box-shadow .08s; }
.dt-riftlist button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ol); }
.dt-riftlist .e { border: 2.5px solid var(--ol); box-shadow: 0 2px 0 var(--ol); }
.dt-shoplist li, .dt-misslist li { background: #212a62; border: 2.5px solid #4a5bd6; border-radius: 14px; box-shadow: 0 3px 0 var(--ol); }
.dt-shoplist button, .dt-misslist .claim, .dt-stationlist li > button { border: 2.5px solid var(--leafd); background: linear-gradient(var(--leaf1), var(--leaf2)); box-shadow: 0 3px 0 var(--leafd); color: #04203a; text-shadow: none; }
.dt-packs button, .dt-misslist .claim { border-color: #6b3d06; background: linear-gradient(var(--amb1), var(--amb2)); color: #4a2c06; text-shadow: none; box-shadow: 0 3px 0 #6b3d06; }
.dt-shoplist button:disabled, .dt-misslist .claim:disabled, .dt-stationlist li > button:disabled { border-color: #1a1f3f; background: linear-gradient(#3a4270, #2c335c); box-shadow: 0 3px 0 #1a1f3f; color: #8d96c4; }
.dt-shoplist button:not(:disabled):active, .dt-misslist .claim:not(:disabled):active, .dt-stationlist li > button:not(:disabled):active { transform: translateY(2px); box-shadow: 0 1px 0 var(--leafd); }
.dt-raidrow { background: linear-gradient(#4a1b3d, #351236); border: 2px solid var(--pink); color: #ffe3f3; }
.dt-raidrow button { border: 2.5px solid #4a0b30; box-shadow: 0 3px 0 #4a0b30; background: linear-gradient(#ff8ad0, var(--pink)); color: #fff; }
.dt-team { border: 2px solid rgba(0,0,0,.35); box-shadow: 0 2px 0 rgba(0,0,0,.25); font-weight: 700; }

/* ── หน้าต่าง: กรอบไม้ หัวลายไม้ ปุ่มปิดกลมแดง ── */
.dt-dialog { background: linear-gradient(#1d2658, #121838); color: var(--ink); border: 3px solid var(--neon); border-radius: 22px; box-shadow: 0 8px 0 var(--ol), 0 0 24px rgba(53,242,255,.35), 0 20px 50px rgba(0,0,0,.55); animation: dt-pop .28s cubic-bezier(.2,1.4,.4,1); }
.dt-dialog::backdrop { background: radial-gradient(circle at 50% 40%, rgba(20,24,70,.55), rgba(5,8,24,.82)); }
.dt-dialog > .dt-rifthead { margin: -18px -16px 10px; padding: 10px 10px 10px 16px; background: linear-gradient(90deg, #5a2bb8, #b0368f 60%, #e0457f); border-bottom: 3px solid var(--neon); border-radius: 19px 19px 0 0; box-shadow: 0 3px 12px rgba(255,79,184,.35); }
.dt-dialog > .dt-rifthead h2 { color: #fff; text-shadow: 0 2px 0 var(--ol); }
.dt-dialog > .dt-rifthead .dt-sci { color: #ffd9f1; }
.dt-x { width: 36px; height: 36px; min-width: 36px; padding: 0; border-radius: 50%; background: linear-gradient(#ff7a6e, #e8453c); color: #fff; border: 3px solid var(--ol); box-shadow: 0 3px 0 var(--ol); font: 800 16px/1 var(--f-display); text-decoration: none; }
.dt-x:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ol); }
@keyframes dt-pop { from { transform: scale(.85) translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ── ตัวการ์ตูนมีชีวิต (art.js: .bd ตัว · .hd หัว · .tl หาง · .ey ตา) — เฉพาะ .alive (บนแผนที่ การ์ดรอยแยก หน้าต่างใหญ่) ── */
.dt-art .bd, .dt-art .hd, .dt-art .tl, .dt-art .ey { transform-box: fill-box; }
.dt-art.alive .bd { transform-origin: 50% 100%; animation: dt-breathe 2.2s ease-in-out infinite; }
.dt-art.alive .hd { transform-origin: 30% 90%; animation: dt-nod 3.1s ease-in-out infinite; }
.dt-art.alive .tl { transform-origin: 100% 50%; animation: dt-wag 1.3s ease-in-out infinite; }
.dt-art.alive .ey { transform-origin: 50% 50%; animation: dt-blink 4.2s infinite; }
.dt-art.alive .sh { transform-box: fill-box; transform-origin: 50% 50%; animation: dt-shadow 2.2s ease-in-out infinite; }
.dt-art.hop .bd { animation: dt-hop .9s cubic-bezier(.3,.7,.4,1) infinite; }
@keyframes dt-breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.025, .965) translateY(1px); } }
@keyframes dt-nod { 0%, 100% { transform: rotate(0); } 40% { transform: rotate(-5deg); } 60% { transform: rotate(3deg); } }
@keyframes dt-wag { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(9deg); } }
@keyframes dt-blink { 0%, 93%, 100% { transform: scaleY(1); } 95%, 97% { transform: scaleY(.1); } }
@keyframes dt-shadow { 0%, 100% { transform: scaleX(1); } 50% { transform: scaleX(1.06); } }
@keyframes dt-hop { 0%, 100% { transform: translateY(0) scale(1, 1); } 15% { transform: translateY(0) scale(1.08, .9); } 45% { transform: translateY(-12px) scale(.95, 1.06); } 75% { transform: translateY(0) scale(1.06, .92); } }

/* ── หมุดบนแผนที่ 3 มิติ: ไดโนเสาร์ยืนบนรอยแยกที่หมุนวน เงาบนพื้น ลอยขึ้นลงเบา ๆ ── */
.dt-rift-m { width: 56px; height: 62px; border: 0; border-radius: 0; background: none; box-shadow: none; outline: 0; display: block; position: relative; filter: drop-shadow(0 4px 3px rgba(0,0,0,.28)); animation: none; }
.dt-rift-m::before { content: ''; position: absolute; left: 6px; right: 6px; bottom: 2px; height: 16px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--rc, var(--r-common)), #ffffff 25%, var(--rc, var(--r-common)) 50%, #ffffff 75%, var(--rc, var(--r-common)));
  box-shadow: 0 0 10px 2px var(--rc, var(--r-common)); opacity: .85; animation: dt-portal 2.4s linear infinite; }
.dt-rift-m .dt-art { position: absolute; left: 6px; bottom: 6px; width: 44px; height: 44px; }
.dt-rift-m.sel { outline: 0; }
.dt-rift-m.sel::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 22px; border-radius: 50%; border: 3px solid var(--ol); }
.dt-rift-m.done::before { animation: none; filter: grayscale(1); opacity: .4; }
@keyframes dt-portal { from { transform: scaleY(.45) rotate(0); } to { transform: scaleY(.45) rotate(360deg); } }
.dt-trace-m { filter: drop-shadow(0 5px 3px rgba(0,0,0,.35)); }
.dt-me { width: 26px; height: 26px; border: 4px solid #fff; box-shadow: 0 0 0 3px rgba(47,179,168,.5), 0 6px 10px rgba(0,0,0,.35); animation: dt-ping 2s ease-out infinite; }
@keyframes dt-ping { 0% { box-shadow: 0 0 0 0 rgba(47,179,168,.55), 0 6px 10px rgba(0,0,0,.35); } 100% { box-shadow: 0 0 0 18px rgba(47,179,168,0), 0 6px 10px rgba(0,0,0,.35); } }

/* ── การ์ดรอยแยก: ตัวใหญ่ยืนบนวงรอยแยก ── */
.dt-riftemoji { position: relative; width: 84px; height: 84px; display: grid; place-items: center; }
.dt-riftemoji::before { content: ''; position: absolute; left: 4px; right: 4px; bottom: 2px; height: 22px; border-radius: 50%; background: conic-gradient(var(--rc, var(--r-common)), #fff, var(--rc, var(--r-common)), #fff, var(--rc, var(--r-common))); box-shadow: 0 0 14px 3px var(--rc, var(--r-common)); animation: dt-portal 2.4s linear infinite; }
.dt-riftemoji .dt-art { position: relative; width: 76px; height: 76px; }
.dt-dialog .dt-rifthead .dt-riftemoji { width: 64px; height: 64px; }
.dt-dialog .dt-rifthead .dt-riftemoji .dt-art { width: 58px; height: 58px; }

/* ── หัวใจในมินิเกม + รอยแยกใหญ่: เต้นตามจังหวะ ── */
.dt-heart { background: radial-gradient(circle at 50% 40%, #fff6fb 0 50%, #ffc2e4 51% 100%); border: 4px solid var(--ol); box-shadow: 0 6px 0 var(--ol), 0 0 22px rgba(255,79,184,.55); }
.dt-heart:not(:disabled):active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ol); }
.dt-raidtap { border: 4px solid var(--ol); box-shadow: 0 6px 0 var(--ol), 0 12px 24px rgba(0,0,0,.2); }
.dt-raidtap:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ol); }
.dt-raidbar { height: 18px; border: 3px solid var(--ol); border-radius: 12px; background: #2a3166; box-shadow: inset 0 3px 0 rgba(0,0,0,.25); }
.dt-raidbar span { background: linear-gradient(#6ff8ff, #17a9d1); box-shadow: inset 0 -3px 0 rgba(0,0,0,.15), 0 0 10px var(--neon); }

/* ── เอฟเฟกต์ (fx.js) ── */
.fx-float { position: fixed; z-index: 99; transform: translate(-50%, -50%); font: 800 20px/1 var(--f-display); color: #fff; text-shadow: 0 2px 0 var(--ol), 0 0 3px var(--ol); pointer-events: none; animation: fx-up 1.3s ease-out forwards; white-space: nowrap; }
@keyframes fx-up { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.6); } 15% { opacity: 1; transform: translate(-50%, -60%) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -260%) scale(1); } }
.fx-burst { position: fixed; z-index: 99; width: 0; height: 0; pointer-events: none; }
.fx-burst i { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: #ffd34d; box-shadow: 0 0 6px #fff7c0; animation: fx-burst .65s ease-out forwards; }
@keyframes fx-burst { from { transform: translate(0, 0) scale(1); opacity: 1; } to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }
.fx-confetti { position: fixed; inset: 0; z-index: 98; pointer-events: none; }
.fx-shake { animation: fx-shake .45s ease-in-out; }
@keyframes fx-shake { 0%, 100% { transform: none; } 20% { transform: translate(-6px, 2px) rotate(-1deg); } 40% { transform: translate(5px, -2px) rotate(1deg); } 60% { transform: translate(-4px, 1px); } 80% { transform: translate(3px, -1px); } }
.dt-sound { min-width: 44px; }

@media (prefers-reduced-motion: reduce) {
  .dt-art.alive .bd, .dt-art.alive .hd, .dt-art.alive .tl, .dt-art.alive .ey, .dt-art.alive .sh, .dt-art.hop .bd, .dt-rift-m::before, .dt-riftemoji::before, .dt-me, .dt-dialog { animation: none; }
}


/* ── โทนมืดให้ส่วนที่ dino.css ระบุสีสว่างไว้ตรง ๆ ── */
.dt-mapmsg { background: rgba(20,26,61,.95); color: var(--ink); border: 2px solid var(--neon); }
.dt-chip { background: #222b62; color: var(--ink); border-color: #4a5bd6; }
.dt-chip.hot { background: #4a2a10; border-color: var(--amber); color: #ffe2a8; }
.dt-draft, .dt-kidsnote { background: #3a2a12; color: #ffe2a8; }
.dt-hatched, .dt-usebtns button[aria-pressed="true"], .dt-ages button[aria-checked="true"], .dt-kinds button[aria-checked="true"], .dt-eggpick button[aria-pressed="true"] { background: #13404f; color: #c9fbff; border-color: var(--neon); }
.dt-usebtns button, .dt-ages button, .dt-kinds button, .dt-eggpick button, .dt-raidplayers li { background: #222b62; color: var(--ink); border-color: #4a5bd6; }
.dt-tracelist .e { background: #2b3576; }
.dt-tracelist .scan { color: #3a1a00; }
.dt-tracelist .scan:disabled, .dt-misslist .claim:disabled, .dt-egglist .inc:disabled, .dt-btn:disabled { color: #8d96c4; }
.dt-egglist .inc { color: #04203a; }
.dt-dexlist p { color: var(--ink); }
.dt-dexlist li.unseen .e { background: #3a4270; }
.dt-raidtap { background: #3a1b4d; }
.dt-diggrid .d2 { background: #7a5634; }
.dt-link { color: var(--neon); }
.dt-danger { color: var(--bad); }
.dt-status dd.ok, .dt-riftlist .ok, .dt-feedback.hit, .dt-calmresult.win { color: #7dffc4; }
input, select, textarea { background: #10163a; color: var(--ink); border-color: #4a5bd6; }
.dt-me { background: var(--neon); box-shadow: 0 0 0 3px rgba(53,242,255,.5), 0 0 14px var(--neon); }

/* ── P7: 3 มิติบนแผนที่ — ตัวจริงใหญ่พอแล้ว ไอคอนหายเหลือแค่วงรอยแยกบนพื้น · ซูมใกล้มาก ตัวละครแทนจุดตำแหน่ง ── */
.dt-rift-m.life { filter: none; }
.dt-rift-m.life .dt-art { visibility: hidden; }
.dt-rift-m.life::before { left: -10px; right: -10px; height: 30px; bottom: -6px; }
.dt-z3d .dt-me { visibility: hidden !important; } /* MapLibre ตั้ง opacity ของหมุดเองแบบ inline */
.dt-moods { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
#dt-rmood { display: block; margin: 8px 0 0; font: 700 14px/1.3 var(--f-display); color: #ffd9f1; }
#dt-rmood[hidden] { display: none; }
.dt-navbtn { margin-top: 8px; }
.dt-navmini { min-width: 40px; min-height: 38px; border-radius: 10px; border: 2.5px solid #6f7cff; background: linear-gradient(var(--cream1), var(--cream2)); box-shadow: 0 3px 0 var(--ol); font-size: 18px; cursor: pointer; }
.dt-navopts { display: grid; gap: 12px; margin: 10px 0; }
.dt-navopts a.dt-btn { display: grid; place-items: center; text-decoration: none; }
.dt-see3d { margin-top: 6px; min-height: 32px; font-size: 13px; }
/* เวที 3 มิติ (หน้าสงบสัตว์ สมุด สร้างตัวละคร) */
.dt-stage { position: relative; height: 190px; margin: 0 0 8px; border-radius: 16px; overflow: hidden; border: 2.5px solid #4a5bd6;
  background: radial-gradient(ellipse at 50% 115%, rgba(53,242,255,.35), transparent 60%), linear-gradient(#2a1f6b, #121838 70%); box-shadow: inset 0 0 24px rgba(53,242,255,.2); }
.dt-stage.tall { height: 260px; }
.dt-stage.neon::after { content: ''; position: absolute; inset: auto 0 0; height: 40%; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(53,242,255,.25) 0 1px, transparent 1px 28px), repeating-linear-gradient(0deg, rgba(53,242,255,.25) 0 1px, transparent 1px 18px);
  -webkit-mask: linear-gradient(transparent, #000); mask: linear-gradient(transparent, #000); }
.dt-stage canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.dt-moodtag { position: absolute; left: 8px; top: 8px; padding: 2px 10px; border-radius: 99px; background: rgba(7,10,31,.75); border: 2px solid var(--pink); color: #fff; font: 700 13px/1.6 var(--f-display); pointer-events: none; }
.dt-moodtag:empty { display: none; }
/* สร้างตัวละคร */
.dt-avopts { display: grid; gap: 8px; max-height: 34vh; overflow: auto; padding-right: 4px; }
.dt-avrow { display: grid; grid-template-columns: 76px 1fr; gap: 8px; align-items: center; }
.dt-avrow .l { font: 700 13px/1.2 var(--f-display); color: var(--muted); }
.dt-avrow .o { display: flex; flex-wrap: wrap; gap: 6px; }
.dt-avrow .dt-chipbtn { min-height: 32px; padding: 0 10px; font-size: 13px; }
.dt-avrow .sw { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--ol); box-shadow: 0 2px 0 var(--ol); cursor: pointer; padding: 0; }
.dt-avrow .sw[aria-pressed="true"] { outline: 3px solid var(--neon); outline-offset: 2px; box-shadow: 0 0 10px var(--neon); }
.dt-avatar .dt-calmbtns, .dt-pet .dt-calmbtns { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.dt-pet .dt-calmbtns { grid-template-columns: 1fr; }

/* เปิดจากแอปแชท: ให้ไปเปิดใน Chrome / Safari ก่อน */
.dt-inapp { margin: 4px 0 10px; padding: 12px; border-radius: 14px; border: 2.5px solid var(--amber); background: #2e2410; }
.dt-inapp p { color: #ffe9b8; }
.dt-inappbtns { display: grid; gap: 10px; margin: 8px 0; }
.dt-inappbtns a.dt-btn { display: grid; place-items: center; text-decoration: none; }
.dt-inappbtns a[hidden] { display: none; }
.dt-inapp .dt-link { margin: 6px 0 0; font-size: 12px; }

/* ทุกอย่างเป็น 3 มิติ (Kelvin 24 ต.ค.): ภาพเรนเดอร์ 3 มิติ (props3d.js) แทน SVG — ขยับทั้งภาพ (หายใจ/กระโดด) */
img.dt-art { display: block; object-fit: contain; width: 100%; height: 100%; -webkit-user-drag: none; user-select: none; }
img.dt-art.alive { transform-origin: 50% 92%; animation: dt-breathe 2.2s ease-in-out infinite; }
img.dt-art.hop { animation: dt-hop .9s cubic-bezier(.3,.7,.4,1) infinite; }
.dt-rift-m img.dt-art { filter: drop-shadow(0 3px 2px rgba(0,0,0,.25)); }
.dt-gembtn .dt-amber { width: 22px; height: 22px; margin-right: 2px; }
.dt-riftlist .e img.dt-art, .dt-dexlist .e img.dt-art { width: 92%; height: 92%; margin: auto; }
@media (prefers-reduced-motion: reduce) { img.dt-art.alive, img.dt-art.hop { animation: none; } }
.dt-trace-m.life > * { visibility: hidden; } /* ซูมใกล้: ศิลาร่องรอย/สถานี 3 มิติขนาดจริงยืนแทน (ยังแตะหมุดได้) */

/* เปิดตำแหน่งไม่ได้ (ไอโฟน): ปุ่มดูวิธีเปิด + ขั้นตอนแบบ /ride */
.dt-status dd.dt-gpsfix { grid-column: 1 / -1; margin: 4px 0 6px; }
.dt-ghsteps { margin: 6px 0 12px; padding-left: 22px; display: grid; gap: 8px; color: var(--ink); }
.dt-ghsteps b { color: #c9fbff; }

/* ── P8 ระบบจาก AaiixZ: เลเวล · เช็กอิน · ชวนเพื่อน · สอนเล่น · แจ้งปัญหา ── */
.dt-lvl { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; margin: 8px 0 4px; }
.dt-lvl b { font: 800 16px/1.2 var(--f-display); color: #fff; padding: 2px 10px; border-radius: 99px; background: linear-gradient(#ff8ad0, var(--pink)); border: 2px solid var(--ol); box-shadow: 0 2px 0 var(--ol); }
.dt-lvl span { font: 700 14px/1.2 var(--f-display); color: #ffd9f1; }
.dt-lvlbar { grid-column: 1 / -1; height: 12px; border-radius: 8px; background: #2a3166; border: 2px solid var(--ol); overflow: hidden; }
.dt-lvlbar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--neon), #a6ff4d); box-shadow: 0 0 8px var(--neon); transition: width .6s; }
.dt-lvl small { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.dt-daily h2 { margin-bottom: 6px; }
.dt-dailyrow { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.dt-dailyrow li { display: grid; justify-items: center; gap: 2px; padding: 4px 2px; border-radius: 10px; background: #222b62; border: 2px solid #3a4590; font-size: 11px; color: var(--muted); }
.dt-dailyrow li.today { border-color: var(--amber); background: #3a2a12; color: #ffe2a8; box-shadow: 0 0 10px rgba(255,201,77,.45); }
.dt-dailyrow li.got { opacity: .45; }
.dt-dailyrow .ic { width: 34px; height: 34px; display: grid; place-items: center; }
.dt-dailyrow .ic .dt-art { width: 34px; height: 34px; }
.dt-dailyrow .am { color: #ffc94d; font-weight: 700; }
.dt-coach { border-color: var(--amber) !important; box-shadow: 0 4px 0 var(--ol), 0 0 14px rgba(255,201,77,.35) !important; }
.dt-coachhead { display: grid; grid-template-columns: 56px 1fr; gap: 10px; align-items: center; }
.dt-coachpic { width: 56px; height: 56px; display: grid; place-items: center; font-size: 36px; }
.dt-coachpic .dt-art { width: 56px; height: 56px; }
.dt-coach b { font: 800 15px/1.2 var(--f-display); color: #ffe2a8; }
.dt-coach p { margin: 2px 0 0 !important; color: var(--ink) !important; font-size: 14px !important; }
.dt-coach .dt-link { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.coach-hl { position: relative; z-index: 1; animation: dt-coachpulse 1.2s ease-in-out infinite !important; }
@keyframes dt-coachpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,201,77,.9); } 50% { box-shadow: 0 0 0 7px rgba(255,201,77,0); } }
.dt-invite { margin: 10px 0; padding: 12px; border-radius: 14px; border: 2.5px solid var(--neon); background: #16204e; }
.dt-invite h3 { margin: 0 0 6px; }
.dt-contest { margin: 0 0 10px; padding: 10px; border-radius: 12px; background: #241a5c; border: 2px solid #ffd166; }
.dt-contest h4 { margin: 0 0 4px; font-size: 15px; }
.dt-ctme { margin: 4px 0; font-weight: 700; }
.dt-ctrules { font-size: 12.5px; margin-top: 6px; }
.dt-ctrules ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 3px; }
.dt-invlist li.me { outline: 2px solid #ffd166; }
.dt-invsteps { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 4px; font-size: 13px; }
.dt-invbtns { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.dt-invbtns .dt-btn { min-height: 42px; font-size: 14px; padding: 0 6px; display: grid; place-items: center; text-decoration: none; }
.dt-line { background: linear-gradient(#4be27a, #06c755) !important; border-color: #034a1f !important; box-shadow: 0 4px 0 #034a1f !important; color: #fff !important; }
.dt-invlist li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; font-size: 13px; }
.dt-invlist b.ok { color: #7dffc4; }
.dt-invited { margin: 0 0 8px; padding: 8px 10px; border-radius: 12px; background: #13404f; border: 2px solid var(--neon); color: #c9fbff; font-weight: 600; }
.dt-fbtext { width: 100%; box-sizing: border-box; min-height: 110px; margin: 10px 0 6px; padding: 10px; border-radius: 12px; border: 2px solid #4a5bd6; font: inherit; }
.dt-kinds { display: flex; gap: 6px; flex-wrap: wrap; }

/* P9 (DT-98/99): เห็นกันบนแผนที่ */
.dt-mapshare { margin: 10px 0; padding: 12px; border-radius: 14px; border: 2.5px solid var(--neon); background: #16204e; }
.dt-mapshare h3 { margin: 0 0 6px; }
.dt-mapshare small { font-size: 12.5px; }
.dt-paltag { pointer-events: none; padding: 2px 8px; border-radius: 999px; background: rgba(12, 18, 48, .86); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; border: 1.5px solid var(--neon); transform: translateY(4px); }
.dt-paltag.near { border-color: #ffc94d; font-size: 13px; padding: 1px 6px; }

/* DT-100/102: ตัวเลือกภาษา */
.dt-langsel { font: inherit; font-size: 13px; padding: 6px 10px; border-radius: 999px; border: 2px solid var(--neon); background: #16204e; color: #fff; }
#dt-login .dt-langsel { margin-top: 10px; }

/* P10 (DT-103): เหรียญรายสายพันธุ์ในสมุด */
.dt-medals { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.dt-medals .m { font-size: 20px; letter-spacing: 2px; }

/* P10 (DT-104): อากาศจริง */
.dt-wx { margin: 2px 0 8px; font-size: 13.5px; }

/* P10 (DT-105/106): ชมรม + ลีก */
.dt-club section { margin: 10px 0; padding: 12px; border-radius: 14px; border: 2.5px solid var(--neon); background: #16204e; }
.dt-club h3 { margin: 0 0 6px; }
.dt-goal { margin: 8px 0; }
.dt-goal .bar { height: 12px; border-radius: 999px; background: #0d1336; overflow: hidden; border: 1.5px solid #4a5bd6; }
.dt-goal .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #35f2ff, #a6ff4d); transition: width .4s; }
.dt-league li.me { border-color: #ffc94d; }
.dt-league li b.rk { min-width: 2.2em; display: inline-block; }
.dt-leaguelast { margin: 6px 0; }

/* สติกเกอร์ LINE ในร้าน */
.dt-stk { display: flex; align-items: center; gap: 10px; }
.dt-stk img { border-radius: 12px; background: #fff; flex: none; }

/* DT-107 ประหยัดแบต: ไม่วาดภาพเคลื่อนไหววนบนแผนที่ (หน้าต่างอื่นยังเคลื่อนไหวตามปกติ) */
.dt-saver #dt-map *, .dt-saver #dt-map *::before, .dt-saver #dt-map *::after { animation: none !important; }
/* ออกจากระบบ / ลบข้อมูลเกม ล่างสุดของแผง: แสดงเฉพาะตอนเข้าเกมแล้ว */
.dt-foot { display: flex; justify-content: space-between; gap: 12px; margin: 18px 4px 6px; padding-top: 12px; border-top: 1px solid var(--line); }
#dt-player[hidden] ~ .dt-foot { display: none; }
/* 📡 เน็ตหลุด */
.dt-offline { position: fixed; z-index: 30; left: 50%; top: calc(max(10px, env(safe-area-inset-top)) + 64px); transform: translateX(-50%); max-width: calc(100% - 32px); padding: 8px 14px; border-radius: 99px; background: #3a1630; color: #fff; border: 2px solid var(--pink); font-weight: 700; font-size: 14px; box-shadow: 0 4px 14px rgba(0,0,0,.4); text-align: center; }
.dt-offline[hidden] { display: none; }
/* 26 ต.ค. (Kelvin: ติดตั้งจาก dinotrak.com แล้วไม่ขึ้น GPS): ปุ่มเปิด GPS บนแผนที่ เมื่อยังไม่ได้เริ่ม (โดเมนใหม่ = ยังไม่เคยได้สิทธิ์ตำแหน่ง) */
.dt-gpsfab { position: fixed; z-index: 29; left: 50%; top: calc(max(10px, env(safe-area-inset-top)) + 112px); transform: translateX(-50%); max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 99px; background: var(--neon, #35f2ff); color: #10163a; border: 3px solid #10163a; font: inherit; font-weight: 800; font-size: 16px; box-shadow: 0 4px 0 #10163a, 0 6px 18px rgba(0,0,0,.45); cursor: pointer; }
.dt-gpsfab[hidden] { display: none; }
/* สำเร็จแล้ว (Kelvin 25 ต.ค. "ปรับกระดูกที่ขุดพบแล้ว และสัตว์ที่สงบสำเร็จแล้วให้มีเอฟเฟกต์แปลกตาขึ้น")
   ขุดแล้ว = ตัวที่ปลุกชีพในวงแสงทองหมุน + ลำแสง + ประกายลอยขึ้น · สงบแล้ว = ตัวนั้นในวงรุ้งหมุน + หัวใจลอยขึ้น · ป้ายเล็ก 🦴 / 💖 */
.dt-rift-m.done { filter: drop-shadow(0 0 8px rgba(255,201,77,.55)); }
.dt-rift-m.done::before { animation: dt-portal 3.2s linear infinite; filter: none; opacity: 1; }
.dt-rift-m.dug::before { background: conic-gradient(#ffc94d, #fff3c4, #ff9f1a, #fff3c4, #ffc94d); box-shadow: 0 0 16px 5px #ffc94d; }
.dt-rift-m.calm::before { background: conic-gradient(#ff4fb8, #ffc94d, #7cf2b0, #35f2ff, #b07cff, #ff4fb8); box-shadow: 0 0 16px 5px #ff8ad0; }
.dt-rift-m.calm { filter: drop-shadow(0 0 8px rgba(255,79,184,.55)); }
.dt-rift-m.dug .dt-art { animation: dt-relic 2.6s ease-in-out infinite; filter: sepia(.5) saturate(1.6) hue-rotate(-12deg) drop-shadow(0 0 6px #ffd76a); }
.dt-rift-m.calm .dt-art { animation: dt-bless 2.2s ease-in-out infinite; }
.dt-rift-m.done::after { content: ''; position: absolute; left: 50%; bottom: 10px; width: 14px; height: 52px; margin-left: -7px; border-radius: 7px; pointer-events: none;
  background: linear-gradient(to top, rgba(255,255,255,.75), rgba(255,255,255,0)); mix-blend-mode: screen; animation: dt-beam 2.6s ease-in-out infinite; }
.dt-rift-m.dug::after { background: linear-gradient(to top, rgba(255,215,106,.9), rgba(255,215,106,0)); }
.dt-rift-m.calm::after { width: 30px; margin-left: -15px; height: 30px; bottom: 44px; border-radius: 0; background: none; content: '💖 ✨'; font-size: 11px; white-space: nowrap; mix-blend-mode: normal; animation: dt-hearts 2.4s ease-out infinite; }
.dt-rift-m.dug.sel::after, .dt-rift-m.calm.sel::after { border: 0; }
.dt-donebadge { position: absolute; right: -2px; top: -4px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: #fff; border: 2px solid var(--ol); box-shadow: 0 2px 0 var(--ol); }
.dt-riftlist .e.dug { background: radial-gradient(circle, #fff3c4 0 45%, #ffc94d 70%, #ff9f1a); box-shadow: 0 0 10px #ffc94d, 0 2px 0 var(--ol); }
.dt-riftlist .e.calm { background: conic-gradient(#ff4fb8, #ffc94d, #7cf2b0, #35f2ff, #b07cff, #ff4fb8); box-shadow: 0 0 10px #ff8ad0, 0 2px 0 var(--ol); }
.dt-riftlist .e.dug img.dt-art, .dt-riftlist .e.dug .dt-art { filter: sepia(.5) saturate(1.6) hue-rotate(-12deg); }
@keyframes dt-relic { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-7px) rotate(3deg); } }
@keyframes dt-bless { 0%, 100% { transform: translateY(0) scale(1); } 40% { transform: translateY(-5px) scale(1.06, .96); } 60% { transform: translateY(-2px) scale(.97, 1.04); } }
@keyframes dt-beam { 0%, 100% { opacity: .35; transform: scaleY(.85); } 50% { opacity: 1; transform: scaleY(1.1); } }
@keyframes dt-hearts { 0% { opacity: 0; transform: translateY(8px) scale(.6); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(-22px) scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .dt-rift-m.done::before, .dt-rift-m.done::after, .dt-rift-m.dug .dt-art, .dt-rift-m.calm .dt-art { animation: none; } }

/* ── ภาพรวมคมชัดขึ้น + ร่องรอยโบราณเป็นรอยแยก (Kelvin 25 ต.ค. ภาพหน้าจอ) ──
   ภาพ 3 มิติมีขอบสติกเกอร์ขาว+เส้นนอกเข้มในตัวแล้ว (props3d.js sticker) → เลิกใช้ filter drop-shadow บนหมุด
   (filter บนหมุดที่มีลูกขยับ = เบราว์เซอร์มือถือวาดเป็นภาพความละเอียดต่ำแล้วยืด จึงเบลอ) · หมุดใหญ่ขึ้น 44 → 52 พิกเซล */
.dt-3dart .dt-rift-m, .dt-3dart .dt-rift-m.done, .dt-3dart .dt-rift-m.calm { filter: none; opacity: 1; } /* สำเร็จแล้วเคยจาง .55 */
.dt-3dart .dt-rift-m img.dt-art { filter: none; }
.dt-3dart .dt-rift-m.dug .dt-art { filter: sepia(.35) saturate(1.5) hue-rotate(-10deg); }
.dt-rift-m { width: 64px; height: 70px; }
.dt-rift-m .dt-art { left: 6px; width: 52px; height: 52px; }
.dt-rift-m.calm::after { bottom: 52px; }
.dt-print { width: 34px; height: 34px; filter: none; }
.dt-print .dt-art { width: 100%; height: 100%; }
/* ร่องรอยโบราณ: รอยแยกเรืองแสงสีตามประเภท + ป้ายสัญลักษณ์ (ตัวอักษรจริง คมทุกความละเอียด) */
.dt-trace-m { width: 46px; height: 54px; position: relative; filter: none; }
.dt-trace-m .dt-art { width: 46px; height: 46px; position: absolute; left: 0; bottom: 0; }
.dt-tsym { position: absolute; right: -8px; top: -6px; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2.5px solid var(--tc, #7fe8ff);
  display: grid; place-items: center; font-size: 13px; line-height: 1; box-shadow: 0 1px 3px rgba(0,0,0,.3); pointer-events: none; }
.dt-trace-m.cd .dt-art { filter: grayscale(.85); opacity: .6; }
.dt-trace-m.cd { opacity: 1; }
.dt-trace-m.sel { outline: 0; }
.dt-trace-m.sel::after { content: ''; position: absolute; left: -2px; right: -2px; bottom: -4px; height: 14px; border-radius: 50%; border: 3px solid var(--ol); }
.dt-tracelist .e { position: relative; overflow: visible; }
.dt-tracelist .dt-tsym { right: -4px; top: -4px; width: 18px; height: 18px; font-size: 10px; border-width: 2px; }

/* รายการสถานีใช้คลาส .dt-riftlist ร่วม → ปุ่มในแถวได้ width:100% + grid ของแถวไดโนเสาร์ไปด้วย
   (Kelvin 25 ต.ค. ภาพจอพับ: ปุ่ม 🧭 ยาวเต็มแถว · การ์ดรอยแยกใหญ่ข้อความแตกทีละคำ ปุ่ม "เข้าร่วม" ทับข้อความ) */
.dt-stationlist li { grid-template-columns: minmax(0, 1fr) auto auto; }
.dt-stationlist li > button, .dt-stationlist .dt-raidrow button { width: auto; display: inline-block; text-align: center; }
.dt-stationlist .dt-navmini { width: 44px; min-width: 44px; padding: 0; display: grid; place-items: center; grid-template-columns: none; }
.dt-stationlist .dt-raidrow span { flex: 1 1 auto; min-width: 0; line-height: 1.35; }

/* ตัวที่เลือกอยู่: เดิมเป็นวงขอบดำ (Kelvin 25 ต.ค. "แก้วงกลมสีดำใต้ไดโนเสาร์") → วงแสงฟ้าเรืองกะพริบช้า ๆ */
.dt-rift-m.sel:not(.done)::after, .dt-trace-m.sel::after { border: 3px solid #7cf2ff; background: radial-gradient(ellipse, rgba(53,242,255,.28), rgba(53,242,255,0) 70%);
  box-shadow: 0 0 10px 2px rgba(53,242,255,.75), inset 0 0 6px rgba(255,255,255,.6); animation: dt-selglow 1.6s ease-in-out infinite; }
@keyframes dt-selglow { 0%, 100% { opacity: .65; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .dt-rift-m.sel:not(.done)::after, .dt-trace-m.sel::after { animation: none; } }
.dt-print.sel { outline: 3px solid #7cf2ff; box-shadow: 0 0 10px rgba(53,242,255,.75); border-radius: 50%; }

/* ศูนย์ติดตามปรากฏการณ์บนแผนที่ (Kelvin 25 ต.ค. "แสดงสถานีวิจัยบน map"): เสาสัญญาณสีทีม + ป้าย 📡 / 🦖 (มีรอยแยกใหญ่) */
.dt-stn-m { width: 48px; height: 60px; position: relative; border: 0; padding: 0; background: none; cursor: pointer; }
.dt-stn-m .dt-art { width: 48px; height: 52px; position: absolute; left: 0; bottom: 0; }
.dt-stn-m::before { content: ''; position: absolute; left: 6px; right: 6px; bottom: -2px; height: 10px; border-radius: 50%; background: radial-gradient(ellipse, rgba(124,242,255,.45), rgba(124,242,255,0) 70%); }
.dt-stn-m.raid .dt-tsym { animation: dt-selglow 1s ease-in-out infinite; box-shadow: 0 0 10px #ff4fb8; border-color: #ff4fb8; }
.dt-stn-m.sel::after { content: ''; position: absolute; left: -2px; right: -2px; bottom: -6px; height: 14px; border-radius: 50%; border: 3px solid #7cf2ff; box-shadow: 0 0 10px 2px rgba(53,242,255,.75); animation: dt-selglow 1.6s ease-in-out infinite; }
.dt-stn-m.life > * { visibility: hidden; }
.dt-stationlist li.flash { animation: dt-stnflash 1.8s ease-out; border-radius: 10px; }
@keyframes dt-stnflash { 0%, 40% { background: rgba(53,242,255,.25); } 100% { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .dt-stn-m.raid .dt-tsym, .dt-stn-m.sel::after, .dt-stationlist li.flash { animation: none; } }

/* ป้ายสัญลักษณ์ที่ซ้อนกับป้ายของหมุดข้าง ๆ (declutter ใน dino.js) */
.dt-tsym.hid { visibility: hidden; }
/* แถวศูนย์: แตะชื่อ = แสดงบนแผนที่ · แถวที่เลือกอยู่เรืองฟ้า */
.dt-stationlist .dt-stninfo { cursor: pointer; border-radius: 8px; }
.dt-stationlist .dt-stninfo:focus-visible { outline: 2px solid #7cf2ff; }
.dt-stationlist li.sel { background: rgba(53,242,255,.12); box-shadow: inset 3px 0 0 #7cf2ff; border-radius: 10px; }

/* ── มินิเกมแบบ RPG (Kelvin 25 ต.ค.) ── */
/* ป้ายใหญ่กลางจอ (ชื่อด่าน คอมโบ ชนะ/แพ้) */
.fx-banner { position: fixed; z-index: 120; left: 50%; top: 34%; transform: translate(-50%, -50%); width: max-content; max-width: 92vw; text-align: center; pointer-events: none;
  padding: 12px 26px 14px; border-radius: 18px; background: linear-gradient(135deg, rgba(20,16,48,.92), rgba(48,18,70,.92)); border: 3px solid var(--bc, #ffc94d);
  box-shadow: 0 0 0 3px #0b0820, 0 0 30px var(--bc, #ffc94d), inset 0 0 18px rgba(255,255,255,.12); animation: fx-banner 1.8s cubic-bezier(.2,.9,.3,1.3) forwards; }
.fx-banner b { display: block; font: 900 clamp(22px, 7vw, 38px)/1.1 var(--f-display); color: #fff; letter-spacing: .5px;
  text-shadow: 0 3px 0 #0b0820, 0 0 14px var(--bc, #ffc94d); background: linear-gradient(#fff, var(--bc, #ffc94d)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.fx-banner small { display: block; margin-top: 4px; font: 700 14px/1.3 var(--f-body, inherit); color: #ffe9b0; }
@keyframes fx-banner { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.3) rotate(-6deg); } 14% { opacity: 1; transform: translate(-50%, -50%) scale(1.12) rotate(1deg); }
  22% { transform: translate(-50%, -50%) scale(1); } 82% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -60%) scale(.9); } }
/* แสงวาบทั้งจอ */
.fx-flash { position: fixed; inset: 0; z-index: 119; pointer-events: none; mix-blend-mode: screen; animation: fx-flash .35s ease-out forwards; }
@keyframes fx-flash { 0% { opacity: .85; } 100% { opacity: 0; } }
/* จอสั่นแรง (คำราม ข้ามด่าน แพ้) */
.fx-quake { animation: fx-quake .65s cubic-bezier(.36,.07,.19,.97); }
@keyframes fx-quake { 0%, 100% { transform: none; } 10% { transform: translate(-10px, 4px) rotate(-1.5deg); } 25% { transform: translate(9px, -5px) rotate(1.2deg); }
  40% { transform: translate(-7px, 3px) rotate(-.8deg); } 55% { transform: translate(6px, -2px); } 70% { transform: translate(-4px, 2px); } 85% { transform: translate(2px, -1px); } }

/* ด่านบอส: ออร่าสีของด่านหมุนรอบหน้าต่าง + แถบความดุร้าย + คอมโบ */
.dt-calm.boss { --bossc: #35f2ff; overflow: hidden; }
.dt-calm.boss::before { content: ''; position: absolute; inset: -40%; z-index: -1; pointer-events: none; opacity: .55;
  background: conic-gradient(from 0deg, transparent, var(--bossc), transparent 30%, var(--bossc) 50%, transparent 70%, var(--bossc), transparent); animation: dt-aura 6s linear infinite; filter: blur(30px); }
.dt-calm.boss[data-phase="3"]::before, .dt-calm.boss[data-phase="4"]::before, .dt-calm.boss[data-phase="5"]::before { animation-duration: 3s; opacity: .7; }
@keyframes dt-aura { to { transform: rotate(360deg); } }
.dt-boss { margin: 4px 0 8px; padding: 10px 12px; border-radius: 14px; background: rgba(8,6,28,.72); border: 2px solid var(--bossc, #35f2ff); box-shadow: 0 0 16px var(--bossc, #35f2ff); }
.dt-bosshead { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.dt-bosshead b { font: 800 16px/1.2 var(--f-display); color: #fff; }
.dt-bossphase { font: 800 13px/1 var(--f-display); color: var(--bossc, #35f2ff); white-space: nowrap; letter-spacing: 1px; }
.dt-bossbar { position: relative; height: 16px; margin-top: 6px; border-radius: 9px; background: #1a1438; border: 2px solid #0b0820; overflow: hidden; }
.dt-bossbar > * { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; border-radius: 7px; transition: width .25s ease-out; }
.dt-bossbar i { background: #ffe9b0; transition-duration: .8s; }
.dt-bossbar span { background: linear-gradient(90deg, #ff3d6e, #ff9f1a, #ffd34d); box-shadow: inset 0 -4px 0 rgba(0,0,0,.25), 0 0 10px #ff6b3d; }
.dt-bossrow { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; font: 700 12px/1 var(--f-display); color: #c9c3ff; }
.dt-bosscombo { color: #ffd34d; font-size: 16px; text-shadow: 0 0 8px #ff9f1a; }
.dt-bosscombo.hot { animation: dt-hot .5s ease-in-out infinite alternate; color: #fff3a0; }
@keyframes dt-hot { from { transform: scale(1); } to { transform: scale(1.18); } }
.dt-feedback.perfect { color: #ffe680; font-size: 22px; text-shadow: 0 0 12px #ffb300; }
@media (prefers-reduced-motion: reduce) { .fx-banner, .fx-quake, .dt-calm.boss::before, .dt-bosscombo.hot { animation-duration: .01s; animation-iteration-count: 1; } }

/* มินิเกมสแกน (เรดาร์) / ประจำการ (ซิงค์ดาวเทียม) — games.js */
.dt-game { --gc: #35f2ff; overflow: hidden; }
.dt-game::before { content: ''; position: absolute; inset: -40%; z-index: -1; pointer-events: none; opacity: .45; filter: blur(34px);
  background: conic-gradient(from 0deg, transparent, var(--gc), transparent 35%, var(--gc) 60%, transparent 80%); animation: dt-aura 7s linear infinite; }
.dt-gamestage { display: grid; place-items: center; gap: 10px; margin: 8px 0; touch-action: none; user-select: none; -webkit-user-select: none; }
.dt-gtime { width: 100%; height: 8px; border-radius: 4px; background: #1a1438; overflow: hidden; }
.dt-gtime span { display: block; height: 100%; background: linear-gradient(90deg, var(--gc), #fff); transform-origin: left; }
.dt-radar { position: relative; width: min(260px, 70vw); aspect-ratio: 1; border-radius: 50%; cursor: pointer;
  background: radial-gradient(circle, rgba(255,255,255,.08) 0 1px, transparent 2px) 0 0 / 22px 22px, radial-gradient(circle at 50% 50%, #12304a, #0a1428 70%);
  border: 4px solid var(--gc); box-shadow: 0 0 24px var(--gc), inset 0 0 30px rgba(0,0,0,.6); }
.dt-radar::before, .dt-radar::after { content: ''; position: absolute; inset: 22%; border-radius: 50%; border: 1px dashed rgba(124,242,255,.35); }
.dt-radar::after { inset: 44%; }
.dt-radar .sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(124,242,255,.0) 0deg, rgba(124,242,255,.0) 300deg, rgba(124,242,255,.55) 355deg, #fff 360deg); }
.dt-radar .core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 30px; filter: drop-shadow(0 0 8px var(--gc)); }
.dt-radar .mark { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px; display: grid; place-items: center; border-radius: 50%;
  transform: rotate(var(--a)) translateY(-36%) translateY(calc(min(260px, 70vw) * -0.33)) rotate(calc(var(--a) * -1)); font: 900 20px/1 serif; color: #9fe9ff;
  background: rgba(8,20,40,.8); border: 2px solid rgba(124,242,255,.5); transition: transform .2s, box-shadow .2s; }
.dt-radar .mark.near { box-shadow: 0 0 18px #7cf2ff; border-color: #fff; color: #fff; }
.dt-radar .mark.on { background: radial-gradient(circle, #fff3a0, #ffc94d); color: #5a3a00; border-color: #fff; box-shadow: 0 0 22px #ffd34d; }
.dt-radar.open { animation: dt-radaropen .7s ease-out forwards; }
@keyframes dt-radaropen { 50% { transform: scale(1.12); box-shadow: 0 0 60px #fff, 0 0 120px var(--gc); } 100% { transform: scale(1); } }
.dt-sync { position: relative; display: flex; align-items: flex-end; gap: 18px; }
.dt-sync .meter { position: relative; width: 46px; height: 200px; border-radius: 23px; background: #120e2e; border: 3px solid var(--gc); overflow: hidden; box-shadow: 0 0 16px var(--gc); }
.dt-sync .meter .zone { position: absolute; left: 0; right: 0; background: rgba(124,255,160,.35); border-top: 2px solid #7dffc4; border-bottom: 2px solid #7dffc4; }
.dt-sync .meter .fill { position: absolute; left: 4px; right: 4px; bottom: 4px; border-radius: 18px; background: linear-gradient(to top, var(--gc), #fff); box-shadow: 0 0 14px var(--gc); }
.dt-sync .meter.inzone { box-shadow: 0 0 26px #7dffc4; border-color: #7dffc4; }
.dt-sync .dish { font-size: 64px; filter: drop-shadow(0 0 12px var(--gc)); transition: transform .2s; }
.dt-sync.charging .dish { animation: dt-dishhum .15s linear infinite alternate; }
@keyframes dt-dishhum { from { transform: translate(-1px, 1px) rotate(-3deg); } to { transform: translate(1px, -1px) rotate(3deg); } }
.dt-sync .dish.beam::after { content: ''; position: absolute; left: 50%; bottom: 100%; width: 26px; height: 60vh; margin-left: -13px; pointer-events: none;
  background: linear-gradient(to top, var(--gc), transparent); opacity: 0; animation: dt-beam .8s ease-out; }
.dt-sync .dish { position: relative; }
@keyframes dt-beam { 0% { opacity: .95; transform: scaleX(1.6); } 100% { opacity: 0; transform: scaleX(.3); } }
.dt-syncbtn { min-width: 220px; min-height: 56px; font-size: 18px; touch-action: none; user-select: none; -webkit-user-select: none; }
.dt-gamereward { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.dt-gcard { width: 96px; padding: 10px 6px 8px; border-radius: 14px; text-align: center; background: linear-gradient(#262f68, #1d2556); border: 2.5px solid #6f7cff;
  box-shadow: 0 4px 0 #0b0820, 0 0 14px rgba(111,124,255,.5); opacity: 0; animation: dt-cardin .55s cubic-bezier(.2,.9,.3,1.4) forwards; }
.dt-gcard .ic { display: grid; place-items: center; height: 48px; font-size: 34px; }
.dt-gcard .ic .dt-art { width: 46px; height: 46px; }
.dt-gcard b { display: block; margin-top: 4px; font: 700 13px/1.2 var(--f-display); color: #fff; }
.dt-gcard.gold { border-color: #ffd34d; background: linear-gradient(#5a3a10, #2a1a08); box-shadow: 0 4px 0 #0b0820, 0 0 26px #ffc94d; }
@keyframes dt-cardin { 0% { opacity: 0; transform: translateY(30px) rotateY(90deg) scale(.6); } 100% { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .dt-game::before, .dt-radar.open, .dt-gcard, .dt-sync.charging .dish { animation-duration: .01s; animation-iteration-count: 1; } }

/* Kelvin 25 ต.ค. "ศูนย์และรอยแยกใหญ่ขึ้น": เสาศูนย์ 48 → 66 px · รอยแยกร่องรอย 46 → 62 px · ป้ายสัญลักษณ์ 24 → 30 px */
.dt-stn-m { width: 66px; height: 80px; }
.dt-stn-m .dt-art { width: 66px; height: 72px; }
.dt-trace-m { width: 62px; height: 72px; }
.dt-trace-m .dt-art { width: 62px; height: 62px; }
.dt-trace-m .dt-tsym, .dt-stn-m .dt-tsym { width: 30px; height: 30px; font-size: 16px; right: -10px; top: -8px; border-width: 3px; }

/* ── 📷 AR กล้อง (P12a · ar.js) เต็มจอ: ภาพกล้อง + 3 มิติซ้อน + ป้ายชื่อ + เรดาร์ + ปุ่มถ่าย ── */
.dt-ar { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: radial-gradient(circle at 50% 40%, #1b2a66, #070b1f); color: #fff; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.dt-ar::backdrop { background: #000; }
.dt-ar video#dt-arvideo, .dt-ar #dt-arcanvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dt-ar video.mirror { transform: scaleX(-1); }
.dt-arlabels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.dt-artag { position: absolute; left: 0; top: 0; padding: 3px 9px; border-radius: 999px; background: rgba(8,14,40,.7); border: 2px solid rgba(255,255,255,.55); font: 700 12px/1.3 inherit; white-space: nowrap; max-width: 62vw; overflow: hidden; text-overflow: ellipsis; transition: background .2s, border-color .2s; }
.dt-artag.k-dino { border-color: #ff4fb8; } .dt-artag.k-station { border-color: #35f2ff; } .dt-artag.k-trace { border-color: #ffc94d; } .dt-artag.k-player { border-color: #7dff9a; }
.dt-artag.focus { background: rgba(255,79,184,.85); border-color: #fff; box-shadow: 0 0 16px rgba(255,79,184,.8); font-size: 13px; }
.dt-artop { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 10px; padding: max(12px, env(safe-area-inset-top)) 16px 8px; background: linear-gradient(rgba(0,0,0,.55), transparent); }
.dt-arhint { flex: 1; font-size: 13px; font-weight: 700; text-shadow: 0 1px 3px #000; }
.dt-arbtn { width: 48px; height: 48px; border-radius: 50%; border: 3px solid rgba(255,255,255,.85); background: rgba(8,14,40,.6); color: #fff; font-size: 22px; flex: none; cursor: pointer; }
.dt-arbtn[aria-pressed="true"] { background: linear-gradient(#ff8ad0, #ff4fb8); }
#dt-arrec.on { background: #e8263a; font-size: 15px; font-weight: 800; animation: dt-arpulse 1s infinite; }
@keyframes dt-arpulse { 50% { box-shadow: 0 0 0 8px rgba(232,38,58,.35); } }
.dt-arradar { position: absolute; left: 16px; bottom: calc(120px + env(safe-area-inset-bottom)); width: 96px; height: 96px; pointer-events: none; }
.dt-arbar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; align-items: center; gap: 34px; padding: 14px 16px calc(30px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.dt-arshot { width: 76px; height: 76px; border-radius: 50%; border: 6px solid #fff; background: radial-gradient(circle, #fff 55%, #35f2ff 56%, #35f2ff 62%, transparent 63%); box-shadow: 0 0 18px rgba(53,242,255,.7); cursor: pointer; }
.dt-arshot:active { transform: scale(.92); }
.dt-arnote { position: absolute; left: 0; right: 0; bottom: calc(6px + env(safe-area-inset-bottom)); margin: 0; text-align: center; font-size: 10.5px; opacity: .75; pointer-events: none; }
.dt-armsg { position: absolute; left: 16px; right: 16px; top: calc(72px + env(safe-area-inset-top)); margin: 0; padding: 10px 12px; border-radius: 12px; background: rgba(8,14,40,.82); border: 2px solid #ffc94d; font-size: 13px; }
.dt-arresult { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 16px; background: rgba(4,8,24,.92); }
.dt-arresult[hidden] { display: none; }
.dt-arresult img, .dt-arresult video { max-width: 100%; max-height: 68vh; border-radius: 14px; border: 3px solid #35f2ff; box-shadow: 0 0 24px rgba(53,242,255,.5); }
.dt-arres-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.dt-arres-btns .dt-btn { width: auto; margin: 0; padding-left: 18px; padding-right: 18px; }

/* เล่นตัวอย่าง (games.js practice) */
.dt-practice { position: relative; display: grid; place-items: center; height: 210px; cursor: pointer; touch-action: manipulation; }
.dt-practice .pic { width: 150px; height: 150px; display: grid; place-items: center; font-size: 96px; }
.dt-practice .pic svg, .dt-practice .pic img { width: 100%; height: 100%; }
.dt-practice .pic.calm { animation: dt-pcalm .45s ease; }
@keyframes dt-pcalm { 40% { transform: scale(1.08) rotate(-4deg); filter: drop-shadow(0 0 14px #ff8ad0); } }
.dt-practice .heart { position: absolute; right: 18%; top: 14px; font-size: 42px; color: #ff4fb8; text-shadow: 0 0 14px rgba(255,79,184,.8); }
.dt-practice .heart.beat { animation: dt-pbeat .32s ease-out; }
@keyframes dt-pbeat { 30% { transform: scale(1.45); } }
.dt-coachbtns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.dt-coachbtns .dt-btn { width: auto; flex: 1 1 140px; margin: 0; }

/* แผนด่วน 1,000 ผู้เล่น: ตัวนับเหรียญผู้บุกเบิก + ป้ายในการ์ดผู้เล่น */
.dt-pioneer { margin: 4px 0 8px; padding: 8px 12px; border-radius: 12px; background: linear-gradient(90deg, rgba(255,201,77,.22), rgba(255,79,184,.14)); border: 2px solid #ffc94d; font-weight: 700; font-size: 13.5px; }
.dt-piobadge { display: inline-block; padding: 1px 8px; border-radius: 999px; background: linear-gradient(#ffe08a, #ffc94d); color: #4a2c00; font-weight: 800; font-size: 12px; border: 2px solid #fff; }

/* หน้าโหลดมีโลโก้ค่าย AaiixZ (เลขา 25 ต.ค. งานค่ายเกม AaiixZ ข้อ 1) — ไม่บังการแตะ หายเองใน ~1.5 วิ */
.dt-splash { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #1b2a66, #070b1f); pointer-events: none; transition: opacity .5s ease, visibility .5s; }
.dt-splash.out { opacity: 0; visibility: hidden; }
.dt-splash .sp-in { display: grid; justify-items: center; gap: 6px; animation: dt-spin .7s cubic-bezier(.2,1.3,.4,1) both; }
.dt-splash .sp-aaiixz { font: 800 46px/1 inherit; color: #ffc93c; letter-spacing: 1px; -webkit-text-stroke: 6px #5a3110; paint-order: stroke fill; text-shadow: 0 5px 0 #5a3110; }
.dt-splash .sp-pres { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: #cfd8ff; margin-bottom: 12px; }
.dt-splash img { filter: drop-shadow(0 0 18px rgba(53,242,255,.6)); }
.dt-splash .sp-dino { font-size: 30px; color: #fff; text-shadow: 0 0 14px rgba(53,242,255,.7); }
.dt-splash .sp-tag { font-size: 13px; color: #9fb0e8; }
@keyframes dt-spin { from { transform: scale(.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .dt-splash .sp-in { animation: none; } }

/* P14 ร้านพาร์ตเนอร์ + วันไดโน */
.dt-shop-m { display: flex; align-items: center; gap: 4px; padding: 3px 9px 3px 4px; border-radius: 999px; border: 2px solid #fff; background: linear-gradient(#ffe08a, #ffc94d); color: #3a2400; font: 800 12px/1 inherit; box-shadow: 0 3px 0 #7a4a00, 0 0 12px rgba(255,201,77,.6); cursor: pointer; max-width: 150px; }
.dt-shop-m .ic { font-size: 18px; }
.dt-shop-m .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-shop-m.t-center { background: linear-gradient(#a8f6ff, #35f2ff); box-shadow: 0 3px 0 #0d5b66, 0 0 12px rgba(53,242,255,.6); }
.dt-shop-m.rare { animation: dt-arpulse 1.2s infinite; }
.dt-shopcard { display: grid; gap: 3px; color: #1a1f33; font-size: 13px; }
.dt-shopcard .cp { margin: 4px 0; padding: 6px 8px; border-radius: 8px; background: #fff3c4; border: 1px dashed #c98a00; font-weight: 700; }
.dt-dinoday { border-color: #ff4fb8 !important; background: linear-gradient(90deg, rgba(255,79,184,.18), rgba(53,242,255,.12)); font-weight: 700; font-size: 13.5px; }
.dt-dinoday.live { box-shadow: 0 0 16px rgba(255,79,184,.5); }

/* P12b ยืนบนพื้นจริง (WebXR immersive-ar) */
.dt-arfloor { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(118px + env(safe-area-inset-bottom)); padding: 10px 18px; border-radius: 99px; border: 3px solid #10163a; background: #7dff9a; color: #10163a; font: inherit; font-weight: 800; font-size: 15px; box-shadow: 0 4px 0 #10163a, 0 6px 16px rgba(0,0,0,.4); cursor: pointer; }
.dt-arfloor[hidden] { display: none; }
.dt-arxr { position: fixed; inset: 0; z-index: 60; color: #fff; pointer-events: none; }
.dt-arxr[hidden] { display: none; }
.dt-arxr button { pointer-events: auto; }
.dt-arxrbar { position: absolute; left: 0; right: 0; bottom: calc(34px + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 0 12px; }
