/* Atelier · carta, inchiostro, salvia. Colori semantici di gioco conservati. */
body[data-restyle]{--accent:#b7d8b8;--accent-ink:#182b24;--brand1:#b7d8b8;--brand2:#dfa980;--brand3:#b7d8b8;--brand-grad:#b7d8b8;--grad:#b7d8b8;--surface:#20322d;--card:#20322d;--bg-panel:#20322d;--bg-input:#162620;--bg-secondary:#2b4138;--line:#486053;--border-color:var(--line);--text:#f6f2df;--muted:#c1cebf;--text-muted:var(--muted);background:#17261f;color:var(--text)}
body[data-restyle].light{--accent:#345942;--accent-ink:#fff;--brand1:#345942;--brand2:#855c3b;--surface:#fffaf0;--card:var(--surface);--bg-panel:var(--surface);--bg-input:#fffdf5;--bg-secondary:#e9ecdf;--line:#c8cdbc;--border-color:var(--line);--text:#24362a;--muted:#526050;--text-muted:var(--muted);background:#f4f1e7}
body[data-restyle] :is(h1,h2,.ta-header__title),body.ss-app :is(h1,h2,h3){font-family:Georgia,'Times New Roman',serif;font-weight:500;letter-spacing:-.035em}
body[data-restyle] .card img,.atelier-banner{display:block;width:100%;object-fit:cover;aspect-ratio:2.4;height:auto;border-radius:12px}
body[data-restyle] .detail__img{width:100%;object-fit:contain;max-height:280px}
body.ss-app{--ss-muted:#495e4f;--ss-bg:#f7f3e8;--ss-text:#23392e;--ss-purple:#386549;--ss-cyan:#386549;--ss-line:#c4cbbd;--ss-line-strong:#acb8a2;--ss-surface:#fffaf1;--ss-surface-strong:#f4efe1;color:#23392e;background:#f7f3e8}
.ss-app .ss-ambient{display:none}
.ss-app :is(.ss-header,.ss-footer){background:#e9e9d9;color:#23392e}
.ss-app :is(.home-checkin,.lab-console,.lab-card,.home-tool,.home-name,.home-final,.home-modal__panel,.lab-final){background:#fffaf1;color:#23392e;border:1px solid #c4cbbd;box-shadow:0 8px 30px #334c3610}
.ss-app :is(h1,h2,h3,h1 span,.ss-brand__name,.ss-brand__name strong,.ss-kicker,.ss-eyebrow,.home-checkin__top,.lab-console__top){color:#31523e;background-image:none;-webkit-text-fill-color:currentColor}
.ss-app :is(p,.lab-console__readout,.home-checkin__result,.home-checkin__choices button,.lab-console__labels button,.ss-button--ghost){color:#324c3b;background-color:#eef0e2}
.ss-app p{background:none}
.ss-app .ss-button--primary,.ss-app :is(.home-checkin__choices,.lab-console__labels) .is-active{color:#fff;background:#365a42;border-color:#365a42}
.ss-app .atelier-banner{margin-bottom:1.3rem}
.ss-app .ss-button,.ss-app .lab-card,.ss-app .home-checkin{border-radius:18px}
body[data-restyle] .new-stage button:focus-visible,.ss-app :focus-visible{outline:3px solid #ba7849;outline-offset:3px}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}}
body[data-practice="testo"] :is(.listen,.pause,.stop,#m-play,#m-pause,#m-stop,#m-time,#m-cur,#m-dur,#m-seek,.media-bar){display:none!important}
.ss-app :is(.ss-nav a.is-active,.ss-nav a:hover,.ss-footer strong,.ss-footer a:hover,.home-checkin__result strong,.lab-console__readout strong,.lab-card__cta,.lab-card__type,.lab-card__number,.home-name__copy strong,.lab-hero__meta strong){color:#30573c}
.ss-app :is(.home-tool small,.home-checkin__status,.lab-console__status,.lab-console__hint,.lab-card__tags span,.home-checkin__result small){color:#506450}
.ss-app :is(.lab-bottom__content,.lab-card__icon,.home-tool__visual,.home-modal__head button){background:#e4e9db;color:#345943;border-color:#b6c4ad}
.ss-app :is(.ss-button--primary,.ss-button--primary:hover,.lab-card,.home-checkin){box-shadow:0 5px 18px #243b2514}
.ss-app :is(.home-checkin__result-dot,.ss-eyebrow__dot){background:#79916b;box-shadow:none}
body[data-restyle]{--text-light:var(--text)}
body[data-restyle] :is(.action-btn.brand,.btn--pill,.btn.more),body.ss-chat-page .tab.active{background:var(--accent);color:var(--accent-ink);border:1px solid var(--accent);box-shadow:none}
body[data-restyle] .card:hover{border-color:var(--accent)}
body[data-restyle] .new-board .lit{background:#567545!important}body[data-restyle] .new-board .chosen{background:#88603f!important}
body[data-restyle] :focus-visible{outline-color:var(--accent)}
body[data-restyle] .atelier-play{display:flex;align-items:center;gap:.7rem;flex-wrap:wrap}.atelier-play p{flex-basis:100%;font:1.35rem/1.5 Georgia,serif}.atelier-play button:disabled{opacity:.68}
body[data-restyle] #game-selection{counter-reset:scheda}body[data-restyle] #game-selection button{counter-increment:scheda;border:1px solid var(--line);border-radius:16px}body[data-restyle] #game-selection button::before{content:counter(scheda,decimal-leading-zero);display:block;font:italic .84rem Georgia,serif;margin-bottom:10px;opacity:.8;position:static;width:auto;height:auto;background:none}
.ss-app .lab-card{--card-accent:#56795e}
.ss-app .home-tool h3 a{color:inherit;text-decoration-color:#9cae96;text-underline-offset:.2em}
body[data-restyle] #game-selection button::before{display:block!important}
body[data-restyle] #game-selection .brand small{color:var(--accent-ink)}
@media(max-width:520px){.ss-app .home-name{padding-inline:18px}.ss-app .home-synapse svg{width:100%;height:auto}body[data-restyle] .atelier-play button{min-width:44%;white-space:normal}}
.ss-app .home-checkin__result :is(span,a){color:#45644e}
.ss-app .home-tool>span,.ss-app .lab-hero__meta span{color:#4a654f}
.ss-app .home-checkin__result a:hover{color:#213b2a}
.ss-app .home-tool__visual,.ss-app .lab-console__wave{color:#688469}
.ss-app #strumenti,.ss-app #percorsi{scroll-margin-top:6rem}
/* Edizione fotografica: testi leggibili e schede sempre disponibili. */
.ss-app.ss-lab-page .lab-grid .lab-card{opacity:1;filter:none;box-shadow:none;transform:none;background:#fff;border:1px solid #c8d2cc;border-radius:20px;min-height:0;padding:18px;gap:0}
.ss-app.ss-lab-page .lab-grid .lab-card:is(:hover,:focus-visible){border-color:#426652;box-shadow:0 3px 12px #16302312}
.ss-app.ss-lab-page .lab-card .percorso-foto{width:100%;height:auto;aspect-ratio:1.95;object-fit:cover;object-position:50% 35%;border-radius:10px;margin-top:14px;display:block}
.ss-app :is(.lab-card,.home-tool,.home-hero__copy,.lab-hero__copy,.lab-section-heading,.home-final,.lab-bottom) p{background:transparent;color:#3e534a}
.ss-app :is(.lab-card h3,.home-tool h3,.lab-section-heading h2),body[data-restyle] :is(.ta-header__title,.gym-intro h2){font-family:system-ui,sans-serif;font-weight:650;letter-spacing:-.045em}
.ss-app .lab-card h3{font-size:clamp(1.22rem,2vw,1.55rem);margin:16px 0 8px}
.ss-app.ss-lab-page .lab-card__tags span{background:#f1f4ef;color:#3a5346;border:0}
.ss-app.ss-lab-page .lab-card.is-recommended .percorso-consiglio{background:#dcefe4;color:#224e37}
.ss-app .lab-console{min-height:0;height:auto;display:grid;padding:14px;gap:12px;box-shadow:none;border-radius:20px;transform:none}
.ss-app .lab-console::before,.ss-app .lab-console__wave,.ss-app .lab-console__hint{display:none}
.ss-app .lab-console .lab-console__top{padding:6px 2px}
.ss-app .lab-console :is(.lab-console__labels,.lab-console__readout){position:static;margin:0;min-width:0}
.ss-app .lab-console .lab-console__readout{border-radius:10px;padding:10px 12px;background:#eef3ed}
.ss-app .lab-console__readout span{color:#40574a;font-size:.82rem}
.ss-app :is(.home-tool,.home-checkin,.lab-console) .atelier-banner{aspect-ratio:1.85;object-fit:cover;object-position:50% 38%;margin:0 0 12px}
.ss-app .lab-console .atelier-banner{margin:0}
body[data-restyle] .card img{aspect-ratio:1.65;object-position:center 36%}
body[data-restyle] .detail__img{background:var(--bg-secondary);object-fit:contain}
@media(max-width:640px){.ss-app .lab-console .lab-console__labels{grid-template-columns:repeat(2,minmax(0,1fr))}.ss-app .lab-card .lab-card__cta{min-height:44px}.ss-app.ss-lab-page .lab-grid .lab-card{padding:14px}}
body[data-restyle] .gym-intro.foto-giochi{display:grid;grid-template-columns:minmax(120px,210px) 1fr;align-items:center;gap:clamp(16px,3vw,36px)}
.foto-giochi img{display:block;width:100%;height:auto;aspect-ratio:1.45;object-fit:cover;border-radius:14px}
@media(max-width:560px){body[data-restyle] .gym-intro.foto-giochi{grid-template-columns:1fr}.foto-giochi img{aspect-ratio:2.1}}

.ss-app .home-invito{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr);align-items:center;gap:clamp(22px,5vw,72px);margin-block:clamp(40px,8vw,100px)}
.home-invito img{display:block;width:100%;aspect-ratio:1.6;object-fit:cover;border-radius:20px}
.home-invito h2{font-size:clamp(2rem,4vw,3.5rem);line-height:1.08;margin:.55em 0 .3em}
.ss-app .home-invito p{background:transparent;line-height:1.65;max-width:54ch;margin:0 0 1.35rem}
body.ss-chat-page.light .chat-container{background:#fffcf5;box-shadow:0 10px 40px #483e2610}
body.ss-chat-page.light .chat-messages{background:#faf6ed}
body.ss-chat-page .index-footer{color:var(--text)!important}
@media(max-width:680px){.ss-app .home-invito{grid-template-columns:1fr}.home-invito img{aspect-ratio:2.2}}
