:root {
  color-scheme: light;
  --ink: #1b3047;
  --blue: #255f9e;
  --paper: #faf9f5;
  --muted: #516471;
  --line: #ced8da;
  --display: Georgia, "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif CJK JP", serif;
  --sans: "Avenir Next", Avenir, "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans CJK JP", Arial, sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; background-image: radial-gradient(rgba(76, 101, 107, .13) .6px, transparent .85px); background-size: 9px 9px; }
button, input { font: inherit; }
button, label { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible, .answer:focus-within { outline: 3px solid #2167a6; outline-offset: 3px; }
[lang="en"] .pt-copy, [lang="pt"] .en-copy { display: none; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.wrap { width: min(100% - 80px, 1056px); margin-inline: auto; }
.site-head { position: sticky; top: 0; z-index: 3; border-bottom: 1px solid #cfdbdc; background: var(--paper); }
.head-inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; gap: 10px; align-items: center; font: 700 24px/1.2 var(--display); letter-spacing: -.045em; }
.brand svg { width: 38px; height: 38px; }
.languages { display: flex; align-items: center; border: 1px solid #b6c7cd; border-radius: 25px; padding: 2px; background: #f1f3ef; }
.languages button { position: relative; border: 0; min-width: 63px; min-height: 35px; padding: 6px 12px; border-radius: 22px; font-size: 13px; font-weight: 650; line-height: 1.22; color: var(--muted); background: transparent; }
.languages button::before { content: ''; position: absolute; inset: -5px 0; }
html[lang="pt"] button[data-lang="pt"], html[lang="en"] button[data-lang="en"] { background: var(--blue); color: white; }
main { padding-bottom: 64px; }
.intro { display: grid; grid-template-columns: 1fr .98fr; gap: clamp(35px, 5.2vw, 80px); align-items: center; padding: 43px 10px 43px 1px; }
.category { display: flex; align-items: center; gap: 8px; margin: 0 0 13px; font-size: 12px; font-weight: 750; letter-spacing: .115em; text-transform: uppercase; color: var(--blue); }
.ui-icon { display: inline-block; flex: none; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
h1 { margin: 0; font: 500 clamp(58px, 5.4vw, 80px)/.99 var(--display); letter-spacing: -.068em; }
h1 em { display: inline-block; position: relative; isolation: isolate; color: var(--blue); font-weight: 500; }
h1 em::after { content: ''; position: absolute; z-index: -1; border-radius: 65% 25% 45% 20%; height: .095em; background: #f5ca66; bottom: -.025em; left: 18%; right: 1%; transform: rotate(-1.6deg); }
html[lang="pt"] h1 { font-size: clamp(44px, 4.5vw, 65px); letter-spacing: -.045em; line-height: 1.17; font-weight: 600; }
html[lang="pt"] h1 em { font-style: normal; font-weight: inherit; }
.intro-text { max-width: 390px; margin: 23px 0 0; font-size: 16px; line-height: 1.55; color: #405669; }
.meta { display: flex; align-items: center; gap: 15px; margin-top: 17px; color: #3d566b; font-size: 13px; font-weight: 600; }
.meta > span { display: inline-flex; align-items: center; gap: 6px; }
.meta i { width: 3px; height: 3px; background: #85929a; border-radius: 50%; }
.meta .ui-icon { width: 16px; height: 16px; color: var(--blue); }
.postcard { position: relative; margin: 2px 1px 2px 0; padding: 8px 8px 13px; transform: rotate(1.7deg); background: #fffef9; border: 1px solid #d6d7c9; box-shadow: 1px 4px 0 -1px #e4e3d8, 1px 8px 19px -10px #626b69; }
.postcard img { display: block; width: 100%; height: auto; aspect-ratio: 1.78; object-fit: cover; object-position: 50% 56%; }
.tape { position: absolute; top: -7px; left: 36%; width: 28%; height: 23px; transform: rotate(-6deg); background: repeating-linear-gradient(93deg, #f3dd9bc4 0 2px, #ecd69ac9 2px 3px); clip-path: polygon(2% 0, 100% 0, 98% 15%, 100% 29%, 97% 48%, 99% 66%, 97% 84%, 98% 100%, 0 100%, 2% 84%, 0 66%, 2% 49%, 0 35%, 3% 18%); }
.postmark { position: absolute; width: 90px; height: auto; right: -18px; bottom: -17px; color: #a4463d; transform: rotate(-11deg); filter: drop-shadow(0 0 1px #fff7); }
.ad-slot { margin-block: 40px; }
.ad-slot:empty, .ad-slot[hidden] { display: none; margin: 0; }
.quiz { scroll-margin-top: 88px; position: relative; padding: 27px 34px 24px; border: 1px solid #c6d2d5; border-top: 3px solid var(--blue); border-radius: 7px; background: #fffefb; box-shadow: 0 4px 13px -9px #52687d; }
.quiz-top { display: flex; justify-content: space-between; align-items: center; gap: 15px; min-height: 20px; }
.counter { display: flex; gap: 8px; align-items: baseline; font-size: 12px; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; color: var(--blue); }
.counter strong { font: 700 17px/1 Georgia, serif; letter-spacing: .01em; }
.counter .out-of { color: #566d80; font-size: 12px; letter-spacing: .03em; }
.segments { display: flex; align-items: center; gap: 5px; }
.segments i { width: 24px; height: 4px; border-radius: 3px; background: #e0e7e7; }
.segments .past { background: var(--blue); }
.segments .current { background: #dc9f28; }
.quiz h2 { margin: 17px 0 20px; font: 600 clamp(25px, 2.3vw, 34px)/1.22 var(--display); letter-spacing: -.037em; text-wrap: pretty; }
html[lang="pt"] .quiz h2 { font-size: clamp(22px, 2.1vw, 29px); line-height: 1.48; letter-spacing: -.02em; }
#quiz-heading:focus { outline: 0; }
.answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 14px; }
.answer { position: relative; display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 11px 14px; border: 1px solid #c9d4d8; border-radius: 5px; background: #fbfcf9; font-size: 16px; line-height: 1.42; cursor: pointer; }
.answer input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.letter { display: grid; place-items: center; flex: 0 0 28px; height: 28px; font: 600 15px/1 Georgia, serif; color: #476478; border: 1px solid #c5d1d4; border-radius: 50%; background: #fffefb; }
.answer.chosen { border-color: var(--blue); background: #eaf3f9; box-shadow: inset 0 0 0 .5px var(--blue); }
.answer.chosen .letter { background: var(--blue); border-color: var(--blue); color: #fff; }
@media (hover: hover) { .answer:hover { border-color: #7996a8; background: #f3f7f6; } .answer.chosen:hover { background: #eaf3f9; } .primary:not(:disabled):hover { background: #1c4f85; } }
.quiz-actions { display: flex; gap: 12px; align-items: center; margin-top: 21px; }
.hint { margin: 0 auto 0 0; color: var(--muted); font-size: 13px; }
.primary, .back { min-height: 44px; font-size: 15px; font-weight: 650; line-height: 1.25; }
.primary { padding: 11px 23px; color: white; background: var(--blue); border: 1px solid var(--blue); border-radius: 5px; }
.primary:disabled { color: #51697a; border-color: #d5dfe2; background: #e9eeef; }
.back { border: 0; background: transparent; color: var(--blue); padding: 8px 10px; }
.result-body { display: grid; grid-template-columns: 105px 1fr; align-items: start; gap: 22px; margin-top: 21px; }
.project-icon { display: grid; place-items: center; width: 105px; height: 105px; color: #2b5c88; background: var(--project-tint, #fff0bd); border: 1px dashed #a9b9ba; border-radius: 50%; }
.project-icon svg { width: 65px; height: 65px; }
.project-icon[data-type="workspace"] { --project-tint: #e6eff6; }
.project-icon[data-type="storage"] { --project-tint: #e8f4eb; }
.project-icon[data-type="plan"] { --project-tint: #eeeafa; }
.result-body h2 { color: var(--blue); font-size: clamp(34px, 4vw, 48px); margin: 1px 0 10px; }
html[lang="pt"] .result-body h2 { font-size: clamp(30px, 3.5vw, 42px); }
.result-description { max-width: 660px; margin: 0; line-height: 1.65; font-size: 16px; }
.clue { margin: 18px 0 22px; border-left: 3px solid #eac264; padding: 1px 0 1px 14px; }
.clue span { display: block; color: var(--muted); font-size: 13px; font-weight: 600; }
.clue p { margin: 3px 0 0; line-height: 1.5; }
.result-copy h3 { margin: 0 0 6px; }
.result-breakdown { padding: 17px 19px; border: 1px solid var(--line); border-radius: 5px; background: #f3f7f6; }
.result-breakdown h3, .result-detail h3 { margin: 0 0 10px; font-size: 16px; line-height: 1.4; }
.score-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 22px; margin: 0; }
.score-row { display: flex; align-items: center; justify-content: space-between; gap: 7px; border-bottom: 1px solid var(--line); padding: 6px 0; font-size: 15px; }
.score-count { min-width: 28px; margin: 0; padding: 2px 6px; border-radius: 4px; background: #e7eef3; color: var(--blue); text-align: center; font-weight: 700; }
.nearby-types { margin: 13px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.result-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 14px; margin: 15px 0; }
.result-detail { padding: 15px 16px; border: 1px solid var(--line); border-radius: 5px; }
.result-detail:last-child { grid-column: 1 / -1; }
.result-detail p { margin: 0; line-height: 1.6; }
.result-end { display: flex; align-items: center; justify-content: space-between; gap: 15px 24px; margin-top: 20px; }
.result-end p { color: var(--muted); margin: 0; font-size: 14px; line-height: 1.55; }
.result-end button { flex: none; }
.reading { display: grid; gap: clamp(32px, 5vw, 54px); margin-top: clamp(33px, 5vw, 54px); }
.reading-section > h2 { margin: 0 0 16px; font: 600 clamp(25px, 3.1vw, 37px)/1.22 var(--display); letter-spacing: -.03em; }
html[lang="pt"] .reading-section > h2 { line-height: 1.38; letter-spacing: -.02em; }
.reading p, .reading dd { margin: 0; font-size: 16px; line-height: 1.65; }
.about { padding-top: 20px; border-top: 1px solid var(--line); }
.about p { max-width: 74ch; }
.about p + p { margin-top: 11px; }
.reading-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.reading-card { min-width: 0; padding: clamp(15px, 2.1vw, 23px); border: 1px solid var(--line); border-radius: 6px; background: #fffefb; }
.reading-card h3 { margin: 0 0 10px; font: 600 clamp(19px, 2.25vw, 26px)/1.32 var(--display); color: var(--blue); }
.type-title { display: flex; align-items: center; gap: 12px; margin-bottom: 11px; }
.type-title h3 { margin: 0; }
.type-title .project-icon { flex: 0 0 42px; width: 42px; height: 42px; margin: 0; }
.type-title .project-icon svg { width: 29px; height: 29px; }
.type-facts { margin: 12px 0 0; }
.type-facts dt { margin: 10px 0 2px; color: var(--muted); font-size: 14px; font-weight: 650; }
.reading .guide-action { margin-top: 12px; padding-left: 11px; border-left: 3px solid #eac264; }
.faq-item { border: 1px solid var(--line); border-radius: 5px; background: #fffefb; }
.faq-item + .faq-item { margin-top: 8px; }
.faq-item summary { min-height: 44px; padding: 11px 15px; cursor: pointer; color: var(--ink); font-weight: 650; line-height: 1.4; }
.faq-item summary::marker { color: var(--blue); }
.faq-item summary:focus-visible { outline: 3px solid #2167a6; outline-offset: 2px; }
.faq-item p { padding: 0 15px 13px; }
@media (max-width: 900px) and (min-width: 681px) {
  .wrap { width: calc(100% - 56px); }
  .intro { gap: 27px; }
  h1 { font-size: clamp(46px, 6.2vw, 58px); }
  html[lang="pt"] h1 { font-size: clamp(37px, 4.7vw, 44px); }
  .answer { font-size: 15px; }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 36px); }
  .head-inner { min-height: 57px; }
  .brand { font-size: 19px; gap: 6px; }
  .brand svg { width: 30px; height: 30px; }
  .languages button { min-width: 51px; padding-inline: 9px; }
  .intro { grid-template-columns: minmax(0,1fr); gap: 20px; padding: 22px 0 25px; }
  .category { margin-bottom: 8px; font-size: 11px; gap: 6px; }
  .category .ui-icon { width: 15px; height: 15px; }
  h1 { font-size: clamp(42px, 8.4vw, 53px); line-height: .99; }
  h1 br { display: none; }
  h1 br::after { content: ' '; }
  h1 em { margin-left: .12em; }
  html[lang="pt"] h1 { font-size: clamp(33px, 6.6vw, 45px); line-height: 1.22; }
  html[lang="pt"] h1 em { margin-left: -.12em; }
  .intro-text { margin-top: 11px; max-width: 455px; font-size: 15px; line-height: 1.5; }
  .meta { margin-top: 9px; gap: 11px; font-size: 12px; }
  .postcard { margin: 0 5px; padding: 5px 5px 8px; transform: rotate(.8deg); }
  .postcard img { height: clamp(104px, 32vw, 163px); aspect-ratio: auto; object-position: 50% 62%; }
  .tape { height: 14px; top: -5px; width: 24%; left: 38%; }
  .postmark { width: 62px; right: -9px; bottom: -12px; }
  .quiz { padding: 19px 17px 17px; border-radius: 6px; scroll-margin-top: 70px; }
  .quiz h2 { font-size: 25px; margin: 13px 0 16px; }
  html[lang="pt"] .quiz h2 { font-size: 21px; line-height: 1.43; }
  .segments { gap: 3px; }
  .segments i { width: 13px; height: 4px; }
  .counter { gap: 5px; font-size: 11px; }
  .counter strong { font-size: 16px; }
  .answers { grid-template-columns: 1fr; gap: 8px; }
  .answer { min-height: 47px; font-size: 15px; padding: 9px 10px; gap: 10px; }
  .letter { flex-basis: 25px; height: 25px; font-size: 14px; }
  .quiz-actions { margin-top: 15px; gap: 5px; }
  .hint { font-size: 12px; }
  .primary { padding-inline: 15px; }
  .back { padding-inline: 6px; }
  .result-body { display: block; margin-top: 14px; }
  .project-icon { width: 68px; height: 68px; margin-bottom: 11px; }
  .project-icon svg { width: 44px; height: 44px; }
  .result-body h2, html[lang="pt"] .result-body h2 { font-size: 30px; }
  .score-list, .result-details, .reading-grid { grid-template-columns: 1fr; }
  .result-breakdown { padding: 13px; }
  .result-end { align-items: flex-start; flex-direction: column; }
  main { padding-bottom: 34px; }
}
@media (max-width: 359px) {
  .wrap { width: calc(100% - 24px); }
  .head-inner { gap: 6px; }
  .brand { gap: 4px; font-size: 17px; white-space: nowrap; }
  .brand svg { width: 25px; height: 25px; }
  .languages { flex-shrink: 0; }
  .languages button { min-width: 44px; min-height: 44px; padding-inline: 7px; white-space: nowrap; }
  .quiz { padding-inline: 13px; }
  .quiz-actions { flex-wrap: wrap; }
  .hint { flex-grow: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .answer, .primary { transition: border-color .12s, background-color .12s; }
}

.ad-slot[data-placement] { width: 300px; margin-inline: calc((100% - 300px) / 2); line-height: 0; }
.ad-slot[data-placement][hidden] { display: none; margin: 0; }
.privacy p { margin-bottom: 12px; }
.privacy { scroll-margin-top: 86px; }
.privacy a, .not-found a { color: var(--blue); }
.preview-navigation .back { min-width: 44px; padding-inline: 10px; }
.not-found { padding-top: 60px; }
