/* ============================================================
   Pikaro — News Hub (/news, /en/news and every article)
   The base below is the Doppelkopf content cluster's stylesheet, copied
   verbatim so the news pages look like the rest of the site; the
   news-specific rules follow at the end. Loaded alongside /fonts/fonts.css.
   Broad design language: felt-green ground, cream text, amber accent,
   Playfair Display headings, Inter body — matching the main site.
   ============================================================ */

:root {
    --felt: #14432a;
    --felt-dark: #0d2818;
    --felt-deep: #081a10;
    --felt-light: #1a5a38;
    --accent: #d97706;
    --accent-bright: #fb923c;
    --accent-glow: rgba(217, 119, 6, 0.35);
    --accent-dim: #b45309;
    --cream: #f0e6d0;
    --cream-light: #faf4e8;
    --cream-dim: #bfb49a;
    --text: #ddd8cc;
    --text-dim: #9a9486;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    /* suit colors on dark felt */
    --s-club: #e5e7eb;
    --s-spade: #e5e7eb;   /* match clubs (black suits) */
    --s-heart: #f87171;
    --s-diamond: #f87171; /* match hearts (red suits) */
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--felt-deep);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

a:hover {
    color: var(--cream-light);
}

.s-c { color: var(--s-club); }
.s-s { color: var(--s-spade); }
.s-h { color: var(--s-heart); }
.s-d { color: var(--s-diamond); }

/* ============================================
   LANGUAGE TOGGLE
   ============================================ */
.lang-toggle {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 50;
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    background: rgba(8, 26, 16, 0.55);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(240, 230, 208, 0.12);
    border-radius: 999px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.lang-btn {
    appearance: none;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--cream-dim);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    transition: background 0.2s, color 0.2s;
}

.lang-btn:hover { color: var(--cream); }

.lang-btn.active {
    background: var(--accent);
    color: var(--cream-light);
}

/* ============================================
   PAGE HEADER + BREADCRUMB
   ============================================ */
.page-header {
    padding: 2.5rem 1.5rem 1rem;
    border-bottom: 1px solid rgba(240, 230, 208, 0.08);
    background: var(--felt-dark);
}

.page-header-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
}

.crumbs {
    font-size: 0.85rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.crumbs a {
    color: var(--cream-dim);
    text-decoration: none;
    transition: color 0.2s;
}

.crumbs a:hover { color: var(--cream-light); }

.crumbs .sep { opacity: 0.5; }

.page-logo {
    height: 34px;
    width: auto;
    mix-blend-mode: screen;
    filter: brightness(1.1) contrast(1.15);
}

/* ============================================
   PAGE SHELL
   ============================================ */
.page {
    flex: 1;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 2.75rem 1.5rem 4rem;
}

.page-narrow { max-width: 780px; }

/* ============================================
   HERO (varies per page via modifier)
   ============================================ */
.hero {
    position: relative;
    text-align: center;
    padding: 1rem 0 2.25rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.85rem;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 5.5vw, 3.1rem);
    font-weight: 800;
    color: var(--cream-light);
    line-height: 1.12;
    margin-bottom: 0.7rem;
}

.hero .sub {
    color: var(--cream-dim);
    max-width: 620px;
    margin: 0 auto;
    font-size: 1rem;
}

.pill {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #f6c945, #e88b1a);
    color: #1a1206;
    vertical-align: middle;
}

/* floating suit glyphs — subtle animated backdrop */
.suits-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0.14;
    pointer-events: none;
    z-index: 0;
}

.suits-bg span {
    position: absolute;
    font-size: clamp(2rem, 5vw, 4rem);
    animation: floatSuit 22s infinite linear backwards;
}

@keyframes floatSuit {
    0% { transform: translateY(120%) rotate(0); opacity: 0; }
    12% { opacity: 1; }
    88% { opacity: 1; }
    100% { transform: translateY(-140%) rotate(360deg); opacity: 0; }
}

.hero > *:not(.suits-bg) { position: relative; z-index: 1; }

/* ============================================
   HUB — badge cards
   ============================================ */
.hub-note {
    background: rgba(240, 230, 208, 0.04);
    border: 1px solid rgba(240, 230, 208, 0.1);
    border-radius: 14px;
    padding: 1.1rem 1.35rem;
    margin-bottom: 2.25rem;
    font-size: 0.92rem;
    color: var(--text);
}

.hub-note strong { color: var(--cream-light); }

.hub-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
}

.doko-card {
    position: relative;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(240, 230, 208, 0.14);
    border-radius: 16px;
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(217, 119, 6, 0.09) 0%, transparent 55%),
        linear-gradient(165deg, rgba(26, 90, 56, 0.35) 0%, rgba(8, 26, 16, 0.55) 100%);
    padding: 1.6rem 1.4rem 1.4rem;
    overflow: hidden;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s, box-shadow 0.28s;
}

.doko-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 40%, rgba(240, 230, 208, 0.06) 50%, transparent 60%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.doko-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
    color: inherit;
}

.doko-card:hover::after { transform: translateX(100%); }

.doko-card .icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(217, 119, 6, 0.14);
    border: 1px solid rgba(217, 119, 6, 0.3);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    line-height: 1;
}

.doko-card h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--cream-light);
    margin-bottom: 0.15rem;
}

.doko-card .kicker {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.7rem;
}

.doko-card p {
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 1.1rem;
    flex: 1;
}

.doko-card .tag {
    align-self: flex-start;
    font-size: 0.75rem;
    color: var(--cream-dim);
    background: rgba(240, 230, 208, 0.06);
    border: 1px solid rgba(240, 230, 208, 0.12);
    border-radius: 999px;
    padding: 0.22rem 0.7rem;
}

.doko-card .go {
    margin-top: 0.9rem;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: gap 0.2s;
}

.doko-card:hover .go { gap: 0.6rem; }

/* ============================================
   CONTENT TYPOGRAPHY (rules + app)
   ============================================ */
.content h2 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--cream-light);
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    scroll-margin-top: 5rem;
}

.content h2:first-child { margin-top: 0; }

.content h3 {
    font-family: var(--font-body);
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--cream);
    margin-top: 1.5rem;
    margin-bottom: 0.4rem;
}

.content p {
    font-size: 0.95rem;
    color: var(--text);
    margin-bottom: 1rem;
}

.content ul {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.content li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--text);
}

.content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

.content strong { color: var(--cream-light); font-weight: 600; }

.lead { font-size: 1.05rem !important; color: var(--cream-dim) !important; }

.note {
    font-size: 0.85rem;
    color: var(--text-dim);
    border-left: 2px solid rgba(217, 119, 6, 0.45);
    padding: 0.5rem 0 0.5rem 0.9rem;
    margin: 0 0 1.5rem;
}

/* ============================================
   TABLE OF CONTENTS (rules)
   ============================================ */
.toc {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 2.25rem;
}

.toc a {
    font-size: 0.82rem;
    color: var(--cream-dim);
    text-decoration: none;
    background: rgba(240, 230, 208, 0.05);
    border: 1px solid rgba(240, 230, 208, 0.12);
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.toc a:hover {
    color: var(--cream-light);
    border-color: var(--accent);
    background: rgba(217, 119, 6, 0.1);
}

/* ============================================
   RULES TABLES
   ============================================ */
.table-scroll { overflow-x: auto; }

.rules-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.5rem 0 1.25rem;
    font-size: 0.9rem;
}

.rules-table th,
.rules-table td {
    text-align: left;
    padding: 0.42rem 0.7rem;
    border-bottom: 1px solid rgba(240, 230, 208, 0.08);
    vertical-align: top;
}

.rules-table th {
    color: var(--cream-dim);
    font-weight: 600;
    border-bottom-color: rgba(240, 230, 208, 0.18);
}

.rules-table td:first-child { color: var(--cream-light); white-space: nowrap; }

/* ============================================
   FEATURE CARDS (app page)
   ============================================ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1.5rem;
}

.feature {
    border: 1px solid rgba(240, 230, 208, 0.1);
    border-radius: 14px;
    background: rgba(240, 230, 208, 0.03);
    padding: 1.4rem 1.5rem;
    transition: transform 0.25s, border-color 0.25s;
}

.feature:hover { transform: translateY(-4px); border-color: rgba(217, 119, 6, 0.4); }

.feature .fi {
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
    display: block;
}

.feature h3 {
    font-family: var(--font-display);
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--cream-light);
    margin: 0 0 0.2rem;
}

.feature-tagline {
    color: var(--accent);
    font-size: 0.88rem;
    margin-bottom: 0.85rem !important;
    font-weight: 500;
}

.feature ul { margin: 0; }

/* app hero with mascot */
.app-hero {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    align-items: center;
    padding: 1rem 0 2rem;
    margin-bottom: 1rem;
}

.app-hero .mascot {
    width: clamp(90px, 18vw, 150px);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.45));
}

.app-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 2.9rem);
    font-weight: 800;
    color: var(--cream-light);
    line-height: 1.12;
    margin-bottom: 0.5rem;
}

.app-hero .sub { color: var(--cream-dim); font-size: 1rem; max-width: 560px; }

/* ============================================
   GLOSSARY
   ============================================ */
.glossary-tools {
    position: sticky;
    top: 0;
    z-index: 10;
    background: linear-gradient(180deg, var(--felt-deep) 70%, transparent);
    padding: 1rem 0 0.85rem;
    margin-bottom: 0.5rem;
}

.glossary-search input {
    width: 100%;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--cream-light);
    background: rgba(240, 230, 208, 0.06);
    border: 1px solid rgba(240, 230, 208, 0.15);
    border-radius: 10px;
    padding: 0.7rem 1rem;
    outline: none;
    transition: border-color 0.2s;
    margin-bottom: 0.75rem;
}

.glossary-search input:focus { border-color: var(--accent); }
.glossary-search input::placeholder { color: var(--text-dim); }

.az-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.az-btn {
    appearance: none;
    background: transparent;
    border: 1px solid rgba(240, 230, 208, 0.12);
    border-radius: 7px;
    color: var(--cream-dim);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    width: 26px;
    height: 26px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.az-btn:hover:not(:disabled) { color: var(--cream-light); border-color: var(--accent); }
.az-btn.active { background: var(--accent); color: var(--cream-light); border-color: var(--accent); }
.az-btn:disabled { opacity: 0.28; cursor: default; }

.gentry {
    border-bottom: 1px solid rgba(240, 230, 208, 0.08);
    padding: 0.9rem 0;
}

.gentry h4 {
    font-family: var(--font-body);
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.2rem;
}

.gentry p { font-size: 0.92rem; color: var(--text); margin: 0; }

.glossary-empty {
    color: var(--text-dim);
    font-size: 0.95rem;
    padding: 1.5rem 0;
    text-align: center;
}

/* ============================================
   CTA + STORE BADGES
   ============================================ */
.play-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin: 2.75rem 0 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(240, 230, 208, 0.08);
}

.play-cta.tight { border-top: none; padding-top: 0; margin-top: 1.5rem; }

.btn-play {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent);
    color: var(--cream-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 2.9rem;
    border-radius: 11px;
    box-shadow: 0 4px 16px var(--accent-glow);
    transition: transform 0.2s, background 0.2s;
}

.btn-play:hover { transform: translateY(-2px); background: var(--accent-dim); color: var(--cream-light); }
.btn-play svg { width: 18px; height: 18px; }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid rgba(240, 230, 208, 0.2);
    color: var(--cream);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.72rem 1.3rem;
    border-radius: 11px;
    transition: border-color 0.2s, color 0.2s;
}

.btn-ghost:hover { border-color: var(--accent); color: var(--cream-light); }

.store-badges {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.store-badges .cap {
    width: 100%;
    text-align: center;
    font-size: 0.85rem;
    color: var(--cream-dim);
    margin-bottom: 0.25rem;
}

.store-badges img { display: block; width: auto; }
.store-badges .apple img { height: 52px; }
.store-badges .google img { height: 70px; }

/* related links row (cross-linking the cluster) */
.related {
    margin-top: 2.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(240, 230, 208, 0.08);
}

.related h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--cream);
    margin-bottom: 0.85rem;
}

.related-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.related-row a {
    font-size: 0.85rem;
    color: var(--cream-dim);
    text-decoration: none;
    background: rgba(240, 230, 208, 0.05);
    border: 1px solid rgba(240, 230, 208, 0.12);
    border-radius: 10px;
    padding: 0.5rem 0.9rem;
    transition: border-color 0.2s, color 0.2s;
}

.related-row a:hover { border-color: var(--accent); color: var(--cream-light); }

/* ============================================
   PAGE FOOTER
   ============================================ */
.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.4rem;
}
.footer-social a {
  display: inline-flex;
  color: var(--cream-dim);
  opacity: 0.7;
  transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}
.footer-social a:hover,
.footer-social a:focus-visible {
  color: var(--cream-light);
  opacity: 1;
  transform: translateY(-2px);
}
.footer-social svg { width: 20px; height: 20px; fill: currentColor; display: block; }

.page-footer {
    padding: 2.5rem 1.5rem;
    border-top: 1px solid rgba(240, 230, 208, 0.06);
    background: var(--felt-deep);
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-dim);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.footer-links-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.1rem;
}

.footer-links-row a {
    color: var(--cream-dim);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links-row a:hover { color: var(--cream-light); }

.footer-legal { max-width: 600px; opacity: 0.7; font-size: 0.7rem; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 760px) {
    .hub-cards { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
    .app-hero { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 0.75rem; }
    .app-hero .sub { margin: 0 auto; }
}

@media (max-width: 600px) {
    .page-header { padding-top: 4rem; }
    .page { padding: 2rem 1.25rem 3rem; }
}

    

/* ── Phone pass 2026-09-18 ───────────────────────────────────────────────
   This page had no phone styles at all: the desktop scale rendered
   unchanged on a 360px screen, so headings, logo, buttons and padding all
   took a far larger share of the viewport than they do on a desktop. This
   block scales the page down for phones — type ~12-20% smaller, the header
   logo and card icons smaller, padding and gaps tighter — so more of the
   page is visible and it reads as a phone layout rather than a shrunken
   desktop one. Desktop is untouched: everything here is phone-only.       */
@media (max-width: 600px) {
    .page-header { padding: 3.25rem 1rem 0.7rem; }
    .page-logo { height: 26px; }
    .crumbs { font-size: 0.72rem; gap: 0.3rem; }
    .lang-btn { font-size: 0.62rem; padding: 0.28rem 0.6rem; }
    .page { padding: 1.35rem 1rem 2.25rem; }

    .hero { padding: 0.5rem 0 1.5rem; }
    .hero h1, .app-hero h1 { font-size: clamp(1.45rem, 6.4vw, 1.8rem); line-height: 1.2; }
    .hero .sub, .app-hero .sub { font-size: 0.86rem; line-height: 1.55; }
    .eyebrow { font-size: 0.62rem; letter-spacing: 0.1em; }

    .content p, .content li { font-size: 0.86rem; line-height: 1.62; }
    .content h2 { font-size: 1.15rem; line-height: 1.3; }
    .content h3 { font-size: 0.95rem; }
    .lead { font-size: 0.9rem !important; line-height: 1.6; }
    .note { font-size: 0.78rem; line-height: 1.55; }
    .rules-table { font-size: 0.75rem; }

    .pill { font-size: 0.63rem; padding: 0.2rem 0.55rem; }
    .toc a { font-size: 0.72rem; padding: 0.28rem 0.6rem; }
    .az-btn { font-size: 0.66rem; width: 22px; height: 22px; }
    .btn-play, .btn-ghost { font-size: 0.82rem; padding: 0.55rem 1.1rem; }
    .btn-play { padding-left: 2rem; padding-right: 2rem; }
    .related-row a { font-size: 0.72rem; padding: 0.35rem 0.7rem; }
    .glossary-search input { font-size: 0.85rem; }

    .gentry h4 { font-size: 0.88rem; }
    .gentry p { font-size: 0.85rem; line-height: 1.6; }
    .doko-card { padding: 1.1rem 1rem; }
    .doko-card .icon { width: 36px; height: 36px; font-size: 1.1rem; }
    .doko-card h2 { font-size: 1.02rem; }
    .doko-card p { font-size: 0.83rem; line-height: 1.55; }
    .doko-card .go { font-size: 0.78rem; }
    .feature { padding: 1rem 1.1rem; }
    .feature .fi { font-size: 1.15rem; }
    .feature h3 { font-size: 0.95rem; }
    .feature-tagline { font-size: 0.8rem; line-height: 1.55; }
    .store-badges .cap { font-size: 0.78rem; }

    .footer-links-row a { font-size: 0.75rem; }
    .footer-legal { font-size: 0.64rem; line-height: 1.5; }
}

/* ============================================================
   NEWS HUB — everything below is news-specific
   ============================================================ */

/* Language switch on the news pages is a pair of LINKS: each language is
   its own page (own URL, own search entry), so switching navigates. */
a.lang-btn { text-decoration: none; display: inline-block; }

.page-wide { max-width: 1060px; }

/* ---------- topic filter ---------- */
.news-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 0 2.25rem;
}
.news-filter button {
    appearance: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--cream-dim);
    background: rgba(240, 230, 208, 0.05);
    border: 1px solid rgba(240, 230, 208, 0.14);
    border-radius: 999px;
    padding: 0.45rem 1.05rem;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.news-filter button:hover { color: var(--cream-light); border-color: var(--accent); }
.news-filter button[aria-pressed="true"] {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--cream-light);
}
/* cards and the lead story set their own display, which would otherwise
   override the hidden attribute the filter and "load more" rely on */
.news-lead[hidden], .news-card[hidden], .load-more[hidden] { display: none; }
.load-more-row { text-align: center; margin-top: 2rem; }
.load-more-row:has(.load-more[hidden]) { display: none; }
.load-more {
    appearance: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--cream-light);
    background: transparent;
    border: 1px solid var(--accent);
    border-radius: 999px;
    padding: 0.7rem 1.8rem;
    transition: background 0.2s, color 0.2s;
}
.load-more:hover { background: var(--accent); color: #faf4e8; }
.news-empty {
    text-align: center;
    color: var(--text-dim);
    padding: 2.5rem 0;
}

/* ---------- topic tag + meta line ---------- */
.topic-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.topic-tag {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-bright);
    background: rgba(217, 119, 6, 0.12);
    border: 1px solid rgba(217, 119, 6, 0.3);
    border-radius: 999px;
    padding: 0.18rem 0.6rem;
    text-decoration: none;
}
.news-meta {
    font-size: 0.8rem;
    color: var(--text-dim);
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.6rem;
    align-items: center;
}
.news-meta .dot { opacity: 0.5; }

/* ---------- cover art ----------
   Every article has a cover. Without a photo/screenshot it is drawn from
   the topic: felt ground + a fanned pair of the site's own card images
   (Doppelkopf: 10♥ + Q♣, Skat: J♣ + J♠) or the Pikaro fox (company/app). */
.cover {
    position: relative;
    aspect-ratio: 1200 / 630;
    border-radius: 14px;
    overflow: hidden;
    background:
        radial-gradient(60% 80% at 30% 30%, rgba(217, 119, 6, 0.18) 0%, transparent 60%),
        radial-gradient(50% 60% at 80% 80%, rgba(240, 230, 208, 0.06) 0%, transparent 60%),
        linear-gradient(160deg, var(--felt-light) 0%, var(--felt) 45%, var(--felt-deep) 100%);
    border: 1px solid rgba(240, 230, 208, 0.1);
}
.cover > img.photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* sized by the cover's HEIGHT, so the cards are never cut off */
.cover .fan {
    position: absolute;
    left: 50%;
    top: 50%;
    height: 82%;
    aspect-ratio: 2 / 3;
    transform: translate(-50%, -50%);
}
.cover .fan img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
}
.cover .fan img:first-child { transform: rotate(-11deg) translateX(-18%); }
.cover .fan img:last-child  { transform: rotate(9deg) translateX(18%); }
.cover .fox {
    position: absolute;
    left: 50%;
    bottom: -4%;
    height: 92%;
    width: auto;
    transform: translateX(-50%);
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45));
}
.cover .cover-suits {
    position: absolute;
    inset: 0;
    font-size: clamp(1.4rem, 4vw, 2.6rem);
    opacity: 0.12;
    color: var(--cream);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0.6rem 1rem;
    letter-spacing: 0.3em;
    white-space: nowrap;
}
/* small covers (grid cards): smaller glyphs so both pairs fit inside the picture */
.news-card .cover-suits { font-size: 1.3rem; letter-spacing: 0.15em; padding: 0.4rem 0.6rem; }

/* ---------- hub: lead story + grid ---------- */
.news-lead {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 1.75rem;
    align-items: center;
    text-decoration: none;
    color: inherit;
    padding: 1.1rem;
    margin-bottom: 1.75rem;
    border: 1px solid rgba(240, 230, 208, 0.14);
    border-radius: 18px;
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(217, 119, 6, 0.08) 0%, transparent 55%),
        linear-gradient(165deg, rgba(26, 90, 56, 0.35) 0%, rgba(8, 26, 16, 0.55) 100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s, box-shadow 0.28s;
}
.news-lead:hover, .news-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.4);
    color: inherit;
}
.news-lead h2, .news-lead h3 {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--cream-light);
    margin: 0.7rem 0 0.6rem;
}
.news-lead .body { display: flex; flex-direction: column; gap: 0.55rem; }
.news-lead p { color: var(--text); font-size: 0.95rem; margin-bottom: 0.9rem; }

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.news-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(240, 230, 208, 0.12);
    border-radius: 16px;
    background: linear-gradient(165deg, rgba(26, 90, 56, 0.3) 0%, rgba(8, 26, 16, 0.5) 100%);
    padding: 0.8rem 0.8rem 1.1rem;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s, box-shadow 0.28s;
}
.news-card .cover { border-radius: 10px; margin-bottom: 0.85rem; }
.news-card .body { padding: 0 0.35rem; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.news-card h3, .news-card h2 {
    font-family: var(--font-display);
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--cream-light);
}
.news-card p { font-size: 0.87rem; color: var(--text); flex: 1; }
.read-more {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.88rem;
    display: inline-flex;
    gap: 0.35rem;
    transition: gap 0.2s;
}
.news-lead:hover .read-more, .news-card:hover .read-more { gap: 0.6rem; }

/* ---------- article ---------- */
.article-head { margin-bottom: 1.75rem; }
.article-head h1 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4.6vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--cream-light);
    margin: 0.85rem 0 0.75rem;
}
.article-head .dek { font-size: 1.1rem; color: var(--cream-dim); margin-bottom: 1rem; }
.article-cover { margin: 0 0 2.25rem; }
.article-cover figcaption, .content figure figcaption {
    font-size: 0.78rem;
    color: var(--text-dim);
    margin-top: 0.5rem;
    text-align: center;
}
.content figure { margin: 1.75rem 0; }
.content figure img { border-radius: 12px; border: 1px solid rgba(240, 230, 208, 0.1); margin: 0 auto; }
.content ol { margin: 0 0 1rem 1.25rem; }
.content ol li { padding-left: 0.25rem; }
.content ol li::before { display: none; }
.content blockquote {
    margin: 1.5rem 0;
    padding: 0.9rem 1.2rem;
    border-left: 3px solid var(--accent);
    background: rgba(240, 230, 208, 0.04);
    border-radius: 0 10px 10px 0;
    color: var(--cream);
    font-style: italic;
}
/* "key facts" box near the top — doubles as the answer Google can quote */
/* Key facts as a spiral notebook page (owner, 2026-10-29): a wire coil
   through punched holes down the left edge, a red margin line, and a strip
   of tape holding the page at the top right. Distinct from every other box
   on the site on purpose. */
.key-facts {
    position: relative;
    border: 1px solid rgba(217, 119, 6, 0.35);
    background:
        linear-gradient(90deg, transparent 2.75rem, rgba(214, 69, 69, 0.55) 2.75rem, rgba(214, 69, 69, 0.55) calc(2.75rem + 1px), transparent calc(2.75rem + 1px), transparent calc(2.75rem + 4px), rgba(214, 69, 69, 0.35) calc(2.75rem + 4px), rgba(214, 69, 69, 0.35) calc(2.75rem + 5px), transparent calc(2.75rem + 5px)),
        rgba(217, 119, 6, 0.07);
    border-radius: 4px 14px 14px 4px;
    padding: 1.1rem 1.35rem 0.4rem 3.6rem;
    margin: 0 0 2rem 0.6rem;
}
.key-facts::before {
    content: "";
    position: absolute;
    left: -0.85rem;
    top: 0.8rem;
    bottom: 0.8rem;
    width: 2.6rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='26' viewBox='0 0 34 26'%3E%3Cdefs%3E%3ClinearGradient id='w' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23f4f6f8'/%3E%3Cstop offset='.5' stop-color='%23a3abb5'/%3E%3Cstop offset='1' stop-color='%235b636d'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='23' cy='15' r='4.2' fill='%23eef0ec' stroke='%23000' stroke-opacity='.4' stroke-width='1.2'/%3E%3Cpath d='M3 9 C 3 4, 22 5, 23 13.5' fill='none' stroke='%23000' stroke-opacity='.18' stroke-width='5' stroke-linecap='round' transform='translate(0.8 1.2)'/%3E%3Cpath d='M3 9 C 3 4, 22 5, 23 13.5' fill='none' stroke='url(%23w)' stroke-width='3.6' stroke-linecap='round'/%3E%3C/svg%3E") repeat-y 0 0 / 42px 32px;
    pointer-events: none;
}
.key-facts::after {
    content: "";
    position: absolute;
    top: -0.6rem;
    right: 1.4rem;
    width: 5.2rem;
    height: 1.35rem;
    background: rgba(250, 214, 120, 0.62);
    border-left: 2px dotted rgba(255, 255, 255, 0.55);
    border-right: 2px dotted rgba(255, 255, 255, 0.55);
    box-shadow: 0 1px 3px rgba(15, 42, 27, 0.18);
    transform: rotate(4deg);
    pointer-events: none;
}
.key-facts h2 { margin-top: 0 !important; font-size: 1.05rem !important; font-family: var(--font-body) !important; color: var(--accent-bright) !important; text-transform: uppercase; letter-spacing: 0.08em; }
/* in-article call to action: play / download */
.app-box {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
    align-items: center;
    margin: 2.5rem 0 1rem;
    padding: 1.4rem 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(240, 230, 208, 0.14);
    background: linear-gradient(165deg, rgba(26, 90, 56, 0.45) 0%, rgba(8, 26, 16, 0.6) 100%);
}
.app-box img.mascot { width: 84px; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.45)); }
.app-box h2 { margin: 0 0 0.3rem !important; font-size: 1.2rem !important; }
.app-box p { margin-bottom: 0.9rem !important; }
.app-box .row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
/* Store badges (Apple + Google guidelines): original artwork, Google never smaller than Apple. The Google PNG carries built-in clear space (badge = 77% of the image height), so its image is 1.3× the Apple height to show the same badge height. Apple badge min 40px. Same rule on every page — see CLAUDE.md "Store badges". */
.app-box .row img { height: 42px; width: auto; }
.app-box .row img[src*="google-play"] { height: 55px; }
.share-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin: 2rem 0 0;
    font-size: 0.85rem;
    color: var(--text-dim);
}
.share-row button, .share-row a {
    appearance: none;
    cursor: pointer;
    font: inherit;
    font-size: 0.8rem;
    color: var(--cream-dim);
    background: rgba(240, 230, 208, 0.05);
    border: 1px solid rgba(240, 230, 208, 0.14);
    border-radius: 999px;
    padding: 0.3rem 0.8rem;
    text-decoration: none;
}
.share-row button:hover, .share-row a:hover { color: var(--cream-light); border-color: var(--accent); }
.more-news { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(240, 230, 208, 0.08); }
.more-news h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--cream-light);
    margin-bottom: 1.1rem;
}
.more-news .news-grid { grid-template-columns: repeat(2, 1fr); }
.back-link { display: inline-block; margin-top: 1.5rem; font-weight: 600; text-decoration: none; }

/* Design-review marker — shown only on the sample/mock content of the
   preview branch; never part of a real article. */
.mock-banner {
    background: repeating-linear-gradient(135deg, #7c2d12 0 12px, #9a3412 12px 24px);
    color: #fff7ed;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.45rem 1rem;
}
.mock-badge {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff7ed;
    background: #9a3412;
    border-radius: 6px;
    padding: 0.12rem 0.45rem;
}

@media (max-width: 860px) {
    .news-lead { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .news-grid, .more-news .news-grid { grid-template-columns: 1fr; }
    .news-filter button { font-size: 0.78rem; padding: 0.38rem 0.85rem; }
    .article-head .dek { font-size: 0.95rem; }
    .app-box { grid-template-columns: 1fr; text-align: center; justify-items: center; }
    .app-box .row { justify-content: center; }
    .news-lead { padding: 0.8rem; }
}

/* ============================================================
   LIGHT SCHEME — html[data-theme="light"]. The news hub and every article
   use it (owner decision 2026-10-21; the homepage stays green).
   Light page, dark text, same brand: felt green for headings, the header
   bar, footer and covers; amber for accents, darkened to #b45309 where it
   is text or a button on white (plain #d97706 on white is too faint to
   read comfortably). The header bar and footer stay felt green as the
   brand frame, so they get the original values back.
   ============================================================ */
html[data-theme="light"] body {
    --cream-light: #0f2a1b;
    --cream: #1f3326;
    --cream-dim: #4f574f;
    --text: #2b322c;
    --text-dim: #687066;
    --accent: #b45309;
    --accent-bright: #b45309;
    --accent-dim: #92400e;
    --accent-glow: rgba(180, 83, 9, 0.22);
    --line: rgba(15, 42, 27, 0.14);
    /* a very light brand-orange wash, gold at the top to orange at the foot
       (owner, 2026-10-30 — "number 3" of four opacity trials) */
    background:
        linear-gradient(175deg, rgba(246, 201, 69, 0.112) 0%, rgba(232, 139, 26, 0.15) 100%),
        #fffdf9;
    background-attachment: fixed;
}
html[data-theme="light"] .page-header,
html[data-theme="light"] .page-footer,
html[data-theme="light"] .lang-toggle,
html[data-theme="light"] .cover,
html[data-theme="light"] .news-card,
html[data-theme="light"] .news-lead,
html[data-theme="light"] .content blockquote,
html[data-theme="light"] .app-box {
    --cream-light: #faf4e8;
    --cream: #f0e6d0;
    --cream-dim: #bfb49a;
    --text: #ddd8cc;
    --text-dim: #9a9486;
    --accent: #d97706;
    --accent-bright: #fb923c;
}
html[data-theme="light"] .lang-btn.active { color: #faf4e8; }

/* cards: white on the light page, thin green-tinted border */
html[data-theme="light"] .news-filter button {
    background: #f6f4ef;
    border-color: var(--line);
    color: var(--cream-dim);
}
html[data-theme="light"] .news-filter button:hover { color: var(--cream-light); border-color: var(--accent); }
html[data-theme="light"] .news-filter button[aria-pressed="true"] {
    background: #14432a;
    border-color: #14432a;
    color: #faf4e8;
}
html[data-theme="light"] .topic-tag {
    color: #92400e;
    background: rgba(217, 119, 6, 0.1);
    border-color: rgba(180, 83, 9, 0.3);
}
html[data-theme="light"] .btn-play { color: #ffffff; background: #b45309; }
html[data-theme="light"] .btn-play:hover { background: #92400e; color: #ffffff; }

/* article furniture */
html[data-theme="light"] .rules-table th,
html[data-theme="light"] .rules-table td { border-bottom-color: var(--line); }
html[data-theme="light"] .rules-table th { border-bottom-color: rgba(15, 42, 27, 0.25); }
html[data-theme="light"] .share-row button,
html[data-theme="light"] .share-row a { background: #f6f4ef; border-color: var(--line); }
html[data-theme="light"] .more-news,
html[data-theme="light"] .related { border-top-color: var(--line); }
html[data-theme="light"] .content figure img { border-color: var(--line); }

/* Light scheme: the boxes keep the green scheme exactly (owner, 2026-10-21).
   Their green-scheme backgrounds are translucent over the dark page, so here
   they get the same colour made opaque over the dark page colour. */
html[data-theme="light"] .news-card { background: linear-gradient(165deg, rgba(26, 90, 56, 0.3) 0%, rgba(8, 26, 16, 0.5) 100%), #081a10; border-color: rgba(240, 230, 208, 0.12); }
html[data-theme="light"] .news-lead {
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(217, 119, 6, 0.08) 0%, transparent 55%),
        linear-gradient(165deg, rgba(26, 90, 56, 0.35) 0%, rgba(8, 26, 16, 0.55) 100%), #081a10;
    border-color: rgba(240, 230, 208, 0.14);
}
html[data-theme="light"] .news-card:hover,
html[data-theme="light"] .news-lead:hover { border-color: #d97706; box-shadow: 0 18px 40px rgba(15, 42, 27, 0.3); }
html[data-theme="light"] .news-card .topic-tag,
html[data-theme="light"] .news-lead .topic-tag { color: #fb923c; background: rgba(217, 119, 6, 0.12); border-color: rgba(217, 119, 6, 0.3); }
/* key facts: a light silver gradient (owner, 2026-10-29; lightened to near-white
   2026-10-30 for the orange page, option 4), just enough to set it apart from the page. The dark-green box it replaced (2026-10-21) competed
   with the article's cover tile right above it. It keeps the page's own dark
   text colours. */
html[data-theme="light"] .key-facts {
    background:
        linear-gradient(90deg, transparent 2.75rem, rgba(214, 69, 69, 0.55) 2.75rem, rgba(214, 69, 69, 0.55) calc(2.75rem + 1px), transparent calc(2.75rem + 1px), transparent calc(2.75rem + 4px), rgba(214, 69, 69, 0.35) calc(2.75rem + 4px), rgba(214, 69, 69, 0.35) calc(2.75rem + 5px), transparent calc(2.75rem + 5px)),
        linear-gradient(160deg, #fdfdfe 0%, #f9fafb 50%, #f3f5f7 100%);
    border-color: rgba(84, 94, 108, 0.38);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 6px 18px rgba(15, 42, 27, 0.08);
}
html[data-theme="light"] .key-facts h2 { color: #b45309 !important; }
html[data-theme="light"] .key-facts li::before { background: #d97706; }
html[data-theme="light"] .content blockquote { background: linear-gradient(rgba(240, 230, 208, 0.04), rgba(240, 230, 208, 0.04)), #081a10; color: #f0e6d0; }
html[data-theme="light"] .app-box { background: linear-gradient(165deg, rgba(26, 90, 56, 0.45) 0%, rgba(8, 26, 16, 0.6) 100%), #081a10; border-color: rgba(240, 230, 208, 0.14); }
html[data-theme="light"] .app-box .btn-play { background: #d97706; }
html[data-theme="light"] .app-box .btn-play:hover { background: #b45309; }

/* ============================================================
   PHONE POLISH (≤ 600px) — 2026-10-21 mobile review
   ============================================================ */
@media (max-width: 600px) {
    /* the language switch scrolls away with the header instead of
       floating over tables, the glossary search and article text */
    .lang-toggle { position: absolute; }
    /* an article's own title in the breadcrumb: one line, cut off */
    .article-head h1 { font-size: 1.65rem; }
    .news-lead h2 { font-size: 1.3rem; }
    .key-facts { padding: 0.9rem 1rem 0.2rem 3.4rem; }
    .content blockquote { padding: 0.75rem 1rem; font-size: 0.9rem; }
    .app-box { padding: 1.2rem 1rem; }
    .app-box .row .btn-play { width: 100%; justify-content: center; }
}

/* Phones (2026-10-21 review, measured at 390×664): compact cards — a lower
   picture, two-line titles, three-line summaries — so a card is about half
   a screen instead of most of one. The preview stripe leaves room for the
   language switch. */
@media (max-width: 600px) {
    .news-card, .news-lead { padding: 0.55rem 0.55rem 0.85rem; }
    .news-card .cover, .news-lead .cover { aspect-ratio: auto; height: 120px; margin-bottom: 0.6rem; }
    .news-card .body, .news-lead .body { gap: 0.4rem; padding: 0 0.3rem; }
    .news-card h3, .news-card h2, .news-lead h2, .news-lead h3 {
        font-size: 1.02rem; line-height: 1.3; margin: 0;
        display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
    }
    .news-card p, .news-lead p {
        font-size: 0.82rem; line-height: 1.5; margin: 0;
        display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
    }
    .news-grid { gap: 0.9rem; }
    .news-lead { margin-bottom: 0.9rem; gap: 0; }
    .hero { padding-bottom: 1rem; }
    .news-filter { margin-bottom: 1.25rem; }
    .article-cover .cover { aspect-ratio: auto; height: 170px; }
    .mock-banner { text-align: left; padding-right: 7.5rem; font-size: 0.7rem; }
}


/* An article's own picture is NEVER cropped (owner, 2026-10-23): every box that
   shows it takes the picture's own shape (1024×500, the Google Play feature
   graphic) at every screen size — the layout adapts, not the picture. */
.cover.cover-photo,
.news-card .cover.cover-photo,
.news-lead .cover.cover-photo,
.article-cover .cover.cover-photo {
    aspect-ratio: 1024 / 500;
    height: auto;
    min-height: 0;
}
.cover.cover-photo > img.photo { object-fit: contain; }

/* Share row: the label on its own line, the four buttons below it (owner, 2026-10-23) */
.share-row > span:first-child { flex-basis: 100%; }

/* A portrait in-app screenshot (e.g. the Table Rules Solo tab): phone-panel width, not full column */
.content figure.portrait img { width: 100%; max-width: 420px; height: auto; }

/* An article section with a small picture on its left (e.g. each new solo type's card fan) */
.content .solo-item { display: flex; gap: 1rem; align-items: flex-start; margin: 1.5rem 0; }
.content .solo-item .solo-icon { flex: 0 0 96px; width: 96px; height: auto; margin: 0.15rem 0 0; border: 0; }
.content .solo-item > div { min-width: 0; }
.content .solo-item h3 { margin-top: 0; }
.content .solo-item p:last-child { margin-bottom: 0; }
@media (max-width: 600px) { .content .solo-item .solo-icon { flex-basis: 64px; width: 64px; } }
