/* Shared presentation for Coloriko. Screen-only: printed sheets keep their geometry. */
@media screen {
 :root {
  --ui-radius:22px;
  --ui-gap:20px;
  --ui-shadow:0 3px 0 var(--line),0 12px 26px -20px rgba(36,31,61,.28);
 }
 body{margin:0;line-height:1.6}
 main{min-height:calc(100svh - 260px)}
 header{padding-block:18px 12px}
 header .top{justify-content:center;gap:14px 20px}
 header .top>.logo{margin-inline:auto;max-width:100%}
 header .logo .logo-art{width:260px;max-width:100%;height:auto}
 header .top nav{margin-top:0;gap:10px;align-items:center;padding:2px 2px 8px}
 header nav a{min-height:44px;display:inline-flex;align-items:center;justify-content:center;padding:8px 16px;font-size:.94rem;line-height:1.4;box-shadow:0 3px 0 color-mix(in srgb,var(--nav-color),#241F3D 25%)}
 header nav a[aria-current="page"]{box-shadow:inset 0 0 0 2px #241f3d33,0 3px 0 color-mix(in srgb,var(--nav-color),#241F3D 25%)}
 header nav a:hover,header nav a[aria-current="page"]:hover{transform:translateY(-1px);box-shadow:0 4px 0 color-mix(in srgb,var(--nav-color),#241F3D 25%)}
 header nav a:active,header nav a[aria-current="page"]:active{transform:translateY(2px);box-shadow:0 1px 0 color-mix(in srgb,var(--nav-color),#241F3D 25%)}
 .hero{gap:36px;padding-block:30px 48px}
 .hero h1{line-height:1.12;letter-spacing:-.02em;margin-bottom:20px}
 .hero p{font-size:1.08rem;line-height:1.75;max-width:48ch;margin-bottom:24px}
 .hero-btns{gap:12px}
 .facts{gap:20px 28px;margin-top:28px;font-size:.88rem;line-height:1.5}
 .facts b{margin-bottom:4px;font-size:1.7rem}
 .choices{gap:var(--ui-gap);padding-bottom:48px;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr))}
 .choice{padding:20px;gap:16px;min-height:112px;align-items:center;border:1px solid var(--line);border-radius:var(--ui-radius);box-shadow:var(--ui-shadow)}
 .choice .ico{width:52px;height:52px;border-radius:16px}
 .choice .ico svg{width:34px;height:34px}
 .choice strong{font-size:1.04rem;line-height:1.45;margin:0;overflow-wrap:anywhere}
 .choice small,.choice:hover small,.choice:focus-visible small{max-height:none;opacity:1;overflow:visible;margin-top:4px;line-height:1.55;font-size:.88rem;transition:none}
 .view>section:first-child.band,.view>section:first-child.pr-band,.view>section:first-child.exo-band,.view>section:first-child.craft-band{margin-top:0;padding-block:28px 48px}
 .sec-head,.section-head{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:20px;margin-bottom:24px}
 .sec-head>div:first-child,.section-head>div:first-child{flex:1 1 440px;min-width:0}
 .sec-head h2,.section-head h2{font-size:clamp(2rem,3.6vw,2.6rem);line-height:1.2;letter-spacing:-.015em}
 .sec-head p,.section-head p{margin:10px 0 0;max-width:72ch;line-height:1.75;font-size:1rem;color:var(--muted)}
 .craft-band>.count{margin-block:16px 20px}
 .craft-band>p:not(.count){margin-block:-10px 24px;color:var(--muted);line-height:1.65}
 .pr-filters,.tools-row{gap:14px;margin-bottom:24px;align-items:start}
 .pr-filter-row{gap:14px}
 #q,#prQ{min-height:66px;padding:16px 18px;border-radius:18px;font-size:16px;line-height:1.5;box-shadow:0 3px 0 color-mix(in srgb,var(--green) 40%,var(--card))}
 .shared-picker{margin-bottom:0}
 .pr-theme-picker summary,.pr-level{min-height:66px;border-radius:18px;padding:10px 42px 10px 16px;line-height:1.5;box-shadow:0 3px 0 color-mix(in srgb,var(--filter-color),#241F3D 25%)}
 .pr-theme-picker summary:hover{transform:translateY(-1px);box-shadow:0 4px 0 color-mix(in srgb,var(--filter-color),#241F3D 25%)}
 .pr-theme-picker summary:active{transform:translateY(2px);box-shadow:0 1px 0 color-mix(in srgb,var(--filter-color),#241F3D 25%)}
 .pr-filter-label{font-size:.75rem;line-height:1.4;margin-bottom:4px}
 #prThemeCurrent,.shared-current,.level-current{display:block;font-size:.98rem;line-height:1.45;white-space:normal;overflow-wrap:anywhere}
 .pr-chevron{width:22px;height:22px;right:12px;top:21px;font-size:.9rem}
 .pr-theme-panel{top:calc(100% + 9px);border-width:2px;border-radius:20px;padding:12px;box-shadow:0 12px 28px #241f3d20}
 .pr-theme-option,.pr-theme-panel .chip{min-height:44px;padding:10px 12px;margin:6px 0;line-height:1.5;border-radius:12px;box-shadow:0 2px 0 color-mix(in srgb,var(--option-color),#241F3D 25%)}
 .pr-theme-option:hover,.pr-theme-panel .chip:hover{transform:translateY(-1px);box-shadow:0 3px 0 color-mix(in srgb,var(--option-color),#241F3D 25%)}
 #prThemeQ,.shared-picker input{min-height:44px;font-size:16px;line-height:1.5;border-radius:12px;padding:10px 12px}
 .count{font-size:.88rem;line-height:1.6}
 .grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr))}
 .grid,.exo-grid,.craft-grid{gap:var(--ui-gap);align-items:stretch}
 .card,.exo,.craft-card{min-width:0;border:1px solid var(--line);border-radius:var(--ui-radius);box-shadow:var(--ui-shadow);transition:transform .18s ease,box-shadow .18s ease}
 .card:hover,.card:nth-child(even):hover,.exo:hover,.craft-card:hover,.choice:hover{transform:translateY(-3px);box-shadow:0 4px 0 var(--line),0 15px 26px -18px rgba(36,31,61,.3)}
 .card{padding:12px;gap:12px}
 .thumb{border-radius:15px}
 .meta{gap:10px;padding:4px 6px 8px}
 .meta strong,.exo strong,.craft-copy strong{font-size:1.05rem;font-weight:900;line-height:1.5;overflow-wrap:anywhere}
 .pill{font-size:.75rem;line-height:1.5;padding:4px 10px}
 .lvl{font-size:.7rem;line-height:1.5;padding:3px 9px;letter-spacing:0}
 .exo-grid,.craft-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr))}
 .exo{padding:18px;gap:16px;min-height:132px}
 .exo>span:last-child{min-width:0}
 .exo .glyph{width:56px;height:56px;border-radius:16px}
 .exo small{font-size:.85rem;line-height:1.6;margin-top:5px}
 .exo .pill{margin-top:8px}
 .craft-copy{padding:18px 20px 20px;gap:10px;line-height:1.6}
 .craft-meta{font-size:.85rem}
 .craft-play{width:38px;height:38px;right:12px;bottom:12px;font-size:.8rem}
 .more-row{margin-top:28px;padding-bottom:4px}
 .btn{min-height:48px;justify-content:center;border-radius:16px;padding:12px 20px;font-size:1rem;line-height:1.5;text-align:center}
 .tool{min-height:44px;border-radius:14px;line-height:1.4}
 .pv-box,.craft-panel{border-radius:24px}
 .pv-head h3,.craft-tutorial-head h3{line-height:1.3}
 .pv-help,.pv-note,.infos-text{line-height:1.65}
 .pv-head h3{font-size:1.4rem}
 .craft-controls button{min-height:44px;border-radius:14px;line-height:1.4}
 .language-note{font-size:.9rem;line-height:1.65;margin-block:0 24px}
 footer{padding-block:26px 26px;border-top:1px solid var(--line);font-size:.84rem;line-height:1.65}
 footer>.wrap:first-child{align-items:center;gap:20px 32px}
 .footer-brand{gap:12px 16px;max-width:68%;font-size:.82rem}
 .footer-brand img{width:150px}
 footer .footer-language{padding-top:12px}
}
@media screen and (max-width:860px){
 .hero{grid-template-columns:1fr;gap:28px;padding-block:24px 36px}
 .stage-hero{max-width:320px}
 .sec-head>div:first-child,.section-head>div:first-child{flex-basis:100%}
 .sec-head>.shared-picker{width:min(100%,300px)}
 .footer-brand{max-width:100%}
}
@media screen and (max-width:620px){
 :root{--ui-gap:16px;--ui-radius:20px}
 header{padding-block:12px 8px}
 header .top{gap:12px}
 header .top>.logo{max-width:100%}
 header .logo .logo-art{width:230px;max-width:calc(100vw - 32px)}
 header .top nav{justify-content:flex-start;flex-wrap:nowrap;gap:8px;overflow-x:auto;width:100%;max-width:100%;padding:3px 2px 9px;scroll-padding-inline:8px;overscroll-behavior-x:contain}
 header nav a{flex-shrink:0;min-height:44px;font-size:.85rem;padding:8px 12px}
 .hero{padding-block:20px 32px;gap:24px}
 .hero h1{font-size:clamp(2.25rem,9vw,3rem);line-height:1.15}
 .hero p{font-size:1rem;line-height:1.75}
 .hero-btns .btn{flex:1 1 180px}
 .facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 24px;font-size:.85rem}
 .stage-hero{max-width:290px}
 .choices{padding-bottom:32px;grid-template-columns:1fr}
 .choice{min-height:100px;padding:18px}
 .view>section:first-child.band,.view>section:first-child.pr-band,.view>section:first-child.exo-band,.view>section:first-child.craft-band{padding-block:22px 36px}
 .sec-head,.section-head{gap:18px;margin-bottom:22px}
 .sec-head h2,.section-head h2{font-size:2rem;line-height:1.25}
 .sec-head p,.section-head p{font-size:.96rem;line-height:1.75}
 .sec-head>.shared-picker,.tools-row>.shared-picker{width:100%;flex-basis:100%}
 .pr-filters{grid-template-columns:minmax(0,1fr)}
 .pr-filter-row{gap:12px}
 .pr-filters,.tools-row{gap:14px;margin-bottom:22px}
 #q,#prQ{flex-basis:100%;width:100%;min-height:56px;padding:14px 16px}
 .pr-theme-picker summary,.pr-level{padding-left:14px}
 .pr-theme-panel{max-width:calc(100vw - 32px)}
 .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .card{padding:9px;gap:10px;border-radius:18px}
 .thumb{padding:9px;border-radius:12px}
 .meta{padding:2px 3px 6px;gap:8px}
 .meta strong{font-size:.95rem;line-height:1.5}
 .meta .pill{font-size:.7rem;padding:3px 8px}
 .lvl{font-size:.64rem;top:6px;left:6px;padding:2px 7px}
 .exo-grid,.craft-grid{grid-template-columns:1fr}
 .exo{min-height:120px;padding:16px}
 .craft-copy{padding:18px}
 .pv-box{padding:16px;gap:16px}
 .pv-head{align-items:flex-start}
 .pv-head h3{font-size:1.25rem}
 .pv-actions .btn{white-space:normal;line-height:1.4}
 footer{padding-block:24px}
 footer>.wrap:first-child{flex-direction:column;align-items:center;gap:16px;text-align:center}
 .footer-brand{flex-direction:column;justify-content:center;gap:10px}
 .footer-brand span{max-width:38ch}
}
@media screen and (max-width:350px){
 .grid{grid-template-columns:minmax(0,1fr)}
 .pr-filter-row{grid-template-columns:minmax(0,1fr)}
 .pr-theme-panel{width:100%}
}
@media screen and (prefers-reduced-motion:reduce){
 .card,.exo,.craft-card,.choice,header nav a,.pr-theme-picker summary{transition:none;transform:none!important}
}
