/* Parent site — desktop and phone */
body { background: var(--bg); }
.nav { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.nav-in { max-width: 1280px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav .brand img { height: 34px; }
.nav-search { display: flex; gap: 6px; width: min(360px, 48vw); }
.nav-search .input { height: 44px; font-size: 15px; }
.nav-search .btn { min-height: 44px; width: 48px; padding: 0; }
@media (max-width: 640px) { .nav-search { display: none; } .nav-in { justify-content: center; } }

.gate { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.gate-card { width: 100%; max-width: 400px; padding: 26px; display: flex; flex-direction: column; gap: 16px; text-align: center; }
.gate-card .field { text-align: left; }
.gate-logo { height: 110px; width: auto; margin: 0 auto; }
.gate-card h1 { margin: 0; font-size: 28px; }

.hero { background: var(--navy); color: #fff; }
.hero-in { max-width: 1280px; margin: 0 auto; padding: 36px 20px 40px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: center; }
@media (min-width: 900px) { .hero-in { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); padding: 52px 20px 56px; } }
.kicker-l { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--cyan); letter-spacing: .02em; }
.hero h1 { margin: 12px 0 10px; font-size: clamp(34px, 6vw, 60px); line-height: 1.02; }
.hero p { margin: 0 0 22px; font-size: 17px; color: #C9D6E6; max-width: 520px; }
.hero-search { display: flex; gap: 8px; max-width: 520px; }
.hero-search .input-room { flex: 1; min-width: 0; height: 60px; font-size: 28px; border: 0; }
.hero-search .btn { min-height: 60px; white-space: nowrap; }
.recent { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; color: #A9B8CC; }
.recent-list { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 34px; padding: 0 14px; border-radius: 999px; border: 1.5px solid #2B4466; background: transparent; color: #fff; font-family: var(--display); font-weight: 600; font-size: 16px; }
.chip:hover { border-color: var(--cyan); }
.hero-pics { display: none; }
@media (min-width: 900px) {
  .hero-pics { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; height: 340px; }
  .hero-pics img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; background: var(--navy-2); }
  .hero-pics img:first-child { grid-row: 1 / 3; }
  .hero-pics:empty { display: none; }
}

.wrap { max-width: 1280px; margin: 0 auto; padding: 20px 20px 40px; }
.tabs { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.tab { height: 42px; padding: 0 18px; border-radius: 999px; display: inline-flex; align-items: center; background: #fff; border: 1.5px solid var(--line); color: var(--ink); font-weight: 700; font-size: 15px; text-decoration: none; }
.tab:hover { border-color: var(--blue); color: var(--ink); }
.tab.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.feed-count { margin-left: auto; font-size: 14px; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 1240px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.cell { position: relative; }
.tile { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: #DCE5F0; border: 0; padding: 0; cursor: zoom-in; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.tile:hover img { transform: scale(1.04); }
.tag { position: absolute; left: 8px; bottom: 8px; height: 26px; padding: 0 9px; border-radius: 8px; background: rgba(11, 26, 46, .82); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; text-decoration: none; }
.tag:hover { background: var(--navy); color: var(--cyan); }
.tag.hl { background: rgba(255, 201, 74, .95); color: #2A1A00; }
.tile-dl { position: absolute; right: 8px; bottom: 8px; width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .94); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.tile-dl svg { width: 17px; height: 17px; }
.skeleton { aspect-ratio: 4 / 3; border-radius: 12px; background: linear-gradient(90deg, #DCE5F0, #E8EEF6, #DCE5F0); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.more { display: flex; justify-content: center; padding: 26px 0 6px; min-height: 60px; }

.room-hero { background: var(--navy); color: #fff; border-radius: 20px; padding: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-bottom: 16px; }
.room-title { flex: 1 1 260px; }
.room-hero .btn { flex: 0 1 300px; }
@media (max-width: 640px) { .room-hero .btn { flex: 1 1 100%; } }
.room-kicker { font-family: var(--display); font-size: 13px; letter-spacing: .18em; color: var(--cyan); }
.room-kicker.hl { color: #FFC94A; }
.room-no { font-family: var(--display); font-weight: 700; font-size: clamp(44px, 7vw, 64px); line-height: 1; margin: 2px 0 6px; text-transform: uppercase; }
.room-meta { margin: 0; color: #B8C6D9; font-size: 14px; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--bg); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn-dark { background: rgba(255, 255, 255, .1); color: #fff; }
.room-hero .icon-btn-dark { align-self: flex-start; }

.empty { padding: 32px 20px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.empty h2 { margin: 0; font-size: 24px; }
.empty p { margin: 0 0 8px; max-width: 420px; }

.foot { border-top: 1px solid var(--line); background: #fff; }
.foot-in { max-width: 1280px; margin: 0 auto; padding: 18px 20px 26px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--muted); }
.foot .display { font-weight: 500; letter-spacing: .08em; }

.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(6, 14, 26, .97); color: #fff; display: flex; flex-direction: column; }
.lb-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 12px 14px; padding-top: max(12px, env(safe-area-inset-top)); }
.lb-title { display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.lb-title b { font-size: 18px; } .lb-title span { font-size: 13px; color: #A9B8CC; }
.lb-album { justify-self: end; color: var(--cyan); font-weight: 700; font-size: 14px; text-decoration: none; padding: 10px; }
.lb-album:hover { color: #fff; }
.lb-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; position: relative; touch-action: pan-y; padding: 0 8px; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; border-radius: 4px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(11, 26, 46, .6); color: #fff; display: flex; align-items: center; justify-content: center; }
.lb-nav svg { width: 24px; height: 24px; }
#lbPrev { left: 14px; } #lbNext { right: 14px; }
.lb-bottom { padding: 14px 16px; padding-bottom: max(20px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.lb-bottom .btn { width: 100%; max-width: 420px; }
.lb-note { font-size: 12px; color: #A9B8CC; }
