/* Base rules for a few place-page classes, loaded right after play.css on purpose. These pages once shared class
   names with play mode's HUD and were styled partly by its rules; the names are their own now, and this file
   keeps those rules at the same place in the cascade so the pages look exactly as before. Not copied: the HUD
   goat card's fixed position (it pushed the goat tiles out of place) and the button hover tint on .btn. */
.pl-entry button { flex: 1; padding: 10px 12px; border: 0; border-radius: 11px; cursor: pointer; font-weight: 600; font-size: 13px;
  background: rgba(42, 32, 24, 0.08); transition: background 0.15s; }
@media (hover: hover) { .pl-entry button:not(.btn):hover:not(:disabled) { background: rgba(42, 32, 24, 0.14); } }
.pl-entry button:disabled { opacity: 0.45; cursor: default; }
.pl-seg { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--line); }
.pl-seg button { padding: 7px 12px; border: 0; border-radius: 9px; background: transparent; cursor: pointer; font-weight: 600; color: var(--ink-2); }
.pl-seg button[aria-selected="true"] { background: var(--ink); color: var(--paper-solid); }
.pl-entry { display: grid; grid-template-columns: 38px 1fr; gap: 10px; padding: 10px; border-radius: 12px; background: rgba(42, 32, 24, 0.05); }
.pl-entry b { font-weight: 600; }
.pl-entry span { font: 500 12px var(--mono); color: var(--ink-3); }
.pl-entry p { margin: 2px 0 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }
.pl-entry button { margin-top: 8px; padding: 7px 10px; font-size: 12px; }
.pl-hint { margin: 14px 0 0; font-size: 12.5px; color: var(--ink-2); }

/* the "?" beside a number (src/ui/hint.js): one or two plain sentences, on hover, focus or tap. The words are shown by the one tooltip layer (src/ui/tip.js, #tip below), not by a pseudo-element
   of the "?", which the card cut off and the sticky head covered (W17, UX1 item 8). 18 px with a 26 px area for a mouse; 44 px for a finger (places.css, the 600 px block). */
.qhint { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; margin-left: 5px;
  border-radius: 50%; background: rgba(42, 32, 24, 0.08); color: var(--ink-2); font: 600 10px/1 var(--mono); cursor: help; vertical-align: middle; transition: background 0.15s, color 0.15s; }
@media (min-width: 901px) and (pointer: fine) {
  .qhint { width: 18px; height: 18px; font-size: 11px; }
  .qhint::before { content: ""; position: absolute; inset: -4px; }
}
@media (hover: hover) { .qhint:hover { background: var(--ink); color: var(--paper-solid, #fff); } }
.qhint:focus-visible, .qhint[aria-describedby] { background: var(--ink); color: var(--paper-solid, #fff); }
#tip { position: fixed; z-index: 95; left: 0; top: 0; box-sizing: border-box; width: max-content; max-width: min(280px, calc(100vw - 32px)); padding: 8px 10px; border-radius: 10px; pointer-events: none;
  background: var(--ink); color: var(--paper-solid, #fff); font: 400 12.5px/1.45 var(--body, system-ui); text-align: left; text-transform: none; letter-spacing: 0; white-space: normal; box-shadow: 0 6px 20px rgba(42, 32, 24, 0.25);
  animation: tip-in 0.12s ease-out; }
#tip[hidden] { display: none; }
/* FX7 (VW11 N-4 on FX6): the small arrow that tip.js places (data-side and --arrow, from src/ui/tipPlace.js): a square of the tip's own colour turned 45 degrees, its centre on the tip's edge,
   at the centre of the element the tip explains. --arrow is kept 12 px inside the rounded corners. */
#tip::after { content: ""; position: absolute; width: 8px; height: 8px; background: inherit; transform: rotate(45deg); }
#tip[data-side="above"]::after { left: calc(var(--arrow, 50%) - 4px); bottom: -4px; }
#tip[data-side="below"]::after { left: calc(var(--arrow, 50%) - 4px); top: -4px; }
#tip[data-side="right"]::after { left: -4px; top: calc(var(--arrow, 50%) - 4px); }
#tip:not([data-side="above"]):not([data-side="below"]):not([data-side="right"])::after { display: none; }
@keyframes tip-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #tip { animation: none; } .qhint { transition: none; } }
/* digits that keep their width, so a number does not jitter */
/* FE-CHECK-1113 F8: a touch screen wider than 600 px (a phone on its side, a tablet) also gets the 44 px area around the "?" */
@media (pointer: coarse) { .qhint::before { content: ""; position: absolute; inset: -15px; } }
