/* Shared vector UI. No platform-dependent text symbols or emoji icons. */
.ui-icon{display:inline-block;flex:none;width:20px;height:20px;vertical-align:middle;overflow:visible;pointer-events:none}
.ui-icon.icon-diamond{fill:currentColor;stroke:none;width:13px;height:13px}
.ui-icon.icon-spark{width:22px;height:22px}
.ui-icon.icon-pause{stroke-width:2.5;width:17px;height:17px}
.ui-icon.icon-play{width:17px;height:17px}
.ui-icon.icon-circle{width:24px;height:24px}
.menu-arrow{display:inline-flex;align-items:center;justify-content:center;line-height:1}
.menu-index,.menu-toggle-label{display:none}
.menu-scrim{display:none}
.header-buy .ui-icon,.button .ui-icon{width:22px;height:22px}
.button [aria-hidden],.tool-button [aria-hidden],.social-action>span,.build-follow>span{display:inline-flex;align-items:center;justify-content:center}
.hero-bottom a,.crew-caption a,.receipt-share,.footer-links a,.board-prize-link,.tool-reset,.board-text-button{display:inline-flex;align-items:center;gap:9px}
.hero-bottom .ui-icon,.crew-caption .ui-icon,.footer-links .ui-icon{width:15px;height:15px}
.mascot-help>span{display:inline-flex;align-items:center}
.flow-arrow .ui-icon{width:80px;height:56px;stroke-width:1.3}
.ticker-track b{display:inline-flex;align-items:center}
.ticker-track .ui-icon{width:24px;height:24px}
.receipt-printer summary .ui-icon{width:26px;height:26px}
#refresh-rewards{display:inline-flex;align-items:center;gap:12px}
#refresh-rewards span{display:inline-flex;margin:0}
.shift-help kbd .ui-icon{width:12px;height:12px}
.shift-touch-help{display:block}
.board-connect,.wallet-option{display:flex;justify-content:space-between;align-items:center;gap:14px}
.board-connect::after,.wallet-option::after,#ai-download::after{content:'';width:20px;height:20px;flex:none;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 19 19 5M5 5h14v14'/%3E%3C/svg%3E") center/contain no-repeat}
#ai-download::after{width:18px;height:18px;mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12m-5-5 5 5 5-5M4 16v5h16v-5'/%3E%3C/svg%3E")}
.wallet-dialog [data-wallet-close]{display:grid;place-items:center;width:44px;height:44px;flex-shrink:0;border:1px solid var(--line);border-radius:50%}
[data-wallet-missing] a{display:flex;justify-content:space-between;align-items:center;min-height:48px;gap:12px;margin-right:0}
.wallet-policy{display:inline-flex;align-items:center;gap:8px;min-height:44px}

/* One intentional navigation system across phones and tablets. */
@media(max-width:1400px){
  html{scroll-padding-top:100px}
  html.menu-is-open{overflow:hidden}
  .masthead{top:max(10px,env(safe-area-inset-top));width:calc(100% - 24px);padding:10px 10px 10px 18px;min-height:68px;border-radius:14px;box-shadow:0 8px 24px #00000014}
  .masthead .header-brand{font-size:38px;align-items:center}
  .header-actions{gap:8px}
  .header-buy{min-height:44px;padding:12px 14px;gap:16px;font-size:13px;border-radius:7px}
  .menu-toggle{width:auto;min-width:68px;padding:0 12px;gap:10px;min-height:44px;border-color:#424242;border-radius:7px}
  .menu-toggle-label{display:block;font:600 10px/1 var(--body);letter-spacing:.08em}
  .menu-toggle-lines{width:16px;gap:5px}
  .menu-toggle-lines i{width:16px;height:1.5px}
  .menu-toggle[aria-expanded=true] .menu-toggle-lines i:first-child{transform:translateY(3.25px) rotate(45deg)}
  .menu-toggle[aria-expanded=true] .menu-toggle-lines i:last-child{transform:translateY(-3.25px) rotate(-45deg)}
  .masthead .header-nav,.masthead.is-enhanced .header-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:0 10px;padding:20px 22px 22px}
  .masthead.is-enhanced .header-nav{top:calc(100% + 8px);left:0;right:0;border-radius:14px;border-color:#363636;background:#111;box-shadow:0 20px 50px #0003;max-height:calc(100dvh - 106px - env(safe-area-inset-top) - env(safe-area-inset-bottom));scrollbar-width:thin;scrollbar-color:#555 transparent}
  .masthead .menu-link{grid-column:1/-1;display:flex;align-items:center;justify-content:flex-start;gap:16px;min-height:58px;padding:14px 0;margin:0;border:0;border-bottom:1px solid #333;border-radius:0;font:700 clamp(28px,5.8vw,36px)/1 var(--display);letter-spacing:-.01em;white-space:normal;color:#fff}
  .masthead .menu-index{display:block;flex:none;width:21px;font:500 11px/1 var(--body);font-variant-numeric:tabular-nums;letter-spacing:.06em;color:#939393}
  .masthead .menu-name{flex:1;min-width:0}
  .masthead .menu-arrow{display:inline-flex;flex:none;margin-left:auto;color:#858585}
  .masthead .menu-arrow .ui-icon{width:21px;height:21px;stroke-width:1.5}
  .masthead .menu-link[aria-current="location"]{color:#ff4b51}
  .masthead .menu-link[aria-current="location"] .menu-index,.masthead .menu-link[aria-current="location"] .menu-arrow{color:#ff4b51}
  .masthead .menu-external{grid-column:auto;min-height:52px;margin-top:10px;padding:14px 12px;border:1px solid #353535;border-radius:6px;background:#1a1a1a;font:600 12px/1.4 var(--body);letter-spacing:.015em;gap:8px}
  .masthead .menu-external:nth-child(6),.masthead .menu-external:nth-child(7){margin-top:20px}
  .masthead .menu-external .ui-icon{width:16px;height:16px}
  .masthead .menu-link:focus-visible{outline-offset:3px}
  .masthead .menu-link:active{color:#ff6267;background:#202020}
  .masthead .menu-link::after{display:none}
  .menu-scrim{display:block;position:fixed;inset:0;z-index:7;background:#0006;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .25s,visibility .25s}
  .menu-is-open .menu-scrim{opacity:1;visibility:visible;pointer-events:auto}
}
@media(min-width:1401px){
  .masthead .menu-link{font-size:12px}
  .masthead .menu-arrow .ui-icon{width:15px;height:15px}
  .masthead .menu-link .local-arrow{display:none}
}

/* Mobile art direction: generous type, aligned edges, and useful touch targets. */
@media(max-width:700px){
  .hero{padding:38px 6% 24px;overflow:hidden}
  .hero h1{font-size:clamp(3.4rem,17.3vw,6.9rem);line-height:.92;letter-spacing:-.025em}
  .hero .eyebrow{font-size:12px;letter-spacing:.06em;margin-bottom:23px;gap:9px}
  .hero-description{font-size:16px;line-height:1.65;margin:22px 0 25px}
  .hero .button-red{width:100%;justify-content:space-between;min-height:56px;padding:17px 20px;border-radius:6px;font-size:14px}
  .hero-art{height:355px;min-height:0;align-self:stretch;margin:6px 0 0;justify-content:center}
  .hero-art .mascot-control{position:absolute;width:min(112%,440px);max-width:none;right:auto;top:-27px}
  .hero-art .mascot-control .suit-guy{width:100%}
  .hero-art .stamp{right:0;top:37px;width:80px;height:80px;font-size:10px}
  .hero-art .stamp strong{font-size:23px}
  .mascot-help{right:auto;bottom:0;font-size:11px;letter-spacing:.015em;gap:8px;white-space:nowrap}
  .mascot-help .ui-icon{width:16px;height:16px}
  .hero-bottom{position:relative;left:auto;right:auto;bottom:auto;width:100%;display:flex;align-items:flex-start;flex-direction:column;gap:7px;margin-top:20px;padding-top:17px;border-top:1px solid var(--line);font-size:11px;line-height:1.5;letter-spacing:.035em}
  .hero-bottom a{min-height:36px;white-space:normal}
  .hero-bottom span:last-child{max-width:none;text-align:left}
  .office-pause{right:4%;top:5px;color:var(--muted)}
  .ticker{padding:16px 0}
  .ticker-track{font-size:26px;gap:25px}
  .ticker-track .ui-icon{width:19px;height:19px}
  .contract-bar{padding:24px 6%}
  .contract-copy{align-items:center;gap:15px}
  .contract-copy code{font-size:12px;line-height:1.7;overflow-wrap:anywhere}
  .contract-copy button{min-width:74px;min-height:46px;border-radius:5px}
  .rewards-section,.receipts-section,.crew-section,.build-section,.shift-section,.fitting-section{padding-left:6%;padding-right:6%}
  .rewards-section,.receipts-section,.build-section,.shift-section,.fitting-section{padding-top:58px;padding-bottom:58px}
  .rewards-heading h2,.receipts-top h2,.crew-intro h2,.tools-heading h2{font-size:clamp(2.55rem,12.7vw,5.2rem);line-height:.96}
  .rewards-heading p,.reward-explainer p,.tools-heading>p,.shift-heading>p{font-size:16px;line-height:1.65}
  .reward-flow{display:grid;grid-template-columns:1fr 30px 1.22fr;gap:9px;padding:25px 0;margin:30px 0 24px}
  .reward-flow strong{font-size:clamp(2rem,11.2vw,4.5rem)}
  .reward-flow>div>span{font-size:11px;letter-spacing:.02em}
  .flow-arrow{display:flex;justify-content:center}
  .flow-arrow .ui-icon{width:28px;height:28px;stroke-width:1.5}
  .reward-explainer>div{gap:0;margin-top:20px}
  .text-link,.text-link.secondary{min-height:50px;align-items:center;border-top:1px solid var(--line);font-size:12px;white-space:normal;gap:16px}
  .reward-note{font-size:12px;line-height:1.65}
  .receipt-source{font-size:14px;min-height:48px}
  .amount-line strong{font-size:clamp(3rem,14.5vw,6.4rem)}
  .amount-line>span{font-size:28px}
  .distribution-total>p:first-child{font-size:12px}
  .receipt-meta{font-size:13px;gap:12px}
  #refresh-rewards{font-size:13px;min-height:44px}
  .promotion-heading h3{font-size:36px}
  .promotion-ladder li{grid-template-columns:52px 1fr auto;gap:10px;min-height:67px}
  .promotion-ladder li>span{font-size:12px}
  .promotion-ladder small{font-size:12px;max-width:75px;text-align:right}
  .promotion-ladder strong{font-size:30px}
  .receipt-printer summary{font-size:31px;gap:12px}
  .receipt-printer-content .tool-actions{display:grid;grid-template-columns:1fr;width:100%}
  .receipt-printer-content .tool-button{font-size:13px;min-height:50px}
  .receipt-share{justify-content:space-between;min-height:48px;font-size:13px}
  .crew-section{padding-top:58px;padding-bottom:48px}
  .crew-caption{align-items:center;font-size:10px;line-height:1.5}
  .crew-caption a{min-height:44px;gap:6px}
  .build-section h2{font-size:clamp(3.8rem,19vw,7.5rem)}
  .build-layout{gap:32px}
  .build-follow{min-height:56px}
  .shift-heading h2{font-size:clamp(3.6rem,16.5vw,6rem)}
  .shift-eyebrow{font-size:12px;letter-spacing:.075em;line-height:1.5}
  .shift-machine{border-radius:12px}
  .shift-stat>span{font-size:10px;letter-spacing:0}
  .shift-device-best>span{font-size:10px;max-width:75px}
  .shift-control-deck{padding:16px 14px}
  .shift-move{border-radius:6px;min-height:56px}
  .shift-utility{border-radius:5px;font-size:12px;min-height:46px}
  .shift-help .shift-keyboard-help{display:none}
  .shift-help>p,.shift-status{font-size:12px}
  .shift-touch-help{line-height:1.6}
  .shift-section:not([data-game-state="running"]) .shift-arena{min-height:310px}
  .shift-overlay{padding:20px 16px}
  .shift-start-card{padding:22px 18px;box-shadow:4px 4px 0 #171717}
  .shift-start-card h3{font-size:clamp(2.4rem,10vw,3.5rem)}
  .shift-card-description{font-size:14px;line-height:1.45;margin:13px auto 16px}
  .shift-start{min-height:48px;font-size:14px}
  .shift-start-note{font-size:10px;margin-top:12px}
  .shift-leaderboard{padding:24px 18px;border-radius:10px;box-shadow:none;border-color:#d2d2d2}
  .board-heading .shift-eyebrow{font-size:11px;letter-spacing:.025em}
  .board-heading h3{font-size:clamp(2.2rem,9.7vw,3.5rem)}
  .board-count{font-size:11px;letter-spacing:.05em}
  .board-wallet p{font-size:15px;line-height:1.6}
  .board-wallet span{display:block;font-size:12px;line-height:1.6}
  .board-connect{min-height:52px;font-size:14px;border-radius:6px;gap:12px;padding:15px}
  .board-table th{font-size:11px}
  .board-table td{font-size:13px}
  .board-footer{display:block;margin-top:23px}
  .board-footer p{font-size:12px}
  .board-footer .board-text-button{min-height:44px;font-size:13px;margin-top:13px}
  .board-prize-link{min-height:40px}
  .prize-receipts{margin-top:26px;padding:27px 20px;border-radius:10px}
  .prize-receipts h3{font-size:3rem}
  .prize-receipts-summary{font-size:14px}
  .prize-receipts-summary strong{display:block;font-size:20px}
  .prize-wallet code{font-size:12px}
  .prize-proof{width:100%;min-height:48px;border-radius:5px}
  .prize-announcement{font-size:13px}
  .fitting-section{padding-top:58px}
  .fitting-layout{gap:32px}
  .portrait-stage{padding:12px;border-radius:14px}
  .portrait-hint{font-size:11px;letter-spacing:.035em;line-height:1.5}
  .circle-preview{min-height:48px;font-size:14px}
  .fitting-label{font-size:12px;letter-spacing:.075em}
  .ai-intro{font-size:16px;line-height:1.65}
  .upload-zone{padding:25px 16px;border-radius:10px;background:#f5f5f5}
  .upload-zone small{font-size:12px}
  .tool-message,.ai-consent{font-size:14px;line-height:1.6}
  .ai-consent input{width:20px;height:20px;margin:2px 0 0}
  .fitting-controls .tool-actions{display:flex;gap:7px 22px}
  .fitting-controls .tool-button{width:100%;min-height:56px;font-size:14px;padding:17px 19px}
  .tool-reset{font-size:14px;min-height:48px;line-height:1.5}
  .fine-print{font-size:12px;line-height:1.75}
  .wallet-dialog{padding:24px;max-height:calc(100dvh - 50px);overflow:auto;box-shadow:5px 5px 0 var(--red)}
  .wallet-dialog h3{font-size:56px}
  .wallet-dialog p:not(.shift-eyebrow){font-size:14px}
  .wallet-dialog-top .shift-eyebrow{font-size:11px}
  .wallet-policy{font-size:12px;line-height:1.5}
  .finale{padding:50px 6%}
  .finale h2{font-size:clamp(4.5rem,21vw,7rem)}
  .finale-heading p{font-size:12px;line-height:1.6}
  .social-actions{gap:12px;margin-top:27px}
  .social-box{padding:23px;min-height:164px;border-radius:8px}
  .social-box h3{font-size:44px}
  .social-action{font-size:13px}
  .site-footer{padding:30px 6%;gap:20px}
  .site-footer p{font-size:12px;line-height:1.7}
  .site-footer .footer-links{display:grid;grid-template-columns:1fr 1fr;gap:0 20px;width:100%;padding-top:12px}
  .site-footer .footer-links a{justify-content:space-between;min-height:48px;font-size:12px;border-bottom:1px solid var(--line);gap:5px}
  .site-footer .footer-links a:first-child{order:-2}
  .site-footer .footer-links a:last-child{order:-1}
}
@media(max-width:360px){
  .masthead{padding-left:13px;gap:8px}
  .masthead .header-brand{font-size:33px}
  .header-buy{gap:8px;padding:11px;font-size:12px}
  .menu-toggle{min-width:44px;width:44px;padding:0}
  .menu-toggle-label{display:none}
  .masthead.is-enhanced .header-nav{padding:16px 18px 18px}
  .masthead .menu-link{min-height:54px;font-size:27px}
  .masthead .menu-external{font-size:11px;min-height:50px;padding:12px 9px}
  .hero-art{height:310px}
  .hero-art .stamp{width:72px;height:72px;font-size:9px}
  .hero-art .stamp strong{font-size:21px}
  .hero .eyebrow{font-size:11px}
  .mascot-help{font-size:10px}
  .social-box h3{font-size:38px}
}
@media(prefers-reduced-motion:reduce){.menu-scrim{transition:none;backdrop-filter:none;-webkit-backdrop-filter:none}}

/* Inactive game cards participate in layout so enlarged text cannot be clipped. */
@media(max-width:700px){.shift-section:not([data-game-state="running"]) .shift-arena{display:grid}.shift-section:not([data-game-state="running"]) #suit-game-canvas{grid-area:1/1}.shift-section:not([data-game-state="running"]) .shift-overlay{grid-area:1/1;position:relative;inset:auto;min-height:310px}.board-text-button{min-height:44px}.shift-start-note{font-size:12px}.shift-stat>span{font-size:11px}.shift-device-best>span{font-size:11px}}
@media(max-width:1400px){.masthead.is-enhanced .header-nav{grid-column:auto;grid-row:auto}.masthead .header-brand:focus-visible{outline:1px solid #aaa;outline-offset:3px}}
@media(min-width:701px) and (max-width:1400px){.masthead.is-enhanced .header-nav{width:440px;left:auto;right:0}.masthead .menu-external{font-size:14px}}
@media(max-width:700px){.hero{display:flex;flex-direction:column;align-items:stretch}.rewards-heading,.reward-explainer,.crew-intro{display:block}.menu-link.menu-external{font-size:13px}.board-table-wrap{overscroll-behavior-x:contain}}
@media(max-width:360px){.masthead .menu-external{font-size:11px;padding:12px 10px;gap:5px}.masthead .menu-external .menu-arrow .ui-icon{width:14px;height:14px}}
