/* The desktop pages for World Tour (dt-tour.js): the map and a level being played, laid out in their packs' own 1920 x 1080
   pixels (layout.json's rectangles; the with-ads layouts under html.dt-ads), inside desktop.css's content area.
   Every rule is under html.dt-on (the desktop website) or a class only these pages use: phones and the app never see them. */

/* ======================================================================== the map (tm-*) */
.tm-root { position: absolute; inset: 0; }
.tm-root h1, .tm-root h3, .tm-root p { margin: 0; font-weight: 400; }
.tm-root .dt-ic svg { stroke-width: 2.2; }

/* the map panel: the worlds along their path */
.tm-map { position: absolute; left: 0; top: 0; width: 1026px; height: 900px; border-color: rgba(25, 214, 240, 0.584);
  background: radial-gradient(ellipse at 50% 40%, #15576b, #0b2642 65%, #06162d); }
.tm-eye { position: absolute; left: 28px; top: 28px; line-height: 22px; white-space: nowrap; }
.tm-h1 { position: absolute; left: 28px; top: 62px; font: 39px/39px var(--dt-sport); color: #edfaff; white-space: nowrap; }
.tm-total { position: absolute; left: 906px; top: 45px; height: 36px; display: flex; align-items: center; gap: 4px; color: #f7c948; font: 22px var(--dt-body); white-space: nowrap; }
.tm-total .dt-ic { width: 28px; height: 28px; }
.tm-view { position: absolute; left: 0; top: 126px; width: 1022px; height: 690px; overflow: auto hidden; scrollbar-width: none; cursor: grab;
  background: radial-gradient(ellipse at center, rgba(83, 205, 209, 0.067), transparent); outline: none; }
.tm-view::-webkit-scrollbar { display: none; }
.tm-canvas { position: relative; height: 620px; }
.tm-path { position: absolute; left: 10px; top: 0; height: 600px; overflow: visible; pointer-events: none; }
.tm-path path { fill: none; stroke: #477889; stroke-width: 7; stroke-dasharray: 10 13; }
.tm-path .tm-lit { stroke: #9efbff; stroke-width: 6; filter: drop-shadow(0 0 7px #19d6f0); }
.tm-isle { position: absolute; width: 295px; height: 305px; text-align: center; isolation: isolate; transition: filter 0.2s, transform 0.2s; }
.tm-root .tm-isle:hover { transform: translateY(-8px); filter: brightness(1.14); }
.tm-pic { position: absolute; left: 5px; top: 0; width: 285px; height: 235px; object-fit: contain; filter: drop-shadow(0 10px 8px rgba(0, 16, 29, 0.63)); pointer-events: none; }
.tm-pic-art { display: block; background: center / cover no-repeat; border-radius: 50%; }
.tm-isle.locked .tm-pic { filter: brightness(0.42) saturate(0.45) drop-shadow(0 10px 8px rgba(0, 16, 29, 0.63)); }
.tm-landon { position: absolute; left: 109px; top: 43px; width: 75px; height: 142px; object-fit: contain; filter: drop-shadow(0 7px 5px rgba(9, 24, 40, 0.67)); z-index: 1; pointer-events: none; }
.tm-name { position: absolute; left: 0; top: 245px; width: 295px; height: 54px; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 8px;
  background: linear-gradient(#173858, #07172d); border: 1px solid #598ca5; border-radius: 10px; color: #e8faff; font: 28px var(--dt-sport); white-space: nowrap; }
.tm-name > span:not(.dt-ic) { min-width: 0; overflow: hidden; }
.tm-name .dt-ic { width: 22px; height: 22px; }
.tm-isle small { position: absolute; left: 0; top: 306px; width: 295px; height: 20px; font: 17px var(--dt-body); color: #9dc2da; white-space: nowrap; }
.tm-isle.locked .tm-name { color: #9db2c8; }
.tm-isle.chosen .tm-name { color: #f8df86; border-color: #f7c948; box-shadow: 0 0 20px rgba(247, 201, 72, 0.267); }
.tm-root .tm-isle:focus-visible { outline: none; }
.tm-root .tm-isle:focus-visible .tm-name { outline: 3px solid #ecfbff; outline-offset: 3px; }
.tm-foot { position: absolute; left: 0; top: 816px; width: 1022px; height: 80px; padding: 0 26px; display: flex; align-items: center; gap: 24px; background: rgba(7, 23, 45, 0.8); }
.tm-explore { display: flex; align-items: center; gap: 10px; color: #a9c5dc; font: 22px var(--dt-body); white-space: nowrap; }
.tm-squad { margin: 0 auto; display: flex; align-items: center; gap: 10px; color: #a9c5dc; font: 22px var(--dt-body); white-space: nowrap; }
.tm-squad .dt-ic { width: 26px; height: 26px; color: #19d6f0; }
.tm-squad b { font-weight: 700; color: #39d98a; }
.tm-squad b.short { color: #ff7474; }
.tm-squad u { color: #6fe7f7; text-underline-offset: 4px; }
.tm-root .tm-squad:hover u { color: #b4f6ff; }
.tm-arrows { display: flex; gap: 12px; }
.tm-root .tm-arrow { width: 65px; height: 45px; padding: 0; }
.tm-arrow .dt-ic { width: 28px; height: 28px; }

/* the picked world */
.tm-side { position: absolute; left: 1046px; top: 0; width: 448px; height: 900px; border-color: rgba(25, 214, 240, 0.584); }
.tm-paint { position: absolute; left: 26px; top: 20px; width: 392px; height: 238px; border: 1px solid #486e83; border-radius: 12px; background: center 34% / cover no-repeat #0b2642; }
.tm-root .tm-paint:hover { filter: brightness(1.1); box-shadow: 0 0 18px rgba(25, 214, 240, 0.4); }
.tm-wno { position: absolute; left: 26px; top: 270px; line-height: 26px; }
.tm-wname { position: absolute; left: 26px; top: 308px; width: 392px; font: 52px/52px var(--dt-sport); color: #edfaff; white-space: nowrap; overflow: hidden; }
.tm-wname.two { white-space: normal; font-size: 46px; line-height: 50px; top: 302px; }
.tm-tag { position: absolute; left: 26px; top: 372px; width: 392px; font: 23px var(--dt-body); color: #a9c5dc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-wname.two ~ .tm-tag { top: 420px; }
.tm-counts { position: absolute; left: 26px; top: 429px; width: 392px; height: 66px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #35516e; border-bottom: 1px solid #35516e; font: 24px var(--dt-body); }
.tm-counts strong { font-weight: 700; }
.tm-counts span { color: #f7c948; }
.tm-wname.two ~ .tm-counts { top: 468px; height: 50px; }
.tm-nodes { position: absolute; left: 26px; top: 522px; width: 392px; display: flex; justify-content: space-between; }
.tm-nodec { width: 57px; text-align: center; }
.tm-node { width: 57px; height: 55px; border: 2px solid rgba(25, 214, 240, 0.44); background: #163052; border-radius: 12px; color: #cee6f5; font: 700 26px var(--dt-body); display: grid; place-items: center; }
.tm-root .tm-node:hover { border-color: #19d6f0; box-shadow: 0 0 14px rgba(25, 214, 240, 0.4); }
.tm-node.current { background: #f7c948; color: #07172d; border-color: #fff0a6; box-shadow: 0 0 18px rgba(247, 201, 72, 0.5); }
.tm-node.locked { opacity: 0.5; }
.tm-node .dt-ic { width: 26px; height: 26px; }
.tm-stars { display: block; margin-top: 11px; font: 16px/22px var(--dt-body); color: #f7c948; white-space: nowrap; }
.tm-stars > span { color: #6c829d; }
.tm-next { position: absolute; left: 26px; top: 651px; line-height: 22px; }
.tm-cname { position: absolute; left: 26px; top: 687px; width: 392px; font: 30px/36px var(--dt-sport); color: #edfaff; white-space: nowrap; overflow: hidden; }
.tm-cline { position: absolute; left: 26px; top: 733px; width: 392px; font: 22px var(--dt-body); color: #b4cde0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-root .tm-go { position: absolute; left: 26px; top: 787px; width: 392px; height: 50px; font-size: 31px; }
.tm-go .dt-ic { width: 30px; height: 30px; }
.tm-small { position: absolute; left: 26px; top: 854px; width: 392px; text-align: center; font: 17px var(--dt-body); color: #a9c5dc; white-space: nowrap; }

/* the with-ads layout (layout-ad.json): the map's row of worlds at 0.86, the world's painting shorter */
.dt-ads .tm-map, .dt-ads .tm-side { height: 776px; }
.dt-ads .tm-eye { left: 24px; top: 18px; }
.dt-ads .tm-h1 { left: 24px; top: 52px; }
.dt-ads .tm-total { left: 910px; top: 34px; }
.dt-ads .tm-view { top: 105px; height: 587px; }
.dt-ads .tm-canvas { height: 520px; transform-origin: left top; transform: scale(0.86); }
.dt-ads .tm-foot { top: 692px; }
.dt-ads .tm-paint { left: 24px; top: 16px; width: 396px; height: 163px; }
.dt-ads .tm-wno { left: 24px; top: 191px; }
.dt-ads .tm-wname { left: 24px; top: 229px; width: 396px; font-size: 45px; line-height: 45px; }
.dt-ads .tm-wname.two { font-size: 40px; line-height: 42px; top: 222px; }
.dt-ads .tm-tag { left: 24px; top: 286px; width: 396px; }
.dt-ads .tm-wname.two ~ .tm-tag { top: 312px; }
.dt-ads .tm-counts { left: 24px; top: 338px; width: 396px; height: 56px; }
.dt-ads .tm-wname.two ~ .tm-counts { top: 350px; height: 48px; }
.dt-ads .tm-nodes { left: 24px; top: 416px; width: 396px; }
.dt-ads .tm-next { left: 24px; top: 537px; }
.dt-ads .tm-cname { left: 24px; top: 573px; width: 396px; }
.dt-ads .tm-cline { left: 24px; top: 619px; width: 396px; }
.dt-ads .tm-root .tm-go { left: 24px; top: 665px; width: 396px; height: 52px; }
.dt-ads .tm-small { left: 24px; top: 734px; width: 396px; }

/* a sheet or Coach's Corner over the World Tour: shown alone in the phone's column, over this page dimmed */
.tm-scrim { position: absolute; inset: 0; z-index: 5; background: rgba(2, 9, 25, 0.62); display: none; }
html.dtt-layer .tm-scrim { display: block; }
html.dt-on.dt-paged.dtt-layer #app { background: transparent; box-shadow: none; }
html.dt-on.dt-paged.dtt-layer #overlay { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
html.dt-on.dt-paged.dtt-layer #overlay > .menu { background: transparent; }
html.dt-on.dt-paged.dtt-layer #overlay > .menu > .sheet-bg, html.dt-on.dt-paged.dtt-layer #overlay > .menu > .cc-scrim { visibility: visible; background: transparent; }

/* ======================================================================== a level being played (tl-*) */
.tl-root { position: absolute; inset: 0; }
.tl-root h1, .tl-root h2, .tl-root h3, .tl-root p { margin: 0; font-weight: 400; }
.tl-root kbd { font: 700 12px/16px var(--dt-body); letter-spacing: 1px; padding: 0 5px; border: 1px solid rgba(169, 197, 220, 0.45); border-bottom-width: 2px; border-radius: 5px; color: #a9c5dc; background: rgba(2, 11, 25, 0.5); }

/* the stage, its five stages, the challenge, the coach's tip */
.tl-left { position: absolute; left: 0; top: 0; width: 440px; height: 900px; }
.tl-eye { position: absolute; left: 28px; top: 28px; width: 380px; height: 26px; line-height: 26px; white-space: nowrap; overflow: hidden; }
.tl-title { position: absolute; left: 28px; top: 70px; width: 380px; font: 58px var(--dt-sport); color: #edfaff; text-shadow: 0 3px rgba(3, 11, 25, 0.9); }
.tl-title > span { display: block; height: 70px; line-height: 70px; white-space: nowrap; overflow: hidden; }
.tl-title .tl-name.two { white-space: normal; line-height: 1.02; display: flex; align-items: center; }
.tl-tag { position: absolute; left: 28px; top: 236px; width: 380px; font: 26px var(--dt-body); color: #a9c5dc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-stages { position: absolute; left: 28px; top: 293px; width: 380px; height: 124px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #33506a; border-bottom: 1px solid #33506a; }
.tl-node { position: relative; width: 58px; height: 58px; display: grid; place-items: center; border: 2px solid rgba(25, 214, 240, 0.44); background: #163052; border-radius: 50%; color: #cee6f5; font: 700 26px var(--dt-body); }
.tl-node.current { background: #f7c948; color: #07172d; border-color: #fff0a6; box-shadow: 0 0 18px rgba(247, 201, 72, 0.5); }
.tl-node small { position: absolute; left: -12px; right: -12px; top: 62px; text-align: center; font: 18px/22px var(--dt-body); color: #f7c948; white-space: nowrap; }
.tl-node small i { font-style: normal; color: #6c829d; }
.tl-node.current small i { color: #f7c948; }
.tl-node.locked small { color: #f7c948; letter-spacing: 0; }
.tl-par { position: absolute; left: 28px; top: 445px; width: 380px; height: 117px; padding: 20px; border-radius: 14px; background: #061326; border-left: 4px solid #f7c948; }
.tl-par .dt-eyebrow { display: block; line-height: 26px; margin-top: -1px; }
.tl-par h2 { font: 38px/46px var(--dt-sport); color: #edfaff; white-space: nowrap; overflow: hidden; }
.tl-coach { position: absolute; left: 22px; top: 586px; width: 396px; height: 290px; }
.tl-coachart { position: absolute; left: 0; top: 0; width: 192px; height: 280px; background: url("assets/dt/tour/coach.webp") center bottom / contain no-repeat; }
.tl-speech { position: absolute; left: 162px; top: 10px; width: 230px; max-height: 256px; padding: 22px; overflow: hidden; font: 26px/1.2 var(--dt-body); color: #102a43; background: #e5f9ff; border-radius: 18px; box-shadow: 0 8px 15px rgba(0, 0, 0, 0.27); }
.tl-speech::after { content: ""; position: absolute; left: 20px; bottom: -16px; border: 18px solid transparent; border-top-color: #e5f9ff; border-bottom: 0; }
.tl-speech > span { display: block; }

/* the course window: the game's canvas (#app, placed below) with the stage's own picture either side of it */
.tl-course { position: absolute; left: 456px; top: 0; width: 760px; height: 900px; overflow: hidden; border-radius: 20px; border: 2px solid #19d6f0; background: #376a36; }
.tl-blur { position: absolute; inset: -40px; background: center / cover no-repeat; filter: blur(16px) brightness(0.62) saturate(1.1); }
.tl-pic { position: absolute; display: none; background: 0 0 / 100% 100% no-repeat; -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
/* (darker at the window's edges, for the controls; nothing at the canvas's edge, so the picture runs on unbroken) */
.tl-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4, 14, 28, 0.8), rgba(4, 14, 28, 0.5) 55%, rgba(4, 14, 28, 0)) left top / var(--tl-band, 124px) 100% no-repeat,
  linear-gradient(270deg, rgba(4, 14, 28, 0.8), rgba(4, 14, 28, 0.5) 55%, rgba(4, 14, 28, 0)) right top / var(--tl-band, 124px) 100% no-repeat; }
.tl-band { position: absolute; top: 0; width: var(--tl-band, 124px); padding: 16px 9px; display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.tl-squad { left: 0; }
.tl-shotband { right: 0; }
.tl-bandh { display: flex; align-items: center; justify-content: center; gap: 6px; font: 700 16px/22px var(--dt-body); letter-spacing: 2px; color: #f7c948; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7); white-space: nowrap; }
.tl-bandh kbd { letter-spacing: 0; }
.tl-passh { margin-top: 10px; }
/* who takes the shot (the phone's squad bar) */
.tl-pl { position: relative; height: 92px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 6px 4px 6px;
  background: linear-gradient(rgba(24, 54, 83, 0.94), rgba(12, 35, 61, 0.94)); border: 1px solid #4c7ba0; border-radius: 12px; color: #e6f8ff; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s, filter 0.15s, box-shadow 0.15s; }
.tl-root .tl-pl:hover { border-color: #19d6f0; box-shadow: 0 0 17px rgba(25, 214, 240, 0.4); transform: translateY(-2px); }
.tl-pl.sel { background: linear-gradient(#fff09b, #f7c948 50%, #cf8f10); border-color: #ffe88f; color: #101d32; box-shadow: 0 0 18px rgba(247, 201, 72, 0.45), inset 0 2px #fff7c3; }
.tl-pl.out { opacity: 0.38; filter: grayscale(0.8); }
.tl-pl.armed { box-shadow: 0 0 0 3px #f7c948, 0 0 24px rgba(247, 201, 72, 0.8); }
.tl-pl kbd { position: absolute; left: 5px; top: 5px; font-size: 11px; line-height: 14px; padding: 0 4px; }
.tl-pl.sel kbd { color: #4a3a08; border-color: rgba(16, 29, 50, 0.4); background: rgba(255, 255, 255, 0.35); }
.tl-pos { padding: 1px 7px; border-radius: 6px; font: 700 15px/19px var(--dt-body); letter-spacing: 1px; }
.tl-ln { max-width: 100%; font: 20px/22px var(--dt-sport); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-role { max-width: 100%; font: 700 11px/13px var(--dt-body); letter-spacing: 1.5px; text-transform: uppercase; color: #a9c5dc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-pl.sel .tl-role { color: #5a4207; }
.tl-pips { display: flex; gap: 4px; margin-top: 1px; }
.tl-pips i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.25); }
.tl-pips i.on { background: #39d98a; border-color: #8ff0bf; box-shadow: 0 0 6px rgba(57, 217, 138, 0.7); }
.tl-pl.sel .tl-pips i { border-color: rgba(16, 29, 50, 0.35); background: rgba(16, 29, 50, 0.12); }
.tl-pl.sel .tl-pips i.on { background: #07172d; border-color: #07172d; box-shadow: none; }
.tl-sk { position: absolute; top: -9px; right: -7px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; font: 17px/1 var(--dt-sport); color: #3a2a00;
  background: radial-gradient(circle at 40% 35%, #fff1b8, #f7c948 60%, #c98a10); box-shadow: 0 0 10px rgba(247, 201, 72, 0.75), 0 2px 4px rgba(0, 0, 0, 0.5); cursor: pointer; animation: tlSk 1.6s ease-in-out infinite; }
.tl-sk::before { content: ""; position: absolute; inset: -7px; border-radius: 50%; }
.tl-pl.armed .tl-sk { animation: tlArmed 0.7s ease-in-out infinite; }
@keyframes tlSk { 0%, 100% { box-shadow: 0 0 6px rgba(247, 201, 72, 0.55), 0 2px 4px rgba(0, 0, 0, 0.5); } 50% { box-shadow: 0 0 16px rgba(247, 201, 72, 0.95), 0 2px 4px rgba(0, 0, 0, 0.5); } }
@keyframes tlArmed { 0%, 100% { transform: scale(1.1) rotate(-8deg); } 50% { transform: scale(1.25) rotate(8deg); } }
/* the shot (the phone's shot selector) and the pass toggle */
.tl-shots { display: flex; flex-direction: column; gap: 10px; }
.tl-shot, .tl-pass { position: relative; height: 70px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: linear-gradient(rgba(24, 54, 83, 0.94), rgba(12, 35, 61, 0.94)); border: 1px solid #4c7ba0; border-radius: 12px; color: #cee5f6; box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5);
  font: 17px/20px var(--dt-sport); text-transform: uppercase; transition: transform 0.15s, filter 0.15s, box-shadow 0.15s; }
.tl-root .tl-shot:hover, .tl-root .tl-pass:hover { border-color: #19d6f0; box-shadow: 0 0 17px rgba(25, 214, 240, 0.4); transform: translateY(-2px); }
.tl-shot svg, .tl-pass svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tl-shot > b { font: 26px/26px var(--dt-sport); }
.tl-shot span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 4px; }
.tl-shot.on { background: linear-gradient(#53ebff, #19bfdc 55%, #0089b7); border-color: #b6edff; color: #07172d; box-shadow: 0 0 18px rgba(25, 214, 240, 0.5), inset 0 2px rgba(255, 255, 255, 0.51); }
.tl-shot.skill { color: #f7c948; }
.tl-shot.skill.off { color: #6c829d; opacity: 0.6; }
.tl-shot.skill.on { background: linear-gradient(#fff4af, #f7c948 55%, #df9a17); border-color: #ffe79b; color: #3a2a00; animation: tlSkill 1.1s ease-in-out infinite; }
@keyframes tlSkill { 0%, 100% { box-shadow: 0 0 10px rgba(247, 201, 72, 0.45); } 50% { box-shadow: 0 0 24px rgba(247, 201, 72, 0.95); } }
.tl-shots.armed .tl-shot:not(.skill) { opacity: 0.45; }
.tl-shot kbd { position: absolute; right: 5px; top: 5px; font-size: 11px; line-height: 14px; padding: 0 4px; }
.tl-shot.skill.on kbd { color: #4a3a08; border-color: rgba(16, 29, 50, 0.4); background: rgba(255, 255, 255, 0.35); }
.tl-pass { height: 64px; }
.tl-pass b { font-weight: 400; color: #7dff9e; }
.tl-pass.one { border-color: #f7c948; box-shadow: 0 0 16px rgba(247, 201, 72, 0.45); }
.tl-pass.one b, .tl-pass.one svg { color: #f7c948; }
/* the overlay cards (pause, result) cover the pitch: the controls beside it wait */
.tl-root.carded .tl-band { opacity: 0.35; pointer-events: none; }

/* touches, the star goals, the guide, Restart / Hint / Pause */
.tl-right { position: absolute; left: 1232px; top: 0; width: 440px; height: 900px; }
.tl-th { position: absolute; left: 30px; top: 30px; width: 376px; display: flex; align-items: baseline; justify-content: space-between; font: 38px/46px var(--dt-sport); color: #edfaff; white-space: nowrap; }
.tl-th small { font: 700 18px var(--dt-body); letter-spacing: 2px; color: #a9c5dc; }
.tl-count { position: absolute; left: 30px; top: 80px; width: 376px; height: 96px; display: flex; align-items: baseline; gap: 18px; font: 80px/96px var(--dt-sport); color: #f7c948; white-space: nowrap; }
.tl-count small { font-size: 32px; color: #a9c5dc; }
.tl-goal { position: absolute; left: 30px; width: 376px; height: 65px; display: flex; align-items: center; gap: 16px; border-bottom: 1px solid #35516b; font: 26px var(--dt-body); color: #edfaff; white-space: nowrap; }
.tl-goal.g1 { top: 180px; }
.tl-goal.g2 { top: 245px; }
.tl-goal.g3 { top: 310px; }
.tl-goal .dt-ic { width: 32px; height: 32px; color: #f7c948; }
.tl-goal.won .dt-ic svg { fill: #f7c948; }
.tl-mh { position: absolute; left: 30px; top: 190px; width: 376px; height: 180px; display: flex; align-items: flex-start; justify-content: flex-start; }
.tl-mh > * { zoom: 1.7; }
.tl-root.arc .tl-mh:empty { display: none; }
.tl-guide { position: absolute; left: 30px; top: 403px; width: 376px; height: 326px; padding: 22px; background: #07172d; border: 1px solid #305576; border-radius: 14px; }
.tl-guide h3 { font: 32px/38px var(--dt-sport); color: #edfaff; }
.tl-gicons { height: 60px; display: flex; gap: 16px; align-items: center; justify-content: center; color: #19d6f0; margin: -2px 0 0; }
.tl-gicons .dt-ic { width: 44px; height: 44px; }
.tl-gicons .dt-ic svg { stroke-width: 2.2; }
.tl-guide p { font: 24px/1.35 var(--dt-body); margin: 8px 0; color: #edfaff; }
.tl-guide p.dt-muted { color: #a9c5dc; }
.tl-plabel { display: flex; justify-content: space-between; font: 23px var(--dt-body); color: #edfaff; }
.tl-root .tl-restart, .tl-root .tl-hint, .tl-root .tl-pause { position: absolute; height: 54px; font-size: 28px; }
.tl-root .tl-restart { left: 30px; top: 760px; width: 180px; }
.tl-root .tl-hint { left: 226px; top: 760px; width: 180px; }
.tl-root .tl-pause { left: 30px; top: 830px; width: 376px; }
.tl-pause .dt-ic { width: 28px; height: 28px; }
.tl-root .dt-btn:disabled { transform: none; }

/* the with-ads layout (layout-ads.json): every panel 776 tall */
.dt-ads .tl-left, .dt-ads .tl-course, .dt-ads .tl-right { height: 776px; }
.dt-ads .tl-title { top: 66px; font-size: 52px; }
.dt-ads .tl-title > span { height: 62px; line-height: 62px; }
.dt-ads .tl-tag { top: 216px; }
.dt-ads .tl-stages { top: 273px; height: 112px; }
.dt-ads .tl-node { margin-top: -12px; }
.dt-ads .tl-par { top: 407px; height: 107px; padding: 15px 15px 15px 19px; }
.dt-ads .tl-coach { left: 22px; top: 521px; height: 240px; }
.dt-ads .tl-coachart { width: 165px; height: 235px; }
.dt-ads .tl-speech { left: 157px; top: 25px; width: 235px; max-height: 200px; padding: 18px; font-size: 23px; }
.dt-ads .tl-th { left: 24px; top: 24px; width: 388px; }
.dt-ads .tl-count { left: 24px; top: 74px; width: 388px; height: 72px; font-size: 60px; line-height: 72px; gap: 14px; }
.dt-ads .tl-goal { left: 24px; width: 388px; height: 53px; }
.dt-ads .tl-goal.g1 { top: 150px; }
.dt-ads .tl-goal.g2 { top: 203px; }
.dt-ads .tl-goal.g3 { top: 256px; }
.dt-ads .tl-mh { left: 24px; top: 160px; height: 150px; }
.dt-ads .tl-guide { left: 24px; top: 329px; width: 388px; height: 283px; padding: 18px; }
.dt-ads .tl-gicons { height: 42px; margin-top: 4px; }
.dt-ads .tl-guide p { font-size: 22px; margin: 6px 0; }
.dt-ads .tl-root .tl-restart { left: 24px; top: 634px; width: 187px; height: 50px; }
.dt-ads .tl-root .tl-hint { left: 225px; top: 634px; width: 187px; height: 50px; }
.dt-ads .tl-root .tl-pause { left: 24px; top: 698px; width: 388px; height: 50px; }

/* focus (desktop.js html.dt-focus, 28 Oct 2026: the shell gives the level the whole stage, 12 to 1068, the header and
   the dock stepping aside): every panel 1056 tall, the pitch with it (the canvas is a tall phone shape, so its size is
   the window's height: 1052 against 896, or 772 over the dock); the coach and the buttons at the panels' feet */
html.dt-focus .tl-left, html.dt-focus .tl-course, html.dt-focus .tl-right { height: 1056px; }
/* the taller canvas is wider too (601 at 1052): the side panels give up 60 each so the squad and the shot keep their
   room beside it (the course window 880 wide: 139 either side) */
html.dt-focus .tl-left { width: 380px; }
html.dt-focus .tl-eye, html.dt-focus .tl-title, html.dt-focus .tl-tag, html.dt-focus .tl-stages, html.dt-focus .tl-par { width: 324px; }
html.dt-focus .tl-coach { top: 742px; width: 340px; }
html.dt-focus .tl-coachart { width: 160px; }
html.dt-focus .tl-speech { left: 136px; width: 204px; padding: 18px; font-size: 24px; }
html.dt-focus .tl-course { left: 396px; width: 880px; }
html.dt-focus .tl-right { left: 1292px; width: 380px; }
html.dt-focus .tl-th, html.dt-focus .tl-count, html.dt-focus .tl-goal, html.dt-focus .tl-mh, html.dt-focus .tl-guide { width: 316px; }
html.dt-focus .tl-root .tl-restart { width: 150px; }
html.dt-focus .tl-root .tl-hint { left: 196px; width: 150px; }
html.dt-focus .tl-root .tl-pause { width: 316px; }
html.dt-focus .tl-guide { top: 440px; height: 400px; padding: 30px 22px; }
html.dt-focus .tl-gicons { height: 80px; }
html.dt-focus .tl-guide p { margin: 12px 0; }
html.dt-focus .tl-root .tl-restart, html.dt-focus .tl-root .tl-hint { top: 916px; }
html.dt-focus .tl-root .tl-pause { top: 986px; }

/* ---- the game itself during a level: #app over the course window's inside (626, 142: the content area's 168, 140 plus
   the window's 458, 2), in real pixels; its own top bar, squad bar and controls hidden (this page has them) */
html.dt-on.dt-pg-tour #app {
  left: calc(var(--dt-ox) + var(--dt-s) * 626); top: calc(var(--dt-oy) + var(--dt-s) * 142);
  width: calc(var(--dt-s) * 756); height: calc(var(--dt-s) * 896);
  border-radius: calc(var(--dt-s) * 18); background: transparent; box-shadow: none; pointer-events: none;
}
html.dt-on.dt-ads.dt-pg-tour #app { height: calc(var(--dt-s) * 772); }
html.dt-on.dt-focus.dt-pg-tour #app { left: calc(var(--dt-ox) + var(--dt-s) * 566); top: calc(var(--dt-oy) + var(--dt-s) * 14); width: calc(var(--dt-s) * 876); height: calc(var(--dt-s) * 1052); }
html.dt-on.dt-pg-tour #hud, html.dt-on.dt-pg-tour #squadbar, html.dt-on.dt-pg-tour #controls, html.dt-on.dt-pg-tour #passMode { display: none; }
/* (the canvas, the cards and sheets over it take the mouse; the room either side of the canvas is this page's) */
html.dt-on.dt-pg-tour #stage { pointer-events: none; }
html.dt-on.dt-pg-tour #stage > :not(#tip), html.dt-on.dt-pg-tour #app > :not(#stage):not(#hud):not(#squadbar):not(#controls) { pointer-events: auto; }
html.dt-on.dt-pg-tour #c { border-radius: 0; box-shadow: none; }

/* the game's cards over the pitch (pause, a result, the tutorial, the briefing tip): the desktop panels' colours and
   buttons, zoomed with the composition (--dtt-k: its scale, set by dt-tour.js) so they keep their size beside the panels */
html.dt-on.dt-pg-tour #overlay > .card, html.dt-on.dt-pg-tour #tut .tut-card, html.dt-on.dt-pg-tour #tip { zoom: clamp(0.9, calc(var(--dtt-k, 1) * 1.22), 1.5); }
html.dt-on.dt-pg-tour #overlay > .card, html.dt-on.dt-pg-tour #tut .tut-card {
  background: linear-gradient(145deg, rgba(22, 48, 82, 0.98), rgba(7, 23, 45, 0.99) 78%); border: 2px solid rgba(25, 214, 240, 0.6); border-radius: 20px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.6), inset 0 1px rgba(255, 255, 255, 0.125); }
html.dt-on.dt-pg-tour #overlay > .card > .btns { background: linear-gradient(180deg, rgba(7, 23, 45, 0), #07172d 14px); }
html.dt-on.dt-pg-tour #overlay > .card .eyebrow { font: 700 12px var(--dt-body); letter-spacing: 2px; color: #f7c948; }
html.dt-on.dt-pg-tour #overlay > .card .btns > button, html.dt-on.dt-pg-tour #tut .tut-nav button {
  font: 19px var(--dt-sport); text-transform: uppercase; color: #07172d; border: 2px solid #b6edff; border-radius: 12px;
  background: linear-gradient(#53ebff, #19bfdc 55%, #0089b7); box-shadow: 0 4px #005577, inset 0 2px rgba(255, 255, 255, 0.51); }
html.dt-on.dt-pg-tour #overlay > .card .btns > button.gold { background: linear-gradient(#fff4af, #f7c948 55%, #df9a17); border-color: #ffe79b; box-shadow: 0 4px #89600e, inset 0 2px #ffffd6; }
html.dt-on.dt-pg-tour #overlay > .card .btns > button.alt, html.dt-on.dt-pg-tour #tut .tut-nav button.alt {
  background: linear-gradient(#285073, #122d4b); border-color: #4c7ba0; color: #e6f8ff; box-shadow: 0 4px #07172d, inset 0 2px rgba(116, 159, 186, 0.27); }
html.dt-on.dt-pg-tour #overlay > .card .btns > button.small { font-size: 16px; }
html.dt-on.dt-pg-tour #overlay > .card .btns > button:hover, html.dt-on.dt-pg-tour #tut .tut-nav button:hover { filter: brightness(1.15); }
html.dt-on.dt-pg-tour #tip { width: min(88%, 340px); background: rgba(7, 23, 45, 0.93); border: 1px solid rgba(25, 214, 240, 0.5); border-left: 4px solid #f7c948; border-radius: 14px; color: #cfe6f5; }

/* the drag hint over the pitch (the concept's caption): a layer over the game, in real pixels */
#dt-tour-cap { display: none; }
html.dt-on.dt-pg-tour #dt-tour-cap {
  display: flex; align-items: center; position: fixed; z-index: 3; pointer-events: none;
  left: calc(var(--dt-ox) + var(--dt-s) * 650); top: calc(var(--dt-oy) + var(--dt-s) * 967); height: calc(var(--dt-s) * 51);
  padding: 0 calc(var(--dt-s) * 20); border-radius: calc(var(--dt-s) * 10); border: 1px solid rgba(25, 214, 240, 0.43);
  background: rgba(6, 21, 38, 0.855); color: #edfaff; font: calc(var(--dt-s) * 24) var(--dt-sport); white-space: nowrap; transition: opacity 0.2s;
}
html.dt-on.dt-ads.dt-pg-tour #dt-tour-cap { top: calc(var(--dt-oy) + var(--dt-s) * 843); }
html.dt-on.dt-focus.dt-pg-tour #dt-tour-cap { left: calc(var(--dt-ox) + var(--dt-s) * 590); top: calc(var(--dt-oy) + var(--dt-s) * 995); }
html.dt-on.dt-pg-tour #dt-tour-cap.off { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .tm-isle, .tl-pl, .tl-shot, .tl-pass { transition: none; }
  .tl-sk, .tl-pl.armed .tl-sk, .tl-shot.skill.on { animation: none; }
}
