/* Shared finish for the welcome page and both leaderboard surfaces. */
body{-webkit-text-size-adjust:100%}
.brand{line-height:1.3}#home-view .welcome{max-width:42ch}.resource-text{min-width:0}.resource-text strong,.resource-text small{line-height:1.45}.resource-icon{border:1px solid #e8eef5}.resource-icon-teal{border-color:#e0eeec}
.portal-button{min-height:44px}.board-retry{min-height:44px;font-weight:600}
.board-table th{font-weight:700}.board-table td{line-height:1.35}.board-table td:last-child{font-variant-numeric:tabular-nums}.tier-badge{line-height:1.2}.signature{line-height:1.6}
#home-view .game-choice{box-shadow:0 7px 20px #14467a20;transition:background .18s,box-shadow .18s,border-color .18s}#home-view .game-choice:active{box-shadow:0 3px 10px #14467a14}
.mobile-leaderboard-active .board-table thead{background:#f7fafb}.mobile-leaderboard-active .board-table th:first-child{border-radius:8px 0 0 8px}.mobile-leaderboard-active .board-table th:last-child{border-radius:0 8px 8px 0}.mobile-leaderboard-active .board-table tbody tr:first-child{background:#f0f8f4}.mobile-leaderboard-active .board-table tbody tr:first-child td:first-child{font-weight:700;color:var(--green)}.mobile-leaderboard-active .board-table.has-tiers td:nth-child(2){font-weight:600}.mobile-leaderboard-active .board-table.has-tiers td:last-child{letter-spacing:-.25px}.mobile-leaderboard-active .board-header{gap:10px}.mobile-leaderboard-active .board-table td{padding-top:17px;padding-bottom:17px}
@media(min-width:900px){.leaderboard-active .board-table thead{color:var(--muted)}.leaderboard-active .booth-join{border-color:#dbe8ec;box-shadow:0 8px 24px #14467a05}.leaderboard-active .booth-company{background:linear-gradient(145deg,#edf7f5,#f3f6fb)}.leaderboard-active .board-table tbody tr:first-child{background:#eaf5ee}.leaderboard-active .tier-badge{border-radius:9px}.leaderboard-active .board-title-row{align-items:center}}
@media(max-width:380px){.brand>span{min-width:0}.portal-button{padding:8px 9px;font-size:11px}.resource-text small{font-size:11px}}
@media(hover:hover){.board-retry:hover{background:#eef7f6;border-color:#b8d8d5}}
@media(prefers-reduced-motion:reduce){#home-view .game-choice{transition:none}}
@media(max-width:380px){.mobile-leaderboard-active .board-table.has-tiers td:last-child{font-size:11px}.mobile-leaderboard-active .board-table.has-tiers th{font-size:9px;letter-spacing:0}}


/* Chemy and the live game lettering form one inline Play button. */
#home-view .game-choice-art{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:8px;padding:10px 12px;min-height:104px;overflow:hidden;--play-button-fill:linear-gradient(115deg,#102540,#164369);background-color:#102540;background-image:linear-gradient(rgba(255,255,255,.12) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.12) 1px,transparent 1px),var(--play-button-fill);background-size:28px 28px,28px 28px,100% 100%;border-color:#183b62;border-radius:18px}
#home-view .game-choice-art:hover{--play-button-fill:linear-gradient(115deg,#132e4b,#195277);border-color:#008181;box-shadow:0 10px 24px #14467a30}
#home-view .play-game-chemy{display:block;width:64px;width:clamp(64px,20vw,84px);max-width:26%;height:auto;flex:none;object-fit:contain}
#home-view .play-game-copy{display:block;min-width:0;text-align:center}
#home-view .play-game-wordmark{display:flex;align-items:baseline;justify-content:center;gap:7px;font-family:"Bricolage Grotesque",Arial,Helvetica,sans-serif;font-size:34px;font-size:clamp(34px,9vw,48px);font-weight:800;font-variation-settings:'wdth' 75,'opsz' 96;letter-spacing:-1.2px;line-height:1.1;white-space:nowrap}
#home-view .wordmark-play,#home-view .wordmark-lab{color:#f2f6fc}
#home-view .wordmark-rush{color:#e4252b;transform:rotate(-3deg);text-shadow:2px 2px 0 #ffcc00}

/* Reserve explicit icon boxes so medal artwork aligns in every leaderboard. */
.tier-badge>span:first-child{display:inline-flex;align-items:center;justify-content:center;flex:none;line-height:0}
.tier-badge img{display:block;object-fit:contain;flex:none}
.resource-icon img{object-fit:contain}.resource-text strong{letter-spacing:-.15px}
@media(hover:hover){.resource-link{transition:background-color .16s,border-color .16s}}
@media(prefers-reduced-motion:reduce){.resource-link{transition:none}}
