/* DinoTrak P2 — จอเครื่องตามรอย: แผนที่เต็มจอ + แถบบน + แผงสถานะล่าง · ธีมสมุดภาคสนาม */
:root { --bg: #eef1ea; --card: #fff; --ink: #1d2a28; --muted: #5a6763; --line: #d4dbd2; --accent: #2f6b55; --amber: #a3620a; --bad: #a3402e; --rift: #2fb3a8;
  --r-common: #2fb3a8; --r-uncommon: #c98a1b; --r-rare: #9b4fc4; }
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 system-ui, "Noto Sans Thai", "Sarabun", sans-serif; }
/* แผนที่เป็น flex item (ไม่ absolute) เพราะ maplibre-gl.css ตั้ง .maplibregl-map { position: relative } ทับ · แถบบนลอยทับแผนที่ แผงล่างอยู่ใต้แผนที่ */
.dt-app { position: relative; height: 100%; display: flex; flex-direction: column; }
#dt-map { flex: 1 1 auto; min-height: 160px; position: relative; background: #e6e3d6; }
.dt-map .maplibregl-ctrl-attrib { font-size: 10px; }
.dt-mapmsg { position: absolute; left: 16px; right: 16px; top: 50%; margin: 0; padding: 10px 14px; border-radius: 10px; background: rgba(255,255,255,.92); color: var(--bad); font-size: 14px; text-align: center; transform: translateY(-50%); }
.dt-top { position: absolute; left: 0; right: 0; top: 0; z-index: 2; display: flex; gap: 10px; align-items: center; padding: max(10px, env(safe-area-inset-top)) 12px 10px; background: linear-gradient(rgba(238,241,234,.96), rgba(238,241,234,.82) 80%, rgba(238,241,234,0)); }
.dt-logo { width: 40px; height: 40px; display: block; flex: none; }
.dt-title { display: grid; line-height: 1.2; flex: 1; min-width: 0; }
.dt-title b { font-size: 20px; }
.dt-title span { font-size: 12px; color: var(--muted); }
.dt-icon { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--muted); font-size: 20px; cursor: pointer; flex: none; }
.dt-icon[aria-pressed="true"] { color: #fff; background: var(--accent); border-color: var(--accent); }
.dt-sheet { position: relative; z-index: 2; flex: none; background: rgba(255,255,255,.94); border-top: 1px solid var(--line); border-radius: 16px 16px 0 0; padding: 12px 16px max(14px, env(safe-area-inset-bottom)); display: grid; gap: 10px; backdrop-filter: blur(6px); }
.dt-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.dt-card h2 { margin: 0 0 4px; font-size: 17px; }
.dt-card p { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.dt-row { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: 14px; }
.dt-row b { font-family: ui-monospace, monospace; }
.dt-dim { color: var(--muted); font-size: 12px; }
.dt-link { margin-left: auto; border: 0; background: none; color: var(--accent); font: inherit; font-size: 13px; cursor: pointer; padding: 0; }
.dt-btn { display: block; width: 100%; min-height: 44px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.dt-btn:focus-visible, .dt-icon:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.dt-ghost { background: transparent; color: var(--accent); border: 1px solid var(--line); }
.dt-retry { width: auto; min-width: 140px; margin: 0; padding: 0 20px; justify-self: start; }
.dt-status { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 0; font-size: 13px; }
.dt-status dt { color: var(--muted); }
.dt-status dd { margin: 0; }
.dt-status dd.ok { color: var(--accent); }
.dt-status dd.warn { color: var(--amber); }
.dt-status dd.err { color: var(--bad); }
.dt-msg { margin: 0; min-height: 1.4em; font-size: 13px; color: var(--muted); }
.dt-msg.err { color: var(--bad); }
.dt-msg:empty { display: none; }
.dt-credit { margin: 0; font-size: 11px; color: var(--muted); }
.dt-credit a { color: inherit; }
/* tracker on the map */
.dt-me { width: 22px; height: 22px; border-radius: 50%; background: var(--rift); border: 3px solid #fff; box-shadow: 0 0 0 2px rgba(47,179,168,.45), 0 2px 8px rgba(0,0,0,.35); }
.dt-me.stale { background: #9aa6a3; }
/* P2: rifts on the map + the nearby list + one rift card */
.dt-rift-m { width: 38px; height: 38px; border-radius: 50%; border: 3px solid #fff; background: var(--rc, var(--r-common)); display: grid; place-items: center; font-size: 19px; padding: 0; cursor: pointer;
  box-shadow: 0 0 0 0 var(--rc, var(--r-common)), 0 2px 8px rgba(0,0,0,.35); animation: dt-rift 2.4s ease-out infinite; }
.dt-rift-m.sel { outline: 3px solid var(--ink); outline-offset: 2px; }
.dt-rift-m.done { animation: none; opacity: .55; filter: grayscale(.6); }
.r-common { --rc: var(--r-common); } .r-uncommon { --rc: var(--r-uncommon); } .r-rare { --rc: var(--r-rare); }
@keyframes dt-rift { 0% { box-shadow: 0 0 0 0 var(--rc), 0 2px 8px rgba(0,0,0,.35); } 70% { box-shadow: 0 0 0 16px transparent, 0 2px 8px rgba(0,0,0,.35); } 100% { box-shadow: 0 0 0 0 transparent, 0 2px 8px rgba(0,0,0,.35); } }
.dt-near h2, .dt-rift h2 { font-size: 16px; }
.dt-riftlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dt-riftlist button { width: 100%; min-height: 44px; display: grid; grid-template-columns: 32px 1fr auto; gap: 8px; align-items: center; text-align: left; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font: inherit; font-size: 14px; padding: 4px 10px; cursor: pointer; }
.dt-riftlist .e { width: 30px; height: 30px; border-radius: 50%; background: var(--rc); display: grid; place-items: center; font-size: 16px; }
.dt-riftlist .n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-riftlist .d { font-size: 12px; color: var(--muted); text-align: right; white-space: nowrap; }
.dt-riftlist .ok { color: var(--accent); font-weight: 600; }
.dt-empty, .dt-hint { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.dt-hint:empty { display: none; }
.dt-rifthead { display: flex; gap: 10px; align-items: flex-start; }
.dt-rifthead > div { flex: 1; min-width: 0; }
.dt-rifthead h2 { margin: 0; }
.dt-riftemoji { width: 44px; height: 44px; border-radius: 50%; background: var(--rc, var(--r-common)); display: grid; place-items: center; font-size: 24px; flex: none; }
.dt-sci { margin: 0 !important; font-style: italic; font-size: 12px !important; }
.dt-x { margin-left: auto; font-size: 18px; min-width: 32px; min-height: 32px; }
.dt-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 !important; }
.dt-chip { font-size: 12px; padding: 2px 8px; border-radius: 99px; background: var(--bg); color: var(--ink); border: 1px solid var(--line); }
.dt-chip.rarity { color: #fff; border-color: transparent; background: var(--rc); }
.dt-rift .dt-status { margin-bottom: 10px; }
.dt-btn:disabled { background: #b9c4bf; cursor: not-allowed; }
/* dialogs: calming mini-game + tracker's log */
.dt-dialog { width: min(420px, calc(100% - 32px)); max-height: calc(100% - 32px); border: 0; border-radius: 16px; padding: 18px 16px; background: var(--card); color: var(--ink); box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.dt-dialog::backdrop { background: rgba(20,32,30,.55); }
.dt-dialog h2 { margin: 0 0 4px; font-size: 18px; }
.dt-calm { text-align: center; }
.dt-heart { position: relative; width: 190px; height: 190px; margin: 18px auto 8px; display: grid; place-items: center; border-radius: 50%; border: 0; background: radial-gradient(circle, #fdeee9 0 55%, #f6d8cf 56% 100%); cursor: pointer; touch-action: manipulation; user-select: none; -webkit-tap-highlight-color: transparent; }
.dt-heart:disabled { cursor: default; opacity: .7; }
.dt-heartcore { font-size: 64px; transition: transform .08s; }
.dt-heart.beat .dt-heartcore { transform: scale(1.22); }
.dt-ring { position: absolute; inset: 40px; border-radius: 50%; border: 4px solid var(--rc, var(--r-common)); pointer-events: none; animation: dt-shrink var(--lead, 700ms) linear forwards; }
@keyframes dt-shrink { from { transform: scale(2.1); opacity: .25; } to { transform: scale(1); opacity: 1; } }
.dt-feedback { min-height: 1.5em; margin: 0; font-weight: 600; }
.dt-feedback.hit { color: var(--accent); } .dt-feedback.miss { color: var(--amber); }
.dt-calmresult { min-height: 1.5em; margin: 6px 0 12px; }
.dt-calmresult.win { color: var(--accent); font-weight: 700; } .dt-calmresult.lose { color: var(--bad); }
.dt-calmbtns { display: grid; gap: 8px; }
.dt-draft { margin: 4px 0 10px; padding: 6px 10px; border-radius: 8px; background: #fbf1dc; color: var(--amber); font-size: 13px; }
.dt-dexlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dt-dexlist li { display: grid; grid-template-columns: 40px 1fr; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.dt-dexlist .e { width: 40px; height: 40px; border-radius: 50%; background: var(--rc); display: grid; place-items: center; font-size: 22px; }
.dt-dexlist li.unseen .e { background: #cfd6d2; filter: grayscale(1); }
.dt-dexlist b { display: block; font-size: 14px; }
.dt-dexlist i, .dt-dexlist small { display: block; font-size: 12px; color: var(--muted); }
.dt-dexlist p { margin: 4px 0 0; font-size: 12px; color: var(--ink); }
/* P2b: footprints of rare rifts, digging */
.dt-print { width: 24px; height: 24px; border: 0; padding: 0; background: none; font-size: 18px; cursor: pointer; filter: drop-shadow(0 1px 2px rgba(0,0,0,.45)); opacity: .9; }
.dt-print.sel { outline: 2px solid var(--ink); border-radius: 50%; }
.dt-chip.hot { background: #fde7c8; border-color: #f2c784; }
.dt-dig { text-align: center; }
.dt-digbar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin: 8px 0 10px; }
.dt-digbar span { display: block; height: 100%; width: 100%; background: var(--amber); transform-origin: left; }
.dt-diggrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; touch-action: none; user-select: none; -webkit-user-select: none; max-width: 300px; margin: 0 auto; }
.dt-diggrid button { aspect-ratio: 1; border: 0; border-radius: 6px; padding: 0; font-size: 20px; cursor: pointer; color: transparent; -webkit-tap-highlight-color: transparent; }
.dt-diggrid .d2 { background: #7a5634; } .dt-diggrid .d1 { background: #a97c50; } .dt-diggrid .d0 { background: #e3d2b4; }
.dt-diggrid .d1.hint { background: #c9a77c; box-shadow: inset 0 0 0 2px #f1e5cf; }
.dt-diggrid .bone { background: #f4ecd9; color: inherit; } .dt-diggrid .crack { background: #e9c9bd; color: inherit; }
/* P3: cartoon art (art.js), traces, the bag, eggs, item use */
.dt-art { display: block; width: 100%; height: 100%; }
.dt-rift-m .dt-art { width: 30px; height: 30px; }
.dt-riftlist .e .dt-art, .dt-dexlist .e .dt-art { width: 28px; height: 28px; }
.dt-dexlist .e .dt-art { width: 36px; height: 36px; }
.dt-riftemoji .dt-art { width: 40px; height: 40px; }
.dt-dexlist li.unseen .e .dt-art { filter: brightness(0) opacity(.35); }
.dt-heartcore .dt-art { width: 72px; height: 72px; }
.dt-trace-m { width: 30px; height: 36px; border: 0; padding: 0; background: none; cursor: pointer; filter: drop-shadow(0 2px 3px rgba(0,0,0,.4)); }
.dt-trace-m.cd { opacity: .55; }
.dt-trace-m.sel { outline: 2px solid var(--ink); border-radius: 8px; }
.dt-tracelist .e { background: #e8dfc8; }
.dt-tracelist .e .dt-art { width: 26px; height: 30px; }
.dt-tracelist .scan { grid-column: 3; min-height: 34px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--amber); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.dt-tracelist .scan:disabled { background: #cbbfa6; cursor: not-allowed; }
.dt-tracelist .scan.special { background: var(--r-rare); }
.dt-tracelist button.row { grid-template-columns: 32px 1fr auto; }
.dt-tracelist li { display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: center; }
.dt-badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; padding: 0 4px; }
.dt-icon { position: relative; }
.dt-use { display: grid; gap: 4px; margin: 0 0 10px; font-size: 13px; }
.dt-usebtns { display: flex; flex-wrap: wrap; gap: 6px; }
.dt-usebtns button { display: inline-flex; align-items: center; gap: 4px; min-height: 34px; padding: 2px 10px 2px 4px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.dt-usebtns button .dt-art { width: 24px; height: 24px; }
.dt-usebtns button[aria-pressed="true"] { border-color: var(--accent); background: #e4f0ea; }
.dt-bag h3 { margin: 12px 0 6px; font-size: 15px; }
.dt-items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.dt-item { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; border: 1px solid var(--line); border-radius: 10px; font-size: 12px; text-align: center; }
.dt-item .dt-art { width: 36px; height: 36px; }
.dt-item b { font-size: 15px; }
.dt-item.none { opacity: .45; }
.dt-egglist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dt-egglist li { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.dt-egglist .dt-art { width: 44px; height: 44px; }
.dt-egglist .bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 4px; }
.dt-egglist .bar span { display: block; height: 100%; background: var(--rift); }
.dt-egglist small { display: block; font-size: 12px; color: var(--muted); }
.dt-egglist .inc { min-height: 34px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.dt-egglist .inc:disabled { background: #b9c4bf; }
.dt-egglist li.warm { border-color: var(--rift); }
.dt-hatched { margin: 0 0 6px; padding: 8px 10px; border-radius: 8px; background: #e4f0ea; color: var(--accent); font-weight: 600; font-size: 13px; }
/* P4: consent, missions, reports, delete */
.dt-row2 { margin-top: 6px; }
.dt-chipbtn { min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--bg); color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; }
.dt-chipbtn.ready { border-color: var(--amber); background: #fdf0d8; font-weight: 600; }
.dt-danger { color: var(--bad); }
.dt-report { margin-top: 6px; font-size: 12px; color: var(--muted); }
.dt-consent p, .dt-del p { margin: 6px 0; font-size: 14px; }
.dt-q { margin: 10px 0 6px; font-size: 14px; font-weight: 600; display: block; }
.dt-ages, .dt-kinds { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.dt-ages button, .dt-kinds button { min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.dt-ages button[aria-checked="true"], .dt-kinds button[aria-checked="true"] { border-color: var(--accent); background: #e4f0ea; font-weight: 600; }
.dt-check { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0; font-size: 14px; }
.dt-check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; }
.dt-input, .dt-reportdlg textarea { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; font: inherit; margin-bottom: 8px; }
.dt-btnbad { background: var(--bad); }
.dt-misslist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dt-misslist li { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.dt-misslist b { font-size: 14px; }
.dt-misslist small { display: block; color: var(--muted); font-size: 12px; }
.dt-misslist .bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 4px; }
.dt-misslist .bar span { display: block; height: 100%; background: var(--amber); }
.dt-misslist .claim { min-height: 34px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--amber); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.dt-misslist .claim:disabled { background: #cbbfa6; }
.dt-misslist li.bonus { border-style: dashed; }
/* P5: ร้านค้า (DT-50) · ติดตั้งเป็นแอป (DT-54) */
.dt-gembtn { width: auto; min-width: 40px; padding: 0 10px; border-radius: 20px; font-size: 15px; display: inline-flex; align-items: center; gap: 4px; color: var(--ink); }
.dt-gembtn span { font-weight: 600; font-size: 14px; }
.dt-gemline { margin: 0 0 2px; font-size: 16px; }
.dt-shoplist { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.dt-shoplist li { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.dt-shoplist b { font-size: 14px; }
.dt-shoplist small { display: block; color: var(--muted); font-size: 12px; }
.dt-shoplist button { min-height: 38px; min-width: 76px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--accent); color: #fff; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.dt-shoplist button:disabled { background: #b9c4bd; cursor: default; }
.dt-packs button { background: var(--amber); }
.dt-shoplist li.owned { opacity: .7; }
a.dt-chipbtn { text-decoration: none; color: inherit; display: inline-flex; align-items: center; }
/* P6: เพื่อน ทีม สถานีวิจัย รอยแยกใหญ่ อีเวนต์ (DT-60…66) */
:root { --t-field: #2f7d4f; --t-lab: #2f62a3; --t-museum: #a3620a; }
.dt-myname { font-size: 13px; }
.dt-team { display: inline-block; padding: 0 8px; border-radius: 99px; color: #fff; font-size: 12px; line-height: 20px; }
.dt-team.field { background: var(--t-field); } .dt-team.lab { background: var(--t-lab); } .dt-team.museum { background: var(--t-museum); }
.dt-event { padding: 8px 12px; }
.dt-eventhead { display: flex; gap: 8px; align-items: baseline; width: 100%; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.dt-eventhead b { flex: 1; font-size: 14px; }
.dt-event p { margin: 6px 0 0; font-size: 14px; }
.dt-teampick .dt-teams { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 8px; }
.dt-teams button { min-height: 44px; border: 0; border-radius: 10px; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.dt-teams [data-team="field"] { background: var(--t-field); } .dt-teams [data-team="lab"] { background: var(--t-lab); } .dt-teams [data-team="museum"] { background: var(--t-museum); }
.dt-stationlist li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.dt-stationlist li:last-child { border-bottom: 0; }
.dt-stationlist li > div:first-child b { font-size: 14px; }
.dt-stationlist li > button { min-height: 38px; min-width: 88px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--accent); color: #fff; font: inherit; font-weight: 600; white-space: nowrap; cursor: pointer; }
.dt-stationlist li > button:disabled { background: #b9c4bd; cursor: default; }
.dt-raidrow span { min-width: 0; }
.dt-raidrow button { white-space: nowrap; flex: none; }
.dt-pts { display: flex; gap: 6px; font-size: 12px; color: var(--muted); }
.dt-pts i { font-style: normal; }
.dt-raidrow { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 6px 8px; border-radius: 8px; background: #fbeee2; font-size: 13px; }
.dt-raidrow button { min-height: 34px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--bad); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.dt-meline { margin: 0; font-size: 16px; }
.dt-code b { font-family: ui-monospace, monospace; font-size: 20px; letter-spacing: 2px; }
.dt-addrow { display: flex; gap: 8px; align-items: flex-start; }
.dt-addrow input { flex: 1; text-transform: uppercase; font-family: ui-monospace, monospace; letter-spacing: 1px; }
.dt-addrow .dt-chipbtn { min-height: 40px; }
.dt-friendlist .acts { display: flex; gap: 6px; }
.dt-friendlist .acts button { min-width: 40px; padding: 0 10px; }
.dt-kidsnote { padding: 8px 10px; border-radius: 8px; background: #fdf0d8; font-size: 14px; }
.dt-trade { border: 1px dashed var(--line); border-radius: 12px; padding: 8px 10px; margin-top: 8px; }
.dt-eggpick { display: flex; flex-wrap: wrap; gap: 6px; }
.dt-eggpick button { min-height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font: inherit; cursor: pointer; }
.dt-eggpick button[aria-pressed="true"] { border-color: var(--accent); background: #e3f1ea; font-weight: 600; }
.dt-raidplayers { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.dt-raidplayers li { padding: 2px 10px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); font-size: 13px; }
.dt-raidbar { height: 14px; border-radius: 7px; background: var(--line); overflow: hidden; margin: 8px 0; }
.dt-raidbar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--rift), var(--accent)); transition: width .15s; }
.dt-raidtap { display: block; width: 140px; height: 140px; margin: 10px auto; border: 0; border-radius: 50%; background: #fbe3e3; font-size: 64px; cursor: pointer; touch-action: manipulation; }
.dt-raidtap.beat { animation: dt-beat .25s ease-out; }
@keyframes dt-beat { from { transform: scale(1.15); background: #f6b9b9; } to { transform: scale(1); } }
/* Kelvin 24 ต.ค. "รายการบังหน้าแผนที่": แผงล่างสูงไม่เกิน 42% ของจอ (เลื่อนในแผงเอง) · ย่อเหลือแถบเดียวได้ · จอกว้าง = แผงอยู่ข้างแผนที่ */
.dt-sheet { max-height: 42dvh; overflow-y: auto; overscroll-behavior: contain; align-content: start; padding-top: 0; }
.dt-grip { position: sticky; top: 0; z-index: 3; display: grid; justify-items: center; gap: 2px; width: calc(100% + 32px); margin: 0 -16px; padding: 6px 16px 4px; border: 0; background: rgba(255,255,255,.96); color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; border-radius: 16px 16px 0 0; }
.dt-grip .bar { width: 40px; height: 4px; border-radius: 2px; background: #c3cbc2; }
.dt-sheet.min { overflow: hidden; }
.dt-sheet.min > :not(.dt-grip) { display: none !important; }
@media (min-width: 760px) {
  .dt-app { flex-direction: row; }
  .dt-sheet { width: 400px; flex: none; max-height: none; height: 100%; border-radius: 0; border-top: 0; border-left: 1px solid var(--line); }
  .dt-top { right: 400px; }
  /* Kelvin 24 ต.ค. "เก็บแถบรายการได้เพื่อดูแผนที่เต็มจอ": แถบหัวแผงข้าง = ปุ่มซ่อน · ซ่อนแล้วเหลือปุ่มลอยมุมขวาบนของแผนที่ */
  .dt-grip { grid-auto-flow: column; justify-content: start; align-items: center; border-radius: 0; padding: 10px 16px; font-size: 13px; }
  .dt-grip .bar { display: none; }
  .dt-sheet.min { position: absolute; right: 12px; top: calc(max(10px, env(safe-area-inset-top)) + 62px); width: auto; max-width: calc(100% - 24px); height: auto; padding: 0; border: 1px solid var(--line); border-radius: 99px; }
  .dt-sheet.min .dt-grip { width: auto; margin: 0; border-radius: 99px; padding: 9px 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dt-sheetmin .dt-top { right: 0; }
}
@media (prefers-reduced-motion: reduce) { .dt-rift-m { animation: none; } .dt-ring { animation-name: dt-fade; } @keyframes dt-fade { from { opacity: .1; } to { opacity: 1; } } }
[hidden] { display: none !important; }
