/* Store navigation, checkout feedback, and order tracking. */
[hidden] { display: none !important; }
.mobile-menu-toggle { display: none; }
.status-dot.is-online { background: var(--accent); box-shadow: 0 0 12px #70ead899; }
.status-dot.is-offline { background: #f0a287; border-color: #f0a287; }
.status-dot.is-unknown { background: var(--gold); border-color: var(--gold); }
.empty-store { grid-column: 1 / -1; display: grid; gap: 8px; padding: 38px 24px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); text-align: center; }
.empty-store strong { color: var(--text); font-size: 15px; }
.empty-store span { font-size: 11px; line-height: 1.7; }
.track-order { display: block; margin: 14px 0 0; color: var(--accent); font-size: 11px; text-align: center; }
.track-order span { padding-left: 5px; }
.dialog #msg { overflow-wrap: anywhere; }
.order-page { min-height: 100vh; display: flex; flex-direction: column; }
.order-wrap { width: min(100% - 36px, 700px); margin: auto; padding: 64px 0 76px; }
.order-wrap h1 { margin: 17px 0 9px; font-size: clamp(40px, 8vw, 60px); line-height: 1; letter-spacing: -.075em; }
.order-wrap h1 em { color: var(--accent); font-style: normal; }
.order-intro,.order-help { color: var(--muted); font-size: 12px; line-height: 1.8; }
.order-search { margin: 30px 0 18px; padding: 19px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.order-search label { display: block; margin-bottom: 8px; color: #b5c3c5; font-size: 10px; }
.order-search-row { display: flex; gap: 9px; }
.order-search input { min-width: 0; flex: 1; padding: 12px; border: 1px solid #263a42; border-radius: 6px; background: #071116; color: var(--text); font: 12px var(--mono); }
.order-search input:focus { border-color: var(--accent); outline: 2px solid #70ead833; }
.order-search .button { flex: 0 0 auto; }
.order-result { margin-top: 20px; padding: 22px; border: 1px solid #244139; border-radius: 12px; background: linear-gradient(135deg, #10221d, #0a161b); }
.order-result-heading { display: flex; align-items: center; gap: 13px; padding-bottom: 18px; border-bottom: 1px solid #ffffff14; }
.order-status-mark { width: 11px; height: 11px; flex: 0 0 11px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 15px #d8bb7844; }
.order-status-mark.success { background: var(--accent); box-shadow: 0 0 15px #70ead855; }
.order-status-mark.failure { background: var(--danger); box-shadow: 0 0 15px #fb8d9b55; }
.order-result-heading small { color: #8da19c; font: 8px var(--mono); letter-spacing: .12em; }
.order-result-heading h2 { margin: 4px 0 0; font-size: 20px; }
.order-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 19px 0; }
.order-facts div { min-width: 0; }
.order-facts dt { margin-bottom: 5px; color: #85999c; font-size: 9px; }
.order-facts dd { margin: 0; color: #e6efec; font-size: 11px; overflow-wrap: anywhere; }
.order-message,.order-error { color: #9cafad; font-size: 11px; line-height: 1.8; }
.order-id-link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.order-error { min-height: 18px; color: #ffb5ad; }
.order-help { margin: 28px 0 14px; font-size: 10px; }
.order-wrap .auth-back { margin-top: 5px; }
.order-page .site-footer { margin-top: auto; }
.minecraft-link-card { padding: 21px; border: 1px solid #20363b; border-radius: 12px; background: var(--surface); }
.minecraft-link-state { margin: 0 0 10px; color: var(--accent); font-size: 13px; font-weight: 700; }
.minecraft-link-note { display: block; margin: -4px 0 10px; color: var(--accent); font-size: 9px; line-height: 1.6; }
.minecraft-link-explainer { max-width: 700px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.minecraft-link-card label { display: block; max-width: 420px; margin: 18px 0 12px; color: #b5c3c5; font-size: 10px; }
.minecraft-link-card input { display: block; width: 100%; margin-top: 7px; padding: 12px; border: 1px solid #263a42; border-radius: 6px; background: #071116; color: var(--text); font-size: 12px; }
.minecraft-link-challenge { display: grid; justify-items: start; gap: 10px; margin-top: 18px; padding: 16px; border: 1px solid #315b51; border-radius: 8px; background: #0c211c; }
.minecraft-link-challenge p { margin: 0; color: #b6cbc6; font-size: 10px; }
.minecraft-link-challenge code { color: var(--accent); font: 700 14px var(--mono); overflow-wrap: anywhere; }
.minecraft-link-challenge small { color: #879b98; font-size: 9px; }
.minecraft-link-card .button { margin: 0; }

@media (max-width: 700px) {
  .storefront-page .site-header { position: sticky; gap: 12px; padding: 0 16px; }
  .storefront-page .mobile-menu-toggle { width: 38px; height: 38px; flex: 0 0 38px; display: grid; align-content: center; justify-items: center; gap: 5px; padding: 0; border: 1px solid var(--line); border-radius: 7px; background: transparent; cursor: pointer; }
  .storefront-page .mobile-menu-toggle span { width: 16px; height: 1px; background: #d9e4e1; transition: transform .18s, opacity .18s; }
  .storefront-page .mobile-menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(6px) rotate(45deg); }
  .storefront-page .mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .storefront-page .mobile-menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-6px) rotate(-45deg); }
  .storefront-page .main-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; align-items: stretch; gap: 0; padding: 8px 20px 14px; border-bottom: 1px solid var(--line); background: #071018fa; box-shadow: 0 18px 28px #0007; }
  .storefront-page .main-nav.is-open { display: flex; flex-direction: column; }
  .storefront-page .main-nav a { padding: 13px 3px; border-bottom: 1px solid #ffffff0d; font-size: 12px; }
  .storefront-page .main-nav a:last-child { border-bottom: 0; }
  .storefront-page .header-server { gap: 7px; }
  .storefront-page .header-server strong { max-width: 126px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 430px) {
  .storefront-page .site-header { gap: 9px; padding: 0 12px; }
  .storefront-page .header-server { display: none; }
  .storefront-page .header-staff { display: inline-flex; flex: 0 0 auto; margin-left: auto; padding: 8px 9px; font-size: 9px; white-space: nowrap; }
  .storefront-page .brand { gap: 7px; }
  .storefront-page .brand-word { font-size: 14px; }
  .order-wrap { width: min(100% - 28px, 700px); padding: 43px 0 56px; }
  .order-search { padding: 14px; }
  .order-search-row { flex-direction: column; }
  .order-search .button { width: 100%; }
  .order-result { padding: 17px; }
  .order-facts { grid-template-columns: 1fr; gap: 13px; }
  .minecraft-link-card { padding: 16px; }
}
@media (max-width: 700px) {
  .account-page .site-header { gap: 12px; padding: 0 16px; }
  .account-page .site-header .main-nav { display: flex; gap: 12px; }
  .account-page .site-header .main-nav a { font-size: 10px; }
  .account-page .site-header .header-staff { padding: 8px; font-size: 9px; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .storefront-page .mobile-menu-toggle span { transition: none; }
}

.events-section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 82px max(8vw, 35px) 92px;
  background: radial-gradient(ellipse at 15% 15%, #153b3b33, transparent 42%);
  scroll-margin-top: 90px;
}
.events-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; }
.events-heading h2 { margin: 14px 0 7px; font-size: clamp(29px, 4vw, 48px); line-height: 1.05; letter-spacing: -.07em; }
.events-heading h2 em { color: var(--accent); font-style: normal; }
.events-heading p { margin: 0; color: #91a5aa; font-size: 11px; line-height: 1.7; }
.events-live { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid #244239; border-radius: 999px; color: #9ab4aa; font: 8px var(--mono); letter-spacing: .1em; white-space: nowrap; }
.events-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px #70ead899; }
.events-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.event-card { position: relative; display: flex; min-height: 198px; flex-direction: column; overflow: hidden; padding: 20px; border: 1px solid #20343a; border-radius: 10px; background: radial-gradient(ellipse at 100% 0, #1d493622, transparent 45%), linear-gradient(145deg, #0d1a20, #09141a); transition: border-color .2s, transform .2s, box-shadow .2s; }
.event-card:hover { transform: translateY(-3px); border-color: #397b6b; box-shadow: 0 14px 34px #0003, 0 0 25px #70ead809; }
.event-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #78908e; font: 8px var(--mono); letter-spacing: .08em; }
.event-meta span { color: var(--accent); }
.event-card h3 { margin: 18px 0 8px; color: #edf5f3; font-size: 17px; line-height: 1.35; letter-spacing: -.035em; overflow-wrap: anywhere; }
.event-copy { margin: 0 0 18px; color: #9aabad; font-size: 10px; line-height: 1.8; white-space: pre-line; overflow-wrap: anywhere; }
.event-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid #ffffff10; color: #718585; font-size: 8px; }
.event-footer a { color: var(--accent); white-space: nowrap; }
.event-footer a:hover { color: #b0fff0; }
.events-empty { grid-column: 1 / -1; padding: 25px; border: 1px dashed #29433e; border-radius: 9px; color: #8fa29f; font-size: 10px; line-height: 1.8; text-align: center; }
.events-note { margin: 14px 0 0; color: #718486; font-size: 9px; line-height: 1.7; }
@media (max-width: 900px) { .events-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .events-section { padding: 58px 20px 65px; }
  .events-heading { align-items: flex-start; flex-direction: column; }
  .events-grid { grid-template-columns: 1fr; gap: 10px; margin-top: 20px; }
  .event-card { min-height: 175px; padding: 17px; }
}
@media (prefers-reduced-motion: reduce) { .event-card { transition: none; } }

.leaderboard-section,
.rules-section {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: 84px max(8vw, 35px) 90px;
  scroll-margin-top: 90px;
}
.leaderboard-section { overflow: hidden; background: radial-gradient(ellipse at 90% 5%, #245c4d1d, transparent 39%); }
.leaderboard-heading,
.rules-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.leaderboard-heading h2,
.rules-heading h2 { margin: 14px 0 8px; font-size: clamp(30px, 4vw, 48px); line-height: 1.04; letter-spacing: -.07em; }
.leaderboard-heading h2 em,
.rules-heading h2 em { color: var(--accent); font-style: normal; }
.leaderboard-heading p,
.rules-heading p { max-width: 560px; margin: 0; color: #91a5aa; font-size: 13px; line-height: 1.8; }
.leaderboard-live { display: inline-flex; align-items: center; gap: 9px; min-height: 38px; padding: 7px 9px 7px 12px; border: 1px solid #244239; border-radius: 999px; color: #a8bbb6; font: 10px var(--mono); letter-spacing: .04em; white-space: nowrap; }
.leaderboard-pulse { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px #70ead899; animation: leaderboardPulse 2s ease-out infinite; }
.leaderboard-live.is-offline .leaderboard-pulse { background: #f0a28b; box-shadow: 0 0 10px #f0a28b88; }
.leaderboard-live.is-stale .leaderboard-pulse { background: var(--gold); box-shadow: 0 0 10px #d8bb7888; }
.leaderboard-refresh { display: grid; width: 22px; height: 22px; place-items: center; margin-left: 2px; border: 0; border-radius: 50%; background: #ffffff0b; color: var(--accent); font-size: 16px; cursor: pointer; transition: transform .3s, background .2s; }
.leaderboard-refresh:hover { transform: rotate(90deg); background: #70ead81a; }
.leaderboard-refresh:disabled { opacity: .55; cursor: wait; }
.leaderboard-refresh.is-loading { animation: leaderboardSpin .8s linear infinite; }
.leaderboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-top: 28px; }
.leaderboard-card { position: relative; min-width: 0; overflow: hidden; padding: 19px 20px 15px; border: 1px solid #20383b; border-radius: 12px; background: linear-gradient(145deg, #0f2024eF, #09151b 78%); box-shadow: 0 18px 42px #0002; animation: leaderboardRise .55s cubic-bezier(.2,.75,.25,1) both; animation-delay: var(--board-delay, 0ms); }
.leaderboard-card::before { position: absolute; top: -80px; right: -55px; width: 160px; height: 120px; border-radius: 50%; background: #70ead812; filter: blur(35px); content: ''; pointer-events: none; }
.leaderboard-card:hover { border-color: #3a7768; box-shadow: 0 20px 48px #0003, 0 0 26px #70ead809; }
.leaderboard-card-head { position: relative; display: flex; align-items: center; gap: 11px; padding-bottom: 14px; border-bottom: 1px solid #ffffff10; }
.leaderboard-icon { display: grid; width: 35px; height: 35px; flex: 0 0 35px; place-items: center; border: 1px solid #70ead82a; border-radius: 9px; background: #70ead811; color: var(--accent); font-size: 17px; }
.leaderboard-title { min-width: 0; }
.leaderboard-title h3 { margin: 0; color: #edf7f4; font-size: 17px; letter-spacing: -.035em; }
.leaderboard-title p { margin: 4px 0 0; color: #829795; font: 9px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.leaderboard-top-label { margin-left: auto; color: #77908c; font: 9px var(--mono); white-space: nowrap; }
.leaderboard-list { display: grid; gap: 2px; margin: 11px 0 0; padding: 0; list-style: none; }
.leaderboard-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 9px; min-height: 39px; padding: 5px 7px; border-radius: 6px; animation: leaderboardRise .4s both; animation-delay: var(--row-delay, 0ms); transition: background .18s, transform .18s; }
.leaderboard-row:hover { transform: translateX(3px); background: #ffffff08; }
.leaderboard-rank { color: #778d8a; font: 10px var(--mono); text-align: center; }
.leaderboard-row:nth-child(1) .leaderboard-rank { color: #e9d58c; }
.leaderboard-row:nth-child(2) .leaderboard-rank { color: #c5d2d2; }
.leaderboard-row:nth-child(3) .leaderboard-rank { color: #d39b73; }
.leaderboard-player { overflow: hidden; color: #c9d6d3; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.leaderboard-score { color: var(--accent); font: 11px var(--mono); text-align: right; white-space: nowrap; }
.leaderboard-empty { grid-column: 1 / -1; padding: 28px 18px; border: 1px dashed #29433e; border-radius: 10px; color: #8fa29f; font-size: 12px; line-height: 1.8; text-align: center; }
.leaderboard-empty-row { padding: 16px 7px 7px; color: #829794; font-size: 11px; line-height: 1.7; }
.leaderboard-note { margin: 14px 0 0; color: #829393; font-size: 11px; line-height: 1.8; }
@keyframes leaderboardPulse { 0% { box-shadow: 0 0 0 0 #70ead866; } 75%, 100% { box-shadow: 0 0 0 7px #70ead800; } }
@keyframes leaderboardRise { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@keyframes leaderboardSpin { to { transform: rotate(360deg); } }

.rules-section { background: radial-gradient(ellipse at 0 45%, #1c4b4217, transparent 42%); }
.rules-seal { display: grid; width: 56px; height: 56px; flex: 0 0 56px; place-items: center; margin-bottom: 3px; border: 1px solid #70ead82b; border-radius: 16px; background: linear-gradient(145deg, #17372f, #101e25); box-shadow: 0 0 32px #70ead80c; font-size: 25px; transform: rotate(5deg); animation: rulesFloat 4.5s ease-in-out infinite; }
.rules-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 27px; }
.rule-card { position: relative; min-height: 186px; overflow: hidden; padding: 19px; border: 1px solid #20343a; border-radius: 10px; background: linear-gradient(145deg, #0d1b20, #09141a); transition: transform .25s, border-color .25s, box-shadow .25s; animation: leaderboardRise .55s both; }
.rule-card:nth-child(2) { animation-delay: 50ms; }
.rule-card:nth-child(3) { animation-delay: 100ms; }
.rule-card:nth-child(4) { animation-delay: 150ms; }
.rule-card:nth-child(5) { animation-delay: 200ms; }
.rule-card:nth-child(6) { animation-delay: 250ms; }
.rule-card:nth-child(7) { animation-delay: 300ms; }
.rule-card::after { position: absolute; top: -58px; right: -58px; width: 110px; height: 110px; border: 1px solid #70ead80c; border-radius: 50%; box-shadow: 0 0 0 16px #70ead805, 0 0 0 32px #70ead803; content: ''; transition: transform .45s; pointer-events: none; }
.rule-card:hover { transform: translateY(-4px); border-color: #3b7568; box-shadow: 0 16px 34px #0003, 0 0 20px #70ead809; }
.rule-card:hover::after { transform: scale(1.18); }
.rule-number { position: absolute; top: 18px; right: 18px; color: #536c6b; font: 9px var(--mono); letter-spacing: .08em; }
.rule-icon { display: grid; width: 34px; height: 34px; place-items: center; margin-bottom: 20px; border: 1px solid #70ead829; border-radius: 9px; background: #70ead80d; font-size: 16px; animation: rulesGlow 4s ease-in-out infinite; }
.rule-card h3 { position: relative; margin: 0 0 8px; color: #e9f2ef; font-size: 16px; letter-spacing: -.025em; }
.rule-card p { position: relative; margin: 0; color: #a6b6b4; font-size: 12px; line-height: 1.8; }
.rule-card-featured { border-color: #31584e; background: radial-gradient(ellipse at 100% 0, #70ead815, transparent 45%), linear-gradient(145deg, #10231f, #09171b); }
.rules-footer { display: flex; align-items: center; gap: 13px; margin-top: 17px; padding: 16px 18px; border: 1px solid #213a3a; border-radius: 9px; background: #0b191d; }
.rules-footer-mark { color: var(--accent); font-size: 18px; animation: rulesGlow 3s ease-in-out infinite; }
.rules-footer p { flex: 1; margin: 0; color: #a6b6b4; font-size: 11px; line-height: 1.8; }
.rules-footer a { flex: 0 0 auto; color: var(--accent); font-size: 10px; font-weight: 700; white-space: nowrap; }
.rules-footer a span { margin-left: 5px; }
@keyframes rulesFloat { 50% { transform: translateY(-6px) rotate(-3deg); } }
@keyframes rulesGlow { 50% { box-shadow: 0 0 17px #70ead81c; } }

/* Bring lower storefront sections in gently as they enter view. */
.storefront-page main > section.scroll-reveal { opacity: 0; transform: translate3d(0, 20px, 0); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1); }
.storefront-page main > section.scroll-reveal.is-visible { opacity: 1; transform: translate3d(0, 0, 0); }
.events-section,.leaderboard-section,.rules-section { border-top: 1px solid #70ead80b; }
.events-section { padding-top: 94px; padding-bottom: 102px; }
.leaderboard-section,.rules-section { padding-top: 96px; padding-bottom: 102px; }
.event-copy { font-size: 12px; }
.event-meta,.event-footer { font-size: 9px; }
.events-empty,.events-note { font-size: 11px; }
.leaderboard-row { min-height: 43px; }
.leaderboard-player { font-size: 13px; }
.leaderboard-score { font-size: 12px; }
.leaderboard-note,.rule-card p,.rules-footer p { font-size: 13px; }
.rule-card { min-height: 202px; padding: 21px; }
.rule-card h3 { font-size: 17px; }
@media (max-width: 700px) {
  .events-section,.leaderboard-section,.rules-section { padding: 62px 20px 70px; }
  .event-copy,.leaderboard-note,.rule-card p,.rules-footer p { font-size: 12px; }
  .rule-card { min-height: 0; }
}

.minecraft-login-panel { margin: 24px 0 15px; padding: 19px; border: 1px solid #275147; border-radius: 12px; background: radial-gradient(ellipse at 100% 0, #70ead812, transparent 55%), #0b191d; }
.minecraft-login-panel h2 { margin: 11px 0 7px; color: #e9f4f1; font-size: 19px; letter-spacing: -.04em; }
.minecraft-login-panel>p:not(.auth-status):not(.auth-fineprint) { margin: 0; color: #94aaa7; font-size: 10px; line-height: 1.7; }
.minecraft-login-form { display: grid; gap: 10px; margin-top: 16px; }
.minecraft-login-form label { display: grid; gap: 7px; color: #b7c8c5; font-size: 10px; }
.minecraft-login-form input { width: 100%; min-height: 42px; padding: 0 12px; border: 1px solid #29433f; border-radius: 7px; background: #071116; color: var(--text); font-size: 12px; }
.minecraft-login-form input:focus { border-color: var(--accent); outline: 2px solid #70ead833; }
.minecraft-login-form .button { width: 100%; min-height: 44px; justify-content: space-between; margin: 0; }
.minecraft-login-challenge { display: grid; justify-items: start; gap: 8px; margin-top: 14px; padding: 14px; border: 1px solid #345d50; border-radius: 8px; background: #0c211c; }
.minecraft-login-challenge small { color: #8ca69e; font: 8px var(--mono); letter-spacing: .1em; }
.minecraft-login-challenge p { margin: 0; color: #b6cbc6; font-size: 10px; line-height: 1.65; }
.minecraft-login-challenge code { color: var(--accent); font: 700 12px var(--mono); overflow-wrap: anywhere; }
.minecraft-login-challenge .button { min-height: 34px; margin: 2px 0 0; font-size: 9px; }
.minecraft-login-panel .auth-status { margin: 7px 0; }
.auth-choice-divider { display: flex; align-items: center; gap: 12px; margin: 19px 0 12px; color: #718486; font: 8px var(--mono); letter-spacing: .12em; }
.auth-choice-divider::before,.auth-choice-divider::after { height: 1px; flex: 1; background: #ffffff12; content: ''; }
.account-page[data-auth-provider="minecraft"] .minecraft-link-section { display: none; }
@media (max-width: 760px) { .minecraft-login-panel { padding: 16px; } }
@media (prefers-reduced-motion: reduce) {
  .storefront-page main > section.scroll-reveal,
  .storefront-page main > section.scroll-reveal.is-visible { opacity: 1; transform: none; transition: none; }
  .leaderboard-card,.leaderboard-row,.rule-card,.rules-seal,.rule-icon,.rules-footer-mark { animation: none !important; }
  .leaderboard-card,.leaderboard-row,.rule-card,.leaderboard-refresh { transition: none !important; }
}
@media (max-width: 1250px) {
  .storefront-page .site-header { gap: 22px; }
  .storefront-page .main-nav { gap: 17px; }
  .storefront-page .main-nav a { font-size: 10px; }
}
@media (max-width: 900px) {
  .leaderboard-grid { grid-template-columns: 1fr; }
  .rules-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .leaderboard-section, .rules-section { padding: 58px 20px 65px; }
  .leaderboard-heading, .rules-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .leaderboard-live { align-self: flex-start; }
  .leaderboard-grid, .rules-grid { grid-template-columns: 1fr; gap: 10px; margin-top: 20px; }
  .leaderboard-card { padding: 16px; }
  .rule-card { min-height: 0; padding: 17px; }
  .rule-icon { margin-bottom: 14px; }
  .rules-seal { display: none; }
  .rules-footer { align-items: flex-start; flex-wrap: wrap; }
  .rules-footer p { flex-basis: calc(100% - 36px); }
  .rules-footer a { margin-left: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .leaderboard-pulse, .leaderboard-card, .leaderboard-row, .leaderboard-refresh.is-loading, .rules-seal, .rule-card, .rule-icon, .rules-footer-mark { animation: none !important; }
  .leaderboard-refresh, .leaderboard-card, .leaderboard-row, .rule-card, .rule-card::after { transition: none !important; }
}
