/* Phrasal Verb Fill-in — light board, coral accents (the Arcade card's colour).
   Everything a learner must read is at least ~16px and passes 4.5:1. */
[data-game="phrasal"] { --pv: #C2311F; --pv-2: #9E2415; --pv-soft: #FDE8E6; --pv-line: #F6C6BF; }
[data-game="phrasal"] .gx-skill { background: var(--pv-soft); color: var(--pv-2); }

/* ── start screen: verb families ── */
.pv-fams { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pv-famcard { display: grid; gap: 8px; align-content: start; text-align: left; padding: 18px; border-radius: 20px; border: 2px solid var(--line); background: var(--cyc); color: var(--ink); cursor: pointer; transition: transform .3s var(--ease-out), box-shadow .3s, border-color .2s; }
.pv-famcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: var(--pv); }
.pv-famcard:focus-visible { outline: 3px solid var(--pen); outline-offset: 3px; }
.pv-famcard.done { border-color: #1F9D55; }
.pv-famcard-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pv-verb { font-family: var(--f-display); font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); letter-spacing: -.03em; line-height: 1; color: var(--pv-2); font-variation-settings: 'opsz' 60, 'wght' 800; }
.pv-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.pv-chips i { font-style: normal; font-family: var(--f-display); font-size: .92rem; padding: 3px 10px; border-radius: 999px; background: var(--pv-soft); color: var(--pv-2); font-variation-settings: 'wght' 650; }
.pv-why { font-size: 1rem; line-height: 1.45; color: var(--ink-2); }
.pv-meta { font-size: .9rem; color: var(--ink-3); }
@media (max-width: 860px) { .pv-fams { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .pv-fams { grid-template-columns: minmax(0, 1fr); } }

/* ── in the game ── */
.pv-sound { padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--cyc); color: var(--ink); font-family: var(--f-display); font-size: .92rem; font-variation-settings: 'wght' 620; min-height: 44px; }
.pv-sound[aria-pressed="false"] { color: var(--ink-2); border-style: dashed; }
[data-game="phrasal"] .lu-back { min-height: 44px; }
.pv-card { display: grid; gap: 12px; justify-items: center; text-align: center; padding: clamp(22px, 4vw, 40px) clamp(14px, 3vw, 28px); border-radius: 22px; background: linear-gradient(135deg, var(--pv-soft), #FFF8F6 60%, var(--pen-soft)); }
.pv-card .lu-kicker { color: var(--pv-2); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; }
.pv-lv { font-size: .78rem; letter-spacing: .06em; padding: 3px 10px; border-radius: 999px; background: var(--cyc); color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.pv-sentence { font-family: var(--f-display); font-size: clamp(1.45rem, 1.1rem + 1.8vw, 2.3rem); line-height: 1.35; letter-spacing: -.02em; text-wrap: balance; max-width: 30ch; font-variation-settings: 'opsz' 60, 'wght' 650; }
.pv-gap { display: inline-block; min-width: 3.2em; padding: 0 .25em; border-bottom: 4px solid var(--pv); color: var(--pv); text-align: center; font-variation-settings: 'opsz' 60, 'wght' 800; }
.pv-gap.ok { border-color: #1F9D55; color: #136B39; background: #E5F6EC; border-radius: 8px 8px 0 0; animation: pv-drop .5s var(--ease-out); }
.pv-gap.fix { border-color: var(--sound); color: var(--sound-2); background: var(--sound-soft); border-radius: 8px 8px 0 0; animation: pv-drop .5s var(--ease-out); }
@keyframes pv-drop { 0% { transform: translateY(-18px) scale(.8); opacity: 0; } 60% { transform: translateY(3px) scale(1.06); opacity: 1; } 100% { transform: none; } }
.pv-ask { font-size: 1.02rem; color: var(--ink-2); }
.pv-opts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pv-opt { position: relative; min-height: 64px; padding: 12px 10px; border-radius: 16px; border: 2px solid var(--line-2); background: var(--cyc); color: var(--ink); font-family: var(--f-display); font-size: clamp(1.25rem, 1.1rem + .6vw, 1.55rem); letter-spacing: -.01em; font-variation-settings: 'opsz' 36, 'wght' 700; cursor: pointer; transition: transform .25s var(--ease-out), border-color .2s, background .2s, box-shadow .2s; }
.pv-opt kbd { position: absolute; left: 8px; top: 8px; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; background: var(--cyc-2); font-family: var(--f-mono); font-size: .7rem; color: var(--ink-3); font-variation-settings: normal; }
.pv-opt:hover:not(:disabled) { transform: translateY(-3px); border-color: var(--pv); box-shadow: var(--shadow-1); }
.pv-opt:focus-visible { outline: 3px solid var(--pen); outline-offset: 3px; }
.pv-opt:disabled { cursor: default; }
.pv-opt.right { border-color: #1F9D55; background: #E5F6EC; color: #136B39; }
.pv-opt.wrong { border-color: var(--live); background: var(--live-soft); color: #B3241C; text-decoration: line-through; text-decoration-thickness: 2px; }
.pv-opt.dim { opacity: .5; }
@media (max-width: 560px) { .pv-opts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pv-keys { text-align: center; }

.pv-wrong { display: grid; gap: 4px; padding: 14px 18px; border-radius: 14px; background: #FFF6F5; border-left: 5px solid var(--live); animation: gm-in .35s var(--ease-out); }
.pv-wrong b { font-family: var(--f-display); font-size: 1.08rem; font-variation-settings: 'wght' 700; }
.pv-wrong p { font-size: 1.05rem; line-height: 1.5; }
.pv-answer { display: grid; gap: 12px; padding: clamp(16px, 3vw, 24px); border-radius: 22px; border: 2px solid var(--pv-line); background: var(--cyc); animation: gm-in .4s var(--ease-out); }
.pv-said { display: flex; gap: 12px; align-items: center; font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); line-height: 1.45; padding: 12px 14px; border-radius: 16px; background: var(--sound-soft); }
.pv-said mark, .pv-br-s mark { background: linear-gradient(transparent 12%, var(--pen) 12%, var(--pen) 88%, transparent 88%); color: var(--ink); padding: 0 .12em; border-radius: 3px; font-weight: 700; }
.pv-play { flex: none; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--sound); color: #fff; font-size: 1rem; padding-left: 2px; cursor: pointer; box-shadow: 0 6px 16px rgba(36, 87, 245, .3); transition: transform .2s var(--ease-out), background .2s; }
.pv-play:hover { background: var(--sound-2); transform: scale(1.05); }
.pv-play:focus-visible { outline: 3px solid var(--pen); outline-offset: 3px; }
.pv-play.on span { animation: lu-pulse 1s ease-in-out infinite; display: inline-block; }
.pv-def { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.pv-phrase { font-family: var(--f-display); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); letter-spacing: -.02em; color: var(--pv-2); font-variation-settings: 'opsz' 48, 'wght' 780; }
.pv-eq { font-family: var(--f-display); font-size: 1.4rem; color: var(--ink-3); }
.pv-mean { font-family: var(--f-display); font-size: clamp(1.2rem, 1.05rem + .6vw, 1.45rem); font-variation-settings: 'wght' 650; }
.pv-why { font-size: 1.06rem; line-height: 1.55; }
.pv-others { border-radius: 14px; background: var(--cyc-2); padding: 0 16px; }
.pv-others summary { cursor: pointer; padding: 12px 0; min-height: 44px; font-family: var(--f-display); font-size: 1.02rem; font-variation-settings: 'wght' 680; }
.pv-others ul { list-style: none; margin: 0; padding: 0 0 14px; display: grid; gap: 8px; }
.pv-others li { font-size: 1rem; line-height: 1.5; padding: 8px 12px; border-radius: 10px; background: var(--cyc); }
.pv-others li.chose { box-shadow: inset 4px 0 0 var(--live); }
.pv-others li b { display: inline-block; min-width: 3.5em; margin-right: 4px; padding: 0 8px; border-radius: 6px; background: var(--live-soft); color: #B3241C; font-family: var(--f-display); text-align: center; font-variation-settings: 'wght' 700; text-decoration: line-through; }
@media (prefers-reduced-motion: reduce) { .pv-gap.ok, .pv-gap.fix, .pv-play.on span { animation: none; } }

/* ── the end: the verb families you met ── */
.pv-map { width: 100%; max-width: 720px; display: grid; gap: 14px; text-align: left; }
.pv-fam { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px; border-radius: 20px; background: var(--pv-soft); }
.pv-root { position: sticky; top: 80px; min-width: 92px; padding: 14px 12px; border-radius: 16px; background: var(--cyc); color: var(--pv-2); text-align: center; font-family: var(--f-display); font-size: 1.7rem; letter-spacing: -.03em; font-variation-settings: 'opsz' 48, 'wght' 800; box-shadow: var(--shadow-1); }
.pv-branches { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; position: relative; }
.pv-branches li { position: relative; display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--cyc); }
.pv-branches li::before { content: ""; position: absolute; left: -14px; top: 50%; width: 14px; height: 2px; background: var(--pv-line); }
.pv-tick { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .85rem; }
.pv-branches li.ok .pv-tick { background: #1F9D55; } .pv-branches li.no .pv-tick { background: var(--live); }
.pv-br-txt { display: grid; gap: 2px; flex: 1; min-width: 0; }
.pv-br-txt b { font-family: var(--f-display); font-size: 1.2rem; color: var(--ink); font-variation-settings: 'wght' 750; }
.pv-br-m { font-size: 1rem; color: var(--ink-2); }
.pv-br-s { font-size: .98rem; color: var(--ink); line-height: 1.45; }
.pv-branches .pv-play { width: 44px; height: 44px; }
@media (max-width: 520px) {
  .pv-fam { grid-template-columns: minmax(0, 1fr); }
  .pv-root { position: static; justify-self: start; }
  .pv-branches li::before { display: none; }
}

/* scrolling to the board or the answer stops below the floating nav bar */
[data-game="phrasal"], [data-game="phrasal"] .lu-res { scroll-margin-top: calc(var(--bar-h) + 34px); }

/* phones: one row for back, sound and score; no keyboard hints */
@media (max-width: 480px) { .pv-sound span { display: none; } .pv-sound { min-width: 44px; padding: 9px 12px; } [data-game] .pv-keys { display: none; } }
@media (max-width: 480px) { [data-game="phrasal"] .lu-top .stat { min-width: 56px; padding: 6px 8px; } [data-game="phrasal"] .lu-back { padding: 9px 12px; } }
.pv-br-txt b .pv-part { color: var(--pv-2); }
