/* DailyBrainArc V0.573 Q9 – FreeCell: game-first desktop and touch-first mobile.
   Presentation only: original FreeCell deal, move, undo and persistence engines remain unchanged. */
body.freecell-v0397{--fc397-green1:#0a795c;--fc397-green2:#064634;--fc397-card:#fffefa}
body.freecell-v0397 .fc397-page{max-width:1480px;width:min(100%,1480px);padding-top:8px;padding-bottom:32px}
body.freecell-v0397 .fc397-heading{align-items:center;min-height:47px;gap:12px;margin:0 0 8px}
body.freecell-v0397 .fc397-heading h1{font-size:clamp(28px,3vw,39px);line-height:1.06;margin:0}
body.freecell-v0397 .fc397-heading .eyebrow{font-size:.6rem;line-height:1.1;letter-spacing:.12em}
body.freecell-v0397 .fc397-heading p{font-size:.81rem;line-height:1.18;margin:2px 0 0;max-width:700px}
body.freecell-v0397 .fc397-shell{padding:8px;border-radius:18px;border:1px solid #d3dedb;box-shadow:0 15px 35px rgba(12,50,44,.1)}
body.freecell-v0397 .fc397-scorebar{margin-bottom:5px;gap:5px}
body.freecell-v0397 .fc397-scorebar>div{padding:4px 9px;background:#f0f7f5;border:1px solid #d9eae5;border-radius:8px}
body.freecell-v0397 .fc397-scorebar small{color:#527269;font-size:.56rem}
body.freecell-v0397 .fc397-scorebar strong{font-size:.84rem;color:#142d29}
body.freecell-v0397 .fc397-table{--fcw:clamp(60px,7.9vw,106px);--fch:calc(var(--fcw)*1.19);--fc573-step:clamp(19px,2.1vw,28px);min-height:0;padding:10px 11px 12px;border-radius:14px;
 background:radial-gradient(ellipse at 42% 13%,rgba(48,177,131,.3),transparent 54%),linear-gradient(155deg,#0b7757,#044333 87%);
 box-shadow:inset 0 0 0 1px rgba(255,255,255,.23),0 6px 22px rgba(2,37,26,.18)}
body.freecell-v0397 .fc397-toprow{margin-bottom:8px;gap:12px}
body.freecell-v0397 .fc397-pile-group>small{margin-bottom:3px;font-size:.56rem;color:#d4f3e6}
body.freecell-v0397 .fc-slots{gap:5px}
body.freecell-v0397 .fc-slot{border-radius:9px}
body.freecell-v0397 .fc-columns{gap:7px}
body.freecell-v0397 .fc-column{height:calc(var(--fch) + (var(--count) - 1)*var(--fc573-step))}
body.freecell-v0397 .fc-card{top:calc(var(--i)*var(--fc573-step));border-radius:9px;padding:4px 6px;box-shadow:0 3px 8px rgba(0,16,12,.2)}
body.freecell-v0397 .fc-rank{font-size:clamp(.9rem,1.45vw,1.15rem);letter-spacing:-.035em}
body.freecell-v0397 .fc-suit{font-size:clamp(1.1rem,2.1vw,1.75rem);margin-top:2px}
body.freecell-v0397 .fc397-toolbar{margin-top:6px;gap:6px}
body.freecell-v0397 .fc397-tool{min-height:38px;border-radius:10px}
body.freecell-v0397 .fc397-tool.primary{background:#083f32;border-color:#083f32;color:white}
body.freecell-v0397 .fc397-status-row{margin-top:5px}
body.freecell-v0397 .fc397-status-row .status{padding:5px 9px;min-height:28px}
body.freecell-v0397 .fc397-details{margin-top:8px}
@media (min-width:701px) and (max-height:790px){
 body.freecell-v0397 .fc397-page{padding-top:5px}
 body.freecell-v0397 .fc397-heading{min-height:40px;margin-bottom:5px}
 body.freecell-v0397 .fc397-heading h1{font-size:30px}
 body.freecell-v0397 .fc397-heading p{display:none}
 body.freecell-v0397 .fc397-table{--fcw:clamp(55px,7.5vw,95px);--fc573-step:clamp(16px,2vw,25px);padding:7px 9px 8px}
 body.freecell-v0397 .fc397-toprow{margin-bottom:6px}
 body.freecell-v0397 .fc397-scorebar>div{padding:3px 7px}
 body.freecell-v0397 .fc397-tool{min-height:35px}
}
@media (min-width:701px) and (max-height:670px){
 body.freecell-v0397 .fc397-table{--fcw:clamp(52px,7vw,86px);--fc573-step:clamp(15px,1.8vw,21px)}
 body.freecell-v0397 .fc397-heading .eyebrow{display:none}
 body.freecell-v0397 .fc397-heading{min-height:33px}
 body.freecell-v0397 .fc397-heading h1{font-size:27px}
 body.freecell-v0397 .fc397-status-row{display:none}
}
@media(max-width:700px){
 body.freecell-v0397 .fc397-page{padding-top:6px}
 body.freecell-v0397 .fc397-heading{min-height:35px;margin-bottom:5px}
 body.freecell-v0397 .fc397-heading h1{font-size:29px}
 body.freecell-v0397 .fc397-heading p,body.freecell-v0397 .fc397-heading .eyebrow{display:none}
 body.freecell-v0397 .fc397-shell{padding:5px;border-radius:13px}
 body.freecell-v0397 .fc397-table{--fcw:calc((100vw - 54px)/8);--fch:calc(var(--fcw)*1.29);--fc573-step:clamp(19px,5vw,27px);padding:6px 7px 9px;border-radius:10px}
 body.freecell-v0397 .fc397-toprow{gap:4px;margin-bottom:7px}
 body.freecell-v0397 .fc397-pile-group>small{font-size:.48rem}
 body.freecell-v0397 .fc-slots,body.freecell-v0397 .fc-columns{gap:3px}
 body.freecell-v0397 .fc-column{height:calc(var(--fch) + (var(--count) - 1)*var(--fc573-step))}
 body.freecell-v0397 .fc-card{top:calc(var(--i)*var(--fc573-step));padding:2px 3px;border-radius:6px}
 body.freecell-v0397 .fc-rank{font-size:clamp(.64rem,2.8vw,.86rem);line-height:1.08}
 body.freecell-v0397 .fc-suit{font-size:clamp(.8rem,4vw,1.15rem);margin-top:1px}
 body.freecell-v0397 .fc397-tool{min-height:41px}
 body.freecell-v0397 .fc397-toolbar{gap:3px}
 body.freecell-v0397 .fc397-scorebar>div{padding:4px 2px}
 body.freecell-v0397 .fc397-scorebar strong{font-size:.7rem}
 body.freecell-v0397 .fc397-scorebar small{font-size:.48rem}
}
@media(max-width:340px){
 body.freecell-v0397 .fc397-table{--fcw:calc((100vw - 48px)/8);--fc573-step:18px;padding:5px}
 body.freecell-v0397 .fc-rank{font-size:.61rem}
}
/* Face indices must stay visible in short cascades: browser buttons otherwise center contents vertically. */
body.freecell-v0397 .fc-card{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start}
body.freecell-v0397 .fc-card .fc-rank{flex:0 0 auto;margin:0}
body.freecell-v0397 .fc-card .fc-suit{align-self:center;flex:0 0 auto}
