/* Holo Design Lab (designlab.html only). Uses the variables and components from style.css. */
@font-face { font-family: "Bebas Neue"; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/bebas-neue-latin.woff2) format("woff2"); }
@font-face { font-family: "Permanent Marker"; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/permanent-marker-latin.woff2) format("woff2"); }
@font-face { font-family: "Pacifico"; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/pacifico-latin.woff2) format("woff2"); }
@font-face { font-family: "Black Ops One"; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/black-ops-one-latin.woff2) format("woff2"); }

.dl-page .nav__links a[aria-current="page"] { color: var(--yellow); }
.footer__links a[aria-current="page"] { text-decoration: none; }

/* intro */
.dl-intro { padding-top: 1.5rem; padding-bottom: 1.25rem; }
.dl-intro h1 { font-size: clamp(2rem, 8vw, 3.6rem); color: var(--white); }
.dl-intro__lede { font-size: 1.08rem; margin-top: .8rem; max-width: 46rem; }
.dl-intro__note { color: var(--muted); font-size: .92rem; margin-top: .6rem; max-width: 46rem; }

/* layout: mobile first, stage on top, controls below */
.dl { display: grid; gap: 1.5rem; padding-bottom: 4rem; }
.dl__stage-col, .dl__controls { min-width: 0; }
.dl__controls { display: grid; gap: 1.5rem; align-content: start; }

/* stage */
.dl-stage { position: relative; width: 100%; max-width: min(100%, 70vh); margin: 0 auto; aspect-ratio: 1 / 1; border: var(--line) solid var(--yellow); border-radius: var(--radius); overflow: hidden; background: radial-gradient(circle at 50% 42%, #4b4b4b 0%, #333 55%, #222 100%); box-shadow: 6px 6px 0 var(--white); }
.dl-stage__canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: default; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.dl-stage__canvas:focus-visible { outline: 3px solid var(--yellow); outline-offset: -6px; }
.dl-stage__badge { position: absolute; top: .6rem; left: .6rem; font-weight: 800; font-size: .78rem; letter-spacing: .06em; color: var(--ink); background: var(--yellow); border: 2px solid var(--ink); border-radius: 999px; padding: .12rem .55rem; pointer-events: none; text-transform: uppercase; }
.dl-stage__view { position: absolute; top: .6rem; right: .6rem; font-family: var(--display); font-size: .78rem; text-transform: uppercase; color: var(--white); background: rgba(0,0,0,.6); border-radius: 999px; padding: .2rem .6rem; pointer-events: none; }
.dl-stage__empty { position: absolute; left: 50%; bottom: .8rem; transform: translateX(-50%); background: rgba(0,0,0,.72); color: var(--white); font-weight: 700; font-size: .88rem; padding: .35rem .8rem; border-radius: 999px; pointer-events: none; white-space: nowrap; }
.dl-stage__drop { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255,214,0,.85); color: var(--ink); font-family: var(--display); text-transform: uppercase; font-size: 1.3rem; pointer-events: none; border: 4px dashed var(--ink); border-radius: calc(var(--radius) - 4px); }

/* placement chips + selection bar */
.dl-label { display: block; font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 .5rem; color: var(--white); }
.dl-label output { color: var(--yellow); margin-left: .35rem; }
.dl-place { margin-top: 1.1rem; }
.dl-chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.dl-chip { min-height: 44px; padding: .5rem .95rem; border-radius: 999px; border: 2px solid var(--yellow); background: var(--ink); color: var(--yellow); font: 800 .9rem/1.1 var(--body); cursor: pointer; }
.dl-chip[aria-pressed="true"] { background: var(--yellow); color: var(--ink); box-shadow: 3px 3px 0 var(--white); }
.dl-chip:hover { box-shadow: 3px 3px 0 var(--yellow); }
.dl-chip .dl-chip__n { display: inline-grid; place-items: center; min-width: 1.3rem; height: 1.3rem; margin-left: .4rem; border-radius: 999px; background: var(--white); color: var(--ink); font-size: .72rem; }
.dl-selbar { margin-top: 1rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; background: var(--panel); border: 2px solid #333; border-radius: 14px; padding: .6rem .75rem; }
.dl-selbar__name { font-weight: 700; font-size: .92rem; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.dl-selbar__name strong { color: var(--white); }
.dl-selbar__btns { display: flex; flex-wrap: wrap; gap: .5rem; }

/* buttons inside the lab */
.dl-btn { min-height: 44px; min-width: 44px; padding: .5rem .9rem; border-radius: 12px; border: 2px solid #555; background: var(--panel-2); color: var(--white); font: 700 .9rem/1.1 var(--body); cursor: pointer; }
.dl-btn:hover { border-color: var(--yellow); }
.dl-btn--danger { border-color: #7a2b2b; color: #ffb4b4; }
.dl-btn--danger:hover { border-color: #ff8a8a; }
.dl-btn--ghost { background: transparent; }
.dl-btn:disabled { opacity: .45; cursor: not-allowed; }

/* panels + tabs */
.dl-panel { background: var(--panel); border: var(--line) solid var(--white); border-radius: var(--radius); box-shadow: 6px 6px 0 var(--yellow); padding: 1.1rem; min-width: 0; }
.dl-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .35rem; background: var(--black); border-radius: 14px; padding: .3rem; margin-bottom: 1.1rem; }
.dl-tabs [role="tab"] { min-height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--white); font: 800 .82rem/1.1 var(--body); text-transform: uppercase; letter-spacing: .03em; cursor: pointer; padding: .4rem .25rem; }
.dl-tabs [role="tab"][aria-selected="true"] { background: var(--yellow); color: var(--ink); }
.dl-tabs [role="tab"]:focus-visible { outline-offset: -3px; outline-color: var(--white); }
.dl-pane { display: grid; gap: 1rem; }
.dl-fs { border: 0; margin: 0; padding: 0; min-width: 0; }
.dl-hint { color: var(--muted); font-size: .9rem; }
.dl-note { margin-top: .75rem; background: var(--panel-2); border-left: 4px solid var(--yellow); border-radius: 8px; padding: .7rem .9rem; color: var(--muted); font-size: .92rem; }
.dl-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.dl-row--wrap { gap: .5rem; }
.dl-row--end { justify-content: flex-end; margin-top: .25rem; }

/* garments */
.dl-garments { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.dl-garment { position: relative; cursor: pointer; }
.dl-garment input, .dl-method input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dl-garment__box { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .7rem .4rem; border-radius: 14px; border: var(--line) solid #444; background: var(--black); color: var(--white); font-family: var(--display); text-transform: uppercase; font-size: .95rem; }
.dl-garment__box svg { width: 44px; height: 44px; }
.dl-garment input:checked + .dl-garment__box { background: var(--yellow); color: var(--ink); border-color: var(--ink); box-shadow: 0 0 0 3px var(--yellow), 4px 4px 0 3px var(--white); }
.dl-garment input:focus-visible + .dl-garment__box, .dl-method input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* color swatches */
.dl-swatches { display: flex; flex-wrap: wrap; gap: .6rem; }
.dl-swatch { width: 44px; height: 44px; border-radius: 50%; border: 3px solid #666; cursor: pointer; padding: 0; box-shadow: inset 0 0 0 2px rgba(0,0,0,.25); }
.dl-swatch[aria-pressed="true"], .dl-swatch[aria-checked="true"] { border-color: var(--yellow); box-shadow: 0 0 0 3px var(--black), 0 0 0 6px var(--yellow); }
.dl-custom-color { display: inline-flex; align-items: center; gap: .6rem; margin-top: .7rem; font-weight: 700; font-size: .9rem; color: var(--muted); cursor: pointer; }
.dl-custom-color input { width: 54px; height: 44px; padding: 2px; border: 2px solid #555; border-radius: 10px; background: var(--black); cursor: pointer; }

/* upload */
.dl-upload { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; text-align: center; min-height: 130px; padding: 1.1rem; border: 3px dashed var(--yellow); border-radius: 16px; background: rgba(255,214,0,.06); cursor: pointer; }
.dl-upload:hover, .dl-upload.is-over { background: rgba(255,214,0,.14); }
.dl-upload:focus-within { outline: 3px solid var(--yellow); outline-offset: 3px; }
.dl-upload__big { font-family: var(--display); text-transform: uppercase; color: var(--yellow); font-size: 1.15rem; }
.dl-upload__small { color: var(--muted); font-size: .88rem; }
.dl-status { min-height: 1.2em; font-weight: 700; font-size: .93rem; color: var(--white); }
.dl-status.is-error { color: #ff8a8a; }

/* text tools */
.dl-field { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.dl-panel input[type="text"], .dl-panel input[type="email"], .dl-panel input[type="number"], .dl-panel textarea { font: inherit; color: var(--white); background: var(--black); border: 2px solid #555; border-radius: 10px; padding: .7rem .85rem; width: 100%; min-height: 44px; }
.dl-panel input:focus, .dl-panel textarea:focus { border-color: var(--yellow); outline: none; box-shadow: 0 0 0 3px rgba(255,214,0,.35); }
.dl-panel ::placeholder { color: #8a8a8a; }
.dl-fonts { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
.dl-font { min-height: 48px; border-radius: 12px; border: 2px solid #444; background: var(--black); color: var(--white); font-size: 1.15rem; cursor: pointer; padding: .3rem .5rem; line-height: 1.1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dl-font[aria-checked="true"] { border-color: var(--yellow); background: var(--yellow); color: var(--ink); }
.dl-check { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; font-weight: 700; cursor: pointer; }
.dl-check input { width: 22px; height: 22px; accent-color: var(--yellow); }

/* adjust */
.dl-layers { display: grid; gap: .45rem; }
.dl-layer { display: flex; align-items: center; gap: .5rem; }
.dl-layer__sel { flex: 1; min-width: 0; min-height: 44px; display: flex; align-items: center; gap: .6rem; text-align: left; border-radius: 12px; border: 2px solid #444; background: var(--black); color: var(--white); font: 700 .92rem/1.2 var(--body); padding: .35rem .7rem; cursor: pointer; }
.dl-layer__sel[aria-pressed="true"] { border-color: var(--yellow); }
.dl-layer__thumb { flex: none; width: 32px; height: 32px; border-radius: 6px; background: #2a2a2a center / contain no-repeat; display: grid; place-items: center; font-family: var(--display); color: var(--yellow); font-size: .9rem; }
.dl-layer__txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dl-layer__txt small { display: block; color: var(--muted); font-weight: 600; font-size: .78rem; }
.dl-adjust { display: grid; gap: .9rem; margin-top: .4rem; padding-top: 1rem; border-top: 2px solid #2c2c2c; }
.dl-panel input[type="range"] { width: 100%; height: 44px; accent-color: var(--yellow); background: transparent; cursor: pointer; }
.dl-nudge { display: grid; grid-template-columns: repeat(3, 48px); grid-template-rows: repeat(3, 48px); gap: .3rem; }
.dl-nudge .dl-btn { padding: 0; font-size: 1.2rem; }
.dl-nudge [data-nudge="0,-1"] { grid-column: 2; grid-row: 1; }
.dl-nudge [data-nudge="-1,0"] { grid-column: 1; grid-row: 2; }
.dl-nudge [data-act="center"] { grid-column: 2; grid-row: 2; }
.dl-nudge [data-nudge="1,0"] { grid-column: 3; grid-row: 2; }
.dl-nudge [data-nudge="0,1"] { grid-column: 2; grid-row: 3; }

/* form */
.dl-form { display: grid; gap: 1.1rem; border-color: var(--yellow); box-shadow: 6px 6px 0 var(--white); }
.dl-h2 { font-size: 1.35rem; display: flex; align-items: center; gap: .6rem; scroll-margin-top: 90px; }
.dl-step { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--yellow); color: var(--ink); font-size: 1rem; flex: none; }
.dl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dl-hidden-file { display: none; }
.dl-methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: .55rem; }
.dl-method { position: relative; cursor: pointer; }
.dl-method span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: .45rem .5rem; border-radius: 12px; border: 2px solid #555; background: var(--black); font-weight: 800; font-size: .92rem; }
.dl-method input:checked + span { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.dl-sizes { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.dl-size { display: flex; flex-direction: column; gap: .25rem; font-weight: 800; font-size: .82rem; text-align: center; min-width: 0; }
.dl-size input { text-align: center; padding: .6rem .3rem !important; }
.dl-size--one { grid-column: 1 / -1; max-width: 10rem; text-align: left; }
.dl-total { margin-top: .6rem; color: var(--muted); font-weight: 700; }
.dl-total strong { color: var(--yellow); font-family: var(--display); font-weight: 400; font-size: 1.15rem; }
.dl-form__grid { display: grid; gap: .9rem; }
.dl-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: .3rem; }
.dl-submit .btn { width: 100%; }
.dl-submit .btn:disabled { opacity: .6; cursor: progress; }
.dl-mailto { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; }
.dl-result { background: var(--panel-2); border: 2px solid var(--yellow); border-radius: 14px; padding: 1rem 1.1rem; display: grid; gap: .55rem; color: var(--muted); }
.dl-result:focus { outline: none; box-shadow: 0 0 0 3px rgba(255,214,0,.45); }
.dl-result--warn { border-color: #ff8a8a; }
.dl-result__title { font-family: var(--display); text-transform: uppercase; color: var(--yellow); font-size: 1.05rem; line-height: 1.15; }
.dl-result__btns { display: flex; flex-wrap: wrap; gap: .9rem 1.1rem; margin-top: .4rem; }
.dl-result .btn { min-height: 44px; }
.dl-small { font-size: .88rem; }

@media (min-width: 480px) {
  .dl-methods { grid-template-columns: repeat(4, 1fr); }
  .dl-fonts { grid-template-columns: repeat(3, 1fr); }
  .dl-submit .btn { width: auto; }
}
@media (min-width: 640px) {
  .dl-sizes { grid-template-columns: repeat(7, 1fr); }
  .dl-form__grid { grid-template-columns: 1fr 1fr; }
  .dl-field--full { grid-column: 1 / -1; }
  .dl-panel { padding: 1.4rem; }
}
@media (min-width: 900px) {
  .dl-intro { padding-top: 2.5rem; padding-bottom: 1.75rem; }
  .dl { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 2.25rem; align-items: start; }
  .dl__stage-col { position: sticky; top: 84px; }
  .dl-stage { max-width: min(100%, calc(100vh - 260px)); min-width: 300px; }
  .dl-methods { grid-template-columns: repeat(2, 1fr); }
  .dl-sizes { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1100px) {
  .dl-methods { grid-template-columns: repeat(4, 1fr); }
  .dl-sizes { grid-template-columns: repeat(7, 1fr); }
}
@media (max-width: 380px) {
  .dl-tabs [role="tab"] { font-size: .74rem; }
}
@media (prefers-reduced-motion: reduce) {
  .dl-page * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* v1.1: quick actions under the stage, light preview, warnings, method blurbs */
.dl-quick { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem; margin-top: 1.25rem; align-items: start; }
.dl-quick__item { display: grid; gap: .45rem; min-width: 0; }
.dl-quick__btn { width: 100%; min-height: 48px; padding: .7rem .8rem; font-size: .95rem; }
.dl-quick__tip { color: var(--muted); font-size: .82rem; line-height: 1.35; }
.dl-lightbar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; margin-top: .9rem; }
.dl-light[aria-pressed="true"] { background: var(--white); color: var(--ink); border-color: var(--white); }
.dl-lightbar__note { color: var(--muted); font-size: .86rem; min-width: 0; flex: 1 1 12rem; }
.dl-lightbar__note strong { color: var(--white); }
.dl-warn { flex-basis: 100%; background: rgba(255,214,0,.1); border-left: 4px solid var(--yellow); border-radius: 8px; padding: .55rem .8rem; color: var(--white); font-size: .9rem; font-weight: 600; }
.dl-method span { flex-direction: column; gap: .2rem; padding: .55rem .55rem; }
.dl-method small { font-weight: 600; font-size: .74rem; line-height: 1.25; opacity: .85; }
.dl-methods { grid-template-columns: repeat(2, 1fr) !important; }
@media (min-width: 640px) { .dl-quick { grid-template-columns: repeat(2, minmax(0, 15rem)); } }

/* v1.1 layout: mobile = sticky stage while the tools scroll under it; it releases before the send form */
.dl { display: block; }
.dl__design { display: block; }
.dl__stage-col { display: contents; }
.dl-stagewrap { position: sticky; top: 60px; z-index: 6; background: var(--black); padding: .5rem 0 .75rem; }
.dl-stage { max-width: min(100%, 45vh); }
.dl__tools { margin-top: 1.5rem; }
.dl-form { margin-top: 1.5rem; }
.dl-intro__short { display: none; }
@media (max-width: 639px) {
  .dl-intro { padding-top: 1rem; padding-bottom: .5rem; }
  .dl-intro .tag, .dl-intro__lede, .dl-intro__note { display: none; }
  .dl-intro__short { display: block; color: var(--muted); font-size: .95rem; margin-top: .35rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dl-intro h1 { font-size: clamp(1.6rem, 7.4vw, 2rem); }
}
@media (min-width: 900px) {
  .dl { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-areas: "stage tools" "stage form"; grid-template-rows: auto 1fr; column-gap: 2.25rem; row-gap: 1.5rem; align-items: start; }
  .dl__design { display: contents; }
  .dl__stage-col { display: block; grid-area: stage; position: sticky; top: 84px; min-width: 0; }
  .dl-stagewrap { position: static; padding: 0; background: none; }
  .dl-stage { max-width: min(100%, calc(100vh - 330px)); }
  .dl__tools { grid-area: tools; margin-top: 0; }
  .dl-form { grid-area: form; margin-top: 0; }
}
.dl-stage__tip { white-space: normal; text-align: center; width: max-content; max-width: 90%; }
.dl-font { white-space: normal; text-overflow: clip; font-size: 1.05rem; }
.dl-submit { align-items: center; }
.dl-total--submit { margin-top: 0; }
.dl-place__hint { color: var(--muted); font-size: .85rem; margin-top: .5rem; }
/* desktop: compact intro so the stage and its Upload art / Add text buttons fit in the first screen */
@media (min-width: 640px) {
  .dl-intro__note { display: none; }
}
@media (min-width: 900px) {
  .dl-intro { padding-top: 1.5rem; padding-bottom: 1.25rem; }
  .dl-intro .tag { margin-bottom: .6rem; }
  .dl-intro h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
  .dl-intro__lede { margin-top: .5rem; }
  .dl-stage { max-width: min(100%, calc(100vh - 345px)); min-width: 300px; }
  .dl-quick { margin-top: 1rem; }
}
@media (max-width: 899px) { .dl-stage { max-width: min(100%, 40vh); } }
@media (min-width: 900px) { .dl-stage { max-width: min(100%, calc(100vh - 370px)); } }
.dl-stage__tip { font-size: .8rem; padding: .3rem .7rem; }

/* v1.2: compact quick row, placement hint right under the chips, zoom toggle on the stage */
.dl-quick { grid-template-columns: 1fr 1fr; margin-top: 1rem; gap: .5rem .9rem; }
.dl-quick__tip { grid-column: 1 / -1; }
.dl-place { margin-top: .9rem; }
.dl-place .dl-label { margin-bottom: .4rem; }
.dl-place__hint { margin-top: .45rem; line-height: 1.35; }
.dl-place__hint:empty { display: none; }
.dl-zoom { position: absolute; right: .6rem; top: 2.5rem; min-height: 44px; min-width: 44px; padding: .4rem .9rem; border-radius: 999px; border: 2px solid var(--ink); background: var(--yellow); color: var(--ink); font: 800 .85rem/1 var(--body); cursor: pointer; box-shadow: 2px 2px 0 var(--white); }
.dl-zoom[aria-pressed="false"] { background: var(--ink); color: var(--yellow); border-color: var(--yellow); }
.dl-zoom:focus-visible { outline: 3px solid var(--white); outline-offset: 2px; }
@media (max-width: 639px) {
  .dl-chips { gap: .4rem; }
  .dl-chip { padding: .45rem .65rem; font-size: .84rem; flex: 0 1 auto; white-space: nowrap; }
  .dl-chip .dl-chip__n { margin-left: .3rem; }
  .dl-quick__btn { min-height: 46px; padding: .55rem .6rem; }
}
@media (min-width: 640px) { .dl-quick { grid-template-columns: repeat(2, minmax(0, 15rem)); } }
/* every lab button at least 44px tall (incl. the small sticker buttons) */
.dl .btn, .dl .btn--sm, .dl-result .btn { min-height: 44px; }
.dl-custom-color input { min-height: 44px; }

/* v1.3: full-bleed background behind the pinned garment on mobile so scrolling content never peeks through at the sides */
@media (max-width: 899px) {
  .dl-stagewrap { box-shadow: 0 0 0 100vmax var(--black); clip-path: inset(-1px -100vmax); }
}
