/* ============================================================
   kanji-path.css — the strip under the nav on the four kanji pages,
   the Wall's block panel with Continue, and the hand-off cards at the
   end of a round. Same look on every page, so the path reads as one thing.
   ============================================================ */
.kp { background: #1f1b2e; color: #e9e3d6; padding: 10px 24px 11px; font-family: 'Outfit', sans-serif;
  /* under the fixed nav, and it stays there while you scroll */
  position: sticky; top: 75px; margin-top: 75px; z-index: 60; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.kp[hidden], .kp-block[hidden], .kp-offer[hidden], .kp-rv-bar[hidden] { display: none !important; }
.kp:not([hidden]) ~ .page { padding-top: 0; }
.kp * { box-sizing: border-box; }
.kp-in { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; gap: 18px; }
.kp-l { font: 800 .6rem 'Outfit', sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #a79fb8; white-space: nowrap; }
.kp-line { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; min-width: 0; }
.kp-line::before { content: ''; position: absolute; left: 12.5%; right: 12.5%; top: 14px; height: 4px; border-radius: 2px; background: #3d3552; }
.kp-fill { position: absolute; left: 12.5%; top: 14px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, #e0584a, #f0b35a); }
.kp-st { position: relative; text-align: center; color: #a79fb8; text-decoration: none; min-width: 0; }
.kp-dot { width: 32px; height: 32px; margin: 0 auto; border-radius: 50%; background: #2a2440; border: 3px solid #3d3552; display: grid; place-items: center;
  font: 700 .95rem 'Noto Serif JP', serif; color: #a79fb8; position: relative; z-index: 1; transition: transform .15s; }
.kp-st:hover .kp-dot { transform: scale(1.1); border-color: #6d6389; }
.kp-st b { display: block; font: 800 .74rem 'Outfit', sans-serif; margin-top: 4px; color: #d7d0e3; }
.kp-st small { display: block; font-size: .66rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kp-st.is-home .kp-dot { border-radius: 8px; background: #3a2f2a; border-color: #6a5240; color: #f0d6b8; }
.kp-st.is-done .kp-dot { background: #3aa17e; border-color: #3aa17e; color: #fff; }
.kp-st.is-done .kp-dot::after { content: '✓'; position: absolute; right: -6px; top: -6px; width: 15px; height: 15px; border-radius: 50%; background: #fff; color: #3aa17e;
  font: 900 .6rem 'Outfit', sans-serif; display: grid; place-items: center; }
.kp-st.is-here .kp-dot { background: #e0584a; border-color: #fff; color: #fff; box-shadow: 0 0 0 5px rgba(224,88,74,.3); }
.kp-st.is-here b { color: #fff; }
.kp-set { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; white-space: nowrap; max-width: 220px; }
.kp-set span { font: 800 .58rem 'Outfit', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #a79fb8; }
.kp-set em { font-style: normal; font: 700 1.05rem 'Noto Serif JP', serif; letter-spacing: .12em; color: #fff; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.kp-set.is-empty em { font: 600 .78rem 'Outfit', sans-serif; letter-spacing: 0; color: #a79fb8; }
.kp-next { background: #f0b35a; color: #2b1a05; border: 0; border-radius: 999px; padding: .55rem 1.05rem; font: 800 .82rem 'Outfit', sans-serif; cursor: pointer; white-space: nowrap; }
.kp-next:hover { background: #f6c678; }
.kp-btns { display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
.kp-leave { background: none; border: 0; color: #a79fb8; font: 600 .68rem 'Outfit', sans-serif; cursor: pointer; padding: 0; }
.kp-leave:hover { color: #fff; text-decoration: underline; }

/* ---------- guided mode off: one small offer, or the one-time invitation ---------- */
.kp-offer { margin: 12px 0; font-family: 'Outfit', sans-serif; }
.kp-startb { display: inline-flex; align-items: center; gap: 8px; background: #1f1b2e; color: #e9e3d6; border: 0; border-radius: 999px; padding: .5rem 1rem;
  font: 500 .8rem 'Outfit', sans-serif; cursor: pointer; box-shadow: 0 3px 10px rgba(0,0,0,.15); }
.kp-startb .jp { font-family: 'Noto Serif JP', serif; font-weight: 700; color: #f0b35a; }
.kp-startb b { font-weight: 800; color: #fff; }
.kp-startb small { color: #a79fb8; font-size: .74rem; }
.kp-startb:hover { background: #2c2642; }
.kp-inv { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; background: #1f1b2e; color: #e9e3d6; border-radius: 16px; padding: 16px 20px;
  box-shadow: 0 8px 22px rgba(0,0,0,.2); }
.kp-inv-s { width: 46px; height: 46px; border-radius: 10px; background: #e0584a; color: #fff; display: grid; place-items: center; font: 900 1.5rem 'Noto Serif JP', serif; }
.kp-inv b { font: 800 1.02rem 'Outfit', sans-serif; color: #fff; }
.kp-inv p { margin: 3px 0 0; font-size: .84rem; line-height: 1.45; color: #cfc8dc; }
.kp-inv-b { display: flex; flex-direction: column; gap: 6px; }
.kp-ghost { background: none; border: 1px solid #5a5070; color: #cfc8dc; border-radius: 999px; padding: .4rem .9rem; font: 700 .76rem 'Outfit', sans-serif; cursor: pointer; }

/* ---------- step 2: review your set on the Wall ---------- */
.kw-cell.kp-in-set { box-shadow: 0 0 0 3px #f0b35a, 0 0 0 5px #1f1b2e !important; z-index: 1; }
.kp-block.is-review { grid-template-columns: 220px 1fr auto; border-color: #f0b35a; box-shadow: 4px 4px 0 #f0b35a; }
.kp-rv-tiles { display: flex; flex-wrap: wrap; gap: 6px; }
.kp-rv-t { width: 44px; height: 44px; border-radius: 9px; border: 2px solid #2b2320; background: #faf6ec; font: 700 1.35rem 'Noto Serif JP', serif; cursor: pointer; color: #2b2320; }
.kp-rv-t.s-solid { background: #3aa17e; border-color: #3aa17e; color: #fff; }
.kp-rv-t.s-shaky { border-color: #c8392b; color: #c8392b; background: #fff; }
.kp-rv-t.is-open { box-shadow: 0 0 0 3px #f0b35a; }
.kp-rv-b { display: flex; flex-direction: column; gap: 8px; }
.kp-rv-b .kp-cont { text-decoration: none; display: block; }
.kp-cont.is-light { background: #fff; color: #2b2320; border: 2px solid #2b2320; }
.kp-cont.is-light small { color: #8a8074; }
.kp-go .s.c-kit { background: #8a3b1f; }
.kp-howl { font: 700 .8rem 'Outfit', sans-serif; color: inherit; text-decoration: underline; text-underline-offset: 3px; margin-left: 6px; }
a.kp-ghost { text-decoration: none; text-align: center; }

/* "How to learn kanji" pill, bottom left on every kanji page */
.kp-pill { position: fixed; left: 14px; bottom: 14px; z-index: 80; display: flex; align-items: stretch; background: #1f1b2e; color: #e9e3d6; border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.3); font-family: 'Outfit', sans-serif; max-width: calc(100vw - 100px); }
.kp-pill-a { display: flex; align-items: center; gap: 10px; padding: 9px 6px 9px 10px; color: #fff; text-decoration: none; min-width: 0; }
.kp-pill-a .jp { width: 32px; height: 32px; border-radius: 9px; background: #e0584a; display: grid; place-items: center; font: 900 1.05rem 'Noto Serif JP', serif; flex: none; }
.kp-pill-a b { display: block; font: 800 .84rem 'Outfit', sans-serif; white-space: nowrap; }
.kp-pill-a small { display: block; font-size: .7rem; color: #a79fb8; }
.kp-pill-a:hover b { text-decoration: underline; }
.kp-pill-x { border: 0; background: none; color: #a79fb8; font: 700 1.1rem 'Outfit', sans-serif; padding: 0 12px; cursor: pointer; border-left: 1px solid #3d3552; }
.kp-pill-x:hover { color: #fff; }
.kp-pill.is-small { border-radius: 999px; }
.kp-pill-mini { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #e0584a; color: #fff; text-decoration: none; font: 900 1.15rem 'Noto Serif JP', serif; margin: 3px; }
.kp-pill.is-small .kp-pill-x { font-size: .95rem; padding: 0 10px 0 6px; border-left: 0; }
.kp-rv-bar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: 10px;
  background: #1f1b2e; color: #e9e3d6; border-radius: 999px; padding: 6px 8px 6px 8px; box-shadow: 0 8px 24px rgba(0,0,0,.35); font: 600 .85rem 'Outfit', sans-serif; white-space: nowrap; }
.kp-rv-bar button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #3d3552; color: #fff; font: 800 1.2rem 'Outfit', sans-serif; cursor: pointer; }
.kp-rv-bar button:hover { background: #564b73; }
.kp-rv-bar b { font: 700 1.2rem 'Noto Serif JP', serif; color: #fff; margin-right: 4px; }
.kp-rv-bar a { background: #f0b35a; color: #2b1a05; text-decoration: none; border-radius: 999px; padding: .5rem .95rem; font-weight: 800; font-size: .8rem; }

/* ---------- the Wall: your block and Continue ---------- */
.kp-block { display: grid; grid-template-columns: 170px 1fr auto; gap: 20px; align-items: center; background: #fff; border: 2px solid #2b2320; border-radius: 16px;
  padding: 14px 18px; margin: 14px 0 12px; box-shadow: 4px 4px 0 #2b2320; font-family: 'Outfit', sans-serif; color: #2b2320; }
.kp-bh b { display: block; font: 800 1.15rem 'Outfit', sans-serif; }
.kp-bh small { display: block; font-size: .72rem; color: #8a8074; line-height: 1.35; margin-top: 2px; }
.kp-bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kp-bar small { display: flex; justify-content: space-between; font: 700 .7rem 'Outfit', sans-serif; color: #6d6458; margin-bottom: 4px; }
.kp-bar small b { color: #2b2320; }
.kp-bar i { display: block; height: 8px; border-radius: 4px; background: #eee6d8; overflow: hidden; }
.kp-bar i u { display: block; height: 100%; border-radius: 4px; transition: width .8s; }
.kp-bar.b1 u { background: #8a8074; } .kp-bar.b2 u { background: #c8392b; } .kp-bar.b3 u { background: #b8893a; } .kp-bar.b4 u { background: #2f4f9a; }
.kp-cont { background: #2b2320; color: #fff; border: 0; border-radius: 14px; padding: .75rem 1.1rem; cursor: pointer; text-align: left; line-height: 1.25; max-width: 290px; }
.kp-cont b { display: block; font: 800 .95rem 'Outfit', sans-serif; }
.kp-cont small { display: block; font: 600 .72rem 'Outfit', sans-serif; color: #e8c99a; margin-top: 2px; }
.kp-cont:hover { background: #45382f; }

/* ---------- hand-off: the big "next step" button at the end of a round ---------- */
.kp-go { display: flex; align-items: center; gap: 14px; width: 100%; background: #2b2320; color: #fff !important; border: 0; border-radius: 16px; padding: 13px 18px;
  cursor: pointer; text-align: left; text-decoration: none; font-family: 'Outfit', sans-serif; margin: 6px 0 4px; }
.kp-go:hover { background: #45382f; }
.kp-go .s { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font: 900 1.4rem 'Noto Serif JP', serif; flex: none; color: #fff; }
.kp-go .s.c-bento { background: #6e1a14; } .kp-go .s.c-wild { background: #1b1b1b; box-shadow: inset 0 0 0 1px #777; } .kp-go .s.c-wall { background: #c8392b; }
.kp-go b { display: block; font: 800 1.02rem 'Outfit', sans-serif; }
.kp-go small { display: block; font: 500 .8rem 'Outfit', sans-serif; color: #d9cfbf; }
.kp-go .ar { margin-left: auto; font-size: 1.4rem; }

@media (max-width: 860px) {
  .kp { padding: 8px 12px 9px; position: relative; top: 0; }
  .kp-in { flex-wrap: wrap; gap: 8px 12px; }
  .kp-l { display: none; }
  .kp-line { order: 3; flex-basis: 100%; }
  .kp-st small { display: none; }
  .kp-set { flex: 1; align-items: flex-start; }
  .kp-block { grid-template-columns: 1fr; gap: 12px; box-shadow: 3px 3px 0 #2b2320; }
  .kp-bars { grid-template-columns: 1fr 1fr; }
  .kp-cont { max-width: none; }
  .kp-btns { flex-direction: row; align-items: center; gap: 10px; }
  .kp-inv { grid-template-columns: 1fr; }
  .kp-inv-s { display: none; }
  .kp-block.is-review { grid-template-columns: 1fr; }
  .kp-pill-a small { display: none; }
  .kp-pill-a b { white-space: normal; font-size: .78rem; }
  .kp-rv-bar { bottom: 70px; max-width: calc(100vw - 20px); }
  .kp-rv-bar a { padding: .45rem .7rem; font-size: .72rem; white-space: normal; text-align: center; }
}
@media (max-width: 600px) { .kp { margin-top: 100px; } }
