/* Helmet Builder (Nov 17): the gamedayskinz.com helmet customizer brought
   into the portal for reps and office logins. Built from the live Shopify
   customizer (helmet art, stripes, team fonts, the two logos), with:
   - shell finishes: Gloss, Matte, Metallic and Chrome (curved reflection)
   - stripe and side decal controls always showing (on Shopify the stripe
     only appeared after clicking the Front or Rear view)
   - decal colors from the portal decal lists (Gloss, Chrome, Platinum)
   - PNG and PDF downloads drawn here, so team fonts print right
   Nothing is saved yet (step 2: save to the customer, attach to an estimate,
   send the coach a link). Art lives in /assets/helmet/. A new logo or stripe
   is an SVG with the same color layers, added to LOGOS or STRIPES below. */
@font-face { font-family: AKTUELLE; src: url(/assets/helmet/fonts/AKTUELLE.woff2) format('woff2'); }
@font-face { font-family: ARMY; src: url(/assets/helmet/fonts/ARMY.woff2) format('woff2'); }
@font-face { font-family: BADGERS; src: url(/assets/helmet/fonts/BADGERS.woff2) format('woff2'); }
@font-face { font-family: BISON; src: url(/assets/helmet/fonts/BISON.woff2) format('woff2'); }
@font-face { font-family: BULLDOG_BOLD; src: url(/assets/helmet/fonts/BULLDOG_BOLD.woff2) format('woff2'); }
@font-face { font-family: CAL_MUSTANGS; src: url(/assets/helmet/fonts/CAL_MUSTANGS.woff2) format('woff2'); }
@font-face { font-family: CARDS; src: url(/assets/helmet/fonts/CARDS.woff2) format('woff2'); }
@font-face { font-family: COUGARS; src: url(/assets/helmet/fonts/COUGARS.woff2) format('woff2'); }
@font-face { font-family: CYCLONE; src: url(/assets/helmet/fonts/CYCLONE.woff2) format('woff2'); }
@font-face { font-family: GATOR_SCRIPT; src: url(/assets/helmet/fonts/GATOR_SCRIPT.woff2) format('woff2'); }
@font-face { font-family: BLOCK; src: url(/assets/helmet/fonts/BLOCK.woff2) format('woff2'); }

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: #1f1f21; font-family: 'Barlow', sans-serif; min-height: 100vh; color: #e0e0e0; }
.page-wrap { max-width: 1320px; margin: 0 auto; padding: 22px 16px 80px; }
h1 { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 34px; letter-spacing: .02em; text-transform: uppercase; color: #f0f0f0; }
h1 span { color: #ccff02; }
.sub { color: #9b9ba0; font-size: 14px; margin: 4px 0 18px; max-width: 760px; line-height: 1.5; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 18px; align-items: start; }
@media (max-width: 980px) { .layout { grid-template-columns: 1fr; } }

/* preview */
.stage { background: #28282a; border: 1px solid #343437; border-radius: 10px; padding: 14px; position: sticky; top: 12px; }
@media (max-width: 980px) { .stage { position: static; } }
.views { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.view { position: relative; background: #1a1a1c; border: 2px solid #343437; border-radius: 8px; padding: 26px 10px 10px; cursor: pointer; transition: border-color .15s; }
.view:hover { border-color: #55555a; }
.view.on { border-color: #ccff02; }
.view-label { position: absolute; top: 8px; left: 10px; font: 800 11px/1 'Barlow Condensed', sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #9b9ba0; }
.view.on .view-label { color: #1a1a1a; background: #ccff02; padding: 4px 6px; border-radius: 3px; top: 6px; }
.wrap { aspect-ratio: 720 / 660; display: flex; align-items: center; justify-content: center; user-select: none; }
.wrap svg { width: 100%; height: 100%; display: block; }
.wrap .loading { color: #6b6b70; font-size: 13px; }
.stage-hint { text-align: center; margin-top: 10px; font: 700 11px/1.4 'Barlow Condensed', sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #6b6b70; }

/* controls */
.panel { display: flex; flex-direction: column; gap: 12px; }
.card { background: #28282a; border: 1px solid #343437; border-radius: 10px; }
.sec-head { width: 100%; display: flex; align-items: center; gap: 10px; background: none; border: 0; color: #f0f0f0; cursor: pointer; padding: 14px 16px; text-align: left; }
.sec-head .n { font: 800 12px/1 'Barlow Condensed', sans-serif; color: #1a1a1a; background: #ccff02; border-radius: 4px; padding: 4px 6px; }
.sec-head .t { font: 800 18px/1 'Barlow Condensed', sans-serif; letter-spacing: .04em; text-transform: uppercase; flex: 1; }
.sec-head .v { font-size: 13px; color: #9b9ba0; max-width: 170px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sec-head .chev { width: 9px; height: 9px; border-right: 2px solid #9b9ba0; border-bottom: 2px solid #9b9ba0; transform: rotate(45deg); margin: -4px 4px 0 0; transition: transform .15s; }
.card.shut .chev { transform: rotate(-45deg); margin-top: 0; }
.sec-body { padding: 0 16px 16px; }
.card.shut .sec-body { display: none; }
.lbl { display: block; font-size: 13px; font-weight: 600; color: #9b9ba0; margin: 12px 0 6px; }
.lbl:first-child { margin-top: 0; }
.lbl i { font-style: normal; color: #6b6b70; font-weight: 500; }
input[type=text] { width: 100%; background: #1a1a1c; border: 1px solid #3c3c40; border-radius: 6px; color: #f0f0f0; font: 15px 'Barlow', sans-serif; padding: 9px 10px; outline: none; }
input[type=text]:focus { border-color: #ccff02; }
/* Send it to us form (public page) */
input[type=email], input[type=tel], input[type=number], input[type=date], .send-box select { width: 100%; background: #1a1a1c; border: 1px solid #3c3c40; border-radius: 6px; color: #f0f0f0; font: 15px 'Barlow', sans-serif; padding: 9px 10px; outline: none; color-scheme: dark; }
input[type=email]:focus, input[type=tel]:focus, input[type=number]:focus, input[type=date]:focus, .send-box select:focus { border-color: #ccff02; }
.pf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pf-checks { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.pf-check { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #e0e0e0; cursor: pointer; }
.pf-check input { accent-color: #ccff02; width: 16px; height: 16px; }
.pf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pf-ts { margin-top: 14px; min-height: 65px; }
.pf-send { width: 100%; margin-top: 12px; }
textarea { width: 100%; min-height: 70px; resize: vertical; background: #1a1a1c; border: 1px solid #3c3c40; border-radius: 6px; color: #f0f0f0; font: 14.5px/1.4 'Barlow', sans-serif; padding: 9px 10px; outline: none; }
textarea:focus { border-color: #ccff02; }
.send-box { margin-top: 18px; padding-top: 14px; border-top: 1px solid #343437; }
.send-box h3 { font: 800 16px 'Barlow Condensed', sans-serif; letter-spacing: .05em; text-transform: uppercase; color: #f0f0f0; }
.contacts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.contacts button { background: #1a1a1c; border: 1px solid #3c3c40; border-radius: 14px; color: #ddd; font: 13px 'Barlow', sans-serif; padding: 5px 10px; cursor: pointer; }
.contacts button:hover { border-color: #ccff02; color: #ccff02; }
.hint { font-size: 12.5px; color: #8a8a8f; margin-top: 6px; line-height: 1.45; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: 800 13px/1 'Barlow Condensed', sans-serif; letter-spacing: .06em; text-transform: uppercase; border-radius: 6px; padding: 8px 11px; cursor: pointer; background: transparent; color: #bbb; border: 1px solid #4a4a4e; }
.chip:hover { color: #f0f0f0; border-color: #6a6a70; }
.chip.on { border-color: #ccff02; color: #1a1a1a; background: #ccff02; }
.sw-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.sw { aspect-ratio: 1; border-radius: 5px; cursor: pointer; border: 2px solid transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); position: relative; padding: 0; }
.sw:hover { transform: scale(1.08); }
.sw.on { border-color: #ccff02; box-shadow: 0 0 0 2px rgba(204,255,2,.3); }
.picked { font-size: 13px; color: #9b9ba0; margin-top: 8px; }
.picked b { color: #f0f0f0; font-weight: 600; }
.tabs { display: flex; gap: 0; border: 1px solid #4a4a4e; border-radius: 7px; overflow: hidden; margin-bottom: 12px; }
.tab { flex: 1; background: transparent; border: 0; color: #bbb; font: 800 13px/1 'Barlow Condensed', sans-serif; letter-spacing: .06em; text-transform: uppercase; padding: 10px 6px; cursor: pointer; }
.tab + .tab { border-left: 1px solid #4a4a4e; }
.tab.on { background: #ccff02; color: #1a1a1a; }
.fonts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.font { background: #1a1a1c; border: 1px solid #3c3c40; border-radius: 6px; color: #f0f0f0; cursor: pointer; padding: 8px 2px 6px; text-align: center; font-size: 24px; line-height: 1; }
.font span { display: block; font: 600 10px/1.2 'Barlow', sans-serif; color: #8a8a8f; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.font.on { border-color: #ccff02; }
.toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; color: #e0e0e0; margin-top: 10px; }
.toggle input { display: none; }
.toggle .tr { width: 38px; height: 22px; border-radius: 11px; background: #1a1a1c; border: 1px solid #4a4a4e; position: relative; flex: none; transition: background .15s; }
.toggle .tr::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #9b9ba0; transition: transform .15s, background .15s; }
.toggle input:checked + .tr { background: #ccff02; border-color: #ccff02; }
.toggle input:checked + .tr::after { transform: translateX(16px); background: #1a1a1a; }
.logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.logo { background: #1a1a1c; border: 1px solid #3c3c40; border-radius: 7px; cursor: pointer; padding: 8px; color: #bbb; font: 700 12px 'Barlow Condensed', sans-serif; letter-spacing: .05em; text-transform: uppercase; }
.logo .pv { aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.logo .pv svg { width: 100%; height: 100%; }
.logo.on { border-color: #ccff02; color: #f0f0f0; }
.upload { border: 2px dashed #4a4a4e; border-radius: 8px; padding: 20px 12px; text-align: center; cursor: pointer; color: #bbb; }
.upload:hover, .upload.drag { border-color: #ccff02; color: #f0f0f0; }
.upload b { display: block; font: 800 16px 'Barlow Condensed', sans-serif; letter-spacing: .05em; text-transform: uppercase; }
.upload small { font-size: 12px; color: #8a8a8f; }
.up-file { display: flex; align-items: center; gap: 10px; margin-top: 10px; background: #1a1a1c; border-radius: 6px; padding: 8px; font-size: 13px; }
.up-file img { width: 40px; height: 40px; object-fit: contain; background: repeating-conic-gradient(#2a2a2c 0% 25%, #333336 0% 50%) 50% / 8px 8px; border-radius: 4px; }
.up-file .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-file .st { font-size: 12px; color: #9be29b; }
.up-file .st.busy { color: #ffb547; } .up-file .st.bad { color: #ff8a8a; }
.slider { display: flex; align-items: center; gap: 10px; }
.slider input { flex: 1; accent-color: #ccff02; }
.slider span { width: 44px; text-align: right; font-size: 13px; color: #9b9ba0; }
.stripes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.stripes .chip { padding: 10px; text-align: center; }
.btn { font: 800 13px/1 'Barlow Condensed', sans-serif; letter-spacing: .06em; text-transform: uppercase; border-radius: 6px; padding: 10px 14px; cursor: pointer; background: transparent; color: #e0e0e0; border: 1px solid #4a4a4e; }
.btn:hover { border-color: #ccff02; color: #ccff02; }
.btn.go { background: #ccff02; color: #1a1a1a; border-color: #ccff02; font-size: 14px; }
.btn.go:hover { background: #b8e800; color: #1a1a1a; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.small { font-size: 12px; padding: 7px 10px; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.actions .wide { grid-column: 1 / -1; }
.summary { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 13.5px; }
.summary dt { color: #8a8a8f; }
.summary dd { color: #f0f0f0; }
.msg { font-size: 13.5px; color: #9b9ba0; margin-top: 10px; min-height: 1em; }
.msg.bad { color: #ff8a8a; } .msg.ok { color: #9be29b; }
/* school search and saved designs (0071) */
.cust { position: relative; }
.cust-list { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin-top: 4px; background: #1a1a1c; border: 1px solid #4a4a4e; border-radius: 6px; max-height: 260px; overflow: auto; display: none; }
.cust-list.on { display: block; }
.cust-list button { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid #2c2c2f; color: #e0e0e0; font: 14px 'Barlow', sans-serif; padding: 9px 10px; cursor: pointer; }
.cust-list button:hover { background: #26262a; color: #ccff02; }
.cust-list small { color: #8a8a8f; margin-left: 6px; }
.picked-cust { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; color: #f0f0f0; }
.picked-cust a { color: #ccff02; font-size: 12.5px; }
.saved-list { margin-top: 10px; display: grid; gap: 6px; }
.saved-row { display: flex; align-items: center; gap: 10px; background: #1a1a1c; border: 1px solid #343437; border-radius: 7px; padding: 6px 8px; text-decoration: none; color: #e0e0e0; font-size: 13.5px; }
.saved-row:hover { border-color: #ccff02; }
.saved-row.on { border-color: #ccff02; }
.saved-row img { width: 54px; height: 48px; object-fit: contain; flex: none; }
.saved-row .nm { flex: 1; min-width: 0; }
.saved-row .nm b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.saved-row .nm span { font-size: 12px; color: #8a8a8f; }
.saved-state { font-size: 13px; color: #9b9ba0; margin-top: 8px; }
.mockup-note { font-size: 12.5px; color: #ffb547; margin-top: 8px; line-height: 1.45; }
/* Public copy on gamedayskinz.com (customer/helmet-builder.html) vs the rep page. */
.hb-public .rep-only { display: none !important; }
.hb-rep .public-only { display: none !important; }
.hb-public .page-wrap { padding-top: 14px; }
/* Football or baseball (Nov 19) */
.sport-bar { margin: 10px 0 2px; }
.sport-bar .chip { font-size: 15px; padding: 10px 18px; }
body:not(.hb-sport-bb) .bb-only { display: none !important; }
.hb-sport-bb .fb-only { display: none !important; }
.view.bb-view { grid-column: 1 / -1; }
.view.bb-view .wrap { max-width: 600px; margin: 0 auto; aspect-ratio: 550 / 560; }

/* Buy online (Nov 19): shell colors sold on gamedayskinz.com get a cart mark, and the Get this helmet box. */
.sw.retail::after { content: ''; position: absolute; right: -4px; bottom: -4px; width: 15px; height: 15px; border-radius: 50%; box-shadow: 0 0 0 2px #232326; background: #ccff02 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h3l2.5 11h10L21 8H7'/%3E%3Ccircle cx='10' cy='20' r='1.5'/%3E%3Ccircle cx='17' cy='20' r='1.5'/%3E%3C/svg%3E") center / 10px no-repeat; pointer-events: none; }
.retail-hint { margin-top: 8px; }
#buy-body .chips { margin-bottom: 12px; }
.buy-item { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 4px; padding: 12px 14px; border: 1px solid #ccff02; border-radius: 8px; background: rgba(204,255,2,.06); }
.buy-item b { font: 700 16px 'Barlow Condensed', sans-serif; letter-spacing: .03em; color: #f0f0f0; }
.buy-item span { font: 800 18px 'Barlow Condensed', sans-serif; color: #ccff02; white-space: nowrap; }
.buy-note { margin: 10px 0; }
.buy-note b { color: #f0f0f0; }
a.buy-go { display: block; text-align: center; text-decoration: none; margin: 12px 0 4px; }
.btn.wide { width: 100%; }
#buy-body .buy-send { margin-top: 6px; }
