/* About CROMIVIO uses the shared palette, navigation and appearance preference. */
.about-page {
  --about-ink: var(--text, #20211f);
  --about-muted: var(--theme-muted, #62615e);
  --about-line: var(--theme-line, #ded7cd);
  --about-surface: var(--surface, #fffdf9);
  --about-soft: var(--surface-2, #f4f0e9);
  --about-blue: var(--theme-accent, #1467d8);
  padding-top: clamp(32px, 4vw, 68px);
  padding-bottom: clamp(40px, 5vw, 84px);
  color: var(--about-ink);
}

.about-page :is(h1, h2, h3) { color: var(--about-ink); }
.about-page p { color: var(--about-muted); line-height: 1.75; }
.about-page .eyebrow { color: var(--about-blue); }
.about-page :is(h1, h2, h3, p) { overflow-wrap: anywhere; }
.about-page h2 { font-size: clamp(28px, 2.7vw, 40px); line-height: 1.18; letter-spacing: -.5px; }
.about-page h3 { font-size: 24px; line-height: 1.25; letter-spacing: -.2px; }

.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: center;
  padding-bottom: clamp(36px, 5vw, 76px);
}

.about-hero-copy { max-width: 800px; }
.about-hero-copy h1 {
  font-size: clamp(38px, 4.6vw, 70px);
  line-height: 1.08;
  letter-spacing: -1px;
  margin: 18px 0 24px;
}
.about-hero-copy h1 .cromivio-wordmark { color: inherit; }
.about-hero-copy .about-lead { max-width: 680px; font-size: clamp(16px, 1.25vw, 20px); margin: 0; }
.about-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 28px; }
.about-actions :is(.primary, .secondary), .about-official .primary {
  display: inline-flex;
  justify-content: center;
  min-height: 50px;
  gap: 12px;
  padding: 14px 22px;
  text-decoration: none;
  line-height: 1.4;
  text-align: center;
}
.about-actions .secondary { border-color: #bdd2ef; color: #145bb5; background: #eaf2ff; box-shadow: 0 3px 0 #d6e2f1; }
.about-actions .secondary:hover { border-color: #8fb7e9; background: #deebfc; }

.about-game-preview {
  width: 100%;
  max-width: 590px;
  justify-self: center;
  padding: clamp(22px, 2.4vw, 36px);
  background: var(--about-surface);
  border: 1px solid var(--about-line);
  border-radius: 30px;
  box-shadow: 0 6px 0 #e7dfd3, 0 18px 40px #66543a0c;
}
.about-game-preview .about-preview-heading {
  position: static;
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  color: var(--about-muted);
  background: transparent;
  box-shadow: none;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.2px;
}
.about-preview-heading > :last-child {
  padding: 7px 10px;
  border-radius: 20px;
  background: var(--about-soft);
  color: var(--about-muted);
  font-size: 11px;
  letter-spacing: 0;
  white-space: nowrap;
}
.about-sequence {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0 16px;
  padding: 0;
  list-style: none;
}
.about-sequence > li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 104px;
  padding: 14px 8px;
  border-radius: 20px;
  box-shadow: inset 0 2px 0 #ffffff55, 0 4px 0 #00000018;
  font-size: 34px;
  color: #142131;
}
.about-sequence > li small { color: #142131; font-size: 12px; font-weight: 900; line-height: 1.4; }
.about-preview-note { margin: 20px 0; text-align: center; font-size: 13px; }
.about-preview-pads {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 310px;
  margin: 0 auto;
}
.about-preview-pads > span {
  display: grid;
  place-items: center;
  min-height: 75px;
  border-radius: 18px;
  color: #142131;
  font-size: 30px;
  box-shadow: inset 0 2px 0 #ffffff55, 0 4px 0 #00000018;
}
.about-preview-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--about-line);
  color: var(--about-muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.about-how, .about-modes { padding: clamp(32px, 4vw, 62px) 0; border-top: 1px solid var(--about-line); }
.about-section-heading { max-width: 780px; margin-bottom: 28px; }
.about-section-heading h2 { margin: 0 0 12px; }
.about-section-heading p { font-size: 16px; margin: 0; }
.about-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2.5vw, 42px); list-style: none; padding: 0; margin: 32px 0 0; }
.about-steps > li { padding: 4px 0; }
.about-step-number {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 15px;
  background: #e5effe;
  color: #145bb5;
  font-size: 16px;
  font-weight: 900;
}
.about-steps h3 { margin: 18px 0 10px; font-size: 23px; }
.about-steps p { margin: 0; font-size: 14px; }

.about-mode-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.about-mode-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: clamp(22px, 2.2vw, 34px);
  border: 1px solid var(--about-line);
  border-radius: 25px;
  background: var(--about-surface);
  box-shadow: 0 4px 0 #e7dfd3;
}
.about-mode-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 22px; border-radius: 16px; background: #eaf2ff; color: #1467d8; font-size: 26px; }
.about-mode-icon svg { width: 27px; height: 27px; }
.about-mode-card .eyebrow { font-size: 10px; }
.about-mode-card h3 { margin: 10px 0 12px; font-size: 28px; }
.about-mode-card p { margin: 0 0 20px; font-size: 15px; }
.about-link { display: inline-flex; align-items: center; gap: 8px; padding: 7px 0; color: var(--about-blue); font-weight: 900; font-size: 14px; text-decoration: none; text-underline-offset: 4px; }
.about-link:hover { text-decoration: underline; }
.about-mode-card .about-link { margin-top: auto; }

.about-room-note {
  margin-top: 24px;
  padding: 22px 26px;
  border: 1px solid var(--about-line);
  border-radius: 20px;
  background: var(--about-soft);
}
.about-room-note h3 { margin: 0 0 8px; font-size: 21px; }
.about-room-note p { max-width: 980px; margin: 0; font-size: 14px; }
.about-room-note .about-link { margin-top: 8px; font-size: 13px; }

.about-everywhere {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 76px);
  padding: clamp(26px, 3.5vw, 48px);
  margin: 24px 0;
  border-radius: 28px;
  background: #edf3fd;
  border: 1px solid #dbe6f7;
}
.about-everywhere h2 { margin: 0 0 16px; }
.about-everywhere p { max-width: 650px; font-size: 16px; margin: 0; }
.about-platforms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.about-platforms > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 20px 10px;
  border: 1px solid #d5e0f0;
  border-radius: 20px;
  background: var(--about-surface);
  text-align: center;
}
.about-platform-icon { display: grid; place-items: center; height: 36px; color: var(--about-blue); font-size: 29px; }
.about-platform-icon svg { width: 32px; height: 32px; }
.about-platforms strong { font-size: 15px; }
.about-platforms small { color: var(--about-muted); font-size: 11px; line-height: 1.5; }

.about-streamer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); align-items: center; gap: clamp(28px, 5vw, 90px); padding: clamp(36px, 5vw, 76px) 0; }
.about-streamer h2 { margin: 15px 0 18px; max-width: 760px; }
.about-streamer p { max-width: 720px; font-size: 16px; }
.about-streamer-art { display: flex; align-items: center; justify-content: center; min-width: 0; padding: 12px 0; }
.about-stream-card {
  width: 100%;
  max-width: 480px;
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid var(--about-line);
  border-radius: 26px;
  background: var(--about-surface);
  box-shadow: 0 6px 0 #e7dfd3;
  text-align: center;
}
.about-stream-live { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 20px; background: #fae9eb; color: #9e2034; font-size: 10px; font-weight: 900; letter-spacing: 1.5px; }
.about-stream-live:before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #dc3046; }
.about-stream-card p { margin: 20px 0 7px; font-size: 13px; }
.about-stream-pin { display: block; color: var(--about-ink); font-size: clamp(30px, 4vw, 52px); line-height: 1.2; letter-spacing: .12em; font-weight: 900; font-variant-numeric: tabular-nums; padding-left: .12em; }
.about-stream-players { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; color: var(--about-muted); font-size: 12px; }
.about-stream-players > span { padding: 8px 11px; border: 1px solid var(--about-line); border-radius: 12px; background: var(--about-soft); }

.about-official { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 36px 20px 6px; border-top: 1px solid var(--about-line); text-align: center; }
.about-official > img { width: 64px; height: 64px; object-fit: contain; margin-bottom: 18px; }
.about-official h2 { margin: 0 0 14px; }
.about-official p { max-width: 660px; margin: 0 0 22px; font-size: 16px; }
.about-official > small { margin-top: 18px; color: var(--about-muted); font-size: 12px; }
.about-official > small a { color: var(--about-blue); text-underline-offset: 3px; }

:root[data-theme="dark"] .about-actions .secondary { background: #203753; color: #c2dcff; border-color: #365577; box-shadow: 0 3px 0 #0f223b; }
:root[data-theme="dark"] .about-actions .secondary:hover { background: #2b496b; border-color: #6896c9; }
:root[data-theme="dark"] :is(.about-game-preview, .about-mode-card, .about-stream-card) { box-shadow: 0 5px 0 #0b1220; }
:root[data-theme="dark"] :is(.about-step-number, .about-mode-icon) { background: #203753; color: #b4d5ff; }
:root[data-theme="dark"] .about-everywhere { background: #192c44; border-color: #304762; }
:root[data-theme="dark"] .about-platforms > span { border-color: var(--about-line); }
:root[data-theme="dark"] .about-stream-live { background: #4d2b35; color: #ffc3cc; }
:root[data-theme="dark"] .about-sequence > li small { color: #142131; }

@media (min-width: 1650px) {
  .about-hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
  .about-game-preview { max-width: 650px; }
  .about-preview-pads { max-width: 360px; }
  .about-preview-pads > span { min-height: 90px; }
}

@media (max-width: 1050px) {
  .about-hero { gap: 30px; }
  .about-hero-copy h1 { font-size: clamp(35px, 4.8vw, 54px); }
  .about-game-preview { padding: 22px; }
  .about-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .about-mode-grid { gap: 16px; }
  .about-mode-card { padding: 22px; }
  .about-mode-card h3 { font-size: 25px; }
  .about-everywhere { grid-template-columns: 1fr; gap: 30px; }
  .about-platforms { max-width: 700px; width: 100%; }
}

@media (max-width: 760px) {
  .about-hero, .about-streamer { grid-template-columns: 1fr; }
  .about-hero-copy { max-width: 650px; }
  .about-hero-copy h1 { font-size: clamp(36px, 6.4vw, 48px); }
  .about-hero-copy .about-lead { font-size: 16px; }
  .about-game-preview { max-width: 520px; margin-top: 6px; }
  .about-mode-grid { grid-template-columns: 1fr; gap: 20px; }
  .about-mode-card { padding: 25px; }
  .about-mode-icon { margin-bottom: 18px; }
  .about-mode-card h3 { font-size: 28px; }
  .about-room-note { margin-top: 20px; padding: 21px 23px; }
  .about-streamer { gap: 22px; }
  .about-stream-card { max-width: 520px; }
}

@media (max-width: 450px) {
  .about-page { padding-top: 28px; }
  .about-hero-copy h1 { font-size: 34px; letter-spacing: -.5px; }
  .about-actions { gap: 12px; }
  .about-actions :is(.primary, .secondary) { width: 100%; }
  .about-game-preview { padding: 20px; border-radius: 24px; }
  .about-game-preview .about-preview-heading { font-size: 9px; gap: 8px; letter-spacing: .8px; }
  .about-preview-heading > :last-child { padding: 6px 8px; font-size: 10px; }
  .about-sequence { gap: 9px; }
  .about-sequence > li { min-height: 86px; border-radius: 16px; font-size: 28px; }
  .about-steps { grid-template-columns: 1fr; gap: 26px; }
  .about-steps > li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px 16px; }
  .about-step-number { grid-row: span 2; }
  .about-steps h3 { margin: 1px 0 0; font-size: 22px; }
  .about-steps p { grid-column: 2; }
  .about-everywhere { padding: 24px 20px; border-radius: 24px; }
  .about-room-note { padding: 20px; }
  .about-platforms { grid-template-columns: 1fr; gap: 10px; }
  .about-platforms > span { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 3px 13px; padding: 14px 16px; text-align: left; }
  .about-platform-icon { grid-row: span 2; }
  .about-platforms small { grid-column: 2; }
  .about-stream-card { padding: 25px 20px; }
  .about-stream-pin { font-size: 34px; }
  .about-official { padding-left: 0; padding-right: 0; }
  .about-official > img { width: 48px; height: 48px; }
}
