@font-face {
    font-family: "Bricolage Grotesque";
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url("./fonts/bricolage-grotesque-latin.woff2") format("woff2");
}
@font-face {
    font-family: "Martian Mono";
    font-style: normal;
    font-weight: 500 700;
    font-display: swap;
    src: url("./fonts/martian-mono-latin.woff2") format("woff2");
}

:root {
    --ink: #121410;
    --ink-soft: #282b24;
    --paper: #e4d9c1;
    --paper-deep: #cdbf9f;
    --lime: #ddff43;
    --lime-hot: #cbf51c;
    --muted: #74776d;
    --line: rgba(18, 20, 16, .16);
    --white-line: rgba(255, 255, 255, .16);
    --display: "Bricolage Grotesque", Arial, sans-serif;
    --mono: "Martian Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; background: var(--paper); color: var(--ink); }
body { min-width: 320px; margin: 0; overflow-x: hidden; background: var(--paper); font-family: var(--display); -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, select, input[type="range"] { cursor: pointer; }
button { color: inherit; }
button:focus-visible, select:focus-visible, input:focus-visible, canvas:focus-visible { outline: 3px solid #7d43ff; outline-offset: 3px; }

.page-shell { width: min(100%, 1480px); margin: 0 auto; padding: 0 clamp(18px, 4.2vw, 72px); }
.site-header { position: relative; z-index: 20; min-height: 84px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--line); }
.brand-logo { width: min(62px, 100%); height: auto; aspect-ratio: 1; display: block; cursor: pointer; touch-action: none; }
.brand-logo:active { cursor: grabbing; }
.brand-logo:hover { filter: drop-shadow(0 5px 9px rgba(18,20,16,.22)); }
.patch-remaining { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 0; color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1.2; text-align: center; white-space: nowrap; }
.live-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: #ff6a00; box-shadow: 0 0 0 3px rgba(255,106,0,.14); animation: live-blink 1s ease-in-out infinite; }
@keyframes live-blink { 0%, 45% { opacity: 1; } 55%, 100% { opacity: .18; } }
.experience-stage { position: relative; min-height: calc(100dvh - 84px); }
.studio { min-height: calc(100dvh - 84px); display: grid; align-items: center; margin-top: 0; border: 0; background: transparent; }
.viewer-column { position: relative; min-width: 0; display: flex; flex-direction: column; transform: translateY(-35px); }
.viewer-column.is-experience-entering { transform-origin: 50% 50%; animation: live-view-roll-in 850ms cubic-bezier(.16, 1, .3, 1) both; }
.store-stage-content.is-experience-entering { transform-origin: 50% 50%; animation: store-view-roll-in 850ms cubic-bezier(.16, 1, .3, 1) both; }
.ball-game-stage.is-experience-entering { transform-origin: 50% 50%; animation: game-view-roll-in 700ms cubic-bezier(.16, 1, .3, 1) both; }
@keyframes live-view-roll-in {
    from { opacity: 0; transform: translate(-54px, -35px) rotate(-4deg) scale(.98); }
    45% { opacity: .82; }
    to { opacity: 1; transform: translate(0, -35px) rotate(0) scale(1); }
}
@keyframes store-view-roll-in {
    from { opacity: 0; transform: translate(54px, 30px) rotate(3deg) scale(.98); }
    45% { opacity: .82; }
    to { opacity: 1; transform: translate(0, 30px) rotate(0) scale(1); }
}
@keyframes game-view-roll-in {
    from { opacity: 0; transform: translateY(24px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.viewer { position: relative; min-height: min(610px, 100dvh); flex: 1 1 auto; overflow: hidden; background: transparent; touch-action: none; }
.purchase-patch-below { display: flex; justify-content: center; margin-top: 12px; transform: translateY(-12px); }
.purchase-patch-below[hidden] { display: none; }
.purchase-patch-below .purchase-patch-button:not(:disabled) { animation: purchase-pulse 1.8s ease-in-out infinite; }
@keyframes purchase-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,106,0,0); filter: brightness(1); }
    50% { box-shadow: 0 0 0 7px rgba(255,106,0,.2); filter: brightness(1.08); }
}
.viewer::before { content: none; }
.viewer::after { content: none; }
#ballCanvas { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
#ballCanvas:active { cursor: grabbing; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.on-ball-editor { position: absolute; z-index: 5; inset: 0; pointer-events: none; }
.on-ball-editor[hidden] { display: none; }
.on-ball-surface { position: absolute; min-width: 104px; min-height: 104px; transform: translate(-50%, -50%); pointer-events: none; }
.direct-object { position: absolute; z-index: 1; min-width: 24px; min-height: 18px; border: 1px dashed rgba(221,255,67,.92); border-radius: 2px; background: transparent; transform: translate(-50%, -50%); cursor: move; pointer-events: auto; touch-action: none; }
.direct-object.is-active { z-index: 2; }
.direct-logo-object { display: block; }
.direct-logo-object[hidden] { display: none; }
.direct-text-object { display: block; border-color: rgba(107,64,228,.95); }
.direct-text-object[hidden] { display: none; }
.on-ball-surface[data-panel-type="pentagon"] .direct-text-object { border-color: rgba(221,255,67,.92); }
.direct-object.is-active, .direct-object:focus-within { filter: drop-shadow(0 3px 7px rgba(0,0,0,.28)); }
.direct-object:not(.is-active) .direct-handle { display: none; }
.direct-handle { position: absolute; z-index: 3; width: 22px; height: 22px; display: grid; place-items: center; padding: 0; border: 1px solid var(--ink); border-radius: 50%; background: var(--lime); color: var(--ink); box-shadow: 0 2px 7px rgba(0,0,0,.24); font: 800 12px/1 var(--display); touch-action: none; }
.direct-rotate-handle { top: -7px; left: 50%; cursor: grab; transform: translate(-50%, -50%); }
.direct-resize-handle { right: -7px; bottom: -7px; cursor: nwse-resize; transform: translate(50%, 50%); }
.direct-resize-handle::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.direct-add-logo { position: absolute; z-index: 1; left: 50%; top: 25%; min-height: 25px; padding: 0 7px; border: 1px dashed rgba(221,255,67,.9); border-radius: 3px; background: rgba(10,12,9,.78); color: var(--lime); font: 700 8px var(--mono); transform: translate(-50%, -50%); pointer-events: auto; }
.direct-add-logo[hidden] { display: none; }
.direct-toolbar { position: absolute; left: 50%; top: 50%; width: min(290px, calc(100vw - 28px)); display: grid; gap: 5px; padding: 5px; border: 1px solid rgba(18,20,16,.45); border-radius: 5px; background: rgba(228,217,193,.92); box-shadow: 0 7px 24px rgba(18,20,16,.22); backdrop-filter: blur(8px); transform: translate(-50%, 72px); pointer-events: auto; }
.direct-text-field { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 7px; color: rgba(18,20,16,.66); font: 700 8px var(--mono); text-transform: uppercase; }
.direct-text-field input { width: 100%; min-width: 0; height: 31px; padding: 0 8px; border: 1px solid rgba(18,20,16,.24); border-radius: 3px; outline: 0; background: rgba(255,255,255,.7); color: var(--ink); font-size: 13px; font-weight: 750; text-transform: none; }
.direct-text-field input:focus { border-color: #6b40e4; box-shadow: 0 0 0 1px #6b40e4; }
.direct-website-field { grid-template-columns: minmax(0, 1fr); }
.direct-website-controls { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px; }
.upload-logo-button { min-height: 25px; padding: 0 7px; border: 1px solid rgba(18,20,16,.4); border-radius: 3px; background: rgba(255,255,255,.72); color: var(--ink); font: 700 8px var(--mono); white-space: nowrap; }
.upload-logo-button:hover { border-color: #6b40e4; background: #fff; }
.upload-logo-button[hidden] { display: none; }
.direct-upload-logo { height: 31px; }
.direct-website-field input[aria-invalid="true"] { border-color: #b3261e; box-shadow: 0 0 0 1px #b3261e; }
.purchase-patch-button { min-height: 42px; padding: 0 22px; border: 1px solid var(--ink); border-radius: 4px; background: #ff6a00; color: var(--ink); font-size: 16px; font-weight: 800; line-height: 1.1; }
.purchase-patch-button:hover:not(:disabled) { background: #ed5f00; }
.purchase-patch-button:disabled { cursor: not-allowed; opacity: .45; }
.purchase-patch-button.is-processing { cursor: wait; }
.purchase-notice { position: fixed; z-index: 150; right: 18px; bottom: 18px; width: min(390px, calc(100vw - 36px)); padding: 14px 16px; border: 1px solid var(--ink); border-radius: 5px; background: var(--lime); color: var(--ink); box-shadow: 0 14px 38px rgba(18,20,16,.28); font-size: 14px; font-weight: 750; line-height: 1.35; }
.purchase-notice[hidden] { display: none; }
.purchase-notice.is-error { background: #fff0ea; border-color: #b3261e; color: #7b1c17; }
.taken-patch-actions[hidden] { display: none; }
.taken-patch-actions { position: fixed; z-index: 145; inset: 0; display: grid; place-items: center; padding: 20px; }
.taken-patch-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(18,20,16,.16); }
.taken-patch-card { position: relative; z-index: 1; width: min(390px, 100%); padding: 22px; border: 1px solid var(--ink); border-radius: 8px; background: rgba(228,217,193,.85); box-shadow: 0 20px 60px rgba(18,20,16,.3); text-align: center; }
.taken-patch-close { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; display: grid; place-items: center; padding: 0 0 3px; border: 1px solid rgba(18,20,16,.45); border-radius: 50%; background: transparent; font-size: 21px; line-height: 1; }
.taken-patch-close:hover { background: rgba(255,255,255,.55); }
.taken-patch-kicker { margin: 0 0 6px; color: #6b40e4; font: 800 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.taken-patch-card h2 { margin: 0; font-size: 25px; line-height: 1.1; }
.taken-patch-action-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 8px; margin-top: 19px; }
.taken-patch-action-grid button { min-height: 44px; padding: 0 12px; border: 1px solid var(--ink); border-radius: 4px; font-size: 14px; font-weight: 800; }
.taken-patch-visit { background: transparent; }
.taken-patch-visit:hover:not(:disabled) { background: rgba(255,255,255,.55); }
.taken-patch-visit:disabled { cursor: not-allowed; opacity: .45; }
.taken-patch-outbid { background: #ff6a00; }
.taken-patch-outbid:hover { background: #ed5f00; }
.purchase-confirm[hidden] { display: none; }
.purchase-confirm { position: fixed; z-index: 140; inset: 0; display: grid; place-items: center; padding: 20px; }
.purchase-confirm-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(18,20,16,.42); }
.purchase-confirm-card { position: relative; z-index: 1; width: min(390px, 100%); padding: 22px; border: 1px solid var(--ink); border-radius: 8px; background: var(--paper); box-shadow: 0 20px 60px rgba(18,20,16,.3); text-align: center; }
.purchase-confirm-card h2 { margin: 0; font-size: 25px; line-height: 1.1; }
.purchase-confirm-card p { margin: 10px 0 19px; color: rgba(18,20,16,.72); font-size: 15px; line-height: 1.4; }
.purchase-confirm-actions { display: grid; grid-template-columns: 1fr 1.35fr; gap: 8px; }
.purchase-confirm-actions button { min-height: 42px; padding: 0 11px; border: 1px solid var(--ink); border-radius: 4px; font-size: 14px; font-weight: 800; }
.purchase-confirm-cancel { background: transparent; }
.purchase-confirm-cancel:hover { background: rgba(255,255,255,.55); }
.purchase-confirm-submit { background: #ff6a00; }
.purchase-confirm-submit:hover { background: #ed5f00; }
.purchase-patch-editor { width: 100%; min-height: 35px; margin-top: 2px; padding: 0 10px; font-size: 14px; }
.loading-state { position: absolute; z-index: 6; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: var(--paper); color: var(--ink); transition: opacity .35s ease, visibility .35s ease; }
.loading-state.is-ready { opacity: 0; visibility: hidden; }
.loading-state strong { font-size: 13px; }
.loader-ball { width: 45px; height: 45px; border: 2px solid rgba(18,20,16,.2); border-top-color: #6b40e4; border-radius: 50%; animation: spin .85s linear infinite; }
.viewer-error { position: absolute; z-index: 7; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 30px; background: var(--paper); color: var(--ink); text-align: center; }
.viewer-error[hidden] { display: none; }
.viewer-error strong { color: #6b40e4; font-size: 18px; }
.viewer-error span { color: var(--muted); }
@keyframes spin { to { transform: rotate(360deg); } }

.auction-subnav { position: relative; z-index: 8; display: grid; justify-items: center; gap: 8px; margin-top: -78px; }
.funding-progress { position: absolute; z-index: 8; top: 92px; left: 50%; width: min(360px, calc(100% - 40px)); display: grid; gap: 7px; text-align: center; transform: translateX(-50%); }
.funding-progress-status { color: rgba(18,20,16,.7); font-size: 11px; font-weight: 700; line-height: 1.2; }
.first-sticker-note { margin: 0; color: rgba(18,20,16,.78); font-size: 12px; font-weight: 650; line-height: 1.25; }
.funding-progress progress { width: 100%; height: 10px; overflow: hidden; appearance: none; -webkit-appearance: none; border: 1px solid rgba(18,20,16,.72); border-radius: 999px; background: rgba(255,255,255,.35); }
.funding-progress progress::-webkit-progress-bar { border-radius: 999px; background: rgba(255,255,255,.35); }
.funding-progress progress::-webkit-progress-value { border-radius: 999px; background: #ff6a00; }
.funding-progress progress::-moz-progress-bar { border-radius: 999px; background: #ff6a00; }
.experience-tabs { width: min(330px, calc(100% - 28px)); display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 2px; border: 1px solid var(--ink); border-radius: 999px; background: rgba(228,217,193,.94); box-shadow: 0 6px 20px rgba(18,20,16,.18); backdrop-filter: blur(8px); }
.experience-tab { min-height: 30px; padding: 0 8px; border: 0; border-radius: 999px; background: transparent; color: rgba(18,20,16,.66); font: 800 14px/1 var(--display); }
.experience-tab:hover { color: var(--ink); background: rgba(255,255,255,.42); }
.experience-tab.is-active { background: #ff6a00; color: var(--ink); }
.experience-tab[aria-selected="true"] { cursor: default; }
.live-auction-panel { width: min(720px, 100%); margin: 14px auto clamp(72px, 8vw, 110px); text-align: center; }
.live-auction-panel:empty { display: none; }
.live-auction-panel[hidden], .store-panel[hidden] { display: none; }
.live-auction-panel p { margin: 0; color: rgba(18,20,16,.63); font: 600 11px/1.55 var(--mono); }
.studio[hidden] { display: none; }
.store-panel { position: absolute; inset: 0; display: grid; align-content: safe center; min-width: 0; padding: 80px 0 180px; overflow-y: auto; }
.store-stage-content { min-width: 0; transform: translateY(30px); }
.store-heading { width: min(680px, 100%); margin: 0 auto clamp(26px, 4vw, 38px); text-align: center; }
.store-kicker { margin: 0 0 10px; color: #6b40e4; font: 700 10px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.store-heading h1 { margin: 0; font-size: clamp(36px, 4.5vw, 56px); line-height: .96; letter-spacing: -.05em; }
.store-heading > p:last-child { max-width: 610px; margin: 15px auto 0; color: rgba(18,20,16,.66); font-size: clamp(14px, 1.5vw, 17px); line-height: 1.45; }
.store-grid { display: grid; grid-template-columns: repeat(auto-fit, 240px); justify-content: center; align-items: start; gap: 16px; }
.store-fulfillment-note { width: min(720px, 100%); margin: 16px auto 0; color: rgba(18,20,16,.66); font-size: 12px; font-weight: 600; line-height: 1.45; text-align: center; }
.store-listing { min-width: 0; overflow: hidden; border: 1px solid var(--ink); border-radius: 10px; background: rgba(255,255,255,.2); box-shadow: 0 18px 48px rgba(18,20,16,.09); }
.store-preview { position: relative; aspect-ratio: 1; overflow: hidden; border-bottom: 1px solid var(--ink); background: radial-gradient(circle at 50% 45%, #eee5d2 0, var(--paper) 52%, var(--paper-deep) 100%); }
.store-preview canvas { width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-x; }
.store-preview canvas:active { cursor: grabbing; }
.store-listing.is-rotation-active { border-color: #6b40e4; box-shadow: 0 0 0 2px rgba(107,64,228,.22), 0 18px 48px rgba(18,20,16,.09); }
.store-listing.is-rotation-active .store-preview canvas { touch-action: none; }
.store-preview-label { position: absolute; top: 2px; left: 50%; display: flex; align-items: center; justify-content: center; gap: 6px; max-width: calc(100% - 20px); overflow: hidden; padding: 6px 10px; border: 1px solid rgba(18,20,16,.4); border-radius: 4px; background: rgba(228,217,193,.86); color: var(--ink); font: 800 11px/1 var(--display); text-align: center; text-overflow: ellipsis; white-space: nowrap; backdrop-filter: blur(6px); transform: translateX(-50%); }
.store-preview-label .live-dot { width: 7px; height: 7px; }
.store-listing-copy { padding: 10px; }
.store-listing-footer { display: grid; }
.store-preorder-button, .preorder-submit { min-height: 38px; padding: 0 10px; border: 1px solid var(--ink); border-radius: 4px; background: #ff6a00; color: var(--ink); font-size: 14px; font-weight: 800; }
.store-preorder-button { width: 100%; }
.store-preorder-button:hover, .preorder-submit:hover:not(:disabled) { background: #ed5f00; }
.preorder-modal[hidden] { display: none; }
.preorder-modal { position: fixed; z-index: 160; inset: 0; display: grid; place-items: center; padding: 20px; }
.preorder-modal-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(18,20,16,.48); }
.preorder-card { position: relative; z-index: 1; width: min(460px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 24px; border: 1px solid var(--ink); border-radius: 9px; background: var(--paper); box-shadow: 0 22px 70px rgba(18,20,16,.32); }
.preorder-close { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; display: grid; place-items: center; padding: 0 0 3px; border: 1px solid var(--ink); border-radius: 50%; background: transparent; font-size: 23px; line-height: 1; }
.preorder-close:hover { background: rgba(255,255,255,.55); }
.preorder-card h2 { max-width: calc(100% - 28px); margin: 0; font-size: clamp(27px, 4vw, 34px); line-height: 1.02; letter-spacing: -.035em; }
.preorder-card > p:not(.store-kicker) { margin: 9px 0 15px; color: rgba(18,20,16,.67); font-size: 12px; line-height: 1.4; }
.preorder-card form { display: grid; gap: 9px; }
.preorder-address-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.preorder-field-full { grid-column: 1 / -1; }
.preorder-field-row { min-width: 0; display: grid; gap: 4px; }
.preorder-field-row label { min-width: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 5px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.preorder-field-row label span { color: var(--muted); font: 500 6px var(--mono); text-transform: uppercase; }
.preorder-field-row input { width: 100%; min-width: 0; min-height: 37px; padding: 7px 9px; border: 1px solid rgba(18,20,16,.4); border-radius: 4px; outline: 0; background: rgba(255,255,255,.62); color: var(--ink); font-size: 13px; }
.preorder-field-row input:focus { border-color: #6b40e4; box-shadow: 0 0 0 1px #6b40e4; }
.preorder-error { margin: 0; padding: 10px 12px; border: 1px solid #b3261e; border-radius: 4px; background: #fff0ea; color: #7b1c17; font-size: 13px; font-weight: 700; }
.preorder-error[hidden] { display: none; }
.preorder-submit { width: 100%; margin-top: 2px; }
.preorder-submit:disabled { cursor: wait; opacity: .6; }

.ball-game[hidden] { display: none; }
.ball-game { position: absolute; inset: 0; display: grid; place-items: center; min-width: 0; padding: 0 0 100px; background: transparent; color: var(--ink); }
.ball-game-stage { position: relative; width: min(760px, 100%); height: min(650px, calc(100dvh - 168px)); min-height: 0; overflow: hidden; background: transparent; }
.ball-game-scoreboard { position: absolute; z-index: 5; left: 50%; top: 24%; display: flex; align-items: baseline; justify-content: center; gap: 8px; color: var(--ink); font: 800 clamp(24px, 3vw, 38px)/1 var(--display); pointer-events: none; transform: translate(-50%, -100%); }
.ball-game-scoreboard > strong { position: relative; min-width: 1ch; color: #ff6a00; text-align: center; }
.ball-game-best { position: absolute; left: calc(100% + 28px); top: 50%; display: flex; align-items: baseline; gap: 6px; color: #ff6a00; font: 800 .47em/1 var(--mono); text-transform: uppercase; white-space: nowrap; transform: translateY(-50%); }
.ball-game-best strong { min-width: 1ch; font: 800 1.45em/1 var(--display); }
#ballGameScore.is-point-up { animation: game-point-up .62s cubic-bezier(.16,1,.3,1); }
#ballGameScore.is-point-up::after { content: "+1"; position: absolute; left: 50%; top: -4px; color: #ff6a00; font: 800 .55em/1 var(--mono); animation: game-point-float .62s ease-out both; transform: translate(-50%, -100%); }
@keyframes game-point-up { 0% { transform: translateY(0) scale(1); } 38% { transform: translateY(-9px) scale(1.22); } 100% { transform: translateY(0) scale(1); } }
@keyframes game-point-float { from { opacity: 1; transform: translate(-50%, -100%) translateY(0); } to { opacity: 0; transform: translate(-50%, -100%) translateY(-24px); } }
.ball-game-view { position: relative; width: 100%; height: 100%; min-height: 0; overflow: hidden; touch-action: none; }
#ballGameCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; touch-action: none; }
#ballGameCanvas.is-flicking { cursor: grabbing; }
.ball-game-flick-guide { position: absolute; z-index: 3; left: 0; top: 0; width: 0; height: 4px; display: none; border-radius: 999px; background: #ff6a00; box-shadow: 0 0 0 1px rgba(18,20,16,.65), 0 0 18px rgba(255,106,0,.62); transform-origin: 0 50%; pointer-events: none; }
.ball-game-flick-guide::after { content: ""; position: absolute; right: -1px; top: 50%; width: 14px; height: 14px; border-top: 4px solid #ff6a00; border-right: 4px solid #ff6a00; filter: drop-shadow(1px -1px 0 rgba(18,20,16,.65)); transform: translateY(-50%) rotate(45deg); }
.ball-game button:focus-visible, #ballGameCanvas:focus-visible { outline-color: #6b40e4; }

.brand-modal[hidden] { display: none; }
.brand-modal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center end; padding: clamp(18px, 4.2vw, 72px); }
.brand-modal-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(18, 20, 16, .08); }
.control-panel-shell { position: relative; z-index: 1; width: min(330px, 100%); max-height: calc(100dvh - 36px); }
.control-panel { width: 100%; max-height: inherit; display: flex; flex-direction: column; overflow-y: auto; padding: 10px; border: 1px solid rgba(18,20,16,.52); border-radius: 7px; background: rgba(228,217,193,.68); box-shadow: 0 18px 54px rgba(18,20,16,.16); backdrop-filter: blur(6px) saturate(1.04); -webkit-backdrop-filter: blur(6px) saturate(1.04); }
.modal-close { position: absolute; z-index: 2; top: 0; right: 0; width: 38px; height: 38px; display: grid; place-items: center; padding: 0 0 3px; border: 1px solid rgba(18,20,16,.5); border-radius: 50%; background: rgba(228,217,193,.94); box-shadow: 0 4px 16px rgba(18,20,16,.18); font-size: 24px; line-height: 1; transform: translate(50%, -50%); }
.modal-close:hover { border-color: var(--ink); background: var(--paper); }
.patch-status[hidden] { display: none; }
.modal-section { padding: 0px 0; border-bottom: 1px solid var(--line); }
.upload-step { border-bottom: 0; }
.brand-primary-row { display: grid; grid-template-columns: 72px minmax(0, 1fr); grid-template-areas: "favicon link" "favicon description"; align-items: stretch; gap: 9px 8px; }
.favicon-field, .brand-link-field, .brand-description-field { min-width: 0; display: grid; gap: 5px; }
.favicon-field { grid-area: favicon; align-self: center; justify-items: center; }
.brand-link-field { grid-area: link; }
.brand-description-field { grid-area: description; }
.field-label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.modal-website-controls { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px; }
.brand-link-field > .visit-site-link { justify-self: end; }
.modal-upload-logo { min-height: 18px; padding-inline: 5px; font-size: 6px; }
.visit-site-link { color: #6b40e4; font: 700 7px var(--mono); text-decoration: none; text-transform: uppercase; }
.visit-site-link:hover { text-decoration: underline; }
.visit-site-link[hidden] { display: none; }
.favicon-preview { width: 64px; height: 64px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 7px; background: #f8f5ed; color: #6b40e4; }
.favicon-preview.is-loading { opacity: .58; }
.favicon-preview svg { width: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.favicon-preview img { width: 100%; height: 100%; object-fit: contain; padding: 7px; background: #f8f5ed; }
.favicon-field small { max-width: 72px; color: var(--muted); font: 500 6px/1.3 var(--mono); text-align: center; }
.field-error { margin: 8px 0 0; color: #b3261e; font: 600 8px var(--mono); }
.brand-link-field input, .brand-description-field input { width: 100%; min-height: 30px; padding: 0 3px; border: 1px solid var(--line); border-radius: 3px; outline: 0; background: rgba(255,255,255,.78); color: var(--ink); font-size: 14px; font-weight: 650; text-transform: none; }
.brand-link-field input:focus, .brand-description-field input:focus { border-color: #6b40e4; box-shadow: 0 0 0 1px #6b40e4; }
.brand-link-field input::placeholder, .brand-description-field input::placeholder { color: #8c8e85; font-weight: 500; }
.size-step { padding: 9px 0; }
.adjustment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stepper-control { min-width: 0; display: grid; grid-template-columns: auto 27px minmax(38px, 1fr) 27px; align-items: center; gap: 4px; }
.stepper-label { font-size: 9px; font-weight: 700; }
.stepper-button { width: 27px; height: 28px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 3px; background: rgba(255,255,255,.5); font-size: 16px; line-height: 1; }
.stepper-button:hover:not(:disabled) { border-color: #6b40e4; background: #fff; }
.stepper-button:disabled { cursor: not-allowed; opacity: .35; }
.stepper-value { min-width: 0; height: 28px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 3px; background: rgba(255,255,255,.72); color: #6b40e4; font: 700 14px var(--mono); }
.modal-action-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-top: 8px; }
.purchase-patch-modal { width: 100%; min-height: 38px; margin-top: 8px; font-size: 15px; }
.apply-button { height: 35px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--ink); border-radius: 3px; background: var(--lime); color: var(--ink); font-size: 18px; font-weight: 800; }
.apply-button:hover:not(:disabled) { background: var(--lime-hot); }
.apply-button:disabled { cursor: not-allowed; opacity: .45; }
.secondary-button { height: 35px; border: 1px solid var(--line); border-radius: 3px; background: transparent; font-size: 18px; font-weight: 700; }
.secondary-button:hover:not(:disabled) { border-color: var(--ink); background: #fff; }
.secondary-button:disabled { cursor: not-allowed; opacity: .4; }
.download-button { min-width: 0; height: 35px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 8px; border: 1px solid var(--ink); border-radius: 3px; background: transparent; color: var(--ink); font-size: 18px; font-weight: 800; transition: background .12s ease; }
.download-button:hover { background: rgba(255,255,255,.55); }
.download-button svg { width: 15px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 920px) {
    .viewer { min-height: 600px; }
}

@media (max-width: 620px) {
    .page-shell { padding: 0 14px; }
    .site-header { min-height: 68px; }
    .brand-logo { width: min(50px, 100%); }
    .funding-progress { top: 76px; }
    .patch-remaining { font-size: 13px; }
    .experience-stage, .studio { min-height: calc(100dvh - 68px); }
    .studio { margin-top: 0; }
    .viewer-column { transform: translateY(-35px); }
    .viewer { min-height: min(108vw, 430px, 100dvh); }
    .purchase-patch-below { margin-top: 8px; }
    .direct-toolbar { transform: translate(-50%, 68px); }
    .direct-handle { width: 24px; height: 24px; }
    .brand-modal { place-items: start center; padding: max(20px, env(safe-area-inset-top)) 20px 20px; }
    .control-panel-shell { width: 100%; max-height: min(78dvh, 660px); }
    .control-panel { width: 100%; max-height: inherit; padding: 18px; border-radius: 9px 9px 3px 3px; }
    .experience-tab { min-height: 29px; padding: 0 6px; font-size: 14px; }
    .auction-subnav { margin-top: -93px; }
    .live-auction-panel { margin-bottom: 54px; }
    .store-grid { display: flex; justify-content: flex-start; gap: 12px; margin: 0 -14px; padding: 0 14px 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-padding-left: 14px; scroll-snap-type: x mandatory; scrollbar-width: none; }
    .store-grid::-webkit-scrollbar { display: none; }
    .store-fulfillment-note { margin-top: 10px; padding: 0 8px; font-size: 11px; text-align: left; }
    .store-listing { flex: 0 0 240px; scroll-snap-align: start; }
    .store-heading { text-align: left; }
    .store-heading h1 { max-width: none; width: 100%; }
    .store-heading > p:last-child { margin-left: 0; }
    .preorder-modal { place-items: end center; padding: 12px; }
    .preorder-card { width: 100%; max-height: calc(100dvh - 24px); padding: 22px 16px 16px; border-radius: 10px 10px 4px 4px; }
    .ball-game-scoreboard { font-size: 25px; }
}

@media (max-width: 350px) {
    .control-panel { padding: 14px; }
    .brand-primary-row { gap: 6px; }
    .upload-copy small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
    .live-dot { animation: none !important; }
}
