@import url("/common/css/tournament-font.css?v=1");
/* /t/css/competition_info.css */
:root{
  --yellow:#FFC000;
  --line:#e9ecf2;
  --text:#121826;
  --sub:#6b7280;
  --green:#16a34a;
  --red:#ef4444;
  --shadow:0 10px 26px rgba(17,24,39,.08);
  --r20:20px;
}

body{
  background:#EDF0F4;
}

.nb-topbar,
.nb-topbar__inner,
.nb-container{
  background:#EDF0F4;
}

/* 템플릿 container 안에서 쓰도록 */
.nb-page{
  background:#EDF0F4;
  max-width: 800px;
  margin: 0 auto;
}

.t-bottom-ad{
  width:100%;
  max-width:800px;
  margin:32px auto 36px;
  padding:0 14px;
  box-sizing:border-box;
  overflow:hidden;
  min-height:90px;
  max-height:90px;
}

/* ===== hero ===== */
.hero{
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--r20);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.heroTop{
  padding:16px 16px 12px;
  display:flex;
  flex-direction:column;
  gap:12px;
  align-items:stretch;
}
.heroInfoRow{
  display:flex;
  gap:14px;
  align-items:flex-start;
}
.poster{
  width:92px; height:92px;
  border-radius:16px;
  overflow:hidden;
  background:#f1f3f8;
  border:1px solid var(--line);
  flex:0 0 auto;
  display:grid;
  place-items:center;
  color:var(--sub);
  font-weight:900;
  font-size:12px;
  flex:0 0 auto;
}
.poster img{width:100%;height:100%;object-fit:cover;display:block;}

.heroInfo{flex:1; min-width:0;}
.titleRow{display:flex; gap:10px; align-items:flex-start; width:100%; min-width:0;}
.tName{
  margin:0;
  font-size:18px;
  font-weight:1000;
  letter-spacing:-.2px;
  white-space:nowrap;
  overflow-x:auto;
  overflow-y:hidden;
  text-overflow:clip;
  width:100%;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  touch-action:pan-x;
}
.tName::-webkit-scrollbar{display:none;}
.chips{display:flex; gap:6px; flex-wrap:wrap; margin-top:10px;}
.chip{
  display:inline-flex;
  align-items:center;
  padding:7px 10px;
  border-radius:999px;
  font-weight:900;
  font-size:12px;
  border:1px solid var(--line);
  background:#fff;
  color:var(--text);
}
.chip.yellow{border-color:rgba(255,192,0,.45); background:rgba(255,192,0,.14);}
.chip.blue{border-color:rgba(37,99,235,.22); background:rgba(37,99,235,.08); color:#1e3a8a;}
.chip.green{border-color:rgba(22,163,74,.22); background:rgba(22,163,74,.08); color:#14532d;}

.meta{
  margin-top:10px;
  color:var(--sub);
  font-size:13px;
  line-height:1.45;
}
.meta b{color:var(--text);}

/* ===== CTA ===== */
.ctaBar{
  margin-top:14px;
  background:#fff;
  border:1px solid rgba(255,192,0,.30);
  border-radius:18px;
  box-shadow: var(--shadow);
  padding:14px 14px;
  display:flex;
  align-items:center;
  gap:12px;
}
.ctaTitle{font-weight:1000; color:var(--text); letter-spacing:-.2px; line-height:1.15;}
.ctaSub{margin-top:3px; color:var(--sub); font-size:12px; line-height:1.2;}
.ctaBtn{
  margin-left:auto;
  border:0;
  border-radius:14px;
  padding:11px 14px;
  font-weight:1000;
  background: var(--yellow);
  color:#111;
  cursor:pointer;
  white-space:nowrap;
  box-shadow: 0 10px 18px rgba(255,192,0,.22);
}
.ctaBtn.isClosed{
  background:#e5e7eb;
  color:#4b5563;
  box-shadow:none;
}
.ctaBtn:active{ transform:scale(.99); }
.ctaBar[hidden]{ display:none !important; }
.ctaBar.isClosed{
  background:#fff;
  border-color:rgba(148,163,184,.30);
}
.ctaBar.isClosed .ctaTitle{color:#111827;}
.ctaBar.isClosed .ctaSub{color:#6b7280;}
.ctaBar.isClosed .ctaBtn{
  background:#e5e7eb !important;
  color:#4b5563 !important;
  box-shadow:none !important;
}
.ctaBtn[disabled]{
  background:#e5e7eb;
  color:#6b7280;
  box-shadow:none;
  cursor:default;
}

/* topbar title: long text can be checked by touch horizontal drag 
.nb-topbar__title{
  text-align:left;
  text-overflow:clip;
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
  touch-action:pan-x;
}
.nb-topbar__title::-webkit-scrollbar{
  display:none;
}
*/

/* topbar 공유 버튼: 프리미엄 배지 톤과 통일 */
.nb-topbar .nb-topbar__btn.is-primary{
  background: rgba(255,192,0,.14);
  border: 1px solid rgba(255,192,0,.45);
  color: #111;
}
.nb-topbar__back.is-home{
  position:relative;
}
.nb-topbar__back.is-home::before{
  content:"";
  width:13px;
  height:11px;
  border:2px solid #111;
  border-top:0;
  border-radius:2px;
  transform:translateY(2px);
}
.nb-topbar__back.is-home::after{
  content:"";
  position:absolute;
  width:12px;
  height:12px;
  border-left:2px solid #111;
  border-top:2px solid #111;
  transform:translateY(-4px) rotate(45deg);
  border-radius:2px 0 0 0;
}

/* ===== LIVE ===== */
.liveBar{
  margin:14px 0 0;
  background:#fff;
  border:1px solid rgba(22,163,74,.25);
  border-left:6px solid var(--green);
  border-radius:16px;
  padding:12px 14px;
  box-shadow:var(--shadow);
  display:flex;
  align-items:center;
  gap:10px;
}
.liveDot{
  width:10px;height:10px;border-radius:999px;
  background:var(--red);
  box-shadow:0 0 0 4px rgba(239,68,68,.12);
  flex:0 0 auto;
}
.liveTitle{font-weight:1000; letter-spacing:-.2px;}
.liveSub{
  color:var(--sub);
  font-size:13px;
  margin-left:auto;
  display:flex; align-items:center; gap:8px;
}
.pill{
  min-width:26px;
  height:22px;
  padding:0 8px;
  border-radius:999px;
  font-weight:1000;
  font-size:12px;
  background:rgba(22,163,74,.10);
  border:1px solid rgba(22,163,74,.22);
  color:#14532d;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.liveBar[hidden]{display:none;}

/* ===== grid ===== */
.grid{
  margin-top:14px;
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
}
.card{
  position:relative;
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:var(--shadow);
  padding:14px;
  display:flex;
  gap:12px;
  align-items:center;
  cursor:pointer;
  overflow:hidden;
  transform:translateY(0) scale(1);
  transition:transform .14s ease, box-shadow .14s ease, border-color .14s ease, background .14s ease;
  -webkit-tap-highlight-color:transparent;
}
.card::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  background:rgba(255,192,0,.10);
  opacity:0;
  transform:scale(.65);
  pointer-events:none;
}
.card:active,
.card.is-pressing{
  transform:translateY(1px) scale(.975);
  border-color:rgba(255,192,0,.48);
  box-shadow:0 6px 14px rgba(17,24,39,.10);
}
.card.is-pressing::after{
  animation:cardPressFlash .22s ease-out;
}
@keyframes cardPressFlash{
  0%{opacity:0; transform:scale(.55);}
  45%{opacity:1; transform:scale(1);}
  100%{opacity:0; transform:scale(1.35);}
}
.ic{
  width:44px;height:44px;border-radius:14px;
  display:grid;place-items:center;
  background:rgba(255,192,0,.14);
  border:1px solid rgba(255,192,0,.28);
  font-size:22px;
  flex:0 0 auto;
}
.card h3{margin:0; font-size:15px; font-weight:1000; letter-spacing:-.2px;}
.card p{margin:4px 0 0; color:var(--sub); font-size:12px; line-height:1.25;}
.card.result, .progress, .players, .bracket{
  background:#fff;
}
.card.progress .ic{background:rgba(37,99,235,.10); border-color:rgba(37,99,235,.22);}
.card.progress .ic{color:#2563eb;}
.card.players .ic{background:rgba(22,163,74,.10); border-color:rgba(22,163,74,.22); color:#16a34a;}
.card.bracket .ic{background:rgba(255,192,0,.14); border-color:rgba(255,192,0,.30); color:#d39a00;}
.card.result .ic{background:rgba(255,192,0,.18); border-color:rgba(255,192,0,.35); color:#d39a00;}

/* ===== tabs/panel ===== */
.tabs{
  margin-top:14px;
  display:flex;
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  overflow:hidden;
  box-shadow:var(--shadow);
}
.tab{
  flex:1;
  border:0;
  background:transparent;
  padding:12px 10px;
  font-weight:1000;
  color:var(--sub);
  cursor:pointer;
  display:flex; align-items:center; justify-content:center; gap:8px;
}
.tab.active{color:#111; background:rgba(255,192,0,.18);}

.panel{
  margin-top:10px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow:var(--shadow);
  padding:14px;
  color:var(--sub);
  font-size:13px;
  line-height:1.6;
}
.panelTitle{font-weight:1000; color:#111;}
.interestPanelHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.interestRefreshBtn{
  flex:0 0 auto;
  width:34px;
  height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:50%;
  background:#fff;
  color:#0f172a;
  font-size:22px;
  font-weight:1000;
  line-height:1;
  cursor:pointer;
  box-shadow:none;
  transition:transform .14s ease, background .14s ease, color .14s ease;
  -webkit-tap-highlight-color:transparent;
}
.interestRefreshBtn:active{
  transform:scale(.88) rotate(-35deg);
  background:#f8fafc;
}
.interestRefreshBtn.is-loading{
  color:#f59e0b;
  animation:interestRefreshSpin .7s linear infinite;
}
.interestRefreshBtn:disabled{
  cursor:default;
}
@keyframes interestRefreshSpin{
  to{transform:rotate(360deg);}
}
.kv{
  display:grid;
  grid-template-columns:92px 1fr;
  gap:8px 10px;
  margin-top:10px;
}
.kv b{color:var(--text);}

.descBox{margin-top:12px;}
.descTitle{font-weight:1000; color:#111; margin-bottom:6px;}
.descText{color:var(--sub);}
.interestCard{
  display:block;
  margin-top:10px;
  padding:0;
  overflow:hidden;
  border-radius:16px;
  color:inherit;
  text-decoration:none;
}
.interestCard + .interestCard,
#interestBox > .descBox + .descBox{
  margin-top:22px !important;
  padding-top:20px !important;
  border-top:2px solid #cbd5e1 !important;
  border-radius:0 !important;
}

.noticeBox{
  position:relative;
  margin-top:14px;
  padding:15px 15px 15px 17px;
  border:1px solid rgba(255,192,0,.45);
  border-left:6px solid var(--yellow);
  border-right:6px solid var(--yellow);
  border-radius:16px;
  background:#fff;
  box-shadow:0 12px 28px rgba(17,24,39,.12), 0 0 0 3px rgba(255,192,0,.12);
}
.noticeTitle{
  margin:0 0 8px 0;
  color:#000;
  font-size:15px;
  font-weight:1000;
  line-height:1.3;
  display:flex;
  align-items:center;
  gap:7px;
}
.noticeTitle::before{
  content:"!";
  width:18px;
  height:18px;
  border-radius:50%;
  background:var(--yellow);
  color:#000;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  font-size:13px;
  font-weight:1000;
  line-height:1;
  box-shadow:0 0 0 3px rgba(255,192,0,.18);
}
.noticeContent{
  color:#000;
  font-size:14px;
  font-weight:750;
  line-height:1.75;
  word-break:keep-all;
  overflow-wrap:anywhere;
}
.noticeContent a{
  color:#0f5bd7;
  font-weight:1000;
  text-decoration:underline;
  text-underline-offset:3px;
}

.pillRow{display:flex; gap:10px; flex-wrap:wrap; margin-top:10px;}
.linkChip{
  border:1px solid var(--line);
  background:#fff;
  border-radius:999px;
  padding:10px 12px;
  font-weight:1000;
  cursor:pointer;
}
.linkChip:active{transform:scale(.99);}
.pillRow.hasKakaoInquiry{padding-top:8px; row-gap:20px;}
.linkChipWithStatus{position:relative;}
.kakaoInquiryOn{
  position:absolute;
  top:-11px;
  left:4px;
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:3px 7px;
  border:2px solid #fff;
  border-radius:999px;
  background:#fee500;
  color:#191919;
  font-size:10px;
  font-weight:900;
  line-height:1;
  white-space:nowrap;
}
.kakaoInquiryOn::before{
  content:"";
  width:5px;
  height:5px;
  border-radius:50%;
  background:#16803c;
}

/* poster large */
.posterLargeWrap{margin-top:18px;}
.posterLargeTitle{font-weight:1000;color:#111;margin-bottom:8px;}
.posterLargeBox{
  width:100%;
  border-radius:16px;
  overflow:hidden;
  border:1px solid #E9ECF2;
  background:#fff;
  box-shadow:0 8px 20px rgba(0,0,0,0.06);
}
.posterLargeBox img{width:100%;height:auto;display:block;object-fit:contain;}

/* guide modal */
.backdrop{
  position:fixed; inset:0; background:rgba(0,0,0,.45);
  display:flex; align-items:center; justify-content:center; z-index:9999;
  padding:0;
}
#guideModal{display:none;}
#guideModal .guideSheet{
  width:100%;
  height:100dvh;
  background:#fff;
  border-radius:0;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}
#guideModal .modalHead{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 14px; border-bottom:1px solid #eee;
}
#guideModal .closeX{
  border:0; background:transparent; font-size:18px; font-weight:900; cursor:pointer;
}
#guideModal .modalBody{flex:1; padding:0; overflow:hidden;}
#guideFrame{width:100%; height:100%; border:0; display:block;}

#liveScoreModal{display:none;}
#liveScoreModal,
#liveScoreModal *{
  box-sizing:border-box;
}
#liveScoreModal .liveScoreSheet{
  width:min(480px, calc(100vw - 24px));
  max-height:min(80dvh, 720px);
  background:#fff;
  border-radius:20px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  box-shadow:0 18px 48px rgba(17,24,39,.18);
}
#liveScoreModal .modalHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:56px;
  padding:14px 18px;
  border-bottom:1px solid var(--line);
}
#liveScoreModal .modalHead b{
  min-width:0;
  color:#111827;
  font-size:16px;
  font-weight:1000;
  line-height:1.2;
}
#liveScoreModal .closeX{
  flex:0 0 auto;
  border:0;
  background:transparent;
  color:#111827;
  font-size:18px;
  font-weight:900;
  cursor:pointer;
}
#liveScoreModal .modalBody{
  overflow-y:auto;
  overflow-x:hidden;
}
.liveScoreList{
  padding:16px 18px 18px;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.liveScoreItem{
  width:100%;
  border:1px solid var(--line);
  background:#fff;
  border-radius:16px;
  padding:14px 16px;
  text-align:left;
  display:grid;
  gap:12px;
}
.liveScoreItem__head{
  display:flex;
  align-items:center;
  justify-content:center;
}
.liveScoreItem__title{
  min-width:0;
  color:#111;
  font-size:15px;
  font-weight:1000;
  line-height:1.35;
  text-align:center;
  word-break:keep-all;
  overflow-wrap:anywhere;
}
.liveScoreActions{
  display:grid;
  grid-template-columns:128px 128px;
  justify-content:center;
  gap:8px;
}
.liveScoreAction{
  border:1px solid #efd98f;
  background:#FFF6DB;
  border-radius:12px;
  min-height:42px;
  padding:0 10px;
  color:#6f4d00;
  font-size:14px;
  font-weight:1000;
  cursor:pointer;
  white-space:nowrap;
}
.liveScoreAction--primary{
  border-color:#2b8a9b;
  background:#2b8a9b;
  color:#fff;
}
.liveScoreAction:active{transform:scale(.99);}

@media (max-width:768px){
  .liveScoreActions{
    grid-template-columns:128px;
  }
  .liveScoreAction--primary{
    display:none;
  }
}

@media (max-width:380px){
  .poster{width:84px;height:84px;}
  .tName{font-size:17px;}
}
@media (max-width:420px){
  .liveScoreActions{
    grid-template-columns:128px;
  }
  .liveScoreAction{
    font-size:13px;
  }
  .heroTop{
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
  }
  .heroInfoRow{
    gap:10px;
    align-items:flex-start;
  }
  .heroInfo{
    width:100%;
  }
  .titleRow{
    width:100%;
    min-width:0;
  }
  .tName{
    display:block;
    width:100%;
    white-space:nowrap !important;
  }
  .poster{
    width:84px;
    height:84px;
  }
  .ctaBar{ align-items:flex-start; }
  .ctaBtn{ padding:10px 12px; }
}
