@charset "UTF-8";
:root{--kraft:#E8D9BF;--cream:#FBF5EA;--paper:#F3E9D7;--ink:#2D2620;--soft:#6B5F52;--red:#D9412E;--green:#3E9B5B;--navy:#2F4A7A;--gold:#E6B64C;--shadow:0 8px 22px #58432819;--heading:'Do Hyeon','Pretendard Variable',sans-serif}
*{box-sizing:border-box}html{background:var(--kraft);color:var(--ink);font-family:'Pretendard Variable',Pretendard,'Apple SD Gothic Neo','Malgun Gothic',sans-serif;font-size:20px;word-break:keep-all;overflow-wrap:anywhere;overscroll-behavior:none}body{margin:0;background:radial-gradient(ellipse at 15% 0%,#fff8e880,transparent 65%),repeating-linear-gradient(34deg,#83623605 0 1px,transparent 1px 5px);min-height:100dvh}button{font:inherit;color:inherit;border:0;cursor:pointer;touch-action:manipulation;user-select:none;-webkit-tap-highlight-color:transparent}button:active:not(:disabled){translate:0 2px;scale:.98}button:focus-visible{outline:4px solid var(--navy);outline-offset:4px}button:disabled{cursor:default}img{display:block;width:100%;object-fit:contain;user-select:none}h1,h2,h3,p,figure{margin:0}h1,h2,h3{font-family:var(--heading);font-weight:400;line-height:1.15}h1,h2{font-size:clamp(40px,4.5vw,64px)}h3{font-size:30px}p{line-height:1.4}.icon{width:30px;height:30px;flex-shrink:0;vertical-align:middle}.screen{min-height:100dvh;padding:22px max(24px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(24px,env(safe-area-inset-left));max-width:1500px;margin:auto;outline:none;animation:page-in .25s ease-out}.topbar,.title-top{display:flex;align-items:center;gap:18px;min-height:64px}.topbar h1{font-size:clamp(32px,3.5vw,44px);flex:1}.top-actions{display:flex;gap:10px}.icon-button{display:inline-flex;align-items:center;justify-content:center;min-width:56px;height:56px;background:var(--cream);border:1px solid #9e886849;border-radius:18px;box-shadow:0 3px 0 #baa58550}.primary,.secondary,.danger{min-height:64px;display:inline-flex;justify-content:center;align-items:center;gap:12px;padding:14px 28px;border-radius:18px;font-size:clamp(22px,2.5vw,28px);font-weight:750;line-height:1.25}.primary{background:var(--navy);color:var(--cream);box-shadow:0 5px 0 #203654}.danger{background:var(--red);color:var(--cream);box-shadow:0 5px 0 #aa2f20}.secondary{background:var(--cream);border:1.5px solid #b9a58b;box-shadow:0 4px 0 #c9b59655}.primary:disabled,.danger:disabled{opacity:.6}.text-button{background:transparent;min-height:56px;padding:8px 14px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:22px}.eyebrow{font-size:20px;letter-spacing:.08em;color:var(--soft);font-weight:700}.chip{display:inline-flex;align-items:center;gap:8px;min-height:34px;padding:4px 14px;border:1.5px solid var(--group);border-radius:99px;color:var(--ink);background:color-mix(in srgb,var(--group) 15%,var(--cream));font-size:20px;font-weight:750;white-space:nowrap}.chip:before{content:'';width:10px;height:10px;border-radius:50%;background:var(--group)}.polaroid{background:#fffaf2;padding:10px 10px 14px;box-shadow:var(--shadow);border:1px solid #d5c5ac;position:relative}.tape{position:absolute;width:74px;height:20px;left:50%;top:-9px;transform:translateX(-50%) rotate(-4deg);background:repeating-linear-gradient(45deg,#c6b5728c 0 5px,#e8d696ac 5px 10px);box-shadow:0 1px 2px #78643f14}.small-stamp{display:inline-block;border:2px solid var(--red);color:var(--red);padding:7px 14px;transform:rotate(-4deg);font-size:18px;font-weight:800;letter-spacing:.04em}.title-top{justify-content:space-between}.title-layout{display:grid;grid-template-columns:1fr 1.15fr;align-items:center;gap:40px;position:relative;min-height:calc(100dvh - 170px)}.title-copy{padding:0 0 30px 26px;position:relative;z-index:1}.title-copy h1{font-size:clamp(56px,6vw,86px);letter-spacing:-.04em;line-height:1.12;margin:24px 0}.title-copy h1 span{color:var(--red)}.logo-glass{width:62px;height:62px;transform:rotate(-15deg);margin-left:12px}.title-line{font-size:24px;color:var(--soft);margin-bottom:30px}.title-buttons{display:flex;gap:14px;flex-wrap:wrap}.title-buttons .primary{min-width:180px}.count{font-size:20px;color:var(--soft)}.cover{transform:rotate(3deg);margin:0 20px 40px 0;padding:14px 14px 24px}.cover img{aspect-ratio:3/2;object-fit:cover}.cover figcaption{font-family:Gaegu,cursive;font-size:28px;text-align:center;margin-top:12px}.cover .tape{width:115px;height:30px}.title-owl{position:absolute;width:175px;right:10px;bottom:12px;transform:rotate(-9deg);filter:drop-shadow(2px 6px 4px #75634518);border-radius:50%}.title-footer{display:flex;justify-content:space-between;border-top:1px dashed #9b856a;padding-top:14px;color:var(--soft);font-size:18px}.tiny-note{font-size:16px;letter-spacing:.14em}
.passport{position:relative;max-width:1120px;margin:16px auto 0;background:linear-gradient(90deg,#fff9ed,#efe2cd 49%,#d5c4aa 50%,#fff9ed 51%,#f5e9d6);border:2px solid #baa284;border-radius:20px 22px 24px 20px;padding:22px 30px;box-shadow:0 12px 0 #aa8c6650,0 15px 35px #604b3624}.passport-heading{display:flex;justify-content:space-between;margin-bottom:16px;font-size:20px;color:var(--navy)}.stamp-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px 30px;position:relative;z-index:1}.stamp-slot{min-height:145px;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:#fcf5e359;border:2px dashed #b3a288;border-radius:18px;padding:9px 8px;font-size:20px}.case-no{align-self:flex-start;color:var(--soft);font-size:18px}.stamp-scene{position:relative;width:66px;height:66px}.stamp-scene img{width:100%;height:100%;border-radius:50%;object-fit:cover;border:3px solid #eee0c8}.stamp-slot strong{font-size:24px}.slot-state{font-size:16px;line-height:1.25;color:var(--soft)}.slot-state .icon{width:20px;height:20px}.locked{opacity:.45}.locked .stamp-scene img{filter:grayscale(1)}.lock-overlay{position:absolute;inset:15px;color:var(--ink);background:#fff6e6ba;border-radius:8px;padding:3px;width:38px;height:38px}.next-case{background:#fff9ed;outline:3px solid #2f4a7a55;animation:case-pulse 2.5s ease-in-out infinite}.solved-stamp{position:absolute;right:10px;top:46px;color:var(--group);border:3px double var(--group);border-radius:12px;padding:4px 8px;transform:rotate(-13deg);background:#fff8edcf;font-family:var(--heading);font-size:22px;display:flex;flex-direction:column;align-items:center;box-shadow:0 1px 3px #0001}.stars{display:inline-flex;gap:5px;color:var(--gold)}.stars .icon{width:35px;height:35px;stroke-width:1.5}.stars .earned{fill:var(--gold);stroke:#a67e28}.stars .empty{color:#b4a48e;opacity:.4}.solved-stamp .stars .icon{width:22px;height:22px}.page-footer{text-align:center;margin-top:20px}
.intro-layout{display:grid;grid-template-columns:1.06fr 1fr;gap:38px;align-items:center;max-width:1220px;margin:24px auto 0}.intro-photo{transform:rotate(-2deg);padding:12px 12px 30px}.intro-photo img{aspect-ratio:3/2;object-fit:cover}.intro-info>div:first-child{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.intro-info h2{margin:14px 0 18px;font-size:clamp(44px,5.2vw,68px)}.facts{display:flex;flex-direction:column;gap:12px}.facts>div{display:flex;align-items:center;gap:16px;min-height:46px;background:#fffaf27a;border-radius:12px;padding:8px 12px;font-size:clamp(22px,2.2vw,28px);line-height:1.3}.facts .icon{color:var(--soft);width:34px;height:34px}.intro-travelers{display:flex;align-items:flex-start;gap:12px;margin:20px 0 12px}.intro-travelers figure{flex:1;max-width:95px;text-align:center}.intro-travelers img{aspect-ratio:1;border:5px solid var(--cream);border-radius:8px;box-shadow:var(--shadow)}.intro-travelers figcaption{font-size:16px;margin-top:6px}.mission{font-size:28px;margin:12px 0 18px}.mission strong{color:var(--red)}.tutorial{display:flex;align-items:center;gap:12px;max-width:500px;padding:6px 18px 6px 8px;background:var(--cream);border:2px solid #baa98c;border-radius:24px;box-shadow:var(--shadow);margin:20px auto 0;font-family:Gaegu,'Malgun Gothic',sans-serif;font-size:28px;min-height:72px}.tutorial img{width:64px;height:64px;border-radius:50%}.tutorial>.icon{color:var(--green);width:22px;height:22px}.screen-intro .tutorial,.screen-reveal .tutorial{margin-top:16px}.loading-state{min-height:80dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:24px}.loading-state>img{width:210px;animation:case-pulse 2s infinite}
.screen-board{height:100dvh;min-height:0;display:flex;flex-direction:column;padding:14px 24px 8px;gap:10px}.board-header{display:flex;align-items:center;gap:16px;min-height:66px;padding:0 6px}.case-label{font-family:var(--heading);font-size:28px;white-space:nowrap}.claim-chip{display:flex;align-items:center;justify-content:center;gap:10px;background:var(--cream);border:2px solid var(--group);border-radius:16px;font-size:26px;min-height:56px;padding:8px 18px}.claim-chip .icon{width:24px;height:24px}.lives{display:inline-flex;gap:10px;margin-left:auto;white-space:nowrap}.glass{display:inline-block;position:relative;color:var(--navy);width:38px;height:42px}.glass>.icon{width:38px;height:38px}.glass.spent{opacity:.19;color:var(--soft)}.fake-count{font-size:24px;white-space:nowrap}.lineup{display:flex;flex-direction:column;flex:1;min-height:0;background:#fff8e855;padding:0 10px 8px;border:1px solid #bca38566;border-radius:22px;box-shadow:var(--shadow);gap:8px}.column-head,.traveler-row{display:grid;grid-template-columns:minmax(100px,.7fr) minmax(150px,1.6fr) minmax(145px,1fr) minmax(185px,1.65fr) minmax(120px,.8fr);gap:14px}.column-head{min-height:48px;align-items:center;padding:0 12px;font-size:22px;color:var(--soft)}.column-head>span{display:flex;align-items:center;justify-content:center;gap:10px}.column-head .icon{width:26px;height:26px}.traveler-row{flex:1;min-height:0;align-items:stretch;padding:8px 12px;background:var(--cream);border-radius:18px;border:1px solid #ddcbb0;box-shadow:0 3px 0 #b99a7230}.traveler{display:flex;flex-direction:column;justify-content:center;align-items:center;position:relative;min-height:0;gap:3px;text-align:center}.portrait{padding:3px;width:auto;height:calc(100% - 29px);max-height:105px;aspect-ratio:1;transform:rotate(-3deg)}.portrait img{width:100%;height:100%;object-fit:cover}.traveler>strong{font-size:20px;line-height:1.1}.evidence{position:relative;background:transparent;border-radius:12px;padding:0;min-width:0;min-height:56px;display:flex;align-items:center;justify-content:center}.evidence:active{background:#e3d3b044}.photo-wrap{display:block;position:relative;background:#fff;padding:5px;box-shadow:0 2px 5px #68583c20;border:1px solid #d7c7ac;aspect-ratio:3/2;height:100%;max-width:100%;max-height:100%;transform:rotate(.8deg)}.photo-wrap>img{width:100%;height:100%;object-fit:cover;object-position:center}.traveler-row:nth-child(odd) .photo-wrap{transform:rotate(-1deg)}.photo-wrap .tape{height:13px;width:46px;top:-7px}.cap{position:absolute;right:6px;bottom:6px;border-radius:6px;padding:2px 7px;background:#fffaf2ee;font-size:16px;font-weight:750;line-height:1.2}.temp-wrap{display:flex;align-items:center;justify-content:center;gap:8px;height:100%;position:relative;padding-bottom:8px}.thermometer{height:min(90%,92px);width:34px;min-height:52px;flex-shrink:0}.temp-wrap strong{font-family:var(--heading);font-size:clamp(32px,3vw,44px);white-space:nowrap;color:var(--mercury)}.temp-wrap .cap{right:auto;left:40%;bottom:0}.speech{font-family:Gaegu,'Malgun Gothic',sans-serif;font-size:clamp(26px,2.7vw,38px);font-weight:700;line-height:1.1;background:#f1e7d5;padding:10px 15px;border-radius:20px 20px 20px 3px;position:relative;display:block;max-width:100%}.speech:before{content:'“';color:#b99d74;font-size:34px;line-height:.5;margin-right:5px}.item-wrap{display:flex;flex-direction:column;align-items:center;height:100%;justify-content:center;gap:2px}.item-wrap img{min-height:0;flex:1;width:auto;max-width:100%;object-fit:contain}.item-wrap strong{font-size:20px;line-height:1.1}.board-footer{display:flex;justify-content:space-between;align-items:center;min-height:54px;color:var(--soft);font-size:20px}.board-footer>span{display:flex;align-items:center;gap:8px}.screen-board .tutorial{position:absolute;left:50%;bottom:16px;transform:translateX(-50%);margin:0;min-height:56px;padding:4px 14px 4px 4px;font-size:26px;z-index:2}.screen-board .tutorial img{width:46px;height:46px}.hint-row .evidence{animation:hint-pulse 1.8s ease-in-out infinite}.caught-stamp,.lie-stamp{font-family:var(--heading);color:var(--red);font-size:26px;border:3px solid var(--red);padding:2px 6px;position:absolute;bottom:4px;right:-12px;transform:rotate(-14deg);background:#fff9ecd9;white-space:nowrap}.caught .portrait{border-color:var(--red)}.real-badge{position:absolute;left:0;right:0;bottom:-6px;padding:3px;border:1px solid var(--group);background:var(--cream);color:var(--ink);border-radius:8px;font-size:16px;line-height:1.15}.caught .traveler>strong{transform:translateY(-3px)}.caught .portrait{height:calc(100% - 45px);max-height:88px}.resume-reveal{position:absolute;left:0;right:0;bottom:-6px;background:var(--red);color:white;border-radius:6px;min-height:56px;font-size:16px;padding:2px;z-index:1}.evidence-check{position:absolute;right:4px;top:3px;color:var(--green);background:#fffaf2ee;border-radius:50%;padding:3px;display:inline-flex;z-index:2}.marked-lie:after{content:'';position:absolute;inset:0;border:4px solid var(--red);border-radius:48% 44% 50% 42%;transform:rotate(-4deg);pointer-events:none;animation:marker-in .5s ease-out}.evidence .lie-stamp{font-size:22px;right:2px;bottom:3px;z-index:2}
dialog{border:1px solid #b59d7a;border-radius:24px;background:var(--cream);color:var(--ink);padding:24px;box-shadow:0 24px 80px #352c2855;width:min(1000px,calc(100vw - 40px));max-height:calc(100dvh - 36px);overflow:auto;overscroll-behavior:contain}dialog::backdrop{background:#302820a8;backdrop-filter:blur(4px)}dialog[open]{animation:modal-in .2s ease-out}.zoom-header,.detail-header{display:flex;align-items:center;gap:14px;margin-bottom:16px}.zoom-header img{width:60px;height:60px;border-radius:50%;border:3px solid var(--paper)}.zoom-header h2{font-size:32px;flex:1}.modal-close{margin-left:auto;flex-shrink:0}.zoom-evidence{height:min(54dvh,430px);display:flex;align-items:center;justify-content:center;position:relative}.zoom-evidence .photo-wrap{width:100%;height:100%;max-width:650px;transform:none;padding:10px}.zoom-evidence .photo-wrap img{object-fit:contain;background:var(--paper)}.zoom-evidence .cap,.result-evidence .cap{font-size:22px;right:16px;bottom:16px;padding:4px 12px}.zoom-evidence .speech{font-size:clamp(40px,6vw,72px);padding:36px;max-width:780px}.zoom-evidence .temp-wrap strong{font-size:clamp(64px,10vw,110px)}.zoom-evidence .thermometer{height:240px;max-height:100%;width:95px}.zoom-evidence .item-wrap img{max-height:310px;min-height:0}.zoom-evidence .item-wrap strong{font-size:40px}.modal-actions{display:flex;gap:16px;justify-content:center;margin-top:24px}.modal-actions button{flex:1;max-width:420px;min-height:64px}.result-modal{width:min(860px,calc(100vw - 40px));text-align:center}.result-top{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:20px;color:var(--soft)}.result-top .lives{margin:0}.burst{font-family:var(--heading);font-size:clamp(48px,6vw,74px);padding:20px 50px;background:var(--red);color:var(--cream);clip-path:polygon(0 30%,15% 25%,10% 0,30% 12%,45% 0,55% 15%,85% 0,82% 25%,100% 25%,90% 50%,100% 80%,80% 78%,85% 100%,58% 89%,45% 100%,35% 84%,8% 100%,15% 75%,0 70%,8% 50%);width:fit-content;margin:10px auto 16px;transform:rotate(-3deg)}.wrong-burst{background:#83786a;font-size:48px;padding:12px 58px;margin-bottom:6px}.wrong-title{font-size:40px;margin-bottom:10px}.result-evidence{position:relative;height:min(31dvh,260px);width:min(100%,540px);margin:auto;display:flex;align-items:center;justify-content:center}.result-evidence .photo-wrap{height:100%;max-width:100%;transform:none}.result-evidence .photo-wrap img{object-fit:contain}.result-evidence .speech{font-size:40px;padding:20px}.result-evidence .temp-wrap strong{font-size:64px}.result-evidence .thermometer{height:140px;width:60px}.result-evidence .item-wrap strong{font-size:28px}.result-evidence .lie-stamp{right:0;bottom:10px;font-size:32px;z-index:2}.reason{font-size:clamp(26px,3vw,34px);font-weight:750;line-height:1.4;margin:18px auto 0;max-width:740px}.result-modal .modal-actions{margin-top:18px}.cracking{animation:glass-crack .65s ease-out forwards!important;opacity:1!important}.fracture{position:absolute;inset:0;width:38px;height:38px;fill:none;stroke:var(--red);stroke-width:2}.animating.objection,.result-modal.animating{animation:shake .55s linear}.animating .objection{animation:burst-in .6s ease-out}
.reveal-layout{max-width:1190px;margin:24px auto 0}.reveal-question{display:flex;align-items:center;gap:22px;flex-wrap:wrap;position:relative}.reveal-question>img{width:104px;height:104px;border:7px solid var(--cream);border-radius:12px;transform:rotate(-4deg);box-shadow:var(--shadow)}.reveal-question h2{font-size:clamp(40px,4.2vw,58px)}.reveal-question h2 br{display:none}.reveal-error{width:100%;text-align:center;color:var(--red);font-size:26px;font-weight:750}.option-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;margin-top:28px}.climate-option{position:relative;padding:10px 10px 20px;background:var(--cream);text-align:left;transform:rotate(-1deg);min-height:260px}.climate-option:nth-child(2){transform:rotate(1deg)}.climate-option img{aspect-ratio:3/2;object-fit:cover}.climate-option>div{padding:16px 8px 0}.climate-option h3{font-size:clamp(30px,3vw,42px);margin-top:12px}.climate-option:disabled{filter:grayscale(1);opacity:.48}.option-wrong{position:absolute;top:35%;left:10%;right:10%;text-align:center;color:var(--red);font-size:30px;border:3px solid var(--red);background:var(--cream);padding:8px;transform:rotate(-8deg)}.revealed-layout{display:flex;flex-direction:column;align-items:center;text-align:center;gap:24px;margin:22px auto 0}.flip-record{display:flex;align-items:center;gap:34px;width:min(750px,100%);justify-content:center}.old-portrait{width:150px;transform:rotate(-8deg)}.old-portrait img{aspect-ratio:1}.old-portrait figcaption{font-size:22px;margin-top:6px}.real-photo{width:min(460px,70%);transform:rotate(3deg);animation:photo-flip .65s ease-out}.real-photo img{aspect-ratio:3/2;object-fit:contain}.real-photo figcaption{font-family:Gaegu,sans-serif;font-size:30px;margin-top:8px}.big-stamp{position:absolute;bottom:50px;right:-18px;border:5px double var(--group);border-radius:10px;color:var(--group);background:#fff9ecee;font-family:var(--heading);font-size:48px;padding:4px 16px;transform:rotate(-16deg);animation:stamp-in .5s ease-out}.revealed-layout h2{font-size:clamp(32px,3.8vw,48px);line-height:1.25}.climate-name{color:var(--red)}.end-layout{max-width:950px;margin:16px auto 0;text-align:center}.end-hero{display:flex;gap:28px;justify-content:center;align-items:center;position:relative}.end-hero>img{width:230px;border-radius:50%}.end-hero>div{text-align:left;position:relative;padding-right:130px}.end-hero h2{font-size:64px;margin:10px 0}.end-hero .stars .icon{width:62px;height:62px}.clear-stamp{position:absolute;right:-20px;top:45px;width:130px;height:130px;border:5px double var(--group);border-radius:50%;color:var(--group);font-family:var(--heading);font-size:26px;display:flex;align-items:center;justify-content:center;transform:rotate(-16deg);animation:stamp-in .7s ease-out}.new-cards{margin:12px 0 18px}.new-cards h3{font-size:28px;margin-bottom:12px}.new-cards>div{display:flex;justify-content:center;gap:20px}.new-card{width:200px;transform:rotate(-3deg);animation:fan-in .55s ease-out}.new-card:nth-child(even){transform:rotate(3deg);animation-delay:.1s}.new-card img{aspect-ratio:3/2;object-fit:cover}.new-card strong{display:block;font-size:22px;margin-top:8px}.end-actions{display:flex;justify-content:center;gap:16px}.pop-stars .icon{animation:star-pop .5s both;animation-delay:.35s}.pop-stars .icon:nth-child(2){animation-delay:.53s}.pop-stars .icon:nth-child(3){animation-delay:.71s}.fail-layout{min-height:calc(100dvh - 130px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;text-align:center}.fail-layout>img{width:250px;border-radius:50%;transform:rotate(-6deg)}.fail-layout h2{color:var(--red);font-size:clamp(40px,5vw,64px)}.fail-layout p{font-size:28px;color:var(--soft)}
.book-tabs{display:flex;gap:10px;align-items:center;margin:18px auto;max-width:1180px}.tab{background:#f8efdd;min-height:60px;min-width:140px;padding:12px 24px;font-size:24px;border-radius:16px;border:1px solid #b7a288}.tab[aria-selected=true]{background:var(--navy);color:white}.book-tabs>span{margin-left:auto;font-size:24px;font-weight:750}.collection{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;max-width:1180px;margin:auto}.climate-group{background:var(--cream);border:1px solid #ceb99b;border-top:5px solid var(--group);padding:12px 14px 18px;border-radius:20px;min-width:0}.climate-group h2{font-size:26px;color:var(--group);margin-bottom:10px}.climate-group>div{display:flex;gap:12px}.collection-card{width:50%;flex:1;min-width:0;padding:6px 6px 10px;position:relative;min-height:130px}.collection-card img{aspect-ratio:3/2;object-fit:cover}.collection-card strong{display:block;font-size:22px;margin-top:8px;line-height:1.2}.card-locked{background:#e3d8c7}.card-locked img{filter:brightness(0) opacity(.15);background:#c5b8a4}.card-lock{position:absolute;left:50%;top:27%;transform:translateX(-50%);color:var(--soft)}.detail-header h2{font-size:40px}.detail-layout{display:grid;grid-template-columns:1.12fr 1fr;gap:24px;align-items:center}.gallery-photo{background:var(--paper);border:8px solid white;box-shadow:var(--shadow)}.gallery-photo img{aspect-ratio:3/2;object-fit:contain}.gallery-controls{display:flex;gap:20px;justify-content:center;align-items:center;margin:12px 0}.gallery-controls>span{font-size:22px}.gallery-thumbs{display:flex;gap:8px;justify-content:center}.gallery-thumbs button{width:65px;min-height:56px;background:var(--paper);border:2px solid transparent;border-radius:8px;padding:3px}.gallery-thumbs button.active{border-color:var(--red)}.gallery-thumbs img{aspect-ratio:3/2;object-fit:cover}.detail-info .facts>div{font-size:22px;min-height:56px;padding:8px 6px;background:var(--paper)}.where{font-size:22px;color:var(--soft);padding:16px 0}.detail-info h3{font-size:26px;margin-bottom:12px}.confuse{display:flex;gap:10px;flex-wrap:wrap}.confuse button{font-size:22px;min-height:56px;padding:10px 14px}.confuse button:disabled{opacity:.45}.confuse .icon{width:22px;height:22px}.ladder{max-width:1120px;margin:auto;display:flex;flex-direction:column;gap:12px}.ladder-step{display:grid;grid-template-columns:280px 30px 1fr;align-items:center;background:var(--cream);border:1px solid #ceb99b;border-radius:20px;padding:14px 22px;position:relative}.ladder-step:not(:last-child):after{content:'↓';position:absolute;left:140px;bottom:-28px;z-index:1;color:var(--soft);font-size:30px}.ladder-step h2{display:flex;gap:14px;align-items:center;font-size:32px}.ladder-step h2 .icon{width:42px;height:42px}.flow-line{font-size:30px;color:#a18a67}.ladder-leaves{display:flex;gap:20px;justify-content:center}.ladder-leaf{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.ladder-leaf img{width:110px;height:74px;border:4px solid white;border-radius:12px;object-fit:cover}.ladder-leaf strong{font-family:var(--heading);font-size:28px}.ladder-step:last-child{grid-template-columns:280px 1fr}.branches{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.branches>div{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:8px;font-size:22px;line-height:1.2}.group-end{background:color-mix(in srgb,var(--group) 18%,var(--cream));border:2px solid var(--group);border-radius:16px;padding:8px 18px;font-size:26px}.settings-modal{width:min(540px,calc(100vw - 32px))}.settings-body{display:flex;flex-direction:column;gap:18px}.settings-body button{width:100%}.reset-confirm{background:var(--paper);border-radius:16px;padding:18px;display:flex;flex-direction:column;gap:14px}.reset-confirm p{font-size:22px}.debug{position:fixed;left:12px;bottom:4px;z-index:5;display:flex;align-items:center;gap:8px;font-size:16px;color:var(--navy);background:#fff9ecee;border:1px dashed var(--navy);border-radius:8px;padding:3px 8px;opacity:.45}.debug:focus-within,.debug:hover{opacity:1}.debug button{font-size:16px;min-height:32px;border:1px solid #aaa;border-radius:6px;background:var(--cream);padding:4px 8px}.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 page-in{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}@keyframes modal-in{from{opacity:0;transform:scale(.96)}to{opacity:1;transform:none}}@keyframes case-pulse{50%{box-shadow:0 0 0 5px #2f4a7a18}}@keyframes hint-pulse{50%{outline:3px solid #e6b64c70;outline-offset:2px}}@keyframes marker-in{from{opacity:0;transform:rotate(-18deg) scale(.85)}to{opacity:1;transform:rotate(-4deg) scale(1)}}@keyframes glass-crack{20%{transform:rotate(-15deg);opacity:1}60%{transform:rotate(20deg) translateY(20px);opacity:.7}100%{transform:rotate(35deg) translateY(44px);opacity:0}}@keyframes shake{15%,55%{transform:translateX(-5px) rotate(-.5deg)}35%,75%{transform:translateX(5px) rotate(.5deg)}100%{transform:none}}@keyframes burst-in{from{transform:rotate(-8deg) scale(.4)}55%{transform:rotate(3deg) scale(1.08)}to{transform:rotate(-3deg) scale(1)}}@keyframes photo-flip{from{transform:perspective(700px) rotateY(-90deg)}to{transform:perspective(700px) rotateY(0) rotate(3deg)}}@keyframes stamp-in{from{opacity:0;transform:rotate(-16deg) scale(2)}70%{opacity:1;transform:rotate(-16deg) scale(.95)}to{transform:rotate(-16deg) scale(1)}}@keyframes star-pop{from{opacity:0;transform:scale(.1)}70%{opacity:1;transform:scale(1.2)}to{transform:scale(1)}}@keyframes fan-in{from{opacity:0;transform:translateY(40px) rotate(-15deg)}to{opacity:1}}
@media(min-width:701px) and (max-height:820px){.screen{padding-top:14px}.intro-layout{margin-top:16px;gap:30px}.intro-info h2{margin:10px 0 12px}.facts{gap:8px}.intro-travelers{margin-top:12px;margin-bottom:8px}.intro-travelers figure{max-width:78px}.mission{margin:10px 0 12px}.intro-photo{padding-bottom:20px}.screen-intro .tutorial{margin-top:12px}.passport{padding:16px 24px;margin-top:12px}.stamp-grid{gap:10px 24px}.stamp-slot{min-height:140px}.stamp-scene{width:58px;height:58px}.page-footer{margin-top:16px}.end-hero>img{width:190px}.end-hero h2{font-size:58px}.end-layout{margin-top:10px}.new-card{width:180px}.revealed-layout{gap:18px}.real-photo{max-width:400px}.reveal-layout{margin-top:16px}.option-grid{margin-top:22px}.detail-info .facts>div{font-size:22px}}
@media(min-width:701px) and (max-width:1050px){.screen{padding-left:18px;padding-right:18px}.title-layout{gap:20px}.title-copy{padding-left:8px}.title-copy h1{font-size:62px}.title-buttons{gap:10px}.title-buttons .secondary{padding:14px 18px}.title-owl{width:140px}.intro-layout{gap:24px}.intro-info .eyebrow{font-size:16px}.intro-info h2{font-size:48px}.intro-travelers{gap:8px}.facts>div{font-size:22px}.board-header{gap:12px}.claim-chip{font-size:24px;padding:8px 12px}.lives{gap:4px}.lineup{padding-left:6px;padding-right:6px}.column-head,.traveler-row{grid-template-columns:100px minmax(140px,1.4fr) 150px minmax(180px,1.65fr) 104px;gap:10px}.traveler-row{padding:7px 8px}.speech{font-size:28px;padding:8px 12px}.column-head{padding:0 8px}.temp-wrap{gap:4px}.thermometer{width:27px}.item-wrap strong{font-size:20px}.option-grid{gap:18px}.climate-option h3{font-size:34px}.ladder-step{grid-template-columns:230px 25px 1fr;padding:12px 16px}.ladder-step:last-child{grid-template-columns:230px 1fr}.ladder-leaf{gap:8px}.ladder-leaf img{width:80px;height:60px}.ladder-leaf strong{font-size:24px}.ladder-step h2{font-size:28px}.branches>div{font-size:20px}.group-end{font-size:24px;padding:8px 12px}}
@media(min-width:701px) and (orientation:portrait){.title-layout{grid-template-columns:1fr;gap:20px;min-height:calc(100dvh - 180px);padding:20px 50px 40px}.title-copy{padding:0;text-align:center}.title-copy h1{font-size:76px}.title-copy h1 br{display:none}.title-buttons{justify-content:center}.title-line{margin-bottom:24px}.cover{max-width:600px;margin:0 auto;transform:rotate(2deg)}.title-owl{right:0;bottom:0;width:145px}.passport{margin-top:30px;padding:24px 20px}.stamp-grid{gap:16px}.stamp-slot{min-height:190px}.stamp-scene{width:90px;height:90px}.solved-stamp{right:4px;top:65px}.intro-layout{grid-template-columns:1fr;gap:24px;margin:22px auto 0;max-width:640px}.intro-photo{max-width:510px;margin:auto}.intro-info h2{margin-top:12px;font-size:58px}.intro-info .facts{gap:8px}.intro-travelers{margin:14px 0;justify-content:center}.intro-travelers figure{max-width:80px}.intro-info .primary{width:100%}.mission{text-align:center}.screen-intro .tutorial{margin-top:16px}.board-header{gap:8px;min-height:66px}.case-label{font-size:24px}.claim-chip{font-size:22px;padding:8px 10px;gap:6px}.claim-chip .icon{width:20px;height:20px}.glass,.glass>.icon{width:32px;height:34px}.fake-count{font-size:22px}.board-header .icon-button{min-width:56px}.lineup{gap:10px}.column-head,.traveler-row{grid-template-columns:86px minmax(125px,1.4fr) 120px minmax(155px,1.6fr) 92px;gap:8px}.column-head{font-size:20px}.column-head>span{gap:5px}.column-head .icon{width:22px;height:22px}.traveler-row{padding:10px 6px}.portrait{max-height:110px}.photo-wrap{height:auto;width:100%;aspect-ratio:3/2}.speech{font-size:28px;line-height:1.14;padding:12px 10px}.temp-wrap{flex-direction:column;padding-bottom:22px;gap:5px}.thermometer{height:76px;min-height:0;width:32px}.temp-wrap strong{font-size:32px}.temp-wrap .cap{left:50%;transform:translateX(-50%)}.item-wrap img{max-height:110px}.item-wrap strong{font-size:20px}.real-badge{font-size:16px}.screen-board .tutorial{font-size:24px}.reveal-layout{margin-top:35px}.reveal-question h2{font-size:48px}.reveal-question h2 br{display:block}.option-grid{gap:14px;margin-top:44px}.climate-option{padding:8px 8px 16px}.climate-option>div{padding:14px 3px 0}.climate-option h3{font-size:32px}.revealed-layout{margin-top:50px;gap:40px}.end-layout{margin-top:65px}.end-hero>img{width:190px}.end-hero>div{padding-right:110px}.end-hero h2{font-size:54px}.clear-stamp{right:-10px;width:115px;height:115px;font-size:24px}.new-cards{margin:35px 0}.new-card{width:180px}.collection{grid-template-columns:repeat(2,1fr);gap:20px}.collection-card{min-height:145px}.ladder{gap:20px}.ladder-step,.ladder-step:last-child{display:flex;flex-direction:column;gap:18px;padding:22px}.ladder-step:not(:last-child):after{left:50%;bottom:-32px}.ladder-step>.flow-line{display:none}.ladder-leaf img{width:115px;height:75px}.branches{width:100%}.detail-layout{grid-template-columns:1fr;gap:18px}.gallery-photo{max-width:540px;margin:auto}.detail-info .facts{gap:10px}.detail-info .facts>div{font-size:24px}.where{padding:12px 0}.detail-modal{width:min(700px,calc(100vw - 40px))}}
@media(max-width:700px){html{font-size:18px}.screen{padding:14px 16px max(18px,env(safe-area-inset-bottom));min-height:100dvh}.topbar{gap:10px}.topbar h1{font-size:32px}.top-actions{gap:6px}.icon-button{border-radius:16px;min-width:56px}.eyebrow{font-size:16px;letter-spacing:.025em}.title-top>.eyebrow{max-width:170px}.title-layout{display:flex;flex-direction:column;gap:24px;min-height:0;padding:28px 0 24px}.title-copy{padding:0;text-align:center;width:100%}.title-copy h1{font-size:56px;margin:18px 0}.logo-glass{width:44px;height:44px}.title-line{font-size:20px;margin-bottom:20px}.title-buttons{flex-direction:column;gap:12px;padding:0 14px}.title-buttons button{width:100%}.small-stamp{font-size:16px}.cover{margin:0 12px 0;max-width:400px;padding:8px 8px 16px;transform:rotate(2deg)}.cover figcaption{font-size:24px;margin-top:6px}.title-owl{width:95px;right:-6px;bottom:4px}.title-footer{font-size:16px;justify-content:center;padding-top:12px}.tiny-note{display:none}.passport{padding:18px 12px;margin-top:14px}.passport-heading{gap:10px;flex-wrap:wrap;font-size:18px}.stamp-grid{gap:10px;grid-template-columns:repeat(2,1fr)}.stamp-slot{min-height:175px;padding:10px 5px}.stamp-slot strong{font-size:22px}.case-no{font-size:16px}.stamp-scene{width:76px;height:76px}.solved-stamp{top:62px;right:3px;font-size:20px}.slot-state{font-size:16px}.intro-layout{display:flex;flex-direction:column;gap:22px;margin-top:22px}.intro-photo{width:100%;padding:8px 8px 18px}.intro-info{width:100%}.intro-info h2{font-size:48px;margin:14px 0}.intro-info>div:first-child{gap:10px}.facts{gap:8px}.facts>div{font-size:22px;padding:8px;gap:12px}.intro-travelers{gap:6px;margin:16px 0}.intro-travelers figcaption{font-size:16px}.mission{font-size:26px;text-align:center}.intro-info>.primary{width:100%}.tutorial{font-size:24px;padding:6px 10px;gap:8px;width:100%}.tutorial img{width:50px;height:50px}.screen-board{height:auto;min-height:100dvh;padding:12px 12px 14px;gap:12px}.board-header{gap:8px;flex-wrap:wrap;padding:0;min-height:110px;justify-content:space-between}.case-label{font-size:24px}.claim-chip{font-size:22px;padding:8px 10px;flex:1}.board-header .lives{order:4;margin-left:0}.board-header .fake-count{order:5}.glass,.glass>.icon{width:34px;height:36px}.board-header .icon-button{order:3}.lineup{flex:none;gap:16px;padding:0;background:none;box-shadow:none;border:none}.column-head{display:none}.traveler-row{display:grid;grid-template-columns:1.35fr 1fr;grid-template-rows:68px 132px minmax(115px,auto);gap:10px;padding:12px;flex:none;min-height:360px}.traveler{grid-column:1/-1;display:flex;flex-direction:row;justify-content:flex-start;gap:14px;min-height:64px}.portrait{height:64px;max-height:64px;width:64px;flex-shrink:0}.traveler>strong{font-size:24px}.traveler .real-badge{position:static;max-width:110px;margin-left:auto;font-size:18px;padding:6px}.caught .portrait{height:64px;max-height:64px}.caught .traveler>strong{transform:none}.resume-reveal{position:static;min-height:56px;padding:6px;max-width:115px;margin-left:auto}.photo-wrap{width:100%;height:auto;aspect-ratio:3/2;max-height:132px}.speech{font-size:28px;line-height:1.15;padding:12px 10px}.temp-wrap{flex-direction:column;gap:4px;padding-bottom:20px}.temp-wrap .thermometer{height:65px;width:28px;min-height:0}.temp-wrap strong{font-size:36px}.temp-wrap .cap{left:50%;transform:translateX(-50%)}.item-wrap{max-height:110px}.item-wrap img{max-height:80px}.item-wrap strong{font-size:20px}.board-footer{font-size:18px;flex-wrap:wrap;gap:8px}.board-footer .text-button{font-size:20px}.screen-board .tutorial{position:sticky;bottom:10px;left:auto;transform:none;font-size:24px;order:3;max-width:100%}.caught-stamp{font-size:22px;right:-12px;bottom:0}.evidence .lie-stamp{font-size:22px}.reveal-layout{margin-top:22px}.reveal-question{gap:14px}.reveal-question>img{width:82px;height:82px}.reveal-question h2{font-size:36px;flex:1}.reveal-question h2 br{display:block}.reveal-question .lives{width:100%;margin:4px 0;justify-content:center}.option-grid{grid-template-columns:1fr;gap:16px;margin-top:20px}.climate-option{display:grid;grid-template-columns:1.1fr 1fr;align-items:center;padding:8px;min-height:135px;gap:12px;transform:rotate(-1deg)}.climate-option img{height:110px;aspect-ratio:3/2;object-fit:cover}.climate-option>div{padding:0}.climate-option h3{font-size:30px;margin-top:10px}.climate-option .chip{font-size:18px;padding:4px 10px}.option-wrong{top:30%;font-size:24px}.revealed-layout{margin:28px auto 0;gap:24px}.flip-record{gap:12px;align-items:flex-start;flex-direction:column}.old-portrait{width:110px;margin-left:14px}.real-photo{width:calc(100% - 20px);max-width:100%;margin-left:6px}.big-stamp{font-size:34px;right:-5px;bottom:40px}.revealed-layout h2{font-size:32px}.revealed-layout>.primary{width:100%}.end-layout{margin-top:28px}.end-hero{flex-direction:column;gap:10px}.end-hero>img{width:165px}.end-hero>div{padding:0;text-align:center}.end-hero h2{font-size:50px}.end-hero .stars .icon{width:52px;height:52px}.clear-stamp{width:95px;height:95px;font-size:20px;right:-46px;top:-92px}.new-cards{margin:22px 0}.new-cards>div{gap:10px;flex-wrap:wrap}.new-card{width:calc(50% - 10px)}.new-card strong{font-size:22px}.end-actions{flex-direction:column;gap:14px}.end-actions button{width:100%}.fail-layout{min-height:calc(100dvh - 112px);gap:22px}.fail-layout>img{width:210px}.fail-layout h2{font-size:40px}.fail-layout p{font-size:24px}.fail-layout .end-actions{width:100%}.book-tabs{margin:18px 0;gap:8px}.tab{min-width:0;padding:12px 20px;font-size:22px;flex:1}.book-tabs>span{font-size:20px;margin-left:2px}.collection{grid-template-columns:1fr;gap:16px}.climate-group{padding:14px}.climate-group h2{font-size:28px}.collection-card{min-height:145px}.collection-card strong{font-size:24px}.detail-modal{width:calc(100vw - 24px);padding:16px}.detail-header{gap:10px;flex-wrap:wrap;margin-bottom:16px}.detail-header h2{font-size:34px;max-width:calc(100% - 68px)}.detail-header .chip{font-size:18px}.detail-header .modal-close{position:absolute;right:16px;top:16px}.detail-layout{grid-template-columns:1fr;gap:18px}.gallery-thumbs button{width:58px}.gallery-controls{margin:10px 0}.detail-info .facts>div{font-size:22px;gap:10px}.where{font-size:22px;padding:12px 0}.detail-info h3{font-size:28px}.confuse button{font-size:22px}.ladder{gap:24px}.ladder-step,.ladder-step:last-child{display:flex;flex-direction:column;gap:14px;padding:18px 14px}.ladder-step h2{font-size:30px}.ladder-step>.flow-line{display:none}.ladder-step:not(:last-child):after{left:50%;bottom:-33px}.ladder-leaves{gap:12px;flex-wrap:wrap}.ladder-leaf{gap:8px;justify-content:center}.ladder-leaf img{width:95px;height:64px}.ladder-leaf strong{font-size:26px}.branches{grid-template-columns:repeat(2,1fr);gap:18px}.branches>div{font-size:22px}.group-end{font-size:26px;padding:8px 20px}dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:16px;border-radius:20px}.zoom-header{gap:10px;margin-bottom:14px}.zoom-header img{width:45px;height:45px}.zoom-header h2{font-size:26px}.zoom-evidence{height:43dvh}.zoom-evidence.ev-photo{height:35dvh}.zoom-evidence .photo-wrap{width:100%;height:auto;max-height:100%;padding:6px}.zoom-evidence .speech{font-size:44px;padding:24px}.zoom-evidence .temp-wrap{flex-direction:row}.zoom-evidence .temp-wrap strong{font-size:68px}.zoom-evidence .thermometer{height:180px;width:60px}.zoom-evidence .item-wrap img{max-height:230px}.zoom-evidence .item-wrap strong{font-size:36px}.modal-actions{gap:10px;margin-top:18px}.modal-actions button{padding:14px 12px;font-size:24px}.modal-actions .icon{width:26px;height:26px}.result-top{font-size:18px;gap:8px}.result-top .glass,.result-top .glass>.icon{width:30px;height:32px}.result-top .lives{gap:4px}.burst{font-size:48px;padding:20px 34px;margin-top:12px}.wrong-burst{padding:12px 48px;font-size:44px}.wrong-title{font-size:36px}.result-evidence{height:25dvh;max-height:240px}.result-evidence .photo-wrap{height:100%;width:auto}.result-evidence .speech{font-size:34px}.result-evidence .temp-wrap{flex-direction:row}.result-evidence .temp-wrap strong{font-size:56px}.result-evidence .thermometer{height:120px;width:45px}.result-evidence .item-wrap strong{font-size:28px}.reason{font-size:28px;margin-top:18px}.settings-body{gap:14px}.debug{font-size:16px;gap:5px;left:4px;bottom:2px;padding:2px 5px}.debug button{font-size:16px;min-height:32px;padding:3px}}
/* 사건 수는 콘텐츠를 따른다. 여권의 10개 도장을 두 페이지에 배치한다. */
@media(min-width:701px) and (orientation:landscape){.stamp-grid{grid-template-columns:repeat(5,1fr);gap:20px 16px}.stamp-slot{min-height:190px}.stamp-scene{width:85px;height:85px}.solved-stamp{right:3px;top:72px;font-size:20px}.passport{max-width:1240px}.stamp-slot strong{font-size:22px}.slot-state{font-size:16px}.page-footer{margin-top:20px}}
@media(min-width:701px) and (orientation:portrait){.stamp-grid{grid-template-columns:repeat(2,1fr);gap:14px}.stamp-slot{min-height:150px}.stamp-scene{width:64px;height:64px}.solved-stamp{top:42px;right:24px}}
body{user-select:none}.debug button{min-height:56px}.debug{opacity:.25}.temp-wrap .cap{right:auto;white-space:nowrap}.portrait{max-width:100%}.pending-reveals{display:flex;gap:12px;align-items:center}.pending-reveals>span{display:flex;gap:8px;align-items:center}.pending-reveals .danger{min-height:56px;font-size:22px;padding:10px 18px}.collection-card{flex:0 1 50%}
@media(min-width:701px) and (orientation:portrait) and (max-height:1100px){.intro-layout{gap:14px;margin-top:14px}.intro-photo{max-width:360px;padding-bottom:16px}.intro-info h2{font-size:48px;margin:8px 0 12px}.intro-travelers{margin:12px 0}.intro-travelers figure{max-width:64px}.screen-intro .tutorial{min-height:64px;margin-top:12px}.screen-intro .tutorial img{width:50px;height:50px}.passport{margin-top:18px;padding:18px}.stamp-slot{height:138px;min-height:138px;padding:6px;gap:3px}.stamp-scene{width:50px;height:50px;flex-shrink:0}.stamp-slot strong{font-size:22px}.case-no{font-size:16px}.stamp-grid{gap:10px}.passport-heading{margin-bottom:12px}.solved-stamp{top:35px;right:25px}.page-footer{margin-top:18px}}
@media(max-width:700px){.board-header{display:grid;grid-template-columns:auto 1fr auto;gap:10px;min-height:110px}.board-header .case-label{grid-area:1/1}.board-header .claim-chip{grid-area:1/2;white-space:nowrap}.board-header .icon-button{grid-area:1/3;justify-self:end}.board-header .lives{grid-area:2/1/3/3}.board-header .fake-count{grid-area:2/3;justify-self:end;white-space:nowrap}.pending-reveals{flex-wrap:wrap}.pending-reveals .danger{padding:10px 12px}}
.screen{padding-top:max(var(--safe-top,22px),env(safe-area-inset-top))}.screen-board{--safe-top:14px}
@media(min-width:701px) and (max-height:820px){.screen{--safe-top:14px}}
@media(max-width:700px){.screen{--safe-top:14px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.cracking{opacity:.2!important}}
/* 등급, 무한 수사와 수집 기록도 같은 종이 수첩 위에 놓는다. */
a.icon-button{color:var(--ink);text-decoration:none;touch-action:manipulation}a:focus-visible{outline:4px solid var(--navy);outline-offset:4px}.rank-card{display:flex;align-items:center;flex-wrap:wrap;gap:10px 18px;background:var(--cream);border:2px solid #b9a58b;border-radius:18px;padding:14px 18px;color:var(--navy);max-width:580px;margin:18px auto;font-size:20px}.rank-card strong{font-family:var(--heading);font-size:30px}.rank-card span{margin-left:auto}.rank-card progress{width:100%;height:14px;accent-color:var(--navy);border:0;border-radius:10px;overflow:hidden}.rank-card progress::-webkit-progress-bar{background:#e5d7c0}.rank-card progress::-webkit-progress-value{background:var(--navy)}.title-copy .rank-card{margin:20px 0 26px}.endless-page{position:relative;z-index:1;margin-top:18px}.endless-slot{width:100%;min-height:74px;display:flex;align-items:center;justify-content:center;gap:18px;padding:12px 20px;background:#f8eed7;border:3px double var(--navy);border-radius:16px;color:var(--navy);font-size:22px}.endless-slot strong{font-family:var(--heading);font-size:32px}.endless-slot:disabled{color:var(--soft);border-color:#a7957b}.page-footer{display:flex;justify-content:center;gap:14px;flex-wrap:wrap}.passport-heading{justify-content:center}.streak-count{font-size:20px;font-weight:750;white-space:nowrap;color:var(--navy)}.finish-button{font-size:24px;min-height:64px;padding:12px 22px}.board-footer{gap:12px;flex-wrap:wrap}.board-footer:has(.finish-button) .pending-reveals>span{display:none}.board-footer:has(.finish-button) .pending-reveals:empty{display:none}.board-footer:has(.finish-button){justify-content:center}.rank-up{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:12px;padding:14px;margin:16px auto;background:#fff3c7;border:3px double #caa044;border-radius:20px;font-size:28px;color:var(--navy);animation:stamp-in .7s ease-out}.rank-up strong{font-family:var(--heading);font-size:36px}.earned-badges{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin:16px 0}.earned-badges button{font-size:22px;min-height:56px}.photo-total{display:inline-flex;gap:8px;align-items:center;font-size:22px;color:var(--soft);margin:12px 0 18px}.book-tabs{flex-wrap:wrap}.book-tabs .photo-total{margin:0 0 0 auto}.photo-count{display:block;font-size:20px;color:var(--soft);margin-top:4px}.blank-photo{display:flex;justify-content:center;align-items:center;aspect-ratio:3/2;width:100%;background:#eee3d2;border:5px solid #fffaf2;color:#a28d6b;font-family:var(--heading);font-size:56px;box-shadow:inset 0 0 0 1px #cdbc9f}.gallery-thumbs .blank-photo{font-size:26px;border-width:2px}.gallery-controls{gap:12px;flex-wrap:wrap}.gallery-controls .photo-count{width:100%;text-align:center}.badge-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;max-width:1050px;margin:32px auto;padding:12px}.badge-stamp{position:relative;aspect-ratio:1;border:7px double var(--stamp);border-radius:50%;background:color-mix(in srgb,var(--stamp) 8%,var(--cream));color:var(--stamp);display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:25px;gap:12px;transform:rotate(-4deg);box-shadow:0 5px 10px #58432812}.badge-stamp:nth-child(even){transform:rotate(4deg)}.badge-stamp>.icon{width:56px;height:56px}.badge-stamp h3{font-size:32px}.badge-stamp p{font-size:20px;line-height:1.3}.badge-locked{--stamp:#8e877b!important;background:#e6ded0}.badge-new{position:absolute;top:12px;right:14px;background:var(--red);color:var(--cream);border-radius:8px;padding:5px 10px;font-size:18px;font-weight:800;transform:rotate(12deg)}.branch-climates{display:flex;flex-direction:column;gap:10px;width:100%}.branch-climates .ladder-leaf{flex-direction:column;gap:4px}.branch-climates .ladder-leaf img{width:100%;max-width:125px;height:76px}.branch-climates .ladder-leaf strong{font-size:24px}.leaf-locked img{filter:brightness(0) opacity(.18)}.ladder-step:last-child{grid-template-columns:1fr}.ladder-step:last-child>h2{margin-bottom:20px}.branches{align-items:start}.seed-label{display:flex;align-items:center;gap:16px;margin:28px 0;font-size:28px}.seed-label input{font:inherit;min-height:56px;min-width:0;width:100%;padding:10px;background:var(--paper);border:2px solid #b9a58b;border-radius:12px}.missed-evidence{width:min(100%,1050px)}.missed-evidence article{background:var(--cream);border:2px solid #cab99c;border-radius:20px;padding:20px;margin:16px auto}.missed-evidence h3{font-size:30px;margin-bottom:22px}.missed-evidence article>div{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.missed-tile{height:140px;position:relative;display:flex;justify-content:center;align-items:center;margin:8px}.missed-tile .photo-wrap{height:100%;max-width:100%}.missed-evidence figcaption{font-size:24px;margin-top:18px;line-height:1.35}.screen-fail:has(.missed-evidence) .fail-layout{justify-content:flex-start;gap:16px}.screen-fail:has(.missed-evidence) .fail-layout>img{width:120px}.screen-fail:has(.missed-evidence) .fail-layout>p{font-size:22px}.screen-clear .end-layout{margin-top:12px}.screen-clear .end-hero>img{width:160px}.screen-clear .end-hero h2{font-size:56px}.screen-clear .end-hero .stars .icon{width:48px;height:48px}.screen-clear .end-hero .mission{font-size:24px}.screen-clear .new-card{width:160px}.screen-clear .new-cards{margin:14px 0}.screen-clear .clear-stamp{width:110px;height:110px;font-size:22px}
@media(min-width:701px){.screen-board .portrait{max-height:none;height:calc(100% - 27px);max-width:100%;aspect-ratio:1}.screen-board .caught .portrait{height:calc(100% - 44px);max-height:none}.screen-board .item-wrap{width:100%;min-height:0}.screen-board .item-wrap img{height:calc(100% - 25px);width:100%;max-height:none;flex:1;object-fit:contain}.screen-board .lineup{overflow:hidden}.screen-reveal{display:flex;flex-direction:column;height:100dvh}.screen-reveal .topbar{flex-shrink:0}.screen-reveal .reveal-layout{flex:1;width:100%;display:flex;flex-direction:column;justify-content:center;margin:0 auto;padding:25px 0}.screen-reveal .option-grid{width:100%}.screen-passport>.rank-card{max-width:1120px;padding:10px 18px;margin:12px auto}.screen-passport>.rank-card strong{font-size:26px}.screen-passport>.rank-card progress{height:10px}.screen-passport .stamp-slot{min-height:155px}.screen-passport .passport{margin-top:12px}.screen-passport .endless-page{margin-top:12px}}
@media(min-width:701px) and (orientation:portrait){.screen-reveal .option-grid{grid-template-columns:1fr;max-width:650px;align-self:center;gap:20px;margin-top:30px}.screen-reveal .climate-option{display:grid;grid-template-columns:1.2fr 1fr;gap:20px;align-items:center;padding:12px;min-height:190px}.screen-reveal .climate-option img{height:180px;width:100%;object-fit:cover}.screen-reveal .climate-option>div{padding:0 10px}.screen-reveal .climate-option h3{font-size:40px}.screen-reveal .reveal-question{justify-content:center}.screen-reveal .reveal-question h2{font-size:46px}.screen-reveal .reveal-question .lives{margin-left:10px}.screen-reveal .tutorial{margin:0 auto;flex-shrink:0}.screen-board .column-head,.screen-board .traveler-row{grid-template-columns:90px minmax(125px,1.4fr) 112px minmax(150px,1.6fr) 98px;gap:8px}.board-header:has(.streak-count){flex-wrap:wrap;gap:8px}.board-header .streak-count{margin-left:auto}.badge-stamp{padding:20px 12px}.badge-stamp h3{font-size:28px}.badge-stamp p{font-size:20px}.screen-passport .stamp-slot{min-height:132px;height:132px}.screen-passport .stamp-scene{width:48px;height:48px}.screen-passport .solved-stamp{top:33px}.screen-passport .stamp-grid{gap:10px}.screen-passport .endless-slot{min-height:72px}.screen-passport .page-footer{margin-top:14px}}
@media(min-width:701px) and (orientation:portrait) and (min-height:1150px){.screen-reveal .climate-option{min-height:235px}.screen-reveal .climate-option img{height:225px}.screen-passport .stamp-slot{height:170px}.screen-passport .stamp-scene{width:75px;height:75px}.screen-passport .solved-stamp{top:60px}}
@media(max-width:700px){.rank-card{padding:12px;font-size:18px;gap:8px}.rank-card strong{font-size:28px}.rank-card span{margin:0}.title-copy .rank-card{margin:12px 14px 22px;text-align:left}.title-copy h1{font-size:52px}.title-layout{padding-top:12px;gap:20px}.title-copy h1{margin:12px 0}.endless-slot{flex-wrap:wrap;gap:10px;padding:14px 8px}.endless-slot span{width:100%;font-size:20px}.finish-button{width:100%;font-size:22px}.board-header .streak-count{grid-area:3/1/4/4;text-align:center}.board-footer:has(.finish-button){position:sticky;bottom:0;background:var(--kraft);padding:12px 0 4px;z-index:3}.board-footer:has(.finish-button) .pending-reveals{width:100%;justify-content:center}.book-tabs{gap:8px}.book-tabs .tab{padding:12px 8px;font-size:20px;flex:1;min-width:0}.book-tabs>span{font-size:20px}.book-tabs .photo-total{width:100%;justify-content:flex-end}.badge-grid{grid-template-columns:repeat(2,1fr);gap:20px 14px;padding:8px;margin-top:20px}.badge-stamp{padding:14px 9px;border-width:5px;gap:7px}.badge-stamp h3{font-size:24px}.badge-stamp p{font-size:16px}.badge-stamp>.icon{width:35px;height:35px}.badge-new{font-size:16px;right:-4px;top:0}.branches{grid-template-columns:repeat(2,1fr);gap:26px 14px}.branch-climates .ladder-leaf img{max-width:120px;height:78px}.screen-clear .clear-stamp{right:-35px;top:-70px;width:95px;height:95px;font-size:20px}.rank-up{font-size:24px}.rank-up strong{font-size:30px}.screen-clear .end-hero>img{width:135px}.missed-evidence article>div{grid-template-columns:1fr}.missed-evidence h3{font-size:28px}.missed-evidence figcaption{font-size:24px}.missed-tile{height:170px}.gallery-controls{gap:10px}.gallery-controls>span{font-size:20px}.page-footer button{flex:1;padding:12px;font-size:22px}}

.debug{position:relative;left:auto;bottom:auto;justify-content:center;flex-shrink:0;flex-wrap:wrap;transform:none;margin-top:14px;opacity:.6}.screen-board .debug{margin-top:0;min-height:62px}.screen-reveal .debug{margin-top:0;min-height:62px}
@media(min-width:701px){.screen-board .traveler-row{padding-top:4px;padding-bottom:4px}.screen-board .lineup{gap:6px}}

.gallery-controls .photo-count{order:1;margin:0}.book-tabs>span{order:1}.book-tabs>span:not(.photo-total){margin-left:auto}.book-tabs .photo-total{margin-left:12px}.screen-reveal .reveal-layout{min-height:0}
@media(min-width:701px){.screen-board .traveler{container-type:size}.screen-board .portrait{width:min(100cqw,calc(100cqh - 27px));height:auto;aspect-ratio:1;max-width:none;max-height:none}.screen-board .caught .portrait{width:min(100cqw,calc(100cqh - 44px));height:auto;max-height:none}.screen-board .portrait img{object-fit:contain}}
@media(max-width:700px){.book-tabs>span:not(.photo-total){margin-left:0}.book-tabs .photo-total{width:auto;margin:0 0 0 auto}}
@media(min-width:701px){.screen-board .item-wrap{container-type:size}.screen-board .item-wrap img{width:min(100cqw,calc(100cqh - 25px));height:auto;aspect-ratio:1;flex:none;max-height:none}}
@media(max-width:700px){.book-tabs>span:not(.photo-total),.book-tabs .photo-total{flex-basis:calc(50% - 4px);margin:0}.book-tabs .photo-total{justify-content:flex-end}.book-tabs .tab{white-space:nowrap}}
/* 검수 후 다듬기: 배지를 한 화면에 더 많이, 구별법 갈래 칸 높이 맞춤 */
.badge-grid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:22px;max-width:1120px;margin:22px auto}
.badge-stamp{padding:18px 14px;gap:8px;border-width:6px}
.badge-stamp>.icon{width:46px;height:46px}
.badge-stamp h3{font-size:26px}
.badge-stamp p{font-size:18px}
.branches>div>span:first-child{min-height:2.5em;display:flex;align-items:flex-end;justify-content:center}
@media(max-width:700px){.badge-grid{grid-template-columns:repeat(2,1fr)}.badge-stamp h3{font-size:22px}.badge-stamp p{font-size:16px}}

/* 계절·시간 표기도 본문처럼 읽기 쉽게 유지한다. */
.cap,.eyebrow,.intro-info .eyebrow,.intro-travelers figcaption,.case-no,.slot-state,.badge-stamp p,.badge-new{font-size:18px}
.badge-stamp{min-width:0;overflow-wrap:anywhere}
@media(max-width:700px){.badge-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* 카드의 보조 글씨도 누르는 버튼 안에서는 20px 이상으로 유지한다. */
button .cap,button .case-no,button .slot-state,.climate-option .chip{font-size:20px}
.title-guide{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 14px;font-size:18px;font-weight:700;line-height:1.4;color:var(--ink);background:#FFFDF8;border:2px solid currentColor;border-radius:14px;text-decoration:none;touch-action:manipulation}.title-guide:hover{filter:brightness(.96)}.title-guide:focus-visible{outline:3px solid currentColor;outline-offset:4px}
