@import url('/hub-art/fonts/fonts.css');
@import url('/escape-discovery.css');
/* Escape-first homepage; embedded game controls remain independently styled. */
.home-page{--hm-ink:#f1eee6;--hm-muted:#a3afb0;--hm-line:#30373a;--hm-accent:#d1b47a;--paper:#161c1f;background:#0e1316;color:var(--hm-ink);font-family:'Noto Sans KR',sans-serif}
.home-page header{margin-left:224px;background:#0e1316;border-bottom:1px solid #293135;min-height:74px;height:auto;padding:14px 36px;justify-content:flex-end;gap:20px}
.home-page header>.logo,.home-page header>.nav{display:none}
.home-page .header-search{background:#181f23;border:1px solid #344047;border-radius:5px;display:flex;align-items:center;padding:8px 12px;gap:8px;max-width:340px}
.home-page .header-search input{width:180px;max-width:100%;color:#ecede7;background:transparent;border:0;font:inherit;font-size:14px;outline:none}
.home-page .header-search button{color:#d9c190;background:transparent;border:0;min-width:30px;min-height:30px;font-size:16px}
.home-page .language-picker{margin-left:0;color:#c5ceca;font-size:14px}.home-page .language-picker>span{display:none}.home-page .language-picker select{background:#182024;border-color:#344047;color:#e5eae4;min-height:40px}
.hm-wrap{max-width:1600px;margin:0 auto 0 224px;padding:36px clamp(24px,3.2vw,54px) 48px}
.hub-sidebar{position:fixed;inset:0 auto 0 0;width:224px;z-index:30;background:#10191c;border-right:1px solid #2b3436;padding:30px 20px 22px;display:flex;flex-direction:column;overflow-y:auto}
.hub-brand{display:flex;align-items:center;gap:9px;font-size:24px;font-weight:800;letter-spacing:-1px;color:#f0ece1;white-space:nowrap}.hub-brand svg{width:34px;height:34px;flex:none}.hub-brand-caption{font-size:12px;color:#9aafa9;letter-spacing:.16em;margin:10px 0 34px 4px}
.hub-menu>summary{display:none}.hub-menu-body{display:flex;flex-direction:column;gap:20px}.hub-search{display:flex;align-items:center;gap:8px;padding:10px;border:1px solid #344044;border-radius:5px;min-width:0}.hub-search input{width:100%;min-width:0;font:inherit;font-size:14px;color:#e5eae6;background:transparent;border:0;outline:none}.hub-search:focus-within{outline:2px solid #d1b47a;outline-offset:2px}
.hub-menu nav{display:grid;gap:6px}.hub-menu nav a{display:flex;align-items:center;gap:13px;padding:12px;min-height:46px;border-radius:5px;color:#aabbb8;font-size:14px;line-height:1.5;overflow-wrap:anywhere}.hub-menu nav a:hover{background:#202d30;color:#f0eee5}.hub-menu nav a[aria-current]{background:#d1b47a;color:#171d1d;font-weight:700}.hub-menu nav .menu-icon{display:block;width:20px;height:20px;fill:none;stroke:currentColor}.hub-menu nav a>span{flex:0 0 20px}
.hub-shortcuts{display:grid;gap:12px;padding:24px 12px 0;border-top:1px solid #2d393d;font-size:14px;color:#a4b6b4}.hub-shortcuts a:hover{color:#e8d19f}.hub-sidebar-bottom{margin-top:auto;padding:44px 12px 0}.hub-sidebar-bottom>span{font-size:12px;letter-spacing:.14em;color:#a6b6ac}.hub-sidebar-bottom>p{font-size:13px;color:#8a9c9e;line-height:1.7;margin-bottom:0}
.hm-welcome{margin:0 0 27px;position:relative}.hm-kicker{font-size:12px;letter-spacing:.18em;color:#d2b87e;font-weight:700;margin:0 0 11px;line-height:1.5}.hm-welcome h1{font-size:clamp(32px,3.2vw,44px);line-height:1.35;letter-spacing:-.055em;margin:0 0 10px;font-weight:750;color:#f4f0e8}.hm-welcome>p:not(.hm-kicker){font-size:16px;color:#a6b5b6;line-height:1.7;margin:0}.hm-promises{display:flex;flex-wrap:wrap;gap:8px 22px;font-size:13px;color:#8c9e9d;margin-top:15px}.hm-promises span+span{border-left:1px solid #3d4848;padding-left:22px}
.hm-catalog{scroll-margin-top:24px}.hm-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.hm-section-head h2{font-size:24px;color:#eeece2;line-height:1.5;letter-spacing:-.035em}.hm-count{font-size:15px;color:#aaac9a;margin-left:7px}.hm-section-head>span{font-size:13px;color:#98aaa7}.hm-random{font:inherit;font-size:14px;color:#d3bf98;background:#1c2528;border:1px solid #44504e;border-radius:5px;min-height:44px;padding:9px 14px}
.hm-filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:22px}.hm-filters button{font:inherit;font-size:14px;line-height:1.5;min-height:44px;padding:9px 16px;color:#b1bfbd;background:#151e22;border:1px solid #354246;border-radius:5px}.hm-filters button[aria-pressed=true]{background:#d1b47a;border-color:#d1b47a;color:#141b1d;font-weight:700}
.hm-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.hm-card-wrap{min-width:0;display:flex}.hm-card-wrap>.escape-tile,.hm-card-wrap>.hm-game{width:100%}.hm-category-heading{grid-column:1/-1;font-size:22px;font-weight:700;line-height:1.5;color:#ddd8c9;margin:26px 0 0}.hm-category-heading:first-child{margin-top:0}.hm-empty{grid-column:1/-1;padding:32px;color:#c0c9c4}
.hm-game{border:1px solid var(--hm-line);border-radius:10px;overflow:hidden;background:#181e21;display:flex;flex-direction:column;transition:border-color .2s}.hm-game:hover{border-color:#bfa16c}.hub-cover{width:100%;aspect-ratio:16/10;background-image:url('/hub-art/covers-v2.png');background-size:400% 400%;background-position:var(--cover-x) var(--cover-y);background-repeat:no-repeat}.hm-game-copy{padding:20px;display:flex;flex-direction:column;flex:1}.hm-game h3{font-size:23px;line-height:1.4;margin:0 0 9px;color:#efece2;letter-spacing:-.04em}.hm-game-copy>p{font-size:16px;line-height:1.65;color:#adbab7;margin:0 0 20px;overflow-wrap:anywhere}.hm-game-meta{display:flex;justify-content:space-between;gap:8px;margin-top:auto;font-size:14px;line-height:1.5;color:#a0aea8}.hm-game-meta strong{color:#d9c291}
.hm-recent{padding-top:38px}.hm-recent-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.hm-recent-list>a{display:flex;align-items:center;gap:14px;padding:14px;background:#182125;border:1px solid #344047;border-radius:6px;min-width:0}.hm-recent-art{width:72px;height:54px;flex:0 0 72px;border-radius:4px;overflow:hidden;display:block}.hm-recent-art img,.hm-recent-art svg{width:100%;height:100%;object-fit:cover}.hm-recent-list strong{font-size:15px;line-height:1.5;overflow-wrap:anywhere}.hm-recent-list small{display:block;font-size:13px;color:#a4b9ad;margin-top:5px}
.hm-more{border-top:1px solid #344045;padding-top:28px;margin-top:38px}.hm-more h2{font-size:21px;margin:0 0 20px;color:#c5cecb}.hm-more>div{display:flex;flex-wrap:wrap;gap:12px}.hm-more a{display:flex;align-items:center;gap:12px;font-size:15px;line-height:1.5;padding:14px 18px;border:1px solid #39464b;border-radius:5px;color:#c3ccc7;background:#172125}.hm-more .menu-icon{width:22px;height:22px;display:block;fill:none;stroke:currentColor}
.home-page .foot{max-width:1600px;margin:0 auto 0 224px;border-top:1px solid #2c383c;background:#0e1316;color:#a1b0aa;padding:28px clamp(24px,3.2vw,54px);font-size:14px}.home-page .foot .logo{color:#e5eae4}.hm-wrap>.notice{background:#26281f;color:#e7dbc0;border:1px solid #59503d;margin:0 0 22px}
.hm-wrap[data-filtered=true]>.escape-spotlight,.hm-wrap[data-filtered=true]>.hm-recent,.hm-wrap[data-filtered=true]>.product-return{display:none}.hm-wrap[data-filtered=true] .escape-art-note{display:none}.hm-wrap [hidden]{display:none!important}
.home-page :is(a,button,summary,select):focus-visible{outline:3px solid #e0c38a;outline-offset:4px}
@media(min-width:1800px){.hm-wrap{margin-right:auto}.hm-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1200px){.hm-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hm-wrap,.home-page .foot{padding-left:28px;padding-right:28px}}
@media(max-width:900px){.home-page header{margin-left:0;min-height:64px;padding:12px 20px}.home-page header>.logo{display:flex;font-size:21px;color:#efece3;margin-right:auto}.home-page header>.header-search{display:none}.hm-wrap{margin:0;padding:22px 20px 36px}.hub-sidebar{position:relative;width:100%;padding:0;background:transparent;border:0;display:block;margin-bottom:25px;overflow:visible}.hub-brand,.hub-brand-caption,.hub-sidebar-bottom{display:none}.hub-menu{border-bottom:1px solid #344148;padding-bottom:13px}.hub-menu>summary{display:list-item;font-size:15px;color:#c1c9c0;cursor:pointer;min-height:40px;padding:8px 0}.hub-menu-body{padding-top:12px}.hub-menu nav{display:flex;overflow-x:auto;gap:8px;padding-bottom:6px}.hub-menu nav a{flex:0 0 auto;padding:10px 13px}.hub-shortcuts{display:flex;flex-wrap:wrap;padding:16px 0 0}.hm-welcome h1{font-size:34px}.home-page .foot{margin-left:0;padding:24px 20px}.hm-recent-list{grid-template-columns:1fr}.hm-promises{margin-top:12px}}
@media(max-width:600px){.hm-grid{grid-template-columns:1fr;gap:18px}.hm-wrap{padding:16px 16px 32px}.home-page .foot{padding:24px 16px}.home-page header{padding:12px 16px;gap:10px}.home-page .language-picker select{min-width:94px;max-width:120px}.hm-welcome h1{font-size:30px}.hm-welcome>p:not(.hm-kicker){font-size:16px}.hm-promises{font-size:12px;gap:8px 14px}.hm-promises span+span{padding-left:14px}.hm-section-head{align-items:start}.hm-section-head h2{font-size:22px}.hm-random{font-size:13px;padding:10px}.hm-filters{gap:6px}.hm-filters button{font-size:14px;padding:8px 12px}.hm-more>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.hm-more a{padding:12px;font-size:14px}.hm-card-wrap .escape-tile-copy{padding:20px}.hm-welcome{margin-bottom:22px}}
@media(prefers-reduced-motion:reduce){.hm-game{transition:none}}

.hm-wrap .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}.hm-random:disabled{opacity:.45}

.home-trial-promo{min-width:0;margin-bottom:24px}.home-trial-promo>a{display:flex;align-items:center;gap:18px;padding:18px;border:1px solid #39736e;border-radius:16px;background:linear-gradient(100deg,#122d30,#15201f);color:#edf7f2;text-decoration:none}.home-trial-promo img{width:120px;height:80px;object-fit:cover;border-radius:8px;flex-shrink:0}.home-trial-promo a>span{display:grid;gap:6px;min-width:0}.home-trial-promo small{color:#86e2d5}.home-trial-promo strong{font-size:clamp(19px,2.5vw,25px);line-height:1.35}.home-trial-promo span>span{color:#b7cbc6;font-size:13px;line-height:1.5}.home-trial-promo b{margin-left:auto;white-space:nowrap;color:#c5ef5e;font-size:14px}.home-trial-promo a:focus-visible{outline:3px solid #c5ef5e;outline-offset:3px}@media(max-width:900px){.home-trial-promo{grid-column:1}}@media(max-width:600px){.home-trial-promo>a{gap:12px;flex-wrap:wrap}.home-trial-promo img{width:76px;height:70px}.home-trial-promo a>span{flex:1}.home-trial-promo b{width:100%;text-align:right;white-space:normal}}

/* Trial covers retain the full courtroom and case-specific evidence. */
.hm-card-wrap[data-game-category="trial"] .hub-cover{aspect-ratio:3/2}
