@import url('https://fonts.googleapis.com/css2?family=Gowun+Dodum&family=Noto+Sans+KR:wght@400;500;600;700;800;900&display=swap');
:root{font-family:'Noto Sans KR',sans-serif;color:#273448;background:#f7f9fc;font-synthesis:none;--red:#ec504b;--blue:#3678ef;--muted:#748094;--border:#e7ebf1}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #3279f4;outline-offset:4px}button{color:inherit}.header{background:white;border-bottom:1px solid var(--border)}.header-inner{max-width:1240px;margin:auto;padding:21px 30px;display:flex;align-items:center;gap:50px}.brand{display:flex;gap:12px;align-items:center;border:0;background:none;text-align:left;font-weight:900;font-size:23px;letter-spacing:-1px;line-height:1.25}.brand strong{color:var(--red)}.brand small{font-size:10px;display:block;letter-spacing:2.4px;color:#8490a1;margin-top:5px}.ball{display:inline-block;position:relative;width:38px;height:38px;border:3px solid #273448;border-radius:50%;background:linear-gradient(to bottom,var(--red) 0 46%,#273448 46% 55%,white 55%);flex-shrink:0;transform:rotate(-14deg)}.ball:after{content:'';position:absolute;width:12px;height:12px;border:3px solid #273448;background:white;border-radius:50%;left:8px;top:10px}.mini{width:24px;height:24px;border-width:2px}.mini:after{width:8px;height:8px;border-width:2px;left:4px;top:5px}nav{display:flex;gap:9px}.nav{border:0;background:transparent;border-radius:12px;padding:12px 18px;font-size:14px;font-weight:700;color:#7c8796}.nav span{font-size:18px;margin-right:6px}.nav.active{color:#dc4942;background:#fff0ee}.header-tag{margin-left:auto;font-size:12px;color:#8490a1;white-space:nowrap}.header-tag span{color:#f5b934;font-size:21px;margin-left:8px}main{max-width:1180px;margin:0 auto;padding:40px 30px 50px;min-height:calc(100vh - 180px)}.intro{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:27px}.eyebrow{font-size:12px;font-weight:800;letter-spacing:1.2px;color:var(--red);margin:0 0 9px}.intro h1{font-size:31px;letter-spacing:-1.6px;margin:0 0 9px;font-weight:900}.intro p{font-size:14px;color:var(--muted);margin:0}.collection{border:1px solid #dee6f0;background:white;padding:9px 14px;font-size:12px;color:#61718b;border-radius:50px;white-space:nowrap}.collection b{color:#3279ef}.play-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(310px,1fr);gap:24px}.game-card{background:white;border:1px solid var(--border);border-radius:24px;overflow:hidden;box-shadow:0 5px 16px #29364a04}.game-tabs{display:flex;border-bottom:1px solid var(--border);padding:0 25px;background:#fff}.game-tab{border:0;background:none;flex:1;padding:20px 6px 17px;position:relative;font-size:14px;font-weight:700;color:#8b94a2}.game-tab.active{color:var(--red)}.game-tab.active:after{content:'';position:absolute;height:3px;background:var(--red);bottom:0;left:14px;right:14px;border-radius:3px}.new-tag{font-size:9px;background:#edf3ff;color:#5583da;border-radius:5px;padding:3px 5px;margin-left:5px}.game-body{padding:23px 29px 27px}.game-heading{display:flex;align-items:center;gap:10px}.label-icon{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;background:#fff2d7;font-size:21px}.game-heading h2{font-size:18px;margin:0;font-weight:800;letter-spacing:-.6px}.game-heading small{display:block;font-size:12px;color:var(--muted);margin-top:4px}.mode-pill{margin-left:auto;background:#fff1ed;color:#e26c55;border-radius:20px;padding:6px 10px;font-size:11px;font-weight:700}.pokemon-stage{position:relative;isolation:isolate;background:#f6f9fe;border:1px solid #eaf0f9;border-radius:18px;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:242px;margin-top:20px;overflow:hidden}.pokemon-stage:before{content:'';position:absolute;width:185px;height:185px;border:1px solid #e6ecf5;border-radius:50%;z-index:-1;box-shadow:0 0 0 25px #eef3fa,0 0 0 26px #e6edf7,0 0 0 55px #f2f6fc}.pokemon-stage img{width:190px;height:190px;object-fit:contain;filter:drop-shadow(0 9px 5px #57617413)}.stage-tag{position:absolute;top:14px;left:16px;color:#7990ad;font-size:10px;letter-spacing:.8px;font-weight:700}.stage-star{position:absolute;color:#eed279;font-size:25px;right:50px;top:47px}.stage-star.two{left:45px;top:160px;font-size:17px;color:#a7c6ee}.stage-caption{font-weight:700;font-size:14px;margin:3px 0 13px}.choices{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin-top:17px}.choice{padding:15px 13px;border:1px solid #e2e7ef;border-radius:12px;background:white;font-size:14px;font-weight:600;text-align:left;transition:.15s}.choice:hover:not(:disabled){border-color:#94b7ed;background:#f6f9ff;transform:translateY(-2px)}.choice span{width:25px;height:25px;border-radius:7px;background:#f0f3f7;display:inline-grid;place-items:center;font-size:12px;color:#8c96a5;margin-right:13px}.choice.correct{border-color:#44b893;background:#eaf9f1;color:#167953}.choice.wrong{border-color:#ef7f7f;background:#fff0f0;color:#bd3a3a}.start-line{display:flex;align-items:center;gap:14px;margin-top:20px}.primary{border:0;background:var(--red);color:white;border-radius:12px;padding:15px 25px;font-size:15px;font-weight:800;box-shadow:0 4px 0 #d83e39;transition:.15s}.primary:hover{background:#e3443f;transform:translateY(-1px)}.primary:disabled{background:#a5afbd;box-shadow:none}.start-line .primary{flex:1}.start-line p{font-size:11px;color:#8c97a6;text-align:center;line-height:1.7;flex:1}.side{display:flex;flex-direction:column;gap:18px}.welcome-card{background:#fff4ca;border-radius:22px;padding:24px 24px 8px;position:relative;overflow:hidden;min-height:221px}.welcome-card .tiny{color:#ac7e27;font-size:11px;font-weight:800;letter-spacing:1px}.welcome-card h2{font-size:23px;line-height:1.4;margin:9px 0;color:#725322;font-weight:900;letter-spacing:-1px}.welcome-card p{font-size:12px;color:#a18854;line-height:1.7;margin:0}.welcome-card img{position:absolute;right:0;bottom:-14px;width:169px;height:169px;object-fit:contain;transform:rotate(-6deg)}.welcome-card .star{position:absolute;right:28px;top:24px;color:#eec256;font-size:34px}.rule-card{background:white;border:1px solid var(--border);border-radius:20px;padding:21px 23px}.section-title{font-size:15px;font-weight:800;margin:0 0 18px}.rule{display:flex;align-items:center;gap:12px;margin-top:17px}.rule-icon{width:35px;height:35px;display:grid;place-items:center;border-radius:11px;background:#f2f6fc;font-size:17px;flex-shrink:0}.rule strong{font-size:12px;display:block}.rule small{display:block;font-size:11px;color:#8a96a6;margin-top:4px}.record-card{display:flex;align-items:center;gap:13px;padding:18px 21px;border-radius:17px;background:#edf3ff;border:1px solid #dde8fc}.record-card .trophy{font-size:26px}.record-card span{font-size:11px;color:#7286a6}.record-card strong{display:block;font-size:16px;color:#386ec7;margin-top:4px}.record-card button{margin-left:auto;border:0;background:white;border-radius:9px;color:#6a87b6;font-size:11px;padding:10px 13px}.peek{margin-top:31px}.peek-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:17px}.peek-heading h2{font-size:17px;letter-spacing:-.4px;margin:0}.peek-heading p{font-size:12px;color:#8994a3;margin:6px 0 0}.text-button{border:0;background:none;font-size:12px;color:#7a8799;font-weight:600;padding:8px}.preview-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:14px}.dex-card{border:1px solid var(--border);background:white;border-radius:16px;padding:13px 12px 16px;text-align:center;position:relative;transition:.18s}.dex-card:hover{transform:translateY(-4px);border-color:#a8c3ed;box-shadow:0 6px 16px #3370b20b}.dex-card .number{display:block;text-align:left;font-size:10px;color:#98a1ae;letter-spacing:.8px}.dex-card img{width:108px;height:100px;object-fit:contain;margin:2px auto 6px;display:block}.dex-card strong{font-size:13px;display:block;margin-bottom:9px}.type{display:inline-block;padding:3px 8px;border-radius:5px;font-size:10px;font-weight:700;margin:0 2px;background:#f1f2f4;color:#77818d}.type[data-type=풀]{background:#e6f5e7;color:#5b9664}.type[data-type=독]{background:#f0e9fa;color:#a071b7}.type[data-type=불꽃]{background:#ffede7;color:#d97d59}.type[data-type=물]{background:#e6f2fe;color:#6096c9}.type[data-type=전기]{background:#fff4ca;color:#a28426}.type[data-type=비행]{background:#edf0fc;color:#8a92b5}.type[data-type=에스퍼]{background:#ffe9f0;color:#c87996}.type[data-type=고스트]{background:#ece7f6;color:#86749f}.type[data-type=노말]{background:#eeeef0;color:#85858e}footer{display:flex;align-items:center;gap:10px;padding:22px 30px;margin:auto;max-width:1180px;border-top:1px solid #e5eaf1;font-size:11px;color:#9aa3af}footer>div{margin-left:auto;text-align:right;font-size:10px}footer small{display:block;margin-top:5px;font-size:9px}footer a{text-decoration:none;color:#7d8ea3}.game-stats{display:flex;align-items:center;justify-content:space-between;padding-bottom:13px;font-size:13px}.game-stats strong{font-size:20px}.game-stats .time{color:var(--red)}.progress{height:5px;background:#eef1f6;border-radius:8px;overflow:hidden;margin-bottom:18px}.progress>div{height:100%;background:#ef6862;transition:width .25s}.feedback{min-height:31px;margin-top:14px;font-weight:700;font-size:14px;text-align:center;color:#6c7990}.feedback.good{color:#239671}.feedback.bad{color:#da625e}.play-actions{display:flex;justify-content:space-between;align-items:center}.secondary{border:1px solid #dfe6ef;background:white;border-radius:11px;padding:11px 16px;font-size:13px;font-weight:700}.text-form{display:flex;gap:10px;margin-top:18px}.text-form input{width:100%;min-width:0;border:2px solid #e5eaf3;border-radius:12px;padding:13px 15px;font-size:16px}.text-form .primary{padding:12px 18px;white-space:nowrap}.difficulty{display:flex;gap:9px;margin-top:19px}.difficulty button{flex:1;padding:13px 5px;background:white;border:1px solid #e2e8f1;border-radius:12px;font-size:13px;font-weight:700}.difficulty button.active{background:#eff5ff;border-color:#8eb6f5;color:#3975cf}.difficulty small{display:block;font-size:10px;color:#8f9bab;margin-top:5px}.setup-description{font-size:12px;color:#7d899b;line-height:1.8;margin-bottom:0}.result{text-align:center;padding:22px 4px}.result-icon{font-size:50px}.result h2{font-size:25px;letter-spacing:-1px}.result .big-score{font-size:55px;font-weight:900;color:var(--red);line-height:1.2}.result .big-score small{font-size:16px;margin-left:6px}.result .summary{font-size:13px;color:#7a8798;margin:12px 0 23px}.save-form{display:flex;gap:8px;max-width:330px;margin:16px auto}.save-form input{border:1px solid #dce4ed;border-radius:10px;padding:11px 12px;min-width:0;width:100%;font-size:14px}.result-actions{display:flex;justify-content:center;gap:12px;margin-top:20px}.review-list{text-align:left;margin:18px 0;display:grid;gap:7px}.review-row{padding:9px 12px;background:#f5f7fa;border-radius:10px;font-size:12px;display:flex;align-items:center;gap:12px}.review-row img{width:38px;height:38px;object-fit:contain}.review-row button{margin-left:auto;border:0;background:none;color:#4f83cb;font-size:11px}.result-note{font-size:11px;color:#8c96a5}.filters{display:flex;gap:12px;margin:22px 0}.filters input{width:100%;border:1px solid #dfe5ee;border-radius:12px;padding:13px 17px;background:white;font-size:14px}.filters select{border:1px solid #dfe5ee;border-radius:12px;padding:13px 18px;background:white;font-size:14px;min-width:125px}.dex-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:18px}.dex-grid .dex-card{padding:17px}.dex-grid .dex-card img{width:140px;height:130px}.dex-grid .dex-card strong{font-size:15px}.empty{text-align:center;color:#8591a4;padding:65px 20px;background:white;border:1px solid var(--border);border-radius:18px;font-size:15px}.result-count{font-size:13px;color:#7f8b9a;margin-bottom:16px}.records-tabs{display:flex;gap:10px;margin:24px 0 18px}.records-tabs button{padding:11px 17px;border:1px solid #dde4ed;border-radius:10px;background:white;font-size:13px}.records-tabs button.active{color:#dc514a;background:#fff0ee;border-color:#f3b9b2}.ranking{width:100%;border-collapse:collapse;background:white;border-radius:15px;overflow:hidden;font-size:14px}.ranking th{background:#eff3f9;text-align:left;padding:16px;color:#74829a;font-size:12px}.ranking td{padding:18px 16px;border-bottom:1px solid #edf0f6}.ranking td:first-child{font-weight:800;color:#d1a344}.ranking td.score{font-size:18px;font-weight:800;color:var(--red)}dialog{border:0;padding:0;border-radius:24px;width:min(520px,calc(100vw - 36px));max-height:90vh;box-shadow:0 20px 80px #16274435;color:#273448}dialog::backdrop{background:#14223b65;backdrop-filter:blur(4px)}.detail-inner{padding:26px 30px 30px;position:relative}.close{position:absolute;right:20px;top:20px;border:0;border-radius:50%;width:34px;height:34px;background:#f0f3f8;font-size:20px;z-index:2}.detail-image{height:235px;background:#f4f7fc;border-radius:16px;display:grid;place-items:center;margin-bottom:23px}.detail-image img{height:215px;width:240px;object-fit:contain}.detail-inner .eyebrow{color:#91a0b5}.detail-inner h2{font-size:29px;letter-spacing:-1px;margin:0 0 12px}.detail-inner p{font-size:14px;color:#7b8796;line-height:1.9}.detail-inner dl{display:grid;grid-template-columns:1fr 1fr;background:#f5f8fc;border-radius:15px;padding:18px;gap:18px;margin:20px 0}.detail-inner dt{font-size:11px;color:#8996a8;margin-bottom:5px}.detail-inner dd{font-size:15px;font-weight:700;margin:0}.source-link{font-size:12px;color:#6e8ebc}.loading{text-align:center;padding:120px 20px;color:#8b97a9}.shake{animation:shake .25s}@keyframes shake{25%{transform:translateX(-5px)}75%{transform:translateX(5px)}}.silhouette img{filter:brightness(0) drop-shadow(0 7px 5px #57617413)}.pokemon-stage.reveal img{filter:drop-shadow(0 9px 5px #57617413)}
@media(min-width:1450px){main{padding-top:50px}.pokemon-stage{min-height:265px}.welcome-card{min-height:244px}.welcome-card img{width:195px;height:195px}.game-body{padding:25px 32px 30px}}
@media(max-width:950px){.header-tag{display:none}.header-inner{justify-content:space-between;gap:10px}.play-grid{grid-template-columns:minmax(0,1.4fr) minmax(270px,1fr);gap:18px}.game-body{padding:20px}.preview-grid{grid-template-columns:repeat(3,1fr)}.welcome-card img{width:140px;height:140px}.dex-grid{grid-template-columns:repeat(4,1fr)}.dex-grid .dex-card img{width:100%;height:115px}}
@media(max-width:700px){.header-inner{padding:17px 18px;flex-wrap:wrap}.brand{font-size:21px}.header-inner nav{width:100%;justify-content:space-around;margin-top:10px;gap:3px}.nav{font-size:12px;padding:10px 9px}.nav span{font-size:16px;margin-right:3px}main{padding:25px 18px 32px}.intro h1{font-size:26px}.intro p{font-size:12px;line-height:1.8}.intro{gap:10px;align-items:center}.collection{font-size:10px;padding:8px;align-self:flex-start}.play-grid{grid-template-columns:1fr}.side{display:none}.game-body{padding:20px}.game-tab{font-size:13px;padding:18px 0}.game-tabs{padding:0 15px}.pokemon-stage{min-height:220px}.pokemon-stage img{height:170px}.preview-grid{grid-template-columns:repeat(3,1fr);gap:9px}.dex-card{padding:12px 6px}.dex-card img{width:85px;height:84px}.dex-card strong{font-size:12px}.type{font-size:9px;padding:3px 5px}.peek-heading h2{font-size:15px}.peek-heading p{font-size:11px}.text-button{font-size:11px}.dex-grid{grid-template-columns:repeat(3,1fr);gap:10px}.dex-grid .dex-card{padding:12px 6px}.dex-grid .dex-card img{height:85px}.dex-grid .dex-card strong{font-size:12px}.filters{flex-wrap:wrap}.filters input{flex-basis:100%}.filters select{flex:1;font-size:12px;min-width:0}.ranking th,.ranking td{padding:13px 9px;font-size:12px}.ranking th:last-child,.ranking td:last-child{display:none}.records-tabs{gap:5px;flex-wrap:wrap}.records-tabs button{font-size:11px;padding:10px 11px}footer{padding:20px 18px;flex-wrap:wrap;font-size:10px}footer>div{width:100%;text-align:left;margin-left:34px;margin-top:2px}.start-line p{font-size:10px}.intro .eyebrow{font-size:10px}.detail-inner{padding:24px}.detail-image{height:200px}.detail-image img{height:180px}.result-actions .primary{padding:13px 18px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
/* Keep regular Korean text comfortable for young readers. */
.intro p,.choice,.game-tab,.nav,.game-heading small,.setup-description,.rule strong,.rule small,.welcome-card p,.dex-card strong,.peek-heading p,.text-button,.secondary,.record-card button{font-size:14px}.rule-card .section-title,.peek-heading h2{font-size:17px}.type{font-size:12px}.game-heading h2{font-size:20px}.rule{margin-top:16px}.rule small{line-height:1.6}.rule-card{padding:20px 23px}.result-note,.start-line p,.result-count,.record-card span,.mode-pill{font-size:12px}.brand small,.eyebrow,.stage-tag,.dex-card .number,.header-tag,.welcome-card .tiny,.new-tag{font-size:12px}.record-card strong{font-size:18px}.record-card{padding:18px 20px}.game-tab{white-space:nowrap}.header-inner{gap:35px}
@media(max-width:700px){.header-inner{gap:10px}.nav{font-size:13px}.intro h1{font-size:25px}.game-heading h2{font-size:19px}.intro{align-items:flex-start}.collection{margin-top:5px}.game-tabs{padding:0 7px}.new-tag{font-size:11px}.preview-grid .dex-card strong,.dex-grid .dex-card strong{font-size:14px}.type{font-size:12px}.preview-grid,.dex-grid{grid-template-columns:repeat(2,1fr)}.dex-card img{height:110px;width:120px}.dex-grid .dex-card img{height:125px}.game-heading small{font-size:13px}.peek-heading{align-items:flex-start;gap:8px}.peek-heading p{line-height:1.7}.text-button{font-size:13px}.choice{font-size:15px;padding:15px 10px}.choice span{margin-right:8px}.ranking th,.ranking td{font-size:14px}.filters select{font-size:14px}.start-line .primary{padding:15px 18px}.start-line p{flex:.8}.records-tabs button{font-size:13px}}
@media(min-width:701px){main{padding-top:27px}.intro{margin-bottom:22px}.game-body{padding-top:20px}.pokemon-stage{min-height:205px}.pokemon-stage img{width:165px;height:165px}.game-tabs .game-tab{padding-top:16px;padding-bottom:15px}.choices{margin-top:14px}.start-line{margin-top:15px}.game-heading .text-button{margin-left:auto}.welcome-card{min-height:220px}.pokemon-stage.silhouette,.pokemon-stage.reveal{min-height:205px}}
@media(max-width:700px){.game-heading .text-button{margin-left:auto}.intro .collection{display:none}.pokemon-stage{min-height:192px}.pokemon-stage img{width:155px;height:155px}.game-body{padding:18px}.game-tabs .game-tab{padding-top:14px;padding-bottom:14px}.intro{margin-bottom:18px}.game-heading small{font-size:13px}.text-form{margin-top:14px}.feedback{margin-top:10px}}
.rank-banner{display:flex;align-items:center;gap:12px;background:#fff7d9;border:1px solid #f1d887;border-radius:15px;text-align:left;padding:16px;margin:19px 0}.rank-banner>span{font-size:27px}.rank-banner>div{flex:1}.rank-banner strong{font-size:16px;color:#85631e}.rank-banner p{font-size:13px;line-height:1.7;color:#917735;margin:5px 0 0}.rank-banner .secondary{flex-shrink:0}.rank-banner.saved{background:#eaf9f1;border-color:#a7dcc8}.rank-banner.saved strong{color:#287b60}.rank-banner.saved p{color:#4e8775}.arcade-entry{padding:35px 32px 28px;text-align:center;background:linear-gradient(180deg,#fff8db 0%,#fff 65%);position:relative}.arcade-entry .eyebrow{color:#c98c23;font-size:14px;letter-spacing:2px;margin-bottom:12px}.arcade-trophy{font-size:62px}.arcade-entry h2{font-size:25px;letter-spacing:-1px;margin:13px 0 10px}.arcade-rank{font-size:16px;color:#71809b}.arcade-rank strong{display:inline-block;color:#d45835;background:#ffeac7;border-radius:8px;padding:4px 11px;margin-left:5px}.arcade-score{font-size:49px;font-weight:900;color:var(--red);margin:13px 0 21px;line-height:1.25}.arcade-score small{font-size:18px;margin-left:5px}.arcade-entry label{font-size:14px;font-weight:700;display:block;text-align:left;margin-bottom:8px}.arcade-entry input{width:100%;font-size:18px;font-weight:700;padding:14px;border:2px solid #e3e9f3;border-radius:12px;text-align:center}.arcade-entry .primary{width:100%;margin:10px 0 12px}.arcade-entry .result-note{line-height:1.7;min-height:20px}.ranking tr.new-record td{background:#fff6d6}.ranking tr.new-record td:nth-child(2){font-weight:800}.ranking tr.new-record td:nth-child(2):after{content:'NEW';display:inline-block;font-size:10px;letter-spacing:.5px;color:#b47917;background:#ffe6a0;border-radius:4px;padding:2px 5px;margin-left:8px}#high-score{max-height:calc(100dvh - 28px)}
@media(max-width:700px){.arcade-entry{padding:31px 22px 23px}.arcade-entry h2{font-size:23px}.arcade-score{font-size:44px}.rank-banner{flex-wrap:wrap;padding:14px}.rank-banner .secondary{width:100%;font-size:14px}.rank-banner strong{font-size:15px}.arcade-trophy{font-size:50px}.ranking tr.new-record td:nth-child(2):after{display:block;width:max-content;margin:5px 0 0}}
/* A focused play surface with only the game and two supporting links. */
main{min-height:calc(100vh - 100px);padding-top:34px}.play-grid{display:block;max-width:680px;margin:0 auto}main:has(.play-grid){max-width:740px}main:has(.play-grid)>.intro{margin:0 0 22px;justify-content:center;text-align:center}main:has(.play-grid) .intro h1{margin:0}.quick-links{display:flex;justify-content:center;gap:30px;margin-top:20px}.quick-links .text-button{font-size:14px}.back-to-game{margin-bottom:16px;padding-left:0}footer{justify-content:center}footer>div{margin-left:20px}
/* Show the whole board and edit the current player's own row. */
#high-score{width:min(660px,calc(100vw - 28px));max-height:calc(100dvh - 28px)}.leaderboard-entry{padding:26px 25px 22px;text-align:left;background:white}.leaderboard-entry h2{font-size:23px;margin:0 40px 16px 0}.entry-summary{display:flex;justify-content:space-between;align-items:center;gap:14px;background:#fff6d6;border-radius:12px;padding:14px 16px;margin-bottom:16px}.entry-summary>span{font-size:13px;color:#907440}.entry-summary>strong{font-size:17px;color:#ac7425;white-space:nowrap}.entry-summary strong span{font-size:14px;font-weight:600}.entry-list{overflow:auto;max-height:min(56dvh,520px);border:1px solid #e5eaf1;border-radius:12px;scroll-padding-top:42px}.entry-ranking{border-collapse:separate;border-spacing:0;width:100%;font-size:14px;table-layout:fixed}.entry-ranking th{position:sticky;top:0;z-index:1;background:#f3f6fa;text-align:left;padding:12px;color:#74829a;font-size:12px}.entry-ranking th:first-child{width:73px}.entry-ranking th:last-child{width:95px;text-align:right}.entry-ranking td{padding:12px;border-bottom:1px solid #edf0f5;overflow-wrap:anywhere}.entry-ranking tr:last-child td{border-bottom:0}.entry-ranking td:last-child{text-align:right;font-weight:800}.entry-ranking tr.my-entry td{background:#fff5cd;border-top:1px solid #eed288;border-bottom:1px solid #eed288}.entry-ranking .my-entry td:first-child{font-weight:800;color:#b77d26}.my-tag{display:inline-block;background:#f0b94e;color:#553807;border-radius:4px;font-size:10px;padding:2px 5px;margin-left:6px;vertical-align:middle}.entry-input{display:flex;align-items:center;gap:7px}.leaderboard-entry .entry-input input{padding:9px 10px;font-size:15px;text-align:left;min-width:0;border:1px solid #e5cf8f;background:white;border-radius:8px;font-weight:600}.save-name{border:0;background:#ee5048;color:white;border-radius:8px;width:36px;height:36px;font-size:21px;flex-shrink:0}.save-name:hover{background:#d9423b}.leaderboard-entry #save-message:empty{display:none}.leaderboard-entry #save-message{margin:14px 0 0;font-size:13px}.leaderboard-entry .primary{margin:16px 0 0}.entry-points{color:#de5149}
@media(max-width:700px){main{padding-top:24px;min-height:calc(100vh - 90px)}main:has(.play-grid)>.intro{margin-bottom:20px}.intro h1{font-size:25px}.leaderboard-entry{padding:23px 14px 18px}.leaderboard-entry h2{font-size:20px;letter-spacing:-.8px}.entry-summary{flex-direction:column;align-items:flex-start;gap:7px;padding:12px 14px}.entry-summary>strong{font-size:18px}.entry-list{max-height:55dvh}.entry-ranking th,.entry-ranking td{padding:10px 8px}.entry-ranking th:first-child{width:52px}.entry-ranking th:last-child{width:73px}.my-tag{display:block;width:max-content;margin:4px 0 0}.leaderboard-entry .entry-input input{font-size:14px;padding:9px 7px}.save-name{width:32px;height:36px}.entry-input{gap:5px}.entry-ranking{font-size:13px}footer{justify-content:flex-start}footer>div{margin-left:34px}.quick-links{margin-top:16px}}
/* Official Pokédex details and branching evolution families. */
dialog.dex-detail{width:min(760px,calc(100vw - 32px))}
.dex-detail .detail-inner{padding:28px 30px 32px}
.dex-detail .detail-image{height:240px}
.dex-detail .detail-inner h2{margin-bottom:8px}
.dex-detail .form-label{margin:0 0 18px;color:#536d95;font-size:16px;font-weight:700}
.description-versions{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0 12px}
.description-versions button{border:1px solid #dee6f1;border-radius:10px;background:white;color:#61738e;padding:9px 12px;font-size:14px;text-align:left}
.description-versions button.active{background:#eff5ff;color:#2867c7;border-color:#93b8f0;font-weight:700}
.dex-detail .dex-description{font-size:16px;color:#46566d;line-height:1.8;white-space:pre-line;margin:12px 0 20px}
.dex-detail .dex-facts{margin:20px 0 28px;gap:22px;padding:22px;align-items:start}
.dex-detail .dex-facts dt{font-size:14px;color:#75849a;margin-bottom:8px}
.dex-detail .dex-facts dd{font-size:16px;line-height:1.5;overflow-wrap:anywhere}
.dex-facts .type{font-size:14px;padding:4px 9px;margin:0 4px 4px 0}
.ability-detail+.ability-detail{margin-top:8px}
.ability-detail summary{cursor:pointer;color:#326dbb}
.dex-detail .ability-detail p{font-size:14px;line-height:1.7;margin:8px 0;font-weight:400;color:#55677f;white-space:pre-line}
.related-section{border-top:1px solid #e4eaf3;padding-top:22px;margin-top:25px}
.related-section h3{font-size:20px;margin:0 0 18px}
.evolution-stages{display:grid;grid-template-columns:repeat(var(--stages),minmax(0,1fr));gap:16px}
.evolution-stage{display:flex;flex-direction:column;gap:10px;min-width:0;position:relative}
.evolution-stage h4{margin:0 0 3px;color:#728198;font-size:14px;font-weight:600;text-align:center}
.branched-evolution{grid-template-columns:minmax(0,1fr) minmax(0,2fr)}
.branched-evolution .evolution-stage:last-child{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start}
.branched-evolution .evolution-stage:last-child h4{grid-column:1/-1}
.related-card{width:100%;min-width:0;background:#f8faff;border:1px solid #e3eaf3;border-radius:15px;padding:12px 8px;display:flex;flex-direction:column;align-items:center;text-align:center}
.related-card:hover{border-color:#91b5ef;background:#f1f6ff}
.related-card.current-form{border:2px solid #ec706b;background:#fff6f5}
.related-card .number{font-size:12px;color:#8090a5}
.related-card img{width:110px;max-width:100%;height:100px;object-fit:contain;margin:6px 0}
.related-card strong{font-size:16px;overflow-wrap:anywhere}
.related-card small{font-size:14px;color:#708199;line-height:1.4;margin:4px 0}
.related-card>div{margin-top:9px;display:flex;justify-content:center;gap:3px;flex-wrap:wrap}
.related-card .type{font-size:12px;margin:0;padding:3px 6px}
.forms-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
@media(max-width:600px){.dex-detail .detail-inner{padding:22px 18px}.dex-detail .detail-image{height:200px}.dex-detail .dex-facts{padding:17px;gap:18px}.evolution-stages{gap:8px}.related-card{padding:10px 5px}.related-card strong{font-size:14px}.related-card small{font-size:12px}.related-card img{height:85px}.related-card .type{font-size:12px;padding:3px 4px}.forms-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Type-colored collectible cards with the official repeating paper pattern. */
.type{display:inline-flex;align-items:center;justify-content:center;gap:5px;background:var(--type-color,#777)!important;color:#172334!important;border:1px solid #17233418;line-height:1.4}
.type img.type-icon{display:inline-block!important;width:18px!important;height:18px!important;min-width:18px;object-fit:contain;margin:0!important;filter:none}
.type[data-type=독],.type[data-type=고스트],.type[data-type=드래곤],.type[data-type=악],.type[data-type=에스퍼]{color:#fff!important}
dialog.dex-detail{--card-type:#999;max-height:92vh;border:8px solid #e9c45b;border-radius:22px;background:var(--card-type);box-shadow:0 22px 80px #16274460,0 0 0 1px #af8537,inset 0 0 0 2px #fff3b5}
.dex-detail .pokemon-detail-card{padding:24px;background-image:linear-gradient(color-mix(in srgb,var(--card-type) 40%,transparent),color-mix(in srgb,var(--card-type) 18%,transparent)),url('assets/ui/bg_pattern2-96b5b17adb69a03e1732.jpg');background-repeat:no-repeat,repeat;border-radius:12px}
.pokemon-card-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:0 38px 20px 4px}
.dex-detail .pokemon-card-heading .eyebrow{color:#243447;font-size:14px;font-weight:800;margin-bottom:5px}
.dex-detail .pokemon-card-heading h2{font-size:32px;color:#172334;margin:0;text-shadow:0 1px #ffffff70}
.dex-detail .pokemon-card-heading .form-label{margin:6px 0 0;font-size:16px;color:#273448}
.card-type-icons{display:flex;gap:8px;flex-shrink:0}
.card-type-icons img{width:32px;height:32px;object-fit:contain}
.dex-detail .close{top:18px;right:18px;background:#ffffffdc;color:#273448;border:1px solid #27344820}
.dex-detail .detail-image{display:flex;align-items:center;justify-content:center;height:auto;min-height:0;margin:0 0 24px;padding:16px;background:color-mix(in srgb,var(--card-type) 12%,#fff);border:3px solid #d4af46;border-radius:12px;box-shadow:inset 0 0 0 2px #fff6cb}
.dex-detail .detail-image img.original-pokemon{display:block;width:auto;height:auto;max-width:100%;max-height:none;object-fit:contain}
.dex-detail .description-section{padding:16px 20px;background:#fffffff2;border-radius:12px;border:1px solid #26344a20}
.dex-detail .description-versions:empty{display:none}
.dex-detail .description-versions{margin:0 0 12px}
.dex-detail .dex-description{margin:0;line-height:1.8;color:#273448}
.dex-detail .dex-facts{background:#fffffff2;border:1px solid #26344a20;border-radius:12px;padding:20px;gap:20px}
.dex-detail .dex-facts dt{color:#576275}
.gender-icon{width:26px;height:26px;object-fit:contain;vertical-align:middle;margin-right:13px}
.dex-detail .ability-detail strong{display:block;font-size:16px;color:#273448}
.dex-detail .ability-detail p{margin:5px 0 0;color:#45516a}
.dex-detail .ability-detail+.ability-detail{margin-top:15px}
.dex-detail .related-section{background:#fffffff2;padding:20px;border:1px solid #26344a20;border-radius:12px;margin-top:20px}
.dex-detail .related-section h3{color:#273448}
.dex-detail .related-card{background:#ffffffb3;border:1px solid #27344825}
.dex-detail .related-card.current-form{background:color-mix(in srgb,var(--card-type) 18%,white);border:2px solid #273448}
.game-setup{text-align:center;padding:9px 0 4px}
.game-setup h2{font-size:22px;margin:0 0 20px}
.setup-stage.pokemon-stage{background:transparent;border:0;margin:0;min-height:270px}
.setup-stage.pokemon-stage:before{display:none}
.setup-stage.pokemon-stage img{width:230px;height:230px}
.setup-start{display:block;margin:18px auto 0;min-width:180px;padding:15px 40px;font-size:18px}
.setup-note{font-size:14px;color:#75849b;line-height:1.7;margin:20px 0 0}
.difficulty-cards{margin:0 0 18px;gap:10px}
.difficulty-cards .difficulty-choice{padding:12px 7px 15px}
.difficulty-preview{display:grid;place-items:center;height:145px;margin-bottom:10px;background:#f6f9fe;border-radius:9px;overflow:hidden}
.difficulty-preview img{width:145px;max-width:100%;height:145px;object-fit:contain}
.difficulty-choice strong{font-size:16px}
.difficulty-choice small{font-size:12px;line-height:1.5}
.quiz-start-loading{display:flex;min-height:360px;flex-direction:column;align-items:center;justify-content:center;gap:20px;color:#64748b;font-size:16px}
.quiz-start-loading p{margin:0}
.quiz-spinner{width:48px;height:48px;border:4px solid #edf1f7;border-top-color:var(--red);border-radius:50%;animation:quiz-spin .8s linear infinite}
.loading-actions{text-align:center}
@keyframes quiz-spin{to{transform:rotate(360deg)}}
@media(max-width:600px){dialog.dex-detail{border-width:6px;width:calc(100vw - 20px)}.dex-detail .pokemon-detail-card{padding:15px}.pokemon-card-heading{margin:2px 32px 17px 2px;gap:8px}.dex-detail .pokemon-card-heading h2{font-size:27px}.card-type-icons{gap:5px}.card-type-icons img{width:26px;height:26px}.dex-detail .close{right:11px;top:12px;width:30px;height:30px}.dex-detail .detail-image{padding:10px;border-width:2px}.dex-detail .description-section{padding:15px}.dex-detail .dex-facts{padding:15px;gap:18px}.dex-detail .related-section{padding:12px}.difficulty-cards{gap:7px}.difficulty-cards .difficulty-choice{padding:8px 5px 12px}.difficulty-preview{height:85px}.difficulty-preview img{height:85px}.setup-stage.pokemon-stage{min-height:240px}.setup-stage.pokemon-stage img{height:210px;width:210px}.difficulty-choice small{font-size:12px}}
/* Colorful shortcuts below the game. */
.quick-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;max-width:440px;margin:22px auto 0}
.shortcut{display:flex;align-items:center;justify-content:center;gap:12px;min-height:72px;padding:14px 18px;border:1px solid;border-radius:18px;font-size:16px;font-weight:800;line-height:1.4;transition:transform .15s,box-shadow .15s,background .15s}
.shortcut-dex{background:#edf5ff;color:#2864b8;border-color:#bfd7f7;box-shadow:0 4px 0 #bfd7f7}
.shortcut-ranking{background:#fff5d6;color:#94651c;border-color:#ecd28a;box-shadow:0 4px 0 #ecd28a}
.shortcut-icon{display:grid;place-items:center;flex:0 0 40px;height:40px;border-radius:12px;background:#fff;font-size:25px;box-shadow:0 2px 6px #243a5610}
.shortcut:hover{transform:translateY(-2px)}
.shortcut-dex:hover{background:#e1efff;box-shadow:0 6px 0 #bfd7f7}
.shortcut-ranking:hover{background:#ffefbf;box-shadow:0 6px 0 #ecd28a}
.shortcut:active{transform:translateY(3px);box-shadow:0 1px 0 #b8c6d8}
@media(max-width:400px){.quick-links{gap:12px;margin-top:18px}.shortcut{padding:12px 9px;gap:8px;font-size:14px;min-height:64px;border-radius:15px}.shortcut-icon{flex-basis:32px;height:32px;border-radius:10px;font-size:22px}}

/* Friendly quiz controls, paired with the shortcut buttons. */
.game-control{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;border:1px solid;border-radius:12px;padding:10px 14px;font-size:14px;font-weight:800;white-space:nowrap;transition:transform .15s,box-shadow .15s,background .15s}
.game-control span{display:grid;place-items:center;flex:0 0 24px;height:24px;border-radius:8px;background:#fff;font-size:13px}
.quit-control{background:#fff0ef;border-color:#f1c6c2;color:#b34842;box-shadow:0 3px 0 #f1c6c2}
.skip-control{background:#fff5d6;border-color:#ecd28a;color:#94651c;box-shadow:0 3px 0 #ecd28a}
.skip-control span{font-size:18px}
.game-heading>div{min-width:0}
.game-heading .game-control{margin-left:auto;flex-shrink:0}
.play-actions:has(.skip-control){justify-content:center;margin-top:4px}
.game-control:hover:not(:disabled){transform:translateY(-2px)}
.quit-control:hover:not(:disabled){background:#ffe4e1;box-shadow:0 5px 0 #f1c6c2}
.skip-control:hover:not(:disabled){background:#ffefbf;box-shadow:0 5px 0 #ecd28a}
.game-control:active:not(:disabled){transform:translateY(2px);box-shadow:0 1px 0 #d8c8bd}
.game-control:disabled{opacity:.5;box-shadow:none}
@media(max-width:400px){.game-heading{flex-wrap:wrap;gap:12px}.game-heading>div{flex-basis:100%}.game-heading .quit-control{margin-left:auto}.game-control{padding:9px 12px}}

/* Keep the quiz artwork above the score and countdown. */
.pokemon-stage:not(.setup-stage){min-height:300px}
#question-image{width:240px;height:240px}
.question-score{margin-top:18px}
.question-score .game-stats{padding-bottom:12px}
.question-score .progress{margin-bottom:0}
.filters select{appearance:none;-webkit-appearance:none;padding-right:42px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23748094' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");background-repeat:no-repeat;background-size:14px 14px;background-position:right 14px center}
@media(max-width:700px){.pokemon-stage:not(.setup-stage){min-height:270px}#question-image{width:220px;height:220px}.filters select{padding-right:38px;background-position:right 12px center}}
@media(forced-colors:active){.filters select{appearance:auto;background-image:none;padding-right:18px}}
/* Difficulty, regional browsing and printable coloring sheets. */
.difficulty-time{margin:0 0 12px;gap:10px}.difficulty-time button{padding:12px 6px}.difficulty-time small{display:block;margin-top:5px;color:#748094}.records-tabs{flex-wrap:wrap}
.quick-links{grid-template-columns:repeat(3,minmax(0,1fr));max-width:650px}.shortcut-coloring{background:#f3edff;color:#7550a7;border-color:#d7c5ef;box-shadow:0 4px 0 #d7c5ef}.shortcut-coloring:hover{background:#ebe0ff}
.filters input{min-width:160px}.filters select{min-width:135px}.coloring-filters #coloring-pokemon{flex:1.5;min-width:210px}.coloring-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:28px;align-items:start}.coloring-controls{background:#fff;border:1px solid var(--border);border-radius:20px;padding:22px;display:flex;flex-direction:column;gap:15px}.coloring-reference{background:#f6f9fe;border-radius:16px;text-align:center}.coloring-reference img{object-fit:contain;max-width:100%}.coloring-controls label{font-weight:800;font-size:14px}.coloring-controls select{padding:12px;border:1px solid var(--border);border-radius:10px;background:#fff}.coloring-controls .primary{padding:15px 12px;font-size:14px}.coloring-controls p{margin:0;font-size:13px;line-height:1.7}.coloring-note{color:var(--muted)}.coloring-sheet{width:100%;max-width:650px;padding:30px;background:#fff;border:1px solid #dce3ee;box-shadow:0 8px 30px #2734480c;aspect-ratio:210/297;display:flex;flex-direction:column;justify-content:space-between;text-align:center}.coloring-sheet[hidden]{display:none}.coloring-sheet-heading>span{font-size:13px;letter-spacing:2px;color:#68768b}.coloring-sheet h2{font-size:24px;margin:10px 0 16px}.coloring-sheet p{font-size:12px;line-height:2}.coloring-sheet canvas{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain}.coloring-sheet small{font-size:9px;color:#666;margin-top:20px}.detail-coloring{display:block;margin:22px auto}
@media(max-width:700px){.quick-links{gap:10px}.shortcut{flex-direction:column;gap:8px;padding:12px 7px;font-size:13px;min-width:0}.filters select{min-width:0;flex:1 1 calc(33% - 12px)}.coloring-filters #coloring-pokemon{flex-basis:100%;min-width:0}.coloring-layout{grid-template-columns:1fr;gap:20px}.coloring-controls{display:grid;grid-template-columns:90px minmax(0,1fr);gap:12px;align-items:center;padding:16px}.coloring-reference{grid-row:1/4}.coloring-reference img{width:85px;height:100px}.coloring-controls label{margin:0}.coloring-controls p{grid-column:1/-1}.coloring-sheet{padding:20px}.coloring-sheet h2{font-size:20px}.coloring-sheet p{font-size:10px}.coloring-sheet small{font-size:8px}}
@page{size:A4 portrait;margin:15mm}
@media print{html,body{background:#fff!important;color:#000!important}body>footer,body>dialog{display:none!important}main{max-width:none;margin:0;padding:0;min-height:0}main>*:not(.coloring-layout){display:none!important}.coloring-layout{display:block}.coloring-controls{display:none!important}.coloring-sheet{width:180mm;height:260mm;max-width:none;aspect-ratio:auto;padding:0;border:0;box-shadow:none;break-inside:avoid;page-break-inside:avoid}.coloring-sheet canvas{width:180mm;height:180mm}.coloring-sheet-heading>span{color:#000}.coloring-sheet h2{font-size:22pt}.coloring-sheet p{font-size:11pt}.coloring-sheet small{font-size:7pt;color:#000}}

.coloring-form-control{display:flex;flex-direction:column;gap:10px}.coloring-form-control[hidden]{display:none}.coloring-form-control select{max-width:100%;width:100%}@media(max-width:700px){.coloring-form-control{grid-column:1/-1}}
