/* ---------- Sıra takibi: tur süreleri (app.js trkTurnsHtml) ---------- */
.trk-list .trk-tline { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.trk-list .trk-tline:empty { display: none; }
.trk-list .trk-tline .trk-time { margin: 0; }
.trk-turns { font: 500 10.5px ui-monospace, Consolas, monospace; color: var(--muted, #999); white-space: nowrap; }
.trk-precombat { margin: 0 0 6px; padding: 4px 6px; border: 1px dashed var(--line, #444); border-radius: 6px; text-align: center; }

/* ---------- Kum saati (hourglass.js) ---------- */
#hourglass { position: fixed; z-index: 60; display: flex; flex-direction: column; align-items: center; gap: 4px; user-select: none; filter: drop-shadow(0 6px 14px #000a); }
#hourglass.hidden { display: none; }
#hourglass .hg-glass { width: 100%; cursor: grab; touch-action: none; }
#hourglass .hg-glass:active { cursor: grabbing; }
#hourglass svg { display: block; width: 100%; height: auto; overflow: visible; }
#hourglass svg.flip { animation: hgFlip .7s cubic-bezier(.4, .1, .3, 1); }
@keyframes hgFlip { from { transform: rotate(-180deg); } to { transform: rotate(0); } }
#hourglass .hg-stream { animation: hgFall .35s linear infinite; }
@keyframes hgFall { to { stroke-dashoffset: -5; } }
#hourglass .hg-time { font: 700 calc(13px + 5px * var(--hgs, 1)) ui-monospace, Consolas, monospace; color: #f3dca8; background: #000b; border: 1px solid #5b4527; border-radius: 8px; padding: 1px 10px; white-space: nowrap; }
#hourglass.done .hg-time { color: #ff5a4e; border-color: #a0261d; animation: hgDone 1s ease-in-out infinite; }
@keyframes hgDone { 50% { opacity: .45; } }
#hourglass .hg-gm { display: none; gap: 3px; flex-wrap: nowrap; width: max-content; justify-content: center; background: #000b; padding: 3px; border-radius: 8px; border: 1px solid var(--line, #333); }
body.is-gm #hourglass .hg-gm { display: flex; }
#hourglass .hg-gm .btn { padding: 2px 6px; }
#hourglass .hg-dur { width: 58px; text-align: center; font: 600 12px ui-monospace, Consolas, monospace; padding: 2px 4px; }
#hourglass .hg-size { position: absolute; right: -4px; bottom: -4px; width: 14px; height: 14px; cursor: nwse-resize; border-right: 2px solid #f3dca888; border-bottom: 2px solid #f3dca888; border-radius: 0 0 4px 0; opacity: 0; transition: opacity .2s; }
#hourglass:hover .hg-size { opacity: 1; }
@media (prefers-reduced-motion: reduce) { #hourglass svg.flip, #hourglass .hg-stream { animation: none; } }
