/* Only the training overview replaces its decorative scene with an accessible fact. */
.welcome-scene--fact .welcome-scene-inner { grid-template-columns:170px minmax(0,1fr); gap:28px; height:auto; min-height:244px; padding-block:24px; }
.welcome-scene--fact .welcome-scene-inner::before { display:none; }
.poker-fact { position:relative; isolation:isolate; display:grid; grid-template-columns:160px minmax(0,1fr); align-items:center; gap:18px; min-width:0; }
.poker-fact::before { content:""; position:absolute; z-index:-1; width:240px; height:280px; left:-40px; top:50%; transform:translateY(-50%); background:radial-gradient(ellipse,color-mix(in srgb,var(--welcome-glow),transparent 25%),transparent 70%); pointer-events:none; }
/* Add complementary pose opacities inside an isolated layer: ordinary alpha-over
   makes two 50% poses only 75% opaque and flashes the page through the character. */
.poker-fact-mascot { display:block; width:100%; height:auto; transform-origin:50% 90%; user-select:none; mix-blend-mode:plus-lighter; }
.poker-fact-character { position:relative; isolation:isolate; min-width:0; transform-origin:50% 90%; }
.poker-fact-mascot:not([data-fact-pose="talking"]) { position:absolute; inset:0; opacity:0; pointer-events:none; }
.poker-fact-character.is-waking [data-fact-pose="talking"] { opacity:0; }
.poker-fact-character.is-waking [data-fact-pose="quiet"] { opacity:1; }
.poker-fact-wake { position:absolute; inset:0; width:100%; height:100%; min-height:44px; background:transparent; border:0; border-radius:12px; padding:0; cursor:pointer; }
.poker-fact:focus { outline:none; }
.poker-fact-mute { flex:none; min-height:44px; min-width:44px; padding:0; border:0; background:transparent; font-family:inherit; font-size:13px; cursor:pointer; }
.poker-fact-heading h2 { flex:1; }
.poker-fact-heading > [data-fact-category] { margin-left:auto; }
.poker-fact-bubble { transform-origin:left center; }
.poker-fact [hidden] { display:none; }
/* The head script applies this before the first paint, including restored tabs. */
html:not([data-poker-facts-muted="true"]) .poker-fact-wake,
.poker-fact.is-transitioning .poker-fact-wake { display:none; }
html[data-poker-facts-muted="true"] .poker-fact:not(.is-transitioning) .poker-fact-bubble { display:none; }
html[data-poker-facts-muted="true"] .poker-fact:not(.is-transitioning) [data-fact-pose="talking"] { opacity:0; }
html[data-poker-facts-muted="true"] .poker-fact:not(.is-transitioning) [data-fact-pose="quiet"] { opacity:1; }
.poker-fact-bubble { position:relative; min-width:0; padding:22px 24px 12px; border:1px solid var(--ui-border); border-radius:18px; background:var(--ui-panel); }
.poker-fact-bubble::before { content:""; position:absolute; left:-8px; top:48%; width:14px; height:14px; background:var(--ui-panel); border-left:1px solid var(--ui-border); border-bottom:1px solid var(--ui-border); transform:rotate(45deg); }
.poker-fact-heading { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:4px 12px; }
.poker-fact-heading h2 { margin:0; font-size:19px; font-weight:600; letter-spacing:-.02em; }
.poker-fact-heading > span { font-size:11px; color:var(--ui-muted); }
.poker-fact-text { margin:10px 0 8px; min-height:4.5em; font-size:16px; line-height:1.5; text-wrap:pretty; overflow-wrap:anywhere; }
.poker-fact-actions { display:flex; justify-content:space-between; align-items:center; gap:4px 16px; flex-wrap:wrap; }
.poker-fact-replies { display:flex; align-items:center; gap:16px; }
.poker-fact-next { min-height:44px; font-size:13px; white-space:nowrap; }
.poker-fact-next .icon { width:16px; height:16px; }
.poker-fact-source { margin-left:auto; }
.poker-fact-source > summary { display:flex; align-items:center; justify-content:center; min-width:44px; min-height:44px; cursor:pointer; color:var(--ui-muted); font-size:12px; list-style:none; text-decoration:underline; text-underline-offset:3px; }
.poker-fact-source > summary::-webkit-details-marker { display:none; }
.poker-fact-source > div { position:absolute; z-index:20; top:calc(100% + 8px); left:0; right:0; padding:18px; background:var(--ui-panel); border:1px solid var(--ui-border); border-radius:12px; box-shadow:var(--shadow); font-size:13px; line-height:1.5; overflow-wrap:anywhere; }
.poker-fact-source p { margin-bottom:10px; }
.poker-fact-source a { display:inline-flex; align-items:center; min-height:44px; padding-block:8px; text-decoration:underline; text-underline-offset:3px; color:var(--ui-accent); }
.poker-fact-source [hidden] { display:none; }
.poker-fact-source [data-fact-source-label] { color:var(--ui-muted); font-size:12px; }
@media(max-width:900px) {
  .welcome-scene--fact .welcome-scene-inner { grid-template-columns:145px minmax(0,1fr); gap:20px; }
  .poker-fact { grid-template-columns:112px minmax(0,1fr); gap:12px; }
  .poker-fact::before { width:180px; left:-34px; height:220px; }
  .poker-fact-bubble { padding:18px 18px 10px; }
}
@media(max-width:639px) {
  .welcome-scene--fact .welcome-scene-inner { display:block; min-height:0; padding-block:12px 0; }
  .welcome-scene--fact .welcome-scene-copy { position:relative; margin-bottom:22px; }
  .welcome-scene--fact .welcome-display { top:-8px; }
  .poker-fact { grid-template-columns:104px minmax(0,1fr); gap:12px; align-items:center; }
  .poker-fact-bubble { padding:16px 16px 8px; border-radius:14px; }
  .poker-fact-heading h2 { font-size:18px; }
  .poker-fact-heading > span { display:none; }
  .poker-fact-heading { gap:4px; }
  .poker-fact-text { font-size:14px; min-height:6em; }
  .poker-fact-next,.poker-fact-mute { font-size:12px; }
  .poker-fact-replies { gap:12px; }
  .poker-fact-actions { gap:0 12px; }
}
@media(max-width:359px) {
  .poker-fact { grid-template-columns:74px minmax(0,1fr); gap:10px; }
  .poker-fact-bubble { padding-inline:12px; }
}
