:root{--red:#0038A8;--ink:#222;--dark:#2A3139;--line:#EEE;--mute:#777}
*{box-sizing:border-box}
body{margin:0;background:#fff;color:var(--ink);font:14px/1.5 'Noto Sans KR',system-ui,sans-serif}
a{color:inherit;text-decoration:none}
a:hover{color:var(--red)}
.wrap{max-width:1200px;margin:0 auto;padding-left:20px;padding-right:20px}
.sr{position:absolute;left:-9999px}

.topbar{border-bottom:1px solid #E5E5E5;font-size:13px;color:#555}
.topbar-in{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 24px;padding-top:14px;padding-bottom:14px}
.topbar i{color:#CCC;font-style:normal;margin:0 8px}
.topbar-r a,.topbar-r button{margin:0}
.linkbtn{background:none;border:0;padding:0;font:inherit;color:inherit;cursor:pointer}
.linkbtn:hover{color:var(--red)}

.head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:20px;padding-top:28px;padding-bottom:28px}
.logo{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px}
.flag{align-self:center;border:1px solid #D5D5D5}
.logo-name{font-weight:900;font-size:34px;letter-spacing:-1.5px;color:var(--red)}
.logo-sub{font-size:15px;color:#666}
.search{display:flex;flex:0 1 400px;min-width:240px}
.search input{flex:1;min-width:0;height:48px;border:2px solid var(--red);border-right:0;padding:0 14px;font:inherit;font-size:16px;border-radius:0}
.search button{width:56px;height:48px;border:0;background:var(--red);cursor:pointer}

.nav{background:var(--red);color:#fff}
.nav-in{display:flex;flex-wrap:wrap;justify-content:space-around}
.nav a{padding:16px 14px;font-weight:700;font-size:15px;color:#fff}
.nav a:hover,.nav a.on{color:#FFD9DB}

.cols{display:flex;flex-wrap:wrap;gap:36px;padding-top:28px;padding-bottom:64px}
.cols>main{flex:999 1 600px;min-width:0}
.cols>aside{flex:1 1 280px;min-width:0;display:flex;flex-direction:column;gap:28px}
.titlebar{background:#F4F4F4;border-bottom:1px solid #E5E5E5}
.titlebar .wrap{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:8px;padding-top:22px;padding-bottom:22px}
.titlebar h2{margin:0;font-size:22px}
.titlebar span{font-size:13px;color:var(--mute)}

.sec{margin-bottom:28px}
.sec-h{display:flex;justify-content:space-between;align-items:center;border-bottom:2px solid var(--red);padding-bottom:10px}
.sec-h h2,.sec-h h3{margin:0;font-size:17px}
.sec-h a{font-size:13px;color:var(--mute)}
.grid2{display:flex;flex-wrap:wrap;gap:28px}
.grid2>.sec{flex:1 1 280px;min-width:0;margin:0}

.li{display:flex;gap:10px;align-items:center;padding:11px 0;border-bottom:1px solid var(--line)}
.li .t{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.li .d{flex:0 0 auto;color:#999;font-size:13px}
.li .hot{color:var(--red);font-weight:700}
.notice{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;background:#EEF3FC;border:1px solid #F3CFCF;padding:16px 20px;margin-bottom:28px}
.badge{background:var(--red);color:#fff;font-weight:700;font-size:12px;padding:4px 10px}

.row{display:flex;gap:12px;align-items:center;padding:13px 4px;border-bottom:1px solid var(--line);font-size:15px}
.row .tag{flex:0 0 auto;min-width:72px;text-align:center;font-size:12px;padding:4px 8px;background:#F4F4F4;color:#555}
.row .t{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cc{color:var(--red);font-weight:700;margin-left:4px;font-size:13px}
.row .au,.row .dt,.row .vw{flex:0 0 auto;color:#888;font-size:13px}
.row .au{max-width:90px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.empty{padding:48px 0;text-align:center;color:#888}
.pager{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin:28px 0}
.pager a,.pager span{min-width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #DDD;padding:0 10px}
.pager .cur{background:var(--red);border-color:var(--red);color:#fff}
.toolbar{display:flex;justify-content:flex-end;margin:16px 0}

.btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 24px;border:0;background:var(--dark);color:#fff;font:inherit;font-weight:500;cursor:pointer}
.btn:hover{color:#fff;opacity:.9}
.btn.red{background:var(--red)}
.btn.ghost{background:#fff;color:var(--ink);border:1px solid #CCC}
.btn.ghost:hover{color:var(--red)}
.btn.full{width:100%;min-height:52px;font-size:17px;font-weight:700}

.post h1{margin:0;padding:8px 0 16px;font-size:24px;line-height:1.4;overflow-wrap:anywhere}
.post .meta{display:flex;flex-wrap:wrap;gap:8px 24px;justify-content:space-between;background:#F4F4F4;padding:14px 16px;font-size:13px;color:#555}
.post .stat{padding:12px 16px;border-bottom:1px solid #E5E5E5;font-size:13px;color:var(--mute);display:flex;gap:18px}
.post .body{padding:28px 4px;font-size:15px;line-height:1.9;color:#333;white-space:pre-wrap;overflow-wrap:anywhere}
.post .acts{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between;padding:16px 0;border-top:1px solid #E5E5E5;border-bottom:1px solid #E5E5E5}
.post .body figure.ph{margin:16px 0;white-space:normal}
.post .body figure.ph img{display:block;max-width:100%;height:auto;background:#F4F4F4}
.post .body figure.ph figcaption{margin-top:6px;font-size:12px;line-height:1.5;color:#777}
.stats{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:28px}
.stat-card{flex:1 1 140px;border:1px solid #E4DAC7;background:#fff;padding:18px 20px;display:flex;flex-direction:column;gap:4px}
.stat-card strong{font-size:30px;color:var(--red);line-height:1.1}
.stat-card span{font-size:13px;color:#666}
.bar{flex:1;min-width:0;height:10px;background:#F1EEEE}
.bar i{display:block;height:100%;background:var(--red)}
.hero{position:relative;background-size:cover;background-position:center 40%;color:#fff}
.hero-in{padding-top:64px;padding-bottom:72px}
.hero-k{margin:0 0 12px;font-size:13px;letter-spacing:3px;color:#FFD9DB;font-weight:500}
.hero h1{margin:0;font-weight:900;font-size:clamp(28px,4.6vw,46px);line-height:1.25;letter-spacing:-1px;text-shadow:0 2px 12px rgba(0,0,0,.35)}
.hero-p{margin:16px 0 24px;max-width:560px;font-size:16px;line-height:1.7;color:#F0EAE4}
.hero-act{display:flex;flex-wrap:wrap;gap:10px}
.hb{display:inline-flex;align-items:center;min-height:46px;padding:0 22px;border-radius:8px;font-weight:700;font-size:15px;color:#fff}
.hb.red{background:var(--red)}.hb.kk{background:#FEE500;color:#222}.hb.tg{background:#1C7CB0}
.hb .ic,.roombox .ic{margin-right:8px;flex:0 0 auto}
.hero-tags a{display:inline-flex;align-items:center;gap:6px}
.hero-tags .ic{width:15px;height:15px}
.hb:hover{color:#fff;opacity:.92}.hb.kk:hover{color:#222}
.hero-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}
.hero-tags a{padding:6px 14px;border:1px solid rgba(255,255,255,.55);border-radius:999px;font-size:13px;color:#fff;background:rgba(255,255,255,.12)}
.hero-tags a:hover{background:rgba(255,255,255,.28);color:#fff}
.credit{position:absolute;right:12px;bottom:8px;font-size:11px;color:rgba(255,255,255,.75)}
.tiles{display:grid;grid-template-columns:repeat(6,1fr);gap:12px;margin-top:-34px;position:relative;z-index:2}
.tile{display:flex;flex-direction:column;gap:2px;padding:16px 14px;background:#fff;border:1px solid #E4DAC7;border-radius:10px;box-shadow:0 4px 14px rgba(0,0,0,.08);min-width:0}
.tile .ti{color:var(--red);margin-bottom:6px;line-height:0}
.tile strong{font-size:15px}
.tile span:last-child{font-size:12px;color:#777;line-height:1.4}
.tile:hover{border-color:var(--red);transform:translateY(-2px);transition:.15s}
@media (max-width:900px){.tiles{grid-template-columns:repeat(3,1fr)}}
@media (max-width:560px){.hero-in{padding-top:40px;padding-bottom:56px}.tiles{grid-template-columns:repeat(2,1fr)}.credit{display:none}}
.rk{flex:0 0 auto;width:22px;height:22px;line-height:22px;text-align:center;background:#2A3139;color:#fff;font-size:12px;font-weight:700}
.li.rank:nth-child(2) .rk,.li.rank:nth-child(3) .rk,.li.rank:nth-child(4) .rk{background:var(--red)}
.tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.tags a{padding:7px 12px;border:1px solid #DDD;border-radius:999px;font-size:13px;background:#fff}
.tags a:hover{border-color:var(--red);color:var(--red)}
.roombox{background:#EEF3FC;border:1px solid #F3CFCF;padding:18px 18px 20px}
.roombox .sec-h{border-bottom:0;padding-bottom:0}
.roombox p{margin:8px 0 14px;font-size:13px;line-height:1.6;color:#555}
.roombox a{display:flex;align-items:center;justify-content:center;min-height:46px;margin-top:8px;font-weight:700;border-radius:8px}
.roombox .kk{background:#FEE500;color:#222}
.roombox .tg{background:#1C7CB0;color:#fff}
.roombox .tg:hover{color:#fff}
.th{flex:0 0 auto;display:block;width:56px;height:42px;object-fit:cover;background:#F1EEEE}
/* 사진이 없는 글: 필리핀 국기의 태양 모양 표시 */
span.th{background:radial-gradient(circle at 50% 50%,#FCD116 0 22%,transparent 23%),linear-gradient(135deg,#0038A8 50%,#CE1126 50%);border:1px solid #EAEAEA}
.row .th{width:72px;height:54px}
.cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:16px;margin-top:14px}
.card{display:flex;flex-direction:column;gap:8px;min-width:0}
.card .pic{position:relative;display:block;aspect-ratio:4/3;background:#EEE;overflow:hidden}
.card .pic img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .25s}
.card:hover .pic img{transform:scale(1.04)}
.card .pic em{position:absolute;left:0;top:0;background:var(--red);color:#fff;font-size:12px;font-style:normal;font-weight:700;padding:4px 10px}
.card .ct{font-size:15px;font-weight:700;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card .cd{font-size:12px;color:#999}
@media (max-width:640px){.cards{grid-template-columns:repeat(2,1fr);gap:12px}.row .th{display:none}}
.nb{display:inline-block;min-width:16px;height:16px;line-height:16px;margin-right:6px;background:#D6001C;color:#fff;font-size:11px;font-weight:700;text-align:center;vertical-align:1px}
.cm{padding:16px 4px;border-bottom:1px solid var(--line)}
.cm .h{display:flex;gap:12px;align-items:baseline;font-size:13px;color:var(--mute)}
.cm .h strong{color:var(--ink);font-size:14px}
.cm p{margin:8px 0 0;font-size:15px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}
.cm .del{margin-left:auto}
.cmform{margin-top:20px;border:1px solid #CCC}
.cmform textarea{display:block;width:100%;height:100px;border:0;padding:14px;font:inherit;font-size:15px;resize:vertical}
.cmform .bar{display:flex;justify-content:flex-end;padding:10px;background:#F4F4F4;border-top:1px solid #E5E5E5}
.needlogin{margin-top:20px;padding:20px;background:#F4F4F4;text-align:center}

.form{max-width:480px;margin:0 auto;padding:48px 20px 72px;display:flex;flex-direction:column;gap:22px}
.form.wide{max-width:900px}
.form label.l{display:block;margin:0 0 6px;font-weight:700;font-size:14px}
.form input[type=text],.form input[type=password],.form select,.form textarea{display:block;width:100%;height:48px;border:1px solid #BBB;padding:0 14px;font:inherit;font-size:16px;border-radius:0;background:#fff}
.form textarea{height:360px;padding:14px;resize:vertical;line-height:1.7}
.form .hint{margin:6px 0 0;font-size:13px;color:var(--mute)}
.form .chk{display:flex;gap:10px;align-items:center;min-height:32px}
.form .chk input{width:20px;height:20px;margin:0}
.form .info{background:#EEF3FC;border:1px solid #F3CFCF;padding:14px 16px;font-size:13px;line-height:1.7;color:#444}
.form .sub{margin:0;text-align:center;font-size:14px;color:#666}
.form .sub a{color:var(--red);font-weight:700}
.err{color:#B00020;font-size:14px;min-height:20px;margin:0}
.demo{background:#FFF8E1;border-bottom:1px solid #F0E0A0;text-align:center;padding:10px 20px;font-size:13px;color:#6B5600}
.doc{max-width:760px;margin:0 auto;padding:40px 20px 72px;line-height:1.9}
.doc h2{font-size:22px}.doc h3{margin-top:28px}

.rooms{position:sticky;bottom:16px;z-index:10;display:flex;flex-wrap:wrap;justify-content:center;gap:10px;padding:0 20px 16px;pointer-events:none}
.rooms a,.rooms span{pointer-events:auto;display:inline-flex;align-items:center;gap:10px;min-height:48px;padding:0 22px;border-radius:8px;font-weight:700;box-shadow:0 2px 8px rgba(0,0,0,.25)}
.rooms .tg{background:#1C7CB0;color:#fff}
.rooms .kk{background:#FEE500;color:#222}
.rooms .off{opacity:.55;cursor:default}

.foot{background:var(--dark);color:#B5BAC0;font-size:13px;line-height:1.8}
.foot-in{display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px 40px;padding-top:32px;padding-bottom:32px}
.foot strong{color:#fff;font-size:18px}
.foot-links{display:flex;flex-wrap:wrap;gap:6px 24px;align-items:flex-start}

@media (max-width:640px){
  .row .vw,.row .au{display:none}
  .nav-in{justify-content:flex-start}
}

.hero-in{display:grid;grid-template-columns:minmax(0,1fr);gap:32px;align-items:center}
.hero-side{display:none}
@media (min-width:900px){
  .hero-in{grid-template-columns:minmax(0,1fr) 340px}
  .hero-side{display:block;padding:16px;border-radius:12px;background:rgba(20,16,14,.55);border:1px solid rgba(255,255,255,.25);backdrop-filter:blur(6px)}
  .hero-side h3{margin:0 0 10px;font-size:15px;font-weight:700;color:#fff}
  .hero-side a{display:flex;gap:10px;align-items:center;padding:8px 0;border-top:1px solid rgba(255,255,255,.15);color:#fff}
  .hero-side a:hover{color:#FFD9DB}
  .hs-th{flex:0 0 56px;height:42px;border-radius:6px;background:#6b5a55 center/cover}
  .hs-t{font-size:13px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .hs-t em{display:block;font-style:normal;font-size:11px;color:#FFD9DB;margin-bottom:2px}
  .hero-side .hs-more{justify-content:flex-end;font-size:12px;color:#FFD9DB;padding-bottom:0}
}
.hero-p,.hero h1{word-break:keep-all}
@media (max-width:640px){
  .nav a{padding:10px 11px;font-size:14px}
  .hero-act .hb{flex:1 1 auto;justify-content:center}
}

.hero{overflow:hidden;background:#2a2320}
.hero::after{content:"";position:absolute;inset:0;background:linear-gradient(rgba(25,20,18,.35),rgba(25,20,18,.62));z-index:1}
.hero-bg{position:absolute;inset:0;background-size:cover;background-position:center 45%;opacity:0;transition:opacity 1.4s ease;z-index:0}
.hero-bg.on{opacity:1}
.hero-in{position:relative;z-index:2}
.hero .credit{z-index:2}
.hero-join{margin:12px 0 0;font-size:13px;color:#F0EAE4;opacity:.9;word-break:keep-all}

/* 알림·쪽지 */
.ubadge{display:inline-block;min-width:16px;padding:1px 5px;margin-left:4px;border-radius:9px;background:var(--red);color:#fff;font-size:11px;font-style:normal;font-weight:700;line-height:1.4;text-align:center}
.ubadge:empty{display:none}
.tabs{display:flex;flex-wrap:wrap;gap:2px;margin:0 0 18px;border-bottom:1px solid #E5E5E5}
.tabs a{padding:10px 16px;color:#555;border-bottom:2px solid transparent}
.tabs a.on{color:var(--red);border-bottom-color:var(--red);font-weight:700}
.msg{border:1px solid #E5E5E5;background:#fff;padding:14px 16px;margin-bottom:10px}
.msg.unread{border-color:var(--red)}
.msg .h{display:flex;flex-wrap:wrap;align-items:center;gap:10px;font-size:13px;color:#777}
.msg .h strong{color:#222}
.msg p{margin:8px 0 0;line-height:1.7;word-break:break-word}
.msgl{margin-left:8px;font-size:12px;color:var(--red)}

/* 모바일 보정: 입력칸 16px(아이폰 확대 방지), 맨 위 링크·버튼의 터치 영역 넓히기 */
@media (max-width:640px){
  input:not([type=checkbox]):not([type=radio]),textarea,select,.cmform textarea{font-size:16px}
  .topbar-in{padding-top:6px;padding-bottom:6px;gap:0 16px}
  .topbar-r a,.topbar-r .linkbtn,.topbar-l a{display:inline-block;padding:9px 4px;min-height:36px;box-sizing:border-box}
  .btn,.hb{min-height:40px}
  .tabs a{padding:12px 12px}
  .msg .h .linkbtn,.cm .h .linkbtn,.msgl{padding:8px 6px;display:inline-block}
}
