/* The demonstration follows the current trainer app's light/dark colors and board geometry. */
.app-demo{--app-surface:#f5f7f3;--app-card:#fff;--app-ink:#203329;--app-muted:#52634f;--app-line:#dce3d7;--app-control:#82917d;--app-action:#436b34;--app-action-hover:#345329;--app-accent:#436b34;--app-selected:#e6efdf;--app-bench:#dce3d7;--app-marking:#94bca2;background:var(--app-surface);color:var(--app-ink);border-radius:12px;padding:20px;min-width:0}
.app-demo[data-demo-theme="dark"]{--app-surface:#0f172a;--app-card:#192333;--app-ink:#edf2fa;--app-muted:#bdc9da;--app-line:#52647d;--app-control:#8192ab;--app-action:#ffb690;--app-action-hover:#ffd2b8;--app-accent:#ffb690;--app-selected:#442b20;--app-bench:#253044}
.app-demo .demo-app-header{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-bottom:14px;border-bottom:1px solid var(--app-line)}
.app-demo .demo-app-header h2{font:700 20px/1.4 "Plus Jakarta Sans",sans-serif;letter-spacing:-.02em}
.app-demo .demo-theme{display:flex;gap:4px}.app-demo .demo-theme button{background:var(--app-card);color:var(--app-muted);border:1px solid var(--app-control);border-radius:6px;padding:8px 9px;min-height:40px;font-size:12px}
.app-demo .demo-theme button[aria-pressed="true"]{background:var(--app-selected);color:var(--app-accent);border-color:var(--app-accent)}
.app-demo .demo-team-name{font-size:13px;font-weight:750;margin-top:15px}.app-demo .demo-team-name>span{font-size:12px;font-weight:400;color:var(--app-muted)}
.app-demo .demo-tabs{display:flex;gap:7px;border-bottom:1px solid var(--app-line);padding-block:12px 0}
.app-demo .demo-tabs button{border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:var(--app-muted);font-size:13px;font-weight:650;min-height:44px;padding:9px 20px}
.app-demo .demo-tabs button[aria-selected="true"]{border-bottom-color:var(--app-accent);color:var(--app-accent)}
.app-demo .demo-tabs button:hover{background:var(--app-selected)}
.app-demo .demo-panel{padding-top:16px;margin:0;min-width:0}.app-demo .demo-panel h3{font-size:17px;letter-spacing:-.02em;margin:0 0 10px}.app-demo .demo-panel h4{font-size:13px;margin:18px 0 7px}.app-demo .demo-panel>p{font-size:13px;color:var(--app-muted);margin-bottom:14px}
.app-demo button.demo-primary,.app-demo button.demo-alt{padding:9px 12px;min-height:44px;border-radius:7px;border:1px solid var(--app-control);font-size:12px;font-weight:700;line-height:1.4}
.app-demo button.demo-primary{background:var(--app-action);color:white;border-color:var(--app-action)}
.app-demo button.demo-primary:hover{background:var(--app-action-hover)}
.app-demo[data-demo-theme="dark"] button.demo-primary{color:#203329}
.app-demo button.demo-alt{background:var(--app-card);color:var(--app-muted)}.app-demo button.demo-alt:hover{background:var(--app-selected)}
.app-demo button:disabled{opacity:.5;cursor:default}
.app-demo .demo-live-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.app-demo .demo-live-heading h3{margin:0}.app-demo .demo-format{font-size:12px;background:var(--app-card);color:var(--app-muted);border:1px solid var(--app-line)}
.app-demo .demo-timer{display:flex;gap:15px;align-items:center;justify-content:space-between;margin-top:14px}.app-demo .demo-timer>div>span{display:block;font-size:12px;color:var(--app-muted)}
.app-demo .demo-timer output{display:block;font-size:28px;font-weight:750;line-height:1.35;font-variant-numeric:tabular-nums;letter-spacing:-.02em}.app-demo .demo-timer-actions{display:flex;gap:7px;flex-wrap:wrap}
.app-demo .demo-help{font-size:12px;color:var(--app-muted);line-height:1.6}.app-demo #demo-timer-status{margin:7px 0 14px}.app-demo .demo-match-context{border-top:1px solid var(--app-line);padding-top:12px;display:grid;gap:4px;font-size:12px}.app-demo .demo-match-context>strong{font-size:12px}.app-demo .demo-match-context>span{color:var(--app-muted)}
.app-demo .demo-period-actions{display:flex;flex-wrap:wrap;gap:7px;padding-block:12px 16px}
.app-demo .demo-live-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:18px;align-items:center}
.app-demo .demo-board{position:relative;width:100%;aspect-ratio:2/3.4;max-width:260px;margin-inline:auto;min-width:0}
.app-demo .demo-pitch{position:absolute;inset:0 0 auto;height:78%;border:3px solid var(--app-marking);border-radius:8px;overflow:hidden;background:repeating-linear-gradient(180deg,#eaf5ed 0,#eaf5ed 24px,#e3f0e7 24px,#e3f0e7 48px);box-shadow:0 3px 8px rgb(0 0 0 / 12%)}
.app-demo[data-demo-theme="dark"] .demo-pitch{background:repeating-linear-gradient(180deg,#0e7554 0,#0e7554 24px,#0a6447 24px,#0a6447 48px)}
.app-demo .demo-mid{position:absolute;left:0;right:0;top:50%;border-top:2px solid var(--app-marking)}.app-demo .demo-circle{position:absolute;left:50%;top:50%;width:28%;aspect-ratio:1;border:2px solid var(--app-marking);border-radius:50%;transform:translate(-50%,-50%)}
.app-demo .demo-box{position:absolute;left:30%;width:40%;height:12%;border:2px solid var(--app-marking)}.app-demo .demo-box.top{top:-2px}.app-demo .demo-box.bottom{bottom:-2px}
.app-demo .demo-bench{position:absolute;inset:auto 0 0;height:20%;background:var(--app-bench);border-radius:8px;color:var(--app-muted);padding:4px 6px;font-size:12px}
.app-demo .demo-token{position:absolute;display:flex;align-items:center;justify-content:center;transform:translate(-50%,-50%);width:18%;max-width:46px;min-width:31px;aspect-ratio:1;border:2px solid var(--app-marking);border-radius:50%;background:var(--app-card);color:var(--app-ink);font-size:12px;line-height:1.1;font-weight:500;box-shadow:0 3px 6px rgb(0 0 0 / 16%);transition:left .45s cubic-bezier(.16,1,.3,1),top .45s cubic-bezier(.16,1,.3,1);z-index:1}
.app-demo .demo-token.is-keeper{background:#f6bd34;color:#382600;border-color:#fff4b8}
.app-demo .demo-live-summary{font-size:12px;min-width:0;line-height:1.7}.app-demo .demo-live-summary p{margin-bottom:9px;overflow-wrap:anywhere}.app-demo .demo-live-summary h4{margin-top:20px}.app-demo .demo-live-summary #show-time{display:block;background:transparent;border:0;color:var(--app-accent);text-align:left;text-decoration:underline;text-underline-offset:4px;padding:9px 0;min-height:44px;font-size:12px}
.app-demo .demo-announcement{padding-top:14px;margin-top:14px;border-top:1px solid var(--app-line)}.app-demo .demo-disclaimer{font-size:12px;padding:8px 0 0;color:var(--app-muted)}
.app-demo .playing-time{padding:0 0 15px}.app-demo .playing-time h4{font-size:13px}.app-demo .playing-time li{font-size:12px;grid-template-columns:40px minmax(0,1fr) 45px}.app-demo .playing-time p{font-size:12px;color:var(--app-muted)}
.app-demo .demo-roster{list-style:none;margin:15px 0 20px;padding:0;display:flex;gap:8px;flex-wrap:wrap}.app-demo .demo-roster li{padding:8px 13px;background:var(--app-card);border:1px solid var(--app-line);border-radius:20px;font-size:13px}.app-demo #demo-team{min-height:415px}
.app-demo .demo-table-scroll{overflow-x:auto;margin-block:15px}.app-demo .demo-schedule{width:100%;border-collapse:collapse;font-size:12px;text-align:center;background:var(--app-card);font-variant-numeric:tabular-nums}.app-demo .demo-schedule caption{text-align:left;color:var(--app-muted);padding-bottom:10px;font-size:12px}.app-demo .demo-schedule th,.app-demo .demo-schedule td{padding:9px 5px;border:1px solid var(--app-line);font-weight:500}.app-demo .demo-schedule th:first-child{text-align:left;padding-left:8px}.app-demo .demo-schedule thead th{background:var(--app-surface);font-weight:650}.app-demo .demo-schedule button{background:transparent;color:var(--app-muted);border:0;padding:6px 2px;min-height:36px;font-size:12px}.app-demo .demo-schedule button[aria-pressed="true"]{color:var(--app-accent);text-decoration:underline;text-underline-offset:4px}.app-demo .demo-schedule .schedule-field{background:#dcfce7;color:#166534}.app-demo .demo-schedule .schedule-keeper{background:#fef08a;color:#713f12}.app-demo .demo-schedule .schedule-bench{color:var(--app-muted)}
.app-demo[data-demo-theme="dark"] .demo-schedule .schedule-field{background:#194d39;color:#abefc6}.app-demo[data-demo-theme="dark"] .demo-schedule .schedule-keeper{background:#655018;color:#fff2a0}
.product-tour .section-heading{margin-bottom:65px}.product-story{display:grid;grid-template-columns:minmax(0,.72fr) minmax(0,1.28fr);align-items:center;gap:65px;margin-top:75px}.product-story:first-of-type{margin-top:0}.product-story h3{font:700 clamp(1.8rem,2.6vw,2.6rem)/1.15 Quicksand,sans-serif;letter-spacing:-.03em;text-wrap:balance}.product-story-copy>p{font-size:15px;color:var(--muted);margin-top:20px}.product-story ul{font-size:14px;color:var(--muted);padding-left:20px;margin-block:20px}.product-story li{margin-top:8px}.product-story figure{margin:0;min-width:0}.product-story figure>a{display:block;padding:clamp(12px,2vw,24px);background:#f5f7f3;border:1px solid var(--line);border-radius:10px;overflow:hidden;transition:box-shadow .2s}.dark-story figure>a{background:#0f172a}.product-story figure>a:hover{box-shadow:0 9px 28px rgb(0 0 0 / 12%)}.product-story img{display:block;width:100%;height:auto}.product-story figcaption{font-size:13px;color:var(--muted);padding-top:14px;line-height:1.65}.product-story figcaption span{display:block;font-size:12px;margin-top:3px}.product-story-copy .story-note{font-weight:650;color:var(--ink)}.product-story:nth-of-type(even){grid-template-columns:minmax(0,1.28fr) minmax(0,.72fr)}.product-story:nth-of-type(even) .product-story-copy{grid-column:2;grid-row:1}.product-story:nth-of-type(even) figure{grid-column:1;grid-row:1}.screenshot-note{font-size:12px;color:var(--muted);margin-top:40px;max-width:none}.origin-section{background:#f2ede2}.origin-inner{display:grid;grid-template-columns:1fr 1fr;gap:90px;padding-block:65px}.origin-inner p{font-size:15px;color:#52614f;margin-bottom:17px}.origin-inner .origin-signature{font-size:13px;color:var(--ink);font-weight:650;margin-bottom:0}
@media(min-width:1101px){.hero{grid-template-columns:.85fr 1.15fr;gap:45px;align-items:start;padding-block:40px 60px}.hero-copy{padding-top:45px}.hero-copy h1{font-size:clamp(2.7rem,4.5vw,4rem)}.app-demo{padding:16px}.app-demo .demo-board{max-width:200px}.app-demo .demo-app-header{padding-bottom:10px}.app-demo .demo-team-name{margin-top:8px}.app-demo .demo-tabs{padding-block:6px}.app-demo .demo-panel{padding-top:10px}.app-demo .demo-timer{margin-top:8px}.app-demo #demo-timer-status{margin:4px 0 10px}.app-demo .demo-match-context{padding-top:8px}.app-demo .demo-period-actions{padding-block:8px 12px}.app-demo .demo-announcement{padding-top:10px;margin-top:10px}}
@media(max-width:1100px){.app-demo{padding:16px}.product-story,.product-story:nth-of-type(even){gap:35px}.product-story h3{font-size:2rem}.origin-inner{gap:55px}.app-demo .demo-live-layout{gap:12px}.app-demo .demo-live-summary{font-size:12px}}
@media(max-width:850px){.app-demo{max-width:620px;padding:22px}.app-demo .demo-board{max-width:250px}.product-story,.product-story:nth-of-type(even){gap:30px;grid-template-columns:1fr 1.2fr}.product-story:nth-of-type(even) .product-story-copy{grid-column:1}.product-story:nth-of-type(even) figure{grid-column:2}.product-story h3{font-size:1.9rem}.product-story-copy>p{font-size:14px}.product-story ul{font-size:13px}.origin-inner{gap:35px}.origin-inner h2{font-size:2.3rem}}
@media(max-width:600px){.app-demo{padding:15px}.app-demo .demo-app-header h2{font-size:18px}.app-demo .demo-theme button{padding:7px 8px;font-size:12px}.app-demo .demo-team-name{font-size:12px}.app-demo .demo-tabs{gap:4px}.app-demo .demo-tabs button{padding:9px 17px}.app-demo .demo-timer{gap:8px}.app-demo .demo-timer-actions{gap:5px;justify-content:end}.app-demo button.demo-primary,.app-demo button.demo-alt{font-size:12px;padding:8px 9px}.app-demo .demo-timer-actions .demo-alt{max-width:89px}.app-demo .demo-live-layout{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:12px}.app-demo .demo-token{min-width:29px;font-size:11px}.app-demo .demo-live-summary{font-size:12px}.app-demo .demo-live-summary h4{font-size:12px;margin-top:12px}.app-demo .demo-help,.app-demo .demo-disclaimer{font-size:12px}.app-demo .demo-period-actions{gap:6px}.app-demo .demo-panel h3{font-size:16px}.app-demo .demo-board{max-width:220px}.product-tour .section-heading{margin-bottom:30px}.product-story,.product-story:nth-of-type(even){grid-template-columns:1fr;gap:25px;margin-top:50px}.product-story:nth-of-type(even) .product-story-copy,.product-story:nth-of-type(even) figure{grid-column:auto;grid-row:auto}.product-story h3{font-size:2rem}.product-story figcaption{font-size:13px}.product-story ul{font-size:14px}.product-story-copy>p{margin-top:15px}.origin-inner{grid-template-columns:1fr;gap:25px;padding-block:45px}.origin-inner h2{font-size:2.2rem}.origin-inner p{font-size:14px}}
@media(max-width:360px){.app-demo{padding:12px}.app-demo .demo-app-header{align-items:start;gap:8px}.app-demo .demo-app-header h2{font-size:17px}.app-demo .demo-theme{gap:3px}.app-demo .demo-theme button{font-size:11px;padding:6px}.app-demo .demo-live-layout{grid-template-columns:1fr;gap:16px}.app-demo .demo-board{max-width:210px}.app-demo .demo-live-summary{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.app-demo .demo-live-summary>p:first-child{grid-column:1/-1}.app-demo .demo-live-summary h4,.app-demo #change-in,.app-demo #change-out,.app-demo #change-keeper,.app-demo #show-time{grid-column:1/-1}.app-demo .demo-timer-actions .demo-alt{max-width:83px}.app-demo button.demo-primary,.app-demo button.demo-alt{padding:8px}.app-demo .playing-time ul{grid-template-columns:1fr}.app-demo .demo-schedule th,.app-demo .demo-schedule td{padding:8px 3px}}

.phone-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;min-width:0;align-items:start}
.phone-gallery figure{width:100%;max-width:270px;justify-self:center}
.phone-gallery figure:nth-child(2){margin-top:48px}
.phone-gallery figure>a.phone-frame{padding:6px;border:3px solid #263d34;border-radius:30px;background:#263d34;box-shadow:0 14px 28px rgb(18 61 49 / 12%)}
.phone-frame img{border-radius:21px}
.phone-gallery figcaption{text-align:center}
@media(min-width:601px) and (max-width:850px){.product-story.phone-story{grid-template-columns:1fr}.phone-gallery{max-width:590px;width:100%;justify-self:center}}
@media(max-width:600px){.phone-gallery{grid-template-columns:1fr;gap:30px}.phone-gallery figure{max-width:290px}.phone-gallery figure:nth-child(2){margin-top:0}}
