:root {
  --ink: #1d192a;
  --ink-2: #5b5468;
  --paper: #f7f2e8;
  --surface: #fffdf8;
  --rule: #e6dccb;
  --lantern: #e2663a;
  --lantern-ink: #15121f;
  --alert: #e5322d;
  --moss: #3f6b52;
  --live: #2f6b4a;
  --dusk: #2b2547;
  --shadow: 0 18px 36px -24px rgba(31, 27, 45, 0.55);
  --radius-thumb: 12px;
  --gutter: 16px;
  --maxw: 1120px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  --text-hero: clamp(1.9rem, 1.2rem + 3.2vw, 3.6rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  /* Starfield (space.js), "r g b". */
  --star: 86 72 138;
  --star-max: 0.55;
  --glow-a: 226 102 58;
  --glow-b: 122 98 196;
  --glow-alpha: 0.13;
  --sky: 74 63 115;
  --sky-alpha: 0.1;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f4efe6;
    --ink-2: #bdb4c8;
    --paper: #15121f;
    --surface: #1e1a2c;
    --rule: #332d45;
    --dusk: #0d0b15;
    --shadow: 0 18px 36px -24px rgba(0, 0, 0, 0.9);
    --live: #8fd6a8;
    --star: 255 246 232;
    --star-max: 0.9;
    --glow-alpha: 0.16;
    --sky: 6 4 14;
    --sky-alpha: 0.55;
  }
}
* { box-sizing: border-box; }
/* Display rules must not beat the hidden attribute. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.65 var(--font); word-break: keep-all; }
a { color: inherit; }
/* 100lvh covers hiding URL bars. */
.starfield { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100lvh; z-index: -1; pointer-events: none; display: block; }
@media print { .starfield { display: none; } }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 10; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand-mark { width: 28px; height: 32px; display: block; }
.top-link { font-size: 0.95rem; text-decoration: none; border: 1px solid var(--rule); border-radius: 999px; padding: 7px 14px; white-space: nowrap; }
.top-link:hover, .top-link:focus-visible { border-color: var(--lantern); color: var(--lantern); }

.hero { position: relative; padding-block: 28px 20px; }
.hero h1 { font-size: min(var(--text-hero), calc((100vw - 2 * var(--gutter)) / 14)); line-height: 1.15; letter-spacing: -0.035em; margin: 0 0 12px; font-weight: 800; white-space: nowrap; }
.hero h1 em { font-style: normal; color: var(--lantern); }
.hero p { margin: 0; color: var(--ink-2); max-width: 34em; }
@media (max-width: 619px) { .hero p { font-size: 14px; } }
@media (min-width: 620px) { .hero .hero-br-sm { display: none; } }
@media (min-width: 1100px) { .hero p { max-width: none; white-space: nowrap; } }

.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; }
/* Search: input, or a magnifier on phones. */
.top { position: relative; }
.top-actions { display: flex; align-items: center; gap: 10px; min-width: 0; }
.top-search { display: flex; flex: none; align-items: center; gap: 6px; min-width: 0; }
.search-input { width: 220px; box-sizing: border-box; font: inherit; font-size: 0.95rem; color: var(--ink); background: var(--surface); border: 1px solid var(--rule); border-radius: 999px; padding: 7px 14px; outline: none; transition: border-color .2s var(--ease); }
.search-input:focus-visible { border-color: var(--lantern); }
.search-input::placeholder { color: var(--ink-2); }
.search-toggle, .search-close { display: none; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--rule); border-radius: 999px; cursor: pointer; }
.search-toggle { width: 44px; height: 44px; padding: 0; align-items: center; justify-content: center; background: none; }
.top-fav { display: inline-flex; align-items: center; gap: 6px; }
.search-close { padding: 7px 12px; font-size: 0.9rem; white-space: nowrap; }
.search-toggle:focus-visible, .search-close:focus-visible { border-color: var(--lantern); outline: none; }
@media (max-width: 619px) {
  .search-input { display: none; }
  .search-toggle { display: inline-flex; }
  .top.is-searching .top-search { position: absolute; inset: 0; z-index: 5; padding: 0 var(--gutter); background: var(--paper); }
  .top.is-searching .search-toggle { display: none; }
  .top.is-searching .search-input { display: block; flex: 1; width: auto; min-width: 0; font-size: 1rem; padding: 10px 16px; }
  .top.is-searching .search-close { display: inline-block; }
}
@media (max-width: 640px) { .top-fav-text { display: none; } .top-fav { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding-inline: 0; } }
@media (max-width: 380px) { .top { gap: 6px; } .top-actions { gap: 4px; } .top-link { padding: 7px 8px; font-size: 0.9rem; } .search-toggle, .top-fav { width: 40px; height: 40px; min-width: 40px; min-height: 40px; } .brand { font-size: 1rem; } .brand-mark { width: 22px; height: auto; } }
.filters { display: flex; gap: 8px; overflow-x: auto; padding-block: 18px 8px; scroll-padding-inline: var(--gutter); }
.filters.is-dragging, .filters.is-dragging .chip { cursor: grabbing; user-select: none; }
/* Home scroll areas (owner 11/3 「스크롤들 모양좀 어울리게 바꿔줘」): thin, --rule thumb, --ink-2 on hover. */
.filters, .nu-row, .rank-side { scrollbar-width: thin; scrollbar-color: var(--rule) transparent; }
:is(.filters, .nu-row, .rank-side):hover { scrollbar-color: var(--ink-2) transparent; }
.chip { flex: none; text-decoration: none; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 0.92rem; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease); }
.chip:hover, .btn.ghost:hover { border-color: var(--lantern); }
.chip[aria-current="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); font-weight: 700; }
.chip-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 8px; }
.chip-head-title { margin: 0; font-size: 1.8rem; letter-spacing: -0.03em; }
.chip-head-title span { color: var(--lantern); }
.chip-head-all { flex: none; font-size: 0.9rem; color: var(--ink-2); }
.chip:focus-visible, .btn:focus-visible, .chip-head-all:focus-visible, .fav:focus-visible { outline: 3px solid var(--lantern); outline-offset: 2px; }
/* Own rule: no :has() drops only this. */
.door:has(:focus-visible) { outline: 3px solid var(--lantern); outline-offset: 2px; }

/* --n cards a row; basis 1px under so rounding never wraps. */
.grid { --gap: 14px; display: flex; flex-wrap: wrap; gap: var(--gap); padding-block: 12px 48px; }
.grid > * { min-width: 0; }
.grid > .empty { flex: 1 1 100%; }
.grid > .door { --n: 1; flex: 1 1 calc((100% - (var(--n) - 1) * var(--gap)) / var(--n) - 1px); max-width: calc((100% - (var(--n) - 1) * var(--gap)) / var(--n)); }
.grid > .door--sm { --n: 2; }
@media (min-width: 620px) { .grid { --gap: 18px; } .grid > .door { --n: 2; } .grid > .door.is-feature { --n: 1; } .grid > .door--sm { --n: 3; } }
@media (min-width: 840px) { .grid > .door--sm { --n: 4; } }
@media (min-width: 960px) { .grid > .door, .grid > .door.is-feature { --n: 3; } .grid > .door--sm { --n: 4; } }
/* door--mid: 4 a row, the rest 5. */
@media (min-width: 1100px) { .grid > .door--sm { --n: 5; } .grid > .door--sm.door--mid { --n: 4; } }

.door { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--rule); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); transition: transform .35s var(--ease); }
.door:hover { transform: translateY(-3px); }
.door-frame { display: block; margin: 14px 14px 0; aspect-ratio: 1200 / 630; border-radius: var(--radius-thumb); overflow: hidden; background: linear-gradient(160deg, var(--dusk), #4a3f73 60%, var(--lantern)); position: relative; }
.door-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Second image: hover or rotation (.is-shot). */
.door-frame .door-shot { position: absolute; inset: 0; opacity: 0; transition: opacity .4s var(--ease); }
.door.is-shot .door-shot { opacity: 1; }
@media (hover: hover) { .door:hover .door-shot { opacity: 1; } }
.door-frame .glyph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.9); font-size: 2.4rem; font-weight: 800; letter-spacing: -0.04em; }
.door-body { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.door-cat { font-size: 0.78rem; font-weight: 700; color: var(--moss); letter-spacing: 0.04em; }
.door-name { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em; margin: 0; overflow-wrap: anywhere; }
.door-name a { text-decoration: none; }
.vf { display: inline-grid; place-items: center; flex: none; width: 1.05em; height: 1.05em; margin-left: 0.25em; border-radius: 50%; background: var(--lantern); vertical-align: -0.15em; }
.vf svg { width: 75%; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; }
/* ☆: 44px hit area, 20px of the row, 21px high. */
.fav-row { display: flex; align-items: flex-start; gap: 8px; justify-self: stretch; }
.fav-row > :first-child { flex: 1; min-width: 0; }
.fav { flex: none; width: 44px; height: 44px; margin: -11px -10px -12px -14px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ink-2); font: 1.35rem/1 var(--font); cursor: pointer; }
.fav[aria-pressed="true"] { color: var(--lantern); }
.fav:focus-visible { outline-offset: -3px; }
.door:not(.door--sm) .fav { margin: -6px -10px -7px 0; }
.door-name a:hover, .door-name a:focus-visible { color: var(--lantern); text-decoration: underline; }
a.door-cat { text-decoration: none; }
.door-sum { margin: 0; color: var(--ink-2); font-size: 0.95rem; flex: 1; }
.door-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.door-host { font-size: 0.8rem; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.btn { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 10px 18px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; background: var(--lantern); color: var(--lantern-ink); white-space: nowrap; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -10px var(--lantern); }
.btn:active { transform: translateY(0); }
.door--sm { border-radius: 16px; }
.door--sm .door-frame { margin: 8px 8px 0; border-radius: 10px; }
.door--sm .door-frame .glyph { font-size: 1.6rem; }
.door--sm .door-body { padding: 8px 10px 10px; gap: 4px; }
.door--sm .door-sum, .door--sm .door-host { display: none; }
.door--sm .door-tags { justify-content: space-between; flex-wrap: wrap; gap: 2px 6px; }
.door--sm .door-cat { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.72rem; line-height: 1.6; }
.door--sm .live { margin-left: auto; max-width: 100%; overflow: hidden; font-size: 0.72rem; padding: 2px 8px; }
.door--sm .door-name { font-size: 0.98rem; line-height: 1.35; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
@media (max-width: 380px) { .door--sm .door-name { -webkit-line-clamp: 3; } }
/* Clear of the ☆ hit area. */
.door--sm .door-foot { margin-top: auto; padding-top: 8px; }
.door--sm .btn { width: 100%; justify-content: center; padding: 7px 12px; font-size: 0.88rem; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--rule); }
.empty { padding: 40px 0; color: var(--ink-2); }
.radio-row { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.radio-row legend { font-weight: 700; font-size: 0.95rem; margin-bottom: 6px; width: 100%; }
.section-title { margin: 8px 0 0; font-size: 1.4rem; letter-spacing: -0.02em; }
/* 한국 heading + 랜덤 입장 (owner tg 6161). */
.section-head { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.section-head .section-title { margin: 0; }
.random-btn { margin-left: auto; padding: 6px 14px; font-size: 0.9rem; }
.random-btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

.detail { padding-block: 4px 32px; }
.crumbs { font-size: 0.9rem; color: var(--ink-2); padding-block: 4px 14px; }
.crumbs a { text-decoration: none; }
.crumbs a:first-child::before { content: "← "; }
.space { display: grid; gap: 18px; background: var(--surface); border: 1px solid var(--rule); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.space > * { min-width: 0; }
@media (min-width: 860px) { .space { grid-template-columns: 1.3fr 1fr; align-items: center; } .space .door-frame { margin: 14px 0 14px 14px; } .space .space-body { padding-top: 22px; } }
.space-body { padding: 0 20px 22px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; justify-items: start; }
.space-body > * { max-width: 100%; }
.space .door-host { white-space: normal; overflow-wrap: anywhere; }
.space .door-tags { justify-content: flex-start; flex-wrap: wrap; }
.space-name { font-size: var(--text-hero); line-height: 1.15; letter-spacing: -0.035em; margin: 0; font-weight: 800; overflow-wrap: anywhere; }
.space-sum { margin: 0; color: var(--ink-2); font-size: 1.05rem; overflow-wrap: anywhere; }
.space-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; justify-self: stretch; }
.space-actions .btn { flex: 1 1 auto; justify-content: center; padding: 13px 24px; font-size: 1.05rem; }
.space .notice { border: 0; padding: 4px 0 0; margin: 0; overflow-wrap: anywhere; }
.share-kit { justify-self: stretch; border-top: 1px solid var(--rule); padding-top: 12px; }
.share-kit summary { cursor: pointer; color: var(--ink-2); }
.share-kit[open] { display: grid; gap: 10px; }
.share-kit p, .share-label { margin: 0; color: var(--ink-2); }
.share-card img { display: block; width: 100%; height: auto; border-radius: var(--radius-thumb); }
.share-code { width: 100%; box-sizing: border-box; font: .8rem/1.4 monospace; color: var(--ink); background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 10px; }
.share-kit .btn { justify-self: start; }
.gallery { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
.gallery .door-frame { flex: 1 1 260px; max-width: 560px; margin: 0; }
@media (min-width: 620px) { .grid--similar > .door--sm { --n: 3; } }
@media (min-width: 1100px) { .grid--similar > .door--sm { --n: 6; } }
.preview { display: grid; gap: 8px; padding: 12px; border: 1px dashed var(--rule); border-radius: 14px; font-size: 0.92rem; color: var(--ink-2); }
.preview img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: var(--radius-thumb); display: block; }
.preview p { margin: 0; }

.made-with { padding-block: 4px 32px; }
.made-card { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 18px; padding: 22px 24px; border-radius: 22px; text-decoration: none; color: #fff; background: radial-gradient(120% 140% at 100% 0%, rgba(226, 102, 58, 0.55), transparent 55%), linear-gradient(140deg, var(--dusk), #3a3166); box-shadow: var(--shadow); overflow: hidden; transition: transform .3s var(--ease); }
.made-card:hover { transform: translateY(-2px); }
.made-card:focus-visible { outline: 3px solid var(--lantern); outline-offset: 3px; }
.made-logo { width: 56px; height: 56px; border-radius: 14px; background: #fff; padding: 8px; }
.made-text { display: grid; gap: 4px; min-width: 0; }
.made-kicker { font-size: 0.8rem; font-weight: 700; color: #f2a65a; }
@media (max-width: 480px) { .made-card { grid-template-columns: 1fr; gap: 12px; } .made-logo { width: 44px; height: 44px; } }
.made-title { font-size: clamp(1.15rem, 1rem + 0.8vw, 1.5rem); letter-spacing: -0.02em; }
.made-sub { color: rgba(255, 255, 255, 0.75); font-size: 0.92rem; }
.made-cta { justify-self: start; margin-top: 10px; padding: 8px 16px; border-radius: 999px; background: var(--lantern); color: var(--lantern-ink); font-weight: 700; font-size: 0.92rem; }

.live-total { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 4px 0 0; padding: 12px 16px; border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); color: var(--ink-2); font-size: 0.9rem; min-height: 48px; }
.live-total-num { color: var(--ink); font-weight: 800; font-size: 1rem; }
.live-row { display: flex; gap: 8px; align-items: stretch; }
.live-row .live-total { flex: 1; min-width: 0; }
.dice-go { flex: none; min-width: 4.5rem; display: grid; justify-items: center; align-content: center; gap: 3px; margin-top: 4px; padding: 6px 12px; border: 1px solid var(--rule); border-radius: 14px; background: var(--surface); color: var(--ink); font: inherit; font-size: .72rem; font-weight: 700; line-height: 1; cursor: pointer; }
.dice-go:hover, .dice-go:focus-visible { border-color: var(--lantern); color: var(--lantern); outline: none; }
.dice-go[hidden] { display: none; }
/* 야영지 tile (owner 11/3) */
.camp-go { position: relative; text-decoration: none; }
/* 야영지 live count (owner tg 9407): red circle on the tile's top-right corner, 99+ above 99 */
.camp-n { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 2px solid var(--paper); background: var(--alert); color: #fff; font-size: .68rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; pointer-events: none; }
.camp-n[hidden] { display: none; }
.live-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--lantern); }
.door-tags { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.live { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 0.76rem; line-height: 1.4; white-space: nowrap; border-radius: 999px; padding: 2px 9px; }
.door-mark { vertical-align: middle; }
.live-on { color: var(--live); background: color-mix(in srgb, var(--live) 14%, transparent); font-weight: 700; }
.live-on .live-dot { width: 6px; height: 6px; background: var(--live); }
.live-off { color: var(--ink-2); opacity: 0.8; }
.others, .space-gallery, .space-media, .similar { margin-top: 28px; }
.media-video { display: block; width: 100%; max-width: 560px; height: auto; margin-top: 12px; border-radius: 14px; background: #000; }
.media-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; max-width: 760px; margin-top: 12px; }
.media-card { margin: 0; }
.media-card img { display: block; width: 100%; height: auto; border-radius: 12px; }
.others-list { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.others-list a { display: inline-block; padding: 8px 14px; border: 1px solid var(--rule); border-radius: 999px; text-decoration: none; background: var(--surface); }
.others-list a:hover, .others-list a:focus-visible { border-color: var(--lantern); color: var(--lantern); }
.chip-n { font-size: 0.8em; opacity: 0.6; font-variant-numeric: tabular-nums; }
.notice { font-size: 0.85rem; color: var(--ink-2); border-top: 1px solid var(--rule); padding-block: 18px; }
.foot { border-top: 1px solid var(--rule); padding-block: 22px 40px; font-size: 0.88rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 10px 18px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--lantern); text-decoration: underline; }
/* 전체 채팅 button: right edge of the .wrap column on wide screens; panel in community.css. */
.chat-fab { position: fixed; z-index: 30; right: max(calc(16px + env(safe-area-inset-right)), calc(50vw - var(--maxw) / 2 + 16px)); bottom: calc(16px + env(safe-area-inset-bottom)); width: 56px; height: 56px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--lantern); color: var(--lantern-ink); box-shadow: 0 6px 16px rgba(0, 0, 0, .3); cursor: pointer; }
.chat-fab:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.chat-fab:not([hidden]) ~ .foot { padding-bottom: 96px; }

.page { max-width: 680px; margin: 0 auto; padding: 8px var(--gutter) 56px; }
.page h1 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem); letter-spacing: -0.03em; margin: 12px 0 8px; }
.page h2 { font-size: 1.1rem; margin: 28px 0 6px; }
.page p, .page li { color: var(--ink); }
.page .lead { color: var(--ink-2); margin-top: 0; }
form { display: grid; gap: 16px; margin-top: 20px; }
label { display: grid; gap: 6px; font-weight: 700; font-size: 0.95rem; }
label small { font-weight: 400; color: var(--ink-2); }
label small.count.over { color: var(--lantern); font-weight: 700; }
input, select, textarea { font: inherit; width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--lantern); outline-offset: 1px; }
textarea { min-height: 120px; resize: vertical; }
.field { display: grid; gap: 6px; }
.field-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.help > summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--rule); background: var(--surface); color: var(--ink-2); font-size: 0.8rem; font-weight: 700; }
.help > summary::-webkit-details-marker { display: none; }
.help > summary:focus-visible { outline: 3px solid var(--lantern); outline-offset: 2px; }
.help[open] { flex-basis: 100%; }
.help p { margin: 6px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--rule); color: var(--ink-2); font-size: 0.88rem; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { width: auto; margin-top: 5px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { min-height: 1.6em; font-weight: 700; }
.status.ok { color: var(--moss); }
.status.err { color: var(--lantern); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { border: 1px solid var(--rule); padding: 8px; text-align: left; vertical-align: top; }
@media (max-width: 600px) { table { display: block; overflow-x: auto; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.top-actions .random-btn { margin-left: 0; padding: 6px 12px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.rb-ico { display: none; }
@media (max-width: 459px) { .rb-ico { display: block; } .rb-text { display: none; } .top-actions .random-btn { padding: 7px; } }
.nu-title { margin: 18px 0 8px; font-size: 1rem; }
.nu-row { display: grid; grid-auto-flow: column; grid-auto-columns: max(132px, calc((100% - 30px) / 4)); gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
.nu-tile { scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; color: inherit; text-decoration: none; min-width: 0; }
.nu-pic { display: block; aspect-ratio: 1200 / 630; border-radius: var(--radius-thumb); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.nu-pic img, .nu-pic .glyph { width: 100%; height: 100%; object-fit: cover; display: grid; place-items: center; }
.nu-name { font-size: 0.9rem; font-weight: 600; display: flex; gap: 6px; align-items: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nu-nm { overflow: hidden; text-overflow: ellipsis; }
.nu-tile:hover .nu-pic, .nu-tile:focus-visible .nu-pic { transform: translateY(-2px); transition: transform .2s var(--ease); }
.nu-cell { position: relative; min-width: 0; scroll-snap-align: start; }
.nu-more { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.nu-more:hover, .nu-more:focus-visible { color: var(--lantern); border-color: var(--lantern); outline: none; }
.sort { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); font-size: 0.9rem; }
.sort select { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--rule); border-radius: 999px; padding: 5px 10px; }
.more { margin: -34px 0 34px; text-align: center; }
#global-open { margin: -34px 0 12px; }
#global-open:not([hidden]) + #kr-more { margin-top: 0; }
.nu-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 8px; }
.nu-head .nu-title { margin: 0; }
.nu-apply { flex: none; padding: 6px 12px; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: .88rem; font-weight: 600; background: var(--surface); }
.more a { display: block; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; background: var(--surface); }
.more a:hover, .more a:focus-visible, .nu-apply:hover, .nu-apply:focus-visible { border-color: var(--lantern); color: var(--lantern); }
.pick { border: 0; border-radius: 18px; padding: 18px; width: min(420px, calc(100% - 32px)); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.pick::backdrop { background: rgba(21, 18, 31, .55); }
.pick-img { width: 100%; height: auto; border-radius: var(--radius-thumb); display: block; }
.pick-cat { margin: 10px 0 0; color: var(--ink-2); font-size: 0.85rem; }
.pick-name { margin: 2px 0 6px; font-size: 1.2rem; }
.pick-sum { margin: 0 0 12px; color: var(--ink-2); }
.pick-actions { display: flex; gap: 8px; }
.pick-actions .btn { flex: 1; }
.pick-close { float: right; border: 0; background: none; color: var(--ink-2); font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 0 0 6px 10px; }
@media (max-width: 619px) { .nu-row { grid-auto-columns: 44%; } }

.top-app { display: inline-flex; align-items: center; gap: 6px; }
.top-brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
@media (max-width: 459px) { .top-app-text, .top-submit-more { display: none; } .top-app { min-width: 40px; min-height: 40px; justify-content: center; padding: 7px; } }
@media (max-width: 459px) { .top-actions { gap: 6px; } .top-fav { min-width: 40px; min-height: 40px; } }
@media (max-width: 380px) { .top-actions { gap: 4px; } .top-brand { gap: 4px; } }
@media (min-width: 381px) and (max-width: 459px) { .top { gap: 8px; } .top-actions { gap: 4px; } .search-toggle { width: 40px; height: 40px; } .top-rank { min-width: 36px; padding: 6px; } }
.nu-row.is-open { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); overflow: visible; }
.store-badge { display: inline-block; line-height: 0; border-radius: 8px; }
.store-badge img { display: block; width: 130px; height: 40px; }
.store-badge:focus-visible { outline: 2px solid var(--lantern); outline-offset: 3px; }
.store-badge--foot img { width: 108px; height: 33px; }

/* 정각 모임 (app.js <meetup>) */
.ev-strip .nu-pic { position: relative; }
.ev-when, .door-meetup { font-size: 0.72rem; font-weight: 700; line-height: 1.4; white-space: nowrap; border-radius: 999px; padding: 2px 8px; color: var(--ink-2); background: color-mix(in srgb, var(--ink-2) 12%, transparent); }
.ev-when { position: absolute; left: 6px; bottom: 6px; color: var(--surface); background: var(--ink-2); }
.ev-when--open { color: var(--lantern-ink); background: var(--lantern); }
.door-meetup--open { color: var(--lantern); background: color-mix(in srgb, var(--lantern) 14%, transparent); }
.ev-title { font-size: 0.8rem; color: var(--ink-2); margin-top: -4px; }
@media (max-width: 1023px) { .top-owner { display: none; } }
@media (max-width: 860px) { .top-submit-more { display: none; } }
.sub-tabs { flex-basis: 100%; display: flex; gap: 6px; flex-wrap: wrap; }
.sub-tab { font-size: 0.85rem; text-decoration: none; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--rule); }
.sub-tab[aria-current] { border-color: var(--lantern); color: var(--lantern); font-weight: 700; }
.push-note { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 50; width: min(92%, 520px); margin: 0; padding: 12px 16px; border-radius: 12px; background: var(--ink); color: var(--paper); font-size: 0.88rem; box-shadow: var(--shadow); }
.push-note a { color: inherit; }
