html.pa-practice-pending body { visibility: hidden; }
html.pa-practice-open, html.pa-practice-open body { overflow: hidden !important; }
html.pa-practice-pending .pa-practice { visibility: visible; }
.pa-practice-boot { display: none; }
.pa-practice-pending .pa-practice-boot { position: fixed; inset: 0; z-index: 100000; display: grid; place-content: center; justify-items: center; visibility: visible; background: #f2f3f0; color: #14251d; font: 600 16px system-ui, sans-serif; }
.pa-practice-boot button { min-height: 44px; padding: 10px 24px; border: 1px solid #cad6cc; border-radius: 12px; background: white; font: inherit; }
.pa-practice { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: #f2f3f0; color: #14251d; z-index: 100000; font-family: Manrope, system-ui, sans-serif; }
.pa-practice::backdrop { background: #f2f3f0; }
.pa-practice { overflow: hidden; }
.pa-practice .pa-practice__map { position: absolute; inset: 0; width: 100%; height: 100%; }
.pa-practice__dock { position: absolute; z-index: 1000; bottom: max(20px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: min(400px, calc(100% - 32px)); display: grid; gap: 12px; pointer-events: none; }
.pa-practice__card { padding: 18px; border-radius: 20px; background: rgba(255,255,255,.97); border: 1px solid #dbe6de; box-shadow: 0 12px 50px #10271a26; pointer-events: auto; max-height: 55dvh; overflow-y: auto; }
.pa-practice__eyebrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #567160; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.pa-practice__card h2 { font-size: clamp(19px, 4.2vw, 22px); line-height: 1.22; letter-spacing: -.035em; margin: 0 0 10px; font-weight: 800; }
.pa-practice__card h2:focus { outline: none; }
.pa-practice__card p { font-size: 14px; line-height: 1.5; margin: 0 0 12px; }
.pa-practice button { font: inherit; font-size: 14px; font-weight: 700; min-height: 44px; border: 0; border-radius: 14px; padding: 10px 16px; cursor: pointer; }
.pa-practice button:focus-visible { outline: 3px solid #2463eb; outline-offset: 4px; }
.pa-practice button:disabled { cursor: wait; opacity: .65; }
.pa-practice .pa-practice__pap-term { display: inline; min-height: 0; padding: 2px 0; border-radius: 2px; background: transparent; color: inherit; font: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.pa-practice__pap-tooltip { position: fixed; z-index: 3100; box-sizing: border-box; width: 260px; max-width: calc(100vw - 24px); padding: 12px 16px; border-radius: 12px; background: #1a1a1a; color: #fff; font-size: 13px; line-height: 1.5; text-align: center; box-shadow: 0 4px 20px #0004; }
.pa-practice__pap-tooltip::after { content: ''; position: absolute; left: var(--pap-arrow-x, 50%); bottom: -5px; width: 10px; height: 10px; background: inherit; transform: translateX(-50%) rotate(45deg); }
.pa-practice__pap-tooltip[data-placement="below"]::after { top: -5px; bottom: auto; }
.pa-practice__pap-tooltip[hidden] { display: none; }
.pa-practice__next { width: 100%; color: white; background: #14251d; }
.pa-practice .pa-practice__next.is-simulate { background: #00c853; color: #fff; box-shadow: 0 4px 14px rgba(0,200,83,.28); }
.pa-practice .pa-practice__next.is-simulate:hover { background: #00a844; }
/* Match the live .fab silhouette, typography and Material action palette. */
.pa-practice .pa-practice__action { display: flex; align-items: center; justify-content: center; gap: 8px; width: var(--fab-width, 210px); height: 52px; min-height: 52px; padding: 0 16px; border-radius: 28px; border: 1px solid transparent; font: 500 14px Roboto, sans-serif; white-space: nowrap; touch-action: manipulation; background: #00c853; color: #fff; box-shadow: 0 4px 14px rgba(0,200,83,.35); transition: background .2s, box-shadow .2s, transform .2s; }
.pa-practice .pa-practice__action:hover { background: #00a844; box-shadow: 0 6px 18px rgba(0,200,83,.5); transform: translateY(-1px); }
.pa-practice .pa-practice__action[data-attack] { background: #dc2626; box-shadow: 0 4px 14px rgba(220,38,38,.38); }
.pa-practice .pa-practice__action[data-attack]:hover { background: #b91c1c; }
.pa-practice .pa-practice__action:active { transform: scale(.96); }
.pa-practice__action { animation: pa-action-arrive 440ms cubic-bezier(.16,1,.3,1); }
.pa-practice .pa-practice__action { position: relative; --action-glow: #00c853; }
.pa-practice .pa-practice__action[data-attack] { --action-glow: #dc2626; }
.pa-practice .pa-practice__action:disabled, .pa-practice .pa-practice__action:disabled:hover { background: #e4e7e5; color: #68726c; box-shadow: none; transform: none; opacity: 1; cursor: not-allowed; --action-glow: transparent; }
@keyframes pa-action-arrive { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
.pa-practice__action::before { content: ''; width: 18px; height: 18px; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l8.66 5v10L12 22l-8.66-5V7z' fill='none' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat; }
.pa-practice__navigation { display: flex; align-items: center; gap: 12px; }
.pa-practice .pa-practice__back { background: transparent; color: #40564a; padding: 10px 4px; font-size: 13px; white-space: nowrap; }
.pa-practice__navigation .pa-practice__next { flex: 1; width: auto; }
.pa-practice__navigation .pa-practice__action { flex: 1; width: auto; height: auto; min-height: 44px; border-radius: 14px; white-space: normal; font: inherit; font-size: 14px; font-weight: 700; }
.pa-practice__sector-picker { font-size: 12px; margin: 8px 0; color: #496553; }
.pa-practice__sector-picker summary { cursor: pointer; padding: 8px 0; }
.pa-practice__sector-choices { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pa-practice__sector-choices button { background: #fff7cf; color: #66520b; font-size: 12px; }
.pa-practice__sector-choices button[data-kind="adjacent"] { background: #e0efff; color: #1756a0; }
.pa-practice .pa-practice__selection-hint { padding: 9px 11px; border-left: 3px solid #8eab98; border-radius: 6px; background: #f0f5f2; color: #334b3b; font-size: 12px; line-height: 1.45; }
.pa-practice__sector-choices button[aria-pressed="true"] { outline: 2px solid #2463eb; outline-offset: 1px; }
.pa-practice__color { display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: .9em; font-weight: 800; line-height: 1.4; border: 1px solid transparent; vertical-align: baseline; }
.pa-practice__color--green { color: #006d2d; background: #d7f5e1; border-color: #96dfb3; }
.pa-practice__color--blue { color: #1756a0; background: #e0efff; border-color: #abcff8; }
.pa-practice__color--yellow { color: #735400; background: #fff0ad; border-color: #e6c651; }
.pa-practice__color--red { color: #a51d1d; background: #ffe5e5; border-color: #f3b2b2; }
.pa-practice__color--orange { color: #934007; background: #ffecd9; border-color: #edbd8b; }
.pa-practice__contest { padding: 12px; margin-bottom: 14px; background: #f4f7f5; border: 1px solid #e0e8e2; border-radius: 12px; }
.pa-practice__contest-labels { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; font-weight: 800; margin-bottom: 9px; }
.pa-practice__contest-labels span:first-child { color: #007d34; }
.pa-practice__contest-labels span:last-child { color: #b91c1c; text-align: right; }
.pa-practice__tug { height: 16px; position: relative; border-radius: 999px; background: #dc2626; overflow: hidden; }
.pa-practice__tug-fill { display: block; height: 100%; width: 50%; background: #00a844; animation: pa-contest-lead 8s ease-in-out infinite; }
.pa-practice__tug-marker { position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; transform: translateX(-50%); background: white; box-shadow: 0 0 4px #0004; animation: pa-contest-marker 8s ease-in-out infinite; }
.pa-practice .pa-practice__contest p { margin: 10px 0 0; font-size: 12px; line-height: 1.5; }
@keyframes pa-contest-lead { 0%, 100% { width: 50%; } 28% { width: 68%; } 62% { width: 35%; } 82% { width: 58%; } }
@keyframes pa-contest-marker { 0%, 100% { left: 50%; } 28% { left: 68%; } 62% { left: 35%; } 82% { left: 58%; } }
@media (prefers-reduced-motion: reduce) { .pa-practice__tug-fill, .pa-practice__tug-marker { animation: none; } }
.pa-practice__run-status { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: #008c3a; font-size: 12px; font-weight: 700; }
.pa-practice__run-status::before { content: ''; flex: 0 0 18px; height: 18px; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='15' cy='4' r='2'/%3E%3Cpath d='m12 8-4 3-4-1m8-2 4 5 4 1m-8-6-2 7-6 6m6-6 5 2-1 5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.pa-practice__run { padding: 8px 0 14px; }
.pa-practice__run-track { height: 12px; border-radius: 8px; overflow: hidden; background: #dce9e0; }
.pa-practice__run-fill { height: 100%; transform-origin: left; background: linear-gradient(90deg, #008c3a, #00c853); }
.pa-practice__balance { position: relative; display: flex; justify-content: space-between; align-items: center; margin: 8px 0 12px; padding: 10px 12px; border-radius: 12px; background: #ecf7ef; font-size: 13px; }
.pa-practice__balance strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.pa-practice__eyebrow .pa-practice__balance.is-header { flex: 0 0 auto; min-width: 92px; min-height: 26px; margin: 0 0 8px auto; padding: 3px 8px; gap: 8px; border-radius: 999px; font-size: 10px; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.pa-practice__eyebrow .pa-practice__balance.is-header strong { font-size: 15px; }
.pa-practice__run-summary.is-inline { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; margin-bottom: 8px; }
.pa-practice__run-summary.is-inline .pa-practice__run { min-width: 0; padding: 5px 0 0; }
.pa-practice__run-summary.is-inline .pa-practice__balance { align-self: end; min-width: 96px; min-height: 36px; margin: 0; padding: 6px 9px; gap: 8px; font-size: 11.5px; white-space: nowrap; }
.pa-practice__run-summary.is-inline .pa-practice__balance strong { font-size: 16px; }
.pa-practice__run-summary.is-inline .pa-practice__earned-badge { top: -18px; padding: 3px 7px; font-size: 10px; }
.pa-practice__balance.is-earned { background: #d3f8df; box-shadow: inset 0 0 0 2px #00ad49; animation: pa-earned-glow 1800ms ease-out both; }
.pa-practice__balance.is-earned strong { color: #006d2d; animation: pa-earned-number 700ms cubic-bezier(.16,1,.3,1) both; }
.pa-practice__earned-badge { position: absolute; right: 8px; top: -12px; padding: 5px 10px; border-radius: 999px; color: #fff; background: #007d34; box-shadow: 0 3px 12px #007d3440; font-size: 12px; font-weight: 800; pointer-events: none; }
.is-earned .pa-practice__earned-badge { animation: pa-earned-badge 1800ms cubic-bezier(.16,1,.3,1) both; }
@keyframes pa-earned-glow { 0% { transform: scale(1); box-shadow: inset 0 0 0 2px #00ad49, 0 0 0 0 #00c85355; } 24%, 62% { transform: scale(1.025); box-shadow: inset 0 0 0 2px #00ad49, 0 0 28px 5px #00c85345; } 44%, 100% { transform: scale(1); box-shadow: inset 0 0 0 2px #00ad49, 0 0 0 12px #00c85300; } }
@keyframes pa-earned-number { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }
@keyframes pa-earned-badge { 0% { opacity: 0; transform: translateY(12px); } 22%, 70% { opacity: 1; transform: translateY(-8px); } 100% { opacity: 0; transform: translateY(-20px); } }
@media (prefers-reduced-motion: reduce) { .pa-practice__balance.is-earned, .pa-practice__balance.is-earned strong, .is-earned .pa-practice__earned-badge { animation: none; } }
/* Keep native credits available from the first lesson, outside the teaching card.
   The upper-left corner stays clear of the card and the preview close button. */
.pa-practice .pa-practice__map .maplibregl-ctrl-bottom-right, .pa-practice .pa-practice__map .leaflet-bottom.leaflet-right { top: 16px; left: 16px; bottom: auto; right: auto; max-width: calc(100% - 96px); }
.pa-practice .pa-practice__map .maplibregl-ctrl-attrib, .pa-practice .pa-practice__map .leaflet-control-attribution { margin: 0; float: left; }
html.pa-team-intro-pending #mapSetupWarningControl { display: none !important; }
#mapSetupWarningControl.is-intro-reveal { animation: pa-warning-arrive 1000ms cubic-bezier(.16,1,.3,1) both; }
@keyframes pa-warning-arrive { 0% { opacity: 0; transform: translateY(14px) scale(.75); } 55% { opacity: 1; transform: translateY(0) scale(1.08); } 75% { transform: scale(.98); } 100% { transform: scale(1); } }
.pa-practice .capture-vignette { position: absolute; inset: 0; z-index: 1100; pointer-events: none; background: radial-gradient(ellipse at center, transparent 45%, color-mix(in srgb, var(--capture-vignette-color, #00c853) 55%, transparent) 100%); animation: pa-practice-flash 700ms ease-out both; }
@keyframes pa-practice-flash { 0%, 100% { opacity: 0; } 30% { opacity: 1; } }
@media (max-width: 768px) { .pa-practice .pa-practice__action { width: var(--fab-width, 180px); height: 44px; min-height: 44px; font-size: 13px; } }
@media (max-width: 480px), (max-width: 540px) and (max-height: 760px) {
    .pa-practice__dock { bottom: max(10px, env(safe-area-inset-bottom)); width: min(400px, calc(100% - 20px)); gap: 8px; }
    .pa-practice__card { max-height: min(48dvh, 390px); padding: 14px; border-radius: 16px; }
    .pa-practice__eyebrow { margin-bottom: 6px; font-size: 9px; }
    .pa-practice__card h2 { margin-bottom: 7px; font-size: clamp(16px, 4.5vw, 18px); line-height: 1.18; }
    .pa-practice__card p { margin-bottom: 8px; font-size: 12.5px; line-height: 1.4; }
    .pa-practice button { font-size: 13px; }
    .pa-practice__navigation { gap: 8px; }
    .pa-practice__run { padding: 6px 0 9px; }
    .pa-practice__run-status { margin-bottom: 6px; }
    .pa-practice__balance { margin: 6px 0 8px; padding: 8px 10px; }
}
.pa-practice__exit { position: absolute; top: max(16px, env(safe-area-inset-top)); right: 16px; z-index: 1000; background: white; }
.pa-practice .pa-practice__exit { width: 44px; height: 44px; min-height: 44px; padding: 0; font-size: 24px; }
.pa-practice .pa-practice__exit { z-index: 3000; }
.pa-practice__account-menu { position: absolute; top: max(16px, env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right)); z-index: 3000; }
.pa-practice .pa-practice__account-toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 32px; height: 32px; min-height: 32px; padding: 0; border: 1px solid #dbe6de; border-radius: 50%; color: #0a0a0a; background: #fff; box-shadow: 0 3px 12px #0002; }
.pa-practice__account-toggle span { width: 14px; height: 2px; flex-shrink: 0; background: currentColor; transition: transform 180ms ease, opacity 180ms ease; }
.pa-practice__account-panel { position: absolute; top: calc(100% + 8px); right: 0; min-width: 156px; max-width: calc(100vw - 32px); margin: 0; padding: 5px; border: 1px solid #dbe6de; border-radius: 12px; background: white; box-shadow: 0 8px 24px #10271a26; }
.pa-practice__account-panel[hidden] { display: none; }
.pa-practice .pa-practice__logout { width: 100%; min-height: 44px; border-radius: 8px; text-align: left; color: #9c2424; background: white; }
.pa-practice .pa-practice__logout:hover { background: #fff1f1; }
.pa-practice__loader[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
    .pa-practice__loader.dismissed { transition: none; }
}
.pa-practice__error { color: #a52b22; font-size: 13px !important; }
.pa-practice__team-labels { position: absolute; inset: 0; z-index: 400; overflow: hidden; pointer-events: none; }
.pa-practice__team-label { position: absolute; z-index: 400; transform: translate(-50%, -50%); pointer-events: none; padding: 4px 8px; border-radius: 8px; background: #ffffffed; color: #14251d; border: 1px solid #dbe6de; box-shadow: 0 2px 8px #10271a14; font-size: 11px; line-height: 1.3; font-weight: 800; white-space: nowrap; }
.pa-practice [hidden] { display: none !important; }
.pa-practice .leaflet-control-attribution { font-size: 9px; opacity: .8; }
.pa-practice__attribution { position: absolute; bottom: 0; right: 0; padding: 2px 5px; background: #ffffffc9; font-size: 9px; z-index: 500; }
.pa-practice-reveal #teamInfoBar { animation: pa-practice-reveal 700ms 150ms both; }
.pa-practice-reveal .header { animation: pa-practice-reveal 600ms both; }
@keyframes pa-practice-reveal { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@media (max-height: 520px) { .pa-practice__dock { left: auto; right: 12px; transform: none; width: min(320px, calc(100% - 24px)); bottom: 12px; } .pa-practice__card { max-height: 65dvh; padding: 14px; } }
@media (prefers-reduced-motion: reduce) { .pa-practice-reveal *, .pa-practice__action, #mapSetupWarningControl.is-intro-reveal { animation: none !important; } }

.pa-practice__account-panel { transform-origin: top right; }
.pa-practice__account-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.pa-practice__account-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.pa-practice__account-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .pa-practice__account-toggle span { transition: none; } }
