/* ---------------- Goal Card nudge (goalnudge-1128, Anton 15:41 ET 2026-11-28: "bix goals stops the game, we need a new way to do that,
   more subtle and suggestive than an ultimatum"). goalnudge.js draws two quiet pieces; nothing here dims, covers or waits on the board.
   1. .gn-dock / .gn-nudge: one slim plate at the board's TOP edge, inside its frame (over the carved top rail between the pumpkin caps in
      the Thanksgiving Special, else just inside the board's top edge, left of Zoom), with Bix peeking out from behind its left end
      (canon pose extra_peek, art/bix_peek.webp: the pose's own pixels, cropped at the shoulder and scaled). Gone by itself in 6.5 s.
   2. .gn-chip: a sealed-note plate at the end of the Turn Card with a slow brass breath; it unfolds in place into the card.
   Same flat plate language as the Turn Card (actionplates-1128): navy face var(--cl-bg), one-pixel brass hairline, lightly chamfered
   corners (clip-path), no border-radius on plates, no pills, no purple; inks and faces follow the table skin (--es-* in the
   Thanksgiving Special, the navy set otherwise). Every tap target is >= 44 px. Contrast is measured from the real-page pixels in
   the goalnudge1128 report (every text >= 4.5:1).
   Reduced motion: no slide, no breath (a still, faint glow). */
.gn-dock { position: absolute; z-index: 7; top: 8px; left: 8px; right: 88px; display: flex; justify-content: center; pointer-events: none; }
body.hv-borders #game .hv-frame > .gn-dock { top: 3px; left: calc(var(--hvb-cx) - var(--hvb-out) + var(--hvb-cap) * .228 + 8px);
  right: calc(var(--hvb-cx) - var(--hvb-out) + var(--hvb-cap) * .228 + 8px); }
@media (min-width: 901px) { body.hv-borders #game .hv-frame > .gn-dock { top: 5px; } }
body.rk-on .gn-dock { opacity: 0; transition: opacity .2s; }   /* waits under the rocket launch */
.gn-nudge { position: relative; display: flex; align-items: center; max-width: 100%; padding-left: 34px; pointer-events: none;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .5)); animation: gnIn .22s ease-out both; }
.gn-nudge.out { animation: gnOut .2s ease-in both; }
.gn-nudge .gn-peek { position: absolute; left: 0; bottom: -1px; z-index: 0; width: auto; height: 48px; pointer-events: none; animation: gnPeek .42s .06s cubic-bezier(.2, .9, .3, 1.15) both; }
.gn-nudge .gn-plate { --c: 5px; position: relative; z-index: 1; isolation: isolate; pointer-events: auto; box-sizing: border-box; display: flex; align-items: center; gap: 10px;
  min-width: 0; min-height: 44px; margin: 0; padding: 4px 5px 4px 12px; border: 0; border-radius: 0; background: none; box-shadow: none; text-shadow: none; cursor: pointer;
  color: var(--es-ink, #efe7d2); font: 600 14px/17px Nunito, system-ui, sans-serif; text-align: left; -webkit-tap-highlight-color: transparent; }
.gn-nudge .gn-plate::before, .gn-nudge .gn-plate::after, .gn-peekbtn::before, .gn-peekbtn::after, .gn-face::before, .gn-open::before, .gn-open::after {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c)); }
.gn-nudge .gn-plate::before { inset: 0; background: rgba(212, 176, 98, .6); }
.gn-nudge .gn-plate::after { inset: 1px; --c: 4.6px; background: var(--es-label, rgba(17, 23, 52, .97)); }
.gn-nudge .gn-line { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gn-peekbtn { --c: 4px; position: relative; isolation: isolate; flex: none; padding: 7px 11px; color: #e2c47e; font: 600 13.5px/1 var(--font-display, Fredoka), Nunito, sans-serif; letter-spacing: .02em; }
.gn-peekbtn { color: var(--es-accent-ink, #e2c47e); }
.gn-peekbtn::before { inset: 0; background: rgba(212, 176, 98, .6); }
.gn-peekbtn::after { inset: 1px; --c: 3.6px; background: var(--es-well, #151c3d); }
.gn-nudge .gn-plate:focus-visible { outline: 2px solid #e2c47e; outline-offset: 2px; }
@media (hover: hover) { .gn-nudge .gn-plate:hover { filter: brightness(1.1); } }
.gn-nudge .gn-plate:active { filter: brightness(.88); }
@keyframes gnIn { from { opacity: 0; transform: translateY(-8px); } }
@keyframes gnOut { to { opacity: 0; transform: translateY(-6px); } }
@keyframes gnPeek { from { transform: translateX(16px) rotate(4deg); opacity: 0; } 60% { opacity: 1; } }
/* desktop: the frame clips above its top rail, so Bix stands no taller than the plate (hat to the plate's top edge) */
@media (min-width: 901px) { .gn-nudge .gn-plate { font-size: 14.5px; min-height: 46px; } .gn-nudge .gn-peek { height: 47px; } .gn-nudge { padding-left: 34px; } }
/* phones: the line gets the room; the whole plate is the tap (44 px tall, named "Peek at it" for screen readers) */
@media (max-width: 600px) { .gn-peekbtn { display: none; } .gn-nudge .gn-plate { padding-right: 12px; font-size: 13.5px; } }
@media (max-width: 370px) { .gn-nudge .gn-plate { font-size: 13px; padding-left: 10px; padding-right: 10px; } .gn-nudge { padding-left: 31px; } .gn-nudge .gn-peek { height: 44px; } }

/* the goal chip in the Turn Card */
#game #actions .gn-chip { position: relative; margin-top: 10px; }
#game #actions .gn-chip::before { content: ''; position: absolute; inset: -5px -4px; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 75% at 22% 50%, rgba(232, 200, 120, .55), rgba(232, 200, 120, 0) 72%); filter: blur(5px); opacity: .22;
  animation: gnBreath 3.2s ease-in-out infinite alternate; }
#game #actions .gn-chip.open::before { opacity: .12; animation: none; }
@keyframes gnBreath { from { opacity: .16; } to { opacity: .62; } }
#game #actions .gn-face { --c: 6px; --edge: rgba(212, 176, 98, .62); position: relative; z-index: 1; isolation: isolate; background: var(--edge);
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c)); }
#game #actions .gn-face::before { inset: 1px; --c: 5.6px; background: var(--cl-bg, #151c3d); }
#game #actions .gn-chip { --gn-ink: var(--es-ink, #efe7d2); --gn-ink2: var(--es-ink2, #cdbf9a); --gn-brass: var(--es-accent-ink, #e2c47e); --gn-note: var(--es-ink2, #c2b89f); }
#game #actions .gn-head { position: relative; display: flex; align-items: center; gap: 11px; width: 100%; min-height: 54px; margin: 0; padding: 8px 9px 8px 11px; box-sizing: border-box;
  border: 0; border-radius: 0; background: none; box-shadow: none; text-shadow: none; color: var(--gn-ink); text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
#game #actions .gn-head:focus-visible { outline: 2px solid #e2c47e; outline-offset: -4px; }
@media (hover: hover) { #game #actions .gn-head:hover .gn-open { filter: brightness(1.15); } }
#game #actions .gn-head:active { filter: brightness(.9); }
#game #actions .gn-env { flex: none; width: 38px; height: 28px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .45)); }
#game #actions .gn-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
#game #actions .gn-kick { font: 700 10.5px/13px var(--font-display, Fredoka), Nunito, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--gn-brass); }
#game #actions .gn-title { font: 600 16px/19px var(--font-display, Fredoka), Nunito, sans-serif; color: var(--gn-ink); overflow-wrap: break-word; }
#game #actions .gn-open { --c: 4px; position: relative; isolation: isolate; flex: none; padding: 8px 12px; color: var(--gn-brass); font: 600 13.5px/1 var(--font-display, Fredoka), Nunito, sans-serif; letter-spacing: .02em; }
#game #actions .gn-open::before { inset: 0; background: rgba(212, 176, 98, .6); }
#game #actions .gn-open::after { inset: 1px; --c: 3.6px; background: var(--cl-bg, #151c3d); }
#game #actions .gn-chip.late .gn-kick { color: #f0cf86; }
/* unfolded: the card itself, inside the same plate */
#game #actions .gn-card { position: relative; margin: 0 11px; padding: 10px 0 12px; border-top: 1px solid rgba(212, 176, 98, .28); }
#game #actions .gn-body { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 11px; align-items: start; }
/* the Goal Card's own art is a round medallion (bible p65 shows it the same way): a circle with a brass ring, never a white square */
#game #actions .gn-art { display: block; width: 92px; height: 92px; margin: 2px; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 2px #d4b062, 0 0 0 3px rgba(0, 0, 0, .35); }
#game #actions .gn-rows { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
#game #actions .gn-row { font: 500 13.5px/17px Nunito, system-ui, sans-serif; color: var(--gn-ink); overflow-wrap: break-word; }
#game #actions .gn-k { display: block; font: 700 10.5px/13px var(--font-display, Fredoka), Nunito, sans-serif; letter-spacing: .07em; text-transform: uppercase; color: var(--gn-ink2); }
#game #actions .gn-row.good .gn-v { color: #9fdcb3; }
#game #actions .gn-row.bad .gn-v { color: #ffb4a6; }
#game #actions .gn-stake { margin: 10px 0 0; font: 500 13px/17px Nunito, system-ui, sans-serif; color: var(--gn-note); }
#game #actions .gn-stake b { color: var(--gn-ink); font-weight: 800; }
#game #actions .gn-btns { display: flex; gap: 8px; margin-top: 10px; }
#game #actions .gn-btns > .btn { flex: 1 1 0; }
/* both outlined: ROLL stays the turn's one solid primary; "Take it on" carries the brass ink */
body #game #turnCard #actions .gn-btns > .btn.gn-yes:not(.opt-row, .lob-btn, .settle .btn) { --edge: rgba(212, 176, 98, .9); --face: var(--cl-bg, #151c3d); --fg: var(--gn-brass); }
body #game #turnCard #actions .gn-btns > .btn.gn-no:not(.opt-row, .lob-btn, .settle .btn) { --edge: rgba(212, 176, 98, .45); --face: var(--cl-bg, #151c3d); --fg: var(--gn-ink); }
#game #actions .gn-foot { margin: 8px 0 0; font: 500 12.5px/16px Nunito, system-ui, sans-serif; color: var(--gn-note); }
@media (max-width: 380px) { #game #actions .gn-body { grid-template-columns: 80px minmax(0, 1fr); } #game #actions .gn-art { width: 76px; height: 76px; } }
@media (prefers-reduced-motion: reduce) {
  .gn-nudge, .gn-nudge.out, .gn-nudge .gn-peek { animation: none !important; }
  #game #actions .gn-chip::before { animation: none !important; opacity: .3; }
}
/* desktop: the side column is ~330 px wide, so the unfolded card is tighter (smaller medallion, tighter rows) and stays short enough
   to sit under Roll without pushing the turn header away */
@media (min-width: 901px) {
  #game #actions .gn-body { grid-template-columns: 68px minmax(0, 1fr); gap: 10px; }
  #game #actions .gn-art { width: 64px; height: 64px; }
  #game #actions .gn-rows { gap: 4px; }
  #game #actions .gn-row { font-size: 13px; line-height: 16px; }
  #game #actions .gn-card { padding: 8px 0 10px; }
  #game #actions .gn-stake, #game #actions .gn-btns { margin-top: 8px; }
  #game #actions .gn-foot { margin-top: 6px; }
}
