.stage-frame[data-atmosphere=trail]{background:linear-gradient(180deg,rgba(8,6,4,.62),rgba(8,6,4,.78)),url(/games/trail-distance/cover.webp) 50% /cover no-repeat;color:#f6efe2}.stage-frame[data-atmosphere=trail] .stage-exit{background:#2a1c12;border-color:#e2b56a;color:#f6efe2}.td{height:100%;box-sizing:border-box;padding:12px 18px 14px;display:grid;grid-template-rows:56px auto 1fr 64px;grid-gap:10px;gap:10px;font-family:Figtree,Segoe UI,sans-serif}.td-dock,.td-head{display:flex;align-items:center;gap:10px;min-height:52px}.td-head{justify-content:space-between;padding-left:118px}.td-head h1{margin:0;font-size:1.35rem;color:#f3d59a;text-shadow:0 2px 10px #000}.td-steps{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.td-steps button{min-height:52px;min-width:52px;max-width:168px;font-size:.78rem;line-height:1.15;white-space:normal;text-align:center}.td-check,.td-dock button,.td-home button,.td-steps button{min-height:52px;min-width:52px;padding:0 16px;border-radius:999px;border:2px solid #e2b56a;background:rgba(28,18,12,.88);color:#f6efe2;font-weight:800;cursor:pointer}.td-steps button{padding:4px 12px;border-radius:16px}.td-field{display:flex;align-items:center;gap:8px}.td-field-words{font-size:.8rem;line-height:1.15;max-width:4.8rem;font-weight:800}.td-field-sym{font-size:1.2rem}.td-dock button[data-on=true],.td-steps button[data-on=true]{background:#e2b56a;color:#1c120c}.td-steps button:disabled{opacity:.4;cursor:not-allowed}.td-coach{display:grid;grid-template-columns:88px 1fr;grid-gap:12px;gap:12px;align-items:center;min-height:92px;padding:8px 14px;border-radius:16px;background:rgba(28,18,12,.82);border:1px solid #c4a574}.td-coach img{width:88px;height:88px;object-fit:cover;border-radius:14px}.td-coach p{margin:0;font-size:1.05rem;line-height:1.35}.td-board{position:relative;min-height:0;border-radius:16px;overflow:hidden;border:1px solid #c4a574;background:#0c100e url(/games/trail-distance/deltax.webp) 50%/cover no-repeat}.td-board:before{content:"";position:absolute;inset:0;background:rgba(6,8,7,.58);pointer-events:none;z-index:0}.td-board[data-art=dy]{background-image:url(/games/trail-distance/deltay.webp)}.td-board[data-art=tri]{background-image:url(/games/trail-distance/triangle.webp)}.td-board[data-art=village]{background-image:url(/games/trail-distance/village.webp)}.td-grid{position:absolute;inset:0;width:100%;height:100%;z-index:1}.td-home{display:grid;grid-template-columns:1.1fr .9fr;grid-gap:16px;gap:16px;min-height:0}.td-hero{border-radius:18px;overflow:hidden;border:1px solid #c4a574;background:linear-gradient(180deg,rgba(6,8,7,.42),rgba(6,8,7,.58)),url(/games/trail-distance/cover.webp) 50% /cover no-repeat}.td-intro{background:rgba(28,18,12,.88);border-radius:18px;padding:18px 20px;display:grid;align-content:start;grid-gap:10px;gap:10px}.td-intro h2{margin:0;color:#f3d59a}.td-intro p{margin:0;font-size:1.05rem;line-height:1.4}.td-intro img{width:96px;height:96px;object-fit:cover;border-radius:16px}.td-dock input{min-height:52px;width:88px;border-radius:12px;border:2px solid #e2b56a;background:#fffdf8;color:#1c120c;font-size:1.2rem;font-weight:800;text-align:center}.td-dock label{display:flex;align-items:center;gap:8px;font-weight:800}.td-ok{color:#8dffb3}.td-no,.td-ok{font-weight:800}.td-no{color:#ffb4a2}.td-place{position:absolute;z-index:2;transform:translate(-50%,-100%);min-height:36px;padding:4px 8px;border-radius:10px 10px 10px 0;background:#1c120c;color:#f6efe2;border:2px solid #e2b56a;font-size:.78rem;font-weight:800;white-space:nowrap;pointer-events:none}.td-place[data-on=true]{background:#e2b56a;color:#1c120c}.td-done{display:grid;place-items:center;text-align:center;background:rgba(28,18,12,.86);border-radius:18px;padding:24px}.td-done img{width:140px;height:140px;object-fit:cover;border-radius:20px}