/* Elan German Games – styles v2
 * Everything is scoped to .eg-page / .eg-app and hardened against WordPress/Elementor theme styles. */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

.eg-app, .eg-page {
  /* Brand palette built on #192a3d. All text/background pairs meet WCAG AA (4.5:1+). */
  --eg-brand: #192a3d; --eg-brand-dark: #0f1c2b; --eg-brand-2: #2c4666; --eg-accent: #3d5a80;
  --eg-red: var(--eg-brand); --eg-red-dark: var(--eg-brand-dark);
  --eg-gold: #f5c451; --eg-ink: #192a3d; --eg-ink-2: #2c4666;
  --eg-muted: #5b6b7f; --eg-bg: #ffffff; --eg-soft: #f3f6fa; --eg-soft-2: #e6ecf3; --eg-tint: #e6ecf3; --eg-line: #dfe6ee;
  --eg-ok: #1e7a4c; --eg-warn: #9a6700; --eg-bad: #b42318; --eg-absent: #6b7785;
  --eg-m: #2b5797; --eg-f: #9a3412; --eg-n: #1e7a4c;
  --eg-radius: 16px; --eg-shadow: 0 1px 2px rgba(25,42,61,.04), 0 8px 24px rgba(25,42,61,.06);
  --eg-shadow-lg: 0 2px 6px rgba(25,42,61,.05), 0 20px 48px rgba(25,42,61,.12);
  --eg-font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-family: var(--eg-font) !important; color: var(--eg-ink); line-height: 1.6; -webkit-font-smoothing: antialiased;
}
/* reset theme leakage */
.eg-page *, .eg-app *, .eg-page *::before, .eg-page *::after, .eg-app *::before, .eg-app *::after { box-sizing: border-box; }
.eg-page h1, .eg-page h2, .eg-page h3, .eg-page h4, .eg-app h3, .eg-app h4 { font-family: var(--eg-font) !important; color: var(--eg-ink); text-transform: none; letter-spacing: -.02em; margin: 0; padding: 0; border: 0; background: none; font-style: normal; }
.eg-page p, .eg-app p { margin: 0 0 12px; font-family: var(--eg-font); }
.eg-page ul, .eg-page ol { margin: 0; padding: 0; }
.eg-page a { color: var(--eg-accent); text-decoration: none; box-shadow: none; }
.eg-page a:hover { color: var(--eg-red-dark); }
.eg-page button, .eg-app button, .eg-app input { font-family: var(--eg-font) !important; text-transform: none; letter-spacing: normal; line-height: 1.2; margin: 0; min-height: 0; box-shadow: none; }
.eg-page table, .eg-page th, .eg-page td { border: 0; background: none; }
.eg-page img { max-width: 100%; height: auto; }

/* ---------- Game shell ---------- */
.eg-app { max-width: 780px; margin: 0 auto; padding: 22px; background: var(--eg-bg); border: 1px solid var(--eg-line); border-radius: 24px; box-shadow: var(--eg-shadow-lg); position: relative; }
.eg-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.eg-title-de { font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; }
.eg-title-en { color: var(--eg-muted); font-weight: 500; }
.eg-levels { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px; background: var(--eg-soft); padding: 5px; border-radius: 14px; }
.eg-app .eg-lvl { border: 0; background: transparent; border-radius: 10px; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; line-height: 1.15; color: var(--eg-ink); cursor: pointer; transition: background .15s, color .15s; }
.eg-app .eg-lvl:hover { background: #fff; }
.eg-lvl b { font-size: .85rem; font-weight: 700; } .eg-lvl small { font-size: .72rem; color: var(--eg-muted); font-weight: 600; }
.eg-app .eg-lvl.on { background: var(--eg-ink); color: #fff; box-shadow: 0 4px 12px rgba(25,42,61,.25); } .eg-lvl.on small { color: var(--eg-gold); }
.eg-modebar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .9rem; margin-bottom: 8px; color: var(--eg-ink-2); }
.eg-spacer { flex: 1; }
.eg-status { min-height: 1.4em; font-size: .95rem; color: var(--eg-muted); margin: 6px 0 14px; }
.eg-stage { min-height: 280px; }
.eg-loading, .eg-error { text-align: center; padding: 60px 0; color: var(--eg-muted); }
.eg-page .eg-btn, .eg-app .eg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1.5px solid var(--eg-ink); background: #fff; color: var(--eg-ink); border-radius: 999px; padding: 10px 20px; font-weight: 700; font-size: .95rem; cursor: pointer; text-decoration: none; transition: transform .12s, box-shadow .12s, background .12s; white-space: nowrap; }
.eg-page .eg-btn:hover, .eg-app .eg-btn:hover { transform: translateY(-1px); box-shadow: var(--eg-shadow); }
.eg-app .eg-btn:disabled { opacity: .4; cursor: default; transform: none; box-shadow: none; }
.eg-page .eg-primary, .eg-app .eg-primary { background: var(--eg-red); border-color: var(--eg-red); color: #fff; }
.eg-page .eg-primary:hover, .eg-app .eg-primary:hover { background: var(--eg-red-dark); border-color: var(--eg-red-dark); color: #fff; }
.eg-page .eg-ghost, .eg-app .eg-ghost { border-color: var(--eg-line); background: #fff; color: var(--eg-ink); }
.eg-app .eg-chip { border: 1px solid var(--eg-line); background: #fff; border-radius: 10px; min-width: 44px; padding: 8px 10px; font-weight: 700; color: var(--eg-ink); cursor: pointer; }
.eg-hint { background: var(--eg-soft); border-radius: 12px; padding: 12px 14px; margin: 14px 0; font-size: .95rem; }
.eg-hint:empty { display: none; }
.eg-bad { color: var(--eg-bad); font-weight: 600; }
.eg-foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; border-top: 1px solid var(--eg-line); padding-top: 14px; text-align: center; }
.eg-stat b { display: block; font-size: 1.05rem; } .eg-stat small { color: var(--eg-muted); font-size: .78rem; }
.eg-modal { position: absolute; inset: 0; background: rgba(25,42,61,.55); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; border-radius: 24px; padding: 16px; z-index: 5; }
.eg-modal[hidden] { display: none; }
.eg-modal-box { background: #fff; border-radius: 22px; padding: 28px; max-width: 440px; width: 100%; text-align: center; box-shadow: var(--eg-shadow-lg); animation: egpop .25s ease; }
.eg-modal-box h3 { margin: 6px 0 8px; font-size: 1.45rem; font-weight: 800; }
.eg-modal-emoji { font-size: 2.8rem; }
.eg-share-preview { background: var(--eg-soft); border-radius: 12px; padding: 12px; font-size: .9rem; white-space: pre-wrap; text-align: left; font-family: var(--eg-font); border: 0; color: var(--eg-ink); }
.eg-modal-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
@keyframes egpop { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
.eg-app button { cursor: pointer; }

/* shared info/timer */
.eg-app .ak-info { display: flex; justify-content: center; gap: 18px; font-weight: 700; margin-bottom: 10px; flex-wrap: wrap; }
.eg-app .ak-timer { height: 8px; background: var(--eg-soft); border-radius: 99px; overflow: hidden; margin-bottom: 10px; }
.eg-app .ak-bar { height: 100%; width: 100%; background: linear-gradient(90deg, var(--eg-red), var(--eg-gold)); transition: width .1s linear; }

/* Wortspiel */
.eg-app .ws-grid { display: grid; gap: 6px; justify-content: center; margin: 8px auto 14px; }
.eg-app .ws-row { display: grid; grid-template-columns: repeat(5, 54px); gap: 6px; }
.eg-app .ws-cell { width: 54px; height: 54px; border: 2px solid var(--eg-line); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: 800; text-transform: none; }
.eg-app .ws-cell.filled { border-color: #8f9bab; animation: egpop .1s; }
.eg-app .ws-cell.correct, .eg-app .ws-key.correct { background: var(--eg-ok); border-color: var(--eg-ok); color: #fff; }
.eg-app .ws-cell.present, .eg-app .ws-key.present { background: var(--eg-warn); border-color: var(--eg-warn); color: #fff; }
.eg-app .ws-cell.absent, .eg-app .ws-key.absent { background: var(--eg-absent); border-color: var(--eg-absent); color: #fff; }
.eg-app .ws-row.shake { animation: egshake .35s; }
@keyframes egshake { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-4px); } }
.eg-app .ws-kb { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.eg-app .ws-kb-row { display: flex; gap: 4px; justify-content: center; width: 100%; }
.eg-app .ws-key { flex: 1 1 0; max-width: 44px; height: 50px; border: 0; border-radius: 6px; background: #dfe6ee; font-weight: 700; color: var(--eg-ink); padding: 0; }
.eg-app .ws-key.wide { max-width: 68px; flex-grow: 1.6; font-size: .72rem; }
.eg-app .ws-hidden-input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }

/* Artikel */
.eg-app .ak-word { font-size: 2.6rem; font-weight: 800; text-align: center; margin: 20px 0 4px; transition: color .15s; }
.eg-app .ak-word.ok { color: var(--eg-ok); } .ak-word.bad { color: var(--eg-bad); animation: egshake .3s; }
.eg-app .ak-en { text-align: center; color: var(--eg-muted); min-height: 1.3em; }
.eg-app .ak-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.eg-app .ak-btn { border: 0; border-radius: 14px; padding: 18px 6px; color: #fff; display: flex; flex-direction: column; align-items: center; }
.eg-app .ak-btn b { font-size: 1.6rem; } .ak-btn small { opacity: .8; font-size: .72rem; }
.eg-app .ak-der { background: var(--eg-m); } .ak-die { background: var(--eg-f); } .ak-das { background: var(--eg-n); }
.eg-app .ak-btn:active { transform: scale(.97); }

/* Konjugation */
.eg-app .kj-card { text-align: center; background: var(--eg-soft); border-radius: var(--eg-radius); padding: 20px 12px; }
.eg-app .kj-tense { display: inline-block; background: var(--eg-ink); color: #fff; border-radius: 99px; padding: 3px 12px; font-size: .8rem; font-weight: 700; }
.eg-app .kj-big { font-size: 2rem; font-weight: 800; margin: 10px 0; }
.eg-app .kj-pron { color: var(--eg-red); } .kj-blank { color: #8f9bab; }
.eg-app .kj-sub { color: var(--eg-muted); }
.eg-app .kj-form { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.eg-app .kj-input { flex: 1 1 200px; font-size: 1.2rem; padding: 10px 14px; border: 2px solid var(--eg-line); border-radius: 12px; }
.eg-app .kj-input:focus { border-color: var(--eg-ink); outline: none; }
.eg-app .kj-uml { display: flex; gap: 6px; margin-top: 8px; justify-content: center; }

/* Memory */
.eg-app .mm-grid { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 8px; }
.eg-app .mm-card { position: relative; height: 92px; border: 0; background: transparent; perspective: 600px; padding: 0; }
.eg-app .mm-back, .eg-app .mm-front { position: absolute; inset: 0; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; backface-visibility: hidden; transition: transform .35s; padding: 4px; text-align: center; }
.eg-app .mm-back { background: linear-gradient(135deg, var(--eg-ink), #2c4666); color: var(--eg-gold); font-size: 1.8rem; font-weight: 800; }
.eg-app .mm-front { background: #fff; border: 2px solid var(--eg-line); transform: rotateY(180deg); }
.eg-app .mm-front b { font-size: .95rem; line-height: 1.15; } .mm-front small { color: var(--eg-muted); font-size: .68rem; }
.eg-app .mm-front.g-m { border-color: var(--eg-m); } .mm-front.g-f { border-color: var(--eg-f); } .mm-front.g-n { border-color: var(--eg-n); }
.eg-app .mm-card.open .mm-back, .eg-app .mm-card.done .mm-back { transform: rotateY(180deg); }
.eg-app .mm-card.open .mm-front, .eg-app .mm-card.done .mm-front { transform: rotateY(360deg); }
.eg-app .mm-card.done .mm-front { background: #e3f1ea; }

/* Satzbau & Wortbau */
.eg-app .sb-answer { min-height: 64px; border: 2px dashed var(--eg-line); border-radius: var(--eg-radius); padding: 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; transition: background .2s; }
.eg-app .sb-answer.ok { background: #e3f1ea; border-color: var(--eg-ok); }
.eg-app .sb-ph { color: #6b7785; }
.eg-app .sb-dot { font-size: 1.4rem; font-weight: 800; }
.eg-app .sb-bank { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; justify-content: center; min-height: 48px; }
.eg-app .sb-tile { border: 1px solid var(--eg-line); background: #fff; border-radius: 10px; padding: 9px 13px; font-size: 1.05rem; font-weight: 600; box-shadow: 0 2px 0 var(--eg-line); color: var(--eg-ink); }
.eg-app .sb-tile.in { background: var(--eg-soft); } .sb-tile.lock { background: #e6ecf3; border-color: var(--eg-gold); }
.eg-app .sb-tile.right { border-color: var(--eg-ok); background: #e3f1ea; } .sb-tile.wrong { border-color: var(--eg-bad); background: #fbeae8; }
.eg-app .sb-tile.used { opacity: .3; }
.eg-app .sb-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.eg-app .wb-word { font-size: 1.6rem; font-weight: 800; letter-spacing: .01em; }

/* Word search */
.eg-app .wsu-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 16px; align-items: start; }
.eg-app .wsu-grid { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 2px; touch-action: none; user-select: none; -webkit-user-select: none; }
.eg-app .wsu-c { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: clamp(.75rem, 2.6vw, 1.15rem); border-radius: 6px; background: var(--eg-soft); cursor: pointer; }
.eg-app .wsu-c.sel { background: var(--eg-gold); color: #fff; }
.eg-app .wsu-c.hit { background: var(--eg-ok); color: #fff; }
.eg-app .wsu-list { list-style: none; padding: 0; margin: 0; columns: 1; }
.eg-app .wsu-list li { padding: 5px 0; border-bottom: 1px solid var(--eg-line); }
.eg-app .wsu-list li.found { text-decoration: line-through; color: var(--eg-muted); }

/* Odd one out & idioms */
.eg-app .oo-grid, .eg-app .id-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.eg-app .oo-opt { border: 2px solid var(--eg-line); background: #fff; border-radius: 14px; padding: 18px 10px; font-size: 1.15rem; font-weight: 700; color: var(--eg-ink); }
.eg-app .id-opts .oo-opt { font-size: 1rem; font-weight: 600; padding: 14px 10px; }
.eg-app .oo-opt:hover:not(:disabled) { border-color: var(--eg-ink); }
.eg-app .oo-opt.right { border-color: var(--eg-ok); background: #e3f1ea; } .oo-opt.wrong { border-color: var(--eg-bad); background: #fbeae8; }
.eg-app .id-card { background: var(--eg-soft); border-radius: var(--eg-radius); padding: 18px; text-align: center; margin-bottom: 12px; }
.eg-app .id-de { font-size: 1.5rem; font-weight: 800; }
.eg-app .id-lit { color: var(--eg-muted); margin-top: 6px; }

/* Crossword */
.eg-app .cw-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 16px; align-items: start; }
.eg-app .cw-grid { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 36px)); gap: 2px; overflow-x: auto; justify-content: center; }
.eg-app .cw-b { aspect-ratio: 1; }
.eg-app .cw-c { position: relative; aspect-ratio: 1; background: #fff; border: 1.5px solid var(--eg-ink); border-radius: 4px; }
.eg-app .cw-c.hl { background: #e6ecf3; } .cw-c.cur { background: var(--eg-gold); }
.eg-app .cw-c.bad { background: #fbeae8; } .cw-c.revealed input { color: var(--eg-m); } .cw-c.win { background: #e3f1ea; }
.eg-app .cw-n { position: absolute; top: 1px; left: 2px; font-size: .55rem; font-weight: 700; line-height: 1; pointer-events: none; }
.eg-app .cw-in { width: 100%; height: 100%; border: 0; background: transparent; text-align: center; font-weight: 800; font-size: 1.05rem; padding: 0; text-transform: uppercase; caret-color: transparent; }
.eg-app .cw-in:focus { outline: none; }
.eg-app .cw-clues h4 { margin: 4px 0; font-size: .9rem; }
.eg-app .cw-list { margin: 0 0 10px; padding-left: 0; list-style: none; font-size: .9rem; }
.eg-app .cw-list li { padding: 4px 6px; border-radius: 6px; cursor: pointer; }
.eg-app .cw-list li.on { background: #e6ecf3; }


/* ---------- Page sections ---------- */
.eg-page { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.eg-page.eg-sec { margin-top: 72px; margin-bottom: 72px; }
.eg-page h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.08; font-weight: 800; letter-spacing: -.035em; margin-bottom: 16px; }
.eg-page h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); line-height: 1.15; font-weight: 800; margin-bottom: 14px; }
.eg-page h3 { font-size: 1.12rem; line-height: 1.3; font-weight: 700; margin-bottom: 6px; }
.eg-sec-head { max-width: 720px; margin: 0 auto 32px; text-align: center; }
.eg-sec-head p { color: var(--eg-muted); font-size: 1.05rem; margin: 0; }
.eg-eyebrow { display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--eg-accent); margin-bottom: 10px; }
.eg-lead { font-size: 1.08rem; color: var(--eg-ink-2); max-width: 760px; }
.eg-crumbs { font-size: .85rem; color: var(--eg-muted); margin-bottom: 18px; }
.eg-crumbs a { color: var(--eg-muted); } .eg-crumbs a:hover { color: var(--eg-red); }

/* hero */
.eg-hero-wrap { position: relative; overflow: hidden; border-radius: 32px; padding: 64px 28px 56px; margin-top: 24px; text-align: center;
  background: radial-gradient(1200px 400px at 50% -10%, #dbe5f0 0%, rgba(219,229,240,0) 60%), radial-gradient(600px 300px at 90% 110%, #e6ecf3 0%, rgba(230,236,243,0) 60%), linear-gradient(180deg, #fff 0%, var(--eg-soft) 100%);
  border: 1px solid var(--eg-line); }
.eg-hero-wrap p { font-size: 1.15rem; color: var(--eg-ink-2); max-width: 720px; margin: 0 auto 26px; }
.eg-kicker { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--eg-ink); border: 1px solid var(--eg-line); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: .85rem; margin-bottom: 18px; box-shadow: var(--eg-shadow); }
.eg-cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.eg-stats-row { display: flex; justify-content: center; gap: 36px; flex-wrap: wrap; margin-top: 34px; }
.eg-stats-row div { text-align: center; } .eg-stats-row b { display: block; font-size: 1.6rem; font-weight: 800; }
.eg-stats-row span { font-size: .85rem; color: var(--eg-muted); }
.eg-play { scroll-margin-top: 90px; }

/* cards: fixed column counts so rows are always complete */
.eg-cards { display: grid; gap: 20px; }
.eg-cards.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.eg-cards.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.eg-page .eg-card { position: relative; display: flex; flex-direction: column; height: 100%; border: 1px solid var(--eg-line); border-radius: 20px; padding: 22px 20px 20px; color: var(--eg-ink); background: #fff; box-shadow: var(--eg-shadow); transition: transform .18s, box-shadow .18s, border-color .18s; }
.eg-page .eg-card:hover { transform: translateY(-4px); box-shadow: var(--eg-shadow-lg); border-color: #c9d4e2; color: var(--eg-ink); }
.eg-card .eg-emoji { width: 52px; height: 52px; border-radius: 14px; background: var(--eg-soft); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 14px; }
.eg-card h3 { font-size: 1.05rem; } .eg-card h3 small { display: block; font-size: .8rem; font-weight: 600; color: var(--eg-muted); margin-top: 2px; }
.eg-card p { margin: 6px 0 16px; color: var(--eg-muted); font-size: .92rem; line-height: 1.5; flex: 1; }
.eg-card .eg-tag { font-size: .85rem; font-weight: 700; color: var(--eg-accent); margin-top: auto; }
.eg-hub-badge { position: absolute; top: 16px; right: 16px; font-size: .68rem; font-weight: 700; background: #e6ecf3; color: #7a5200; border-radius: 99px; padding: 3px 9px; }
.eg-hub-badge.done { background: #e3f1ea; color: var(--eg-ok); }

/* steps */
.eg-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.eg-page .eg-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.eg-page .eg-steps li { counter-increment: s; background: #fff; border: 1px solid var(--eg-line); border-radius: 16px; padding: 16px 18px 16px 62px; position: relative; box-shadow: var(--eg-shadow); margin: 0; list-style: none; }
.eg-page .eg-steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 32px; height: 32px; border-radius: 10px; background: var(--eg-ink); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: .9rem; }

/* level table as cards */
.eg-table-wrap { border: 1px solid var(--eg-line); border-radius: 20px; overflow: hidden; box-shadow: var(--eg-shadow); background: #fff; }
.eg-page .eg-table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 0; }
.eg-page .eg-table th, .eg-page .eg-table td { border-bottom: 1px solid var(--eg-line); padding: 16px 18px; text-align: left; vertical-align: top; }
.eg-page .eg-table tr:last-child td { border-bottom: 0; }
.eg-page .eg-table th { background: var(--eg-soft); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--eg-muted); font-weight: 800; }
.eg-lvl-pill { display: inline-block; white-space: nowrap; background: var(--eg-ink); color: #fff; border-radius: 8px; padding: 2px 9px; font-weight: 800; font-size: .8rem; }
.eg-page .eg-table small { display: block; color: var(--eg-muted); margin-top: 4px; font-weight: 600; }

/* benefit boxes */
.eg-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.eg-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.eg-box { background: #fff; border: 1px solid var(--eg-line); border-radius: 20px; padding: 24px; box-shadow: var(--eg-shadow); height: 100%; }
.eg-box .eg-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--eg-tint); color: var(--eg-brand); display: flex; align-items: center; justify-content: center; font-weight: 800; margin-bottom: 14px; }
.eg-box p { color: var(--eg-muted); margin: 0; }
.eg-tips { margin-top: 28px; background: var(--eg-ink); color: #fff; border-radius: 24px; padding: 28px; }
.eg-tips h3 { color: #fff !important; margin-bottom: 14px; }
.eg-page .eg-tips ul { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.eg-page .eg-tips li { position: relative; padding-left: 28px; color: #dbe3ec; margin: 0; list-style: none; }
.eg-page .eg-tips li::before { content: '\2713'; position: absolute; left: 0; top: 0; color: var(--eg-gold); font-weight: 800; }

/* FAQ accordion */
.eg-faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; align-items: start; }
.eg-faq-side { position: sticky; top: 100px; } .eg-faq-side p { color: var(--eg-muted); }
.eg-faq-list { display: grid; gap: 12px; }
.eg-page.eg-faq details { background: #fff; border: 1px solid var(--eg-line); border-radius: 16px; box-shadow: var(--eg-shadow); transition: border-color .15s, box-shadow .15s; padding: 0; margin: 0; }
.eg-page.eg-faq details[open] { border-color: #c9d4e2; box-shadow: var(--eg-shadow-lg); }
.eg-page.eg-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; font-weight: 700; font-size: 1rem; color: var(--eg-ink); }
.eg-page.eg-faq summary::-webkit-details-marker { display: none; }
.eg-page.eg-faq summary::marker { content: ''; }
.eg-page.eg-faq summary::after { content: '+'; flex: 0 0 30px; height: 30px; border-radius: 10px; background: var(--eg-soft); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 700; color: var(--eg-ink); transition: transform .2s, background .2s, color .2s; }
.eg-page.eg-faq details[open] summary::after { content: '\2212'; background: var(--eg-red); color: #fff; }
.eg-page.eg-faq details p { padding: 0 20px 18px; margin: 0; color: var(--eg-ink-2); animation: egfade .25s ease; }
@keyframes egfade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* CTA */
.eg-cta { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--eg-ink) 0%, #2c4666 100%); color: #fff; border-radius: 32px; padding: 56px 28px; text-align: center; }
.eg-cta::before { content: ''; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(61,90,128,.55), rgba(61,90,128,0) 70%); top: -160px; right: -120px; }
.eg-cta > * { position: relative; }
.eg-cta h2 { color: #fff !important; }
.eg-cta p { color: #c9d4e2; max-width: 620px; margin: 0 auto 24px; font-size: 1.05rem; }
.eg-more-link { text-align: center; margin-top: 24px; font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .eg-cards.cols-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .eg-split, .eg-faq-grid { grid-template-columns: 1fr; gap: 28px; } .eg-faq-side { position: static; }
  .eg-grid3, .eg-cards.cols-3 { grid-template-columns: 1fr; }
  .eg-page .eg-tips ul { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .eg-page.eg-sec { margin-top: 48px; margin-bottom: 48px; }
  .eg-hero-wrap { padding: 44px 18px 40px; border-radius: 24px; }
  .eg-cards.cols-5, .eg-grid2 { grid-template-columns: 1fr; }
  .eg-app { padding: 14px; border-radius: 18px; }
  .eg-lvl b { font-size: .72rem; }
  .eg-app .ws-row { grid-template-columns: repeat(5, 48px); } .eg-app .ws-cell { width: 48px; height: 48px; font-size: 1.4rem; }
  .eg-app .ws-key { height: 46px; font-size: .9rem; }
  .eg-app .wsu-wrap, .eg-app .cw-wrap { grid-template-columns: 1fr; }
  .eg-app .wsu-list { columns: 2; }
  .eg-app .mm-card { height: 78px; } .eg-app .mm-front b { font-size: .8rem; }
  .eg-app .oo-grid, .eg-app .id-opts { grid-template-columns: 1fr; }
  .eg-app .ak-word { font-size: 2rem; }
}

/* brand tweaks */
.eg-cta .eg-eyebrow { color: var(--eg-gold); }
.eg-cta .eg-btn.eg-primary { background: #fff; border-color: #fff; color: var(--eg-brand); }
.eg-cta .eg-btn.eg-primary:hover { background: var(--eg-tint); border-color: var(--eg-tint); color: var(--eg-brand); }
.eg-app .ak-bar { background: linear-gradient(90deg, var(--eg-brand), var(--eg-accent)); }
.eg-hub-badge { background: #fdf3d7; color: #7a5200; }
