:root {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f7f6ef;
  background: #111d31;
  font-synthesis: none;
  --gold: #f7ba2d;
  --muted: #c3ccdc;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100svh;
  background: radial-gradient(ellipse at top right, #2c4165 0, #19273f 48%, #111d31 100%);
}
a { color: inherit; }
button { font: inherit; cursor: pointer; }
button[hidden] { display: none; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible {
  outline: 4px solid var(--gold);
  outline-offset: 5px;
}
h1:focus, main:focus { outline: none; }
.shell {
  max-width: 1800px;
  min-height: 100svh;
  margin: auto;
  padding: clamp(24px, 3vw, 58px);
  display: flex;
  flex-direction: column;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-bottom: clamp(20px, 2.5vh, 30px);
  border-bottom: 1px solid #aab8cf30;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img {
  display: block;
  width: clamp(238px, 28.75vw, 375px);
  height: auto;
}
.tagline {
  color: var(--muted);
  font-size: clamp(16px, 1.35vw, 24px);
  margin: 0;
}
main { flex: 1; padding-top: clamp(26px, 4vh, 48px); }
h1 {
  margin: 0 0 clamp(24px, 3vh, 36px);
  font-size: clamp(32px, 3.3vw, 58px);
  line-height: 1.15;
  letter-spacing: -1.3px;
  font-weight: 750;
}
.activity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 1.6vw, 28px);
}
.activity-card {
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2vw, 34px);
  border: 1px solid #9cacC480;
  border-radius: 17px;
  background: linear-gradient(120deg, #2b4162, #20304b);
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.activity-card:hover, .activity-card:focus-visible {
  background: #344d70;
  border-color: var(--gold);
}
.activity-card h2 {
  font-size: clamp(25px, 2.25vw, 40px);
  letter-spacing: -.6px;
  line-height: 1.2;
  margin: 0;
}
.card-description {
  color: var(--muted);
  font-size: clamp(18px, 1.45vw, 26px);
  line-height: 1.4;
  margin: 12px 0 20px;
}
.card-bottom {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  color: var(--gold);
}
.status { font-size: clamp(16px, 1.15vw, 21px); }
.card-arrow { font-size: 26px; line-height: 1; }
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 24px;
  color: var(--muted);
  font-size: clamp(14px, 1.1vw, 20px);
}
.screen-button {
  color: var(--muted);
  background: transparent;
  border: 1px solid #9cacc480;
  border-radius: 9px;
  padding: 10px 15px;
  min-height: 44px;
  white-space: nowrap;
}
.screen-button span { margin-left: 8px; }
.back-link { display: inline-block; padding: 12px 0; margin-bottom: 20px; min-height: 48px; text-decoration: none; color: var(--gold); }
.module-panel {
  background: #233650;
  border: 1px solid #9cacc480;
  border-radius: 17px;
  padding: clamp(24px, 3vw, 48px);
  max-width: 1100px;
}
.module-panel h1 { margin-bottom: 16px; }
.module-panel .status { color: var(--gold); }
.module-description { font-size: clamp(20px, 1.6vw, 28px); line-height: 1.45; }
.empty-note { margin: 28px 0; max-width: 750px; }
.empty-note h2 { font-size: clamp(23px, 2vw, 32px); }
.empty-note p { color: var(--muted); font-size: clamp(18px, 1.4vw, 24px); line-height: 1.5; }
.primary-link {
  display: inline-block;
  text-decoration: none;
  background: var(--gold);
  color: #111d31;
  font-weight: 650;
  border: 0;
  border-radius: 9px;
  padding: 14px 20px;
  font-size: 20px;
}
.error p { font-size: 20px; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); margin: 0; top: 0; left: 0; }
.skip-link:focus { position: fixed; top: 16px; left: 16px; background: #111d31; padding: 16px; z-index: 2; }
.noscript { padding: 24px; }
@media (max-width: 800px) {
  .topbar { flex-wrap: wrap; gap: 16px; }
  .tagline { width: 100%; }
  .key-hint { display: none; }
  footer { justify-content: flex-end; }
}
@media (max-width: 600px) {
  .shell { padding: 22px; }
  .brand img { width: 238px; max-width: 100%; }
  .tagline { font-size: 16px; }
  main { padding-top: 28px; }
  h1 { font-size: 34px; letter-spacing: -.8px; }
  .activity-grid { grid-template-columns: 1fr; gap: 14px; }
  .activity-card { padding: 22px; }
  .activity-card h2 { font-size: 26px; }
  .card-description { margin: 10px 0 18px; }
}
@media (min-width: 1000px) and (max-height: 800px) {
  .shell { padding: 24px 3vw; }
  main { padding-top: 24px; }
  h1 { font-size: 40px; margin-bottom: 22px; }
  .activity-card { padding: 20px 24px; }
  .card-description { margin: 10px 0 16px; }
  footer { padding-top: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
