@charset "UTF-8";
:root{font-family:"Pretendard","Noto Sans KR","Malgun Gothic",sans-serif;color:#213e37;background:#f6f7f2;font-synthesis:none;--green:#20594c;--coral:#ce7659;--muted:#7d897f;--line:#e2e7dd}
*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}button:disabled{cursor:default}button:focus-visible,input:focus-visible{outline:3px solid var(--coral);outline-offset:4px}[hidden]{display:none!important}.shell{max-width:1000px;margin:auto;padding:0 40px 40px}.brand{height:110px;display:flex;align-items:center;gap:12px;border-bottom:1px solid var(--line)}.brand h1{margin:0;line-height:1.4;font-size:19px;letter-spacing:-.6px}.brand-icon{width:41px;height:43px;display:grid;place-items:center;background:var(--green);color:white;border-radius:12px;transform:rotate(-5deg);font-size:25px;font-weight:700}.badge{font-size:10px;color:var(--muted);border:1px solid #d9dfd3;border-radius:20px;padding:6px 10px;white-space:nowrap}.brand .badge{margin-left:auto}.start-layout{max-width:560px;margin:30px auto 0;display:flex;flex-direction:column;gap:22px}h1{font-size:38px;line-height:1.4;letter-spacing:-1.7px;margin:14px 0 33px}.howto{padding:0;width:100%}.howto h2{font-size:14px;margin:0 0 18px}.howto ol{padding-left:20px;font-size:13px;line-height:1.9;margin:0;color:#68776a}.howto li{padding-left:4px;margin-bottom:12px}.howto li::marker{color:var(--coral);font-weight:600}.howto strong{color:var(--green)}.entry-card,.game-card,.result-card{padding:23px}.entry-card h2{font-size:18px;margin:0 0 27px}.field{display:block;min-width:0;font-size:12px;font-weight:600;color:#697a6c;margin:0}.field input{min-width:0;display:block;width:100%;font-size:15px;margin-top:9px;border:1px solid var(--line);border-radius:10px;padding:13px 12px;color:#213e37;background:#fbfcf9}.field input::placeholder{color:#a3aca0;font-size:13px;font-weight:400}.primary{border:0;background:var(--green);color:#fff;width:100%;padding:16px 20px;border-radius:11px;font-size:14px;font-weight:700;display:flex;justify-content:space-between;align-items:center}.primary:hover{background:#17483d}.primary>span{font-size:20px;line-height:1}.play-screen{max-width:490px;margin:auto}.play-header{display:flex;align-items:center;justify-content:space-between;gap:15px;height:77px}.play-header strong{font-size:16px;white-space:nowrap}.play-header>span{font-size:11px;color:var(--muted);overflow-wrap:anywhere;text-align:right}.game-card{padding:24px}.stats{display:flex;justify-content:space-between;align-items:start;margin-bottom:17px}.stats>div{display:flex;flex-direction:column;gap:9px}.stats>div:last-child{text-align:right}.stats>div>span{font-size:10px;color:var(--muted)}.stats strong{font-size:27px;font-weight:700;line-height:1;font-variant-numeric:tabular-nums;letter-spacing:-.4px}.stats b{font-weight:inherit}.stats small{font-size:13px;font-weight:400;color:#8d9b88;margin-left:3px}.timer-stat{text-align:center}.progress-track{height:4px;border-radius:9px;overflow:hidden;background:#eef2e8}.progress-track>div{width:0;background:var(--green);height:100%;transition:width .15s}.question-top{display:flex;justify-content:space-between;font-size:10px;color:#8a9585;margin:21px 0 12px}.question-top>span:last-child{color:var(--coral);font-weight:700}.clue{font-size:17px;line-height:1.7;font-weight:600;letter-spacing:-.5px;min-height:87px;margin:0;word-break:keep-all;overflow-wrap:anywhere}.answer-slots{display:flex;justify-content:center;gap:7px;margin:17px 0 18px;min-height:43px}.answer-slot{height:43px;min-width:33px;padding:4px 5px;border-bottom:2px solid #c7d3c0;color:#8ba282;font-size:25px;font-weight:700;text-align:center}.answer-slot.current{border-color:var(--coral)}.answer-slot.correct{color:var(--green);border-color:var(--green)}.hint-line{display:flex;align-items:center;justify-content:space-between;gap:8px}.hint-line>span{font-size:10px;color:#9c8b7c;font-variant-numeric:tabular-nums}.hint-button{background:#f3f0e8;border:1px solid #e8e1d4;border-radius:8px;color:#94744f;padding:8px 10px;font-size:11px}.hint-button:hover:enabled{background:#ede3d1}.hint-button:disabled{opacity:.55}.feedback{min-height:15px;line-height:1.4;font-size:10px;color:#b05b40;margin:8px 0 12px}.board{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.tile{aspect-ratio:1;min-width:0;border:1px solid #e1e7d8;background:#eef2e8;border-radius:11px;font-size:25px;font-weight:700;color:#314a3d;user-select:none;padding:0;transition:background .1s,transform .1s}.tile:hover:enabled{background:#dde9d4;border-color:#bfd2b6}.tile:active:enabled{transform:scale(.94)}.tile.empty{background:#fafbf7;border-color:#f0f3e9;color:transparent}.tile.wrong{animation:shake .25s;background:#fae0d6;border-color:#dc9b85}.tile.hit{animation:hit .18s}.game-controls{display:flex;justify-content:space-between;margin-top:12px}.text-button{font-size:11px;background:none;border:0;color:#8a9583;padding:5px 0}.text-button:hover{color:var(--green)}.result-screen{max-width:960px;margin:30px auto 0}.result-card{padding:23px}.ranking-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.ranking-heading h1{font-size:23px;letter-spacing:-.7px;line-height:1.3;margin:0}.ranking{width:100%;border-collapse:collapse;font-size:12px;text-align:left}.ranking th{color:#8c9786;font-weight:400;font-size:10px;padding:0 4px 6px;border-bottom:1px solid var(--line)}.ranking td{padding:5px 4px;border-bottom:1px solid #eff2e9;font-size:11px;line-height:20px;vertical-align:middle}.ranking th:first-child,.ranking td:first-child{text-align:center;padding-left:0}.ranking th:last-child,.ranking td:last-child{text-align:right;padding-right:0;font-variant-numeric:tabular-nums}.rank-number{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:6px;color:#856b42;background:#f4ecd9;font-size:10px;font-weight:700}.ranking tr:nth-child(2) .rank-number{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:6px;color:#856b42;background:#f4ecd9;font-size:10px;font-weight:700}.ranking tr:nth-child(3) .rank-number{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:6px;color:#856b42;background:#f4ecd9;font-size:10px;font-weight:700}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@keyframes shake{25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}@keyframes hit{50%{background:#cddfbe;transform:scale(.95)}}@media(max-width:800px){.shell{padding:0 24px 30px}.start-layout{display:flex;flex-direction:column;gap:20px;padding-top:0}.howto ol{font-size:12px}.entry-card{padding:23px}}@media(max-width:650px){.shell{max-width:490px;padding:0 18px 24px}.brand{height:76px}.brand h1{font-size:17px}.brand-icon{width:34px;height:36px;font-size:22px}.start-layout{display:flex;flex-direction:column;gap:20px;padding-top:0}.howto{padding:0;width:100%}.howto h2{font-size:13px;margin-bottom:12px}.howto ol{font-size:12px;line-height:1.7}.howto li{margin-bottom:8px}.howto li br{display:none}.entry-card{width:100%;padding:22px}.entry-card h2{margin-bottom:20px}.field{display:block;min-width:0;font-size:12px;font-weight:600;color:#697a6c;margin:0}.play-header{height:65px}.game-card{padding:18px;border-radius:20px}.stats strong{font-size:25px}.stats small{font-size:11px}.question-top{margin-top:17px}.clue{font-size:16px;min-height:82px}.answer-slots{margin:11px 0 14px;gap:5px}.answer-slot{min-width:30px;font-size:24px;height:39px}.hint-button{padding:7px 9px}.board{gap:7px}.tile{font-size:24px;border-radius:10px}.result-screen{max-width:960px;margin:30px auto 0}.result-card{padding:23px}.ranking td{padding:5px 4px;border-bottom:1px solid #eff2e9;font-size:11px;line-height:20px;vertical-align:middle}}@media(max-width:360px){.shell{padding:0 12px 20px}.game-card{padding:14px}.board{gap:5px}.tile{font-size:21px}.clue{font-size:15px}.answer-slot{min-width:26px;font-size:22px}.result-card{padding:23px}.ranking td{padding:5px 4px;border-bottom:1px solid #eff2e9;font-size:11px;line-height:20px;vertical-align:middle}.ranking th{color:#8c9786;font-weight:400;font-size:10px;padding:0 4px 6px;border-bottom:1px solid var(--line)}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}

.identity-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}.entry-card{width:100%}.entry-card>.primary{margin-top:23px}.rankings-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:22px}.course-ranking{min-width:0}.course-ranking h2{font-size:14px;color:var(--green);margin:0 0 12px}.ranking td:nth-child(2){font-size:10px;color:#89937f;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.ranking td:nth-child(3){overflow-wrap:anywhere;max-width:120px}.ranking td:last-child{white-space:nowrap}.ranking tr.my-record{background:#edf4e6}.ranking tr.my-record strong{font-weight:800;color:var(--green)}.ranking .my-record .rank-number{background:#d9e8ca}.me-label{font-size:8px;border-radius:4px;padding:1px 3px;background:#d8e7ce;color:var(--green);margin-left:4px;white-space:nowrap}.result-card>.primary{max-width:280px;margin:0 auto}@media(max-width:800px){.rankings-grid{grid-template-columns:1fr;gap:17px}.course-ranking h2{margin-bottom:8px}.result-screen{max-width:510px}.result-card{padding:21px}.ranking td{padding:4px;line-height:19px}.ranking-heading{margin-bottom:17px}.play-header{gap:10px}.play-header strong{font-size:14px}}@media(max-width:360px){.brand{gap:8px}.brand h1{font-size:15px;letter-spacing:-.7px}.brand .badge{font-size:8px;padding:5px 7px}.result-card{padding:16px}.identity-row{gap:9px}.play-header strong{font-size:12px}.play-header>span{font-size:10px}}
.entry-card,.game-card,.result-card{background:#fff;border:1px solid var(--line);box-shadow:0 12px 40px #29412d06;border-radius:23px}

.course-prompt{font-size:12px;font-weight:600;color:var(--green);margin:22px 0 9px}.course-select{width:100%;display:flex;align-items:center;gap:10px;border:1px solid #b8cbb0;background:#f0f5eb;color:var(--green);border-radius:10px;padding:13px 12px;font-size:12px}.course-select strong{margin-left:auto;font-size:13px}.start-actions{display:grid;grid-template-columns:minmax(0,1fr) 105px;gap:9px;margin-top:14px}.secondary{background:#f7f9f2;border:1px solid #dce5d5;border-radius:10px;padding:12px 14px;color:var(--green);font-size:12px;font-weight:600;cursor:pointer}.secondary:hover{background:#eaf1e2}.ranking-actions{display:flex;justify-content:center;gap:9px;margin-top:16px}.ranking-actions>.primary{max-width:210px}.ranking-actions>.secondary{min-width:95px}.rankings-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:15px 18px;margin-bottom:0}.result-card{padding:19px}.ranking-heading{margin-bottom:16px}.course-ranking h2{font-size:12px;margin-bottom:6px}.ranking th{font-size:9px;padding:0 3px 4px}.ranking td{padding:2px 3px;font-size:10px;line-height:19px}.ranking td:nth-child(2){font-size:9px}.rank-number{width:17px;height:17px;font-size:9px}.ranking-heading h1{font-size:21px}.result-screen{margin-top:22px}.answer-slots{gap:4px}.answer-slot{flex:0 1 34px;min-width:0;padding:4px 1px;font-size:clamp(17px,5vw,25px)}dialog{border:1px solid var(--line);border-radius:20px;background:#fff;color:#213e37;width:390px;max-width:calc(100% - 30px);padding:0;box-shadow:0 20px 80px #29412d20}dialog::backdrop{background:#183a2b66;backdrop-filter:blur(3px)}.course-dialog-inner{padding:23px}.course-dialog-inner h2{font-size:19px;margin:0 0 20px}.course-options{display:grid;grid-template-columns:1fr 1fr;gap:9px}.course-options button{padding:16px 6px;border:1px solid var(--line);border-radius:10px;background:#f6f8f1;color:var(--green);font-size:13px}.course-options button[aria-pressed=true]{background:var(--green);border-color:var(--green);color:#fff;font-weight:700}.course-dialog-inner>.text-button{display:block;margin:16px auto 0}.brand h1{font-size:20px;letter-spacing:-.8px}.play-header{flex-wrap:wrap;align-content:center;row-gap:4px}.play-header strong{font-size:14px}.play-header>span{margin-left:auto}@media(max-width:800px){.rankings-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 10px}.result-screen{max-width:600px}.result-card{padding:16px}.ranking td{font-size:9px;padding:2px;line-height:18px}.ranking th{font-size:8px;padding:0 2px 3px}.ranking td:nth-child(2){font-size:8px}.ranking td:nth-child(3){max-width:65px}.rank-number{width:15px;height:16px;font-size:8px}.me-label{font-size:7px;padding:0 2px;margin-left:2px}.course-ranking h2{font-size:11px}.brand h1{font-size:18px}.brand{gap:10px}}@media(max-width:390px){.result-screen{margin-left:-6px;margin-right:-6px}.result-card{padding:12px}.rankings-grid{gap:13px 8px}.ranking td{font-size:8px;padding:2px 1px}.ranking th{font-size:7px;padding:0 1px 3px}.ranking td:nth-child(2){font-size:7px}.rank-number{width:13px;font-size:7px}.ranking td:nth-child(3){max-width:42px}.brand h1{font-size:16px}.brand-icon{width:30px;height:33px;font-size:20px}.ranking-heading h1{font-size:19px}.ranking-actions>.primary{font-size:12px;padding:13px}.ranking-actions>.secondary{font-size:11px;min-width:80px;padding:10px}.play-header strong{font-size:12px}}

.entry-status,.ranking-status{font-size:11px;line-height:1.6;color:#a55c42;margin:10px 0 0;overflow-wrap:anywhere}.entry-status:empty,.ranking-status:empty{display:none}.ranking-status:not(:empty){margin:0 0 12px}.ranking td.empty-ranking{text-align:center;color:#9ba393;padding:12px 0;font-size:10px}.ranking-actions{flex-wrap:wrap}.primary:disabled,.secondary:disabled{opacity:.55;cursor:wait}

/* 파스텔 테마: 기존 컨트롤의 위치·크기·서체·테두리 두께는 유지한다. */
:root{color:#47434c;background:#fff1f6;--green:#b63e70;--coral:#e46f97;--muted:#96818d;--line:#f4d2df}
body{isolation:isolate;background:radial-gradient(ellipse at 12% 12%,#fff9fb 0,transparent 48%),radial-gradient(ellipse at 90% 80%,#ffe2ee 0,transparent 52%),#fff1f6}
body::before{content:"";position:fixed;inset:0;z-index:-2;pointer-events:none;background:url('assets/핑크배경.svg') center top/760px 920px repeat;opacity:.7}
body::after{content:"";position:fixed;right:12px;bottom:10px;width:clamp(90px,15vw,160px);height:clamp(95px,15vw,166px);background:url('assets/인성이.png') center/contain no-repeat;mix-blend-mode:multiply;z-index:-1;pointer-events:none;opacity:.75}
.brand{border-color:#f5cddc}.brand-icon{background:linear-gradient(145deg,#ef82ac,#d94b85);box-shadow:inset 0 0 0 1px #d35a87,0 4px 10px #e897b430;color:#fff6fa}
.howto ol{color:#7a6c79}.howto li::marker{color:#eb89a7}.howto strong,.course-prompt{color:#b44372}
.entry-card,.game-card,.result-card{position:relative;background:linear-gradient(135deg,#fffffff7,#fffafdf5);border-color:#f7ccde;box-shadow:0 12px 40px #e5a4bf15}
.entry-card::before,.result-card::before{content:"";position:absolute;right:13px;top:3px;width:58px;height:58px;background:url('assets/인성이.png') center/contain no-repeat;mix-blend-mode:multiply;pointer-events:none;opacity:.92}
.result-card::before{right:12px;top:-4px;width:49px;height:49px}
.game-card::before{content:"";position:absolute;right:13px;bottom:5px;width:43px;height:43px;background:url('assets/인성이.png') center/contain no-repeat;mix-blend-mode:multiply;opacity:.17;pointer-events:none}
.field{color:#806e7d}.field input{background:linear-gradient(135deg,#fff9fc,#fff4f8);border-color:#f4d0de;color:#514652}.field input::placeholder{color:#b7a2af}
.primary{background:linear-gradient(115deg,#ec79a3,#d8578c);box-shadow:inset 0 0 0 1px #d34b7d,0 5px 12px #dc729d1c;color:#fff9fc}.primary:hover{background:linear-gradient(115deg,#df6694,#c54478)}
.secondary{background:linear-gradient(135deg,#fffafc,#fff1f6);border-color:#f4cdda;color:#b13e6e}.secondary:hover{background:#ffe5ef}
.course-select{background:linear-gradient(115deg,#fff5f9,#ffeaf3);border-color:#f1bfd3;color:#b34070}
.text-button{color:#ad7890}.text-button:hover{color:#b13c6b}.play-header>span{color:#a18292}
.stats>div>span{color:#ad8294}.stats small{color:#b497a5}.stats strong{color:#9e3761}.progress-track{background:#fce2ed}.progress-track>div{background:linear-gradient(90deg,#ef9abb,#d75b8b)}
.question-top{color:#b38b9e}.question-top>span:last-child{color:#d26794}.clue{color:#534653}.answer-slot{color:#c091ad;border-color:#edc4d8}.answer-slot.current{border-color:#df729e}.answer-slot.correct{color:#b23b70;border-color:#d36d99}
.hint-line>span{color:#b38e9f}.hint-button{background:#fff0f6;border-color:#f1c6db;color:#b3638b}.hint-button:hover:enabled{background:#ffe1ed}.feedback,.entry-status,.ranking-status{color:#b64e76}
.tile{background:linear-gradient(145deg,#fff8fc,#fbe7f1);border-color:#f0cddd;color:#9e4b76;box-shadow:inset 0 1px 0 #fff9fc}.tile:hover:enabled{background:#fbd1e4;border-color:#e5a3c0}.tile:active:enabled{background:#f5bdd7}.tile.empty{background:#fffafb;border-color:#f9edf3;color:transparent}.tile.wrong{background:#ffe0e6;border-color:#e8a4b7}
.course-ranking h2{color:#b24773}.ranking th{color:#b68a9e;border-color:#f6dce7}.ranking td{border-color:#fae8ef}.ranking td:nth-child(2){color:#b18c9e}.rank-number,.ranking tr:nth-child(2) .rank-number,.ranking tr:nth-child(3) .rank-number{background:#ffe6b9;color:#a8794d}.ranking tr.my-record{background:#ffe1ef}.ranking tr.my-record strong{color:#ad386a}.ranking .my-record .rank-number{background:#f3b7d1;color:#a52e61}.me-label{background:#f5bed6;color:#a13565}.ranking td.empty-ranking{color:#b796a7}
dialog{background:#fff9fc;border-color:#f2c5d8;color:#51444f;box-shadow:0 20px 80px #bb5a8824}dialog::backdrop{background:#8d557a40}.course-dialog-inner{position:relative;background:linear-gradient(135deg,#fffafd,#fff0f7)}.course-dialog-inner::before{content:"";position:absolute;right:20px;top:5px;width:49px;height:49px;background:url('assets/인성이.png') center/contain no-repeat;mix-blend-mode:multiply;pointer-events:none}.course-options button{background:#fff4f9;border-color:#f2cedd;color:#b14a79}.course-options button[aria-pressed=true]{background:linear-gradient(120deg,#e77ba5,#d4588e);border-color:#d66d98;color:#fff8fc}
@keyframes hit{50%{background:#f8c8df;transform:scale(.95)}}
.admin-screen{max-width:490px;margin:42px auto 0}.admin-card{position:relative;background:linear-gradient(135deg,#fffafd,#fff4fa);border:1px solid #f2c7d9;border-radius:23px;padding:25px;box-shadow:0 12px 40px #da9ab91a}.admin-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.admin-heading h1{font-size:23px;margin:0;color:#98426b;letter-spacing:-.5px}.admin-card .primary{margin-top:20px}.admin-count{font-size:14px;color:#9f6b86;margin:0}.admin-count strong{font-size:25px;color:#b23e72;margin:0 7px}.admin-status{font-size:11px;line-height:1.6;color:#b24f79;overflow-wrap:anywhere;margin:13px 0 0}.admin-status:empty{display:none}#admin-logout{display:block;margin:15px auto 0}.admin-confirm{padding:25px}.admin-confirm h2{font-size:19px;margin:0 0 15px}.admin-confirm p{font-size:12px;line-height:1.8;color:#98768c}.admin-confirm-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:20px}.admin-confirm-actions .primary{justify-content:center}.admin-card::before{content:"";position:absolute;top:-35px;right:55px;width:68px;height:68px;background:url('assets/인성이.png') center/contain no-repeat;mix-blend-mode:multiply;pointer-events:none}@media(max-width:650px){.admin-screen{margin-top:30px}.admin-card{padding:22px}}
body{background-color:#fff1f6;background-image:url('assets/핑크배경.svg'),radial-gradient(ellipse at 12% 12%,#fff9fb 0,transparent 48%),radial-gradient(ellipse at 90% 80%,#ffe2ee 0,transparent 52%);background-size:760px 920px,100% 100%,100% 100%;background-repeat:repeat,no-repeat,no-repeat;background-attachment:fixed}body::before,body::after{display:none}.admin-card::before{top:5px;right:67px;width:49px;height:49px}
