/* Alpha登竜門 ランキング 共通スタイル（/newstar と管理用アーカイブで共有）
   配色はガイドブックのバナーに合わせる（シアン×マゼンタ×紺〜深紫）。アイコンはTikTokに合わせて丸 */
:root {
  /* 配色はガイドブックのバナー画像に合わせる（シアンの帯・マゼンタの帯・紺〜深紫の地）。
     新人王（黒×深紅×ゴールド）とは別の見た目にする＝1ページ1イベント */
  --cy:   #19c6f0;
  --cy2:  #8ae6ff;
  --mg:   #e03ab8;
  --mg2:  #ff7ad9;
  --bg:   #05060f;
  --card: #0c0e1f;
  --card2:#131634;
  --line: rgba(255,255,255,.10);
  --line2: rgba(25,198,240,.32);
  --text: #ffffff;
  --mut:  #b9bfd6;
  --mut2: #8a90aa;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif;
  padding-bottom: calc(40px + env(safe-area-inset-bottom));
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 560px; margin: 0 auto; padding: 0 14px; }
.num { font-variant-numeric: tabular-nums; }

/* ================= ヒーロー ================= */
.hero { position: relative; overflow: hidden; padding: 30px 0 22px; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(90% 70% at 18% -10%, rgba(25,198,240,.30), transparent 60%),
    radial-gradient(90% 70% at 88% 4%, rgba(224,58,184,.30), transparent 62%),
    linear-gradient(180deg, #0d0f2a 0%, #140820 55%, var(--bg) 100%);
}
.beam { position: absolute; top: -40%; width: 2px; height: 190%; opacity: .5; }
.beam.l  { left: 15%; transform: rotate(19deg); background: linear-gradient(180deg, transparent, var(--cy), transparent); }
.beam.l2 { left: 24%; transform: rotate(19deg); width: 1px; opacity: .28;
           background: linear-gradient(180deg, transparent, var(--cy2), transparent); }
.beam.r  { right: 16%; transform: rotate(-19deg); background: linear-gradient(180deg, transparent, var(--mg), transparent); }
.beam.r2 { right: 25%; transform: rotate(-19deg); width: 1px; opacity: .28;
           background: linear-gradient(180deg, transparent, var(--mg2), transparent); }
.hero-in { position: relative; text-align: center; }
.kicker {
  font-size: 12px; letter-spacing: .42em; text-indent: .42em; font-weight: 700;
  color: var(--cy2);
}
.title {
  margin: 4px 0 0; font-size: 46px; line-height: 1.06; font-weight: 900; letter-spacing: .06em;
  color: #fff;
  text-shadow: -3px 0 var(--cy), 3px 0 var(--mg), 0 0 22px rgba(224,58,184,.35);
}
.season { margin-top: 7px; font-size: 13px; color: var(--mut); letter-spacing: .08em; }

.period { position: relative; margin: 16px auto 0; max-width: 420px; background: rgba(10,16,32,.72); padding: 11px 14px; }
.period::before {
  content: ''; position: absolute; inset: 0; padding: 1px;
  background: linear-gradient(96deg, var(--cy), var(--mg) 78%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.period .plabel { font-size: 11.5px; letter-spacing: .2em; color: var(--cy); font-weight: 700; }
.period .pval { margin-top: 3px; font-size: 15.5px; font-weight: 700; letter-spacing: .02em; }
.period .pstate { margin-top: 4px; font-size: 12.5px; color: var(--mut); }
.stamp { margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 6px;
         font-size: 12px; color: var(--mut2); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mg); box-shadow: 0 0 8px var(--mg); }

.notice { position: relative; margin: 18px 0 0; padding: 12px 0 12px 14px;
          font-size: 12.5px; color: var(--mut); line-height: 1.85; }
.notice::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
                  background: linear-gradient(180deg, var(--cy), var(--mg)); }
.notice b { color: var(--cy); font-weight: 800; }

/* ================= 見出し ================= */
.sec { margin: 30px 0 0; }
.sec-h { display: flex; align-items: baseline; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.sec-h .en { font-size: 11px; letter-spacing: .34em; color: var(--cy); font-weight: 700; }
.sec-h .ja { font-size: 13.5px; color: var(--mut); letter-spacing: .06em; }

/* ================= ランキング ================= */
.top { position: relative; margin-top: 16px; padding: 18px 16px; background: linear-gradient(180deg, var(--card2), var(--card)); }
.top::before {
  content: ''; position: absolute; inset: 0; padding: 1px;
  background: linear-gradient(140deg, var(--cy), rgba(25,198,240,0) 42%, var(--mg));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.top .crown { font-size: 11px; letter-spacing: .3em; color: var(--cy); font-weight: 800; }
.top .body { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
/* TikTok のアイコンは丸なので丸で出す（四角だと違和感・Katsu 9/17。新人王ページも丸） */
.top img { width: 64px; height: 64px; object-fit: cover; border-radius: 50%; border: 1px solid var(--line2); flex: none; }
/* アイコンが取れない人（過去回はURLの期限切れ）も丸い無地で枠を保つ */
.top .ph { width: 64px; height: 64px; border-radius: 50%; background: var(--card2); border: 1px solid var(--line2); flex: none; }
/* 1位は大きく見せたいので2行までは許し、それ以上は省略する */
.top .nm { font-size: 18px; font-weight: 800; line-height: 1.35; display: -webkit-box;
           -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.top .id { font-size: 11.5px; color: var(--mut2); margin-top: 2px; }
.top .pt { margin-left: auto; text-align: right; }
.top .pt b { display: block; font-size: 24px; font-weight: 900; letter-spacing: .01em;
             background: linear-gradient(90deg, var(--cy2), var(--mg2));
             -webkit-background-clip: text; background-clip: text; color: transparent; }
.top .pt span { font-size: 10.5px; color: var(--mut2); letter-spacing: .12em; }

.row { display: flex; align-items: center; gap: 12px; padding: 11px 2px; border-bottom: 1px solid var(--line); }
.row .rk { width: 28px; text-align: center; font-size: 17px; font-weight: 800; color: var(--mut); }
.row.medal .rk { color: var(--cy); }
.row img { width: 38px; height: 38px; object-fit: cover; border-radius: 50%; border: 1px solid var(--line); flex: none; }
.row .ph { width: 38px; height: 38px; border-radius: 50%; background: var(--card2); border: 1px solid var(--line); flex: none; }
/* 絵文字入りの長いニックネームが3行に折り返して行が崩れるので1行で省略する */
.row .nm { font-size: 14px; font-weight: 700; line-height: 1.4; min-width: 0; flex: 1;
           overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .nm span { display: block; font-size: 11px; color: var(--mut2); font-weight: 500; margin-top: 1px;
                overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .pt { margin-left: auto; font-size: 14.5px; font-weight: 800; white-space: nowrap; }
.row .pt em { font-style: normal; font-size: 10px; color: var(--mut2); margin-left: 3px; letter-spacing: .06em; }

.cut { margin: 10px 0 0; font-size: 11.5px; color: var(--mut2); text-align: center; letter-spacing: .04em; }

/* ================= 次回・プライズ・条件 ================= */
.next { margin-top: 14px; padding: 14px; background: var(--card); border: 1px solid var(--line); }
.next .l { font-size: 11px; letter-spacing: .28em; color: var(--mg2); font-weight: 700; }
.next .v { margin-top: 5px; font-size: 16px; font-weight: 800; }
.next .s { margin-top: 3px; font-size: 12px; color: var(--mut); }

.plist { margin-top: 14px; }
.pitem { padding: 13px 0; border-bottom: 1px solid var(--line); }
.pitem .t { font-size: 12px; color: var(--cy); font-weight: 800; letter-spacing: .06em; }
.pitem .b { margin-top: 4px; font-size: 14px; font-weight: 700; line-height: 1.5; }
.pitem .n { margin-top: 3px; font-size: 12px; color: var(--mut); line-height: 1.7; }

.cond { margin-top: 12px; }
.cond dl { display: grid; grid-template-columns: 96px 1fr; gap: 0; margin: 0; }
.cond dt { padding: 10px 0; font-size: 12px; color: var(--mut2); border-bottom: 1px solid var(--line); letter-spacing: .04em; }
.cond dd { margin: 0; padding: 10px 0; font-size: 13px; line-height: 1.7; border-bottom: 1px solid var(--line); }

.gb { display: block; margin-top: 20px; padding: 14px; text-align: center; font-size: 13.5px; font-weight: 800;
      letter-spacing: .06em; background: linear-gradient(96deg, rgba(25,198,240,.16), rgba(224,58,184,.16));
      border: 1px solid var(--line2); }
.foot { margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--line);
        font-size: 11.5px; color: var(--mut2); line-height: 1.9; text-align: center; }
.empty { margin-top: 18px; padding: 26px 14px; text-align: center; color: var(--mut); font-size: 13.5px;
         background: var(--card); border: 1px solid var(--line); line-height: 1.9; }

@media (max-width: 380px) {
  .title { font-size: 38px; }
  .cond dl { grid-template-columns: 78px 1fr; }
}

/* ================= 回の切り替え（その月の第1〜3回） ================= */
.rtabs { display: flex; margin: 22px 0 0; border-bottom: 1px solid var(--line); }
.rtab { flex: 1; appearance: none; background: none; border: 0; cursor: pointer; font-family: inherit;
        padding: 10px 2px 11px; color: var(--mut2); position: relative; text-align: center; }
.rtab b { display: block; font-size: 13.5px; font-weight: 800; letter-spacing: .04em; }
.rtab span { display: block; margin-top: 2px; font-size: 11px; letter-spacing: .02em; }
.rtab em { display: block; margin-top: 3px; font-style: normal; font-size: 10px; letter-spacing: .12em; }
.rtab.live em { color: var(--cy2); }
.rtab.on { color: var(--text); }
.rtab.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
                  background: linear-gradient(90deg, var(--cy), var(--mg)); }
.rtab.upcoming { opacity: .55; }

/* ================= 管理用アーカイブ ================= */
.adm { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0;
       font-size: 12px; color: var(--mut2); letter-spacing: .06em; border-bottom: 1px solid var(--line); }
.adm a { color: var(--cy2); }
.arc-month { margin-top: 26px; }
.arc-month h2 { margin: 0; padding-bottom: 8px; border-bottom: 1px solid var(--line);
                font-size: 13px; letter-spacing: .12em; color: var(--mut); font-weight: 700; }
.arc-row { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; padding: 13px 2px; border-bottom: 1px solid var(--line); }
.arc-row .n { font-size: 14px; font-weight: 800; }
.arc-row .n small { font-size: 11px; font-weight: 600; color: var(--mut2); margin-left: 6px; letter-spacing: .04em; }
.arc-row .p { font-size: 12px; color: var(--mut); }
.arc-row .w { grid-column: 1 / -1; font-size: 12px; color: var(--mut2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arc-row .w b { color: var(--text); font-weight: 700; }
.arc-row .s { font-size: 11px; color: var(--mut2); align-self: start; letter-spacing: .06em; }
.arc-row .s.live { color: var(--cy2); }
