/* Use Ganak's existing court palette and controls. The four labelled choices are
   the focal point; this is a task entrance, not a chat transcript. */
.ganak-home-page{display:flex;flex-direction:column;min-height:100svh}
.home-main{box-sizing:border-box;width:100%;max-width:var(--ganak-shell-max);flex:1;display:flex;flex-direction:column;margin:0 auto;padding:1.5rem var(--ganak-shell-gutter) 2rem;font-size:1rem;line-height:1.6}
.home-top{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:.5rem}
.home-eyebrow{font-size:.875rem;font-weight:700;letter-spacing:.1em;color:var(--muted);margin:0}
.home-language{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;max-width:100%}
.home-language select{width:auto;min-height:44px}
.home-main h1{font-size:clamp(1.75rem,4vw,2.5rem);line-height:1.25;letter-spacing:-.02em;text-wrap:initial}
.home-intro{color:var(--muted);margin:.5rem 0 1.25rem}
.home-main input,.home-main select{font:inherit;min-width:0;max-width:100%;min-height:48px;padding:.625rem .75rem;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:var(--radius)}
.home-main select{appearance:none;-webkit-appearance:none;padding-right:2.25rem;background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);background-position:right 1.3125rem center,right 1rem center;background-size:.3125rem .3125rem;background-repeat:no-repeat}
.home-ask label,.home-fields label>span{display:block;font-weight:600;margin-bottom:.375rem}
.home-ask-row{display:flex;gap:.625rem}.home-ask-row input{flex:1;width:100%;min-width:0}.home-ask-row button{flex:none;min-height:48px;white-space:nowrap}
.home-shortcuts{display:flex;flex-wrap:wrap;gap:.75rem;margin:1.25rem 0}
.home-shortcut{flex:1 1 calc(50% - .75rem);min-width:min(100%,10rem);display:block;appearance:none;-webkit-appearance:none;text-align:left;min-height:7rem;padding:1.125rem;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);color:var(--ink);font:inherit;overflow-wrap:anywhere}
.home-shortcut strong{display:block;font-size:1.125rem;line-height:1.4}.home-shortcut span{display:block;margin-top:.375rem;color:var(--muted);font-size:1rem;line-height:1.5}
.home-shortcut:hover,.home-shortcut[aria-pressed=true]{background:var(--hover);border-color:var(--court2)}
.home-shortcut:active{transform:translateY(1px)}
.home-context{border-block:1px solid var(--line);padding:.625rem 0;margin-top:1rem}
.home-context summary{cursor:pointer;min-height:48px;align-content:center;font-weight:600}
#homeContextSummary{display:block;color:var(--muted);font-size:.875rem;font-weight:400;margin-left:1.1rem;overflow-wrap:anywhere}
.home-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin:1rem 0}
.home-fields input,.home-fields select{width:100%}.home-context p{color:var(--muted)}
.home-note{font-size:.875rem}.home-session{display:flex;gap:.75rem;align-items:center;flex-wrap:wrap;font-size:.875rem;color:var(--muted);margin:.75rem 0}.home-session p{margin:0;flex:1 1 14rem}.home-session button{min-height:44px}
.home-link{display:inline-flex;align-items:center;min-height:44px;color:var(--ink);text-underline-offset:.2em}
.home-result{border:1px solid var(--line);border-radius:var(--radius);padding:1.25rem;background:var(--surface);margin-top:1.25rem;scroll-margin-top:12rem}
.home-result h2{font-size:1.375rem;line-height:1.5}.home-result p{margin:.5rem 0}.home-result a.primary,.home-result a.secondary{display:inline-flex;align-items:center;justify-content:center;min-height:48px;text-decoration:none;font:inherit;padding:.75rem 1rem;text-align:center}
.home-result label{display:block;min-width:0;margin:.75rem 0}.home-result select{display:block;box-sizing:border-box;min-width:0;max-width:100%;width:100%;margin-top:.375rem;overflow:hidden;text-overflow:ellipsis}
.home-result-actions{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:1rem}.home-result-actions button{min-height:48px}
.home-review{margin:1rem 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}.home-review div{min-width:0}.home-review dt{color:var(--muted);font-size:.875rem}.home-review dd{margin:0;font-weight:600;overflow-wrap:anywhere}
.home-match-list{padding:0;list-style:none;display:grid;gap:.75rem;margin:1rem 0}.home-match{padding:.875rem;border:1px solid var(--line);border-radius:var(--radius);overflow-wrap:anywhere}.home-match strong{display:block}.home-match .home-match-state{font-size:.875rem;color:var(--muted)}
.home-footer{color:var(--muted);font-size:.875rem;margin-top:1.5rem}.home-footer p{max-width:70ch}
.home-main :focus-visible{outline:3px solid var(--navigation-focus);outline-offset:3px}
.home-main [hidden]{display:none!important}
@media(max-width:540px){.home-main{padding:1rem}.home-ask-row{flex-direction:column}.home-ask-row button{align-self:flex-end}.home-shortcuts{gap:.625rem}.home-shortcut{padding:.875rem;min-height:7.5rem}.home-fields,.home-review{grid-template-columns:1fr}.home-top{align-items:start}.home-language{justify-content:flex-end}.home-language>span{font-size:.875rem}.home-result{padding:1rem}}
@media(prefers-reduced-motion:no-preference){.home-shortcut{transition:background-color 140ms ease,border-color 140ms ease}.home-result:not([hidden]){animation:home-result-in 140ms ease-out}@keyframes home-result-in{from{opacity:0}to{opacity:1}}}
.home-result .home-task-check{display:flex;align-items:center;gap:.65rem;min-height:44px;line-height:1.5;margin:.75rem 0}.home-task-check input{width:24px;min-width:24px;height:24px;min-height:24px}.home-match code{overflow-wrap:anywhere;font-size:.85em}#homeTasks h3{font-size:1.1rem;margin:.3rem 0}.home-match p{overflow-wrap:anywhere}#homeGames{margin-top:1.5rem}

#homeInbox summary{min-height:44px;cursor:pointer;font-size:1.2rem;font-weight:650;align-content:center}.assistant-proposal{margin:1rem 0;padding:1rem;border:1px solid var(--line);border-radius:var(--radius)}.assistant-proposal h3{font-size:1.1rem}#homeAssistant>button{min-height:48px}
.home-tournament-notice{border-block-start:1px solid var(--line);padding-block:1rem;overflow-wrap:anywhere}
.home-tournament-notice h3{font-size:1.125rem;line-height:1.5;margin:0}
.home-tournament-notice summary,.home-source-alternatives summary{cursor:pointer;min-height:44px;align-content:center;font-weight:600}
.home-source-alternatives{margin-top:1rem}.home-source-alternatives ul{padding-left:1.25rem}
.home-notice-warning{border-left:3px solid var(--court2);padding-left:.75rem}

.home-tournament-notice .review-source{min-width:0;border-top:1px solid var(--line);padding-top:1rem;margin-top:1rem}.home-tournament-notice .review-source h4{font-size:1rem;overflow-wrap:anywhere}.home-tournament-notice .review-source ul{display:block;padding-left:1.25rem}.home-tournament-notice .directory-notes{white-space:pre-wrap}

/* The motto is the quiet brand signature, with no external font dependency. */
.home-tagline{font-family:Georgia,'Times New Roman',serif;font-style:italic;font-size:clamp(1.125rem,2vw,1.375rem);font-weight:400;line-height:1.45;letter-spacing:.01em;color:var(--muted);margin:0;max-width:36ch;text-wrap:balance}
.home-top{margin-bottom:1.25rem}
.home-top:not(:has(*)){display:none}
a.home-shortcut{text-decoration:none}
.home-footer .brand-credit{display:inline-flex;align-items:center;flex-wrap:wrap;gap:.25em;min-height:44px;color:var(--muted);text-decoration:none}
.home-footer .brand-credit:hover{text-decoration:underline}
@media(max-width:540px){.home-top{flex-direction:column;gap:.75rem}.home-language{align-self:flex-end}.home-tagline{max-width:32ch}.home-main h1{margin-top:.25rem}}

.home-footer .brand-credit img{flex:none;width:24px;height:24px;margin-right:.25rem}
@media(max-width:540px){
 .home-top:empty{display:none}
.home-top:not(:has(*)){display:none}
 .home-main{padding-top:1rem}
}

.home-shortcut-icon{display:block;width:1.5rem;height:1.5rem;margin-bottom:.625rem;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.home-agent-body{min-width:0;overflow-wrap:anywhere}
#homeAgent .home-result-actions>*{max-width:100%;white-space:normal}
.agent-source{margin-top:1rem;border-top:1px solid var(--line);padding-top:.5rem}
.agent-source summary{cursor:pointer;min-height:44px;align-content:center;font-weight:600}
.home-fields>label{min-width:0;overflow-wrap:anywhere}
@media(max-width:540px){.home-fields{grid-template-columns:minmax(0,1fr)}}
@media(max-width:430px){.home-shortcut{flex-basis:100%;display:grid;grid-template-columns:1.5rem minmax(0,1fr);column-gap:.875rem;min-height:0}.home-shortcut-icon{grid-row:1 / 3;margin-top:.125rem;margin-bottom:0}.home-shortcut strong,.home-shortcut span{grid-column:2}}

/* Keep enlarged text readable: nested cards must not multiply rem gutters. */
@media(max-width:540px){
 .home-main{padding-inline:12px}
 #homeAgent{padding:12px}
 #homeAgent [data-agent-play-review] .home-match{padding:10px}
 #homeAgent [data-agent-play-review] .home-task-check{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;justify-items:start}
 #homeAgent .home-result-actions{display:grid;grid-template-columns:minmax(0,1fr)}
 #homeAgent .home-result-actions>*{width:100%;padding-inline:10px}
 #homeAgent .home-fields input,#homeAgent .home-fields select{padding-left:10px}
}

/* The first screen is a short choice, with the existing tools revealed only
   after the visitor asks for them. */
.home-journey{width:100%;max-width:none;flex:1;display:flex;flex-direction:column;margin:0 auto}
.home-journey-controls{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin:.25rem 0 .5rem}
.home-journey-controls[hidden]{display:none}
.home-main[data-journey=coach-detail] .home-journey,.home-main[data-journey=scores-detail] .home-journey,.home-main[data-journey=predict-detail] .home-journey,.home-main[data-journey=explore] .home-journey{flex:none}
.home-journey h1{margin:.25rem 0 clamp(1rem,2.5vh,1.75rem);font-size:var(--ganak-journey-title);line-height:1.15;letter-spacing:-.035em}
.home-journey-hint{margin:-.5rem 0 1.25rem;color:var(--muted);font-size:1rem}
.home-journey-grid{display:grid;flex:1;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(10rem,1fr);gap:clamp(.75rem,1.5vw,1.25rem)}
.home-journey-choice{display:flex;align-items:center;gap:clamp(1rem,2vw,1.75rem);min-width:0;min-height:10rem;padding:clamp(1.5rem,3vw,3rem);text-align:left;font:inherit;font-size:clamp(1.3rem,2vw,1.8rem);font-weight:700;line-height:1.3;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:calc(var(--radius) + .25rem);cursor:pointer;box-shadow:0 2px 10px rgba(0,0,0,.035)}
.home-journey-choice svg{flex:0 0 clamp(2.25rem,3vw,3.25rem);width:clamp(2.25rem,3vw,3.25rem);height:clamp(2.25rem,3vw,3.25rem);fill:none;stroke:var(--court2);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.home-goals .home-journey-choice{flex-direction:column;align-items:flex-start;justify-content:space-between;gap:0;text-align:right;padding:clamp(1.25rem,2vw,2rem)}
.home-goals .home-goal-art{display:block;flex:none;width:min(11rem,13vw,16svh);height:min(11rem,13vw,16svh);object-fit:contain}
.home-goals .home-journey-choice span{align-self:flex-end}
.home-main[data-journey=find] .home-journey{min-height:0}
.home-play-choices{min-height:0;grid-template-rows:repeat(2,minmax(0,1fr))}
.home-play-choices .home-journey-choice{min-height:0;padding:clamp(1rem,1.5vw,1.5rem)}
.home-play-choices .home-goal-art{width:clamp(7rem,10vw,9.5rem);height:clamp(7rem,10vw,9.5rem)}
.home-journey-choice:hover,.home-journey-choice[aria-pressed=true]{background:var(--hover);border-color:var(--court2)}
.home-journey-choice:active{transform:translateY(1px)}
.home-journey-choice span{overflow-wrap:anywhere;hyphens:none}
.home-sports{gap:1rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,max(14rem,calc((100% - 2rem)/3))),1fr))}
.home-vibe-choices .home-journey-choice{flex-direction:column;align-items:flex-start;justify-content:center}
.home-plan-choices .home-journey-choice{flex-direction:row;align-items:center;justify-content:flex-start}
.home-score-types .home-journey-choice{flex-direction:column;align-items:flex-start;justify-content:space-between;gap:0;text-align:right;padding:clamp(1rem,1.5vw,1.5rem)}
.home-score-art{width:clamp(7rem,11vw,10rem);height:clamp(7rem,11vw,10rem);object-fit:contain}
.home-score-types .home-journey-choice span{align-self:flex-end}
.home-play-tournaments{flex:1;display:flex;flex-direction:column;gap:1rem;max-width:70rem;width:100%}
.home-play-tournaments[hidden]{display:none}
.home-play-club{display:flex;flex-direction:column;gap:.4rem;max-width:26rem;font-weight:650}
.home-play-club select{min-height:48px;padding:.65rem;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);color:var(--ink);font:inherit}
.home-play-event-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}
.home-play-event{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-width:0;min-height:6rem;padding:1rem 1.25rem;text-align:left;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);color:var(--ink);font:inherit;cursor:pointer}
.home-play-event:hover{background:var(--hover);border-color:var(--court2)}
.home-play-event strong,.home-play-event small{display:block}
.home-play-event strong{font-size:1.15rem;line-height:1.3}
.home-play-event small{margin-top:.35rem;color:var(--muted);font-size:.9rem}
.home-play-event>span:last-child{font-size:1.6rem;color:var(--court2)}
.home-play-event-empty{margin:0;padding:1.25rem;border:1px solid var(--line);border-radius:var(--radius);color:var(--muted)}
.home-play-event-actions{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:1rem}
.home-play-event-actions a{min-height:48px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.home-advanced{max-width:48rem;margin:1.5rem auto 0}
.home-advanced h2{font-size:1.4rem;margin:0}
.home-main[data-journey]:not([data-journey=explore]) #homeAdvanced{display:none}
.home-main[data-journey=goals] :is(#homeContext,.home-session,#homeResult,#homeTasks,#homeInbox),
.home-main[data-journey=sports] :is(#homeContext,.home-session,#homeResult,#homeTasks,#homeInbox),
.home-main[data-journey=find] :is(#homeContext,.home-session,#homeResult,#homeTasks,#homeInbox),
.home-main[data-journey=score-type] :is(#homeContext,.home-session,#homeResult,#homeTasks,#homeInbox),
.home-main[data-journey=score-tournament] :is(#homeContext,.home-session,#homeResult,#homeTasks,#homeInbox),
.home-main[data-journey=watch-tournament] :is(#homeContext,.home-session,#homeResult,#homeTasks,#homeInbox),
.home-main[data-journey=enter-tournament] :is(#homeContext,.home-session,#homeResult,#homeTasks,#homeInbox),
.home-main[data-journey=follow] :is(#homeContext,.home-session,#homeResult,#homeTasks,#homeInbox),
.home-main[data-journey=plan] :is(#homeContext,.home-session,#homeResult,#homeTasks,#homeInbox),
.home-main[data-journey=vibe] :is(#homeContext,.home-session,#homeResult,#homeTasks,#homeInbox){display:none!important}
.home-main[data-journey=scores-detail] :is(#homeContext,.home-session,#homeTasks,#homeInbox),
.home-main[data-journey=predict-detail] :is(#homeContext,.home-session,#homeTasks,#homeInbox){display:none!important}
.home-main[data-journey=coach-detail] :is(#homeContext,.home-session,#homeTasks,#homeInbox){display:none!important}
/* The home header has only the two shortcuts the visitor needs immediately. */
.ganak-home-page .sitebar:has(.primary-nav){grid-template-columns:minmax(0,1fr) auto;align-items:center}
.ganak-home-page .sitebar .primary-nav,.ganak-home-page .sitebar .theme-toggle{display:none!important}
.ganak-home-page:has(.home-main[data-journey=goals]) .sitebar .app-language{display:none!important}
.ganak-home-page .sitebar .site-actions{grid-column:2;grid-row:1}
.home-footer{margin-top:clamp(1rem,2vh,1.5rem)}
@media(min-width:701px){
 .home-journey-grid:is(.home-plan-choices,.home-score-types){flex:none;grid-auto-rows:var(--ganak-choice-card-height)}
 .home-journey-grid:is(.home-plan-choices,.home-score-types) .home-journey-choice{min-height:var(--ganak-choice-card-height)}
}
@media(max-width:900px){
 .home-play-choices{grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(4,minmax(0,1fr));grid-auto-rows:auto}
 .home-play-choices .home-journey-choice{flex-direction:row;align-items:center;justify-content:space-between;gap:.75rem;padding:.75rem 1rem}
 .home-play-choices .home-goal-art{width:clamp(5rem,12vw,7rem);height:clamp(5rem,12vw,7rem)}
 .home-play-choices .home-journey-choice span{max-width:calc(100% - 6rem);line-height:1.2;text-align:right;white-space:normal}
}
@media(max-width:700px){
 .home-main{padding:1rem 12px .75rem}
 .home-journey-grid{gap:.75rem}
 .home-journey-choice{min-height:7rem;padding:1.25rem;font-size:1.25rem}
 .home-sports{grid-template-columns:repeat(auto-fit,minmax(min(100%,8.5rem),1fr))}
 .home-follow-choices{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:540px){
 .ganak-home-page .sitebar .mobile-toolbar .header-courts{display:none!important}
 .ganak-home-page .sitebar .site-actions{display:flex;align-items:center;gap:.5rem}
 .ganak-home-page .sitebar .header-courts{width:48px;min-width:48px}
 .home-journey h1{margin:.25rem 0 1rem}
 .home-goals{grid-template-columns:minmax(0,1fr);grid-template-rows:repeat(4,minmax(5.75rem,1fr));grid-auto-rows:auto}
 .home-goals .home-journey-choice{min-height:5.75rem;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem;padding:.75rem 1rem}
 .home-goals .home-goal-art{width:min(7rem,30vw);height:auto;aspect-ratio:1}
 .home-goals .home-journey-choice span{max-width:100%;min-width:0;margin-left:auto;text-align:right;overflow-wrap:normal;hyphens:none}
 .home-play-choices{grid-template-rows:repeat(4,minmax(0,1fr))}
 .home-play-choices .home-journey-choice{min-height:0;flex-wrap:wrap}
 .home-play-choices .home-goal-art{width:min(5.5rem,30vw);height:auto;aspect-ratio:1}
 .home-play-choices .home-journey-choice span{max-width:100%;min-width:0}
 .home-journey-choice{padding:1rem 1.25rem;min-height:5.75rem}
 .home-journey-grid{gap:.625rem}
 .home-sports,.home-play-choices,.home-vibe-choices,.home-follow-choices,.home-plan-choices{grid-auto-rows:minmax(5.75rem,1fr)}
 .home-sports .home-journey-choice{flex-direction:column;align-items:flex-start;justify-content:center;gap:.5rem;padding:.75rem;font-size:1.0625rem;white-space:nowrap}
 .home-sports .home-journey-choice svg{flex-basis:2.25rem;width:2.25rem;height:2.25rem}
 .home-vibe-choices{grid-template-columns:repeat(auto-fit,minmax(min(100%,8.5rem),1fr))}
 .home-plan-choices{grid-template-columns:minmax(0,1fr)}
 .home-vibe-choices .home-journey-choice{gap:.5rem;padding:.75rem;font-size:1.125rem}
 .home-plan-choices .home-journey-choice{gap:1rem;padding:1.25rem;font-size:1.3rem}
 .home-score-types{grid-template-columns:repeat(auto-fit,minmax(min(100%,10rem),1fr));grid-auto-rows:minmax(9rem,1fr)}
 .home-score-types .home-journey-choice{padding:1rem;font-size:1.125rem}
 .home-score-art{width:5rem;height:5rem}
 .home-play-event-list{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:380px) and (max-height:700px){
 .home-main{padding-top:.5rem}
 .home-main[data-journey=goals] .home-top{display:none}
 .home-goals{gap:.5rem}
 .home-goals{grid-template-rows:repeat(4,minmax(4.25rem,1fr))}
 .home-goals .home-journey-choice{min-height:4.25rem;flex-wrap:nowrap;gap:.5rem;padding-block:.35rem;font-size:1.1rem}
 .home-goals .home-goal-art{width:3.6rem;height:3.6rem}
 .home-goals .home-journey-choice span{max-width:calc(100% - 4.1rem)}
 .home-play-choices{grid-template-rows:repeat(4,minmax(3.9rem,1fr))}
 .home-play-choices .home-journey-choice{min-height:3.9rem}
 .home-play-choices .home-goal-art{width:3rem;height:3rem}
 .home-main[data-journey=find] .home-journey-controls{margin-bottom:0}
 .home-main[data-journey=find] .home-footer{margin-top:.25rem}
 .home-footer{margin-top:.75rem}
 .home-vibe-choices .home-journey-choice{font-size:1rem;padding:.5rem}
 .home-vibe-choices .home-journey-choice svg{width:2rem;height:2rem;flex-basis:2rem}
 .home-score-types{grid-template-columns:minmax(0,1fr);grid-auto-rows:minmax(6rem,1fr)}
 .home-score-types .home-journey-choice{flex-direction:row;flex-wrap:wrap;align-items:center;min-height:6rem;gap:.5rem}
 .home-score-types .home-journey-choice span{min-width:0;max-width:100%;overflow-wrap:anywhere}
 .home-score-art{width:4rem;height:4rem}
}
@media(prefers-reduced-motion:no-preference){.home-journey-choice{transition:background-color .16s ease,border-color .16s ease,transform .16s ease,box-shadow .16s ease}.home-journey-choice:hover{transform:none;box-shadow:0 6px 18px rgba(0,0,0,.07)}.home-journey-grid:not([hidden]){animation:home-result-in .2s ease-out}}

/* Every journey card uses the Home card's layout, typography, and standalone artwork. */
:is(.home-plan-choices,.home-sports,.home-follow-choices,.home-vibe-choices) .home-journey-choice{flex-direction:column;align-items:flex-start;justify-content:space-between;gap:0;padding:clamp(1.25rem,2vw,2rem);background:var(--surface);box-shadow:0 2px 10px rgba(0,0,0,.035)}
:is(.home-plan-choices,.home-sports,.home-follow-choices,.home-vibe-choices) .home-journey-choice:hover{background:var(--hover);box-shadow:0 6px 18px rgba(0,0,0,.07)}
:is(.home-plan-choices,.home-sports,.home-follow-choices,.home-vibe-choices) .home-journey-choice span{flex:none;align-self:flex-end;max-width:100%;font-family:inherit;font-size:clamp(1.3rem,2vw,1.8rem);font-weight:700;line-height:1.3;letter-spacing:0;text-align:right;text-wrap:balance}
.home-journey-choice .home-journey-art{display:block;flex:none;width:min(11rem,13vw,16svh);height:min(11rem,13vw,16svh);stroke:none;fill:none}
.home-journey-sprite{background-image:url('/assets/ganak-journey-atlas.png');background-size:400% 400%;background-position:var(--sprite-x) var(--sprite-y);background-repeat:no-repeat}
[data-home-plan=tournament]{--sprite-x:0%;--sprite-y:0%}
[data-home-plan=auction]{--sprite-x:33.333%;--sprite-y:0%}
.home-sport-art{object-fit:contain}
[data-home-follow=scores]{--sprite-x:0%;--sprite-y:66.667%}
[data-home-follow=results]{--sprite-x:100%;--sprite-y:66.667%}
[data-home-follow=auction]{--sprite-x:33.333%;--sprite-y:66.667%}
[data-home-vibe=memories]{--sprite-x:66.667%;--sprite-y:66.667%}
[data-home-vibe=leaderboard]{--sprite-x:100%;--sprite-y:66.667%}
[data-home-vibe=predict]{--sprite-x:0%;--sprite-y:100%}
[data-home-vibe=coaching]{--sprite-x:33.333%;--sprite-y:100%}
.home-plan-choices,.home-follow-choices{flex:none;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(10rem,1fr)}
.home-sports .home-journey-choice .home-journey-art{flex:none;width:min(100%,clamp(6rem,9vw,9rem),14svh);height:auto;aspect-ratio:1}
@media(max-width:700px){
 :is(.home-plan-choices,.home-follow-choices,.home-vibe-choices) .home-journey-choice{flex-direction:row;align-items:center;gap:.75rem;padding:.75rem 1rem}
 :is(.home-plan-choices,.home-follow-choices,.home-vibe-choices) .home-journey-choice .home-journey-art{flex:0 0 clamp(6rem,22vw,8rem);width:clamp(6rem,22vw,8rem);height:clamp(6rem,22vw,8rem)}
 .home-sports .home-journey-choice{justify-content:space-between;gap:.25rem;padding:.75rem}
 .home-sports .home-journey-choice .home-journey-art{flex:0 0 4.75rem;width:4.75rem;height:4.75rem}
 :is(.home-plan-choices,.home-sports,.home-follow-choices,.home-vibe-choices) .home-journey-choice span{min-width:0;font-size:clamp(1.08rem,4vw,1.5rem)}
}
@media(max-width:540px){
 .home-plan-choices,.home-follow-choices,.home-vibe-choices{grid-template-columns:minmax(0,1fr);grid-auto-rows:minmax(6rem,1fr)}
 :is(.home-plan-choices,.home-follow-choices,.home-vibe-choices) .home-journey-choice span{flex:1 1 8ch}
 :is(.home-plan-choices,.home-follow-choices,.home-vibe-choices) .home-journey-choice{flex-wrap:wrap}
}
@media(max-width:380px) and (max-height:700px){
 :is(.home-vibe-choices,.home-follow-choices){grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:minmax(0,1fr);gap:.5rem}
 .home-main:is([data-journey=vibe],[data-journey=follow]) .home-footer{margin-top:.25rem}
 :is(.home-vibe-choices,.home-follow-choices) .home-journey-choice{flex-direction:column;flex-wrap:nowrap;gap:.25rem;padding:.5rem;min-height:0}
 :is(.home-vibe-choices,.home-follow-choices) .home-journey-choice .home-journey-art{flex:none;width:3rem;height:3rem}
 :is(.home-vibe-choices,.home-follow-choices) .home-journey-choice span{flex:none;font-size:1rem;overflow-wrap:anywhere}
 .home-sports{grid-template-columns:repeat(auto-fit,minmax(min(100%,8.5rem),1fr))}
 .home-sports .home-journey-choice{padding:.5rem;white-space:normal}
 .home-sports .home-journey-choice .home-journey-art{flex:none;width:min(2rem,100%);height:auto;aspect-ratio:1}
}

/* Width-based wrapping belongs to horizontal cards. A flex basis on a
   desktop column becomes empty label height and pushes choices below the fold. */
.home-goals .home-journey-choice span{flex:none;overflow-wrap:anywhere}
@media(max-width:900px){
 .home-play-choices .home-journey-choice{flex-wrap:wrap}
 .home-play-choices .home-journey-choice span{flex:1 1 12ch}
}
@media(max-width:540px){
 .home-goals .home-journey-choice{flex-wrap:wrap}
 .home-goals .home-journey-choice span{flex:1 1 12ch}
}
@media(min-width:541px) and (max-height:800px){
 :is(.home-goals,.home-vibe-choices) .home-journey-choice{flex-direction:row;flex-wrap:wrap;align-items:center;gap:1rem}
 :is(.home-goals,.home-vibe-choices) .home-journey-choice span{flex:1 1 12ch;align-self:center}
}

.home-play-event>span:first-child{min-width:0;overflow-wrap:anywhere}
.home-play-event>span:last-child{flex:none}

.home-journey h1{overflow-wrap:anywhere;hyphens:auto}

/* Keep privacy preferences in the existing footer instead of adding a second row. */
.home-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.5rem}
.home-footer #analyticsControls{max-width:100%}
.home-footer .analytics-footer{padding:0}

/* Home keeps its task cards in place while account context is verified. */
.home-top>.home-language{display:none}
.home-journey-choice:disabled{opacity:.65;cursor:progress;transform:none!important}
.home-journey[aria-busy=true] .home-journey-grid{animation:none}
.home-loading-grid{flex:none;min-height:16rem}

.home-main[data-context=error] #homeSessionStatus{display:flex!important}

.home-journey .ui-skeleton-title{height:1.14em;width:18ch;max-width:100%}

/* Initial HTML must not flash advanced settings before the journey module starts. */
.home-main[data-journey=loading] :is(#homeContext,.home-session,#homeResult,#homeTasks,#homeInbox){display:none!important}

/* The journey already names Ask Ganak; retain one heading and keep answers
   ahead of optional shortcuts without removing those destinations. */
.home-main[data-journey=explore] #homeAdvanced{display:contents}
.home-main[data-journey=explore] #homeAdvanced>h2,
.home-main[data-journey=explore] #homeAdvanced>.home-intro{display:none}
.home-main[data-journey=explore]{display:flex;flex-direction:column}
.home-main[data-journey=explore]>#homeResult{order:1}
.home-main[data-journey=explore]>#homeContext{order:2}
.home-main[data-journey=explore]>#homeSessionStatus{order:3}
.home-main[data-journey=explore]>#homeTasks{order:4}
.home-main[data-journey=explore]>#homeInbox{order:5}
.home-main[data-journey=explore] .home-shortcuts{order:6}
