:root{color-scheme:light;--paper:#f9f6ee;--ink:#1c3028;--muted:#52655b;--line:#dcded1;--green:#224b38;--gold:#edce7a;--white:#fffdf8;font-family:"Noto Sans KR","Malgun Gothic",system-ui,sans-serif;line-height:1.6}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);min-height:100vh}a{color:var(--green);text-underline-offset:4px}button,input,select,textarea{font:inherit}button,select{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline:3px solid #996121;outline-offset:3px}button{min-height:44px;border:1px solid var(--line);background:var(--white);border-radius:10px;padding:.55rem .9rem;color:var(--ink);font-weight:700}button:hover:not(:disabled){border-color:#6c8f76}h1,h2,h3,p,figure{margin:0}h1,h2,h3{line-height:1.24;letter-spacing:-.047em}h1:focus,h2:focus{outline:none}.wrap{width:min(1170px,calc(100% - 48px));margin-inline:auto}.mast{border-bottom:1px solid #e5e1d5;background:#fdfaf2}.bar{display:flex;justify-content:space-between;align-items:center;min-height:66px;gap:16px}.wordmark{color:var(--ink);text-decoration:none;font-weight:900;letter-spacing:-.03em;font-size:1.12rem}.wordmark span{color:#8b5b24;font-size:1.4rem;vertical-align:middle;margin-right:.3rem}.hero{margin-top:33px;display:grid;grid-template-columns:1.03fr 1fr;min-height:370px;border-radius:23px;overflow:hidden;background:#203e30;color:#fff8e9}.heroText{padding:50px 48px 46px;position:relative}.label{font-size:.88rem;font-weight:800;letter-spacing:.065em;color:#587560}.hero .label{color:#f7d889}.hero h1{font-size:clamp(2.6rem,6vw,4.9rem);line-height:1.06;margin:15px 0 20px}.heroText>p:not(.label){color:#e1eadc}.heroText button{margin-top:24px;background:#f1d582;color:#213227;border-color:transparent}.hero figure{position:relative;min-height:250px;background:linear-gradient(130deg,#3d6450,#163527)}.hero img{position:absolute;width:100%;height:100%;object-fit:cover;object-position:50% 58%}.hero figcaption{position:absolute;bottom:0;right:0;padding:.25rem .55rem;background:#17281fe8;color:white;font-size:.8rem}.hero figcaption a{color:white}.browse{padding:45px 0 15px;scroll-margin-top:10px}.sectiontop{display:flex;justify-content:space-between;gap:20px;align-items:end;margin-bottom:21px}.sectiontop h2{font-size:clamp(1.9rem,4vw,2.6rem)}.sectiontop p,.count,.card p,.wing,.minor{color:var(--muted);margin-top:.36rem}.date{display:grid;gap:4px;font-weight:750}.toolbar,.selects,.floors,.actions,.links{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.toolbar{justify-content:space-between}.floors button[aria-pressed=true],.primary{background:var(--green);color:white;border-color:var(--green)}input,select,textarea{background:var(--white);border:1px solid #c9d0c4;color:var(--ink);border-radius:9px;min-height:44px;padding:.45rem .65rem;max-width:100%}.count{margin:16px 0 10px;font-weight:700}.rooms{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.card{border:1px solid var(--line);border-top:4px solid #8fa382;background:var(--white);padding:18px;border-radius:14px;min-width:0}.card.theme-2{border-top-color:#b7986d}.card.theme-3{border-top-color:#87a7a5}.cardtop,.cardbottom{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}.cardtop{min-height:30px}.wing,.cardbottom{font-size:.88rem}.card h3{margin-top:.7rem;font-size:1.4rem}.card p{word-break:keep-all}.cardbottom{margin-top:14px}.status{display:inline-block;border-radius:40px;background:#f4e9c9;color:#644d22;padding:.18rem .55rem;font-size:.84rem;font-weight:800}.status.closed{background:#ece9e3;color:#64594b}.status.ready{background:#d9ecda;color:#20462c}.outline{background:#f9fbf5;border-color:#d0dbc9}.foot{padding:29px 0 24px;border-top:1px solid #dfddd2;margin-top:32px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;color:var(--muted);font-size:.9rem}.panel{max-width:760px;margin:38px auto;background:var(--white);border:1px solid var(--line);border-radius:18px;padding:clamp(18px,5vw,45px)}.panel h1{font-size:clamp(2rem,5vw,3.4rem);margin:9px 0 15px;word-break:keep-all}.panel .label{margin-top:17px}.panel .actions,.panel .links{margin-top:19px}.panel .links{gap:15px}.callout,.learning{background:#f1f3e8;border-radius:12px;padding:16px;margin:18px 0}.callout p,.admin p{margin-top:.45rem}.quiet{border:0;background:transparent;text-decoration:underline;text-underline-offset:4px;padding-left:0}.progress-label{font-weight:800}.game progress{width:100%;height:12px;accent-color:var(--green);margin-top:20px}.game h1{font-size:clamp(2rem,6vw,3.25rem)}.game .actions{gap:10px}.option{min-height:53px}.learning{width:100%;font-size:1.15rem;margin:0}.game #feedback{color:#824619;min-height:1.4rem;margin-top:.6rem}.result{list-style:none;padding:0}.result li{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding:.8rem 0}.admin label{display:grid;gap:3px;font-weight:700}.admin fieldset{margin:20px 0;padding:15px;min-width:0;border:1px solid var(--line);border-radius:12px}.admin fieldset label{margin:.55rem 0}.admin textarea{min-height:55px;resize:vertical}.admin legend{font-weight:850}.twocol{display:grid;grid-template-columns:1fr 1fr;gap:12px}.admin li{margin:.45rem 0}.admin li span{display:block}.admin li button{margin:3px}.sr{position:absolute;width:1px;height:1px;clip:rect(0,0,0,0);overflow:hidden;white-space:nowrap}.empty{grid-column:1/-1;padding:18px}
@media(max-width:850px){.rooms{grid-template-columns:repeat(2,minmax(0,1fr))}.heroText{padding:32px 26px}.toolbar{gap:14px}.hero h1{font-size:clamp(2.6rem,7vw,4rem)}}@media(max-width:570px){.wrap{width:calc(100% - 28px)}.hero{grid-template-columns:1fr;margin-top:16px}.hero figure{min-height:155px}.heroText{padding:25px 21px}.hero h1{margin:8px 0 12px}.sectiontop{align-items:start;flex-direction:column}.browse{padding-top:28px}.rooms{grid-template-columns:1fr}.selects{width:100%}.selects input{width:100%}.card{padding:15px}.panel{margin:18px auto}.game .option{width:100%}.twocol{gap:6px}}
[hidden]{display:none!important}
.hero{min-height:275px}
.heroText{padding-block:30px}
.hero h1{font-size:clamp(2.6rem,5.4vw,4.1rem)}
.artifact-photo{overflow:hidden;border:1px solid #d3d9cc;border-radius:15px;background:#eef0e8;margin:18px 0}
.artifact-photo img{display:block;width:100%;height:clamp(210px,43vw,420px);object-fit:contain;color:var(--muted)}
.artifact-photo figcaption{background:#1f3c2f;color:#fffef4;display:grid;gap:3px;padding:12px 16px}
.photo-credits details { border-top: 1px solid var(--line); padding: .65rem 0; }
.photo-credits summary { cursor: pointer; font-weight: 750; }
.photo-credits ul { margin: .7rem 0; padding-inline-start: 1.4rem; }
.photo-credits li { margin-block: .45rem; }
.photo-credits li a { display: inline-block; margin-inline-start: .55rem; }
.photo-credits h2 { margin-top: 1.6rem; }
.photo-credits h2 + p { margin: .5rem 0; }
.stamp-book { list-style: none; padding: 0; margin: 1.4rem 0; display: grid; gap: .65rem; }
.stamp-book li { display: flex; gap: 1rem; align-items: center; padding: .7rem .85rem; background: #fbf6e9; border: 1px solid #e0d8c6; border-radius: 12px; }
.stamp-seal { flex: 0 0 auto; width: 5.15rem; aspect-ratio: 1; display: grid; align-content: center; justify-items: center; gap: .15rem; border-radius: 50%; border: 2px dashed #998c76; color: #625849; font-size: .82rem; line-height: 1; white-space: nowrap; }
.stamp-seal.earned { background: #fdf0df; border: 4px double #a23f2e; color: #923726; transform: rotate(-8deg); }
.stamp-seal > span { font-size: 1.35rem; }
.stamp-book li > div { word-break: keep-all; overflow-wrap: anywhere; }
.stamp-photo:not([hidden]) { display: block; font-size: .88rem; min-height: 36px; }
.learning.stamped { display: flex; align-items: center; gap: 1rem; }
.learning.stamped .stamp-seal { animation: press-stamp 230ms ease-out; }
@keyframes press-stamp { from { opacity: .25; transform: scale(1.2) rotate(-14deg); } to { opacity: 1; transform: scale(1) rotate(-8deg); } }
@media (prefers-reduced-motion: reduce) { .learning.stamped .stamp-seal { animation: none; } }
.artifact-photo figcaption span{font-size:.94rem;color:#f1f2e6}
.card-photo{margin:0 0 12px;border-radius:10px}
.card-photo img{height:160px}
.card-photo figcaption{padding:8px 11px}
.card-photo figcaption strong{font-size:.95rem}
.card-photo figcaption a{font-size:.78rem}
.capture-note{color:var(--muted);font-size:.92rem}
.camera{display:grid;gap:10px;margin-top:16px}
.camera video,.camera img{display:block;max-height:50vh;width:100%;object-fit:contain;border-radius:12px;background:#182a22}
.camera button{justify-self:center;min-width:150px}
#photo-status:not(:empty){padding:11px 14px;border-radius:10px;background:#f3ecd8;margin-top:12px}
.learning strong{display:block;color:var(--green);margin-bottom:.25rem}
@media(max-width:570px){.heroText{padding-block:21px}.hero figure{min-height:105px}.card-photo img{height:185px}.artifact-photo:not(.card-photo) img{height:min(50vw,275px);min-height:165px}}
.hero-action { color: #fffdf0; background: transparent; border: 1px solid #a8c2ad; }
.hero-action:hover { background: #315644; }
.arrival { margin: 1.25rem 0; scroll-margin-top: 1rem; }
.arrival h2 { margin: 0 0 .4rem; }
.arrival label { display: grid; gap: .3rem; }
.arrival .actions { align-items: end; }
.status.visited { display: inline-block; background: #dcead9; color: #174d39; vertical-align: middle; }
.card h3 .visited { margin-inline-start: .35rem; }
.target-list { margin: 1.8rem 0; }
.target-list ol { display: grid; gap: .6rem; padding-left: 1.5rem; }
.target-list li { padding: .5rem 0; min-height: 3.25rem; border-bottom: 1px solid #d9dfd3; }
.target-list li::after { content: ''; display: block; clear: both; }
.target-list img { float: left; width: 4.8rem; height: 4.8rem; object-fit: contain; background: #eef0e8; border-radius: .4rem; margin: 0 .8rem .2rem 0; }
.target-list p { margin: .2rem 0; }
.target-list small,.target-list a { font-size: .85rem; }
.qr-panel img { display: block; max-width: 100%; height: auto; margin: .8rem 0; image-rendering: pixelated; }

@media (max-width: 570px) {
  .hero { display: flex; flex-direction: column; }
  .hero figure { min-height: 0; }
  .hero img { position: static; display: block; height: auto; aspect-ratio: 2.5; }
  .artifact-photo { display: flex; flex-direction: column; }
  .artifact-photo img { flex: none; }
  .artifact-photo figcaption, .panel h1, .card h3, .target-list li > div {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .target-list img {
    float: none;
    display: block;
    width: 100%;
    height: clamp(7rem, 34vw, 11rem);
    margin: 0 0 .65rem;
  }
  .target-list strong { display: block; }
}

#report-open { font-size:.82rem; font-weight:500; padding:.25rem .6rem; min-height:38px; color:var(--muted); background:transparent; }
#report-dialog { width:min(27rem,calc(100% - 2rem)); max-height:85dvh; padding:1.35rem; color:var(--ink); border:1px solid var(--line); border-radius:14px; background:var(--white); }
#report-dialog::backdrop { background:#172c2399; }
#report-dialog label { display:grid; gap:.25rem; margin:.8rem 0; }
#report-dialog .report-context { color:var(--muted); margin:.4rem 0; }
#report-dialog button { margin-top:.6rem; }
#report-dialog [role=status]:not(:empty) { margin:.75rem 0; }
#report-inbox { margin:1rem 0; }
.report-item { border-top:1px solid var(--line); padding:1rem 0; overflow-wrap:anywhere; }
.report-message { white-space:pre-wrap; }

.my-mission-photo { margin:.65rem 0; }
.my-mission-photo figcaption { font-weight:700; font-size:.9rem; margin-bottom:.35rem; }
.my-mission-photo img { display:block; width:100%; max-height:22rem; object-fit:contain; background:#eef0e8; border-radius:.6rem; }
.my-mission-photo .stamp-photo { display:inline-block; padding:.35rem 0; }
.stamp-book li > div { flex:1; min-width:0; }

#guardian-account { width:min(26rem,calc(100% - 2rem)); max-height:80dvh; border:1px solid var(--line); border-radius:16px; padding:1.4rem; background:var(--white); color:var(--ink); }
#guardian-account::backdrop { background:#172c2399; }
.account-body { display:grid; gap:.65rem; margin:.9rem 0; }
#account-button { font-size:.82rem; }
