/* "Learn to play" lesson pages (LEARN0 mock-up, 17 Nov 2026; docs/smm/learn-pages-proposal.md).
   Plain pages outside the game app. Colours, fonts and the bar/footer follow DESIGN.md and src/styles/legal.css
   (the approved public pages); cards are deck v23 from /cards/ivory-v23/. Dark only. */
@font-face { font-family: 'BlotOne Serif'; src: url('/fonts/noto-serif-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Noto Sans Armenian'; src: url('/fonts/noto-sans-armenian.woff2') format('woff2'); font-weight: 400 800; font-display: swap;
  unicode-range: U+0308, U+0530-058F, U+2010, U+2024, U+25CC, U+FB13-FB17; }
@font-face { font-family: 'Noto Sans Armenian'; src: url('/fonts/noto-sans-latin.woff2') format('woff2'); font-weight: 400 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Noto Serif Armenian'; src: url('/fonts/noto-serif-armenian.woff2') format('woff2'); font-weight: 600 700; font-display: swap;
  unicode-range: U+0308, U+0530-058F, U+2010, U+2024, U+25CC, U+FB13-FB17; }
@font-face { font-family: 'Noto Serif Armenian'; src: url('/fonts/noto-serif-latin.woff2') format('woff2'); font-weight: 600 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Mono'; src: url('/fonts/dm-mono-400-latin.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'DM Mono'; src: url('/fonts/dm-mono-500-latin.woff2') format('woff2'); font-weight: 500 900; font-display: swap; }

:root {
  --bg: #08090a; --ivory: #ede9e0; --text: #c9c7bf; --muted: #a6a7a1; --dim: #7d7b72;
  --champagne: #c9a968; --action: #e8c77a; --icon: #c9b68f;
  --hair: rgba(201, 169, 104, .22); --hair-soft: rgba(201, 169, 104, .12);
  --glass: rgba(255, 255, 255, .035); --glass-hover: rgba(255, 255, 255, .055);
  --ok: #8fb59a; --bad: #d08a83;
  --font-ui: 'Noto Sans Armenian', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Noto Serif Armenian', Georgia, serif;
  --font-numeric: 'DM Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ivory); font-family: var(--font-ui); -webkit-font-smoothing: antialiased; }
a { color: var(--action); text-decoration: underline; text-decoration-color: rgba(232, 199, 122, .35); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* Bar: the public pages' bar (legal.css) with the progress diamonds under it. */
.learn-column { max-width: 760px; min-height: 100vh; margin: 0 auto; display: flex; flex-direction: column; }
.learn-top { position: sticky; top: 0; z-index: 5; background: rgba(8, 9, 10, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--hair-soft); padding-top: env(safe-area-inset-top); }
.learn-bar { display: flex; align-items: center; gap: 10px; height: 60px; padding: 0 14px; }
.learn-wordmark { display: inline-flex; margin-right: auto; opacity: .9; color: inherit; text-decoration: none; }
.lobby-brand-wordmark { display: inline-flex; align-items: center; color: #ede8dc; font-family: 'BlotOne Serif', Georgia, serif; font-size: 24px; font-weight: 450; line-height: 1; opacity: .98; text-rendering: geometricPrecision; }
.lobby-brand-lockup { display: inline-flex; align-items: center; flex: 0 0 auto; font-size: .7em; letter-spacing: -.035em; white-space: nowrap; }
.lobby-brand-o { display: block; flex: 0 0 auto; width: 1.32em; height: 1.306em; margin: .025em .005em 0 .055em; object-fit: contain; }
.learn-languages { display: flex; flex: 0 0 auto; border: 1px solid var(--hair); border-radius: 18px; overflow: hidden; }
.learn-languages a, .learn-languages span { display: inline-grid; place-items: center; min-width: 42px; height: 32px; padding: 0 8px; color: var(--muted); font: 400 12px/1 var(--font-ui); text-decoration: none; }
.learn-languages .is-on { color: var(--action); background: rgba(201, 169, 104, .1); }
.learn-languages .is-soon { color: var(--dim); cursor: default; }
.learn-progress { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 34px; padding: 0 16px 2px; }
.learn-crumb { margin: 0; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.learn-diamonds { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.learn-diamonds li { width: 9px; height: 9px; transform: rotate(45deg); border: 1px solid rgba(201, 169, 104, .45); }
.learn-diamonds li.is-done { background: var(--champagne); border-color: var(--champagne); }
.learn-diamonds li.is-current { border-color: var(--action); box-shadow: 0 0 0 2px rgba(232, 199, 122, .18); }

/* Text */
.learn-doc { flex: 1; padding: 22px 18px 8px; }
.learn-kicker { margin: 0; color: var(--icon); font-size: 12px; letter-spacing: .04em; }
.learn-doc h1 { margin: 6px 0 12px; font: 600 26px/1.3 var(--font-display); color: var(--ivory); }
.learn-promise { margin: 0 0 14px; padding-left: 12px; border-left: 2px solid var(--champagne); color: var(--ivory); font-size: 15px; line-height: 1.65; }
.learn-doc h2 { margin: 30px 0 8px; padding-top: 18px; border-top: 1px solid var(--hair-soft); font: 600 18px/1.45 var(--font-display); color: #efe9dc; }
.learn-doc p, .learn-doc li { color: var(--text); font-size: 15px; line-height: 1.72; }
.learn-doc p { margin: 8px 0; }
.learn-doc strong { color: var(--ivory); font-weight: 600; }
.learn-doc .n { color: var(--ivory); font-variant-numeric: tabular-nums; }
.suit-r { color: #d0706b; }
.learn-order { margin: 10px 0 4px; color: var(--muted); font-size: 13.5px; }
.learn-order { line-height: 1.8; }
.learn-order b { color: var(--ivory); font-weight: 600; white-space: nowrap; word-spacing: .08em; }
.learn-order b em { font-style: normal; color: var(--action); }

/* Card rows on a quiet glass "table" */
.learn-table { margin: 14px 0; padding: 16px 12px 14px; border: 1px solid var(--hair); border-radius: 12px; background: var(--glass); }
.learn-table-title { margin: 0 0 12px; color: var(--muted); font-size: 12.5px; text-align: center; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; justify-items: center; }
.cards.is-eight { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 14px; }
.card { position: relative; display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 96px; margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; }
.card img { display: block; width: 100%; height: auto; aspect-ratio: 240 / 334; border-radius: 5% / 3.6%; box-shadow: 0 6px 14px rgba(0, 0, 0, .42); background: #f6f3eb; }
.card-note { margin-top: 6px; color: var(--muted); font: 500 12px/1.3 var(--font-numeric); text-align: center; }
.card-note.is-strong { color: var(--action); }
.card-step { margin-bottom: 14px; color: var(--dim); font-size: 11.5px; line-height: 1.2; text-align: center; }

/* The trick that is won: lifted like a declaration card, champagne edge (no glow animation). */
.card.is-winner img { transform: translateY(-8px); box-shadow: 0 0 0 2px var(--champagne), 0 12px 20px rgba(0, 0, 0, .5); }
.learn-caption { margin: 12px 0 0; color: var(--ivory); font-size: 13.5px; text-align: center; }

/* Points table */
.learn-points { margin: 12px 0; border: 1px solid var(--hair); border-radius: 10px; overflow-x: auto; }
.learn-points table { width: 100%; border-collapse: collapse; font: 500 13px/1 var(--font-numeric); font-variant-numeric: tabular-nums; }
.learn-points th, .learn-points td { padding: 10px 6px; text-align: center; border-bottom: 1px solid var(--hair-soft); }
.learn-points th:first-child, .learn-points td:first-child { text-align: left; padding-left: 10px; font: 400 12px/1.3 var(--font-ui); color: var(--muted); white-space: nowrap; }
.learn-points thead th { color: var(--muted); background: var(--glass); border-bottom-color: var(--hair); }
.learn-points tbody tr:last-child td { border-bottom: 0; }
.learn-points .is-up { color: var(--action); }

/* Note box and Remember box */
.learn-note { margin: 14px 0; padding: 11px 13px; border: 1px solid var(--hair-soft); border-radius: 10px; color: var(--text); font-size: 14px; line-height: 1.7; }
.learn-remember { margin: 30px 0 0; padding: 16px 16px 12px; border: 1px solid var(--champagne); border-radius: 12px; background: rgba(201, 169, 104, .05); }
.learn-remember h2 { margin: 0 0 6px; padding: 0; border: 0; color: var(--action); }
.learn-remember ul { margin: 0; padding-left: 18px; }
.learn-remember li { margin: 6px 0; color: var(--ivory); }
.learn-remember li::marker { color: var(--champagne); }

/* Try it: quizzes */
.quiz { margin: 16px 0 22px; }
.quiz-q { margin: 0 0 4px; color: var(--ivory) !important; font-weight: 600; }
.quiz-hint { margin: 0 0 10px !important; color: var(--muted) !important; font-size: 13px !important; }
button.card { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button.card img { transition: transform 180ms ease-out; }
@media (hover: hover) { button.card:not(:disabled):hover img { transform: translateY(-4px); } }
button.card:disabled { cursor: default; }
button.card.is-dim::after, .card.is-dim::after { content: ''; position: absolute; top: 0; left: 0; right: 0; aspect-ratio: 240 / 334; border-radius: 5% / 3.6%; background: rgba(0, 0, 0, .28); pointer-events: none; }
button.card.is-wrong img { box-shadow: 0 0 0 2px rgba(208, 138, 131, .75), 0 6px 14px rgba(0, 0, 0, .42); }
button.card.is-right img { transform: translateY(-8px); box-shadow: 0 0 0 2px var(--champagne), 0 12px 20px rgba(0, 0, 0, .5); }
.quiz-feedback { min-height: 0; margin: 12px 0 0; font-size: 14px; line-height: 1.65; text-align: center; }
.quiz-feedback:empty { display: none; }
.quiz-feedback.is-right { color: var(--action); }
.quiz-feedback.is-wrong { color: var(--bad); }
/* D56: the game's kit buttons (src/styles/ui-kit.css): quiet «Նորից», primary «Խաղալ»; capitals, radius 11 px, 44 px. */
.quiz-again { display: block; min-height: 44px; margin: 10px auto 0; padding: 0 18px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 11px; background: rgba(255, 255, 255, .025); color: rgba(244, 241, 233, .8); font: 700 12px/1.2 var(--font-ui); letter-spacing: .07em; text-transform: uppercase; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.quiz-again:hover { color: #f4f1e9; background: var(--glass-hover); border-color: rgba(255, 255, 255, .25); }
.quiz-again:focus-visible, .learn-play-button:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; }
.quiz-again[hidden] { display: none; }

/* Order the trumps: eight slots, then the cards to tap */
.order-slots { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; margin: 0 0 14px; padding: 0; list-style: none; }
.order-slot { position: relative; aspect-ratio: 240 / 334; border: 1px dashed rgba(201, 169, 104, .35); border-radius: 5% / 3.6%; }
.order-slot::before { content: attr(data-n); position: absolute; inset: 0; display: grid; place-items: center; color: var(--dim); font: 400 11px/1 var(--font-numeric); }
.order-slot img { position: relative; display: block; width: 100%; height: 100%; border-radius: 5% / 3.6%; box-shadow: 0 3px 8px rgba(0, 0, 0, .4); }
.order-ex .cards button.card.is-placed { visibility: hidden; }
.order-slot.is-filled { border-color: transparent; }
.order-slot.is-filled::before { content: none; }
.order-ex.is-done .cards { display: none; }

/* Questions */
.learn-faq details { border-bottom: 1px solid var(--hair-soft); }
.learn-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 8px 2px; color: var(--ivory); font-size: 15px; font-weight: 500; cursor: pointer; list-style: none; }
.learn-faq summary::-webkit-details-marker { display: none; }
.learn-faq summary::after { content: '+'; flex: 0 0 auto; color: var(--icon); font: 400 20px/1 var(--font-numeric); }
.learn-faq details[open] summary::after { content: '−'; }
.learn-faq details p { margin: 0 0 12px; }

/* Play now and the lesson links */
.learn-play { margin: 34px 0 6px; padding: 22px 16px; border-top: 1px solid var(--hair); text-align: center; }
.learn-play-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border: 1px solid rgba(232, 199, 122, .6); border-radius: 11px; background: rgba(201, 169, 104, .16); color: #f4dfae; font: 700 13px/1.2 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.learn-play-button:hover { background: rgba(201, 169, 104, .23); border-color: var(--action); }
.learn-play-button:active { background: linear-gradient(180deg, rgba(193, 160, 95, .055), rgba(193, 160, 95, .02)), rgba(5, 5, 4, .78); }
.learn-play-button svg { width: 17px; height: 17px; }
.learn-play-note { margin: 10px 0 0 !important; color: var(--muted) !important; font-size: 12.5px !important; }
.learn-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 8px 0 0; }
.learn-pager > * { display: block; min-height: 44px; padding: 10px 12px; border: 1px solid var(--hair-soft); border-radius: 10px; color: var(--ivory); font-size: 13px; line-height: 1.45; text-decoration: none; }
.learn-pager small { display: block; color: var(--dim); font-size: 11.5px; }
.learn-pager .is-next { text-align: right; }
.learn-pager .is-soon { color: var(--muted); }
.learn-pager .is-soon small::after { content: ' · շուտով'; }

/* Footer: the public pages' footer (legal.css) */
.learn-footer { margin-top: 26px; padding: 22px 18px calc(34px + env(safe-area-inset-bottom)); border-top: 1px solid var(--hair); background: #070809; }
.learn-footer nav { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.learn-footer nav a { color: var(--muted); font-size: 12px; text-decoration: none; }
.learn-footer p { margin: 16px 0 0; color: var(--dim); font-size: 11px; line-height: 1.7; }
.learn-footer p a { color: var(--action); }

@media (min-width: 700px) {
  .learn-doc { padding: 30px 32px 8px; }
  .learn-doc h1 { font-size: 30px; }
  .learn-progress { padding: 0 20px 2px; }
  .learn-table { padding: 20px 18px 16px; }
  .cards.is-eight { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
  .cards.is-four { grid-template-columns: repeat(4, 96px); justify-content: center; gap: 16px; }
  .order-slots { gap: 8px; }
  .learn-footer { padding-left: 32px; padding-right: 32px; }
  .learn-footer nav { grid-template-columns: repeat(3, 1fr); }
}
/* SEO1 (25 Nov 2026): the search pages made by scripts/seo-pages.ts («Բլոտ օնլայն», the rules, the Russian and English
   pages) share this file with the lessons. Same colours and fonts; no SVG filter anywhere. */
.learn-trail { display: flex; min-width: 0; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; }
.learn-trail li { overflow: hidden; text-overflow: ellipsis; }
.learn-trail li + li::before { content: '›'; margin: 0 7px; color: var(--dim); }
.learn-trail a { color: var(--muted); text-decoration: none; }
.learn-trail a:hover { color: var(--action); }
.learn-bar-play { flex: 0 0 auto; color: var(--action); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-decoration: none; }
.learn-doc h3 { margin: 0 0 4px; font: 600 15.5px/1.45 var(--font-display); color: #efe9dc; }
.learn-doc ul, .learn-doc ol { margin: 8px 0; padding-left: 20px; }
.learn-doc li { margin: 6px 0; }
.learn-doc li::marker { color: var(--champagne); }
.learn-doc .cards, .learn-doc .order-slots { padding-left: 0; }
.learn-doc .cards li, .learn-doc .order-slots li { margin: 0; }
.cards.is-three { grid-template-columns: repeat(3, minmax(0, 96px)); justify-content: center; }
.cards.is-two { grid-template-columns: repeat(2, minmax(0, 96px)); justify-content: center; }
.cards.is-five { grid-template-columns: repeat(5, minmax(0, 96px)); justify-content: center; gap: 6px; }

.learn-hero { padding: 8px 0 0; text-align: center; }
.learn-hero h1 { margin: 8px 0 12px; font-size: 28px; line-height: 1.28; }
.learn-lead { max-width: 560px; margin: 0 auto 6px !important; color: var(--ivory) !important; font-size: 16px !important; line-height: 1.7 !important; }
.learn-hero .cards { display: flex; justify-content: center; gap: 0; margin: 22px 0 0; }
.learn-hero .card { width: 21%; max-width: 104px; margin: 0 -2.5%; }
.learn-hero .card:nth-child(1) { transform: rotate(-12deg) translateY(10px); }
.learn-hero .card:nth-child(2) { transform: rotate(-6deg) translateY(2px); }
.learn-hero .card:nth-child(4) { transform: rotate(6deg) translateY(2px); }
.learn-hero .card:nth-child(5) { transform: rotate(12deg) translateY(10px); }
.learn-hero .learn-play { margin-top: 26px; border-top: 0; padding-top: 0; }

.learn-features { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 14px 0; }
.learn-features section { padding: 14px 14px 10px; border: 1px solid var(--hair-soft); border-radius: 12px; background: var(--glass); }
.learn-features p { margin: 0 0 4px; font-size: 14px; line-height: 1.65; }

.learn-steps { counter-reset: step; padding-left: 0 !important; list-style: none; }
.learn-steps li { position: relative; margin: 10px 0 !important; padding-left: 38px; counter-increment: step; }
.learn-steps li::before { content: counter(step); position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--hair); border-radius: 50%; color: var(--action); font: 500 12.5px/1 var(--font-numeric); }

.learn-lessons { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 12px 0 6px; }
.learn-lessons a { display: block; padding: 13px 14px; border: 1px solid var(--hair); border-radius: 12px; background: var(--glass); text-decoration: none; }
.learn-lessons a:hover { background: var(--glass-hover); border-color: rgba(232, 199, 122, .5); }
.learn-lessons strong { display: block; color: var(--action); font: 600 15.5px/1.45 var(--font-display); }
.learn-lessons span { display: block; margin-top: 2px; color: var(--text); font-size: 13.5px; line-height: 1.6; }

.learn-glossary { margin: 10px 0; }
.learn-glossary dt { margin-top: 10px; color: var(--ivory); font-weight: 600; font-size: 15px; }
.learn-glossary dd { margin: 2px 0 0; color: var(--text); font-size: 14.5px; line-height: 1.65; }

.learn-example { margin: 12px 0; padding: 12px 14px 8px; border: 1px solid var(--hair); border-left: 2px solid var(--champagne); border-radius: 10px; background: var(--glass); }
.learn-example-title { margin: 0 0 4px !important; color: var(--ivory) !important; font-weight: 600; }
.learn-example ul { margin: 6px 0; }
.learn-points { overflow-x: auto; }
.learn-points td:first-child, .learn-points th:first-child { font-family: var(--font-ui); }

.learn-footer-pages { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--hair-soft); }
.learn-footer .learn-footer-pages a { color: var(--ivory); font-size: 12.5px; }
.learn-footer nav a:hover { color: var(--action); }
.learn-footer nav a[aria-current] { color: var(--action); }

@media (min-width: 700px) {
  .learn-hero { padding-top: 18px; }
  .learn-hero h1 { font-size: 36px; }
  .learn-lead { font-size: 17px !important; }
  .learn-features { grid-template-columns: 1fr 1fr; gap: 12px; }
  .learn-lessons { grid-template-columns: repeat(3, 1fr); }
  .cards.is-three { grid-template-columns: repeat(3, 96px); gap: 16px; }
  .cards.is-two { grid-template-columns: repeat(2, 96px); gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  button.card img { transition: none; }
}

/* <path>embed/: the lesson inside the game's info page: no bar, no footer, no own height. */
html.is-embed .learn-top, html.is-embed .learn-footer { display: none; }
/* The frame never scrolls or bounces by itself (iPhone: its own scroller took the first swipe after a change of direction, then handed it to the page): the page around it scrolls. */
html.is-embed, html.is-embed body { background: transparent; overflow: hidden; overscroll-behavior: none; touch-action: pan-y; }
html.is-embed .learn-column { min-height: 0; max-width: none; }
html.is-embed .learn-doc { padding: 4px 0 8px; }
