/* Illustrated kingdom surfaces. Scoped to avoid overriding accessibility modes. */
:root {
  --polish-ink: #18395d;
  --polish-paper: #fffdf5;
  --polish-gold: #f7cf69;
  --polish-shadow: 0 6px 0 #17365b24, 0 16px 30px #112c4820;
}
body.visual-polish35:not(.access-contrast32) {
  background: radial-gradient(ellipse at 12% 0%, #d4f3ff 0, transparent 45%),
    radial-gradient(ellipse at 95% 90%, #e6f5d8 0, transparent 45%), #edf4fa;
  color: var(--polish-ink);
}
body.visual-polish35.royal-home:not(.access-contrast32) {
  background: radial-gradient(ellipse at 50% 0, #2472a7, #113867 70%);
}
.visual-polish35:not(.access-contrast32) .site-brand {
  border-radius: 26px;
  box-shadow: inset 0 1px 0 #fff8, 0 8px 24px #071d3b35;
}
.visual-polish35 .site-brand img { filter: drop-shadow(0 5px 5px #071c3b55); }
.visual-polish35:not(.access-contrast32) .parent-strip34 {
  border-radius: 22px;
  background: linear-gradient(120deg, #fffdf4, #e8f4ff);
  border: 1px solid #fff8;
  padding: 14px 20px;
}
.visual-polish35 .home-player35 strong { font-size: clamp(1.35rem, 3vw, 1.9rem); }
.visual-polish35:not(.access-contrast32) #home-stars35 {
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff0bd;
  border: 1px solid #e0bd57;
  color: #694413;
  font-weight: 800;
}
.visual-polish35:not(.access-contrast32) .hero-cta-main {
  background: linear-gradient(#fff6a2, #ffd04b);
  border-color: #fff2b5;
  color: #57380b;
  box-shadow: inset 0 2px 0 #fff9, 0 5px 0 #a67619, 0 8px 16px #102c4d30;
}
.visual-polish35 .home-utilities { gap: 12px; }
.visual-polish35 .scene { border-radius: 26px; box-shadow: 0 12px 30px #071b3b66; }
.visual-polish35:not(.access-contrast32) .kingdom-bar {
  border-radius: 18px;
  background: #fffdf4;
  box-shadow: 0 4px 18px #163b5f12;
  border: 1px solid #d6e1ed;
}
.visual-polish35 .kingdom-bar a { min-height: 44px; align-content: center; }
.visual-polish35:not(.access-contrast32) .kingdom-bar a,
.visual-polish35:not(.access-contrast32) .kingdom-bar a:visited {
  color: #18395d;
  border-color: #c5d8e5;
}
.visual-polish35:not(.access-contrast32) .kingdom-bar a:is(:hover, :focus-visible, [aria-current="page"]) {
  color: #553709;
  background: #fff2bd;
  border-color: #d2a33c;
}
.visual-polish35:not(.access-contrast32) .kingdom-bar a:focus-visible {
  outline: 3px solid #18395d !important;
  outline-offset: 2px !important;
}
.visual-polish35 .kingdom-entry { border-radius: 30px; box-shadow: var(--polish-shadow); }
.visual-polish35 .kingdom-entry-copy { padding: clamp(20px, 4vw, 38px); }
.visual-polish35 .kingdom-entry h1 { text-shadow: 0 2px 8px #071b30; }
.visual-polish35:not(.access-contrast32) .play-picker {
  background: #fffdf6;
  border: 1px solid #d9e4ec;
  box-shadow: 0 8px 24px #153c5c0c;
  border-radius: 26px;
}
.visual-polish35 .play-topic-grid { gap: 14px; }
.visual-polish35:not(.access-contrast32) .play-topic-grid > a {
  position: relative;
  isolation: isolate;
  min-height: 108px;
  padding: 18px;
  border: 1px solid #cadde9;
  border-radius: 20px;
  background: linear-gradient(140deg, #fff, #eef7ff);
  color: #193c63;
  box-shadow: 0 4px 0 #bdd0df55;
  overflow-wrap: anywhere;
}

.visual-polish35:not(.access-contrast32) .play-topic-grid > a:nth-child(3n+2) { background: linear-gradient(140deg, #fff, #f1ecff); }
.visual-polish35:not(.access-contrast32) .play-topic-grid > a:nth-child(3n) { background: linear-gradient(140deg, #fff, #edf8df); }
.visual-polish35 .age-icon { box-shadow: inset 0 2px 0 #fff9, 0 4px 8px #172e5220; }
.visual-polish35:not(.access-contrast32) .questionMascot {
  background: linear-gradient(120deg, #edf6ff, #fff9e6);
  border: 1px solid #c9dfec;
  border-radius: 24px;
  padding: clamp(12px, 2vw, 22px);
}
.visual-polish35 .questionMascot img { border: 4px solid white; box-shadow: 0 5px 12px #1b3d5f26; }
.visual-polish35:not(.access-contrast32) :is(.choices, #compare-choices, #language-choices) > button:not(.wrong):not(.correct):not([data-correct]):not(.reading-prompt) {
  border: 2px solid #b5d2e5;
  border-radius: 22px;
  background: linear-gradient(#fff, #edf6ff);
  color: #193d65;
  box-shadow: inset 0 2px 0 #fff, 0 5px 0 #9fbcd24d;
  min-height: 72px;
}
.visual-polish35 :is(.choices, #compare-choices, #language-choices) { gap: 14px; }
/* Garden stage: illustration stays behind a calm foreground for clear actions. */
.visual-polish35:not(.access-contrast32) .garden-scene {
  position: relative;
  overflow: hidden;
  border: 3px solid #fff2b7;
  padding: 24px 12px 28px;
  background: linear-gradient(#dff6ff33 0%, #effbc9aa 55%, #c8e69ce8 100%),
    url('assets/garden31.webp?v=58327e26b4') center / cover;
  box-shadow: 0 7px 0 #4f77483d, 0 18px 34px #254d3420;
}
.visual-polish35 .garden-nori { border: 4px solid #fff; box-shadow: 0 6px 0 #274e3633, 0 10px 20px #274e3620; }
.visual-polish35:not(.access-contrast32) .garden-plot {
  background: radial-gradient(ellipse at 50% 16%, #b77b48, #6b3a25 75%);
  box-shadow: inset 0 -10px 0 #47281933, 0 7px 0 #49734442;
  border-color: #a77545;
  height: clamp(84px, 16vw, 116px);
  text-shadow: 0 3px 3px #291a1544;
}
.visual-polish35:not(.access-contrast32) .garden-plot.current { border-color: #fff8c1; box-shadow: 0 0 0 4px #d6a638, 0 8px 0 #49734442; }
.visual-polish35:not(.access-contrast32) .garden-card {
  border: 1px solid #d9dec5;
  background: linear-gradient(#fffef8, #fff9e9);
  padding: clamp(18px, 3vw, 28px);
  box-shadow: 0 5px 0 #afbfa42e;
}
.visual-polish35:not(.access-contrast32) .garden-actions button {
  border-radius: 19px;
  box-shadow: inset 0 2px 0 #fff8, 0 4px 0 #285a3e30;
}
.visual-polish35:not(.access-contrast32) .garden-actions button.emphasis { background: linear-gradient(#388b60, #216446); color: white; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .visual-polish35:not(.no-motion) :is(.play-topic-grid > a, .age-tile) { transition: transform 160ms ease, box-shadow 160ms ease; }
  .visual-polish35:not(.no-motion) :is(.play-topic-grid > a, .age-tile):hover { transform: translateY(-4px); }
}
@media (max-width: 600px) {
  .visual-polish35 .play-topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .visual-polish35:not(.access-contrast32) .play-topic-grid > a { min-height: 128px; padding: 16px 12px; font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .visual-polish35 .play-topic-grid > a, .visual-polish35 .age-tile { transition: none; transform: none; }
}

.visual-polish35:not(.access-contrast32) .garden-scene :is(h1, #progress) {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  padding: 6px 16px;
  border-radius: 16px;
  background: #fffdf3ed;
  color: #224735;
}

/* One clear action hierarchy and topic-specific icons. */
.visual-polish35.royal-home:not(.access-contrast32) .home-utilities .hero-cta:not(.hero-cta-main) {
  background: #edf6ff;
  color: #214b73;
  border: 1px solid #c7dcec;
  box-shadow: 0 3px 0 #0c244d40;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  min-height: 52px;
}
.visual-polish35 .play-topic-grid > a { align-items: center; gap: 14px; }
.visual-polish35 .play-topic-grid > a > :not(.play-icon) { min-width: 0; }
.visual-polish35:not(.access-contrast32) .play-topic-grid .play-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  font-size: 1.9rem;
  background: #e3f0fc;
  box-shadow: inset 0 2px 0 #fff, 0 3px 0 #193d6514;
}
.visual-polish35:not(.access-contrast32) .play-topic-grid > a:nth-child(3n+2) .play-icon { background: #eee5fc; }
.visual-polish35:not(.access-contrast32) .play-topic-grid > a:nth-child(3n) .play-icon { background: #e0f0cd; }
.visual-polish35 .play-topic-grid small { display: block; margin-top: 5px; font-size: .88em; line-height: 1.5; }
.visual-polish35:not(.access-contrast32) #compare-choices > button[data-correct] {
  border: 3px solid #24754c;
  background: #e1f6e8;
  color: #17472e;
  box-shadow: 0 4px 0 #24754c30;
}
.visual-polish35:not(.access-contrast32) :is(.compare-board, .language-order) {
  background: #f3f8fc;
  border: 1px solid #d2e1ec;
  border-radius: 24px;
  padding: clamp(14px, 3vw, 24px);
}
.visual-polish35 :is(#compare-prompt, #language-prompt, #round-question) { line-height: 1.5; }
.visual-polish35 :is(#compare-status, #language-status, #feedback) { line-height: 1.6; }
.visual-polish35:not(.access-contrast32) .play-picker > h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.4; }
@media (max-width: 600px) {
  .visual-polish35 .play-topic-grid > a { flex-direction: column; text-align: center; justify-content: flex-start; }
  .visual-polish35 .play-topic-grid .play-icon { width: 48px; height: 48px; font-size: 1.6rem; }
}
@media (max-width: 359px) {
  .visual-polish35 .play-topic-grid { grid-template-columns: minmax(0, 1fr); }
  .visual-polish35 .play-topic-grid > a { flex-direction: row; text-align: start; min-height: 84px; }
}
