/* 챌린지 첫 화면: Leapinity Play 허브 모양 (2026-11-17, 그림 견본 02-play-checking)
   허브 hub.css 의 첫 화면 띠·줄 제목·카드 모양을 챌린지 색 변수(--card·--line·--ink…)로 옮겨 왔어요. CSP 때문에 카드 색은 class(t-길이름)로 */
:root {
  --ph-bg: #f4f3ff; --ph-ink: #111827; --ph-tag: #5b6475; --ph-hi: #0f7556; --ph-dots: rgba(22, 28, 61, .09); --ph-blob: .25;
  --ph-pill-bg: rgba(255, 255, 255, .78); --ph-pill-line: rgba(124, 92, 255, .22); --ph-pill-ink: #5b6475;
  --ph-page: #f5f6fb; --ph-card: #ffffff; --ph-chip: #f1f3fa; --ph-chip-ink: #4b5366; --ph-vio-ink: #6a4cf0; --ph-vio-soft: rgba(124, 92, 255, .1);
  --ph-fire-bg: #fff1e6; --ph-fire-ink: #c2410c; --ph-tint: #ffffff;
  --ph-grad: linear-gradient(100deg, #7c5cff 0%, #38bdf8 55%, #2dd4a7 100%);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --ph-bg: #0b1030; --ph-ink: #ffffff; --ph-tag: #c9cff0; --ph-hi: #2dd4a7; --ph-dots: rgba(255, 255, 255, .13); --ph-blob: 1;
  --ph-pill-bg: rgba(255, 255, 255, .07); --ph-pill-line: rgba(255, 255, 255, .16); --ph-pill-ink: #d9defa;
  --ph-page: #0f1438; --ph-card: #161d45; --ph-chip: #232b5c; --ph-chip-ink: #c9cef0; --ph-vio-ink: #b4a3ff; --ph-vio-soft: rgba(124, 92, 255, .24);
  --ph-fire-bg: rgba(251, 146, 60, .18); --ph-fire-ink: #fdba74; --ph-tint: #161d45;
} }
:root[data-theme="dark"] {
  --ph-bg: #0b1030; --ph-ink: #ffffff; --ph-tag: #c9cff0; --ph-hi: #2dd4a7; --ph-dots: rgba(255, 255, 255, .13); --ph-blob: 1;
  --ph-pill-bg: rgba(255, 255, 255, .07); --ph-pill-line: rgba(255, 255, 255, .16); --ph-pill-ink: #d9defa;
  --ph-page: #0f1438; --ph-card: #161d45; --ph-chip: #232b5c; --ph-chip-ink: #c9cef0; --ph-vio-ink: #b4a3ff; --ph-vio-soft: rgba(124, 92, 255, .24);
  --ph-fire-bg: rgba(251, 146, 60, .18); --ph-fire-ink: #fdba74; --ph-tint: #161d45;
}
.ck-home { display: block; background: var(--ph-page); padding-bottom: 8px; }
/* 첫 화면 띠 (허브 .hero 와 같은 모양) */
.ph-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--ph-bg); color: var(--ph-ink); padding: 30px 0 44px; }
.ph-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ph-blob { position: absolute; border-radius: 50%; opacity: var(--ph-blob); }
.ph-blob.b1 { width: 520px; height: 520px; left: -160px; top: -220px; background: radial-gradient(circle, rgba(124, 92, 255, .55), transparent 65%); }
.ph-blob.b2 { width: 460px; height: 460px; right: -140px; top: -120px; background: radial-gradient(circle, rgba(56, 189, 248, .45), transparent 65%); }
.ph-blob.b3 { width: 420px; height: 420px; left: 40%; bottom: -260px; background: radial-gradient(circle, rgba(45, 212, 167, .35), transparent 65%); }
.ph-dots { position: absolute; inset: 0; background-image: radial-gradient(var(--ph-dots) 1px, transparent 1.4px); background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); }
.ph-in { max-width: 1160px; margin: 0 auto; padding: 0 24px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.ph-pill { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 15px; border-radius: 99px; font-size: 13px; font-weight: 700; letter-spacing: .02em;
  background: var(--ph-pill-bg); border: 1px solid var(--ph-pill-line); color: var(--ph-pill-ink); }
.ph-pill span { color: var(--ph-hi); }
.ph-hero h1 { margin: 14px 0 0; font-size: clamp(36px, 6vw, 58px); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; color: var(--ph-ink); }
.ph-hero h1 .g { background: var(--ph-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ph-tag { margin: 14px auto 0; max-width: 32em; font-size: clamp(16px, 1.9vw, 19px); font-weight: 600; color: var(--ph-tag); line-height: 1.55; }
.ck-tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.ck-tabs a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 99px; background: var(--ph-card); border: 1px solid var(--line);
  color: var(--ph-ink); font-weight: 700; font-size: 14.5px; text-decoration: none; }
.ck-tabs a:hover { border-color: #7c5cff; }
.ck-tabs a.on { background: var(--ph-ink); color: var(--ph-bg); border-color: var(--ph-ink); }
/* 두 칸: 왼쪽 도전·테스트, 오른쪽 능력치·7일 */
.ck { max-width: 1160px; margin: 0 auto; padding: 8px 24px 0; display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 22px; align-items: start; }
.ck-main { min-width: 0; }
.today { position: relative; border-radius: 24px; padding: 22px 24px; background: linear-gradient(var(--ph-card), var(--ph-card)) padding-box, var(--ph-grad) border-box;
  border: 2px solid transparent; display: flex; gap: 22px; align-items: center; box-shadow: 0 14px 34px rgba(124, 92, 255, .12); }
.today-txt { min-width: 0; }
.today h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.today p { margin: 6px 0 0; color: var(--soft); font-size: 14.5px; }
.fire { font-size: 13px; font-weight: 800; color: var(--ph-fire-ink); background: var(--ph-fire-bg); padding: 3px 10px; border-radius: 99px; margin-left: 6px; vertical-align: 3px; }
.today-list { list-style: none; margin: 12px 0 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.today-list a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px 6px 10px; border-radius: 99px; background: var(--ph-chip); font-weight: 700; font-size: 14px; color: var(--ph-chip-ink); text-decoration: none; }
.today-list a:hover { background: var(--ph-vio-soft); }
.today-list small { font-size: 12px; font-weight: 700; color: var(--ok); }
.today-list li.done a { background: var(--ok-bg); }
.today .go { margin-left: auto; flex: none; display: grid; justify-items: center; gap: 8px; }
.today .go a { display: inline-flex; align-items: center; min-height: 50px; padding: 0 26px; border-radius: 99px; background: var(--ph-grad); color: #fff; font-weight: 800; font-size: 16px; text-decoration: none; box-shadow: 0 10px 24px rgba(124, 92, 255, .3); text-shadow: 0 1px 2px rgba(30, 20, 90, .35); }
.today .go small { font-size: 13px; font-weight: 700; color: var(--soft); }
/* 묶음 줄 (허브 .row-head 모양) */
.ck-row { margin-top: 26px; }
.ck-row[hidden] { display: none; }
.ck-row .row-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 10px; }
.ck-row .row-head h2 { margin: 0; font-size: 23px; font-weight: 800; letter-spacing: -.03em; display: flex; align-items: center; gap: 8px; color: var(--ink); }
.ck-row .row-head h2::before { content: ""; width: 6px; height: 22px; border-radius: 99px; background: linear-gradient(#7c5cff, #38bdf8 60%, #2dd4a7); }
.ck-row .row-head h2 small { font-size: 12px; font-weight: 800; color: var(--ph-vio-ink); background: var(--ph-vio-soft); padding: 2px 9px; border-radius: 99px; }
.ck-row .row-head p { margin: 0; color: var(--soft); font-size: 14px; }
.tgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.tgrid li[hidden] { display: none; }
.tcard { --c: #7c5cff; display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 12px 14px 12px 12px; border-radius: 20px; position: relative;
  background: linear-gradient(color-mix(in srgb, var(--c) 9%, var(--ph-card)), var(--ph-card)); border: 1px solid color-mix(in srgb, var(--c) 24%, var(--line));
  color: var(--ink); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.tcard:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(22, 28, 61, .1); }
.tart { width: 52px; height: 52px; flex: none; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 16%, var(--ph-tint)); }
.ttx { display: grid; gap: 2px; min-width: 0; padding-right: 4px; }
.ttx b { font-size: 16px; font-weight: 800; letter-spacing: -.02em; padding-right: 40px; }
.ttx small { font-size: 13px; color: var(--soft); line-height: 1.35; }
.tbest { position: absolute; top: 8px; right: 10px; max-width: calc(100% - 90px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: normal; font-size: 11px; font-weight: 800;
  color: color-mix(in srgb, var(--c) 60%, var(--ink)); background: color-mix(in srgb, var(--c) 14%, var(--ph-tint)); padding: 2px 8px; border-radius: 99px; }
.tbest.no { color: var(--mute); background: var(--ph-chip); }
.t-reaction { --c: #ff6b6b; } .t-cps { --c: #ff9f43; } .t-aim { --c: #3b9eea; } .t-number-touch { --c: #20b893; } .t-color { --c: #a78bfa; }
.t-memory { --c: #7c5cff; } .t-sequence { --c: #38bdf8; } .t-stroop { --c: #f472b6; } .t-math-speed { --c: #22c55e; } .t-time-sense { --c: #f59e0b; }
.t-typing { --c: #3b82f6; } .t-typing-en { --c: #0ea5e9; }
.ck-none { margin: 20px 0 0; padding: 18px; border-radius: 18px; background: var(--ph-card); border: 1px dashed var(--line); color: var(--soft); text-align: center; font-weight: 600; }
/* 오른쪽 */
.side { display: grid; gap: 14px; position: sticky; top: 80px; }
.box { background: var(--ph-card); border: 1px solid var(--line); border-radius: 22px; padding: 18px; color: var(--ink); }
.box h3 { margin: 0 0 4px; font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.box p { margin: 0; color: var(--soft); font-size: 13.5px; }
.radar-box { min-height: 200px; }
.radar.mini { max-width: 290px; margin: 4px auto 0; }
.radar.mini .grid { stroke: var(--line); stroke-width: 1.2; }
.radar.mini .area { fill: url(#ckrg); fill-opacity: .22; stroke: url(#ckrg); stroke-width: 2.6; }
.radar.mini .lab { fill: var(--soft); font-size: 13px; font-weight: 700; }
.titles { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.titles[hidden] { display: none; }
.titles span { font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--ph-chip); color: var(--ph-chip-ink); }
.box-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; font-size: 14px; font-weight: 700; color: var(--ph-vio-ink); text-decoration: none; }
.box-link:hover { text-decoration: underline; }
.week { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; font-size: 12px; font-weight: 700; color: var(--mute); }
.week i { display: grid; place-items: center; height: 30px; border-radius: 9px; background: var(--ph-chip); margin-bottom: 4px; font-style: normal; font-size: 14px; }
.week li.on i { background: linear-gradient(135deg, #7c5cff, #2dd4a7); }
.week li.today { color: var(--ink); }
.week li.today i { outline: 2px solid #7c5cff; outline-offset: 1px; }
.safe { font-size: 13px !important; margin-top: 12px !important; }
.ck-home > .wrap { margin-top: 30px; }
@media (max-width: 900px) {
  .ck { grid-template-columns: 1fr; padding: 4px 16px 0; }
  .side { position: static; }
  .today { flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px; }
  .today .go { margin-left: 0; justify-items: start; }
}
@media (max-width: 560px) {
  .ph-hero { padding: 24px 0 32px; }
  .ph-in { padding: 0 16px; }
  .ph-tag { font-size: 15.5px; }
  .ck-row .row-head h2 { font-size: 19px; }
  .ck-row .row-head p { font-size: 12.5px; width: 100%; }
  .tgrid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tcard { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
  .ttx b { padding-right: 0; font-size: 15px; }
  .tbest { top: 10px; max-width: calc(100% - 76px); }
}
@media (prefers-reduced-motion: reduce) { .tcard { transition: none; } .tcard:hover { transform: none; } }
.today-list .em { font-size: 17px; line-height: 1; }
