.funnel-nav[hidden],.funnel-actions[hidden]{display:none}
.start-card--free-pix #startButton{min-height:44px}
.shared-game-invitation #startButton{white-space:normal;overflow-wrap:anywhere;max-width:min(680px,100%);line-height:1.3;font-size:clamp(12px,1.4vw,22px)}
#freePixShareDialog{width:min(620px,calc(100vw - 24px));max-height:90dvh;overflow:auto;background:radial-gradient(circle at top,#3a183e,#15101d);color:#fff8e7;border:2px solid #ffdc66;padding:24px;font:16px/1.5 "Chakra Petch",system-ui;text-align:center}
#freePixShareDialog::backdrop{background:#09070de8}
#freePixShareDialog .share-logo{width:150px;height:auto}
#freePixShareDialog h2{font:clamp(22px,4vw,34px) "Black Ops One",monospace;color:#ffdc66;line-height:1.2}
#freePixShareDialog label{display:grid;gap:6px;text-align:left}
#freePixShareDialog input{width:100%;box-sizing:border-box;background:#09070d;color:#fff8e7;border:1px solid #6f526f;padding:12px;font:14px monospace}
.share-modal-actions{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0;justify-content:center}
#freePixShareDialog button,#freePixShareDialog .share-modal-actions a{min-height:44px;box-sizing:border-box;padding:12px 18px;border:2px solid #67d7d1;background:#15101d;color:#67d7d1;font:16px "Black Ops One",monospace;text-decoration:none;cursor:pointer}
#freePixShareDialog #copyFreePixLink{background:#f4d893;color:#15101d;border-color:#ffdc66}
#freePixShareDialog button:disabled{opacity:.5;cursor:not-allowed}
#freePixShareDialog [hidden]{display:none!important}
#freePixShareDialog :is(button,a,input):focus-visible{outline:3px solid #fff;outline-offset:3px}
#freePixShareDialog a{color:#ffdc66}
#shareLinkScope{font-size:13px;color:#f4d893}
@media(max-width:480px){#freePixShareDialog{padding:16px}.share-modal-actions{display:grid;grid-template-columns:1fr;width:100%}}
.pixed-end-logo[hidden]{display:none}
#gameCompleteCard.pixed-end-card [hidden]{display:none!important}
#gameCompleteCard.pixed-end-card{background:radial-gradient(circle at 50% 30%,#3a183e,#15101df5 65%);padding:clamp(12px,3vw,32px);overflow-y:auto;gap:8px;align-content:safe center}
.pixed-end-card .pixed-end-logo{width:clamp(100px,15vw,180px);height:auto;justify-self:center;margin:0 auto 4px}
#gameCompleteCard.pixed-end-card h2{font-size:clamp(24px,4.5vw,64px);line-height:1.1;letter-spacing:1px;text-shadow:3px 3px #cf3128,5px 5px #09070d;margin:0}
#gameCompleteCard.pixed-end-card>p{font-size:clamp(12px,1.6vw,20px);line-height:1.4;margin:4px 0}
.pixed-end-card .funnel-actions{display:grid;grid-template-columns:1fr;width:min(360px,100%);max-width:100%;gap:10px;margin:8px auto}
.pixed-end-card .funnel-actions button,.pixed-end-card .funnel-actions a{font-family:"Black Ops One",monospace;font-size:clamp(13px,1.5vw,19px);min-height:44px;display:grid;place-content:center;padding:10px 16px;animation:none;line-height:1.3}
.pixed-end-card #customizeGame{width:100%;justify-self:stretch;background:#f4d893;color:#15101d;border-color:#ffdc66;box-shadow:0 4px #705e39;font-size:clamp(16px,1.8vw,23px)}
.recipient-completion #completionCreate{width:100%;background:#f4d893;color:#15101d;border:2px solid #ffdc66;box-shadow:0 4px #705e39;font-size:clamp(16px,1.8vw,23px);text-decoration:none}
.pixed-end-card.recipient-completion #customizeGame{background:#15101d;color:#ffdc66;border-color:#ffdc66;box-shadow:none;font-size:clamp(13px,1.5vw,19px)}
.pixed-end-card #shareDemo{background:#15101d;color:#67d7d1;border-color:#67d7d1;width:100%}
.custom-game-information{width:min(620px,100%);justify-self:center;text-align:left}
.custom-benefits{display:grid;grid-template-columns:1fr 1fr;gap:10px 24px;list-style:square;padding-left:22px;color:#fff8e7;font:16px/1.4 "Chakra Petch",system-ui}
.custom-benefits li::marker{color:#67d7d1}
#gameCompleteCard .custom-game-information p{font:14px/1.5 "Chakra Petch",system-ui;margin:10px 0}
.offer-availability{border:1px solid #6f526f;padding:10px;color:#f4d893;background:#15101d}
.offer-actions{display:grid;gap:10px;max-width:400px;margin:14px auto;text-align:center}
#gameCompleteCard .offer-actions button{min-height:44px;width:100%;font:16px/1.3 "Black Ops One",monospace;animation:none}
#gameCompleteCard #paidCreatorPreview{background:#f4d893;color:#15101d;border-color:#ffdc66;cursor:not-allowed;opacity:1}
#gameCompleteCard #shareFreePixOffer{color:#67d7d1;border-color:#67d7d1;background:#15101d}
#gameCompleteCard #backToPixed{background:transparent;border-color:transparent;text-decoration:underline;color:#fff8e7;font-size:14px}
.pixed-end-card #shareStatus{max-width:620px;justify-self:center;font:14px/1.5 "Chakra Petch",system-ui;text-align:center}
.pixed-end-card #shareStatus:empty{display:none}
#gameCompleteCard.pixed-end-card:has(#customGameInformation:not([hidden])){align-content:start}
@media(min-width:701px){
  #gameCompleteCard.pixed-end-card:has(#customGameInformation:not([hidden])){padding:16px;gap:6px}
  .pixed-end-card:has(#customGameInformation:not([hidden])) .pixed-end-logo{width:120px}
  #gameCompleteCard.pixed-end-card:has(#customGameInformation:not([hidden])) h2{font-size:clamp(24px,3.5vw,48px)}
  #gameCompleteCard.pixed-end-card:has(#customGameInformation:not([hidden]))>p{font-size:16px}
}
@media(max-width:700px){.custom-benefits{grid-template-columns:1fr;font-size:14px;gap:8px}.offer-actions{margin:10px auto}}
.pixed-end-card #playAgain{background:transparent;color:#fff8e7;border-color:transparent;text-decoration:underline;font-size:14px}
.pixed-end-card .funnel-actions :is(button,a):focus-visible{outline:3px solid #fff;outline-offset:3px}
.pixed-end-card .funnel-actions :is(button,a):hover{filter:brightness(1.15)}
.pixed-end-card .funnel-actions p{font:12px/1.4 "Chakra Petch",system-ui;margin:4px 0}
@media(max-width:700px){
  body:has(#gameCompleteCard.pixed-end-card:not([hidden])) .arcade-shell{grid-template-rows:auto 1fr;gap:12px}
  .game-frame:has(>.pixed-end-card:not([hidden])){aspect-ratio:auto;min-height:min(600px,calc(100dvh - 160px));max-height:none;margin:0 auto}
  .game-frame:has(>.pixed-end-card:not([hidden])) .mobile-controls{display:none}
  #gameCompleteCard.pixed-end-card{align-content:start;padding:12px}
  .pixed-end-card .pixed-end-logo{width:100px}
  .pixed-end-card .funnel-actions{gap:8px;margin:8px auto}
}
.funnel-nav{display:flex;align-items:center;gap:22px;font:700 13px system-ui,sans-serif;min-width:0}
.funnel-actions button,.funnel-actions a{padding:10px 14px;border:2px solid #f4d893;color:#f4d893;background:#15101d;text-decoration:none;font:700 13px system-ui,sans-serif;cursor:pointer}
.funnel-actions a{background:#f4d893;color:#15101d}
.funnel-nav a{color:#fff8e7;text-decoration:none;white-space:nowrap;line-height:1.5;padding:4px 0}
.funnel-nav a:hover,.funnel-nav a:focus-visible{color:#ffdc66;text-decoration:underline;text-underline-offset:4px}
.topbar.funnel-header{grid-template-columns:250px minmax(0,1fr) auto}
.funnel-header .stage{display:none}
.funnel-header .funnel-nav{grid-column:2;grid-row:1/3}
.funnel-header .effects-controls{grid-column:3;grid-row:2}
.funnel-header .brand--free-pix{width:250px}
.funnel-splash .mobile-controls{display:none}
.funnel-actions .secondary-create{flex-basis:100%;background:transparent;border:0;color:#fff8e7;text-decoration:underline;font-size:12px;padding:4px}
.share-unavailable{position:relative;z-index:4;color:#fff8e7;background:#17101ddd;padding:8px;max-width:80%;font:600 14px system-ui,sans-serif}
.start-card--free-pix #startButton{max-width:90%;white-space:normal;overflow-wrap:anywhere}
.funnel-header .effects-controls button{white-space:nowrap;flex-shrink:0}
#fixtureNotice{color:#e8c97c;font-size:12px}
.funnel-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;max-width:min(620px,95%);margin:12px auto}
.funnel-actions p,.funnel-actions #manualCopy{flex-basis:100%;margin:6px 0;font-size:14px}
#shareUrl{width:min(440px,90%);padding:8px;font:14px system-ui,sans-serif}
@media(max-width:700px){.topbar.funnel-header{grid-template-columns:minmax(80px,130px) minmax(0,1fr) auto;column-gap:8px}.funnel-header .brand--free-pix{width:130px}.funnel-header .funnel-nav{grid-row:1;flex-direction:column;align-items:flex-start;gap:4px;font-size:10px}.funnel-header .effects-controls{grid-column:2/4;grid-row:2}.funnel-header .funnel-nav a{white-space:normal}}

/* Free-demo desktop instructions only; input bindings and touch controls stay intact. */
@media(min-width:701px) and (pointer:fine){
  body:has(.topbar.funnel-header) .controls .free-pix-unused-hint{display:none}
}
/* Keep copy/share ahead of the URL field on short phone landscapes. All actions remain scrollable. */
@media(orientation:landscape) and (pointer:coarse){
  #freePixShareDialog{
    box-sizing:border-box;
    width:min(720px,calc(100vw - max(12px,env(safe-area-inset-left)) - max(12px,env(safe-area-inset-right))));
    max-height:calc(100dvh - max(8px,env(safe-area-inset-top)) - max(8px,env(safe-area-inset-bottom)));
    padding:10px 14px;
  }
  #freePixShareDialog[open]{display:grid;grid-template-columns:minmax(0,1fr);gap:5px}
  #freePixShareDialog .share-logo{display:none}
  #freePixShareDialog h2{grid-row:1;font-size:22px;line-height:1.15;margin:0}
  #freePixShareDialog>p{margin:0;font-size:13px;line-height:1.3}
  #freePixShareDialog>p:first-of-type{grid-row:2;font-size:12px}
  #freePixShareDialog #shareLinkScope{grid-row:3;font-size:11px}
  #freePixShareDialog .share-modal-actions{grid-row:4;display:flex;flex-wrap:wrap;gap:6px;margin:2px 0}
  #freePixShareDialog label{grid-row:5;font-size:13px;gap:3px}
  #freePixShareDialog input{min-height:44px;padding:6px;font-size:13px}
  #freePixShareDialog #shareModalStatus{grid-row:6}
  #freePixShareDialog>p:has(a[href="/pix/manage.html"]){grid-row:7;font-size:12px}
  #freePixShareDialog>p:has(a[href="/pix/manage.html"]) a{display:inline-flex;align-items:center;min-height:44px;padding:0 6px}
  #freePixShareDialog #closeFreePixShare{grid-row:8;justify-self:center}
  #freePixShareDialog :is(button,.share-modal-actions a){min-height:44px;padding:8px 12px;font-size:14px}
}
@media(max-width:700px){.funnel-splash .arcade-shell{min-height:0;grid-template-rows:auto auto auto}.funnel-splash .game-frame{margin-top:0;margin-bottom:0}.topbar.funnel-header{grid-template-columns:clamp(94px,32.35vw,130px) minmax(0,1fr) auto}.funnel-header .funnel-nav a{white-space:nowrap}}
@media(max-width:360px){.funnel-header .funnel-nav{font-size:9px;gap:5px}.funnel-header>.sound{padding-inline:6px}}
@media(max-width:700px){.game-complete-card:has(.funnel-actions:not([hidden])){place-content:center;padding:10px}.game-complete-card:has(.funnel-actions:not([hidden])) h2{font-size:24px;margin:8px}.game-complete-card:has(.funnel-actions:not([hidden])) p{font-size:12px;margin:4px}.funnel-actions{gap:6px;margin:6px auto}.funnel-actions button,.funnel-actions a{font-size:11px;padding:8px}.funnel-nav{gap:8px}}
