:root{
  --bg:#f4f6fa; --card:#ffffff; --ink:#14181f; --muted:#4a5363;
  --brand:#0b3d91; --brand-ink:#ffffff; --accent:#d4a017;
  --line:#c9d0db; --focus:#ff8a00; --error:#b00020; --ok:#1b6e2d;
  --radius:12px;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:Lato,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;background:var(--bg);color:var(--ink);line-height:1.5}
.wrap{max-width:1180px;margin:0 auto;padding:0 16px}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link{position:absolute;left:8px;top:-60px;background:var(--ink);color:#fff;padding:10px 14px;border-radius:8px;z-index:10}
.skip-link:focus{top:8px}
:focus-visible{outline:3px solid var(--focus);outline-offset:2px}

.site-header{background:var(--brand);color:var(--brand-ink);padding:24px 0 28px}
.site-header a{color:#fff}
.brand{margin:0;font-weight:700;letter-spacing:.04em;text-transform:uppercase;font-size:.85rem}
.site-header h1{margin:4px 0 4px;font-size:clamp(1.8rem,4vw,2.6rem)}
.tagline{margin:0;opacity:.95}

.layout{display:grid;grid-template-columns:1.1fr 1fr;gap:24px;margin-top:24px}
.layout>*{min-width:0}
@media (max-width:880px){.layout{grid-template-columns:minmax(0,1fr)}}
@media (max-width:420px){.color-row{grid-template-columns:1fr 56px auto}}

.preview,.controls,.quote{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:20px}
.preview{position:sticky;top:16px;align-self:start}
@media (max-width:880px){.preview{position:static}}
.stage{background:radial-gradient(circle at 50% 35%,#ffffff 0%,#e7ebf2 70%);border-radius:var(--radius);padding:12px}
#jersey{width:100%;height:auto;display:block;max-height:70vh}
.hint{color:var(--muted);font-size:.9rem;margin:10px 0 0}

.view-toggle{display:flex;gap:8px;margin-bottom:12px}
.view-btn{flex:1;min-height:44px;border:2px solid var(--brand);background:#fff;color:var(--brand);font-weight:700;border-radius:999px;cursor:pointer;font-size:1rem}
.view-btn[aria-pressed="true"]{background:var(--brand);color:#fff}

.controls h2,.quote h2{margin-top:0}
fieldset{min-width:0;border:1px solid var(--line);border-radius:10px;padding:12px 14px 14px;margin:0 0 14px}
legend{font-weight:700;padding:0 6px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chips label{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:999px;padding:8px 12px;min-height:44px;cursor:pointer;background:#fff}
.chips label:has(input:checked){border-color:var(--brand);background:#e8efff;font-weight:600}
.chips input{accent-color:var(--brand);width:18px;height:18px;margin:0}

.color-row{display:grid;grid-template-columns:130px 56px 1fr;align-items:center;gap:10px;margin-bottom:8px}
.color-row input[type=color]{width:56px;height:40px;border:1px solid var(--line);border-radius:8px;padding:2px;background:#fff;cursor:pointer}
.color-row output{font-family:ui-monospace,Consolas,monospace;color:var(--muted);font-size:.9rem}
.palettes{display:flex;flex-wrap:wrap;gap:8px}
.palette-btn{display:flex;align-items:center;gap:6px;border:1px solid var(--line);background:#fff;border-radius:999px;padding:6px 10px;min-height:40px;cursor:pointer;font-size:.9rem}
.palette-btn .sw{display:inline-flex}
.palette-btn .sw i{width:14px;height:14px;border-radius:50%;border:1px solid rgba(0,0,0,.35);margin-left:-4px}
.palette-btn .sw i:first-child{margin-left:0}

label{display:block;font-weight:600;margin:8px 0 4px}
.chips label,.size-grid label{font-weight:500}
input[type=text],input[type=email],input[type=tel],input[type=number],textarea{width:100%;padding:10px 12px;font:inherit;border:1px solid #8a94a6;border-radius:8px;background:#fff;color:var(--ink);min-height:44px}
input[type=file]{font:inherit;max-width:100%}
.sub{color:var(--muted);font-size:.88rem;margin:4px 0}
.link-btn{background:none;border:0;color:var(--brand);text-decoration:underline;cursor:pointer;padding:4px 0;font:inherit}

.actions{display:flex;gap:10px;flex-wrap:wrap}
.btn{min-height:46px;padding:10px 18px;border-radius:999px;font:inherit;font-weight:700;cursor:pointer;border:2px solid var(--brand)}
.btn.primary{background:var(--brand);color:#fff}
.btn.secondary{background:#fff;color:var(--brand)}
.btn.ghost{background:transparent;color:var(--muted);border-color:var(--line)}
.btn[disabled]{opacity:.6;cursor:progress}

.quote{margin:24px auto}
.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:0 16px}
@media (max-width:640px){.grid{grid-template-columns:1fr}}
.size-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}
@media (max-width:640px){.size-grid{grid-template-columns:repeat(3,1fr)}}
.error{color:var(--error);font-size:.9rem;margin:4px 0 0;min-height:0}
[aria-invalid="true"]{border-color:var(--error)!important;border-width:2px!important}
.status{font-weight:600;margin-top:12px}
.status.ok{color:var(--ok)}
.status.err{color:var(--error)}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

.site-footer{padding:20px 0 32px;color:var(--muted);font-size:.9rem}

@media (prefers-reduced-motion:no-preference){
  #shirt *{transition:fill .2s ease}
}

/* ===== Header (matches dynastyhasmhasports.com) ===== */
:root{--navy:#00204f;--hdr:#d6d8db}
.dr-container{max-width:1222px;margin:0 auto;padding:0 16px}
.dr-header{font-family:Lato,Arial,Helvetica,sans-serif;background:var(--hdr);color:#000}
.dr-header a{color:inherit;text-decoration:none}
.dr-header a:hover,.dr-header a:focus-visible{text-decoration:underline}
.dr-topbar{border-bottom:1px solid rgba(0,0,0,.08);font-size:12px;text-transform:uppercase}
.dr-topbar-in{display:flex;justify-content:space-between;align-items:center;min-height:41px;gap:12px}
.dr-ship{margin:0;padding:0 10px;border-left:1px solid rgba(0,0,0,.12);border-right:1px solid rgba(0,0,0,.12);line-height:41px}
.dr-toplinks{list-style:none;display:flex;margin:0;padding:0}
.dr-toplinks li{border-left:1px solid rgba(0,0,0,.12)}
.dr-toplinks li:last-child{border-right:1px solid rgba(0,0,0,.12)}
.dr-toplinks a{display:block;padding:0 10px;line-height:41px}
.dr-main-in{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:82px;padding-top:6px;padding-bottom:6px}
.dr-logo img{display:block;height:70px;width:auto}
.dr-badge{flex:1;display:flex;align-items:center;justify-content:center;gap:10px;background:#fff;border-radius:999px;height:46px;max-width:460px;padding:0 20px}
.dr-badge-k{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#8a6d00;font-weight:700}
.dr-badge-t{font-size:18px;font-weight:900;color:var(--navy);text-transform:uppercase;letter-spacing:.04em}
.dr-store-btn{background:var(--navy);color:#fff!important;font-weight:700;font-size:13px;text-transform:uppercase;padding:0 20px;height:46px;display:inline-flex;align-items:center;border-radius:4px}
.dr-nav{background:#fff;border-bottom:1px solid #e5e5e5}
.dr-nav ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:0 2px}
@media (max-width:900px){.dr-nav ul{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin}}
.dr-nav a{display:block;white-space:nowrap;padding:0 8px;line-height:49px;font-size:12.8px;font-weight:700;text-transform:uppercase;color:#333!important;border-bottom:3px solid transparent}
.dr-nav a[aria-current="page"]{color:var(--navy)!important;border-bottom-color:#d4a017}
@media (max-width:700px){
  .dr-ship{display:none}
  .dr-topbar-in{justify-content:flex-end}
  .dr-badge{display:none}
  .dr-logo img{height:56px}
  .dr-store-btn{height:40px;padding:0 14px;font-size:12px}
}
.product-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px;margin-top:20px}
.product-head h1{margin:0;font-size:clamp(1.5rem,3.4vw,2.2rem);color:var(--navy);font-weight:900}
.product-head h1:focus{outline:none}
.product-head h1:focus-visible{outline:3px solid var(--focus)}
.shop-link{color:var(--navy);font-weight:700}
.layout{margin-top:14px}
.preview .actions{margin-top:12px}
a.btn{display:inline-flex;align-items:center;text-decoration:none}
:root{--brand:#00204f}

@media (max-width:1400px) and (min-width:901px){.dr-nav a{font-size:12px;padding:0 7px}}
