/* Christmas season styles for the home page (class names keep the hw- prefix) */
.hw-strip { background: #0f3b26; color: #fff; border-bottom: 3px solid #f2c14e; }
.hw-strip .wrap { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; align-items: center; justify-content: center; padding-block: .7rem; }
.hw-strip strong { font: 700 1.05rem var(--f-display); color: #ffd877; }
.hw-count { display: flex; gap: .5rem; }
.hw-count span { background: #1a5a3a; border: 2px solid #f2c14e; border-radius: 8px; padding: .15em .55em; font: 700 1.05rem var(--f-display); min-width: 3.1em; text-align: center; }
.hw-count small { display: block; font: 600 .62rem var(--f-body); color: #cfeedd; margin-top: -.15em; }
.hw-strip a { color: #1b1740; background: #f2c14e; padding: .45em .9em; border-radius: 99px; font-weight: 800; text-decoration: none; }
.hw-float { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hw-float i { position: absolute; font-style: normal; font-size: 1.8rem; opacity: .5; animation: hwdrift 14s linear infinite; top: 105%; }
@keyframes hwdrift { to { transform: translateY(-120vh) rotate(160deg); } }
@media (prefers-reduced-motion: reduce) { .hw-float { display: none; } }
.hero { position: relative; } .hero .wrap { position: relative; z-index: 1; }
.hw-on .hero { background: radial-gradient(circle at 80% 15%, #e0283a40, transparent 40%), radial-gradient(circle at 10% 90%, #2f9a4a45, transparent 45%), var(--bg); }
.hw-quick { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }
.hw-quick button { display: inline-flex; align-items: center; gap: .4rem; font: 800 .88rem var(--f-body); padding: .35em .8em .35em .4em; border: 2px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--ink); cursor: pointer; min-height: 44px; }
.hw-quick canvas { height: 34px; width: auto; image-rendering: pixelated; }
.hw-lab h2 { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.hw-bar { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; margin: 1.2rem 0; align-items: center; }
.hw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; }
.hw-card { position: relative; display: grid; gap: .3rem; justify-items: center; text-align: center; padding: .7rem .5rem .6rem; border: 2px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; box-shadow: var(--shadow-sm); transition: transform .12s, box-shadow .12s; }
.hw-card:hover, .hw-card:focus-visible { transform: translate(-2px, -2px) rotate(-.6deg); box-shadow: var(--shadow); }
.hw-card canvas { height: 150px; max-width: 100%; width: auto; image-rendering: pixelated; }
.hw-card b { font-weight: 800; font-size: .95rem; line-height: 1.2; }
.hw-card small { color: var(--muted); font-size: .78rem; line-height: 1.3; }
.hw-tag { position: absolute; top: 6px; left: 6px; font: 800 .66rem var(--f-body); padding: .15em .55em; border-radius: 99px; border: 2px solid var(--line); background: var(--mint); color: #0b2b22; }
.hw-tag.pro { background: var(--sun); color: #1b1740; }
.hw-modal { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: center; }
@media (max-width: 640px) { .hw-modal { grid-template-columns: 1fr; } }
.hw-modal .try-viewer { height: 320px; }
.hw-modal img, .hw-modal canvas.flat { max-width: 100%; height: auto; image-rendering: pixelated; }
.hw-quiz { max-width: 720px; margin-inline: auto; }
.hw-quiz .q { font: 700 1.35rem/1.3 var(--f-display); margin: .3rem 0 1rem; }
.hw-opts { display: grid; gap: .6rem; }
.hw-opts button { text-align: left; font: 700 1rem var(--f-body); padding: .9em 1em; border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); cursor: pointer; box-shadow: var(--shadow-sm); min-height: 52px; }
.hw-opts button:hover { background: var(--bg2); }
.hw-prog { height: 8px; border-radius: 99px; background: var(--soft-line); overflow: hidden; margin-bottom: .6rem; } .hw-prog i { display: block; height: 100%; background: #f2c14e; transition: width .25s; }
.hw-result { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: center; }
@media (max-width: 560px) { .hw-result { grid-template-columns: 1fr; justify-items: center; text-align: center; } }
.hw-result canvas { height: 220px; width: auto; image-rendering: pixelated; background: var(--bg2); border: 2px solid var(--line); border-radius: var(--radius); padding: 8px; }
.hw-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .8rem; }
.hw-fact { perspective: 800px; height: 170px; border: 0; background: none; padding: 0; cursor: pointer; font: inherit; }
.hw-fact > div { position: relative; width: 100%; height: 100%; transition: transform .45s; transform-style: preserve-3d; }
.hw-fact.flip > div { transform: rotateY(180deg); }
.hw-fact span { position: absolute; inset: 0; backface-visibility: hidden; display: grid; place-items: center; padding: .9rem; border: 2px solid var(--line); border-radius: var(--radius); text-align: center; box-shadow: var(--shadow-sm); }
.hw-fact .f { background: #0f3b26; color: #ffd877; font: 700 1.15rem var(--f-display); }
.hw-fact .b { background: var(--surface); color: var(--ink); transform: rotateY(180deg); font-weight: 600; font-size: .93rem; line-height: 1.4; }
@media (prefers-reduced-motion: reduce) { .hw-fact > div { transition: none; } }
.hw-daily { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; padding: 1.2rem; border: 2px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
@media (max-width: 600px) { .hw-daily { grid-template-columns: 1fr; } }
.hw-daily h3 { margin: 0 0 .3rem; font: 700 1.3rem var(--f-display); } .hw-daily p { margin: 0; }
.hw-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none; gap: .6rem; padding: .6rem max(16px, env(safe-area-inset-right, 0px)) calc(.6rem + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: #0f3b26; border-top: 3px solid #f2c14e; align-items: center; justify-content: space-between; transform: translateY(110%); transition: transform .25s; }
.hw-sticky.show { transform: none; } .hw-sticky span { color: #fff; font-weight: 800; font-size: .95rem; line-height: 1.2; }
.hw-sticky a { background: #f2c14e; color: #1b1740; font-weight: 800; padding: .7em 1em; border-radius: 99px; text-decoration: none; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
@media (max-width: 760px) { .hw-sticky { display: flex; } body.page-home { padding-bottom: 70px; } }

/* mini studio in the hero */
.mini { display: grid; gap: .6rem; margin-top: .7rem; }
.mini-tabs { display: flex; flex-wrap: wrap; gap: .35rem; }
.mini-tab { flex: none; font: 800 .88rem var(--f-body); padding: .5em .85em; border: 2px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); cursor: pointer; min-height: 40px; }
.mini-tab[aria-selected=true] { background: var(--grape); color: var(--grape-ink); box-shadow: var(--shadow-sm); }
.mini-panel { display: grid; gap: .6rem; align-content: start; min-height: 112px; padding: .7rem; border: 2px solid var(--soft-line); border-radius: 12px; background: var(--bg2); }
.mini-lab { margin: 0; font: 800 .78rem var(--f-body); color: var(--muted); }
.mini-note { margin: 0; font-size: .82rem; color: var(--muted); }
.mini-packs { display: flex; flex-wrap: wrap; gap: .35rem; max-height: 132px; overflow-y: auto; }
.mini-tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; }
.mini-tool { position: relative; display: grid; justify-items: center; gap: .1rem; padding: .5em .2em .4em; border: 2px dashed var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); text-decoration: none; font: 800 .74rem var(--f-body); min-height: 56px; }
.mini-tool span { font-size: 1.15rem; line-height: 1.1; } .mini-tool em { position: absolute; top: 1px; right: 3px; font-style: normal; font-size: .62rem; }
.mini-tool:hover { background: var(--bg2); }
.mini-go { width: 100%; }
@media (max-width: 420px) { .mini-tools { grid-template-columns: repeat(4, minmax(0, 1fr)); } .mini-tool { font-size: .66rem; } }
/* keep the hero text at the top next to the taller studio card */
.hero .hero-grid { align-items: start; }
.hero .hero-copy { padding-top: clamp(0px, 2.5vw, 28px); }
