/* Kora guides a new player's first game (28 Nov 2026, checklist 139; guide.js). The same card and ring on every screen; the phone's and the
   laptop's own sizes are in phonetable.css (html.pt) and bigtable.css. Nothing here takes a tap: the guide only points. */

/* her picture is out with her while she shows; it comes back to its place when she is done */
html.guiding #coachDock .coach-bubble { opacity: 0; }   /* still there to tap: a tap on her corner asks her, as ever */

.guide-card { position: fixed; z-index: 70; display: flex; align-items: center; gap: 8px; box-sizing: border-box; pointer-events: none; opacity: 0; }
.guide-card.on { opacity: 1; }
/* her real picture, the size of the one in her corner; the corner stays empty while she is out, and a tap on her asks her */
.guide-card .guide-face { flex: none; pointer-events: auto; cursor: pointer; }
.guide-card .guide-say { position: relative; align-self: stretch; display: flex; align-items: center; margin: 0; flex: 1 1 auto; min-width: 0; box-sizing: border-box; padding: 8px 14px;
  border-radius: 20px; background: #fff6e2; box-shadow: 0 0 0 2px #f6c443, 0 8px 22px rgba(0, 0, 0, 0.45); font: 700 15px/1.3 var(--g-font-body, system-ui); color: #2a2418; }
.guide-say::after { content: ""; position: absolute; width: 14px; height: 14px; background: #fff6e2; transform: translate(-50%, -50%) rotate(45deg); }
.guide-card[data-side="above"] .guide-say::after { left: var(--tail, 50%); bottom: -7px; top: auto; transform: translate(-50%, 0) rotate(45deg); border-right: 2px solid #f6c443; border-bottom: 2px solid #f6c443; }
.guide-card[data-side="below"] .guide-say::after { left: var(--tail, 50%); top: -7px; transform: translate(-50%, 0) rotate(45deg); border-left: 2px solid #f6c443; border-top: 2px solid #f6c443; }
.guide-card[data-side="left"] .guide-say::after { right: -7px; left: auto; top: var(--tail-y, 50%); transform: translate(0, -50%) rotate(45deg); border-top: 2px solid #f6c443; border-right: 2px solid #f6c443; }

/* the gentle ring on the thing she points at */
.guide-ring { position: fixed; z-index: 69; box-sizing: border-box; border: 3px solid #f6c443; pointer-events: none; opacity: 0;
  box-shadow: 0 0 10px 3px rgba(246, 196, 67, 0.7), inset 0 0 8px 1px rgba(246, 196, 67, 0.45); }
.guide-ring.on { opacity: 1; animation: guide-ring 1.6s ease-in-out infinite; }
@keyframes guide-ring { 0%, 100% { box-shadow: 0 0 6px 2px rgba(246, 196, 67, 0.55), inset 0 0 6px 1px rgba(246, 196, 67, 0.3); } 50% { box-shadow: 0 0 16px 6px rgba(246, 196, 67, 0.9), inset 0 0 10px 2px rgba(246, 196, 67, 0.55); } }
@media (prefers-reduced-motion: reduce) { .guide-ring.on { animation: none; } }
body.no-motion .guide-ring.on { animation: none; }

/* Your turn as a clear choice (checklist 136): the one big gold button */
button.draw-go { font-weight: 800; min-width: 7.5em; }
/* the tile just thrown glows in the pile while the choice to take it or draw is open */
.pool .tile.offered { box-shadow: 0 0 0 3px #ffc23d, 0 0 14px 5px rgba(255, 194, 61, 0.85); position: relative; z-index: 2; animation: pool-offered 1.2s ease-in-out infinite alternate; }
@keyframes pool-offered { from { filter: brightness(1); } to { filter: brightness(1.18); } }
@media (prefers-reduced-motion: reduce) { .pool .tile.offered { animation: none; } }
body.no-motion .pool .tile.offered { animation: none; }
.guide-showing .ask-how-throw { display: none; }
/* a scene that carries her line (#170): the Coach box with the scene's own words steps aside while she speaks */
.guide-showing #coachBox { visibility: hidden; }
/* a first game's paused first call: her lines one under the other (#170) */
.guide-card .guide-words { white-space: pre-line; }
/* "I know my way around": small and quiet, under her line */
.guide-card .guide-say { flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; }
.guide-card .guide-skip { pointer-events: auto; cursor: pointer; border: 0; background: none; padding: 0; font: 600 12px/1.2 var(--g-font-body, system-ui); color: #7a6a45; text-decoration: underline; }
.guide-card .guide-skip:hover, .guide-card .guide-skip:focus-visible { color: #2a2418; }

/* the table's menu is open: Kora's card and ring wait behind it (28 Nov, checklist 160; the menu was drawn under her card on a phone) */
body:has(#tableMenu[open]) .guide-card, body:has(#tableMenu[open]) .guide-ring { visibility: hidden; }

/* the walk (29 Nov, the lesson Your way around the table; guide.js WALK): she glides from spot to spot, and the table shown inside the
   lesson's page gives up what is the lesson's own (its way back, its leave arrow); the Coach's box stays shut but for the step about asking her */
.guide-card.walk { transition: left 0.5s ease, top 0.5s ease, opacity 0.2s; }
.guide-card[data-side="right"] .guide-say::after { left: -7px; right: auto; top: var(--tail-y, 50%); transform: translate(0, -50%) rotate(45deg); border-left: 2px solid #f6c443; border-bottom: 2px solid #f6c443; }
body.walk-embed #gbBack { display: none; }
body.walk-quiet #coachBox, body.walk-quiet #coachChatBox { display: none !important; }
@media (prefers-reduced-motion: reduce) { .guide-card.walk { transition: none; } }
body.walk-embed:has(#tableMenu[open]) .guide-card, body.walk-embed:has(#tableMenu[open]) .guide-ring { visibility: visible; }
