/* 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-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; }
/* สำเร็จแล้ว (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%; }
