/* Based on the local figma/DESIGN.md. The game supplies all illustrations. */
:root {
  color-scheme: light;
  --white: #fff;
  --ink: #000;
  --soft: #f7f7f5;
  --line: #e6e6e6;
  --lime: #dceeb1;
  --lilac: #c5b0f4;
  --coral: #f3c9b6;
  --mint: #c8e6cd;
  --navy: #1f1d3d;
  --focus: #60458d;
  --sans: "Instrument Sans", Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --wrap: min(1200px, calc(100% - clamp(40px, 8vw, 144px)));
}
* { box-sizing: border-box; }
html { min-width: 290px; scroll-behavior: smooth; }
body { margin: 0; font: 500 1rem/1.65 var(--sans); color: var(--ink); background: var(--white); overflow-wrap: anywhere; }
html:lang(ko) body { word-break: keep-all; }
h1,h2,h3,p,figure { margin: 0; }
h1,h2,h3 { text-wrap: pretty; line-height: 1.24; }
button,input,select { font: inherit; }
button,a,input,select,summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { color: var(--ink); cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.wrap { width: var(--wrap); margin-inline: auto; }
.icon { width: 1.18em; height: 1.18em; flex-shrink: 0; display: inline-block; vertical-align: middle; }
.skip { position: fixed; z-index: 10; top: -6rem; left: 16px; padding: 8px 16px; background: black; color: white; }
.skip:focus { top: 10px; }
.site-header { position: sticky; z-index: 4; top: 0; background: white; border-bottom: 1px solid var(--line); }
.head-inner,.head-inner nav,.brand,.footer-brand,.foot-inner,.foot-inner>div { display: flex; align-items: center; }
.head-inner { min-height: 66px; justify-content: space-between; gap: 16px; }
.brand,.footer-brand { gap: 8px; font-weight: 750; letter-spacing: -.035em; }
.brand { font-size: 1.2rem; white-space: nowrap; }
.brand-bird { width: 39px; height: 39px; }
.head-inner nav { gap: clamp(13px,2.2vw,30px); }
.brand-short,.lang-short { display: none; }
.language-menu { position: relative; font-size: .9rem; }
.language-menu summary { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 44px; min-width: 44px; list-style: none; cursor: pointer; white-space: nowrap; }
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu summary .icon { width: 13px; height: 13px; }
.language-menu[open] summary .icon { transform: rotate(180deg); }
.language-menu>div { position: absolute; right: 0; top: 100%; min-width: 124px; background: white; border: 1px solid var(--line); border-radius: 10px; padding: 4px; box-shadow: 0 4px 16px #0002; }
.language-menu a { display: flex; align-items: center; min-height: 44px; padding: 5px 12px; border-radius: 6px; }
.language-menu a:hover,.language-menu a:focus-visible { background: var(--soft); }
.language-menu a[aria-current] { font-weight: 750; }
.nav-link { display: flex; align-items: center; position: relative; min-height: 44px; font-size: .93rem; }
.nav-link.active { font-weight: 750; }
.nav-link.active::after { content: ''; position: absolute; left: 0; bottom: 5px; width: 100%; height: 1.5px; background: var(--ink); }
.nav-link:hover,.textlink:hover,.crumb:hover,.site-footer a:hover,.source-link:hover,.hero-art:hover span { text-decoration: underline; text-underline-offset: 4px; }
.button,.share-trigger,.round { display: inline-flex; align-items: center; justify-content: center; gap: .68em; min-height: 44px; border-radius: 999px; border: 1px solid black; background: white; color: black; font-weight: 650; line-height: 1.4; }
.button { padding: 11px 21px; }.share-trigger { padding: 8px 18px; font-size: .9rem; }
.round { width: 42px; min-height: 42px; padding: 0; }
.primary,.social.x { color: white; background: black; }
.primary { min-height: 54px; padding: 12px 26px; gap: 20px; font-size: 1.07rem; }
.button:hover,.share-trigger:hover,.round:hover { background: var(--soft); }
.primary:hover,.social.x:hover { background: #292929; }
.button:active,.share-trigger:active,.answer:active { transform: translateY(1px); }
.textlink,.crumb,.source-link { display: inline-flex; align-items: center; gap: 7px; }
.textlink { font-weight: 700; font-size: .95rem; }
.crumb { padding: 4px 0; min-height: 36px; border: 0; background: none; font-size: .88rem; }
.hero { width: var(--wrap); margin: clamp(16px,2vw,30px) auto 0; border-radius: 20px; background: var(--lilac); }
.hero-inner.wrap { width: 100%; padding: clamp(26px,3.6vw,50px); display: grid; grid-template-columns: minmax(0,.87fr) minmax(0,1.13fr); align-items: center; gap: clamp(20px,3.2vw,50px); min-height: 368px; }
.franchise img { width: clamp(62px,6vw,82px); height: auto; }
.hero h1 { font-size: clamp(3.1rem,6vw,5.4rem); line-height: 1.12; letter-spacing: -.07em; font-weight: 660; margin: 12px 0 11px; }
.hero-lead { font-size: clamp(1rem,1.5vw,1.14rem); }
.hero-action { margin-top: 23px; }
.hero-meta,.hero-meta span { display: flex; align-items: center; }
.hero-meta { flex-wrap: wrap; gap: 4px 10px; margin-top: 13px; font-size: .84rem; }
.hero-meta span { gap: 6px; }.hero-meta i { height: 14px; width: 1px; background: #211c324a; }
.hero-art { display: block; min-width: 0; border-radius: 12px; }
.hero-art img { width: 100%; height: auto; border-radius: inherit; }
.hero-art span { display: flex; align-items: center; justify-content: flex-end; gap: 4px; padding: 6px 1px 0; font-size: .78rem; }
.library-preview { padding: clamp(28px,4vw,54px) 0 24px; }
.section-line { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.section-line h2,.catalogue h1,.reading h2,.result-share h2,.nearby h2,.dialog h2 { font-weight: 690; letter-spacing: -.045em; }
.section-line h2 { font-size: clamp(1.95rem,3.35vw,2.8rem); }
.family-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; }
.family-goose { --tint: var(--lime); }.family-duck { --tint: var(--coral); }.family-neutral { --tint: var(--lilac); }.family-mode { --tint: var(--mint); }
.family-card { display: flex; flex-direction: column; position: relative; min-width: 0; border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px 18px; background: var(--soft); }
.family-card:hover { border-color: var(--ink); }
.family-card-top { display: flex; align-items: center; }
.family-count,.badge,.status { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; line-height: 1.5; border-radius: 5px; }
.family-count { padding: 2px 8px; background: var(--tint); font-weight: 650; }
.family-card img { width: auto; height: clamp(84px,8.8vw,116px); margin: -4px auto 4px; object-fit: contain; }
.family-bottom { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-top: auto; }
.family-bottom h3 { font-weight: 700; font-size: clamp(1.2rem,1.75vw,1.57rem); letter-spacing: -.04em; }
.family-bottom .icon { width: 17px; }
.family-card p { margin-top: 5px; font-size: .88rem; }
.about { scroll-margin-top: 82px; padding-bottom: 42px; }
.about details { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about summary { cursor: pointer; list-style: none; font-weight: 650; display: flex; align-items: center; gap: 9px; padding: 15px 0; }
.about summary::-webkit-details-marker { display: none; }
.about summary .icon:last-child { margin-left: auto; }
.about details[open] summary .icon:last-child { transform: rotate(180deg); }
.about-content { padding: 0 0 20px; max-width: 76ch; }
.about-content p+p { margin-top: 12px; }
.site-footer { padding: 24px 0; border-top: 1px solid var(--line); }
.foot-inner { justify-content: space-between; gap: 15px; flex-wrap: wrap; }
.foot-inner>div { gap: 16px; font-size: .86rem; }
.footer-brand { font-size: 1rem; }
.credits { font-size: .76rem; margin-top: 10px; }
.foot-inner .icon { width: 1em; height: 1em; }
.dialog { border: 1px solid black; width: min(475px,calc(100% - 28px)); max-width: 100%; padding: 0; border-radius: 18px; color: black; background: white; }
.dialog::backdrop { background: #0009; }
.dialog-inner { padding: 29px; position: relative; }
.dialog h2 { margin: 0 40px 10px 0; }
.dialog-close { position: absolute; right: 14px; top: 14px; border-color: var(--line); }
#sd-description { white-space: pre-line; }
.share-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.dialog .share-actions { margin-top: 20px; }
.social { padding: 9px 16px; font-size: .9rem; }
.notice { font-size: .89rem; }
.notice:not(:empty) { margin-top: 12px; }
.copy-url { display: block; width: 100%; background: white; color: black; padding: 8px 12px; border: 1px solid black; border-radius: 6px; }
.quiz-page,.catalogue,.result-wrap,.missing { padding-block: 26px 52px; }
.narrow,.result-wrap { max-width: 810px; }
.quiz-page>.crumb,.catalogue>.crumb,.result-wrap>.crumb { margin-bottom: 12px; }
.quiz-card,.reading,.result-share,.nearby { border-radius: 18px; border: 1px solid var(--line); padding: clamp(20px,3.5vw,44px); background: white; }
.quiz-card { border: 0; background: var(--lime); scroll-margin-top: 78px; }
.quiz-top,.quiz-bottom,.axis-label { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.quiz-title,.quiz-count { font-weight: 700; }
.quiz-count { font-variant-numeric: tabular-nums; font-size: .95rem; }
.steps { display: flex; gap: 5px; margin: 10px 0 clamp(20px,3vw,32px); }
.steps i { height: 5px; flex: 1; border-radius: 8px; background: #0002; }
.steps .done,.steps .current { background: black; }.steps .current { opacity: .62; }
.question h1 { font-size: clamp(1.55rem,3vw,2.36rem); font-weight: 650; letter-spacing: -.04em; line-height: 1.4; }
.question h1:focus { outline: none; }
.answers { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: clamp(5px,1vw,10px); margin-top: 22px; }
.answer { display: grid; place-items: center; min-width: 0; min-height: 64px; padding: 10px 6px; border: 1px solid #757968; border-radius: 12px; color: var(--ink); background: white; font-weight: 700; line-height: 1.45; }
.answer[data-answer="0"] { background: #593777; border-color: #593777; color: white; }
.answer[data-answer="1"] { background: #e7daf3; border-color: #8b6e9b; color: #362146; }
.answer[data-answer="3"] { background: #d2eadb; border-color: #678271; color: #163c2b; }
.answer[data-answer="4"] { background: #245c45; border-color: #245c45; color: white; }
.answer-caption { font-size: clamp(.86rem,1.4vw,.98rem); word-break: keep-all; }
.answer-short,.answer-pole { display: none; }
.answer[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 2px; text-decoration: underline; text-underline-offset: 3px; }
.answer:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
@media (hover:hover) { .answer:hover { box-shadow: inset 0 0 0 1px currentColor; } }
.quiz-bottom:not(:has(button)) { display: none; }
.quiz-bottom { margin-top: 13px; }
.catalogue h1 { font-size: clamp(2.35rem,5vw,4.4rem); line-height: 1.16; }
.find-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 21px 0 0; }
.find-box { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 9px; border: 1px solid #999; flex: 1 1 240px; max-width: 440px; }
.find-box:focus-within { outline: 2px solid var(--focus); }
.find-box input { width: 100%; min-height: 46px; padding: 9px 0; border: 0; background: transparent; outline: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 5px; }
.filters button { border: 1px solid var(--line); min-height: 44px; padding: 7px 14px; border-radius: 999px; background: white; font-weight: 650; font-size: .88rem; }
.filters button[aria-pressed="true"] { background: black; color: white; border-color: black; }
.matches { margin: 20px 0 12px; font-size: .89rem; }
.role-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.role-card { display: flex; flex-direction: column; position: relative; border: 1px solid var(--line); border-radius: 13px; padding: 18px; min-width: 0; }
.role-card:hover,.peer-grid a:hover { border-color: black; }
.role-card-head { display: flex; align-items: center; gap: 12px; }
.role-thumb { display: grid; place-items: center; width: 56px; height: 56px; background: var(--soft); border-radius: 9px; flex-shrink: 0; }
.role-thumb img { width: 53px; height: 53px; object-fit: contain; }
.role-card h2 { font-weight: 700; font-size: 1.17rem; line-height: 1.4; }
.role-en { display: block; font-size: .84rem; margin-top: 2px; }
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0; }
.badge,.status { padding: 2px 8px; }
.badge { font-weight: 650; background: var(--tint); }.status { background: var(--soft); }
.role-card p,.result-copy p { white-space: pre-line; }
.role-card p { font-size: .93rem; line-height: 1.7; }
.role-card-link { align-self: end; margin-top: auto; line-height: 1; padding-top: 8px; }
.empty,.missing { text-align: center; padding-block: 42px; }
.empty button,.missing a { margin-top: 14px; }
.result-wrap { max-width: 820px; }
.result-card { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.result-top { display: grid; grid-template-columns: 1fr minmax(100px,24%); align-items: center; gap: 22px; padding: clamp(20px,3.5vw,42px); background: var(--tint); }
.result-kicker { font-size: .9rem; font-weight: 650; margin-bottom: 8px; }
.result-top h1 { font-size: clamp(1.95rem,4.5vw,3.75rem); letter-spacing: -.045em; }
.result-en { margin-top: 4px; font-size: 1.02rem; }
.result-top .badges { margin: 11px 0 0; }
.result-top .badge,.result-top .status { background: #fff9; }
.result-portrait { display: grid; place-items: center; }.result-portrait img { width: 100%; height: auto; }
.personality-summary { grid-column: 1 / -1; line-height: 1.8; font-size: clamp(1rem,1.5vw,1.12rem); }
.result-copy { padding: clamp(20px,3vw,36px); }
.result-copy h2,.reading h2,.result-share h2,.nearby h2,.dialog h2 { font-size: clamp(1.23rem,2.5vw,1.7rem); letter-spacing: -.035em; }
.result-copy p { margin-top: 7px; line-height: 1.78; }
.result-copy p+h2 { margin-top: 22px; }
.source-link,.source-link-note { font-size: .84rem; }.source-link { text-decoration: underline; text-underline-offset: 3px; margin-top: 12px; }
.reading,.result-share,.nearby { margin-top: 15px; padding: clamp(20px,3vw,32px); }
#type-name:not(:empty) { font-size: 1.08rem; font-weight: 650; margin: 8px 0; }
.axis { margin: 16px 0; }.axis:last-child { margin-bottom: 4px; }
.axis-label { font-size: .87rem; }.axis-label b { font-weight: 650; }
.axis-track { height: 6px; margin: 7px 7px 0; position: relative; background: #e8e8e5; border-radius: 7px; }
.axis-track::after { content: ''; position: absolute; width: 1px; height: 10px; left: 50%; top: -2px; background: #a0a09b; }
.axis-track i { position: absolute; z-index: 1; width: 14px; height: 14px; border-radius: 50%; background: black; border: 2px solid white; outline: 1px solid black; top: -4px; transform: translateX(-50%); }
.result-share .share-actions { margin-top: 14px; }
.peer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.peer-grid a { display: flex; align-items: center; gap: 9px; padding: 10px; border: 1px solid var(--line); border-radius: 9px; }
.peer-grid img { width: 42px; height: 42px; object-fit: contain; }
.peer-grid span { display: grid; line-height: 1.45; }.peer-grid .icon { margin-left: auto; width: 16px; }
.result-end { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 22px; padding-top: 25px; }
@media (max-width:900px) {
  .hero-inner.wrap { gap: 20px; }
  .role-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .family-grid { gap: 9px; }.family-card { padding: 12px; }
}
@media (max-width:690px) {
  :root { --wrap: min(100% - 32px, 600px); }
  .head-inner { min-height: 58px; gap: 8px; }.head-inner nav { gap: 8px; }
  .lang-long { display: none; }.lang-short { display: inline; }
  .brand { font-size: 1.04rem; gap: 5px; }.brand-bird { width: 31px; height: 31px; }
  .nav-link { font-size: .87rem; }.nav-link:first-child { display: none; }
  .share-trigger { width: 44px; padding: 0; }.share-trigger span { clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; position: absolute; }
  .hero-inner.wrap { min-height: 0; grid-template-columns: 1fr; padding: clamp(18px,4.8vw,26px); gap: 21px; }
  .hero h1 { font-size: clamp(3rem,10vw,4.1rem); margin: 6px 0 8px; }
  .hero-action { margin-top: 14px; }.hero-meta { margin-top: 8px; }.hero-art { margin: 0; }
  .franchise img { width: 54px; }.hero-art span { font-size: .73rem; }
  .primary { min-height: 48px; }
  .family-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .family-card img { height: clamp(78px,18vw,110px); }
  .family-card p { font-size: .83rem; }.family-bottom h3 { font-size: 1.18rem; }
  .section-line { margin-bottom: 13px; }.section-line .textlink { font-size: .87rem; }
  .about { padding-bottom: 26px; }
  .quiz-page,.catalogue,.result-wrap { padding-block: 16px 36px; }
  .answers { row-gap: 6px; }
  .answer { grid-row: 2; min-height: 52px; padding: 7px 1px; border-radius: 9px; }
  .answer-caption { display: none; }
  .answer-short { display: inline; font-size: clamp(.78rem,2.75vw,.93rem); }
  .answer-pole { display: block; grid-row: 1; padding-bottom: 3px; border-bottom: 1px solid currentColor; text-align: center; font-size: .82rem; font-weight: 650; }
  .answer-pole.left { grid-column: 1 / span 2; color: #49305f; }
  .answer-pole.right { grid-column: 4 / span 2; color: #234b38; }
  .find-tools { gap: 10px; }.find-box { max-width: none; }.filters button { padding: 6px 11px; }
}
@media (max-width:490px) {
  .hero-action .primary { width: 100%; }
  .hero-meta { justify-content: center; column-gap: 4px; font-size: .78rem; }
  .hero-meta span { gap: 3px; }
  .role-grid,.peer-grid { grid-template-columns: 1fr; }.role-card { padding: 15px; }
  .quiz-card,.dialog-inner { padding: 19px 16px; }
  .answers { margin-top: 16px; }
  .result-top { padding: 17px; grid-template-columns: 1fr 24%; gap: 7px; }
}
@media (max-width:420px) {
  .brand-long { display: none; }.brand-short { display: inline; }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; transition: none !important; }
}
