/* ===== ポータル ===== */
.hero { display: flex; align-items: center; gap: 14px; margin: 8px 0 18px; }
.hero__text { font-weight: 700; }
.hero .mascot { width: 84px; height: 84px; flex: none; }

.next-card { position: relative; overflow: hidden; border-color: var(--brand); }
.next-card__label { font-size: 13px; font-weight: 700; color: var(--brand); letter-spacing: 0.08em; }
.next-card__title { font-size: 24px; margin: 4px 0; }
.next-card__days { font-family: var(--font-head); font-weight: 900; font-size: 40px; color: var(--pop); line-height: 1; }
.next-card__days small { font-family: var(--font-body); font-size: 16px; color: var(--ink-soft); font-weight: 700; }

.section-head { font-size: 18px; margin: 28px 0 10px; }

.test-grid { display: grid; gap: 14px; }
.test-card { display: grid; gap: 10px; text-decoration: none; color: var(--ink); }
.test-card__top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.test-card__title { font-family: var(--font-head); font-weight: 900; font-size: 20px; }
.badge { font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--pop); color: #fff; }
.badge--done { background: var(--line); color: var(--ink-soft); }
.badge--soon { background: var(--line); color: var(--ink-soft); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: var(--bg); border-radius: 12px; padding: 8px; text-align: center; }
.stat__label { font-size: 12px; color: var(--ink-soft); font-weight: 700; }
.stat__value { font-family: var(--font-head); font-weight: 900; font-size: 20px; }
.test-card.is-coming { opacity: 0.6; pointer-events: none; box-shadow: none; }
.test-card.is-done { filter: grayscale(0.5); }

/* ===== 合言葉 ===== */
.gate { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 16px; }
.gate .card { width: min(100%, 400px); text-align: center; }
.gate .mascot { width: 110px; height: 110px; }
.gate form { display: grid; gap: 12px; margin-top: 12px; }

/* ===== ランキング ===== */
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: 999px; background: var(--card); border: 2px solid var(--line); margin-bottom: 12px; }
.tab { text-align: center; padding: 10px; border-radius: 999px; font-weight: 900; text-decoration: none; color: var(--ink-soft); }
.tab.is-active { background: var(--brand); color: var(--brand-ink); }
.podium__score small, .rank-row__total small { font-family: var(--font-body); font-weight: 700; font-size: 13px; }
.podium__score.is-clear { color: var(--gold); font-size: 18px; }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 8px; margin: 18px 0; }
.podium__col { text-align: center; }
.podium__name { font-weight: 700; font-size: 18px; word-break: keep-all; }
.podium__score { font-family: var(--font-num); font-size: 22px; }
.podium__block { border-radius: 14px 14px 4px 4px; color: #fff; font-family: var(--font-num); font-size: 28px; padding: 8px 0; box-shadow: var(--shadow); }
.podium__col--1 .podium__block { background: var(--gold); color: #3a2a00; height: 110px; }
.podium__col--2 .podium__block { background: #a9b4c8; height: 82px; }
.podium__col--3 .podium__block { background: #d79a63; height: 64px; }

.rank-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rank-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 10px 14px; }
.rank-row__no { font-family: var(--font-num); font-size: 20px; text-align: center; }
.rank-row__name { font-weight: 700; font-size: 18px; }
.rank-row__sub { font-size: 13px; color: var(--ink-soft); }
.rank-row__total { font-family: var(--font-num); font-size: 22px; }
.rank-row.is-me { border-color: var(--pop); background: var(--card); background: color-mix(in srgb, var(--pop) 10%, var(--card)); }

/* ===== まちがいノート ===== */
.bars { display: grid; gap: 8px; }
.bar { display: grid; grid-template-columns: 9em 1fr 3.2em; gap: 8px; align-items: center; font-size: 14px; font-weight: 700; }
.bar__track { height: 14px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar__fill { height: 100%; border-radius: 999px; background: var(--ok); }
.bar__fill.is-low { background: var(--miss); }
.note-item { display: grid; gap: 4px; padding: 12px 0; border-top: 2px dashed var(--line); }
.note-item:first-of-type { border-top: 0; }
.note-item__q { font-weight: 700; }
.note-item__a { font-size: 15px; }
.note-item__src { font-size: 13px; color: var(--ink-soft); }
.tag-wrong { color: var(--miss); font-weight: 700; }
.tag-wrong u, .tag-right u { text-decoration-thickness: 2px; text-underline-offset: 3px; }
.tag-right { color: var(--ok); font-weight: 700; }
