/* Shared visual theme. Task geometry and stimulus/state colors are intentionally untouched. */
/* Adopted homepage theme, also used by the retained design comparison sample. */
.home-pop{--ink:#201737;--muted:#554c6e;--line:#30234e;--mint:#eee5ff;--mint-strong:#5729c3;--mint-deep:#5729c3;--paper:#fffdf8;--yellow:#ffdf69;--shadow:5px 6px 0 #30234e;background:#fff9ed;color:var(--ink);font:16px/1.75 system-ui,-apple-system,"Hiragino Sans","Yu Gothic",Meiryo,sans-serif;overflow-wrap:anywhere}
.home-pop .sample-note{padding:9px 24px;background:#ffdf69;border-bottom:2px solid var(--line);display:flex;justify-content:center;gap:18px;align-items:center;flex-wrap:wrap;font-size:12px;font-weight:800;letter-spacing:.04em}
.sample-note a{text-decoration:underline;text-underline-offset:3px}
.home-pop .site-header{background:#fffdf7;border-bottom:2px solid var(--line);backdrop-filter:none;min-height:78px;padding:14px max(24px,calc((100vw - 1160px)/2));box-shadow:none}
.home-pop .brand{font-size:30px;gap:10px}.home-pop .brand-mark{width:44px;height:44px}.home-pop .header-nav{font-size:13px;color:var(--ink);gap:18px}
.home-pop a:focus-visible,.home-pop summary:focus-visible{outline:3px solid #643bd6;outline-offset:4px}
.home-pop .hero{max-width:1160px;min-height:0;margin:32px auto 64px;border:2px solid var(--line);border-radius:24px;box-shadow:var(--shadow);overflow:hidden;grid-template-columns:1.12fr .88fr;background:linear-gradient(122deg,#e5d7ff,#f8d6ed 57%,#ffed96);align-items:center}
.home-pop .hero-copy{padding:42px}.home-pop h1{font-size:clamp(38px,4.8vw,66px);letter-spacing:-.045em;line-height:1.23;margin-top:24px}.home-pop .lead{font-size:17px;font-weight:600;line-height:1.9;color:var(--muted);margin-top:24px}
.home-pop .pill{background:var(--yellow);border:2px solid var(--line);color:var(--ink);min-height:0;padding:5px 14px;font-size:13px;letter-spacing:.04em}
.home-pop .hero-visual{min-height:0;padding:24px 30px 24px 0}.home-pop .hero-visual img{height:auto;object-fit:contain;border:2px solid var(--line);border-radius:22px;box-shadow:5px 6px 0 var(--line);transform:rotate(3deg);background:#fffdf7}
.home-pop .hero-actions{gap:12px;margin-top:28px}.home-pop :is(.primary-button,.secondary-button){border:2px solid var(--line);border-radius:13px;box-shadow:3px 4px 0 var(--line);min-height:48px;font-size:16px;padding:10px 20px}
.home-pop .primary-button{background:#5729c3;color:#fff}.home-pop .secondary-button{background:#fffdf7;color:var(--ink)}
.home-pop .feature-strip{background:#fffdf7;border:2px solid var(--line);border-radius:15px;padding:14px;margin-top:28px;gap:10px}.home-pop .feature-strip div{border-color:#c9b9df}.home-pop .feature-strip dt{font-size:17px}.home-pop .feature-strip dd{font-size:12px;font-weight:600}
.home-pop :is(.tests-section,.column-section){background:none;padding:0 24px 64px}.home-pop :is(.test-grid,.section-heading,.section-lead){max-width:1160px;margin-inline:auto}
.home-pop .section-heading{justify-content:flex-start;gap:14px}.home-pop .section-heading h2{font-size:clamp(26px,3vw,38px);letter-spacing:-.035em}.home-pop .section-heading span{background:var(--yellow);border:2px solid var(--line);height:16px;width:16px;flex:0 0 16px;transform:rotate(-10deg);border-radius:4px}.home-pop .section-heading span:last-child{display:none}
.home-pop .section-lead{text-align:left;font-weight:500;color:var(--muted);font-size:16px;margin-top:12px}
.home-pop .test-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin-top:28px}
.home-pop .test-card{min-height:300px;border:2px solid var(--line);border-radius:20px;box-shadow:var(--shadow);padding:24px 22px 62px;text-align:left;background:#e5d7ff}
.home-pop .test-card:nth-child(4n+2){background:#def0d2}.home-pop .test-card:nth-child(4n+3){background:#ffe5b4}.home-pop .test-card:nth-child(4n){background:#dbeafa}
.home-pop .test-card img{width:76px;height:76px;margin:0 0 22px}.home-pop .test-card h3{font-size:22px;line-height:1.4;margin-top:0}.home-pop .test-card p{font-size:14px;font-weight:500;color:var(--muted);margin-top:12px}.home-pop .arrow{width:34px;height:34px;right:18px;bottom:18px;border:2px solid var(--line);background:#fffdf7;font-size:20px}
.home-pop :is(.test-card,.column-card):hover{transform:translate(-2px,-3px);box-shadow:7px 9px 0 var(--line)}
.home-pop .test-overview{max-width:1160px;margin-top:48px;padding:28px;background:#fffdf7;border:2px solid var(--line);border-radius:20px;box-shadow:var(--shadow)}
.home-pop .test-overview table{border:1px solid var(--line)}.home-pop .test-overview thead th{background:#e7ddff;color:var(--ink)}.home-pop .test-overview tbody th{color:#5729c3}.home-pop .test-overview :is(th,td){border-bottom:1px solid #c9b9df}
.home-pop .column-section-inner{max-width:1160px}.home-pop .column-section-heading h2{font-size:clamp(26px,3vw,38px)}.home-pop .column-label{color:#5729c3}.home-pop .column-card{border:2px solid var(--line);border-radius:20px;box-shadow:var(--shadow);background:#fffdf7;overflow:hidden}.home-pop .column-card-link{color:#5729c3}.home-pop .column-card-image{border-bottom:2px solid var(--line)}
.home-pop .iq-section{max-width:1160px;margin:0 auto 64px;padding:36px;border:2px solid var(--line);border-radius:24px;background:#fffdf7;box-shadow:var(--shadow)}
.home-pop .info-band{max-width:1160px;margin:0 auto 64px;background:#e7ddff;border:2px solid var(--line);border-radius:24px;box-shadow:var(--shadow);color:var(--ink);padding:36px}.home-pop .info-band h2{font-size:clamp(26px,3vw,38px)}.home-pop .info-band p{color:var(--muted)}.home-pop .policy-link{border-color:var(--line);color:var(--ink)}
.home-pop .faq-section{max-width:1160px;padding:0;margin:0 auto 64px}.home-pop .faq-list{margin-top:24px}.home-pop .faq-list details{border:2px solid var(--line);border-radius:13px;background:#fffdf7;padding:16px 20px}.home-pop .site-footer{background:#e7ddff;border-top:2px solid var(--line);color:var(--ink)}
@media(max-width:1208px){.home-pop :is(.hero,.iq-section,.info-band,.faq-section){margin-left:24px;margin-right:24px}}
@media(max-width:1080px){.home-pop .hero{grid-template-columns:1fr 1fr}.home-pop .hero-visual{order:0}.home-pop .test-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.home-pop .hero{grid-template-columns:1fr;margin:24px 16px 48px}.home-pop .hero-copy{padding:28px 24px}.home-pop h1{font-size:42px}.home-pop .hero-visual{padding:0 28px 28px;max-width:440px;margin:auto}.home-pop .hero-visual img{transform:rotate(2deg)}.home-pop .site-header{padding:12px 18px}.home-pop .sample-note{padding:8px 16px;font-size:11px;gap:8px 16px}.home-pop :is(.tests-section,.column-section){padding:0 16px 48px}.home-pop .test-grid{gap:14px}.home-pop .test-card{min-height:280px;padding:18px 16px 56px}.home-pop .test-card h3{font-size:19px}.home-pop .test-card img{width:64px;height:64px;margin-bottom:16px}.home-pop :is(.iq-section,.info-band,.faq-section){margin:0 16px 48px}.home-pop :is(.iq-section,.info-band){padding:24px}.home-pop .test-overview{padding:20px}.home-pop .feature-strip{grid-template-columns:repeat(3,minmax(0,1fr))}.home-pop .feature-strip dt{font-size:14px}.home-pop .feature-strip dd{font-size:11px}.home-pop .feature-strip div{border:0}.home-pop .column-grid{grid-template-columns:1fr}}
@media(max-width:420px){.home-pop .test-grid{grid-template-columns:1fr}.home-pop .test-card{min-height:210px}.home-pop h1{font-size:36px}}
@media(prefers-reduced-motion:reduce){.home-pop *{transition:none!important}.home-pop :is(.test-card,.column-card):hover{transform:none}}
.home-pop .hero-actions .personality-cta{background:#ffdf69;color:#201737}
.home-pop :is(#tests,#personality,#test-overview){scroll-margin-top:100px}

@media(min-width:1081px){body.category-centered .category-hero>div{max-width:1040px;margin-inline:auto}body.category-centered :is(.choice-grid,.category-explainer){margin-inline:auto}body.category-centered main>.breadcrumb{padding-inline:max(24px,calc((100% - 1040px)/2))}}
body:not(.p64){--ink:#201737;--muted:#554c6e;--line:#30234e;--mint:#eee5ff;--mint-strong:#5729c3;--mint-deep:#5729c3;--paper:#fffdf8;--yellow:#ffdf69;--shadow:5px 6px 0 #30234e;background:#fff9ed;color:var(--ink);font:16px/1.75 system-ui,-apple-system,"Hiragino Sans","Yu Gothic",Meiryo,sans-serif;overflow-wrap:anywhere}
body:not(.p64) .site-header{background:#fffdf7;border-bottom:2px solid var(--line);backdrop-filter:none;min-height:78px;padding:14px clamp(18px,4vw,64px)}
body:not(.p64) .brand{font-size:30px;gap:10px}body:not(.p64) .brand-mark{width:44px;height:44px}body:not(.p64) .header-nav{color:var(--ink);font-size:13px;gap:18px}
body:not(.p64) .site-footer{background:#e7ddff;border-top:2px solid var(--line);color:var(--ink)}
body:not(.p64) :is(a,button,input,textarea,select,summary):focus-visible{outline:3px solid #643bd6;outline-offset:4px}
body:not(.p64) :is(.primary-button,.secondary-button,.ghost-button){border:2px solid var(--line);border-radius:13px;box-shadow:3px 4px 0 var(--line);min-height:48px;padding:10px 20px;font-size:16px}
body:not(.p64) .primary-button{background:#5729c3;color:#fff}body:not(.p64) :is(.secondary-button,.ghost-button){background:#fffdf7;color:var(--ink)}
body:not(.p64) :is(.primary-button,.secondary-button,.ghost-button):hover:not(:disabled){box-shadow:4px 6px 0 var(--line)}
body:not(.p64) :is(.policy-panel,.test-intro,.test-panel,.result-panel,.column-hero,.column-body){background:#fffdf8;border:2px solid var(--line);border-radius:24px;box-shadow:var(--shadow)}
body:not(.p64) .category-hero{background:linear-gradient(122deg,#e5d7ff,#f8d6ed 57%,#ffed96);border-bottom:2px solid var(--line)}
body:not(.p64) .category-hero h1{font-size:clamp(36px,5vw,60px);letter-spacing:-.04em}
body:not(.p64) .category-hero p{color:var(--muted);font-weight:600}
body:not(.p64) :is(.choice-card,.recommend-card,.column-card){background:#e5d7ff;border:2px solid var(--line);border-radius:20px;box-shadow:var(--shadow)}
body:not(.p64) :is(.choice-card,.recommend-card):nth-child(4n+2){background:#def0d2}body:not(.p64) :is(.choice-card,.recommend-card):nth-child(4n+3){background:#ffe5b4}body:not(.p64) :is(.choice-card,.recommend-card):nth-child(4n){background:#dbeafa}
body:not(.p64) :is(.choice-card,.recommend-card,.column-card):hover{box-shadow:7px 9px 0 var(--line)}
body:not(.p64) :is(.choice-card p,.recommend-card p,.test-card p,.column-card p){color:var(--muted);font-weight:500}
body:not(.p64) :is(.choice-card .label,.pill,.column-evidence){background:#ffdf69;color:var(--ink);border:2px solid var(--line)}
body:not(.p64) .wais-note{background:#fff4cd;border:1px solid var(--line);border-radius:13px;color:var(--ink)}
body:not(.p64) :is(.faq-list details,.article-toc){background:#fffdf7;border:2px solid var(--line);border-radius:13px}
body:not(.p64) .column-hero{background:linear-gradient(122deg,#e5d7ff,#f8e5ed 57%,#ffedba)}
body:not(.p64) .column-card{background:#fffdf7;overflow:hidden}body:not(.p64) .column-card-image{border-bottom:2px solid var(--line)}
body:not(.p64) .column-section{background:#f1eaff;border-top:2px solid var(--line);border-bottom:2px solid var(--line)}
body:not(.p64) :is(.column-label,.column-card-link,.column-text-link,.breadcrumb a,.back-link){color:#5729c3}
body:not(.p64) .column-summary{background:#e7ddff;border:2px solid var(--line);border-radius:18px}
body:not(.p64) :is(.column-habit,.column-action-list li,.column-note){background:#eee5ff;border:1px solid var(--line);border-radius:13px}
body:not(.p64) .column-limit{background:#fff4cd;border-color:#d2a12d;border-radius:13px}
body:not(.p64) :is(.article-table-scroll,.table-scroll){border-radius:13px}
body:not(.p64) :is(.article-table-scroll th,.test-overview thead th){background:#e7ddff;color:var(--ink)}
body:not(.p64) :is(.contact-form input,.contact-form textarea){background:#fff;border:2px solid var(--line);border-radius:13px;color:var(--ink)}
body:not(.p64) :is(.test-rule-grid div,.play-stats span,.iq-guide-toc,.iq-status){background:#eee5ff;border:1px solid var(--line);border-radius:13px}
body:not(.p64) .recommend-tests{border-top:2px dashed #bdb0d0}body:not(.p64) .result-score{color:#5729c3}
body:not(.p64) .test-shell,body:not(.p64) .policy-shell{min-width:0}
body:not(.p64)>h1,body:not(.p64)>p{margin:24px}
body:not(.p64) .plus-promo{background:#eee5ff;border:2px solid var(--line);border-radius:20px;box-shadow:var(--shadow)}
body:not(.p64) .info-band{background:#e7ddff;color:var(--ink);border-block:2px solid var(--line)}
body:not(.p64) .info-band p{color:var(--muted)}
@media(max-width:680px){body:not(.p64) .site-header{min-height:70px;padding:12px 18px}body:not(.p64) :is(.policy-panel,.test-intro,.test-panel,.result-panel,.column-hero,.column-body){border-radius:18px}body:not(.p64) .category-hero{padding:30px 20px}body:not(.p64) .category-hero h1{font-size:36px}}
@media(prefers-reduced-motion:reduce){body:not(.p64) :is(.primary-button,.secondary-button,.ghost-button,.choice-card,.recommend-card,.column-card){transition:none}}

:root {
  --ink: #12312f;
  --muted: #4f6463;
  --line: #d8ece8;
  --mint: #e8fbf6;
  --mint-strong: #0e8b7d;
  --mint-deep: #08756c;
  --coral: #ff7f61;
  --yellow: #f9d65c;
  --blue: #4d7ff0;
  --paper: #ffffff;
  --shadow: 0 20px 50px rgba(31, 93, 87, .14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 22%, rgba(65, 214, 164, .18), transparent 28rem),
    radial-gradient(circle at 12% 70%, rgba(77, 127, 240, .08), transparent 24rem),
    #f7fffd;
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  line-height: 1.7;
}

html[lang="en"] body,
html[lang="es"] body,
html[lang="hi"] body,
html[lang="de"] body {
  visibility: hidden;
}

html.i18n-ready body {
  visibility: visible;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px clamp(16px, 2vw, 32px);
  min-height: 92px;
  padding: 18px clamp(22px, 5vw, 72px);
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 0;
  font-size: .8rem;
  white-space: nowrap;
}

.language-switcher a {
  color: var(--ink, #183a37);
  padding: 4px 6px;
  border-radius: 5px;
}

.language-switcher a[aria-current="page"] {
  background: #0e8b7d;
  color: #fff;
}

.language-footer {
  display: flex;
  justify-content: center;
  padding: 24px clamp(22px, 5vw, 72px);
}

.language-footer-links {
  margin: 0;
}

.faq-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 72px 24px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 18px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 800;
}

.faq-list p {
  margin: 14px 0 0;
  color: var(--muted);
}

.test-overview,
.iq-section {
  max-width: 1100px;
  margin: 56px auto 0;
  padding: 0 24px;
}

.test-overview h3 {
  margin: 0 0 10px;
  font-size: clamp(22px, 2vw, 30px);
}

.test-overview p,
.iq-section p {
  color: var(--muted);
}

.table-scroll {
  overflow-x: auto;
  margin-top: 22px;
}

.test-overview table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
}

.test-overview th,
.test-overview td {
  padding: 13px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.test-overview thead th {
  color: #fff;
  background: var(--mint-deep);
}

.test-overview tbody th {
  white-space: nowrap;
  color: var(--mint-deep);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-right: 0;
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  width: 58px;
  height: 58px;
}

.header-nav {
  display: flex;
  gap: clamp(14px, 2vw, 26px);
  align-items: center;
  font-weight: 800;
  font-size: 15px;
  color: #314946;
  justify-content: center;
  flex-wrap: wrap;
}

.header-actions {
  display: flex;
  gap: 16px;
}

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 32px;
  border-radius: 999px;
  font-size: 17px;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(8, 117, 108, .18);
}

.primary-button {
  color: #fff;
  background: linear-gradient(135deg, var(--mint-strong), var(--mint-deep));
}

.secondary-button,
.ghost-button {
  color: var(--ink);
  background: rgba(255, 255, 255, .82);
  border: 1px solid var(--line);
  box-shadow: none;
}

.small {
  min-height: 46px;
  padding: 0 24px;
  font-size: 15px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(420px, 48%) minmax(420px, 52%);
  min-height: 620px;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(255,255,255,.96), rgba(232,251,246,.82));
}

.hero-copy {
  align-self: center;
  padding: clamp(42px, 6vw, 90px) clamp(24px, 5vw, 82px);
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid #9adfd4;
  border-radius: 999px;
  color: var(--mint-deep);
  background: #ddfaf3;
  font-weight: 900;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  margin-top: 28px;
  font-size: clamp(48px, 5vw, 68px);
  line-height: 1.16;
  font-weight: 900;
}

.lead {
  max-width: 620px;
  margin-top: 26px;
  color: #344946;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 36px;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 560px;
  margin: 38px 0 0;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,.82);
}

.feature-strip div {
  text-align: center;
  border-right: 1px solid #c7e2dd;
}

.feature-strip div:last-child {
  border-right: 0;
}

.feature-strip dt {
  color: var(--mint-deep);
  font-size: 22px;
  font-weight: 900;
}

.feature-strip dd {
  margin: 2px 0 0;
  color: var(--muted);
  font-weight: 800;
}

.hero-visual {
  position: relative;
  min-height: 520px;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.tests-section {
  padding: 44px clamp(22px, 5vw, 78px) 70px;
  background:
    url("../assets/top-page/pattern-dots.svg") 92% 16% / 92px auto no-repeat,
    linear-gradient(180deg, #eefcf9, #fbfffe);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.section-heading h2 {
  font-size: clamp(32px, 3vw, 44px);
  font-weight: 900;
}

.section-heading span {
  width: 44px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle, #90dcd1 0 38%, transparent 40%);
  background-size: 14px 8px;
}

.section-lead {
  margin-top: 8px;
  text-align: center;
  color: var(--muted);
  font-size: 18px;
  font-weight: 700;
}

.test-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.test-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 330px;
  padding: 32px 24px 70px;
  border: 1px solid #e3f0ed;
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}

.test-card:hover,
.test-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 26px 58px rgba(31, 93, 87, .2);
  outline: none;
}

.test-card img {
  width: 108px;
  height: 108px;
}

.test-card h3 {
  margin-top: 16px;
  font-size: clamp(24px, 2vw, 30px);
  line-height: 1.3;
  font-weight: 900;
  text-align: center;
}

.test-card p {
  margin-top: 14px;
  color: #344946;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
}

.arrow {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--mint-deep);
  background: #d9f8ef;
  font-size: 26px;
  font-weight: 900;
}

.info-band {
  padding: 56px clamp(24px, 8vw, 120px);
  color: #fff;
  background: linear-gradient(135deg, #0e8b7d, #116b86);
}

.info-band h2 {
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.35;
  font-weight: 900;
}

.info-band p {
  max-width: 860px;
  margin-top: 14px;
  font-size: 18px;
  font-weight: 700;
}

.policy-link {
  display: inline-flex;
  margin-top: 24px;
  color: #fff;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.policy-shell {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 44px clamp(18px, 5vw, 64px) 72px;
}

.policy-panel {
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid #dfeeea;
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow);
}

.policy-panel h1 {
  margin-top: 0;
}

.policy-panel section {
  margin-top: 32px;
}

.policy-panel h2 {
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.35;
}

.policy-panel p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 700;
}

.policy-updated {
  color: var(--mint-deep);
}

.category-page {
  min-height: 100vh;
  background: #f8fffd;
}

.category-hero {
  display: block;
  padding: 54px clamp(22px, 6vw, 96px);
  background:
    url("../assets/top-page/pattern-dots.svg") 92% 24% / 90px auto no-repeat,
    linear-gradient(135deg, #ffffff, #e8fbf6);
}

.back-link {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--mint-deep);
  font-weight: 900;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.breadcrumb a {
  color: var(--mint-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumb span[aria-hidden="true"] {
  color: #9ab3af;
}

main:not(.test-shell):not(.policy-shell) > .breadcrumb {
  margin-bottom: 0;
  padding: 18px clamp(22px, 6vw, 96px) 0;
}

.category-hero h1 {
  margin-top: 0;
  font-size: clamp(42px, 5vw, 66px);
}

.category-hero p {
  max-width: 760px;
  margin-top: 16px;
  color: #344946;
  font-size: 19px;
  font-weight: 700;
}

.wais-note {
  padding: 14px 18px;
  border: 1px solid #bfe8df;
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
  color: var(--muted);
  font-size: 16px;
}

.choice-section {
  padding: 46px clamp(22px, 6vw, 96px) 74px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 1040px;
}

.single-choice-grid {
  grid-template-columns: minmax(0, 520px);
}

.choice-card {
  min-height: 260px;
  padding: 32px;
  border: 1px solid #dfeeea;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.choice-card-icon {
  display: block;
  width: 92px;
  height: 92px;
  margin-bottom: 18px;
  object-fit: contain;
}

.choice-card .label {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--mint-deep);
  background: var(--mint);
  font-weight: 900;
}

.choice-card h2 {
  margin-top: 18px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.32;
}

.choice-card p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 700;
}

.choice-card .primary-button {
  margin-top: 26px;
}

.test-shell {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: 44px clamp(18px, 5vw, 64px) 72px;
}

.test-intro,
.test-panel,
.result-panel {
  border: 1px solid #dfeeea;
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow);
}

.test-intro,
.result-panel {
  padding: clamp(28px, 5vw, 56px);
}

.test-intro h1,
.result-panel h1 {
  max-width: 780px;
}

.test-rule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 34px 0;
}

.test-rule-grid div {
  min-height: 104px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6fffc;
}

.test-rule-grid strong,
.test-rule-grid span {
  display: block;
}

.test-rule-grid strong {
  color: var(--mint-deep);
  font-size: 18px;
}

.test-rule-grid span {
  margin-top: 6px;
  color: var(--muted);
  font-weight: 800;
}

.test-start {
  border: 0;
  cursor: pointer;
  touch-action: manipulation;
}

.start-shortcut {
  margin-top: 24px;
}

.training-note {
  max-width: 820px;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid #bfe8df;
  border-radius: 8px;
  background: #f6fffc;
  color: var(--muted);
  font-size: 17px;
  font-weight: 800;
}

.test-panel {
  padding: clamp(20px, 4vw, 40px);
}

.play-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.play-header h1 {
  margin-top: 0;
  font-size: clamp(32px, 4vw, 52px);
}

.test-eyebrow {
  color: var(--mint-deep);
  font-weight: 900;
}

.play-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.play-stats span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--mint-deep);
  background: var(--mint);
  font-weight: 900;
}

.timer-track {
  height: 8px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfeeea;
}

.timer-track span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--mint-strong);
  transition: width .2s linear, background .2s ease;
}

.timer-track span.warn {
  background: var(--yellow);
}

.timer-track span.danger {
  background: var(--coral);
}

.test-panel .progress-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 20px;
}

.test-panel .progress-dots span {
  width: 18px;
  height: 5px;
  border-radius: 999px;
  background: #dfeeea;
}

.test-panel .progress-dots span.current {
  background: var(--blue);
}

.test-panel .progress-dots span.done {
  background: var(--mint-strong);
}

.test-panel .progress-dots span.wrong {
  background: var(--coral);
}

.task-area {
  display: grid;
  place-items: center;
  min-height: 420px;
  padding-top: 30px;
}

.symbol-test,
.cancel-test {
  width: 100%;
}

.task-instruction {
  color: var(--muted);
  font-size: 18px;
  font-weight: 800;
  text-align: center;
}

.symbol-targets {
  display: flex;
  justify-content: center;
  gap: 18px;
  width: min(100%, 520px);
  margin: 26px auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6fffc;
}

.symbol-targets span,
.cancel-target strong {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border: 1px solid #bfe8df;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 38px;
  line-height: 1;
}

.symbol-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(100%, 640px);
  margin: 0 auto;
}

.symbol-options button,
.cancel-grid button {
  border: 1px solid #d6e8e4;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}

.symbol-options button {
  min-height: 78px;
  font-size: 34px;
}

.symbol-options .none-option {
  font-size: 18px;
}

.symbol-options button:hover,
.cancel-grid button:hover {
  transform: translateY(-2px);
  border-color: var(--mint-strong);
  background: #f6fffc;
}

.symbol-options button.correct,
.cancel-grid button.correct {
  border-color: var(--mint-strong);
  background: #dff9f1;
}

.symbol-options button.wrong,
.cancel-grid button.wrong {
  border-color: var(--coral);
  background: #fff1ec;
}

.cancel-target {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 24px auto;
  color: var(--mint-deep);
  font-weight: 900;
}

.cancel-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(0, 1fr));
  gap: 8px;
  width: min(100%, 720px);
  margin: 0 auto;
}

.cancel-grid button {
  aspect-ratio: 1;
  font-size: 25px;
}

.reaction-pad {
  display: grid;
  place-items: center;
  width: min(100%, 520px);
  min-height: 260px;
  border: 0;
  border-radius: 8px;
  background: #eff8f6;
  color: var(--ink);
  font: inherit;
  font-size: clamp(34px, 7vw, 72px);
  font-weight: 900;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line);
}

.reaction-pad.go {
  color: #fff;
  background: var(--mint-strong);
  box-shadow: 0 20px 44px rgba(8, 117, 108, .25);
}

.reaction-test-wrap {
  display: grid;
  justify-items: center;
  gap: 22px;
  width: 100%;
}

.reaction-history {
  width: min(100%, 680px);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fffd;
}

.reaction-history-title,
.reaction-history-empty {
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}

.reaction-history ol {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reaction-history li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
}

.reaction-history li strong {
  color: var(--mint-deep);
}

.reaction-rank,
.result-rank {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  color: var(--mint-deep);
  font-weight: 900;
}

.reaction-rank strong,
.result-rank strong {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: #fff;
  background: var(--mint-strong);
  font-size: 30px;
}

.result-message > span {
  display: block;
}

.x-share-button {
  color: #fff;
  background: #111;
  border-color: #111;
}

.x-share-button:hover,
.x-share-button:focus-visible {
  color: #fff;
  background: #000;
}

.result-message .reaction-history {
  margin-top: 18px;
  font-size: 16px;
}

.reaction-chart {
  width: min(100%, 720px);
  margin-top: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.reaction-chart svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.reaction-chart line {
  stroke: #cfe4df;
  stroke-width: 2;
}

.reaction-chart polyline {
  fill: none;
  stroke: var(--mint-strong);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.reaction-chart circle {
  fill: #fff;
  stroke: var(--mint-deep);
  stroke-width: 4;
}

.reaction-chart text {
  fill: var(--muted);
  font-size: 18px;
  font-weight: 900;
  text-anchor: middle;
}

.choice-reaction,
.noise-test {
  width: min(100%, 680px);
}

.color-cue {
  display: grid;
  place-items: center;
  min-height: 180px;
  border-radius: 8px;
  color: #fff;
  font-size: clamp(42px, 8vw, 86px);
  font-weight: 900;
  text-shadow: 0 2px 12px rgba(0,0,0,.25);
}

.color-buttons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.color-buttons button,
.memory-form button,
.target-grid button,
.noise-grid button,
.position-grid button {
  border: 1px solid #d6e8e4;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.color-buttons button {
  min-height: 68px;
  font-size: 20px;
}

.memory-display {
  display: grid;
  place-items: center;
  width: min(100%, 560px);
  min-height: 220px;
  max-width: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--mint-deep);
  font-size: var(--memory-font-size, clamp(48px, 10vw, 98px));
  font-weight: 900;
  letter-spacing: var(--memory-letter-spacing, .08em);
  line-height: 1.12;
  overflow-wrap: anywhere;
  text-align: center;
}

.memory-stage {
  display: grid;
  justify-items: center;
  gap: 18px;
  width: min(100%, 620px);
}

.memory-timebar {
  width: min(100%, 560px);
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfeeea;
}

.memory-timebar span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--mint-strong);
}

.memory-form {
  display: grid;
  gap: 16px;
  width: min(100%, 520px);
  max-width: 100%;
  min-width: 0;
}

.memory-form label {
  color: var(--muted);
  font-size: 18px;
  font-weight: 900;
  text-align: center;
}

.memory-form input {
  width: 100%;
  min-width: 0;
  min-height: 74px;
  padding: 0 20px;
  border: 1px solid #cfe4df;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: var(--memory-font-size, 34px);
  font-weight: 900;
  text-align: center;
  letter-spacing: var(--memory-letter-spacing, .08em);
  max-width: 100%;
}

.memory-form button {
  border: 0;
}

.position-grid,
.target-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, 430px);
}

.position-grid button,
.target-grid button {
  aspect-ratio: 1;
  font-size: 30px;
}

.position-grid button.active,
.position-grid button.selected {
  background: var(--mint-strong);
  box-shadow: 0 12px 26px rgba(8, 117, 108, .22);
}

.target-grid button[data-correct="true"] {
  color: var(--mint-deep);
}

.noise-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.noise-grid button {
  aspect-ratio: 1;
  font-size: 30px;
}

.noise-grid .red { color: #e4584f; }
.noise-grid .blue { color: #426fe8; }
.noise-grid .green { color: #08756c; }
.noise-grid .yellow { color: #d6a900; }

.moving-task-area {
  overflow: hidden;
}

.moving-vision-test {
  display: grid;
  justify-items: center;
  gap: 18px;
  width: min(100%, 800px);
}

.moving-stage {
  position: relative;
  width: 100%;
  min-height: 250px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(14, 139, 125, .08) 0 1px, transparent 1px 12.5%),
    #f8fffd;
}

.moving-countdown {
  display: grid;
  place-items: center;
  min-width: 108px;
  min-height: 76px;
  padding: 0 22px;
  border-radius: 8px;
  color: #fff;
  background: var(--mint-strong);
  font-size: clamp(34px, 7vw, 64px);
  line-height: 1;
  font-weight: 900;
  box-shadow: 0 18px 38px rgba(8, 117, 108, .2);
}

.moving-number {
  position: absolute;
  top: 50%;
  left: 0;
  color: var(--ink);
  font-size: var(--moving-font-size, 72px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: .08em;
  text-shadow: 0 8px 24px rgba(18, 49, 47, .12);
  opacity: 0;
  transform: translateY(-50%);
  white-space: nowrap;
}

.moving-vision-test.is-running .moving-countdown {
  opacity: 0;
}

.moving-vision-test.is-running .moving-number {
  opacity: 1;
  animation: moving-number-pass var(--moving-duration, 1500ms) linear forwards;
}

.moving-answer-form {
  justify-items: stretch;
}

@keyframes moving-number-pass {
  from {
    left: -35%;
  }

  to {
    left: 115%;
  }
}

.cancel-grid button:disabled {
  cursor: default;
}

.cancel-status {
  margin-top: 18px;
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}

.result-score {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 20px 0 8px;
  color: var(--mint-deep);
}

.result-score span {
  font-size: clamp(72px, 12vw, 128px);
  line-height: 1;
  font-weight: 900;
}

.result-score small {
  font-size: 28px;
  font-weight: 900;
}

.result-message {
  max-width: 720px;
  color: var(--muted);
  font-size: 20px;
  font-weight: 800;
}

.primary-button.processing-improvement-cta {
  max-width: 100%;
  margin-top: 18px;
  padding-inline: 16px;
  color: var(--paper);
  background: #b5440b;
  box-shadow: 0 12px 28px rgba(181, 68, 11, .2);
  text-align: center;
}

.primary-button.processing-improvement-cta:hover {
  background: #963608;
}

.processing-improvement-cta:focus-visible,
.affiliate-banner:focus-visible {
  outline: 3px solid var(--mint-deep);
  outline-offset: 3px;
}

.affiliate-banner {
  display: block;
  width: 100%;
  max-width: 300px;
  margin-top: 12px;
}

.affiliate-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.affiliate-impression {
  display: block;
}

.result-affiliate-ad {
  margin-top: 24px;
  color: var(--muted);
  font-size: 13px;
}

.speed-guide .speed-guide-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  border: 0;
  background: transparent;
}

.speed-guide-summary > div {
  border: 1px solid var(--line);
  border-radius: 8px;
}

.speed-guide-blocks {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  max-width: 880px;
  margin-inline: auto;
}

@media (max-width: 680px) {
  .speed-guide .speed-guide-summary {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
}

@media (max-width: 680px) {
  .processing-improvement-cta {
    width: 100%;
  }
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.result-actions button {
  border: 0;
  cursor: pointer;
}

.recommend-tests {
  margin-top: 38px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.recommend-tests h2 {
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.35;
}

.recommend-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.recommend-card {
  display: block;
  min-height: 150px;
  padding: 20px;
  border: 1px solid #dfeeea;
  border-radius: 8px;
  background: #f8fffd;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.recommend-card:hover,
.recommend-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--mint-strong);
  background: #fff;
  outline: none;
}

.recommend-card span {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--mint-deep);
  background: var(--mint);
  font-size: 13px;
  font-weight: 900;
}

.recommend-card strong {
  display: block;
  margin-top: 12px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.3;
}

.recommend-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
}

.feedback-flash {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 50;
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  color: #fff;
  font-size: 56px;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(.9);
}

.feedback-flash.show {
  animation: feedback-pop .26s ease-out forwards;
}

.feedback-flash.is-correct {
  background: var(--mint-strong);
}

.feedback-flash.is-wrong {
  background: var(--coral);
}

@keyframes feedback-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.85);
  }
  35% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -62%) scale(1.12);
  }
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .header-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    min-height: 320px;
  }

  .hero-copy {
    padding-top: 32px;
  }

  .test-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


@media (max-width: 680px) {
  .site-header {
    min-height: 78px;
    padding: 14px 22px;
  }

  .language-switcher {
    gap: 3px;
    font-size: .7rem;
  }

  .language-switcher a {
    padding: 3px 4px;
  }

  .header-nav {
    display: none;
  }

  .brand {
    gap: 12px;
    font-size: 32px;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
  }

  .hero {
    min-height: 0;
  }

  .hero-visual {
    min-height: 230px;
  }

  .hero-copy {
    padding: 30px 22px 38px;
  }

  .pill {
    min-height: 40px;
    padding: 0 18px;
    font-size: 15px;
  }

  h1 {
    font-size: 46px;
  }

  .lead {
    font-size: 17px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .feature-strip {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
  }

  .feature-strip div {
    border-right: 0;
    border-bottom: 1px solid #c7e2dd;
    padding-bottom: 12px;
  }

  .feature-strip div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .tests-section {
    padding: 38px 18px 56px;
  }

  .test-grid,
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .test-card {
    align-items: flex-start;
    min-height: 210px;
    padding: 24px 72px 24px 24px;
  }

  .test-card img {
    width: 80px;
    height: 80px;
  }

  .test-card h3,
  .test-card p {
    text-align: left;
  }

  .category-hero {
    padding: 34px 22px;
  }

  .choice-section {
    padding: 34px 22px 54px;
  }

  .test-shell {
    padding: 28px 16px 54px;
  }

  .test-rule-grid,
  .symbol-options {
    grid-template-columns: 1fr;
  }

  .play-header {
    display: block;
  }

  .play-stats {
    justify-content: flex-start;
    margin-top: 12px;
  }

  .task-area {
    min-height: 360px;
  }

  .memory-form {
    width: 100%;
  }

  .memory-form input {
    min-height: 66px;
    padding-inline: 12px;
    font-size: clamp(18px, min(var(--memory-font-size, 34px), 7.4vw), 34px);
  }

  .symbol-targets span,
  .cancel-target strong {
    width: 64px;
    height: 64px;
    font-size: 32px;
  }

  .symbol-options button {
    min-height: 64px;
  }

  .cancel-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .cancel-grid button {
    font-size: 22px;
  }

  .color-buttons,
  .noise-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .moving-stage {
    min-height: 210px;
  }

  .result-actions {
    display: grid;
  }

  .recommend-grid {
    grid-template-columns: 1fr;
  }
}

.install-training-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
  padding: 22px;
  border: 1px solid #bfe8df;
  border-radius: 8px;
  background: #f6fffc;
}

.install-training-card h2 {
  margin: 0 0 8px;
  color: var(--mint-deep);
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.35;
}


.install-training-actions {
  display: grid;
  gap: 10px;
  min-width: min(100%, 210px);
}

.install-dismiss-button {
  min-height: 46px;
  border-color: #d6e8e4;
  color: var(--muted);
  background: #fff;
}
.install-training-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.install-popup {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(8, 28, 26, .56);
}

.install-popup-panel {
  position: relative;
  width: min(100%, 480px);
  padding: 28px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(6, 32, 30, .24);
}

.install-popup-panel h2 {
  margin: 14px 0 10px;
  color: var(--ink);
  font-size: clamp(26px, 6vw, 38px);
  line-height: 1.25;
}

.install-popup-panel p {
  color: var(--muted);
  font-weight: 800;
}

.install-popup-actions {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.install-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #eef8f5;
  color: var(--ink);
  font: inherit;
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
}

.install-popup-help {
  display: none;
  margin-top: 16px;
  padding: 12px;
  border-radius: 8px;
  background: #fff7e8;
  color: #7d4d00;
}

.install-popup.show-help .install-popup-help {
  display: block;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding: 28px 20px 36px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--mint-strong);
}

.contact-form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.contact-form textarea { resize: vertical; }
.honeypot { position: absolute; left: -9999px; }
.form-status { padding: 12px; border-radius: 8px; background: var(--mint); font-weight: 700; }

/* Keep policy and contact pages within narrow viewports. */
.policy-page .policy-panel { overflow-wrap: anywhere; }
.policy-page .contact-form { grid-template-columns: minmax(0, 1fr); }
.policy-page .contact-form :is(input, textarea) { min-width: 0; }

@media (max-width: 680px) {
  .policy-page .policy-shell { padding: 28px 16px 54px; }
  .policy-page .policy-panel { padding: 24px 20px; }
  .policy-page .policy-panel h1 { font-size: clamp(24px, 7vw, 38px); }
}

/* Research-based articles: reuse the existing policy layout and design tokens. */
.category-explainer {
  max-width: 1040px;
}

.category-explainer h3 {
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.35;
}

.science-article h1 {
  margin-top: 28px;
  overflow-wrap: anywhere;
}

.science-article section[id] {
  scroll-margin-top: 120px;
}

.science-article a:not(.primary-button):not(.secondary-button):not(.recommend-card) {
  color: var(--mint-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.science-article .article-meta {
  font-size: 14px;
}

.article-toc {
  margin-top: 28px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--mint);
}

.article-toc ol,
.article-references ol {
  padding-left: 24px;
  margin: 14px 0 0;
}

.article-toc li + li,
.article-references li + li {
  margin-top: 8px;
}

.article-table-scroll {
  overflow-x: auto;
  margin-top: 22px;
}

.article-table-scroll table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: var(--paper);
  border: 1px solid var(--line);
}

.article-table-scroll caption {
  text-align: left;
  margin-bottom: 10px;
  color: var(--muted);
}

.article-table-scroll th,
.article-table-scroll td {
  padding: 13px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.article-table-scroll th {
  color: var(--paper);
  background: var(--mint-deep);
}

.science-article .hero-actions > a {
  max-width: 100%;
  padding: 12px 24px;
  text-align: center;
}

/* Science columns: scoped additions, shared site colors and typography. */
.column-section {
  margin: 64px auto 0;
  padding: 48px 24px;
  border-block: 1px solid var(--line);
  background: var(--mint);
  scroll-margin-top: 120px;
}

.column-section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.column-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.column-section-heading h2,
.column-related > h2 {
  margin: 6px 0 0;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.4;
}

.column-section-heading > p {
  color: var(--muted);
  font-size: 15px;
}

.column-label {
  color: var(--mint-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1.6;
}

.column-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.column-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 8px 24px rgba(31, 93, 87, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}

.column-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.column-card:focus-visible,
.column-page a:focus-visible {
  outline: 3px solid var(--mint-deep);
  outline-offset: 4px;
}

.column-card-image {
  aspect-ratio: 16 / 9;
  background: var(--mint);
  border-bottom: 1px solid var(--line);
}

.column-card-image img {
  display: block;
  width: 100%;
  height: auto;
}

.column-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: start;
  padding: 24px;
}

.column-card h3 {
  margin: 12px 0;
  font-size: 21px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.column-card p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
}

.column-card-link {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--mint-deep);
  font-size: 14px;
  font-weight: 800;
}

.column-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 30px 32px 72px;
}

.column-page main.column-shell > .breadcrumb {
  margin: 0 0 24px;
  padding: 0;
}

.column-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 36px;
  padding: clamp(24px, 3vw, 44px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.column-hero h1 {
  margin: 16px 0 20px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.column-subtitle {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 700;
  line-height: 1.7;
}

.column-intro {
  color: var(--muted);
  font-size: 16px;
}

.column-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 12px;
}

.column-text-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--mint-deep);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.column-cover {
  min-width: 0;
  margin: 0;
}

.column-cover img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.column-cover figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
}

.column-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 24px 0 40px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.column-summary > div {
  padding: 22px 24px;
  background: var(--mint);
}

.column-step-number {
  color: var(--mint-deep);
  font-size: 27px;
  font-weight: 900;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.column-summary strong {
  margin-left: 14px;
  font-size: 19px;
}

.column-summary p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.column-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  gap: 32px;
}

.column-side {
  position: sticky;
  top: 116px;
  min-width: 0;
}

.column-side .article-toc {
  margin: 0;
  padding: 20px;
  font-size: 13px;
}

.column-side .article-toc a {
  color: var(--mint-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.column-body {
  min-width: 0;
  padding: clamp(24px, 3vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font-size: 17px;
}

.column-body > section + section {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.column-body h2 {
  margin: 10px 0 20px;
  font-size: clamp(23px, 2.3vw, 30px);
  line-height: 1.5;
}

.column-body h3 {
  margin: 24px 0 12px;
  font-size: 20px;
  line-height: 1.55;
}

.column-body p + p {
  margin-top: 16px;
}

.column-note,
.column-limit {
  margin-top: 24px;
  padding: 20px 22px;
  border-left: 4px solid var(--mint-strong);
  border-radius: 0 8px 8px 0;
  background: var(--mint);
  font-size: 15px;
}

.column-note p,
.column-limit p {
  margin-top: 8px;
  color: var(--muted);
}

.column-limit {
  margin-top: 18px;
  border-color: var(--yellow);
  background: #fff9e5;
}

.column-habit-grid {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.column-habit {
  position: relative;
  padding: 24px 24px 24px 80px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.column-habit > .column-step-number {
  position: absolute;
  top: 25px;
  left: 24px;
}

.column-habit h3 {
  margin-top: 0;
}

.column-habit p {
  color: var(--muted);
  font-size: 15px;
}

.column-method {
  margin: 28px 0;
}

.column-evidence {
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--mint-deep);
  background: var(--mint);
  font-size: 12px;
  font-weight: 800;
}

.column-method h3 {
  margin-top: 12px;
}

.column-action-list {
  display: grid;
  gap: 0;
  margin: 24px 0 18px;
  padding: 0 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--mint);
  list-style: none;
}

.column-action-list li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  padding: 24px 0;
}

.column-action-list li + li {
  border-top: 1px solid var(--line);
}

.column-action-list h3 {
  margin: 0 0 8px;
}

.column-action-list p {
  color: var(--muted);
  font-size: 15px;
}

.column-body .column-small {
  color: var(--muted);
  font-size: 13px;
}

.column-test-links {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.column-body.science-article .column-test-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--mint);
  text-decoration: none;
}

.column-test-links a:hover strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.column-test-links small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.column-body .article-table-scroll {
  font-size: 14px;
}

.column-body .faq-list details {
  border-radius: 8px;
  font-size: 16px;
}

.column-body .article-references {
  font-size: 14px;
}

.column-related {
  margin-top: 64px;
}

.column-related .column-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
}

@media (max-width: 1080px) {
  .column-hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .column-cover {
    max-width: 720px;
  }

  .column-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .column-side {
    position: static;
  }

  .column-side .article-toc ol {
    columns: 2;
    column-gap: 36px;
  }

  .column-side .article-toc li {
    break-inside: avoid;
  }

  .column-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .column-shell {
    padding: 24px 16px 48px;
  }

  .column-section {
    margin-top: 48px;
    padding: 36px 24px;
  }

  .column-section-heading {
    display: block;
  }

  .column-section-heading > p {
    margin-top: 16px;
  }

  .column-grid,
  .column-related .column-grid,
  .column-summary {
    grid-template-columns: 1fr;
  }

  .column-hero {
    padding: 24px 20px;
  }

  .column-hero h1 {
    font-size: 28px;
  }

  .column-summary {
    margin-bottom: 28px;
  }

  .column-summary > div {
    padding: 18px 22px;
  }

  .column-body {
    padding: 28px 20px;
    font-size: 16px;
  }

  .column-body > section + section {
    margin-top: 36px;
    padding-top: 30px;
  }

  .column-side .article-toc ol {
    columns: 1;
  }

  .column-habit {
    padding: 20px;
  }

  .column-habit > .column-step-number {
    position: static;
    display: block;
    margin-bottom: 12px;
  }

  .column-note,
  .column-limit {
    padding: 18px;
  }

  .column-action-list {
    padding-inline: 18px;
  }

  .column-action-list li {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .column-card {
    transition: none;
  }

  .column-card:hover {
    transform: none;
  }
}
.result-actions.vision-difficulty-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.result-actions.vision-difficulty-buttons .test-start{min-width:0;padding:10px 6px;white-space:nowrap}
