/* Hive Wall: family version of the ExtendACard look. base.css is the card shop's design system; this file only
   re-colours it warmer and adds the family pieces (polaroid, merge slider, style cards, wall ideas, align sheet). */
:root {
  --bg: #FFF5E4; --red: #EE5A3C; --red-d: #B53A20; --accent: #EE5A3C; --sun: #FFC93C; --sun-d: #CF9300;
  --ray: rgba(255,178,46,.2); --pink: #F78FB3; --mint: #6DCFA6; --sky: #7CC3F2;
}
:root[data-light="night"] { --bg: #151530; --accent: #FF8F72; }

/* logo: a honey hexagon with a heart, then the name */
.hv { display: inline-flex; align-items: center; gap: .32em; font: 400 1em/1 var(--display); letter-spacing: .01em; white-space: nowrap; }
.hv-mark { position: relative; width: 1.25em; height: 1.1em; flex: none; filter: drop-shadow(0 .09em 0 var(--edge)); }
.hv-mark i { position: absolute; inset: 0; background: var(--sun); -webkit-mask: var(--hexm) center / 100% 100% no-repeat; mask: var(--hexm) center / 100% 100% no-repeat; }
.hv-mark b { position: absolute; inset: 0; display: grid; place-items: center; color: var(--red); font: 900 .62em/1 var(--body); }
.hv-mark b svg { width: .95em; height: .95em; }
.hv span { color: inherit; }
.hv em { font-style: normal; color: var(--red); }

/* price starburst */
.burst { clip-path: polygon(50% 0%, 61% 12%, 75% 6%, 79% 21%, 94% 22%, 89% 37%, 100% 50%, 89% 63%, 94% 78%, 79% 79%, 75% 94%, 61% 88%, 50% 100%, 39% 88%, 25% 94%, 21% 79%, 6% 78%, 11% 63%, 0% 50%, 11% 37%, 6% 22%, 21% 21%, 25% 6%, 39% 12%); padding: 18%; }

/* hero tweaks */
.hero h1 em { background: var(--sun); color: #1B2559; box-shadow: 0 .09em 0 var(--sun-d); }
.dot { width: 14px; height: 14px; border-radius: 50%; flex: none; box-shadow: inset 0 -2px 0 rgba(0,0,0,.18), 0 0 0 2px #fff; }
.d1 { background: var(--red); } .d2 { background: var(--sky); } .d3 { background: var(--sun); } .d4 { background: var(--mint); }
.hero-badge { position: absolute; right: max(20px, env(safe-area-inset-right, 0px)); bottom: 22px; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 99px; background: var(--card); color: var(--ink0); box-shadow: inset 0 0 0 3px var(--edge), 0 4px 0 var(--edge); font: 800 .86rem/1.2 var(--body); pointer-events: none; }
.hero-badge img { width: 40px; height: 35px; object-fit: cover; -webkit-mask: var(--hexm) center / 100% 100% no-repeat; mask: var(--hexm) center / 100% 100% no-repeat; }
@media (max-width: 700px) { .hero-badge { display: none; } }

/* the strip: photo-pencil on one side of the light, colour on the other */
.strip-sk .st i { filter: grayscale(1) contrast(1.35) brightness(1.12); }
.strip-cap { position: absolute; top: 10px; font: 900 .7rem/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: #fff; opacity: .9; z-index: 2; }
.strip-cap.l { right: calc(100% - var(--lx) + 16px); } .strip-cap.r { left: calc(var(--lx) + 16px); }

/* story beat 1: a real photo as a polaroid that tilts into place */
.polaroid { position: relative; width: min(62%, 330px); margin-block: 5%; padding: 4.5% 4.5% 16%; background: #fff; border-radius: 6px; box-shadow: 0 0 0 3px var(--edge), 0 30px 50px rgba(20,18,14,.3); transform: perspective(900px) rotateY(calc(-28deg + 34deg * var(--k))) rotateZ(calc(-8deg + 5deg * var(--k))) translateY(calc(30px - 30px * var(--k))); }
.polaroid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; }
.polaroid figcaption { position: absolute; left: 0; right: 0; bottom: 4%; text-align: center; font: 700 1.05rem/1 'Caveat', 'Segoe Print', cursive; color: #1B2559; }
.tape { position: absolute; top: -14px; left: 50%; width: 92px; height: 28px; transform: translateX(-50%) rotate(-4deg); background: rgba(255,214,90,.75); box-shadow: 0 2px 4px rgba(0,0,0,.12); }

/* merge showcase: drag the handle to see the separate photos become one painted world */
.mshow { position: relative; width: min(100%, 980px); margin-inline: auto; aspect-ratio: 1536 / 1024; border-radius: 20px; overflow: hidden; background: #EDE6DA; box-shadow: 0 0 0 3px var(--edge), 0 9px 0 var(--edge); touch-action: pan-y; user-select: none; }
.mshow .layer { position: absolute; inset: 0; }
.mshow .after { clip-path: inset(0 0 0 var(--mx, 50%)); }
.mshow .mt { position: absolute; filter: drop-shadow(0 10px 12px rgba(20,18,14,.35)); }
.mshow .mt i { position: absolute; inset: 0; background: center / cover; -webkit-mask: var(--hexm) center / 100% 100% no-repeat; mask: var(--hexm) center / 100% 100% no-repeat; }
.mshow .wallbg { position: absolute; inset: 0; background: #ECE7DE url(../img/wall_day.jpg) center / cover; }
:root[data-light="night"] .mshow .wallbg { filter: brightness(.5); }
.mhandle { position: absolute; top: 0; bottom: 0; left: var(--mx, 50%); width: 4px; margin-left: -2px; background: #fff; box-shadow: 0 0 12px rgba(255,214,90,.8); }
.mhandle button { position: absolute; top: 50%; left: 50%; width: 58px; height: 58px; transform: translate(-50%, -50%); border: 0; border-radius: 50%; background: var(--sun); color: #1B2559; font: 900 1rem/1 var(--body); box-shadow: inset 0 0 0 3px #1B2559, 0 4px 0 #1B2559; cursor: ew-resize; }
.mlab { position: absolute; top: 14px; padding: 7px 12px; border-radius: 10px; background: #fff; color: #1B2559; font: 900 .72rem/1 var(--body); letter-spacing: .08em; text-transform: uppercase; box-shadow: 0 0 0 3px #1B2559, 0 3px 0 #1B2559; }
.mlab.l { left: 14px; } .mlab.r { right: 14px; }
.msteps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 30px; }
.mstep { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 18px; background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.mstep b.n { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--sun); color: #1B2559; font: 400 1.3rem/1 var(--display); box-shadow: 0 3px 0 rgba(10,16,50,.45); }
.mstep h3 { font-size: 1.25rem; margin-bottom: 4px; }
@media (max-width: 760px) { .msteps { grid-template-columns: 1fr; } }

/* style cards reuse the card-game panel, with a painted hexagon instead of a card */
.styles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 30px); }
.styles .work .tcg-art { padding: 8% 8% 9%; }
.styles .t-art { background-size: cover; }
.styles p.say { font: 700 .92rem/1.35 var(--body); color: #1B2559; padding: 0 4px; }
.work.t-linework { --f1: #FFFFFF; --f2: #D9DDEA; }
@media (max-width: 1000px) { .styles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .styles { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; } }

/* wall ideas (packs) */
.ideas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.idea { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 22px; background: var(--card); color: var(--ink0); box-shadow: 0 0 0 3px var(--edge), 0 9px 0 var(--edge); }
.idea .hc { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; background: linear-gradient(140deg, #FFE2B8, #FFD1DC 50%, #CDEBFF); overflow: hidden; }
.idea .hc span { position: absolute; width: 30%; aspect-ratio: 1 / .866; filter: drop-shadow(0 5px 5px rgba(20,18,14,.3)); }
.idea .hc span i { position: absolute; inset: 0; background: center / cover; -webkit-mask: var(--hexm) center / 100% 100% no-repeat; mask: var(--hexm) center / 100% 100% no-repeat; }
.idea h3 { font-size: 1.35rem; }
.idea .muted { font-size: .92rem; color: var(--muted0); }
.idea .pr { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto; }
.idea .pr b { font: 400 1.7rem/1 var(--display); }
@media (max-width: 1100px) { .ideas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ideas { grid-template-columns: 1fr; } }

/* a wall that grows */
.years { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.yr { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.yr .h { width: 100%; aspect-ratio: 1 / .866; background: center / cover; -webkit-mask: var(--hexm) center / 100% 100% no-repeat; mask: var(--hexm) center / 100% 100% no-repeat; }
.yr b { font: 400 1.5rem/1 var(--display); }
.yr small { font-weight: 800; color: var(--muted); }
@media (max-width: 760px) { .years { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* more ways to keep it */
.keeps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.keep { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 20px; background: var(--card); color: var(--ink0); box-shadow: inset 0 0 0 3px var(--edge), 0 7px 0 var(--edge); }
.keep .pic { margin: -20px -20px 6px; aspect-ratio: 3 / 2; border-radius: 20px 20px 0 0; border-bottom: 3px solid var(--edge); background: center / cover #eee; }
.keep .pic + .ic { margin-top: -38px; margin-left: 2px; filter: drop-shadow(0 3px 0 var(--edge)); }
.keep .ic { width: 52px; height: 45px; -webkit-mask: var(--hexm) center / 100% 100% no-repeat; mask: var(--hexm) center / 100% 100% no-repeat; background: var(--c, var(--sun)); }
.keep h3 { font-size: 1.4rem; }
.keep p { color: var(--muted0); font-size: .95rem; }
.keep .free { align-self: flex-start; }
@media (max-width: 1000px) { .keeps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .keeps { grid-template-columns: 1fr; } }

/* builder: left column is "your photos" */
.ph-drop { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 14px; border-radius: 16px; border: 3px dashed var(--edge); background: var(--card); color: var(--ink0); text-align: center; cursor: pointer; }
.ph-drop.over { background: color-mix(in srgb, var(--sun) 40%, var(--card)); }
.ph-drop b { font: 400 1.25rem/1.1 var(--display); }
.ph-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ph { position: relative; aspect-ratio: 1; border: 0; padding: 0; border-radius: 12px; background: center / cover #ddd; box-shadow: inset 0 0 0 3px var(--edge); cursor: grab; }
.ph[aria-pressed="true"] { box-shadow: inset 0 0 0 4px var(--red), 0 0 0 3px var(--sun); }
.ph .used { position: absolute; right: 4px; bottom: 4px; padding: 2px 6px; border-radius: 99px; background: #1B2559; color: #fff; font: 900 .6rem/1.3 var(--body); }
.b-steps { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.b-steps li { display: flex; gap: 10px; align-items: center; font-weight: 800; font-size: .92rem; }
.b-steps li span { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--sun); color: #1B2559; font: 400 1rem/1 var(--display); box-shadow: inset 0 0 0 2px #1B2559; }
.stylepick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.stylepick button { display: flex; align-items: center; gap: 8px; padding: 6px; border: 0; border-radius: 12px; background: var(--card); color: var(--ink0); font: 800 .86rem/1.1 var(--body); text-align: left; box-shadow: inset 0 0 0 3px var(--edge); }
.stylepick button i { width: 38px; height: 33px; flex: none; background: center / cover; -webkit-mask: var(--hexm) center / 100% 100% no-repeat; mask: var(--hexm) center / 100% 100% no-repeat; }
.stylepick button[aria-pressed="true"] { background: var(--sun); color: #1B2559; box-shadow: inset 0 0 0 3px #1B2559, 0 3px 0 #1B2559; }
.mergebar { display: flex; gap: 8px; flex-wrap: wrap; }
.mergebar .btn { flex: 1 1 140px; }
.b-msg .btn { min-height: 40px; }
.sparkle { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--sx, 50%) var(--sy, 50%), rgba(255,236,150,.85), transparent 28%); opacity: 0; transition: opacity .5s; }
.sparkle.on { opacity: 1; }

/* align sheet: line the photo up inside the hexagon */
.sheet { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: rgba(10,14,40,.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.sheet-in { width: min(560px, 100%); max-height: 100%; overflow: auto; display: flex; flex-direction: column; gap: 16px; padding: 20px; border-radius: 22px; background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 3px var(--edge), 0 9px 0 var(--edge); }
.sheet-in h3 { font-size: 1.7rem; }
.crop { position: relative; width: 100%; aspect-ratio: 1 / .866; touch-action: none; cursor: grab; background: #222; -webkit-mask: var(--hexm) center / 100% 100% no-repeat; mask: var(--hexm) center / 100% 100% no-repeat; }
.crop canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.crop-wrap { position: relative; filter: drop-shadow(0 0 0 var(--edge)) drop-shadow(0 6px 0 var(--edge)); }
.crop-guide { position: absolute; inset: 9%; border: 2px dashed rgba(255,255,255,.7); -webkit-mask: none; border-radius: 6px; pointer-events: none; }
.zoomrow { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.zoomrow input { flex: 1; accent-color: var(--red); }
.sheet .row { justify-content: flex-end; }
.demo-note { padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--sun) 35%, var(--card)); color: #1B2559; font: 800 .82rem/1.35 var(--body); box-shadow: inset 0 0 0 2px #1B2559; }
.mockbar { background: #1B2559; color: #FFE7A3; text-align: center; font: 800 .8rem/1.3 var(--body); padding: 7px 14px; }

.b-top .seg { max-width: 100%; }
@media (max-width: 1000px) { .b-top { flex-direction: column; align-items: flex-start; } }
