/* Desktop presentation only. Mobile rules and all account calculations are unchanged. */
@media (min-width:1024px) {
  .jsh-frontend .f-header {max-width:1328px;padding-left:40px;padding-right:40px;gap:28px}
  .jsh-frontend .f-main {max-width:1328px;padding:32px 40px 0}
  .jsh-frontend .f-catalog-page,.jsh-frontend .f-weekly-page {max-width:none}
  .jsh-frontend .f-catalog-intro {text-align:left;margin:0 0 26px}
  .jsh-frontend .f-catalog-intro h1 {font-size:36px;margin:8px 0 10px}
  .jsh-frontend .f-catalog-intro>p {max-width:none;margin:0 0 18px;line-height:1.7}
  .jsh-frontend .f-catalog-heading {justify-content:flex-start}
  .jsh-frontend .f-catalog-tools {justify-content:flex-start}
  .jsh-frontend .f-unallocated-summary {padding:22px 24px;margin-bottom:30px}
  .jsh-frontend .f-attempts-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
  .jsh-frontend .f-attempts-stat {padding:16px 18px}
  .jsh-frontend .f-attempts-stat>h3 {font-size:14px;margin-bottom:8px}
  .jsh-frontend .f-attempts-stat>div {font-size:13px;line-height:1.8}
  .jsh-frontend .f-attempts-stat strong {font-size:24px}
  .jsh-frontend .f-activity-catalog,.jsh-frontend .f-weekly-page .f-weekly-scenes {grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:none!important;grid-auto-rows:auto;gap:26px;align-items:stretch}
  .jsh-frontend .f-activity-event {min-width:0;height:auto;display:flex;flex-direction:column}
  .jsh-frontend .f-activity-event>header {align-items:flex-start}
  .jsh-frontend .f-activity-event>header h2 {font-size:25px;line-height:1.45}
  .jsh-frontend .f-catalog-prize-visual {flex:1;min-height:150px}
  .jsh-frontend .f-enter-activity {margin-top:auto}
  .jsh-frontend .f-history-divider,.jsh-frontend .f-no-activities {grid-column:1/-1}
  .jsh-frontend .f-catalog-footnote {margin-top:26px}
  .jsh-frontend .f-footer {padding-bottom:105px}
}
@media (min-width:1600px) {
  .jsh-frontend .f-header,.jsh-frontend .f-main {max-width:1440px}
}

/* Activity hub: keep categories below account controls, never merge their balances. */
.jsh-frontend .f-header.f-hub-header.has-official-site{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;padding-bottom:20px}
.jsh-frontend .f-hub-header>.f-brand{grid-column:1;grid-row:1;justify-self:center}
.jsh-frontend .f-hub-header>.f-header-caption{grid-column:1;grid-row:2;text-align:center;margin:0;min-width:0;overflow-wrap:anywhere}
.jsh-frontend .f-header.f-hub-header.has-official-site .f-home-session-actions{grid-column:1;grid-row:3;justify-self:center;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;max-width:620px;gap:8px;padding:8px;border:1px solid rgba(221,191,139,.28);border-radius:18px;background:linear-gradient(125deg,rgba(66,45,79,.65),rgba(37,26,50,.85))}
.jsh-frontend .f-hub-header .f-home-session-actions .f-official-site{grid-area:1/1}
.jsh-frontend .f-hub-header .f-home-session-actions #f-task-center{grid-area:1/2}
.jsh-frontend .f-hub-header .f-home-session-actions .f-home-logout{grid-area:2/1}
.jsh-frontend .f-hub-header .f-home-session-actions #f-refresh-activities{grid-area:2/2}
.jsh-frontend .f-activity-entry-row{grid-column:1/-1;grid-row:3;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding-top:9px;margin-top:2px;border-top:1px solid rgba(221,191,139,.2)}
.jsh-frontend .f-hub-header .f-activity-entry-row button{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;width:100%;min-height:54px;padding:10px 6px;border:1px solid #a78a5c;border-radius:12px;background:linear-gradient(135deg,#594333,#342638);color:#ffe7b8;font-family:inherit;font-size:14px;font-weight:600;line-height:1.4;letter-spacing:0;white-space:normal;box-shadow:inset 0 1px rgba(255,237,190,.15),0 3px 12px #100a1826;cursor:pointer}
.jsh-frontend .f-hub-header #f-holiday-draw{background:linear-gradient(135deg,#603a4a,#35243e);border-color:#a87a82}
.jsh-frontend .f-hub-header .f-activity-entry-row button[aria-current="page"]{background:linear-gradient(135deg,#dfbc7e,#b98c50);color:#281b23;border-color:#ffe3ad;box-shadow:inset 0 0 0 1px #ffe3ad}
.jsh-frontend .f-hub-header .f-activity-entry-row button:focus-visible{outline:2px solid #fff1ce;outline-offset:3px}
.jsh-frontend .f-hub-header .f-activity-entry-row button:hover:not(:disabled){filter:brightness(1.12)}
.jsh-frontend .f-hub-header .f-activity-entry-row button:disabled{opacity:.55;cursor:wait}
.jsh-frontend .f-hub-header .f-activity-entry-row .f-icon{width:21px;height:21px;flex:0 0 21px}
.jsh-frontend .f-home-overview{max-width:1000px;margin:auto;min-height:35vh}
@media(min-width:1024px){.jsh-frontend .f-header.f-hub-header.has-official-site{grid-template-columns:minmax(200px,1fr) minmax(420px,620px);column-gap:48px}.jsh-frontend .f-hub-header>.f-brand{grid-column:1;grid-row:1;justify-self:start;align-self:end}.jsh-frontend .f-hub-header>.f-header-caption{grid-column:1;grid-row:2;text-align:left;align-self:start}.jsh-frontend .f-header.f-hub-header.has-official-site .f-home-session-actions{grid-column:2;grid-row:1/3;max-width:none}.jsh-frontend .f-hub-header .f-activity-entry-row button{font-size:15px}}
@media(max-width:360px){.jsh-frontend .f-hub-header .f-activity-entry-row button{font-size:12px;gap:4px;padding:9px 4px}.jsh-frontend .f-hub-header .f-activity-entry-row .f-icon{width:18px;height:18px;flex-basis:18px}}

/* Matched category actions, and dedicated activity-page headers. */
.jsh-frontend .f-hub-header #f-holiday-draw,.jsh-frontend .f-hub-header #f-weekly-draw{background:linear-gradient(135deg,#594333,#342638);border:1px solid #b99a68;color:#ffe7b8;width:100%;min-height:54px;font-size:14px;font-weight:600;padding:10px 6px}
.jsh-frontend .f-header.f-section-header{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-bottom:20px}
.jsh-frontend .f-section-caption{color:#e8d5b8;font-size:14px;letter-spacing:.04em;text-align:right}
@media(max-width:420px){.jsh-frontend .f-header.f-section-header{flex-wrap:wrap}.jsh-frontend .f-section-caption{font-size:13px}.jsh-frontend .f-hub-header #f-holiday-draw,.jsh-frontend .f-hub-header #f-weekly-draw{font-size:13px}}
