/* Downloadable all-ages typing games v17.10.86 */
body.offline-typing-page {
  background:
    radial-gradient(circle at 8% 10%, rgba(124, 58, 237, .09), transparent 24%),
    radial-gradient(circle at 91% 12%, rgba(6, 182, 212, .12), transparent 25%),
    linear-gradient(180deg, #f7f9fe, #f5f8fc 38%, #f4f6fa);
}

body.offline-typing-page.focus-detail {
  background:
    radial-gradient(circle at 8% 10%, rgba(8, 127, 107, .10), transparent 24%),
    radial-gradient(circle at 91% 12%, rgba(37, 99, 168, .09), transparent 25%),
    linear-gradient(180deg, #f6faf9, #f5f8fa 38%, #f4f6f8);
}

body.offline-typing-page .games-shell { width: min(1320px, calc(100% - 32px)); }

.otg-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 26px;
  align-items: center;
  margin-bottom: 16px;
  padding: clamp(22px, 3.4vw, 38px);
  overflow: hidden;
  border: 1px solid #d8deef;
  border-radius: 30px;
  background:
    radial-gradient(circle at 92% 18%, rgba(6, 182, 212, .14), transparent 21%),
    linear-gradient(135deg, rgba(255,255,255,.98), #f6f1ff 58%, #effcff);
  box-shadow: 0 20px 50px rgba(37, 52, 91, .10);
}
.focus-detail .otg-hero { border-color: #cfe1dd; background: radial-gradient(circle at 92% 18%, rgba(8,127,107,.13), transparent 21%), linear-gradient(135deg, #fff, #f0faf7 58%, #eef6fb); }
.otg-hero::before { content: ""; position: absolute; right: -36px; bottom: -92px; width: 360px; height: 220px; border-radius: 50%; background: rgba(124,58,237,.08); transform: rotate(-9deg); }
.focus-detail .otg-hero::before { background: rgba(8,127,107,.08); }
.otg-kicker { display: inline-flex; gap: 7px; align-items: center; margin-bottom: 8px; padding: 7px 11px; border: 1px solid #d9caef; border-radius: 999px; background: #fff; color: #6d28d9; font-size: 11px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.focus-detail .otg-kicker { border-color: #c5ded7; color: #08705e; }
.otg-hero h1 { max-width: 850px; margin: 0; color: #18274b; font: 900 clamp(35px, 5vw, 59px)/1.03 Poppins, Inter, sans-serif; letter-spacing: -.04em; }
.focus-detail .otg-hero h1 { color: #173c35; }
.otg-hero p { max-width: 830px; margin: 13px 0 0; color: #586783; font-size: clamp(16px, 1.8vw, 18px); line-height: 1.62; }
.focus-detail .otg-hero p { color: #556f68; }
.otg-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 19px; }
.otg-button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 12px 17px; border: 1px solid #1769ff; border-radius: 12px; background: #1769ff; color: #fff; box-shadow: 0 10px 22px rgba(23,105,255,.20); font-weight: 900; text-decoration: none; }
.otg-button:hover { background: #0f58dc; color: #fff; }
.otg-button.download { border-color: #6d28d9; background: #6d28d9; box-shadow: 0 10px 22px rgba(109,40,217,.18); }
.focus-detail .otg-button.download { border-color: #087f6b; background: #087f6b; box-shadow: 0 10px 22px rgba(8,127,107,.18); }
.otg-button.secondary { border-color: #c6d3e5; background: #fff; color: #245386; box-shadow: none; }
.otg-button.secondary:hover { border-color: #9bb4d2; background: #f3f7fc; color: #173f70; }
.otg-note { margin-top: 10px; color: #64718a; font-size: 12px; font-weight: 700; }

.otg-hero-art { position: relative; z-index: 1; min-height: 210px; overflow: hidden; border: 2px solid rgba(255,255,255,.88); border-radius: 25px; background: linear-gradient(145deg, #13183c, #182a58 55%, #0b3442); box-shadow: 0 17px 34px rgba(18,27,64,.24); }
.otg-hero-art::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(103,232,249,.13) 1px, transparent 1px), linear-gradient(90deg, rgba(103,232,249,.13) 1px, transparent 1px); background-size: 30px 30px; mask-image: linear-gradient(to bottom, #000, transparent); }
.otg-hero-art::after { content: ""; position: absolute; inset: 35px; border: 1px solid rgba(103,232,249,.38); border-radius: 50%; box-shadow: 0 0 42px rgba(124,58,237,.55), inset 0 0 34px rgba(6,182,212,.16); }
.otg-hero-art > span { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; color: #fff; font-size: 66px; filter: drop-shadow(0 9px 15px rgba(0,0,0,.35)); }
.focus-detail .otg-hero-art { background: linear-gradient(145deg, #eff8f5, #dfeeea 58%, #e7f0f6); box-shadow: 0 17px 34px rgba(44,83,72,.18); }
.focus-detail .otg-hero-art::before { background: linear-gradient(rgba(8,127,107,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(8,127,107,.12) 1px, transparent 1px); background-size: 30px 30px; }
.focus-detail .otg-hero-art::after { border-color: rgba(8,127,107,.30); border-radius: 22px; background: rgba(255,255,255,.40); box-shadow: 0 16px 32px rgba(49,94,81,.13); }

.otg-play-heading { display: flex; justify-content: space-between; gap: 15px; align-items: end; margin: 18px 3px 10px; }
.otg-play-heading h2 { margin: 0; color: #17284b; font-size: clamp(25px, 3vw, 35px); }
.focus-detail .otg-play-heading h2 { color: #173c35; }
.otg-play-heading p { margin: 4px 0 0; color: #617089; }
.otg-play-heading a { flex: 0 0 auto; color: #1769ff; font-size: 13px; font-weight: 900; }

.otg-trust-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin: 14px 0; }
.otg-trust-item { display: flex; gap: 9px; align-items: center; min-height: 60px; padding: 11px 13px; border: 1px solid #dbe2ec; border-radius: 15px; background: rgba(255,255,255,.91); color: #52627a; font-size: 13px; font-weight: 800; box-shadow: 0 8px 20px rgba(25,48,81,.05); }
.otg-trust-item span { font-size: 24px; }

.otg-info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.otg-info-card { padding: 22px; border: 1px solid #dbe2ec; border-radius: 21px; background: rgba(255,255,255,.94); box-shadow: 0 12px 30px rgba(23,42,75,.06); }
.otg-info-card > span { font-size: 34px; }
.otg-info-card h2,
.otg-info-card h3 { margin: 9px 0 6px; color: #203150; font-size: 20px; }
.otg-info-card p,
.otg-info-card li { color: #596981; font-size: 15px; line-height: 1.65; }
.otg-info-card ul,
.otg-info-card ol { margin: 10px 0 0; padding-left: 20px; }

.otg-copy-card { margin-top: 18px; padding: clamp(23px, 4vw, 40px); border: 1px solid #dbe2ec; border-radius: 25px; background: rgba(255,255,255,.95); box-shadow: 0 14px 35px rgba(24,43,76,.06); }
.otg-copy-card h2 { margin: 0 0 10px; color: #1c2f50; font-size: clamp(26px, 3vw, 35px); }
.otg-copy-card h2:not(:first-child) { margin-top: 29px; }
.otg-copy-card h3 { margin: 24px 0 7px; color: #233958; font-size: 20px; }
.otg-copy-card p,
.otg-copy-card li { color: #56677f; font-size: 16px; line-height: 1.75; }
.otg-copy-card ol,
.otg-copy-card ul { padding-left: 22px; }
.otg-copy-card a { color: #1769ff; font-weight: 800; }
.focus-detail .otg-copy-card h2,
.focus-detail .otg-copy-card h3,
.focus-detail .otg-info-card h2,
.focus-detail .otg-info-card h3 { color: #1a493f; }

.otg-faq { display: grid; gap: 9px; margin-top: 15px; }
.otg-faq details { border: 1px solid #dbe2ec; border-radius: 14px; background: #f8fafe; }
.otg-faq summary { padding: 14px 16px; color: #243a5e; font-weight: 900; cursor: pointer; }
.otg-faq details p { margin: 0; padding: 0 16px 15px; }

.otg-related { margin-top: 18px; }
.otg-related-heading { display: flex; justify-content: space-between; gap: 14px; align-items: end; margin-bottom: 11px; }
.otg-related-heading h2 { margin: 0; color: #1d3051; font-size: 27px; }
.otg-related-heading a { color: #1769ff; font-weight: 900; }
.otg-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 13px; }
.otg-related-card { display: block; padding: 20px; border: 1px solid #dbe2ec; border-radius: 19px; background: #fff; color: inherit; text-decoration: none; box-shadow: 0 11px 26px rgba(24,43,76,.06); }
.otg-related-card:hover { border-color: #aebed2; transform: translateY(-2px); }
.otg-related-card > span { font-size: 32px; }
.otg-related-card h3 { margin: 8px 0 5px; color: #203556; }
.otg-related-card p { margin: 0; color: #617089; font-size: 14px; line-height: 1.55; }
.otg-related-card strong { display: inline-block; margin-top: 11px; color: #1769ff; font-size: 13px; }

/* All-ages download hub */
.offline-hub .otg-hero { grid-template-columns: minmax(0, 1fr) 330px; }
.offline-hub .otg-hero-art { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-items: end; padding: 23px; background: linear-gradient(145deg, #edf7ff, #f4efff 50%, #edfaf4); box-shadow: 0 17px 34px rgba(37,58,93,.14); }
.offline-hub .otg-hero-art::before,
.offline-hub .otg-hero-art::after { display: none; }
.offline-hub .otg-hero-art span { position: static; display: grid; place-items: center; min-height: 112px; border: 1px solid rgba(255,255,255,.9); border-radius: 19px; background: #fff; font-size: 41px; filter: none; box-shadow: 0 12px 24px rgba(37,58,93,.10); }
.offline-hub .otg-hero-art span:nth-child(2) { min-height: 152px; background: #171d46; }
.offline-hub .otg-hero-art span:nth-child(3) { background: #e8f5f1; }

.otg-audience-section { margin-top: 20px; }
.otg-audience-heading { max-width: 820px; margin-bottom: 13px; }
.otg-audience-heading h2 { margin: 0; color: #1c3051; font-size: clamp(27px, 3vw, 37px); }
.otg-audience-heading p { margin: 6px 0 0; color: #617089; font-size: 16px; line-height: 1.6; }
.otg-download-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 15px; }
.otg-download-card { overflow: hidden; border: 1px solid #dae2ec; border-radius: 23px; background: #fff; box-shadow: 0 15px 34px rgba(23,43,76,.08); }
.otg-download-card-visual { position: relative; min-height: 176px; display: grid; place-items: center; background: linear-gradient(145deg, #dff8e8, #dff5ff); font-size: 63px; }
.otg-download-card.teen .otg-download-card-visual { background: linear-gradient(145deg, #151b44, #172b59 58%, #0d3543); }
.otg-download-card.adult .otg-download-card-visual { background: linear-gradient(145deg, #e8f6f1, #e7f0f6); }
.otg-audience-badge { position: absolute; top: 12px; left: 12px; padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,.93); color: #2b4b70; font-size: 11px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.otg-download-card-body { padding: 20px; }
.otg-download-card h2 { margin: 0; color: #1e3253; font-size: 23px; }
.otg-download-card p { margin: 8px 0 0; color: #607087; font-size: 15px; line-height: 1.58; }
.otg-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.otg-card-tags span { padding: 5px 8px; border-radius: 999px; background: #eef4fa; color: #4c627d; font-size: 11px; font-weight: 800; }
.otg-card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.otg-card-actions .otg-button { min-height: 44px; padding: 10px 11px; font-size: 12px; }
.otg-bundle { display: grid; grid-template-columns: auto 1fr auto; gap: 17px; align-items: center; margin-top: 16px; padding: 21px; border: 1px solid #bed9d1; border-radius: 21px; background: linear-gradient(135deg, #effaf6, #f5f2ff); box-shadow: 0 12px 30px rgba(31,77,65,.06); }
.otg-bundle > span { font-size: 42px; }
.otg-bundle h2 { margin: 0; color: #1a493f; font-size: 23px; }
.otg-bundle p { margin: 4px 0 0; color: #5e756e; font-size: 14px; line-height: 1.55; }

html[data-theme="dark"] body.offline-typing-page { background: #0c1221; }
html[data-theme="dark"] .otg-hero,
html[data-theme="dark"] .otg-trust-item,
html[data-theme="dark"] .otg-info-card,
html[data-theme="dark"] .otg-copy-card,
html[data-theme="dark"] .otg-related-card,
html[data-theme="dark"] .otg-download-card,
html[data-theme="dark"] .otg-bundle { border-color: #303c55; background: rgba(17,25,43,.96); }
html[data-theme="dark"] .otg-hero h1,
html[data-theme="dark"] .otg-play-heading h2,
html[data-theme="dark"] .otg-info-card h2,
html[data-theme="dark"] .otg-info-card h3,
html[data-theme="dark"] .otg-copy-card h2,
html[data-theme="dark"] .otg-copy-card h3,
html[data-theme="dark"] .otg-related-heading h2,
html[data-theme="dark"] .otg-related-card h3,
html[data-theme="dark"] .otg-audience-heading h2,
html[data-theme="dark"] .otg-download-card h2,
html[data-theme="dark"] .otg-bundle h2 { color: #eef3ff; }
html[data-theme="dark"] .otg-hero p,
html[data-theme="dark"] .otg-note,
html[data-theme="dark"] .otg-trust-item,
html[data-theme="dark"] .otg-play-heading p,
html[data-theme="dark"] .otg-info-card p,
html[data-theme="dark"] .otg-info-card li,
html[data-theme="dark"] .otg-copy-card p,
html[data-theme="dark"] .otg-copy-card li,
html[data-theme="dark"] .otg-related-card p,
html[data-theme="dark"] .otg-audience-heading p,
html[data-theme="dark"] .otg-download-card p,
html[data-theme="dark"] .otg-bundle p { color: #b8c4d8; }
html[data-theme="dark"] .otg-faq details { border-color: #334159; background: #141d30; }
html[data-theme="dark"] .otg-faq summary { color: #e4ebf8; }

@media (prefers-color-scheme: dark) {
  html[data-theme="system"] body.offline-typing-page { background: #0c1221; }
  html[data-theme="system"] .otg-hero,
  html[data-theme="system"] .otg-trust-item,
  html[data-theme="system"] .otg-info-card,
  html[data-theme="system"] .otg-copy-card,
  html[data-theme="system"] .otg-related-card,
  html[data-theme="system"] .otg-download-card,
  html[data-theme="system"] .otg-bundle { border-color: #303c55; background: rgba(17,25,43,.96); }
  html[data-theme="system"] .otg-hero h1,
  html[data-theme="system"] .otg-play-heading h2,
  html[data-theme="system"] .otg-info-card h2,
  html[data-theme="system"] .otg-info-card h3,
  html[data-theme="system"] .otg-copy-card h2,
  html[data-theme="system"] .otg-copy-card h3,
  html[data-theme="system"] .otg-related-heading h2,
  html[data-theme="system"] .otg-related-card h3,
  html[data-theme="system"] .otg-audience-heading h2,
  html[data-theme="system"] .otg-download-card h2,
  html[data-theme="system"] .otg-bundle h2 { color: #eef3ff; }
  html[data-theme="system"] .otg-hero p,
  html[data-theme="system"] .otg-note,
  html[data-theme="system"] .otg-trust-item,
  html[data-theme="system"] .otg-play-heading p,
  html[data-theme="system"] .otg-info-card p,
  html[data-theme="system"] .otg-info-card li,
  html[data-theme="system"] .otg-copy-card p,
  html[data-theme="system"] .otg-copy-card li,
  html[data-theme="system"] .otg-related-card p,
  html[data-theme="system"] .otg-audience-heading p,
  html[data-theme="system"] .otg-download-card p,
  html[data-theme="system"] .otg-bundle p { color: #b8c4d8; }
  html[data-theme="system"] .otg-faq details { border-color: #334159; background: #141d30; }
  html[data-theme="system"] .otg-faq summary { color: #e4ebf8; }
}

@media (max-width: 900px) {
  .otg-hero,
  .offline-hub .otg-hero { grid-template-columns: 1fr; }
  .otg-hero-art { display: none !important; }
  .otg-trust-strip { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .otg-info-grid,
  .otg-related-grid,
  .otg-download-grid { grid-template-columns: 1fr; }
  .otg-bundle { grid-template-columns: auto 1fr; }
  .otg-bundle .otg-button { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  body.offline-typing-page .games-shell { width: min(100% - 16px, 1320px); }
  .otg-hero { padding: 21px 16px; border-radius: 22px; }
  .otg-actions { display: grid; grid-template-columns: 1fr; }
  .otg-actions .otg-button { width: 100%; }
  .otg-trust-strip { grid-template-columns: 1fr 1fr; }
  .otg-trust-item { display: grid; justify-items: center; min-height: 78px; padding: 8px; text-align: center; }
  .otg-play-heading,
  .otg-related-heading { display: block; }
  .otg-play-heading a,
  .otg-related-heading a { display: inline-block; margin-top: 7px; }
  .otg-card-actions { grid-template-columns: 1fr; }
  .otg-bundle { grid-template-columns: 1fr; text-align: center; }
}
