:root{--ink:#183c4a;--navy:#174858;--deep:#07556c;--aqua:#15bac5;--aqua-dark:#078fa7;--gold:#ffc45b;--coral:#ff7e63;--ivory:#fff8e9;--paper:#fffefa;--soft:#edfaff;--edge:#c9e6e6;--shadow:0 14px 40px rgba(26,97,113,.16)}
*{box-sizing:border-box}
html{min-height:100%;scroll-behavior:smooth}
body{margin:0;min-height:100vh;font-family:Pretendard,"Apple SD Gothic Neo","Noto Sans KR","Malgun Gothic",system-ui,sans-serif;color:var(--ink);background:linear-gradient(145deg,#bcefee 0%,#e4fcf5 38%,#fff2d7 100%);-webkit-font-smoothing:antialiased}
button,input{font:inherit}
button{cursor:pointer}
button:focus-visible,input:focus-visible{outline:3px solid #fcbe54;outline-offset:3px}
.ambient{position:fixed;pointer-events:none;border-radius:50%;filter:blur(6px);opacity:.6}
.ambient-a{width:470px;height:470px;top:-185px;left:-150px;background:radial-gradient(circle,#a4e9ff,transparent 69%)}
.ambient-b{width:510px;height:510px;bottom:-205px;right:-170px;background:radial-gradient(circle,#ffdf91,transparent 72%)}
.app-shell{position:relative;max-width:500px;min-height:100vh;margin:0 auto;background:linear-gradient(180deg,#fcfff9 0%,#eef9f6 100%);box-shadow:0 0 80px rgba(34,101,114,.22);overflow:hidden}
.global-header{height:72px;padding:12px 21px;display:flex;align-items:center;gap:11px;background:#ffffffd9;border-bottom:1px solid #daf3f0;position:relative;z-index:2}
.brand-mark{width:39px;height:39px;background:linear-gradient(135deg,#51cdd3,#079ab6);border:3px solid #ffecb1;border-radius:12px;display:grid;place-items:center;transform:rotate(-9deg);box-shadow:0 3px 0 #11879e,0 5px 12px #0e7e9540}
.brand-mark span{color:#fff0a7;font-size:26px;transform:rotate(9deg);text-shadow:0 2px 0 #128b92}
.brand-text{display:flex;flex-direction:column;gap:0;line-height:1.1;letter-spacing:-.7px}.brand-text span{font-size:11px;font-weight:900;color:#55a4b1}.brand-text strong{font-size:18px;font-weight:1000;color:#1e6170}
.brand-tag{margin-left:auto;color:#6796a1;background:#edf8f9;border:1px solid #d5edf0;font-size:10px;font-weight:850;padding:6px 9px;border-radius:30px}
.view[hidden],.overlay[hidden],button[hidden]{display:none!important}
.entry{padding-bottom:17px}
.entry-illustration{height:345px;position:relative;overflow:hidden;background:#35b2df}
.entry-illustration img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 61%}
.entry-illustration:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#0f728ca8 0%,#197c8562 44%,#094e4470 100%)}
.entry-shine{position:absolute;inset:-30% -60% 25% 14%;background:linear-gradient(130deg,transparent 28%,#fffad63a 51%,transparent 61%);transform:rotate(-10deg);z-index:1}
.entry-hero-text{position:absolute;z-index:2;left:29px;right:18px;top:36px;color:#fff;filter:drop-shadow(0 2px 8px #00556a75)}
.eyebrow{font-size:11px;color:#4a98a4;font-weight:950;letter-spacing:1.1px}.eyebrow.light{color:#eaffef}.mini-spark{color:#ffe37e}
.entry-hero-text h1{font-size:clamp(29px,8vw,42px);line-height:1.25;letter-spacing:-2.4px;margin:14px 0;font-weight:1000}.entry-hero-text h1 em{font-style:normal;color:#fff0a3;text-shadow:0 3px 0 #9b7154}
.entry-hero-text p{line-height:1.65;font-size:13px;color:#f3ffff;font-weight:750;margin:0}
.floating-stars{position:absolute;z-index:2;right:28px;bottom:19px;color:#fff3a7;font-size:22px;letter-spacing:12px;text-shadow:0 1px 12px #258cae}.floating-stars span{font-size:37px}
.entry-form-panel{margin:-18px 16px 0;position:relative;z-index:2;background:linear-gradient(180deg,#ffffff,#fafff7);border:2px solid #dcf1e6;border-radius:25px;padding:23px 20px 20px;box-shadow:0 7px 0 #c6e2d5,0 18px 30px #1b847722}
.form-heading{display:flex;align-items:center;gap:12px;margin-bottom:22px}.step-number{flex:none;border-radius:13px;width:41px;height:41px;display:grid;place-items:center;background:#dff8fa;color:#0793a2;font-weight:1000;font-size:17px;border:2px solid #b8e7e9}
.form-heading span{font-size:11px;letter-spacing:.5px;color:#79a2a5;font-weight:900}.form-heading h2{font-size:19px;letter-spacing:-.8px;margin:3px 0 0;color:#16495b}
.form-block{margin:0 0 22px}.field-title{font-size:13px;font-weight:950;color:#315d68;display:block;margin-bottom:11px}
.tier-selector{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.tier-choice{min-width:0;min-height:98px;border:2px solid #d3eae8;border-radius:15px;background:#f5fbf8;color:#50757c;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;transition:transform .18s,border .18s,background .18s,box-shadow .18s}
.tier-choice:hover{transform:translateY(-3px)}.tier-choice.active{background:linear-gradient(180deg,#ecffff,#d9f7f1);border-color:#19abb3;box-shadow:0 3px 0 #56c4c6,0 0 0 3px #dbfbf9}
.tier-choice strong{font-size:18px;font-weight:1000;letter-spacing:-1px}.tier-choice small{font-size:10px;font-weight:850;opacity:.75}
.tier-icon{font-size:21px;line-height:1}.tier-icon.crown{color:#f3a942}.tier-icon.town{color:#14a5c4}.tier-icon.village{color:#63ba77}.tier-choice.active strong{color:#126779}
.rank-input-wrap{border:2px solid #c7e7e6;background:#f8fefd;border-radius:14px;display:flex;align-items:center;padding:0 15px;box-shadow:inset 0 2px 2px #277e8010}
.rank-input-wrap:focus-within{border-color:#15a8bc}.rank-input-wrap input{width:100%;border:0;outline:0!important;box-shadow:none;background:transparent;color:#195c70;font-size:28px;font-weight:1000;letter-spacing:-.5px;height:58px;min-width:0}
.rank-input-wrap span{font-size:14px;font-weight:900;color:#7d9da3}.rank-input-wrap input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.rank-presets{display:flex;gap:7px;margin-top:10px}.rank-presets button{border:1px solid #d6e5de;background:white;border-radius:99px;padding:7px 10px;flex:1;font-size:11px;font-weight:850;color:#78969a}.rank-presets button.selected{background:#def6f6;border-color:#7bcacc;color:#08869c}
.entry-preview{display:flex;align-items:center;gap:10px;background:#edf9f6;border:1px dashed #a9d9d4;border-radius:14px;padding:14px 12px;margin-top:5px;color:#1b6670}.preview-glyph{font-size:22px;color:#edae3e}.entry-preview>div:not(.preview-divider){display:flex;flex-direction:column;gap:4px}.entry-preview small{font-size:10px;color:#7d9e9f;font-weight:850}.entry-preview strong{font-size:13px;letter-spacing:-.5px;font-weight:950}.preview-divider{width:1px;height:30px;background:#b7ddda;margin:0 2px}
.primary-button{width:100%;display:flex;align-items:center;justify-content:center;gap:18px;border:2px solid #eea444;border-radius:16px;padding:15px 13px;background:linear-gradient(180deg,#ffe28a 0%,#ffc252 55%,#f8a93d 100%);box-shadow:0 5px 0 #d3832b,0 11px 16px #df962733;color:#704318;font-size:19px;font-weight:1000;letter-spacing:-.7px;margin-top:20px;transition:transform .16s,box-shadow .16s}.primary-button:hover{transform:translateY(-2px)}.primary-button:active{transform:translateY(4px);box-shadow:0 1px 0 #d3832b}.button-arrow{background:#fff8d3;border-radius:50%;width:31px;height:31px;display:grid;place-items:center;color:#d68d1d}
.form-note{text-align:center;color:#7f9b9e;font-size:11px;font-weight:750;margin:18px 0 0}
.site-footer{text-align:center;font-size:10px;line-height:1.8;color:#8ea4a2;margin:20px 20px 25px}
/* Results: a two-window, vertical world map with a permanent user-reward bridge. */
.result{padding-bottom:10px}.result-heading{display:flex;align-items:center;gap:11px;padding:20px 17px 12px}.round-icon-button{flex:none;width:41px;height:41px;border:2px solid #d1e8e8;border-radius:13px;background:white;color:#326e7e;font-size:21px;font-weight:900;display:grid;place-items:center;box-shadow:0 2px 0 #cee9e9}.round-icon-button:hover{background:#effafa}
.heading-center{min-width:0;flex:1}.heading-center h1{font-size:18px;letter-spacing:-1px;font-weight:1000;margin:4px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.map-context{margin:0 16px 14px;border-radius:99px;background:#e7f6f4;padding:9px 12px;display:flex;align-items:center;gap:7px;color:#51828a;font-size:11px;font-weight:850}.blinking-dot{height:7px;width:7px;border-radius:50%;background:#2cbaa3;box-shadow:0 0 0 4px #b8eee8;animation:pulse 2.5s infinite}@keyframes pulse{50%{box-shadow:0 0 0 7px #c9f5f000}}
.map-world{position:relative;margin:0 12px 0;border:5px solid #e9faf2;border-radius:27px;box-shadow:0 8px 0 #caeae5,0 18px 30px #248c862b;overflow:hidden;background:#daedf1}
.region{height:345px;position:relative;overflow:hidden;background:#b4e2ed;isolation:isolate}
.region-upper{border-bottom:5px solid #84d6ce}.region-lower{border-top:5px solid #ffd881}
.scenery{position:absolute;inset:0;background-size:cover;background-position:center 55%;transform:scale(1.012);transition:transform .65s,opacity .4s}
.region-upper .scenery{background-position:center 48%}.region-lower .scenery{background-position:center 62%}
.scenery-tint{position:absolute;inset:0;pointer-events:none}.upper-tint{background:linear-gradient(180deg,#003e4e4a 0%,transparent 31%,#0f5d6770 100%)}.lower-tint{background:linear-gradient(180deg,#00556950 0%,transparent 43%,#0a667856 100%)}
.region-top-label{position:absolute;top:16px;left:15px;z-index:2;display:flex;align-items:center;gap:8px;background:#fffdf0eb;border:2px solid #ffdea1;box-shadow:0 3px 0 #d5a65e99,0 5px 11px #1a576155;border-radius:99px;padding:8px 13px 8px 8px;color:#805c35;font-size:13px;font-weight:1000;letter-spacing:-.5px}
.region-pictogram{display:grid;place-items:center;width:27px;height:27px;border-radius:50%;background:linear-gradient(#ffe28a,#ffc45c);color:#a96a13;font-size:17px}.lower-top-label{top:20px}
.region-card{position:absolute;z-index:2;left:21px;right:21px;bottom:35px;background:linear-gradient(180deg,#fffef7f7,#fffae8f7);border:2px solid #ffdf9d;border-radius:20px;padding:16px 18px 14px;color:#294f5d;box-shadow:0 5px 0 #dba956,0 12px 28px #1b4e5a64;backdrop-filter:blur(6px)}
.card-direction{display:flex;align-items:center;gap:7px;color:#aa8144;font-size:12px;font-weight:950}.direction-arrow{display:grid;place-items:center;background:#dcf9e1;color:#289758;border-radius:50%;width:24px;height:24px;font-size:20px;font-weight:1000}.direction-arrow.down{background:#e9f3ff;color:#488cc1}.card-pill{font-size:10px;color:#b18442;font-weight:900;margin-left:auto;background:#fff1ce;border-radius:99px;padding:4px 8px}
.card-cutoff{font-size:31px;line-height:1.14;letter-spacing:-1.8px;font-weight:1000;color:#147a83;margin:9px 0 8px}.card-cutoff.bad{font-size:25px;color:#a5706b}.card-hint{font-size:11px;line-height:1.6;color:#798c88;font-weight:800;word-break:keep-all}.detail-chip{border:0;background:transparent;color:#0d8594;font-size:12px;font-weight:1000;margin-top:12px;padding:2px 0}.detail-chip span{display:inline-grid;place-items:center;width:17px;height:17px;border-radius:50%;background:#d5f2ec;font-size:19px;margin-left:3px;vertical-align:middle}
.lower-card{bottom:27px}.region.swapping .scenery{animation:city-whoosh .52s cubic-bezier(.25,.7,.18,1) both}.region.swapping .region-card{animation:card-bounce .51s both}
@keyframes city-whoosh{0%{opacity:.2;transform:translateY(-28px) scale(1.09);filter:blur(5px)}70%{opacity:1;filter:blur(0)}100%{opacity:1;transform:translateY(0) scale(1.012)}}
@keyframes card-bounce{0%{opacity:0;transform:translateY(24px) scale(.94)}75%{opacity:1;transform:translateY(-5px)}100%{transform:translateY(0)}}
.more-level{position:absolute;z-index:3;right:14px;top:67px;border:2px solid #fff9d5;border-radius:999px;background:linear-gradient(180deg,#1c99b8,#066b90);color:white;padding:9px 12px;box-shadow:0 3px 0 #055c79,0 5px 18px #0c71876b;font-size:11px;font-weight:1000}.more-level span{background:#ffffff28;border-radius:99px;padding:3px 6px;margin-left:2px}.more-level:hover{filter:brightness(1.1)}.more-down{top:auto;bottom:208px}
.region.empty{background:linear-gradient(180deg,#bbf0f3,#dbf8ef 65%,#f5fcf0)}.region.empty:before{content:"";position:absolute;left:10%;top:24%;width:145px;height:53px;background:#fff9eb94;border-radius:50%;filter:blur(4px);box-shadow:190px 70px 0 #fff9eb94,80px 135px 0 #fff9eb66}.region.empty .scenery,.region.empty .scenery-tint,.region.empty .region-card,.region.empty .region-top-label{display:none}.region.empty:after{content:"";position:absolute;bottom:22px;left:29%;right:29%;height:4px;border-radius:20px;background:#b2dcdf55}
.center-bridge{position:relative;z-index:5;margin:-25px 0 -25px;pointer-events:none;display:flex;flex-direction:column;align-items:center}.my-reward-button,.reward-ticker{pointer-events:auto}
.my-reward-button{position:relative;width:min(calc(100% - 24px),380px);border:3px solid #fcedb4;border-radius:23px;background:linear-gradient(175deg,#21b8ca 0%,#1197af 54%,#087995 100%);color:white;box-shadow:0 5px 0 #0a697b,0 9px 0 #e4b861,0 14px 23px #1057668c;display:flex;align-items:center;gap:9px;padding:12px 12px;text-align:left;transition:transform .18s}
.my-reward-button:hover{transform:translateY(-3px)}.my-reward-button:active{transform:translateY(2px)}.bridge-star{flex:none;width:42px;height:42px;display:grid;place-items:center;border-radius:14px;border:2px solid #ffdc83;background:linear-gradient(135deg,#ffed95,#f5b84f);color:#b97c1a;transform:rotate(-8deg);font-size:25px;box-shadow:0 2px 0 #b77720}.my-reward-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}.my-reward-text small{color:#d9fdf5;font-size:10px;font-weight:850;white-space:nowrap}.my-reward-text small span{opacity:.8}.my-reward-text strong{color:#fffdf4;font-size:20px;letter-spacing:-1px;font-weight:1000;text-shadow:0 2px 0 #08768b}.bridge-arrow{flex:none;background:#ffffff31;border-radius:50%;width:30px;height:30px;display:grid;place-items:center;font-size:21px;font-weight:900}
.reward-ticker{margin:11px auto 0;background:#fffef4f5;border:2px solid #e4eacf;border-radius:99px;padding:9px 14px;display:flex;align-items:center;gap:7px;color:#3c6e76;font-size:11px;font-weight:1000;box-shadow:0 4px 12px #204c5b24;white-space:nowrap}
.coin-mini{font-size:13px;display:inline-grid;place-items:center;min-width:18px;min-height:18px;border-radius:6px;line-height:1}.coin-mini.pink{background:#ffe2ee;color:#c64c8e}.coin-mini.brown{background:#f8e5c5;color:#95602a}.coin-mini.gold{background:#fff0a7;color:#bd8b15}
.result-guide{background:#fffdf6;border:2px solid #e4efe2;border-radius:18px;padding:18px;margin:20px 16px 8px;box-shadow:0 4px 0 #dcead9}.guide-heading{display:flex;align-items:center;gap:8px}.guide-heading h2{font-size:15px;letter-spacing:-.4px;margin:0}.guide-icon{color:#eeb94d;font-size:19px}.result-guide p{color:#758e91;font-size:12px;line-height:1.8;word-break:keep-all;margin:10px 0}.result-guide strong{color:#237d91}.legend{display:flex;gap:12px;flex-wrap:wrap;font-size:10px;color:#789396;font-weight:800}.legend span{display:flex;align-items:center;gap:4px}.legend-dot{height:7px;width:7px;border-radius:50%;display:inline-block}.yes{background:#31bda3}.no{background:#e8a5a0}.neutral{background:#accdd0}.edit-button{width:100%;border:2px solid #d3e9e5;background:#f0faf8;color:#277d87;border-radius:12px;padding:11px;font-weight:900;font-size:12px;margin-top:15px}
/* Bottom sheet: detailed reward comparisons and user controls. */
.overlay{position:fixed;z-index:100;inset:0;display:flex;align-items:flex-end;justify-content:center}.overlay-curtain{position:absolute;inset:0;background:#0a2b3cb3;backdrop-filter:blur(3px);animation:veil-in .22s both}@keyframes veil-in{from{opacity:0}to{opacity:1}}
.bottom-sheet{position:relative;width:min(100%,500px);max-height:min(88dvh,850px);overflow:auto;background:linear-gradient(180deg,#fffefa,#effaf4);border:3px solid #f0e9c9;border-bottom:0;border-radius:27px 27px 0 0;box-shadow:0 -16px 60px #061d2e65;padding:10px 20px max(24px,env(safe-area-inset-bottom));animation:sheet-in .34s cubic-bezier(.2,.75,.15,1) both}
@keyframes sheet-in{from{transform:translateY(80%)}to{transform:translateY(0)}}.sheet-grabber{height:5px;width:43px;margin:1px auto 16px;background:#c7dad6;border-radius:50px}
.sheet-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:13px}.sheet-header h2{font-size:21px;font-weight:1000;letter-spacing:-.8px;margin:4px 0}.sheet-close{display:grid;place-items:center;border:2px solid #dce8df;border-radius:13px;background:white;color:#58858b;font-size:28px;width:38px;height:38px;line-height:1}
.sheet-summary{border:2px solid #c5ece7;background:linear-gradient(135deg,#e9fffd,#dff7ef);border-radius:17px;padding:16px;margin-bottom:15px}.sheet-summary small{font-size:11px;color:#528c92;font-weight:900}.sheet-summary strong{display:block;font-size:24px;font-weight:1000;color:#126d7e;margin:6px 0}.sheet-summary p{color:#649299;font-size:12px;line-height:1.7;margin:0}.sheet-summary.negative{background:#fff6ee;border-color:#f3d8c0}.sheet-summary.negative strong{color:#b47868}
.reward-list{display:flex;flex-direction:column;gap:9px}.reward-row{border:1px solid #deebe9;background:white;border-radius:12px;padding:13px;display:grid;grid-template-columns:31px minmax(0,1fr) auto;align-items:center;gap:10px}.currency-icon{height:30px;width:30px;display:grid;place-items:center;border-radius:9px;font-size:20px}.currency-icon.pink{background:#fce2ea;color:#b34c78}.currency-icon.ring{background:#f5e3cb;color:#a36c32}.currency-icon.medal{background:#fff3b5;color:#b5850d}.reward-label{font-size:11px;color:#6b8b8f;font-weight:850}.reward-amount{font-size:17px;letter-spacing:-.5px;color:#244b5b;font-weight:1000;margin-top:3px}.reward-side{text-align:right}.reward-side small{font-size:10px;color:#9badab;display:block}.reward-diff{font-size:14px;font-weight:1000;margin-top:4px}.reward-diff.pos{color:#18a284}.reward-diff.neg{color:#d3776b}.reward-diff.flat{color:#94a4a0}
.sheet-divider{height:1px;background:#d9e9e4;margin:16px 0}.sheet-minor-title{font-size:13px;color:#385f65;font-weight:1000;margin:15px 0 9px}.comparison-stats{display:grid;grid-template-columns:1fr 1fr;gap:9px}.comparison-stats>div{background:#f3faf6;border:1px solid #dcece4;border-radius:11px;padding:12px}.comparison-stats small{font-size:10px;color:#84a1a0;display:block}.comparison-stats strong{font-size:13px;color:#326573;display:block;margin:5px 0 0}.sheet-tip{font-size:11px;line-height:1.7;color:#8e9e99;background:#f5f7ed;border-left:3px solid #ead28b;padding:9px 11px;border-radius:6px;margin:14px 0 0}
.settings-group{padding:12px 0;border-bottom:1px solid #e1eae5}.settings-group h3{font-size:14px;margin:0 0 5px;color:#416b72}.settings-group p{font-size:11px;margin:0 0 12px;line-height:1.55;color:#8c9f9b}.preset-group{display:flex;gap:6px;flex-wrap:wrap}.preset-button{border:1px solid #cce4dc;background:#f7fbf5;color:#507f80;border-radius:99px;padding:9px 11px;font-size:11px;font-weight:900}.preset-button.active{background:#16aeb8;color:white;border-color:#0da6b1}.slider-row{display:grid;grid-template-columns:minmax(0,1fr) 55px;align-items:center;gap:10px;margin:14px 0}.slider-row label{grid-column:1 / -1;display:flex;justify-content:space-between;font-size:11px;color:#41666e;font-weight:900}.slider-row input[type=range]{width:100%;accent-color:#0facb8;height:22px;margin:0}.slider-row output{text-align:right;color:#057f90;font-size:12px;font-weight:1000}
.settings-number{height:43px;width:100%;border:2px solid #cde7e4;border-radius:10px;background:#fff;padding:8px 12px;font-size:17px;color:#1d5661;font-weight:1000}.switch-row{display:flex;gap:8px}.switch-row button{border:1px solid #cce6de;background:#fff;border-radius:10px;padding:10px 12px;color:#6d9191;font-size:12px;font-weight:900;flex:1}.switch-row button.active{background:#def6f1;border-color:#50c7b7;color:#087e88}.sheet-action{border:0;border-radius:13px;background:linear-gradient(#37c4c4,#0690a4);color:#fff;font-weight:1000;font-size:14px;padding:15px;width:100%;margin-top:18px;box-shadow:0 4px 0 #066a85}
@media(max-width:390px){.entry-form-panel{margin-left:12px;margin-right:12px;padding-left:15px;padding-right:15px}.entry-hero-text{left:22px}.region-card{left:13px;right:13px;padding:14px}.card-cutoff{font-size:27px}.my-reward-button{width:calc(100% - 15px)}.reward-ticker{font-size:10px;gap:4px;padding:8px}.more-level{right:8px;font-size:10px}.region-top-label{font-size:11px;left:9px}}
@media(min-width:760px){body{padding:28px 0}.app-shell{border:7px solid #fff9e8;border-radius:35px;min-height:calc(100vh - 56px)}.entry-illustration{height:375px}.region{height:380px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;scroll-behavior:auto!important;transition-duration:.01ms!important}}
