/* SKYSEED_VISUAL_IDENTITY_LAYER_START */
/* Light Arcade Board — collective redesign identity layer, generated 2026-05-02. */
body.site-27 {
  --site-primary: #1f2937;
  --site-primary-hover: color-mix(in srgb, #1f2937 84%, black);
  --site-primary-dark: color-mix(in srgb, #1f2937 72%, black);
  --site-primary-light: color-mix(in srgb, #1f2937 12%, white);
  --site-accent: #0ea5e9;
  --site-accent-hover: color-mix(in srgb, #0ea5e9 84%, black);
  --site-background: #f7fafc;
  --site-surface: #ffffff;
  --site-text: #111827;
  --site-text-muted: #56616f;
  --site-border: color-mix(in srgb, #1f2937 18%, #d8dee8);
  --detail-border-radius: 8px;
  --radius-button: 8px;
  --radius-card: 8px;
  background:
    linear-gradient(90deg, rgba(31, 41, 55, 0.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(14, 165, 233, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, #f7fafc 0%, color-mix(in srgb, #f7fafc 82%, white) 58%, #ffffff 100%) !important;
  background-size: 28px 28px, 28px 28px, auto;
  color: #111827;
}

body.site-27 .site-header,
body.site-27 [class*="site-header"],
body.site-27 header[role="banner"] {
  background: color-mix(in srgb, #ffffff 88%, #f7fafc);
  border-bottom: 1px solid color-mix(in srgb, #1f2937 18%, #d8dee8);
  box-shadow: 0 8px 24px rgba(31, 41, 55, 0.08);
}

body.site-27 .category-card,
body.site-27 .subcategory-card,
body.site-27 .worksheet-card,
body.site-27 .tool-card,
body.site-27 .card,
body.site-27 .detail-card,
body.site-27 .content-panel,
body.site-27 .set-switcher,
body.site-27 .intro,
body.site-27 .intro-section {
  border-radius: 8px;
  border-color: color-mix(in srgb, #1f2937 18%, #d8dee8);
  box-shadow: 0 10px 24px rgba(31, 41, 55, 0.075);
}

body.site-27 .category-card:hover,
body.site-27 .subcategory-card:hover,
body.site-27 .worksheet-card:hover,
body.site-27 .tool-card:hover {
  border-color: color-mix(in srgb, #1f2937 42%, #d8dee8);
  box-shadow: 0 14px 30px rgba(31, 41, 55, 0.12);
}

body.site-27 .btn-primary,
body.site-27 .button-primary,
body.site-27 a.btn-primary,
body.site-27 button[type="submit"] {
  background: #1f2937;
  border-color: color-mix(in srgb, #1f2937 84%, black);
  color: #ffffff;
}

body.site-27 .btn-secondary,
body.site-27 .btn-answers,
body.site-27 .badge,
body.site-27 .variant-chip,
body.site-27 .stat-item {
  background: color-mix(in srgb, #0ea5e9 12%, white);
  border-color: color-mix(in srgb, #0ea5e9 28%, #d8dee8);
  color: color-mix(in srgb, #0ea5e9 68%, #111827);
}

body.site-27 .puzzle-grid,
body.site-27 .sudoku-grid,
body.site-27 .worksheet-grid,
body.site-27 table[class*="grid"] {
  border-color: color-mix(in srgb, #1f2937 38%, #111827);
}

@media print {
  body.site-27 {
    background: #ffffff !important;
  }
}
/* SKYSEED_VISUAL_IDENTITY_LAYER_END */

/* Site 027 refresh, 2026-05-06 */
body.site-27 {
  --sg27-width: 1400px;
  --sg27-ink: #111827;
  --sg27-muted: #56616f;
  --sg27-paper: #fbfdff;
  --sg27-charcoal: #1f2937;
  --sg27-cyan: #0284c7;
  --sg27-lime: #4d7c0f;
  background:
    linear-gradient(90deg, rgba(31, 41, 55, 0.055) 1px, transparent 1px),
    linear-gradient(0deg, rgba(2, 132, 199, 0.05) 1px, transparent 1px),
    linear-gradient(135deg, #f7fbff 0%, #f8fff0 50%, #ffffff 100%) !important;
  background-size: 32px 32px, 32px 32px, auto;
}

body.site-27 .site-header .container {
  max-width: var(--sg27-width);
  width: min(calc(100% - 32px), var(--sg27-width));
}

body.site-27 .site-header .logo {
  min-width: 0;
}

body.site-27 .site-header .site-name {
  max-width: 48vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sg27-home,
.sg27-list,
.sg27-detail {
  box-sizing: border-box;
  width: min(calc(100% - 32px), var(--sg27-width));
  max-width: var(--sg27-width);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 54px) 0 64px;
  color: var(--sg27-ink);
}

.sg27-hero,
.sg27-page-header {
  box-sizing: border-box;
  border: 1px solid rgba(31, 41, 55, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(251, 253, 255, 0.96), rgba(248, 255, 240, 0.92)),
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(2, 132, 199, 0.055) 34px 35px);
  box-shadow: 0 18px 44px rgba(31, 41, 55, 0.12);
}

.sg27-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  min-height: 520px;
  padding: clamp(28px, 5vw, 72px);
}

.sg27-hero-copy {
  min-width: 0;
}

.sg27-kicker {
  margin: 0 0 12px;
  color: var(--sg27-cyan);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sg27-hero h1,
.sg27-page-header h1 {
  max-width: 820px;
  margin: 0;
  color: var(--sg27-ink);
  font-size: clamp(2.45rem, 6vw, 5.55rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.sg27-page-header {
  padding: clamp(26px, 5vw, 58px);
  margin-bottom: 24px;
}

.sg27-page-header h1 {
  font-size: clamp(2.1rem, 5vw, 4.2rem);
}

.sg27-lede {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--sg27-muted);
  font-size: clamp(1rem, 1.7vw, 1.28rem);
  line-height: 1.65;
}

.sg27-actions,
.sg27-set-grid,
.sg27-set-switcher .set-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sg27-actions {
  margin-top: 30px;
}

.sg27-btn,
.sg27-fast-grid a,
.sg27-set-grid a,
.sg27-set-switcher .set-btn {
  min-height: 44px;
  border-radius: 8px;
  text-decoration: none;
}

.sg27-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--sg27-charcoal);
  font-weight: 850;
}

.sg27-btn-primary {
  background: var(--sg27-charcoal);
  color: #fff;
  box-shadow: 0 12px 24px rgba(31, 41, 55, 0.22);
}

.sg27-btn-secondary {
  background: rgba(251, 253, 255, 0.86);
  color: var(--sg27-charcoal);
}

.sg27-arcade-preview {
  position: relative;
  min-height: 360px;
  border: 1px solid rgba(2, 132, 199, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(238, 249, 255, 0.9)),
    radial-gradient(circle at 80% 18%, rgba(77, 124, 15, 0.13), transparent 32%);
  overflow: hidden;
}

.sg27-screen {
  position: absolute;
  left: 12%;
  top: 13%;
  width: min(70%, 330px);
  min-height: 210px;
  padding: 26px;
  border: 1px solid rgba(31, 41, 55, 0.2);
  border-radius: 8px;
  background: var(--sg27-paper);
  box-shadow: 0 20px 35px rgba(31, 41, 55, 0.12);
}

.sg27-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--sg27-cyan);
}

.sg27-screen strong {
  display: block;
  margin: 34px 0 12px;
  color: var(--sg27-charcoal);
  font-size: clamp(2.5rem, 6vw, 4.8rem);
}

.sg27-screen small {
  color: var(--sg27-muted);
  font-weight: 850;
}

.sg27-pad {
  position: absolute;
  right: 8%;
  bottom: 28%;
  display: grid;
  grid-template-columns: repeat(2, 48px);
  gap: 8px;
}

.sg27-pad span {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(2, 132, 199, 0.12);
}

.sg27-preview-note {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 28px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(17, 24, 39, 0.92);
  color: #fff;
  font-weight: 800;
}

.sg27-fast-grid,
.sg27-card-grid,
.sg27-seo-grid,
.sg27-list-grid {
  display: grid;
  gap: 16px;
}

.sg27-fast-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 18px 0 32px;
}

.sg27-fast-grid a,
.sg27-list-grid a {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
  padding: 18px;
  border: 1px solid rgba(31, 41, 55, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--sg27-ink);
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(31, 41, 55, 0.07);
}

.sg27-fast-grid span {
  color: var(--sg27-cyan);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sg27-fast-grid strong {
  color: var(--sg27-ink);
  font-size: 1.05rem;
  line-height: 1.25;
}

.sg27-fast-grid small,
.sg27-list-grid .description {
  color: var(--sg27-muted);
  line-height: 1.4;
}

.sg27-section,
.sg27-copy-band,
.sg27-set-switcher,
.sg27-stage,
.sg27-page-navigation,
.sg27-breadcrumb {
  box-sizing: border-box;
  border-radius: 8px;
}

.sg27-section,
.sg27-copy-band,
.sg27-set-switcher,
.sg27-stage {
  margin-top: 22px;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid rgba(31, 41, 55, 0.14);
  background: rgba(255, 255, 255, 0.78);
}

.sg27-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.sg27-list-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  padding: 0;
  list-style: none;
}

.sg27-list-grid li,
.sg27-set-grid li {
  list-style: none;
}

.sg27-card-grid .category-card,
.sg27-seo-grid .seo-block,
.sg27-set-grid a {
  min-width: 0;
  border-radius: 8px;
  border-color: rgba(31, 41, 55, 0.16);
  background: rgba(255, 255, 255, 0.88);
}

.sg27-set-grid a,
.sg27-set-switcher .set-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sg27-stage {
  overflow-wrap: anywhere;
}

.sg27-breadcrumb {
  padding: 16px 18px;
  margin-bottom: 18px;
  border: 1px solid rgba(31, 41, 55, 0.13);
  background: rgba(255, 255, 255, 0.72);
}

.sg27-page-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 24px;
}

@media (max-width: 900px) {
  .sg27-home,
  .sg27-list,
  .sg27-detail,
  body.site-27 .site-header .container {
    width: min(calc(100% - 24px), var(--sg27-width));
  }

  body.site-27 .sg27-hero {
    display: block !important;
    min-height: 0;
    padding: 28px 18px;
    text-align: left !important;
  }

  body.site-27 .sg27-hero .sg27-hero-copy {
    display: flex !important;
    width: 100% !important;
    max-width: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    text-align: left !important;
  }

  body.site-27 .sg27-hero .sg27-kicker,
  body.site-27 .sg27-hero h1,
  body.site-27 .sg27-hero .sg27-lede,
  body.site-27 .sg27-hero .sg27-actions {
    width: 100% !important;
    max-width: 100% !important;
    text-align: left !important;
  }

  .sg27-arcade-preview {
    min-height: 310px;
    margin-top: 28px;
  }

  .sg27-fast-grid,
  .sg27-card-grid,
  .sg27-seo-grid,
  .sg27-list-grid {
    grid-template-columns: 1fr;
  }

  .sg27-hero h1,
  .sg27-page-header h1 {
    font-size: clamp(1.9rem, 8vw, 2.55rem);
  }

  .sg27-section,
  .sg27-copy-band,
  .sg27-set-switcher,
  .sg27-stage {
    padding: 18px;
  }
}

@media (max-width: 520px) {
  body.site-27 .site-header .site-name {
    display: none !important;
  }

  .sg27-pad {
    right: 5%;
    bottom: 24%;
    grid-template-columns: repeat(2, 38px);
  }

  .sg27-pad span {
    width: 38px;
    height: 38px;
  }

  .sg27-screen {
    left: 7%;
    width: 72%;
    padding: 20px;
  }
}
