/* Spot (decision node) card. Load after styles.css and figure-frame.css; colours come from the site tokens. */
.frame.spot{container-type:inline-size}
.frame.spot>.frame-body{overflow:visible}
/* Size colours as text. Dark: the ramp as is, except all-in, whose fill (--act-purple-4) is too dark to read,
   so it uses a lifted tint. Light: the pale end of each ramp is too faint for text, so text shifts one step darker. */
:root{--allin-ink:#c4a2ff;--sp-r1:var(--act-red-1);--sp-r2:var(--act-red-2);--sp-r3:var(--act-red-3);--sp-p1:var(--act-purple-1);--sp-p2:var(--act-purple-2);--sp-p3:var(--act-purple-3)}
@media (prefers-color-scheme:light){:root:not([data-theme="dark"]){--allin-ink:var(--act-purple-4);--sp-r1:var(--act-red-2);--sp-r2:var(--act-red-3);--sp-r3:var(--act-red-4);--sp-p1:var(--act-purple-2);--sp-p2:var(--act-purple-3);--sp-p3:var(--act-purple-4)}}
:root[data-theme="light"]{--allin-ink:var(--act-purple-4);--sp-r1:var(--act-red-2);--sp-r2:var(--act-red-3);--sp-r3:var(--act-red-4);--sp-p1:var(--act-purple-2);--sp-p2:var(--act-purple-3);--sp-p3:var(--act-purple-4)}

.sp-meta{display:flex;flex-wrap:wrap;gap:0 10px;margin:-6px 0 10px!important;font-size:12px!important;line-height:1.6!important;color:var(--muted)}
.sp-meta span:not(:last-child)::after{content:'·';margin-left:10px;color:var(--faint)}

/* Line: one row per street; the pot at the start of the street follows the street name. */
.sp-line{display:grid;grid-template-columns:auto minmax(0,1fr);gap:2px 12px;padding:8px 12px;border-radius:6px;background:var(--surface-2);font-size:13px;line-height:1.7}
.sp-st{color:var(--faint);font-size:12px;white-space:nowrap;min-width:64px}
.sp-pot-at{font-family:var(--mono);font-size:11px;color:var(--faint);margin-left:4px}
.sp-pot-at::before{content:'('}.sp-pot-at::after{content:')'}
.sp-acts{display:flex;flex-wrap:wrap;gap:0 4px;min-width:0}
.sp-acts>span{white-space:nowrap}
/* Separators trail each action so a wrapped line never starts with one. */
.sp-acts>span:not(:last-child)::after{content:'·';display:inline-block;color:var(--faint);margin-left:4px}
.sp-pos{color:var(--fg);font-weight:500;margin-right:3px}
.sp-num{font-family:var(--mono);font-size:12px}
.sp-gap{color:var(--faint);font-style:italic}
.sp-fold,.sp-fold .sp-pos{color:var(--faint);font-weight:400}
.sp-check{color:var(--act-check)}.sp-call{color:var(--act-call)}.sp-raise,.sp-bet{color:var(--act-raise)}
.sp-r1{color:var(--sp-r1)}.sp-r2{color:var(--sp-r2)}.sp-r3{color:var(--sp-r3)}
.sp-p1{color:var(--sp-p1)}.sp-p2{color:var(--sp-p2)}.sp-p3{color:var(--sp-p3)}
.sp-allin{color:var(--allin-ink);font-weight:500}
.sp-other{color:var(--muted)}
/* Hero's own actions are underlined (Hand2Note convention). */
.sp-hero .sp-txt{text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:3px}
.sp-now{color:var(--accent);font-weight:500}
.sp-now::after{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--accent);margin-left:6px;vertical-align:middle;animation:sp-pulse 1.6s ease-in-out infinite}
@keyframes sp-pulse{50%{opacity:.25}}

/* Table: hero at the bottom centre; folded seats are a dot, seats the source never mentions a dashed dot. */
/* The rail ellipse: seats are placed at (50% + rx·cos, cy + ry·sin), which is the felt's border. */
/* ry leaves room for a seat's cards (62px from its disc centre) above and below the 70px pot and board block. */
.sp-table{--rx:42%;--cy:136px;--ry:112px;position:relative;height:290px;margin:12px 0 4px}
.sp-felt{position:absolute;inset:24px 8% 42px;border-radius:999px;background:color-mix(in srgb,var(--act-call) 7%,var(--bg));border:2px solid color-mix(in srgb,var(--act-call) 22%,var(--line))}
.sp-center{position:absolute;left:50%;top:var(--cy);transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:4px}
.sp-pot{font-size:12px;color:var(--muted);white-space:nowrap}
.sp-pot b{font-family:var(--mono);font-size:16px;font-weight:500;color:var(--fg);margin-right:2px}
.sp-board{display:flex;gap:4px}
.spot .tiles{gap:4px}
.spot .tile{width:36px;height:48px;border-radius:5px;background:var(--surface)}
.spot .tile b{font-size:18px}.spot .tile i{font-size:13px}
.spot .tile.suit-x{color:var(--muted)}
.spot .tile.sp-back{background:repeating-linear-gradient(45deg,var(--surface-2) 0 4px,var(--line) 4px 6px)}
.sp-cardtext{font-family:var(--mono);font-weight:600;padding:2px 8px;border:1px solid var(--line);border-radius:5px;background:var(--surface)}
/* The seat's anchor is the centre of its 40px disc; cards and the bet chip sit on the side facing the centre. */
.sp-seat{position:absolute;left:calc(50% + var(--rx) * var(--cos));top:calc(var(--cy) + var(--ry) * var(--sin));transform:translate(-50%,-20px);display:flex;flex-direction:column;align-items:center;gap:4px;z-index:1}
.sp-seat.sp-lower{transform:translate(-50%,calc(-100% + 20px))}
.sp-inward{display:flex;align-items:center;gap:6px}
.sp-right .sp-inward{flex-direction:row-reverse;transform:translateX(-28%)}
.sp-left .sp-inward{transform:translateX(28%)}
.sp-disc{position:relative;box-sizing:border-box;height:40px;min-width:62px;padding:2px 10px;border-radius:999px;background:var(--surface);border:1.5px solid var(--line);text-align:center;line-height:1.3;display:flex;flex-direction:column;justify-content:center}
.sp-seat-pos{display:block;font-size:12px;font-weight:500}
.sp-stack{font-family:var(--mono);font-size:12px;color:var(--muted)}
.sp-hole .tile{width:28px;height:38px}.sp-hole .tile b{font-size:15px}.sp-hole .tile i{font-size:11px;margin-top:1px}
.sp-actor .sp-disc{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft)}
.sp-tag{position:absolute;left:50%;top:calc(100% + 3px);transform:translateX(-50%);font-size:10px;line-height:1.2;color:var(--accent);letter-spacing:.06em;white-space:nowrap}
.sp-seat:not(.sp-lower) .sp-tag{top:auto;bottom:calc(100% + 3px)}
.sp-out{gap:0;transform:translate(-50%,-50%)}
.sp-out .sp-seat-pos{font-size:10px;font-weight:400;color:var(--faint)}
.sp-dot{width:8px;height:8px;border-radius:50%;background:var(--line)}
.sp-unlisted .sp-dot{background:none;border:1px dashed var(--faint)}
.sp-dealer{position:absolute;right:-6px;top:-6px;width:16px;height:16px;border-radius:50%;background:var(--fg);color:var(--bg);font-size:9px;font-weight:600;line-height:1;display:grid;place-items:center}
.sp-chip{font-family:var(--mono);font-size:12px;line-height:1.6;padding:0 7px;border-radius:999px;background:var(--surface);border:1px solid currentColor;white-space:nowrap}
.sp-chip.sp-plain{color:var(--muted)}
.sp-commentary{margin-top:10px;font-size:14px;line-height:1.8}
.sp-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

@container (max-width:480px){
  .sp-line{padding:8px 10px;column-gap:8px}
  .sp-st{min-width:0}
  .sp-table{--rx:44%;--cy:132px;--ry:108px;height:282px}
  .sp-felt{inset:24px 6% 42px}
  .spot .sp-board .tile{width:32px;height:44px}
}

/* One-line form for lists and indexes. */
.sp-compact{display:grid;grid-template-columns:52px minmax(0,1fr);gap:2px 12px;padding:10px 0}
.sp-c-hand{grid-row:span 2;align-self:center;font-family:var(--mono);font-weight:600;font-size:15px;white-space:nowrap}
.sp-c-title{font-size:14px;font-weight:500;line-height:1.5}
.sp-c-line{display:flex;flex-wrap:wrap;gap:0 10px;font-size:13px;line-height:1.7;min-width:0}
.sp-seg{display:inline-flex;flex-wrap:wrap;gap:0 4px;align-items:baseline}
.sp-seg+.sp-seg{border-left:1px solid var(--line);padding-left:10px}
.sp-seg .sp-st{min-width:0}
.sp-brd{font-family:var(--mono);font-weight:600;letter-spacing:.3px}
.sp-hidden-card{color:var(--faint);font-weight:400}
.sp-abc .sp-acts{gap:0 6px;font-family:var(--mono);font-size:12.5px}
.sp-abc .sp-acts>span::after{content:none!important}
.sp-abc .sp-pos{font-family:var(--sans);font-size:12px}
@container (max-width:420px){.sp-compact{grid-template-columns:1fr}.sp-c-hand{grid-row:auto}}
@media (prefers-reduced-motion:reduce){.sp-now::after{animation:none}}
