/* 첫 화면 전용. 시험지(미색 종이·명조)와 OMR 답안지(분홍 인쇄)를 그림 삼아 쓴다. */
body.home { background: #efece5; }

/* ---------- 히어로 ---------- */
.hero { background: #14161a; color: #fff; overflow: hidden; position: relative; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 420px at 85% 10%, rgba(226, 86, 122, .28), transparent 60%), radial-gradient(700px 400px at 0% 100%, rgba(255, 255, 255, .06), transparent 60%); pointer-events: none; }
.hero-in { position: relative; max-width: 1080px; margin: 0 auto; padding: 44px 20px 0; display: grid; grid-template-columns: 1fr 340px; gap: 30px; align-items: end; }
.kicker { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid rgba(255, 255, 255, .7); border-radius: 20px; padding: 3px 14px; font: 700 14px var(--serif); letter-spacing: .08em; }
.kicker i { width: 8px; height: 8px; border-radius: 50%; background: #ff4d5a; animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.hero h1 { margin: 16px 0 10px; font: 800 46px/1.18 var(--serif); letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: #ff8fab; }
.hero .lead { margin: 0 0 26px; color: #c9ccd1; font-size: 16px; max-width: 520px; }

.next { display: inline-flex; flex-direction: column; gap: 2px; margin-bottom: 30px; }
.next .lab { font-size: 13px; color: #9aa0a8; letter-spacing: .04em; }
.next .what { font: 700 20px var(--sans); }
.next .clock { font: 800 58px/1.05 var(--sans); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.next .clock small { font-size: 18px; font-weight: 600; color: #9aa0a8; margin-left: 8px; }
.next a.go { align-self: flex-start; margin-top: 10px; display: inline-flex; align-items: center; height: 46px; padding: 0 22px; border-radius: 4px; background: #fff; color: #111; font-weight: 800; text-decoration: none; font-size: 16px; }

/* 답안지 그림 */
.card-art { align-self: end; background: #fffdfd; border: 2px solid var(--omr); border-bottom: 0; border-radius: 6px 6px 0 0; padding: 12px 14px 0; transform: rotate(2.2deg) translateY(10px); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); color: var(--omr); }
.card-art .hd { text-align: center; font: 700 15px var(--serif); letter-spacing: .4em; border-bottom: 2px solid var(--omr); padding-bottom: 7px; margin-bottom: 6px; }
.art-row { display: grid; grid-template-columns: 30px 1fr; align-items: center; height: 27px; border-bottom: 1px solid #f1bccb; }
.art-row b { font-size: 12px; text-align: center; background: var(--omr-soft); align-self: stretch; display: flex; align-items: center; justify-content: center; border-right: 1.5px solid var(--omr); color: #b02a52; }
.art-row span { display: flex; justify-content: space-around; }
.art-row u { width: 15px; height: 21px; border: 1.2px solid var(--omr); border-radius: 50%; text-decoration: none; font-size: 9.5px; display: flex; align-items: center; justify-content: center; background: #fff; }
.art-row u.f { background: #111; border-color: #111; color: #111; animation: fill .5s both; }
@keyframes fill { from { background: #fff; border-color: var(--omr); transform: scale(1.5); } }

/* 교시 흐름 */
.track { position: relative; background: #0c0d10; border-top: 1px solid #2a2d33; }
.track ol { max-width: 1080px; margin: 0 auto; padding: 16px 20px; list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.track li { position: relative; padding-top: 22px; color: #7d838c; font-size: 13px; }
.track li::before { content: ""; position: absolute; top: 6px; left: 0; right: -6px; height: 2px; background: #2f333a; }
.track li:last-child::before { right: 0; }
.track li::after { content: ""; position: absolute; top: 0; left: 0; width: 14px; height: 14px; border-radius: 50%; background: #14161a; border: 2px solid #4a4f58; box-sizing: border-box; }
.track li b { display: block; color: #cfd2d7; font-size: 14px; }
.track li.open { color: #ffb3c6; }
.track li.open::before { background: var(--omr); }
.track li.open::after { background: var(--omr); border-color: var(--omr); }
.track li.open b { color: #fff; }
.track li.now::after { border-color: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .18); animation: blink 1.4s infinite; }
.track li.now b { color: #fff; }

/* ---------- 과목 ---------- */
.home-wrap { max-width: 1080px; margin: 0 auto; padding: 28px 20px 50px; }
.sec-h { display: flex; align-items: baseline; gap: 10px; margin: 30px 0 12px; }
.sec-h:first-child { margin-top: 0; }
.sec-h h2 { margin: 0; font: 800 22px var(--serif); color: #111; }
.sec-h .pill { border: 1.5px solid #111; border-radius: 14px; padding: 0 10px; font: 700 13px/22px var(--serif); color: #111; }
.sec-h .t { margin-left: auto; font-size: 13px; color: #666; font-variant-numeric: tabular-nums; }
.sec-h .t.open { color: #0a7a2f; font-weight: 700; }

.bigs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.big { position: relative; background: #fffef9; border: 1px solid #d8d3c6; border-top: 4px solid #111; padding: 18px 18px 16px; min-height: 196px; display: flex; flex-direction: column; text-decoration: none; color: inherit; box-shadow: 0 1px 0 #cfc9ba, 0 6px 16px rgba(0, 0, 0, .05); transition: transform .15s, box-shadow .15s; }
.big .pd { align-self: flex-start; border: 1.5px solid #111; border-radius: 14px; padding: 0 10px; font: 700 12.5px/21px var(--serif); color: #111; }
.big .nm { font: 800 38px/1.15 var(--serif); letter-spacing: .1em; color: #111; margin: 10px 0 4px; }
.big .info { font-size: 13px; color: #666; }
.big .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 14px; border-top: 1px dashed #cfc9ba; font-size: 13.5px; color: #666; font-variant-numeric: tabular-nums; }
.big .foot strong { color: #111; }
.big .no { position: absolute; right: 14px; top: 8px; font: 800 64px/1 var(--serif); color: rgba(0, 0, 0, .06); }
.big.wait { border-top-color: #b9b3a4; }
.big.wait .nm { color: #555; }
.big.open { border-top-color: var(--red); cursor: pointer; }
.big.open:hover { transform: translateY(-3px); box-shadow: 0 1px 0 #cfc9ba, 0 14px 28px rgba(0, 0, 0, .12); }
.big.open .no { color: rgba(215, 20, 26, .1); }
.tag { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: 13px; }
.tag.ok { color: #0a7a2f; }
.tag.ok::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #0a7a2f; }
.cta { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; background: #111; color: #fff; font-weight: 700; border-radius: 3px; font-size: 14px; }

.grp { background: #fffef9; border: 1px solid #d8d3c6; padding: 4px 16px 14px; box-shadow: 0 1px 0 #cfc9ba; }
.grp h3 { margin: 14px 0 8px; font: 700 13px var(--sans); color: #8a8372; letter-spacing: .04em; }
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.chip { display: flex; align-items: center; justify-content: space-between; gap: 6px; height: 42px; padding: 0 12px; border: 1px solid #ddd8cb; background: #f7f4ec; color: #9a9485; font-size: 14.5px; text-decoration: none; white-space: nowrap; }
.chip::after { content: "예정"; font-size: 11.5px; color: #b5af9f; }
a.chip { background: #fff; border-color: #111; color: #111; font-weight: 700; transition: background .12s, color .12s; }
a.chip::after { content: "풀기 ›"; color: var(--red); font-size: 12.5px; }
a.chip:hover { background: #111; color: #fff; }
a.chip:hover::after { color: #fff; }

.home-note { margin: 26px 0 0; font-size: 13px; color: #777; line-height: 1.7; }

@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; padding: 28px 16px 0; gap: 0; }
  .hero h1 { font-size: 31px; }
  .hero .lead { font-size: 14.5px; margin-bottom: 20px; }
  .next .clock { font-size: 44px; }
  .next { margin-bottom: 22px; }
  .card-art { display: none; }
  .track ol { padding: 14px 16px; gap: 4px; }
  .track li { font-size: 11.5px; }
  .track li b { font-size: 12.5px; }
  .track li span.nm2 { display: none; }
  .home-wrap { padding: 22px 14px 40px; }
  .bigs { grid-template-columns: 1fr; gap: 10px; }
  .big { min-height: 0; padding: 14px 16px; }
  .big .nm { font-size: 30px; margin: 6px 0 2px; }
  .big .foot { margin-top: 12px; padding-top: 10px; }
  .chips { grid-template-columns: repeat(2, 1fr); }
  .chip { font-size: 13.5px; padding: 0 9px; }
  .sec-h h2 { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) { .kicker i, .track li.now::after, .art-row u.f { animation: none; } }

/* ---------- 첫 화면 랭킹 TOP 5 ---------- */
.t5-wrap { padding-bottom: 0; }
.t5 { background: #14161a; color: #fff; padding: 18px 20px 14px; border-top: 4px solid var(--red); box-shadow: 0 8px 22px rgba(0, 0, 0, .14); }
.t5-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.t5-head h2 { margin: 0; font: 800 19px var(--sans); display: flex; align-items: center; gap: 8px; }
.t5-head h2 i { width: 8px; height: 8px; border-radius: 50%; background: #ff4d5a; animation: blink 1.4s infinite; }
.t5-head h2 b { color: #ff8fab; font: 800 21px var(--serif); }
.t5-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.t5-tabs button, .t5-tabs span { height: 30px; padding: 0 11px; border: 1px solid #454a53; background: transparent; color: #b9bdc4; font-size: 13.5px; border-radius: 15px; display: inline-flex; align-items: center; }
.t5-tabs button.on, .t5-tabs span { background: #fff; border-color: #fff; color: #111; font-weight: 700; }
.t5-all { margin-left: auto; color: #fff; font-size: 13.5px; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .5); white-space: nowrap; }
.t5-list { list-style: none; margin: 0; padding: 0; }
.t5-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr) 110px 120px 70px; align-items: center; gap: 10px; height: 46px; border-top: 1px solid #2a2d33; animation: rowin5 .4s both; }
.t5-list li:nth-child(2) { animation-delay: .05s; } .t5-list li:nth-child(3) { animation-delay: .1s; } .t5-list li:nth-child(4) { animation-delay: .15s; } .t5-list li:nth-child(5) { animation-delay: .2s; }
@keyframes rowin5 { from { opacity: 0; transform: translateX(-10px); } }
.t5-list .no { font: 800 22px var(--serif); text-align: center; color: #7d838c; }
.t5-list .r1 .no { color: #111; background: #ffd24a; border-radius: 50%; width: 32px; height: 32px; line-height: 32px; margin: 0 auto; font-size: 19px; }
.t5-list .r2 .no { color: #111; background: #d5d8dd; border-radius: 50%; width: 32px; height: 32px; line-height: 32px; margin: 0 auto; font-size: 19px; }
.t5-list .r3 .no { color: #fff; background: #a8703f; border-radius: 50%; width: 32px; height: 32px; line-height: 32px; margin: 0 auto; font-size: 19px; }
.t5-list .nm { font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t5-list .r1 .nm { font-size: 18px; }
.t5-list .nm i { font-style: normal; margin-right: 5px; }
.t5-list .nm em { font-style: normal; margin-left: 7px; font-size: 10.5px; font-weight: 800; background: #ff4d5a; color: #fff; padding: 1px 6px; border-radius: 8px; vertical-align: 2px; }
.t5-list .el { font-size: 12.5px; color: #8d939c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t5-list .bar { height: 6px; background: #2f333a; border-radius: 3px; overflow: hidden; }
.t5-list .bar i { display: block; height: 100%; background: #ff8fab; border-radius: 3px; }
.t5-list .sc { text-align: right; font: 800 24px var(--serif); font-variant-numeric: tabular-nums; }
.t5-list .sc small { font: 400 12px var(--sans); color: #8d939c; margin-left: 2px; }
.t5-empty { margin: 0; padding: 16px 0 8px; border-top: 1px solid #2a2d33; color: #c9ccd1; font-size: 14.5px; line-height: 1.7; }
.t5-empty a { color: #ff8fab; font-weight: 700; white-space: nowrap; }
.t5-foot { margin: 8px 0 0; font-size: 12.5px; color: #8d939c; }
.t5-foot:empty { display: none; }
@media (max-width: 860px) {
  .t5 { padding: 14px 14px 12px; }
  .t5-head h2 { font-size: 17px; }
  .t5-all { font-size: 12.5px; }
  .t5-list li { grid-template-columns: 34px minmax(0, 1fr) 64px; gap: 8px; height: 44px; }
  .t5-list .el, .t5-list .bar { display: none; }
  .t5-list .sc { font-size: 21px; }
  .t5-list .nm { font-size: 15px; }
  .t5-list .r1 .nm { font-size: 16.5px; }
}
