/* © 2026 AVENLIO GLOBAL. Civics Voice v3 home, Learn, Exam and tab bar (approved by the owner 21.11.2026).
   Loaded after styles.css. Palette: navy + gold + white; blue only for Mary. */
.app { --v3-gold: #f3d48b; --v3-gold-2: #d7b06a; --v3-rim: rgba(226,188,114,.5); --v3-card: linear-gradient(180deg,#132a63 0%,#0e1f50 100%); --v3-ink: #fff; --v3-muted: #b9c4e6; --v3-ease: cubic-bezier(.2,.8,.2,1); }

/* ---------- hero (shorter, no tagline) ---------- */
html body .app.is-home .v3-hero { padding-bottom: 4px !important; }
html body .app.is-home .v3-hero .hm-logo { max-width: 200px !important; margin: 0 auto !important; }
html body .app.is-home .v3-hero .hm-profile { width: 44px; height: 44px; padding: 0 !important; justify-content: center; }

.v3-home { display: flex; flex-direction: column; gap: 12px; padding: 0 2px 8px; margin-top: 48px; }
.v3-home button, .v3-scr button, .v3-sheet button { font: inherit; color: inherit; cursor: pointer; transition: transform .15s; }
.v3-home button:active, .v3-scr button:active { transform: scale(.97); }

/* ---------- state row: dark glass left, state photo fades in on the right ---------- */
.v3-state { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 6px 8px 6px 16px; border-radius: 999px; overflow: hidden; text-align: left; background: #0e1c5a; border: 1px solid rgba(255,255,255,.1); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 10px 22px rgba(0,0,0,.35); }
.v3-state::before { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 62%; background: var(--st, none) center / cover; -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%); opacity: .9; }
.v3-state > * { position: relative; z-index: 1; }
.v3-st-tx { flex: 1; min-width: 0; }
.v3-st-tx b { display: block; font-size: 19px; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.8); }
.v3-st-tx small { display: block; font-size: 13.5px; color: #e6eaf8; text-shadow: 0 1px 6px rgba(0,0,0,.85); }
.v3-pen { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(8,18,60,.6); border: 1px solid rgba(255,255,255,.2); }
.v3-pen svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 1.8; }

/* ---------- progress strip ---------- */
.v3-prog { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 8px 16px; border-radius: 999px; background: linear-gradient(160deg, rgba(255,255,255,.10), rgba(255,255,255,.02) 45%), rgba(16,34,96,.5); border: 1px solid rgba(255,255,255,.09); box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 10px 22px rgba(0,0,0,.3); }
.v3-prog b { font-size: 17px; color: #fff; white-space: nowrap; }
.v3-bar { flex: 1; height: 10px; border-radius: 9px; background: rgba(255,255,255,.12); overflow: hidden; }
.v3-bar i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, #b98a3c, #f3d48b, #fff1c9); }
.v3-prog strong { font-size: 22px; color: var(--v3-gold); }
.v3-prog em { font-style: normal; font-size: 22px; color: var(--v3-gold); }

/* ---------- carousel (fan of glass cards) ---------- */
.v3-car { --cw: clamp(148px, 42vw, 184px); --ch: clamp(160px, 42vw, 176px); position: relative; height: calc(var(--ch) + 22px); margin: 0 -16px; perspective: 820px; overflow: hidden; touch-action: pan-y; }
.v3-c { --acc: 243,196,110; position: absolute; top: 12px; left: 50%; width: var(--cw); height: var(--ch); margin-left: calc(var(--cw) / -2); border-radius: 28px; display: flex; flex-direction: column; align-items: center; padding: 6px 10px 12px; text-align: center; isolation: isolate; overflow: hidden;
  border: 1px solid transparent;
  background:
    radial-gradient(70% 45% at 50% 30%, rgba(var(--acc),.30), transparent 70%) padding-box,
    radial-gradient(110% 60% at 50% 110%, rgba(var(--acc),.32), transparent 60%) padding-box,
    radial-gradient(80% 60% at 10% 0%, rgba(130,100,255,.32), transparent 60%) padding-box,
    linear-gradient(165deg, #22348a 0%, #13226a 48%, #0a1548 100%) padding-box,
    linear-gradient(160deg, rgba(243,212,139,.35), rgba(243,212,139,.12) 50%, rgba(243,212,139,.3)) border-box;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -16px 30px rgba(var(--acc),.18), 0 14px 28px rgba(0,0,0,.45);
  transition: transform .42s var(--v3-ease), filter .42s, box-shadow .42s; will-change: transform; }
.v3-c::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: inherit; background: linear-gradient(115deg, transparent 34%, rgba(255,255,255,.10) 44%, transparent 52%), linear-gradient(180deg, rgba(255,255,255,.08), transparent 26%); }
.v3-c::before { content: ""; position: absolute; z-index: 0; pointer-events: none; inset: 0; border-radius: inherit; background: linear-gradient(105deg, transparent 20%, rgba(var(--acc),.22) 42%, rgba(255,255,255,.18) 48%, rgba(150,130,255,.18) 54%, transparent 68%); background-size: 260% 100%; background-position: 120% 0; opacity: 0; transition: opacity .42s; }
.v3-c > * { position: relative; z-index: 1; }
.v3-c-ic { display: grid; place-items: center; width: 100%; height: clamp(70px, 20vw, 82px); margin-top: -4px; }
.v3-c-ic img { height: 100%; width: auto; max-width: 86%; object-fit: contain; filter: drop-shadow(0 10px 12px rgba(0,0,0,.5)); }
.v3-c b { font-size: clamp(19px, 5.4vw, 23px); line-height: 1.1; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.5); }
.v3-c small { display: block; color: #e6e9f8; font-size: 13.5px; line-height: 1.25; margin-top: 2px; }
.v3-play { margin-top: auto; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #f7dc9e, #d9a94f); box-shadow: 0 0 0 4px rgba(243,212,139,.18), 0 6px 16px rgba(217,169,79,.5); }
.v3-play svg { width: 18px; height: 18px; fill: #1a1405; margin-left: 3px; }
.v3-c.mid { z-index: 3; transform: translateZ(0);
  background:
    radial-gradient(60% 40% at 20% 12%, rgba(150,110,255,.42), transparent 70%) padding-box,
    radial-gradient(70% 50% at 85% 55%, rgba(60,120,255,.34), transparent 70%) padding-box,
    radial-gradient(110% 55% at 50% 112%, rgba(var(--acc),.30), transparent 60%) padding-box,
    linear-gradient(170deg, #1e2f8c 0%, #141f6a 40%, #0d1450 75%, #0a0f3c 100%) padding-box,
    linear-gradient(135deg, #f6dea0, #b98a3c 30%, #f3d48b 55%, #a87a30 80%, #f6dea0) border-box;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 0 14px rgba(120,100,255,.28), inset 0 -20px 30px rgba(var(--acc),.22), 0 16px 30px rgba(0,0,0,.5); }
.v3-c.mid::before { opacity: .9; animation: v3Light 12s ease-in-out infinite alternate; }
@keyframes v3Light { 0% { background-position: 130% 0; } 100% { background-position: -30% 0; } }
.v3-c.side { z-index: 2; filter: saturate(.85) brightness(.8); }
.v3-c.l { transform: translateX(calc(var(--cw) * -.7)) translateZ(-80px) rotateY(32deg) scale(.9); padding-right: calc(var(--cw) * .22); }
.v3-c.r { transform: translateX(calc(var(--cw) * .7)) translateZ(-80px) rotateY(-32deg) scale(.9); padding-left: calc(var(--cw) * .22); }
.v3-c.side small, .v3-c.side .v3-play { display: none; }
.v3-c.side b { font-size: 16px; margin-top: 4px; }

/* ---------- 4 small cards: dark tinted glass like the app's cards ---------- */
.v3-parts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.v3-pt { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 64px; padding: 6px 4px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(8,16,52,.55) 0%, rgba(19,41,92,.55) 55%, rgba(30,56,120,.6) 100%); border: 1px solid rgba(216,180,106,.8);
  box-shadow: inset 0 10px 18px rgba(2,8,30,.55), inset 0 -1px 0 rgba(255,255,255,.12), 0 6px 16px rgba(0,0,0,.4); }
.v3-pt::before { content: ""; position: absolute; left: 18%; right: 18%; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, #f6dc9a, transparent); box-shadow: 0 0 10px rgba(246,220,154,.8); }
.v3-pt img { width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0,0,0,.5)); }
.v3-pt b { font-size: 13.5px; line-height: 1.1; color: #fff; text-align: center; overflow-wrap: anywhere; }
.v3-pt-all b { color: var(--v3-gold); }

/* ---------- In the car capsule ---------- */
.v3-carb { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; height: 56px; padding: 0 7px 0 9px; border-radius: 999px; overflow: hidden; text-align: left; background: #0e1c5a; border: 1px solid rgba(255,255,255,.1); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 10px 22px rgba(0,0,0,.35); }
.v3-carb::before { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 64%; background: url(assets/v3/road2.webp) right center / cover no-repeat; -webkit-mask-image: linear-gradient(90deg, transparent, #000 55%); mask-image: linear-gradient(90deg, transparent, #000 55%); }
.v3-carb > * { position: relative; z-index: 1; }
.v3-cic { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(243,212,139,.14); border: 1px solid rgba(243,212,139,.45); }
.v3-cic svg { width: 22px; height: 22px; stroke: var(--v3-gold); fill: none; stroke-width: 1.8; }
.v3-carb-tx { flex: 1; min-width: 0; }
.v3-carb-tx b { display: block; font-size: 17px; line-height: 1.1; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.v3-carb-tx small { display: block; font-size: 13px; color: #e6eaf8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 6px rgba(0,0,0,.7); }
.v3-carb-play { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid rgba(243,212,139,.7); background: rgba(10,20,60,.55); }
.v3-carb-play svg { width: 18px; height: 18px; fill: var(--v3-gold); margin-left: 3px; }

/* ---------- tab bar: floating glass, Mary in the centre ---------- */
html body .app #tabbar.v3 { transform: none !important; display: grid !important; grid-template-columns: 1fr 1fr 1.2fr 1fr 1fr !important; gap: 0 !important; align-items: center; left: 10px !important; right: 10px !important; bottom: calc(8px + env(safe-area-inset-bottom)) !important; width: auto !important; max-width: 520px; margin: 0 auto; min-height: 72px; padding: 0 4px !important; border-radius: 28px !important; border: 1px solid rgba(255,255,255,.12) !important; background: linear-gradient(160deg, rgba(255,255,255,.10), rgba(255,255,255,.02) 45%), rgba(10,26,80,.86) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 12px 28px rgba(0,0,0,.45) !important; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
html body .app #tabbar.v3 button { min-height: 60px !important; background: none !important; box-shadow: none !important; color: #f4eedf !important; display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 12.5px !important; font-weight: 600; border-radius: 16px; }
html body .app #tabbar.v3 button svg { width: 25px; height: 25px; stroke: currentColor; fill: none; stroke-width: 1.7; }
html body .app #tabbar.v3 button.on { color: var(--v3-gold) !important; }
html body .app #tabbar.v3 .v3-mary { justify-content: flex-end; padding-bottom: 6px; gap: 5px; }
html body .app #tabbar.v3 .v3-mary > span:last-child { position: relative; z-index: 2; color: #ffe3a3; font-weight: 700; text-shadow: 0 1px 6px rgba(0,0,0,.9); }
.v3-orb { position: relative; display: block; width: 84px; height: 84px; margin-top: -54px; border-radius: 50%; background: url(assets/v3/orb2.webp) center / 122% no-repeat;
  box-shadow: 0 0 0 2.5px rgba(243,212,139,.95), 0 0 0 6px rgba(6,16,58,.95), 0 0 0 8px rgba(130,110,255,.35), 0 0 26px 6px rgba(90,150,255,.55), 0 0 50px 14px rgba(140,90,255,.3);
  animation: v3Breathe 3.4s ease-in-out infinite; transition: transform .18s; }
.v3-orb::before, .v3-orb::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(120,170,255,.5); animation: v3Ripple 3.4s ease-out infinite; }
.v3-orb::after { animation-delay: 1.7s; }
html body .app #tabbar.v3 .v3-mary:active .v3-orb { transform: scale(.93); }
@keyframes v3Breathe { 50% { transform: scale(1.06); } }
@keyframes v3Ripple { from { transform: scale(.92); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
/* room for the floating bar */
html body .app:not(.is-welcome) #view { padding-bottom: calc(118px + env(safe-area-inset-bottom)) !important; }

/* ---------- bottom sheets ---------- */
.v3-dim { position: fixed; inset: 0; z-index: 200; background: rgba(2,8,30,.6); animation: v3Fade .25s; }
.v3-sheet { position: fixed; z-index: 201; left: 0; right: 0; bottom: 0; width: auto; max-width: 520px; margin: 0 auto; max-height: 86vh; overflow: auto; border-radius: 28px 28px 0 0; padding: 10px 16px calc(24px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, #0a1846, #010822); border-top: 1px solid rgba(226,188,114,.5); box-shadow: 0 -14px 34px rgba(0,0,0,.5); animation: v3Up .32s var(--v3-ease); }
@keyframes v3Up { from { transform: translateY(40%); opacity: 0; } }
@keyframes v3Fade { from { opacity: 0; } }
.v3-grab { width: 44px; height: 5px; border-radius: 5px; background: rgba(255,255,255,.4); margin: 0 auto 12px; }
.v3-sh-top { display: flex; align-items: center; margin-bottom: 12px; }
.v3-sh-top h2 { font-family: Literata, Georgia, serif; font-size: 23px; color: #fff; margin: 0; }
.v3-x { flex: none; margin-left: auto; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.1); border: 0; color: #fff; font-size: 18px; }
.v3-lede { color: var(--v3-muted); font-size: 15px; margin: 2px 2px 14px; }
.v3-lbl { color: #E2BC72; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 6px 2px 8px; }

/* shared rows */
.v3-list { display: flex; flex-direction: column; gap: 9px; }
.v3-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 14px; min-height: 60px; border-radius: 16px; background: linear-gradient(180deg, #183170, #10235a); border: 1px solid var(--v3-rim); box-shadow: 0 3px 0 rgba(150,112,40,.55), 0 6px 14px rgba(2,10,36,.45), inset 0 1px 0 rgba(255,255,255,.1); }
.v3-row > span:nth-child(2) { flex: 1; min-width: 0; }
.v3-row b { display: block; font-size: 16px; color: #fff; }
.v3-row small { display: block; color: var(--v3-muted); font-size: 13px; }
.v3-row > i { font-style: normal; color: #E2BC72; font-size: 22px; }
.v3-ic, .v3-num { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; padding: 4px; font-size: 20px; background: radial-gradient(circle at 50% 35%, #1b3478, #0a1746); box-shadow: 0 0 0 2px #e2bc72, 0 0 0 4px rgba(10,23,70,.9), 0 3px 8px rgba(0,0,0,.4); overflow: hidden; }
.v3-ic img { width: 100%; height: 100%; object-fit: contain; border-radius: 50%; }
.v3-num { font-family: Literata, serif; color: var(--v3-gold); font-weight: 700; }

/* rings */
.v3-ring { position: relative; flex: none; width: var(--d); height: var(--d); border-radius: 50%; display: grid; place-items: center; background: conic-gradient(from -90deg, var(--v3-gold) calc(var(--p) * 1%), rgba(255,255,255,.1) 0); box-shadow: 0 0 0 2px rgba(226,188,114,.4); }
.v3-ring::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #0d1b55; }
.v3-ring img { position: relative; z-index: 1; width: 78%; height: 78%; object-fit: contain; }
.v3-rings4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin: 6px 0 14px; }
.v3-rg { display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; padding: 0; }
.v3-rg u { text-decoration: none; margin-top: -12px; position: relative; z-index: 2; font-size: 12px; font-weight: 800; color: #0b1c52; background: var(--v3-gold); border-radius: 999px; padding: 1px 7px; border: 2px solid #0a1a50; }
.v3-rg b { font-size: 13px; color: #fff; text-align: center; }
.v3-meds { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; padding: 2px 2px 10px; }
.v3-meds i { display: block; }
.v3-meds img { width: 100%; aspect-ratio: 1; border-radius: 50%; filter: grayscale(1) brightness(.5); }
.v3-meds i.got img { filter: none; box-shadow: 0 0 0 2px #e2bc72, 0 0 10px rgba(243,212,139,.45); }

/* ---------- accordion (All sections / Learn) ---------- */
.v3-accs { display: flex; flex-direction: column; gap: 10px; }
.v3-acc { border-radius: 22px; background: var(--v3-card); border: 1px solid var(--v3-rim); box-shadow: 0 3px 0 rgba(150,112,40,.55), 0 6px 14px rgba(2,10,36,.45), inset 0 1px 0 rgba(255,255,255,.1); }
.v3-acc.open { border-color: rgba(243,212,139,.85); }
.v3-acc-h { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 10px 14px; text-align: left; background: none; border: 0; }
.v3-acc-t { flex: 1; min-width: 0; }
.v3-acc-t b { display: block; font-size: 18px; color: #fff; }
.v3-acc-t small { display: block; color: var(--v3-muted); font-size: 13px; }
.v3-chev { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 20px; color: #1a1405; background: linear-gradient(180deg, #f1d9a0, #d7b06a); box-shadow: 0 2px 0 rgba(150,112,40,.6); transition: transform .32s var(--v3-ease); }
.v3-acc.open .v3-chev { transform: rotate(180deg); }
.v3-acc-b { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s var(--v3-ease); }
.v3-acc.open .v3-acc-b { grid-template-rows: 1fr; }
.v3-acc-in { overflow: hidden; min-height: 0; }
.v3-acc-in > * { margin: 0 10px 12px; opacity: 0; transform: translateY(-6px); transition: opacity .28s, transform .32s var(--v3-ease); }
.v3-acc.open .v3-acc-in > * { opacity: 1; transform: none; transition-delay: .06s; }
.v3-g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.v3-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 6px 10px; min-height: 118px; border-radius: 18px; background: linear-gradient(180deg, #183170, #10235a); border: 1px solid var(--v3-rim); box-shadow: 0 3px 0 rgba(150,112,40,.55); }
.v3-tile b { font-size: 15px; line-height: 1.15; text-align: center; color: #fff; }
.v3-tile em { font-style: normal; font-weight: 800; font-size: 13px; color: var(--v3-gold); }

/* ---------- Learn / Exam screens ---------- */
.v3-scr h1 { font-family: Literata, Georgia, serif; font-size: 30px; color: #fff; margin: 4px 2px; }
.v3-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(10,26,80,.7); border: 1px solid rgba(226,188,114,.4); margin-bottom: 14px; }
.v3-seg button { min-height: 44px; border-radius: 999px; border: 0; background: none; font-weight: 700; font-size: 15px; color: var(--v3-muted); }
.v3-seg button.on { background: linear-gradient(180deg, #f6dea0, #d7b06a); color: #1a1405; }
.v3-path { position: relative; padding: 6px 0 10px; }
.v3-path::before { content: ""; position: absolute; left: 50%; top: 24px; bottom: 30px; width: 4px; margin-left: -2px; border-radius: 4px; background: linear-gradient(180deg, #f3d48b, rgba(243,212,139,.15)); box-shadow: 0 0 12px rgba(243,212,139,.35); }
.v3-pn { position: relative; display: grid; grid-template-columns: 1fr 76px 1fr; align-items: center; width: 100%; min-height: 78px; margin: 2px 0; background: none; border: 0; }
.v3-pdot { grid-column: 2; justify-self: center; position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, #1b3478, #0a1746); box-shadow: 0 0 0 2px rgba(226,188,114,.4), 0 0 0 6px #0a1846; overflow: hidden; }
.v3-pdot img { width: 80%; height: 80%; object-fit: contain; }
.v3-pn.l .v3-ptx { grid-column: 1; grid-row: 1; text-align: right; padding-right: 8px; }
.v3-pn.r .v3-ptx { grid-column: 3; grid-row: 1; text-align: left; padding-left: 8px; }
.v3-ptx b { display: block; font-size: 15px; color: #fff; line-height: 1.15; }
.v3-ptx small { display: block; font-size: 12.5px; color: var(--v3-muted); }
.v3-pn.done .v3-pdot { box-shadow: 0 0 0 2.5px #e2bc72, 0 0 0 6px #0a1846; }
.v3-pn.now .v3-pdot { width: 66px; height: 66px; box-shadow: 0 0 0 3px #f6dea0, 0 0 0 7px #0a1846, 0 0 24px 6px rgba(243,212,139,.55); animation: v3Pulse 2.6s ease-in-out infinite; }
@keyframes v3Pulse { 50% { box-shadow: 0 0 0 3px #f6dea0, 0 0 0 7px #0a1846, 0 0 34px 10px rgba(243,212,139,.75); } }
.v3-pn.now .v3-ptx b, .v3-pn.now .v3-ptx small { color: var(--v3-gold); }
.v3-pn.next .v3-pdot img { filter: grayscale(.6) brightness(.75); }
.v3-pn.goal .v3-pdot { width: 64px; height: 64px; box-shadow: 0 0 0 2.5px #e2bc72, 0 0 0 6px #0a1846; }
.v3-pn.goal .v3-pdot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.v3-ex-hero { position: relative; height: 270px; border-radius: 26px; overflow: hidden; margin-bottom: 14px; border: 1px solid rgba(226,188,114,.6); box-shadow: 0 3px 0 rgba(150,112,40,.5), 0 14px 28px rgba(0,0,0,.45); background: radial-gradient(70% 80% at 78% 40%, rgba(243,212,139,.22), transparent 65%), radial-gradient(60% 60% at 90% 10%, rgba(120,100,255,.25), transparent 70%), linear-gradient(180deg, #1a3374, #0a1746); }
.v3-ex-hero > img { position: absolute; right: -18px; top: 14px; height: 140%; width: auto; object-fit: contain; object-position: top; }
.v3-ex-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,18,60,.92) 0%, rgba(8,18,60,.6) 42%, rgba(8,18,60,0) 62%), linear-gradient(0deg, rgba(8,18,60,.85), transparent 35%); }
.v3-ex-tx { position: absolute; z-index: 1; left: 18px; bottom: 18px; width: 60%; }
.v3-ex-tx h1 { font-size: 25px; line-height: 1.1; margin: 0; }
.v3-kick { display: inline-block; font-size: 12px; font-weight: 800; color: #1a1405; background: linear-gradient(180deg, #f6dea0, #d7b06a); border-radius: 999px; padding: 3px 10px; margin-bottom: 8px; }
.v3-ex-tx small { display: block; margin-top: 6px; color: #d9def2; font-size: 13.5px; line-height: 1.35; }
.v3-info { position: absolute; z-index: 2; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; font-size: 20px; display: grid; place-items: center; background: rgba(8,18,60,.7); border: 1px solid rgba(226,188,114,.6); color: var(--v3-gold); }
.v3-ready { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 20px; margin-bottom: 14px; background: var(--v3-card); border: 1px solid rgba(226,188,114,.4); }
.v3-rnum { position: relative; flex: none; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--v3-gold) calc(var(--p) * 1%), rgba(255,255,255,.12) 0); }
.v3-rnum::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #0e1f50; }
.v3-rnum b { position: relative; z-index: 1; color: var(--v3-gold); font-size: 15px; }
.v3-ready b { display: block; color: #fff; font-size: 16px; }
.v3-ready small { color: var(--v3-muted); font-size: 13.5px; }
.v3-steps { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.v3-es { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 18px; background: var(--v3-card); border: 1px solid rgba(226,188,114,.35); box-shadow: 0 3px 0 rgba(150,112,40,.45); }
.v3-es img { width: 42px; height: 42px; object-fit: contain; }
.v3-es b { font-size: 13.5px; color: #fff; text-align: center; line-height: 1.1; }
.v3-es small { font-size: 12px; color: var(--v3-muted); text-align: center; }
.v3-esn { position: absolute; top: -8px; left: -4px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 900; background: #0e1f50; border: 1.5px solid rgba(226,188,114,.6); color: var(--v3-gold); }
.v3-es.ok .v3-esn { background: #e2bc72; color: #1a1405; }
.v3-es.weak { border-color: #f3d48b; box-shadow: 0 3px 0 rgba(150,112,40,.6), 0 0 16px rgba(243,212,139,.35); }
.v3-es.weak small { color: var(--v3-gold); font-weight: 700; }
.v3-cta { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 58px; border-radius: 999px; border: 0; font-weight: 800; font-size: 18px; color: #1a1405; background: linear-gradient(180deg, #f6dea0, #d7b06a); box-shadow: 0 3px 0 rgba(150,112,40,.6), 0 10px 20px rgba(217,169,79,.3); }
.v3-or { text-align: center; color: var(--v3-muted); font-size: 13px; margin: 10px 0 0; }

@media (max-width: 360px) {
  .v3-c.side b { font-size: 15px; }
  .v3-orb { width: 72px; height: 72px; margin-top: -42px; }
  html body .app #tabbar.v3 button { font-size: 11px !important; }
  .v3-pt b { font-size: 12.5px; }
  .v3-ex-tx { width: 66%; }
}
@media (prefers-reduced-motion: reduce) {
  .v3-c, .v3-c.mid::before, .v3-orb, .v3-orb::before, .v3-orb::after, .v3-pn.now .v3-pdot, .v3-sheet, .v3-dim, .v3-acc-b, .v3-acc-in > *, .v3-chev { animation: none !important; transition: none !important; }
}
/* fixes after the first real-app pass */
html body .app .v3-cta { color: #1a1405 !important; background: linear-gradient(180deg, #f6dea0, #d7b06a) !important; }
.v3-pt b, .v3-tile b, .v3-es b, .v3-rg b { overflow-wrap: normal; word-break: normal; hyphens: manual; }
@media (max-width: 345px) { .v3-pt b { font-size: 11.5px; } .v3-parts { gap: 7px; } .v3-es b { font-size: 12px; } }
/* car capsule: subtitle wraps to 2 lines instead of "…" */
.v3-carb { height: auto; min-height: 56px; padding-top: 6px; padding-bottom: 6px; }
.v3-carb-tx small { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.2; }
/* long words: soft hyphen on narrow screens / large text, never a bare break */
.v3-home, .v3-scr, .v3-sheet { overflow-wrap: normal; word-break: normal; }
.v3-es { padding: 10px 2px; }
.v3-es b { font-size: 12px; letter-spacing: -.01em; }
@media (max-width: 360px) { .v3-es b, .v3-ptx b, .v3-tile b { hyphens: auto; -webkit-hyphens: auto; } }
html[data-text="large"] .v3-es b, html[data-text="large"] .v3-ptx b { hyphens: auto; -webkit-hyphens: auto; }
/* setup: the chosen state gets the same green tick as a checked ZIP (Zhenya #1) */
html body .app .state3.on { border-color: #2fbf8f; padding-right: 40px; }
.state3 .st-ok { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 14px; font-weight: 800; color: #fff; background: #2fbf8f; }
.state3 em { font-style: normal; font-size: 13px; color: #f3cf7f; }
.quiz-lesson-total { text-align: center; font-weight: 800; font-size: 17px; color: #f3d48b; margin: -4px 0 12px; }
/* interview training: bright verdict right under the mic (Zhenya #11) */
.iv-plaque { display: flex; flex-direction: column; gap: 4px; margin: 10px 0 12px; padding: 14px 16px; border-radius: 18px; color: #fff; box-shadow: 0 10px 24px rgba(0,0,0,.35); animation: v3Up2 .32s cubic-bezier(.2,.8,.2,1); }
.iv-plaque.ok { background: linear-gradient(180deg, #17a36f, #0d7a52); border: 1.5px solid #6fe0b3; }
.iv-plaque.no { background: linear-gradient(180deg, #d0435a, #a3283d); border: 1.5px solid #ff9aa9; }
.iv-plaque b { display: flex; align-items: center; gap: 10px; font-size: 22px; }
.iv-plaque b i { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 18px; background: #fff; }
.iv-plaque.ok b i { color: #0d7a52; } .iv-plaque.no b i { color: #a3283d; }
.iv-plaque span { font-size: 15.5px; line-height: 1.35; overflow-wrap: anywhere; }
.iv-plaque small { font-size: 14px; font-weight: 700; opacity: .95; }
@keyframes v3Up2 { from { transform: translateY(8px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .iv-plaque { animation: none; } }
/* interview: Elena's new full-height officer portrait */
html body [data-screen="interview"] .officer-card .officer-frame img[src*="officer2"] { object-position: center 8% !important; }
.place-field .st-ok { margin-left: auto; flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 14px; font-weight: 800; color: #fff; background: #2fbf8f; }
html body .app .place-field.on { display: flex; align-items: center; gap: 10px; padding-right: 46px; box-shadow: 0 0 0 2px #2fbf8f, var(--shadow-sm) !important; }
/* no empty floating bar on screens without tabs */
html body .app #tabbar.v3:empty { display: none !important; }
.car-wide { grid-column: 1 / -1; }
html body #view .car-grid > div:nth-child(2):not(.car-wide) { grid-column: auto; }
@media (max-width: 360px) { html body #view .car-grid { grid-template-columns: 1fr; } }
.v3-ic img[src*="road2"] { object-fit: cover; object-position: 70% center; }

/* ---- 22.11 night: back to the approved mockup (owner): darker glass, gold rim running around the centre card, Mary as in the mockup ---- */
@property --v3ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.v3-c.mid { background:
    radial-gradient(60% 40% at 20% 12%, rgba(150,110,255,.42), transparent 70%) padding-box,
    radial-gradient(70% 50% at 85% 55%, rgba(60,120,255,.34), transparent 70%) padding-box,
    radial-gradient(110% 55% at 50% 112%, rgba(var(--acc),.30), transparent 60%) padding-box,
    linear-gradient(170deg, #1e2f8c 0%, #141f6a 40%, #0d1450 75%, #0a0f3c 100%) padding-box,
    linear-gradient(var(--v3ang), #f6dea0, #b98a3c 30%, #f3d48b 55%, #a87a30 80%, #f6dea0) border-box;
  animation: v3Rim 14s linear infinite; }
@keyframes v3Rim { from { --v3ang: 0deg; } to { --v3ang: 360deg; } }
@media (prefers-reduced-motion: reduce) { .v3-c.mid { animation: none; } }
/* tall phones: the home fills the screen instead of leaving a hole above the tab bar */
@media (min-height: 700px) {
  .v3-home { gap: clamp(12px, 2vh, 20px); }
  .v3-car { --ch: clamp(160px, 22vh, 210px); --cw: clamp(148px, 44vw, 196px); }
  .v3-c-ic { height: clamp(70px, 11vh, 104px); }
  .v3-pt { min-height: clamp(64px, 9.5vh, 86px); }
  .v3-pt img { width: clamp(38px, 5.4vh, 48px); height: clamp(38px, 5.4vh, 48px); }
  .v3-carb { min-height: clamp(56px, 7.4vh, 66px); }
}
/* exam tiles: icons sit in a gold ring even at 0% (owner: "иконки были с золотым блоком") */
.v3-ring { background: conic-gradient(from -90deg, var(--v3-gold) calc(var(--p) * 1%), rgba(243,212,139,.22) 0); box-shadow: 0 0 0 2px #e2bc72, 0 0 12px rgba(243,212,139,.35); }
.v3-ring::after { inset: 5px; background: radial-gradient(circle at 50% 35%, #1b3478, #0a1746); box-shadow: inset 0 0 0 1.5px rgba(226,188,114,.7); }

/* ---- 22.11, after the second opinion: one glass system, fewer repeats ---- */
/* 1. Florida: thinner row, the photo darker and melting into navy */
.v3-state { min-height: 52px; }
.v3-state::before { opacity: .62; -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 45%, #000 85%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.55) 45%, #000 85%); }
.v3-state::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,28,90,.0) 30%, rgba(20,30,110,.35) 100%); pointer-events: none; }
/* 2. carousel: side cards less murky */
.v3-c.side { filter: saturate(.95) brightness(.92); }
/* 3. the four small cards: thin translucent gold, full gold on touch */
.v3-pt { border-color: rgba(216,180,106,.42); }
.v3-pt::before { opacity: .55; }
.v3-pt:active, .v3-pt:focus-visible { border-color: rgba(243,212,139,.95); box-shadow: inset 0 10px 18px rgba(2,8,30,.55), 0 0 14px rgba(243,212,139,.35); }
/* 4. one profile button only: the tab bar has it, the home header does not */
html body .app.is-home .v3-hero .hm-profile { display: none !important; }
/* 5. Mary: a glass ball, not a lamp */
.v3-orb { box-shadow: 0 0 0 2.5px rgba(243,212,139,.95), 0 0 0 6px rgba(6,16,58,.95), 0 0 0 7.5px rgba(130,110,255,.25), 0 0 18px 4px rgba(90,150,255,.38), 0 0 36px 10px rgba(140,90,255,.18); }
.v3-orb::before, .v3-orb::after { border-color: rgba(120,170,255,.32); }
/* language button on the right, away from the Statue of Liberty's torch (the profile button left the header) */
html body .app.is-home .v3-hero .hm-top { justify-content: flex-end !important; }
html body .app.is-home .v3-hero .hm-top .lang-drop { margin-left: auto !important; transform-origin: right top !important; }
