:root{--bg:#f7f7f0;--ink:#19271f;--muted:#657067;--lime:#ddfa55;--purple:#d9cdf8;--line:#d8ddd2;--white:#fff;--sans:"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,system-ui,sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--sans);font-size:16px;-webkit-font-smoothing:antialiased}button,a,input,select{-webkit-tap-highlight-color:transparent}button,select{font:inherit}button,a{touch-action:manipulation}button{color:inherit;cursor:pointer}button:disabled{cursor:default}a{color:inherit;text-decoration:none}h1,h2,p{margin:0}button:focus-visible,a:focus-visible,summary:focus-visible,select:focus-visible{outline:3px solid #7250ad;outline-offset:5px}main:focus{outline:none}button{transition:background .15s,transform .15s}button:not(:disabled):active{transform:translateY(2px)}
header{max-width:1248px;margin:auto;height:98px;padding:0 48px;display:flex;justify-content:space-between;align-items:center}.brand{display:flex;align-items:center;gap:10px;font-family:Arial,sans-serif;font-weight:800;font-size:21px;letter-spacing:-.9px}.brand svg{width:36px;height:36px;flex-shrink:0}.brand-light{font-weight:400}.brand small{display:block;font-size:8px;letter-spacing:2.1px;margin-top:5px;font-weight:600}.text-button{display:flex;align-items:center;gap:8px;font-size:11px;border:0;background:none;padding:10px 0}.about-icon{width:24px;height:24px;border:1.5px solid currentColor;border-radius:50%;display:grid;place-items:center;font-size:14px;font-weight:700}
.home-hero{max-width:1248px;margin:auto;padding:60px 48px 80px;min-height:610px;display:grid;grid-template-columns:1.05fr 1fr;grid-template-rows:auto auto;column-gap:32px;align-content:center}.hero-copy{grid-column:1;grid-row:1}.eyebrow{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:700;letter-spacing:.05em}.spark{font-size:25px;line-height:1}.hero-copy h1{font-size:clamp(42px,4.5vw,62px);letter-spacing:-.065em;line-height:1.55;font-weight:900;margin-top:22px;white-space:nowrap}.highlight{position:relative;z-index:0}.highlight:after{content:'';position:absolute;left:-2px;right:-2px;bottom:3px;height:21px;background:var(--lime);z-index:-1;transform:rotate(-1.5deg)}.hero-description{font-size:15px;margin-top:15px;font-weight:500;letter-spacing:.025em}.hero-action{grid-column:1;grid-row:2;margin-top:32px;max-width:365px}.primary-btn{border:2px solid var(--ink);background:var(--ink);color:var(--lime);border-radius:999px;padding:13px 14px 13px 28px;min-height:65px;width:100%;display:flex;align-items:center;justify-content:space-between;gap:14px;font-size:20px;letter-spacing:.07em;font-weight:800;box-shadow:4px 4px 0 #c1ceab}.primary-btn:hover{background:#324735;transform:translateY(-2px)}.button-arrow{font-family:Arial,sans-serif;display:grid;place-items:center;border-radius:50%;background:var(--lime);color:var(--ink);font-size:27px;width:38px;height:38px}.hero-meta{display:flex;justify-content:center;gap:0;font-size:11px;color:#485447;font-weight:600;margin-top:18px}.hero-meta span+span{border-left:1px solid #a6b09e;padding-left:15px;margin-left:15px}.hero-beginner{font-size:11px;color:var(--muted);text-align:center;margin-top:14px}.resume-note{display:flex;justify-content:center;align-items:center;gap:15px;font-size:11px;margin-top:12px}.resume-note .back-btn{font-size:11px;padding:4px 0;text-decoration:underline;text-underline-offset:3px}
.hero-art{grid-column:2;grid-row:1/3;position:relative;min-width:0;height:440px;align-self:center}.type-sticker{position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:center;border:2px solid var(--ink);border-radius:24px;box-shadow:5px 6px 0 var(--ink);padding:15px 3px 5px;width:225px;height:234px}.type-sticker span{font-size:13px;font-weight:800;letter-spacing:.015em;position:relative;z-index:1}.type-sticker img{width:100%;height:180px;object-fit:contain}.sticker-back{background:var(--purple);top:10px;right:4px;transform:rotate(10deg);width:205px;height:215px}.sticker-main{background:#eef2dd;left:1px;top:103px;transform:rotate(-9deg);z-index:2}.sticker-front{background:#ffdc94;bottom:2px;right:5px;transform:rotate(7deg);z-index:3;width:206px;height:214px}.type-count{width:90px;height:90px;background:var(--lime);border:2px solid var(--ink);border-radius:50%;position:absolute;top:6px;left:31px;display:flex;align-items:center;justify-content:center;flex-direction:column;transform:rotate(-12deg);box-shadow:3px 3px 0 var(--ink);z-index:4}.type-count b{font-family:Arial,sans-serif;font-size:44px;line-height:1}.type-count span{font-family:Arial,sans-serif;font-size:11px;letter-spacing:2px;font-weight:bold}.art-spark{position:absolute;font-size:46px;line-height:1}.spark-one{bottom:27px;left:25px;transform:rotate(12deg)}.spark-two{right:-10px;top:206px;font-size:39px;color:#657e3c}
.type-peek{max-width:1152px;margin:auto;padding:0 0 35px}.type-peek details{border-top:1.5px solid var(--ink);border-bottom:1.5px solid var(--ink)}.type-peek summary{padding:21px 3px;display:flex;justify-content:space-between;align-items:center;font-size:14px;font-weight:700;cursor:pointer;list-style:none}.type-peek summary::-webkit-details-marker{display:none}.type-peek summary>span:first-child{display:flex;align-items:center;gap:12px}.peek-dot{display:grid;place-items:center;background:var(--lime);border-radius:50%;width:28px;height:28px;font-size:20px}.details-plus{font-size:23px;line-height:1;font-weight:400;transition:transform .2s}details[open] .details-plus{transform:rotate(45deg)}.types-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:5px 0 23px}.type-tile{border-radius:15px;background:#e9eddf;padding:16px 8px;text-align:center;min-width:0}.type-tile:nth-child(4n+2){background:#eee5fb}.type-tile:nth-child(4n+3){background:#f4e8d5}.type-tile:nth-child(4n){background:#e3ecec}.type-thumbnail{width:125px;height:100px;object-fit:contain;display:block;margin:0 auto 8px}.type-tile strong{font-size:12px;display:block}.type-tile small{font-family:Arial,sans-serif;font-size:10px;letter-spacing:2px;display:block;margin-top:6px;color:var(--muted)}.home-note{font-size:11px;text-align:center;color:var(--muted);line-height:1.8;margin:23px 0 0}footer{max-width:1152px;margin:auto;padding:25px 0 30px;display:flex;justify-content:space-between;gap:20px;align-items:center}.footer-brand{font-family:Arial,sans-serif;font-size:12px;font-weight:700}.footer-brand small{font-weight:400;color:var(--muted);font-size:10px;margin-left:8px}.footer-links{display:flex;gap:20px;font-size:10px;color:var(--muted)}.footer-links button{padding:0;border:0;font-size:inherit;background:none;color:inherit}.footer-links a:hover,.footer-links button:hover{text-decoration:underline}
.quiz-wrap{width:min(100%,660px);margin:22px auto 65px;padding:0 24px;animation:fade .2s}.quiz-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.question-count{display:flex;align-items:baseline;gap:7px;font-family:Arial,sans-serif}.question-count b{font-size:30px;line-height:1}.question-count span{font-size:14px;color:var(--muted)}.quiz-exit{border:0;background:none;font-size:12px;color:var(--muted);padding:8px 0;display:flex;align-items:center;gap:12px}.quiz-exit span{font-size:20px}.progress-track{height:8px;background:#dfe5d5;border-radius:10px;overflow:hidden}.progress-fill{height:100%;background:#718b31;border-radius:10px;transition:width .2s}.quiz-progress-note{display:flex;justify-content:space-between;margin-top:9px;font-size:11px;color:var(--muted)}.question-card{margin-top:32px}.question-kicker{display:inline-block;background:var(--lime);padding:6px 10px;border-radius:6px;font-family:Arial,var(--sans);font-size:11px;font-weight:700;letter-spacing:.1em}.question-card h1{font-size:25px;line-height:1.8;letter-spacing:-.035em;margin-top:15px;min-height:90px;font-weight:800;overflow-wrap:anywhere}.question-hint{font-size:11px;line-height:1.8;color:var(--muted);margin:10px 0 25px}.answer-list{display:grid;gap:9px}.answer{background:var(--white);border:1.5px solid #d3dacf;border-radius:12px;display:flex;justify-content:space-between;align-items:center;text-align:left;padding:15px 19px;min-height:57px;gap:15px;font-size:14px;font-weight:500;line-height:1.6}.answer:hover{border-color:#667c52;background:#f1f5e6}.answer .circle{width:22px;height:22px;border:1.5px solid #b0bdab;border-radius:50%;flex-shrink:0;display:grid;place-items:center}.answer.selected{background:#e8f5b9;border-color:var(--ink);font-weight:700;box-shadow:2px 2px 0 var(--ink)}.answer.selected .circle{background:var(--ink);border-color:var(--ink);color:var(--lime)}.answer.selected .circle:after{content:'✓';font-size:13px}.quiz-nav{display:flex;align-items:center;justify-content:space-between;margin-top:27px;gap:20px}.back-btn{border:0;background:none;font-size:12px;padding:10px 0;color:var(--muted)}.back-btn:hover{color:var(--ink)}.back-btn:disabled{opacity:.3}.next-btn{display:flex;align-items:center;justify-content:space-between;gap:35px;border:1.5px solid var(--ink);background:var(--ink);color:var(--lime);border-radius:999px;min-width:175px;min-height:50px;padding:12px 23px;font-size:14px;font-weight:700}.next-btn:hover:not(:disabled){background:#354932}.next-btn:disabled{background:#e0e5d9;color:#7c8975;border-color:#e0e5d9}.autosave-note{font-size:10px;text-align:center;color:var(--muted);line-height:1.8;margin-top:27px}body[data-view="quiz"] footer,body[data-view="tie"] footer{display:none}
.reveal-page{max-width:760px;margin:25px auto 60px;padding:0 24px;animation:fade .3s}.type-reveal{text-align:center;border:2px solid var(--ink);border-radius:28px;background:#eaf0d8;padding:30px 20px 24px;box-shadow:6px 7px 0 var(--ink)}.reveal-eyebrow{display:inline-block;font-size:12px;font-weight:700;padding:7px 17px;background:var(--lime);border-radius:999px}.reveal-illustration{display:block;width:100%;max-width:375px;height:280px;object-fit:contain;margin:4px auto}.type-reveal h1{font-size:clamp(27px,4vw,38px);font-weight:800;letter-spacing:-.04em;line-height:1.6}.reveal-code{font-family:Arial,sans-serif;font-weight:800;font-size:52px;letter-spacing:.13em;padding-left:.13em;line-height:1.3;margin-top:7px;user-select:all}.line-details{max-width:420px;margin:33px auto 0;text-align:center}.line-details>p:first-child{font-size:13px;line-height:1.9;color:#52624d}.copy-code{margin:17px auto 20px;display:flex;align-items:center;gap:18px;border:1.5px solid var(--ink);background:var(--white);border-radius:999px;padding:11px 22px;font-size:13px;font-weight:700}.copy-code:hover{background:var(--lime)}.line-btn{display:flex;align-items:center;justify-content:space-between;width:100%;gap:15px;min-height:56px;padding:15px 22px;border-radius:12px;border:0;background:#06c755;color:#fff;font-size:14px;font-weight:700}.line-btn:disabled{background:#ced9cc;color:#4d614c}.line-logo{font-family:Arial,sans-serif;font-weight:800;font-size:10px;background:#fff;color:#3a6240;padding:3px 5px;border-radius:5px}.line-pending{font-size:12px;line-height:1.8;color:var(--muted);margin-top:12px}.code-instruction{font-size:12px;line-height:2;color:var(--muted);margin-top:22px}.code-instruction small{font-size:10px}.reveal-actions{display:flex;justify-content:center;gap:35px;margin:25px 0 20px}.reveal-note{font-size:10px;text-align:center;line-height:1.9;color:var(--muted)}.preview-banner{background:#ece2fa;border-radius:12px;padding:16px 20px;margin-bottom:25px;font-size:12px;line-height:1.9}.preview-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:12px}.preview-controls select{max-width:100%;border:1px solid #a494b7;border-radius:7px;padding:9px;background:#fff;color:var(--ink);font-size:12px}
dialog{border:2px solid var(--ink);border-radius:20px;width:calc(100% - 40px);max-width:520px;padding:35px 28px;background:var(--bg);color:var(--ink);box-shadow:5px 6px 0 #19271f55}dialog::backdrop{background:#19271f88;backdrop-filter:blur(3px)}.dialog-close{position:absolute;right:14px;top:10px;border:0;background:none;font-size:28px;line-height:1}.dialog-close:hover{background:#e4e9dc;border-radius:50%}dialog h2{font-size:20px;line-height:1.7;margin:0 10px 18px 0}dialog p{font-size:12px;line-height:2;color:var(--muted)}dialog p+p{margin-top:15px}dialog .primary-btn{font-size:13px;box-shadow:none;min-height:48px;margin-top:23px;padding:14px 18px;letter-spacing:0}.secondary-btn{width:100%;border:1px solid #c6d0bd;background:none;border-radius:999px;padding:13px 18px;font-size:12px;margin-top:10px}#toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,20px);background:var(--ink);color:var(--lime);border-radius:999px;padding:13px 23px;max-width:calc(100% - 32px);width:max-content;font-size:12px;line-height:1.7;text-align:center;opacity:0;transition:all .2s;pointer-events:none;z-index:10}#toast.show{opacity:1;transform:translate(-50%,0)}@keyframes fade{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:1100px){.home-hero{padding:40px 35px 65px;column-gap:20px;min-height:560px}.hero-copy h1{font-size:46px}.hero-art{transform:scale(.87);transform-origin:center center;margin:0 -16px}.type-peek,footer{margin-left:35px;margin-right:35px}.type-sticker{width:205px;height:213px}.sticker-back{width:185px;height:200px}.sticker-front{width:186px;height:200px}.type-sticker span{font-size:12px}.sticker-main{top:116px}.type-count{left:10px}.type-sticker img{height:165px}}
@media(max-width:760px){header{height:76px;padding:0 23px}.brand{font-size:19px;gap:8px}.brand svg{width:32px;height:32px}.brand small{font-size:7px;letter-spacing:1.6px}.about-label{display:none}.about-icon{width:26px;height:26px}.home-hero{display:flex;flex-direction:column;align-items:center;text-align:center;padding:20px 24px 33px;min-height:0;gap:0}.eyebrow{justify-content:center;font-size:11px;gap:7px}.spark{font-size:20px}.hero-copy h1{font-size:clamp(32px,8.7vw,45px);margin-top:13px;line-height:1.55;letter-spacing:-.06em}.highlight:after{height:14px;bottom:2px}.hero-description{font-size:12px;margin-top:9px}.hero-art{height:187px;width:340px;max-width:100%;margin:20px 0 11px;transform:none;flex-shrink:0;align-self:auto}.type-sticker{border-radius:15px;border-width:1.5px;box-shadow:3px 3px 0 var(--ink);padding:9px 0 0;width:132px;height:139px}.type-sticker span{font-size:8px;letter-spacing:0}.type-sticker img{height:110px}.sticker-back{width:121px;height:129px;right:4px;top:0;transform:rotate(9deg)}.sticker-main{width:140px;height:146px;left:3px;top:16px;transform:rotate(-9deg)}.sticker-front{width:130px;height:138px;left:115px;right:auto;top:39px;bottom:auto;transform:rotate(5deg)}.type-count{width:55px;height:55px;left:147px;top:-8px;border-width:1.5px;box-shadow:2px 2px 0 var(--ink)}.type-count b{font-size:27px}.type-count span{font-size:7px;letter-spacing:1px}.spark-one{left:53px;bottom:0;font-size:25px}.spark-two{right:11px;top:144px;font-size:27px}.hero-action{max-width:360px;width:100%;margin:0}.primary-btn{min-height:62px;font-size:18px;padding:11px 12px 11px 25px}.hero-meta{font-size:10px;margin-top:16px}.hero-meta span+span{padding-left:13px;margin-left:13px}.hero-beginner{font-size:10px;margin-top:11px}.type-peek{margin:0 24px;padding-bottom:8px}.type-peek summary{font-size:12px;padding:17px 1px}.peek-dot{width:24px;height:24px;font-size:17px}.type-peek summary>span:first-child{gap:8px}.details-plus{font-size:21px}.home-note{font-size:9px;margin-top:19px;max-width:280px;margin-left:auto;margin-right:auto}.types-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding-bottom:17px}.type-thumbnail{width:112px;height:92px}.type-tile{padding:12px 5px}.type-tile strong{font-size:10px}.type-tile small{font-size:9px}.type-tile:nth-child(4n+3){background:#e3ecec}.type-tile:nth-child(4n){background:#f4e8d5}footer{margin:0 24px;padding:20px 0 24px;flex-direction:column;gap:14px}.footer-brand{font-size:10px}.footer-brand small{font-size:9px}.footer-links{gap:18px;font-size:9px}.quiz-wrap{margin-top:15px;padding:0 23px;margin-bottom:35px}.quiz-top{margin-bottom:12px}.question-count b{font-size:25px}.question-count span{font-size:12px}.quiz-exit{font-size:11px;gap:9px}.quiz-progress-note{font-size:10px}.question-card{margin-top:25px}.question-kicker{font-size:10px;padding:5px 9px}.question-card h1{font-size:21px;line-height:1.8;min-height:95px;margin-top:14px}.question-hint{font-size:10px;margin:8px 0 21px}.answer{min-height:53px;font-size:13px;padding:13px 16px;border-radius:11px}.answer-list{gap:8px}.answer .circle{width:21px;height:21px}.quiz-nav{margin-top:23px}.next-btn{min-width:162px;min-height:48px;font-size:13px}.back-btn{font-size:11px}.autosave-note{font-size:9px;margin-top:23px}.reveal-page{margin:13px auto 35px;padding:0 20px}.type-reveal{padding:23px 14px 22px;border-radius:23px;box-shadow:4px 5px 0 var(--ink)}.reveal-eyebrow{font-size:10px;padding:6px 14px}.reveal-illustration{height:230px;margin:3px auto 0}.type-reveal h1{font-size:27px}.reveal-code{font-size:43px}.line-details{margin-top:29px;padding:0 5px}.line-details>p:first-child{font-size:12px}.reveal-actions{gap:27px}.preview-banner{font-size:10px;padding:13px}.preview-controls{gap:8px}.preview-controls select{font-size:10px;padding:8px}.preview-controls .text-button{font-size:10px}dialog{padding:32px 23px}dialog h2{font-size:18px}}
@media(max-width:360px){header{padding:0 18px;height:68px}.brand{font-size:18px}.home-hero{padding:18px 19px 28px}.hero-copy h1{font-size:30px}.hero-art{width:300px;height:177px;margin-top:19px}.sticker-main{width:125px;height:135px;left:0}.sticker-back{width:115px;height:124px;right:0}.sticker-front{width:122px;height:133px;left:101px}.type-count{left:130px;top:-7px}.hero-description{font-size:11px}.type-peek{margin:0 19px}.type-peek summary{font-size:11px}.quiz-wrap{padding:0 18px}.question-card h1{font-size:19px}.question-hint{font-size:9px}.answer{font-size:12px;min-height:51px}.type-reveal h1{font-size:24px}.reveal-illustration{height:210px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@media(min-width:1101px){.type-peek,footer{width:calc(100% - 96px)}}
/* Keep the question stable when choosing or revising an answer. */
.quiz-wrap{animation:none}
body[data-view="tie"] .quiz-top{gap:15px;font-size:11px;color:var(--muted)}
body[data-view="tie"] .quiz-top>span:first-child{white-space:nowrap;color:var(--ink)}
body[data-view="tie"] .quiz-top>span:last-child{text-align:right;font-size:10px}
/* Collectible character artwork, shared across the home, gallery and result. */
.type-sticker img{position:relative;z-index:1;filter:drop-shadow(0 5px 2px #19271f12)}
.type-sticker{overflow:hidden}
.type-sticker:before{content:'';position:absolute;inset:30px 10px 14px;border-radius:50%;background:radial-gradient(ellipse,#ffffff88 0%,#ffffff00 70%)}
.type-thumbnail{width:100%;height:146px;margin-bottom:13px;filter:drop-shadow(0 5px 3px #19271f0d)}
.type-tile{padding:18px 8px 17px}
.type-tile[data-family="LD"]{background:#e7edda}
.type-tile[data-family="LN"]{background:#eee5fb}
.type-tile[data-family="MD"]{background:#dcefed}
.type-tile[data-family="MN"]{background:#f8e8cd}
.type-reveal{position:relative;isolation:isolate;overflow:hidden}
.type-reveal:before{content:'';position:absolute;z-index:-1;width:360px;height:360px;max-width:100%;left:50%;top:48px;transform:translateX(-50%);background:radial-gradient(circle,#ffffffc9 0%,#ffffff60 36%,#fff0 68%)}
.type-reveal[data-family="LD"]{background:#eaf0d8}
.type-reveal[data-family="LN"]{background:#eee5fb}
.type-reveal[data-family="MD"]{background:#e1f0ed}
.type-reveal[data-family="MN"]{background:#fbecd4}
.reveal-illustration{height:310px;margin:12px auto 7px;filter:drop-shadow(0 8px 4px #19271f0c)}
@media(max-width:760px){.type-thumbnail{height:134px;margin-bottom:10px}.type-tile{padding:13px 5px}.reveal-illustration{height:255px;margin-top:11px}.type-sticker:before{inset:22px 6px 7px}}
@media(max-width:360px){.type-thumbnail{height:114px}.reveal-illustration{height:230px}}
