/* Product introduction and a spotlight coach on the actual page. */
.tos-learn{box-sizing:border-box;width:min(1030px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);margin:auto;padding:0;border:1px solid var(--line);border-radius:16px;background:var(--night-surface,#fff);color:var(--ink);box-shadow:0 24px 80px #031b3a44;font:14px/1.7 var(--sans,system-ui,sans-serif);overflow:hidden}.tos-learn[open]{display:flex;flex-direction:column}.tos-learn::backdrop{background:#071a3288;backdrop-filter:blur(3px)}.tos-learn *,.tos-tour-layer *{box-sizing:border-box}.tos-learn>header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:18px 24px;border-bottom:1px solid var(--line);flex-shrink:0}.tos-learn>header small{letter-spacing:1.5px;font-size:10px;color:var(--blue);font-weight:700}.tos-learn h2{font-size:22px;line-height:1.5;margin:0}.tos-learn button{font:inherit;cursor:pointer;border:1px solid var(--line);border-radius:7px;padding:8px 12px;background:var(--night-surface,#fff);color:var(--ink)}.tos-learn>header button{width:42px;height:42px;font-size:25px;line-height:1;padding:0;flex-shrink:0}.tos-learn button:hover{border-color:var(--blue);color:var(--blue)}.learn-content{padding:24px;overflow:auto;overscroll-behavior:contain;min-height:0}.learn-hero{display:grid;grid-template-columns:1fr 1fr;gap:32px;align-items:center;margin-bottom:24px}.learn-kicker{font-size:11px;font-weight:600;letter-spacing:.3px;color:var(--blue)}.learn-hero h3{text-wrap:balance;font-size:27px;line-height:1.5;margin:8px 0 12px;letter-spacing:-.5px}.learn-hero p{color:var(--muted);margin:0 0 18px;font-size:14px}.tos-learn .learn-primary{display:inline-flex;align-items:center;justify-content:center;gap:14px;background:var(--night-action,#0089cf);color:white!important;border-color:transparent;min-height:44px;font-weight:600}.learn-hero>div>small{display:block;margin-top:8px;color:var(--muted);font-size:11px}.learn-shot{padding:8px;background:var(--night-surface-alt,#f2f6fa);border:1px solid var(--line);border-radius:12px;transform:rotate(-1deg)}.learn-shot img{width:100%;display:block;border-radius:7px}.learn-shot button{width:100%;font-size:11px;border:0;background:transparent}.learn-picture{display:block;width:100%;height:auto;border:1px solid var(--line);border-radius:8px}.learn-section-title{font-size:15px;margin:16px 0 12px}.learn-journeys{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.learn-journeys>button{display:flex;align-items:center;gap:12px;text-align:left;padding:14px;border-radius:10px}.learn-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:8px;background:var(--blue2);color:var(--blue);font-size:22px;flex-shrink:0}.learn-journeys b{display:block;font-size:14px}.learn-journeys small{display:block;color:var(--muted);font-size:11px;line-height:1.7;margin-top:3px}.learn-journeys em{font-style:normal;color:var(--blue);margin-left:auto}.learn-foot{display:flex;gap:8px;flex-wrap:wrap;align-items:center;border-top:1px solid var(--line);padding-top:15px;margin-top:20px}.learn-foot>span{flex-basis:100%;font-size:11px;color:var(--muted)}.learn-foot button{font-size:11px;border:0;padding:4px 0;margin-right:14px;color:var(--blue)}.tos-learn .learn-resume{width:100%;text-align:left;color:var(--blue);background:var(--blue2);border-color:var(--night-border-soft,#bfdeef);font-size:12px;padding:10px 14px}.learn-signin{padding:26px;max-width:650px}.learn-signin>button{margin-right:12px;margin-top:12px}
.tos-tour-layer{position:fixed;inset:0;z-index:100000;pointer-events:none;font:14px/1.6 var(--sans,system-ui,sans-serif);color:var(--ink)}.tos-tour-layer[hidden]{display:none}.tour-shade{position:fixed;background:#07182fad;pointer-events:auto}.tour-ring{position:fixed;border:3px solid #28a5ec;border-radius:9px;box-shadow:0 0 0 3px #fff8,0 0 22px #0086c788;pointer-events:none}.tour-coach{position:fixed;pointer-events:auto;border:1px solid var(--night-border-soft,#d8e2ec);border-radius:12px;padding:15px 17px;background:var(--night-surface,#fff);box-shadow:0 10px 40px #00163240;overflow:auto}.tour-coach header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.tour-coach header small{font-size:10px;letter-spacing:.2px;color:var(--muted);line-height:1.5}.tour-coach button{border:1px solid var(--line);border-radius:6px;background:var(--night-surface,#fff);color:var(--ink);font:600 12px/1.4 var(--sans,system-ui,sans-serif);min-height:36px;padding:7px 10px;cursor:pointer}.tour-coach header button{width:30px;height:30px;min-height:30px;flex-shrink:0;padding:0;font-size:22px;border:0}.tour-coach h3{font-size:18px;line-height:1.45;margin:14px 0 8px;letter-spacing:-.2px}.tour-coach p{font-size:13px;line-height:1.75;margin:0 0 12px;overflow-wrap:anywhere}.tour-progress{height:3px;background:var(--night-surface-alt,#eaf0f6);border-radius:3px;overflow:hidden}.tour-progress i{display:block;height:100%;background:var(--blue)}.tour-coach footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:14px}.tour-coach footer span{color:var(--blue);font-size:11px}.tour-coach .tour-next{background:var(--night-action,#0089cf);color:white;border-color:transparent}.tour-coach .tour-example{background:var(--blue2);color:var(--blue);border-color:var(--night-border-soft,#bcddec);font-size:12px}.tour-coach button:disabled{opacity:.38;cursor:default}.tos-tour-layer :focus-visible,.tos-learn :focus-visible{outline:2px solid var(--blue);outline-offset:3px}.tour-inline-help{margin:12px 20px;padding:12px 14px;border:1px solid var(--night-border-soft,#b9dcec);border-radius:8px;background:var(--blue2);color:var(--ink);font:13px/1.8 var(--sans,system-ui,sans-serif)}.tour-inline-help b{display:block;color:var(--blue)}.tour-inline-help p{margin:6px 0}.tour-inline-help button{font:12px var(--sans,system-ui);background:var(--night-surface,#fff);border:1px solid var(--line);padding:7px 10px;border-radius:5px;cursor:pointer;color:var(--muted)}
@media(max-width:700px){.tos-learn{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:12px}.tos-learn>header{padding:12px 16px}.tos-learn h2{font-size:19px}.learn-content{padding:17px}.learn-hero{grid-template-columns:1fr;gap:15px;margin-bottom:18px}.learn-hero h3{font-size:23px;margin:6px 0 10px}.learn-hero p{font-size:13px;line-height:1.8;margin-bottom:14px}.learn-hero .learn-primary{width:100%}.learn-shot{transform:none;overflow:hidden}.learn-shot img{margin-top:0}.learn-shot button{background:var(--night-surface,#fff);border-top:1px solid var(--line);min-height:34px}.learn-journeys{grid-template-columns:1fr;gap:8px}.learn-journeys>button{padding:12px}.learn-journeys b{font-size:13px}.learn-journeys small{font-size:11px}.learn-section-title{font-size:14px}.learn-foot{margin-top:16px}.tour-coach{padding:12px 14px}.tour-coach h3{font-size:17px;margin:10px 0 6px}.tour-coach p{font-size:12px;margin-bottom:8px}.tour-coach footer{margin-top:10px}.tour-coach button{min-height:40px}.tour-coach header button{min-height:30px}}

/* Keep the real game entry stationary during its walkthrough; preserve the carousel animation time. */
[data-tour-journey="games"] .related-track{animation-play-state:paused;transform:none!important;width:100%}
[data-tour-journey="games"] .related-group{width:100%;padding:0}
[data-tour-journey="games"] .related-group[aria-hidden],[data-tour-journey="games"] .related-card:not(.related-games){display:none}
[data-tour-journey="games"] .related-games{width:100%}

/* Three small course shelves keep the expanded catalog easy to scan. */
.learn-course-controls{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}.learn-levels{display:flex;gap:5px;padding:4px;border-radius:9px;background:var(--night-surface-alt,#f2f6fa)}.learn-levels button{border-color:transparent;min-height:40px;padding:6px 14px;background:transparent;font-weight:600}.learn-levels button[aria-pressed="true"]{background:var(--night-action,#0089cf);color:#fff;border-color:transparent}.learn-levels small{font-weight:400;opacity:.8;margin-left:5px}.learn-course-search{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:12px}.learn-course-search input{min-width:0;width:190px;padding:9px 11px;font:13px var(--sans,system-ui);color:var(--ink);background:var(--night-surface,#fff);border:1px solid var(--line);border-radius:7px}.learn-course-status{display:flex;justify-content:space-between;gap:12px;margin:12px 0;color:var(--muted);font-size:11px}.learn-journeys>button{align-items:flex-start}.learn-journeys>button>span:nth-child(2){min-width:0;flex:1}.learn-journeys>button>em{align-self:center}.learn-lesson-meta{display:flex;gap:8px;align-items:center;margin-top:7px;font-size:10px;color:var(--muted)}.learn-lesson-meta em{margin:0;background:var(--blue2);padding:1px 6px;border-radius:4px;font-size:10px}.learn-lesson-meta .lesson-done{color:var(--blue)}.learn-no-results{padding:20px;color:var(--muted);grid-column:1/-1;text-align:center}
/* Native dialogs stay interactive while their own fields are being coached. */
.tour-coach-inline{position:sticky;top:0;z-index:3;margin:10px 18px;padding:10px 14px;background:var(--night-surface,#fff);box-shadow:0 3px 12px #031b3a12;max-height:45dvh;overflow:auto;box-sizing:border-box}.tour-coach-inline header,.tour-coach-inline footer{display:flex;align-items:center;justify-content:space-between;gap:10px}.tour-coach-inline header small{font-size:10px;color:var(--muted)}.tour-coach-inline header button{border:0;font-size:22px;padding:0;width:28px;height:28px}.tour-coach-inline h3{font-size:15px;line-height:1.4;margin:7px 0}.tour-coach-inline p{font-size:12px;line-height:1.65;margin:6px 0 10px}.tour-coach-inline footer span{font-size:11px;color:var(--blue)}.tour-coach-inline .tour-next{background:var(--night-action,#0089cf);border-color:transparent;color:#fff}.tour-coach-inline button{min-height:34px}.tour-coach-inline button:disabled{opacity:.4}dialog .tour-target:not(dialog){outline:2px solid #28a5ec;outline-offset:3px;scroll-margin-top:240px}
@media(max-width:700px){.learn-course-controls{gap:10px}.learn-levels{width:100%;justify-content:space-between}.learn-levels button{flex:1;padding:7px}.learn-course-search{width:100%;justify-content:space-between}.learn-course-search input{flex:1;max-width:78%;width:auto}.learn-course-status{flex-wrap:wrap;gap:3px}.learn-course-status>span:first-child{flex-basis:100%}.tour-coach-inline{margin:8px;padding:8px 11px}.tour-coach-inline h3{font-size:14px}.tour-coach-inline p{font-size:11px}.tour-coach-inline footer{gap:6px}.tour-coach-inline button{font-size:11px}}

.learn-product-notice{padding:12px 15px;margin:0 0 16px;border:1px solid var(--line);border-left:3px solid var(--blue);border-radius:8px;background:var(--night-surface-alt,#f2f6fa)}.learn-product-notice>b{display:block;font-size:12px;color:var(--blue);margin-bottom:4px}.tos-learn .learn-product-notice p{margin:0;color:var(--ink);font-size:13px;line-height:1.75}.learn-notice-start{max-width:690px}.learn-notice-start>p{color:var(--muted);margin:14px 0 20px}.learn-notice-start .learn-primary{width:100%}
