/* Pallanguzhi only (redesign art, DECISIONS 129 and the third try): the maroon pane with our dot kolam IS the stage (SPEC 2.2); the canvas is clear around
   the board, so no seam shows at any width. Linked by the Pallanguzhi page only. */
.stage { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='56'%3E%3Cg fill='none' stroke='rgba(217,164,65,.14)' stroke-width='1.1'%3E%3Cpath d='M14 4Q24 4 24 14Q24 24 14 24Q4 24 4 14Q4 4 14 4ZM0 32Q10 32 10 42Q10 52 0 52Q-10 52 -10 42Q-10 32 0 32ZM28 32Q38 32 38 42Q38 52 28 52Q18 52 18 42Q18 32 28 32Z'/%3E%3C/g%3E%3Cg fill='rgba(217,164,65,.24)'%3E%3Ccircle cx='14' cy='14' r='1.5'/%3E%3Ccircle cx='0' cy='42' r='1.5'/%3E%3Ccircle cx='28' cy='42' r='1.5'/%3E%3C/g%3E%3C/svg%3E") center / 28px 56px, radial-gradient(ellipse at 50% 45%, #6A1E17, #5A1914 45%, #3E100D); border: 2px solid #B8862E; box-shadow: inset 0 0 0 1px rgba(246,219,146,.35), inset 0 0 28px rgba(0,0,0,.35); }
/* phones: the pane runs edge to edge, so each pit's cell is 48 px or more at 360 px */
@media (max-width: 599px) { .stage { margin-inline: calc(-1 * var(--gutter)); border-radius: 0; border-inline-width: 0; } }
/* dark: the page around the pane is a deep warm maroon-black, not the portal navy (light keeps the cream page) */
@media (prefers-color-scheme: dark) {
  :root { --bg: #1A0B09; --card: #2A120E; --rule: #4A2A22; --muted: #CDB8AA; --accent-soft: #2A120E; --nc-canvas: #1A0B09; --nc-surface: #2A120E; --nc-strip-bg: #2A120E; --nc-strip-sub: #CDB8AA; --nc-lattice: rgba(217,164,65,.05); }
  .stage { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='56'%3E%3Cg fill='none' stroke='rgba(217,164,65,.13)' stroke-width='1.1'%3E%3Cpath d='M14 4Q24 4 24 14Q24 24 14 24Q4 24 4 14Q4 4 14 4ZM0 32Q10 32 10 42Q10 52 0 52Q-10 52 -10 42Q-10 32 0 32ZM28 32Q38 32 38 42Q38 52 28 52Q18 52 18 42Q18 32 28 32Z'/%3E%3C/g%3E%3Cg fill='rgba(217,164,65,.22)'%3E%3Ccircle cx='14' cy='14' r='1.5'/%3E%3Ccircle cx='0' cy='42' r='1.5'/%3E%3Ccircle cx='28' cy='42' r='1.5'/%3E%3C/g%3E%3C/svg%3E") center / 28px 56px, radial-gradient(ellipse at 50% 45%, #5A1812, #4A140F 45%, #2C0B08); }
}
/* the result card in Pallanguzhi maroon (SPEC 2.2), not the board family's red */
[data-game=pallanguzhi] { --fam-mid: #7C1F1A; --fam-deep: #4A1210; --fam-base: #5C1713; --fam-trim: #D9A441; --fam-bright: #F2C14E; --fam-edge: #9C6F1E; }   /* brass, not the family red: the strip's info chip is not mistaken for a warning */
/* the seed tally on the card: the SEEDS value sits on a brass medallion with a cowrie, and its bar is gold (your share of all the seeds) against maroon (theirs) */
[data-game=pallanguzhi] .nc-stat-bar { height: 10px; margin: 3px 0 2px; border-radius: 5px; background: #9A2F25; box-shadow: inset 0 0 0 1px rgba(0,0,0,.3), 0 0 0 1px rgba(246,219,146,.35); }
/* a loss or a draw: the shared cooler card, kept in this page's palette as a deep maroon-black with dimmed brass (SPEC 2.2: deep maroon on a loss), so it
   still reads apart from the win's warm maroon and gold */
/* fix round 3: the Seeds tile is the widest, so its gold-vs-maroon bar reads as a comparison and not a hairline */
[data-game=pallanguzhi] .nc-stat-tile:first-child { flex-grow: 1.8; }
/* the status strip sits on the maroon pane as one of the board's dark brass-edged plates (the white card was out of palette in the light theme), with a
   little room above the pane's bottom edge */
[data-game=pallanguzhi] .nc-strip { --nc-strip-bg: #2E0C09; --nc-strip-ink: #FBEFD9; --nc-strip-sub: #E8D3B5; --nc-invalid: #FF9A8A; border-color: #B8862E; border-top-color: #D9A441; height: 48px; margin-top: -54px; margin-bottom: 6px; }
[data-game=pallanguzhi] .nc-stat-bar > i { background: linear-gradient(#F6DB92, #D9A441 55%, #B07A1E); }
[data-game=pallanguzhi] .nc-stat-tile:first-child b { display: inline-flex; align-items: center; gap: 4px; padding: 1px 9px 1px 6px; border-radius: 999px; color: #3A2408; background: radial-gradient(circle at 35% 30%, #FBE7A8, #D9A441 60%, #9C6F1E); box-shadow: 0 0 0 1px #5A3A0C, 0 2px 4px rgba(0,0,0,.35); }
[data-game=pallanguzhi] .nc-stat-tile:first-child b::before { content: ""; width: 11px; height: 8px; border-radius: 50%; background: linear-gradient(#5A3A18, #5A3A18) center / 7px 1.5px no-repeat, radial-gradient(circle at 35% 30%, #FFFCF2, #EBD8AE 60%, #B8935A); box-shadow: 0 0 0 .5px #7E5C2E; }
/* the setup cover: "I play first / second" and "5 / 6 seeds a pit" share one line as two segmented choices, so the art band above keeps its height on a phone */
.pf-overlay.setup.cover .pair { display: flex; gap: 6px; width: min(100%, 440px); flex: none; }
.pf-overlay.setup.cover .pair > .row { flex: 1 1 0; width: auto; min-width: 0; }
@media (max-width: 599px) { .pf-overlay.setup.cover .pair .brk { display: block; } }
