/* Direct puzzle links keep the board shell while data loads, never the homepage. */
#cast-six-timed .tc-opening-panel{display:none}
html.tc-opening #cast-six-timed #tc-start,html.tc-opening #cast-six-timed .tc-intro{display:none}
html.tc-opening #cast-six-timed>.tc-header{display:flex}
html.tc-opening #cast-six-timed .tc-main{padding-top:10px}
html.tc-opening #cast-six-timed .tc-opening-panel{display:grid;flex:1;min-height:0;grid-template-rows:minmax(120px,1.8fr) 44px minmax(160px,1fr);gap:12px}
#cast-six-timed .tc-opening-posters,#cast-six-timed .tc-opening-slots{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;min-height:0}
#cast-six-timed .tc-opening-slots{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr))}
#cast-six-timed .tc-opening-panel i{display:block;border:1px solid var(--tc-line);border-radius:8px;background:var(--tc-panel)}
#cast-six-timed .tc-opening-panel p{align-self:center;margin:0;text-align:center;font-size:14px;color:var(--tc-muted)}

/* Check, hints and editing tools share the row between posters and categories. */
#cast-six-timed #tc-playarea,#cast-six-timed #tc-playarea:has(.tc-view-result:not([hidden])){grid-template-rows:minmax(130px,1.8fr) auto 20px minmax(160px,1fr)}
#cast-six-timed .tc-board-tools{display:flex;align-items:stretch;gap:8px}
#cast-six-timed .tc-board-tools>button{min-height:44px;min-width:44px;margin:0;padding:8px 14px;white-space:nowrap;font-size:14px}
#cast-six-timed .tc-board-tools #tc-check{flex:1;min-width:0}
#cast-six-timed .tc-tool-button{display:flex;align-items:center;justify-content:center;gap:8px}
#cast-six-timed .tc-tool-button svg{flex:none}
#cast-six-timed .tc-board-tools .tc-poster-peek{padding:0}
#cast-six-timed .tc-board-tools .tc-view-result{flex:1}
#cast-six-timed .tc-board-tools:has(.tc-view-result:not([hidden]))>button:not(.tc-view-result){display:none}
#cast-six-timed .tc-a11y-status{position:absolute;width:1px;height:1px;min-height:0;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media(min-width:601px) and (min-height:481px){
 #cast-six-timed .tc-board-tools{justify-content:center}
 #cast-six-timed .tc-board-tools #tc-check{flex:0 1 300px}
}
@media(max-width:600px){
 #cast-six-timed #tc-playarea,#cast-six-timed #tc-playarea:has(.tc-view-result:not([hidden])){grid-template-rows:minmax(110px,1.15fr) auto 16px minmax(186px,1fr);gap:5px}
 #cast-six-timed .tc-board-tools{gap:5px}
 #cast-six-timed .tc-board-tools>button{font-size:12px;padding:8px}
 #cast-six-timed .tc-board-tools .tc-tool-button{flex:0 0 44px;padding:0}
 #cast-six-timed .tc-tool-button span{display:none}
 #cast-six-timed .tc-board-tools .tc-poster-peek{flex-basis:44px}
 html.tc-opening #cast-six-timed .tc-opening-panel{grid-template-rows:minmax(110px,1.15fr) 44px minmax(186px,1fr);gap:8px}
 #cast-six-timed .tc-opening-posters{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:6px}
 #cast-six-timed .tc-opening-slots{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:6px}
}
@media(min-width:601px) and (max-height:700px) and (min-height:481px){
 #cast-six-timed #tc-playarea,#cast-six-timed #tc-playarea:has(.tc-view-result:not([hidden])){grid-template-rows:minmax(110px,1.6fr) auto 16px minmax(150px,1fr)}
}
@media(min-width:601px) and (max-height:480px){
 #cast-six-timed #tc-playarea,#cast-six-timed #tc-playarea:has(.tc-view-result:not([hidden])){grid-template-columns:minmax(0,.85fr) minmax(0,1.4fr);grid-template-rows:auto minmax(112px,1fr)}
 #cast-six-timed .tc-movies{grid-column:1;grid-row:1/3}
 #cast-six-timed .tc-board-tools{gap:5px}
 #cast-six-timed .tc-board-tools>button{padding:8px;font-size:12px}
 #cast-six-timed .tc-tool-button span{display:none}
 #cast-six-timed .tc-board-tools .tc-view-result{grid-column:auto;grid-row:auto}
 html.tc-opening #cast-six-timed .tc-opening-panel{grid-template-columns:1fr 1.4fr;grid-template-rows:32px minmax(112px,1fr)}
 #cast-six-timed .tc-opening-posters{grid-column:1;grid-row:1/3;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr))}
 #cast-six-timed .tc-opening-panel p{grid-column:2;grid-row:1}
 #cast-six-timed .tc-opening-slots{grid-column:2;grid-row:2}
}

/* Named editions fit the existing board; their introduction lives in More. */
#cast-six-timed #tc-run-mode{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#cast-six-timed .tc-header-right{min-width:0}
#cast-six-timed .tc-number{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:240px}
.tc-puzzle-info{box-sizing:border-box;width:min(520px,calc(100vw - 32px));max-height:calc(100svh - 32px);overflow:auto;background:var(--tc-bg,#f5f2e9);color:var(--tc-ink,#242720);border:1px solid var(--tc-line,#d2d3c5);border-radius:16px;padding:28px;font:16px/1.6 'DM Sans',sans-serif}
.tc-puzzle-info h2{margin:24px 0 12px;font:600 36px/1.1 'Barlow Condensed',sans-serif}
.tc-puzzle-info a{color:inherit}
.tc-puzzle-info button{float:right;width:44px;height:44px;background:transparent;color:inherit;border:1px solid currentColor;border-radius:8px;font-size:24px}
.tc-puzzle-info::backdrop{background:#0009;backdrop-filter:blur(5px)}
@media(prefers-color-scheme:dark){.tc-puzzle-info{background:#1b1e18;color:#f5f2e9;border-color:#44483e}}

#cast-six-timed .tc-opening-posters i{overflow:hidden}
#cast-six-timed .tc-opening-posters img{width:100%;height:100%;object-fit:cover}
