/* /variations/ and /variations/<game>/ — what Tailwind utilities don't cover:
   logo plates, the hero logo pile, and on a game page the table that plays a
   hand (vd-), the hand rankings in short (vs-), the lesson tables (vt-), the
   lessons (vl-) and the practice game (vg-).
   The prefixes keep clear of Tailwind utilities such as .table. */

:root {
  --v-plate-hi: #4f46e5;
  --v-plate-mid: #312e81;
  --v-plate-lo: #211b57;
  --v-gold: #facc15;
  --v-page: #f6f6fb;
}

/* Family accents: set on a section, used by its eyebrow, chips and checks. */
.fam-holdem { --fam: #c2410c; --fam-soft: #fff1e6; --fam-ring: #fdba74; }
.fam-omaha { --fam: #0369a1; --fam-soft: #e8f4fc; --fam-ring: #7dd3fc; }
.fam-pineapple { --fam: #15803d; --fam-soft: #eaf7ee; --fam-ring: #86efac; }
.fam-draw { --fam: #be123c; --fam-soft: #fdecef; --fam-ring: #fda4af; }

.fam-text { color: var(--fam); }
.fam-dot { background: var(--fam); }
.fam-chip {
  background: var(--fam-soft);
  color: var(--fam);
}

/* ---- Logo plate: the app's purple felt behind a word-art logo ---------- */
.v-plate {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 110% at 50% 0%, var(--v-plate-hi) 0%, var(--v-plate-mid) 58%, var(--v-plate-lo) 100%);
}
.v-plate::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/images/background_diagonal_lines.svg");
  opacity: 0.5;
  pointer-events: none;
}
.v-plate > * { position: relative; }
.v-logo { filter: drop-shadow(0 10px 14px rgba(12, 8, 48, 0.45)); }

/* ---- Hero ------------------------------------------------------------- */
.v-hero {
  background:
    radial-gradient(60% 80% at 85% 30%, rgba(99, 102, 241, 0.45) 0%, rgba(49, 46, 129, 0) 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(250, 204, 21, 0.08) 0%, rgba(49, 46, 129, 0) 70%),
    #2b2780;
}
.v-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/images/background_diagonal_lines.svg");
  opacity: 0.6;
  pointer-events: none;
}

/* The pile of logos on the index hero. Each item sets --x --y --w --r --d. */
.v-pile {
  position: relative;
  aspect-ratio: 5 / 4;
  width: 100%;
}
.v-pile a {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  transform: rotate(var(--r));
  transition: transform 0.25s ease;
  animation: v-drop 0.7s cubic-bezier(0.2, 0.9, 0.25, 1.15) both;
  animation-delay: var(--d);
  border-radius: 1rem;
}
.v-pile a:hover,
.v-pile a:focus-visible {
  transform: rotate(0deg) scale(1.06);
  z-index: 5;
}
.v-pile a:focus-visible { outline: 3px solid var(--v-gold); outline-offset: 4px; }
.v-pile img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 20px rgba(10, 6, 40, 0.5));
}
@keyframes v-drop {
  from { opacity: 0; transform: translateY(-28px) rotate(calc(var(--r) - 8deg)) scale(0.92); }
  to { opacity: 1; transform: rotate(var(--r)); }
}

/* ---- Index: sticky family nav ---------------------------------------- */
.v-jump { scrollbar-width: none; }
.v-jump::-webkit-scrollbar { display: none; }
.v-jump a[aria-current="true"] {
  background: #1e1b4b;
  color: #fff;
}
.v-jump a[aria-current="true"] .fam-dot { box-shadow: 0 0 0 2px #fff; }

/* ---- Game cards -------------------------------------------------------- */
.v-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.v-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -18px rgba(30, 27, 75, 0.45);
}
.v-card:hover .v-logo { transform: scale(1.05) rotate(-1.5deg); }
.v-card .v-logo { transition: transform 0.3s ease; }
.v-card:focus-visible { outline: 3px solid #6366f1; outline-offset: 3px; }

/* ---- Compare table ----------------------------------------------------- */
.v-table th[scope="row"] { position: sticky; left: 0; z-index: 1; }

/* Card text: "K♥" in captions and result lines */
.cg { font-weight: 700; white-space: nowrap; letter-spacing: -0.01em; }
.cg-r { color: #dc2626; }
.cg-k { color: #111827; }

/* ======================================================================
   Game page
   ====================================================================== */
.vp { background: var(--v-page); color: #111827; }
.vp-wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.vp-sec { padding: 44px 0; }
.vp-sec + .vp-sec { border-top: 1px solid #e5e7eb; }
.vp h2 { font-family: var(--font-heading); font-size: 28px; font-weight: 700; line-height: 1.2; }
.vp-lead { color: #4b5563; margin: 8px 0 0; line-height: 1.55; }
.vp-note { color: #6b7280; font-size: 14px; line-height: 1.55; margin: 18px auto 0; max-width: 32rem; text-align: center; }
.vp-more { display: inline-flex; gap: 4px; align-items: center; margin-top: 16px; font-weight: 600; color: #4338ca; font-size: 15px; }
.vp-more:hover { color: #312e81; }
#how .vp-more { display: flex; justify-content: center; }
@media (max-width: 640px) {
  .vp-wrap { padding: 0 16px; }
  .vp-sec { padding: 32px 0; }
  .vp h2 { font-size: 24px; }
}

/* ---- More games ---- */
.vp-fam { display: grid; gap: 12px; margin-top: 18px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.vp-fam a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; border: 1px solid #e5e7eb; background: #fff; transition: border-color 0.2s; }
.vp-fam a:hover { border-color: #a5b4fc; }
.vp-plate { width: 76px; height: 52px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.vp-plate img { max-width: 64px; max-height: 42px; object-fit: contain; }
.vp-fam b { display: block; font-size: 15px; }
.vp-fam span span { color: #6b7280; font-size: 13px; }
.vp-end { text-align: center; padding: 48px 0 56px; border-top: 1px solid #e5e7eb; }
.vp-end p { color: #4b5563; margin: 8px 0 0; }

/* ======================================================================
   How a hand goes: the table (vd-)
   ====================================================================== */
.vd { width: 100%; max-width: 560px; margin: 0 auto; }
.vd-head { display: flex; justify-content: flex-end; margin-bottom: 12px; }
.vd-play { font: 700 15px/1 var(--font-body); color: #312e81; background: transparent; border: 2px solid #a5b4fc; border-radius: 10px; padding: 9px 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.vd-play:hover { background: #eef2ff; }
.vd-play:focus-visible,
.vd-step:focus-visible { outline: 3px solid #6366f1; outline-offset: 2px; }

/* Card size: a seat's cards are --cw wide; the chips in front of a seat sit
   just past its right edge, which depends on how many cards it holds (--n). */
.vd-table { --cw: 52px; --cg: 6px; position: relative; padding: 34px 0; }
.vd-felt { position: relative; border-radius: 56px; border: 7px solid #d9a03a; background: radial-gradient(120% 100% at 50% 40%, #4f8f25, #2c6212); box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.35), 0 12px 28px -12px rgba(0, 0, 0, 0.5); padding: 46px 18px; }
.vd-table.is-draw .vd-felt { padding: 58px 18px; }
.vd-felt-label { display: grid; place-items: center; min-height: 28px; color: #bef264; font: 700 14px/1 var(--font-body); margin-bottom: 8px; }
.vd-table.is-draw .vd-felt-label { margin-bottom: 0; }
.vd-felt-label > * { grid-area: 1 / 1; transition: opacity 0.25s; }
.vd-lbl { opacity: 0.85; text-align: center; }
.vd-felt.has-pot .vd-lbl,
.vd-felt.in-hand .vd-lbl { opacity: 0; }
.vd-pot { display: flex; align-items: center; gap: 6px; opacity: 0; }
.vd-felt.has-pot .vd-pot { opacity: 1; }

/* chips: a stack of the app's chip images, each 3px above the last */
.vd-stack { position: relative; display: inline-block; width: 22px; height: 22px; flex-shrink: 0; }
.vd-stack img { position: absolute; left: 0; bottom: calc(var(--i) * 3px); width: 22px; height: 22px; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.45)); }
.vd-amt { font: 700 12px/1 var(--font-body); color: #fff; background: rgba(0, 0, 0, 0.38); padding: 4px 7px; border-radius: 999px; white-space: nowrap; }
.vd-amt:empty { display: none; }
.vd-wager { position: absolute; z-index: 2; left: calc(50% + (var(--n) * var(--cw) + (var(--n) - 1) * var(--cg)) / 2 + 12px); display: flex; align-items: center; gap: 5px; opacity: 0; transition: opacity 0.2s, left 0.25s; pointer-events: none; }
.vd-wager.on { opacity: 1; }
.vd-wager.won .vd-amt { background: var(--v-gold); color: #422006; }
.vd-wager[data-who="you"] { bottom: 46px; }
.vd-wager[data-who="them"] { top: 46px; }
.vd-fly { position: absolute; z-index: 3; pointer-events: none; }

.vd-boards { display: grid; gap: 10px; justify-content: center; }
.vd-row { display: flex; gap: 7px; justify-content: center; position: relative; }
.vd-bw { position: absolute; right: calc(100% + 6px); top: 50%; transform: translateY(-50%) scale(0.85); opacity: 0; transition: opacity 0.3s, transform 0.3s; font: 700 11px/1 var(--font-body); color: #422006; background: var(--v-gold); padding: 5px 7px; border-radius: 999px; white-space: nowrap; }
.vd-bw.on { opacity: 1; transform: translateY(-50%) scale(1); }
.vd-slot { width: 52px; aspect-ratio: 3 / 4; border-radius: 6px; border: 1.5px solid rgba(0, 0, 0, 0.35); background: rgba(0, 0, 0, 0.12); position: relative; }
.vd-seat { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: var(--cg); align-items: flex-end; z-index: 2; }
.vd-you { bottom: 0; }
.vd-them { top: 0; }
.vd-who { position: absolute; top: 50%; transform: translateY(-50%); right: calc(100% + 10px); font: 700 12px/1 var(--font-body); color: #fff; background: rgba(15, 12, 50, 0.75); padding: 5px 8px; border-radius: 999px; white-space: nowrap; }
.vd-hole { width: var(--cw); aspect-ratio: 3 / 4; position: relative; flex-shrink: 0; }

/* a card: back and face, flipped in. Marks fade the face image, not the 3D
   container, or the back shows through. */
.vd-card { position: absolute; inset: 0; perspective: 600px; }
.vd-in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 0.45s cubic-bezier(0.3, 0.8, 0.3, 1); }
.vd-card.up .vd-in { transform: rotateY(180deg); }
.vd-card img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 6px; backface-visibility: hidden; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); }
.vd-card img.face { transform: rotateY(180deg); transition: opacity 0.35s, filter 0.35s, box-shadow 0.35s; }
.vd-card.enter { animation: vd-deal 0.35s ease-out both; }
@keyframes vd-deal {
  from { opacity: 0; transform: translateY(-14px) scale(0.9); }
  to { opacity: 1; transform: none; }
}
.vd-card.is-make img.face { box-shadow: 0 0 0 2.5px #f5c542, 0 0 12px rgba(245, 197, 66, 0.65); }
.vd-card.is-low img.face { box-shadow: 0 0 0 2.5px #38bdf8, 0 0 12px rgba(56, 189, 248, 0.6); }
.vd-card.is-fade img.face { opacity: 0.32; filter: saturate(0.4); }

/* the steps, then what the current one says */
.vd-steps { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: center; margin: 16px 0 0; padding: 0; list-style: none; }
.vd-steps li { display: flex; align-items: center; gap: 6px; }
.vd-steps li + li::before { content: "›"; color: #818cf8; font-size: 12px; }
.vd-step { font: 700 13px/1 var(--font-body); padding: 8px 11px; border-radius: 9px; border: 1.5px solid transparent; cursor: pointer; background: #e0e7ff; color: #312e81; display: inline-flex; gap: 5px; align-items: center; }
.vd-step.is-bet { background: transparent; color: #4338ca; font-weight: 600; padding: 8px 6px; }
.vd-step[aria-current="true"] { border-color: #ca8a04; background: #fef9c3; color: #713f12; }
.vd-step.later { opacity: 0.45; }
.vd-caps { text-align: center; min-height: 48px; margin: 14px auto 0; max-width: 30rem; color: #4b5563; line-height: 1.5; font-size: 15px; }
.vd-cap { margin: 0; }
.vd-cap-k { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.vd-results { margin: 6px auto 0; max-width: 30rem; display: grid; gap: 8px; }
.vd-res { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; justify-content: center; font-size: 15px; color: #111827; animation: vd-rise 0.3s ease-out both; }
.vd-res .b { font-weight: 600; color: #6b7280; }
.vd-res .hand-name { font-weight: 700; }
.vd-res.is-other { color: #4b5563; }
.vd-res.is-other .hand-name { font-weight: 600; }
.vd-tag { font: 700 12px/1 var(--font-body); padding: 6px 9px; border-radius: 999px; background: #fef3c7; color: #92400e; }
.vd-tag.is-low { background: #e0f2fe; color: #075985; }
@keyframes vd-rise {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  .vd-table { --cw: 44px; }
  .vd-table.n-4 { --cw: 40px; --cg: 5px; }
  .vd-table.n-5,
  .vd-table.n-6 { --cw: 34px; --cg: 3px; }
  .vd-slot { width: 44px; }
  .vd-row { gap: 5px; }
  .vd-felt { border-radius: 44px; padding: 40px 10px; }
  .vd-table.is-draw .vd-felt { padding: 52px 10px; }
  .vd-steps li + li::before { display: none; }
  .vd-steps { gap: 5px; }
  .vd-step { padding: 7px 9px; font-size: 12px; }
  .vd-bw { font-size: 10px; padding: 4px 5px; right: calc(100% + 4px); }
  .vd-who { font-size: 11px; padding: 4px 6px; right: calc(100% + 6px); }
  .vd-wager { left: calc(50% + (var(--n) * var(--cw) + (var(--n) - 1) * var(--cg)) / 2 + 6px); gap: 3px; }
  .vd-stack,
  .vd-stack img { width: 18px; height: 18px; }
  .vd-amt { font-size: 11px; padding: 3px 6px; }
}

/* ======================================================================
   Hand rankings in short (vs-), above "Making a hand"
   ====================================================================== */
.vs { margin-top: 14px; display: grid; gap: 28px; }
.vs.is-two { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .vs.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; } }
.vs h3 { font-family: var(--font-heading); font-size: 18px; font-weight: 700; }
.vs-lead { color: #4b5563; line-height: 1.55; margin: 4px 0 0; }
.vs-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); counter-reset: vs; }
.vs:not(.is-two) .vs-list { column-gap: 32px; }
@media (min-width: 760px) { .vs:not(.is-two) .vs-list { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: column; grid-template-rows: repeat(5, auto); } }
.vs-list li { counter-increment: vs; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #ececf3; }
.vs-name { font-weight: 600; font-size: 15px; display: flex; gap: 10px; align-items: baseline; }
.vs-tag { font: 700 11px/1 var(--font-body); color: #92400e; background: #fef3c7; padding: 4px 7px; border-radius: 999px; align-self: center; }
.vs-name::before { content: counter(vs); font: 700 12px/1 var(--font-heading); color: #9ca3af; min-width: 1.1rem; text-align: right; }
.vs-cards { display: flex; gap: 2px; flex-shrink: 0; }
.vs-cards img { width: 24px; height: auto; border-radius: 3px; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.22); }
.vs-cards img.is-fade { opacity: 0.4; }
.vs-cards img.is-bad { box-shadow: 0 0 0 1.5px #ef4444; }

/* In an article (.prose), the site's photo styles would space these cards out. */
.prose ol.vs-list { margin: 12px 0 0; padding: 0; list-style: none; }
.prose .vs-list li { margin: 0; }
.prose .vs-cards img,
.prose .vc-cards img,
.prose .vs-cards img:hover,
.prose .vc-cards img:hover { margin: 0; cursor: default; scale: none; transform: none; }
.prose .vs-cards img { border-radius: 3px; }

/* ---- The same cards in each game (vc-), in the rankings guide ---- */
.vc { margin: 20px 0; border: 1px solid #e5e7eb; border-radius: 14px; overflow: hidden; background: #fff; font-size: 14px; }
.vc-row { display: grid; grid-template-columns: 9.5rem repeat(4, minmax(0, 1fr)); gap: 10px; align-items: center; padding: 12px 14px; border-top: 1px solid #f1f1f5; }
.vc-head { border-top: 0; background: #f9fafb; font: 700 11px/1.3 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: #6b7280; }
.vc-cards { display: flex; gap: 2px; }
.vc-cards img { width: 28px; height: auto; border-radius: 3px; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.25); }
.vc-cell { display: flex; flex-direction: column; gap: 3px; color: #111827; line-height: 1.35; }
.vc-cell b { font-weight: 600; }
.vc-cell em { font: 700 11px/1 var(--font-body); font-style: normal; padding: 3px 7px; border-radius: 999px; align-self: flex-start; }
.vc-cell em.is-best { background: #dcfce7; color: #166534; }
.vc-cell em.is-bad { background: #fee2e2; color: #991b1b; }
.vc-cell em.is-none { background: #f3f4f6; color: #4b5563; }
@media (max-width: 760px) {
  .vc-head { display: none; }
  .vc-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; align-items: start; }
  .vc-cards { grid-column: 1 / -1; }
  .vc-cell::before { content: attr(data-l); font: 700 10px/1.2 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: #9ca3af; }
}

/* ======================================================================
   Lesson tables (vt-): the board on the felt, your seat at the bottom edge,
   theirs at the top. Shared by "Making a hand" and "Find your best hand".
   ====================================================================== */
.vt { display: grid; justify-items: center; max-width: 560px; margin: 18px auto 0; }
.vt-felt { width: 100%; display: grid; justify-items: center; align-content: center; gap: 8px; min-height: 92px; border-radius: 48px; border: 6px solid #d9a03a; background: radial-gradient(120% 100% at 50% 40%, #4f8f25, #2c6212); box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.35), 0 10px 24px -12px rgba(0, 0, 0, 0.5); padding: 22px 14px; }
.vt.has-you .vt-felt { padding-bottom: 46px; }
.vt.has-them .vt-felt { padding-top: 46px; }
.vt-row { display: flex; gap: 6px; justify-content: center; position: relative; }
.vt-bn { position: absolute; right: calc(100% + 6px); top: 50%; transform: translateY(-50%); font: 700 11px/1 var(--font-body); color: #422006; background: var(--v-gold); width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; }
.vt-lab { color: #d9f99d; font: 700 13px/1.3 var(--font-body); }
.vt-early { position: relative; display: block; }
.vt-early-tag { position: absolute; left: 50%; bottom: calc(100% + 4px); transform: translateX(-50%); font: 700 10px/1 var(--font-body); letter-spacing: 0.04em; text-transform: uppercase; color: #422006; background: var(--v-gold); padding: 3px 6px; border-radius: 999px; white-space: nowrap; }
.vt-felt:has(.vt-early) { padding-top: 34px; }
.vt-slot { width: 50px; aspect-ratio: 50 / 67; border-radius: 6px; border: 1.5px dashed rgba(255, 255, 255, 0.3); background: rgba(0, 0, 0, 0.12); }
.vt-seat { display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; z-index: 2; }
.vt-seat.is-you { margin-top: -34px; }
.vt-seat.is-them { margin-bottom: -34px; flex-direction: column-reverse; }
.vt-who { font: 700 12px/1 var(--font-body); color: #fff; background: rgba(15, 12, 50, 0.82); padding: 5px 8px; border-radius: 999px; white-space: nowrap; }
.vt-cards { display: flex; gap: 6px; }
.vt-c { position: relative; display: block; width: 50px; flex-shrink: 0; border-radius: 6px; transition: transform 0.2s; }
.vt-c img { display: block; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); transition: filter 0.3s, opacity 0.3s, box-shadow 0.3s; }
.vt-c.is-make img { box-shadow: 0 0 0 2.5px #f5c542, 0 0 12px rgba(245, 197, 66, 0.65); }
.vt-c.is-low img { box-shadow: 0 0 0 2.5px #3b82f6, 0 0 12px rgba(59, 130, 246, 0.5); }
.vt-c.is-trap img,
.vt-c.is-bad img { box-shadow: 0 0 0 2.5px #ef4444, 0 0 10px rgba(239, 68, 68, 0.45); }
.vt-c.is-fade img { filter: brightness(0.6) saturate(0.15); opacity: 0.9; }
.vt-c.is-gone img { filter: grayscale(1) brightness(0.9); opacity: 0.45; }
.vt-c.is-gone::after { content: ""; position: absolute; left: -3px; right: -3px; top: 50%; height: 2.5px; background: #6b7280; transform: rotate(-24deg); border-radius: 2px; }
@media (max-width: 640px) {
  .vt-felt { border-radius: 36px; border-width: 5px; padding-left: 6px; padding-right: 6px; }
  .vt-c, .vt-slot { width: 44px; }
  .vt-cards, .vt-row { gap: 4px; }
  .vt-who { font-size: 11px; padding: 4px 7px; }
  .vt-bn { width: 18px; height: 18px; font-size: 10px; right: calc(100% + 4px); }
}

/* ======================================================================
   Making a hand: lessons (vl-)
   ====================================================================== */
.vl-list { display: grid; gap: 16px; margin-top: 20px; }
.vl { background: #fff; border: 1px solid #e5e7eb; border-radius: 18px; padding: 22px; }
.vl h3 { font-family: var(--font-heading); font-size: 19px; font-weight: 700; line-height: 1.3; }
.vl-rule { color: #4b5563; margin: 6px 0 0; line-height: 1.55; }
.vl-lines { display: grid; gap: 8px; margin-top: 18px; }
.vl-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 15px; text-align: left; width: 100%; font-family: inherit; color: inherit; background: none; border: 0; padding: 0; }
button.vl-line { border: 1px solid #e5e7eb; border-radius: 12px; padding: 10px 12px; cursor: pointer; background: #fff; transition: border-color 0.2s, box-shadow 0.2s, opacity 0.2s; }
button.vl-line[aria-pressed="false"] { opacity: 0.75; }
button.vl-line[aria-pressed="false"]:hover { opacity: 1; border-color: #c7d2fe; }
button.vl-line[aria-pressed="true"] { border-color: #6366f1; box-shadow: 0 0 0 1px #6366f1; }
button.vl-line.is-trap[aria-pressed="true"] { border-color: #ef4444; box-shadow: 0 0 0 1px #ef4444; }
button.vl-line.is-low[aria-pressed="true"],
button.vl-line.is-none[aria-pressed="true"] { border-color: #3b82f6; box-shadow: 0 0 0 1px #3b82f6; }
button.vl-line:focus-visible,
.vl-again:focus-visible,
.vg-btn:focus-visible,
.vg button.vt-c:focus-visible,
.vg-seatbtn:focus-visible { outline: 3px solid #6366f1; outline-offset: 2px; }
.vl-lab { font: 700 11px/1.2 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: #6b7280; min-width: 4.2rem; }
.vl-tag { font: 700 12px/1 var(--font-body); padding: 6px 9px; border-radius: 999px; white-space: nowrap; }
.vl-tag.is-ok { background: #dcfce7; color: #166534; }
.vl-tag.is-no { background: #fee2e2; color: #991b1b; }
.vl-tag.is-lose { background: #f3f4f6; color: #4b5563; }
.vl-tag.is-best { background: #fef3c7; color: #92400e; }
.vl-tag.is-split { background: #e0e7ff; color: #3730a3; }
.vl-name { font-weight: 700; }
.vl-name.is-struck { text-decoration: line-through; text-decoration-thickness: 2px; color: #b91c1c; }
.vl-five { display: flex; gap: 2px; margin-left: auto; }
.vl-five img { width: 24px; height: auto; border-radius: 3px; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.25); }
.vl-why { color: #4b5563; line-height: 1.55; margin: 12px 0 0; }
.vl-why.is-sub { margin: -2px 0 6px; font-size: 14px; }
.vl-note { margin: 12px 0 0; font-weight: 600; }
.vl-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; padding-top: 12px; border-top: 1px solid #f1f1f5; }
.vl-again { border: 0; background: none; color: #4338ca; font: 600 15px/1 var(--font-body); cursor: pointer; padding: 4px 0; }
.vl-count { color: #9ca3af; font-size: 13px; }
@media (max-width: 640px) {
  .vl { padding: 16px; border-radius: 14px; }
  .vl-five { margin-left: 0; width: 100%; }
  .vl-lab { min-width: 0; }
}

/* ======================================================================
   Find your best hand (vg-)
   ====================================================================== */
.vg { background: #fff; border: 1px solid #e5e7eb; border-radius: 18px; padding: 22px; margin-top: 20px; }
.vg-step { display: flex; gap: 6px; justify-content: center; margin-top: 16px; }
.vg button.vt-c { border: 0; padding: 0; background: none; cursor: pointer; }
.vg button.vt-c:disabled { cursor: default; }
.vg .vt-c.is-sel { transform: translateY(-8px); }
.vg .vt-c.is-sel img { box-shadow: 0 0 0 2.5px #6366f1, 0 6px 14px -4px rgba(49, 46, 129, 0.55); }
.vg .vt-c.is-off img { filter: brightness(0.6) saturate(0.15); opacity: 0.9; }
.vg-seatbtn { border: 2px solid transparent; background: none; padding: 4px; border-radius: 12px; cursor: pointer; transition: border-color 0.2s; }
.vg-seatbtn:hover:not(:disabled) { border-color: #a5b4fc; }
.vg-seatbtn:disabled { cursor: default; }
.vg-ask { margin: 18px 0 0; font-weight: 700; text-align: center; min-height: 1.5em; }
.vg-fb { margin: 8px 0 0; text-align: center; line-height: 1.5; color: #374151; min-height: 1.5em; }
.vg-fb.is-right { color: #15803d; font-weight: 600; }
.vg-fb.is-wrong { color: #b91c1c; }
.vg-fb .vl-five { display: inline-flex; vertical-align: middle; margin: 0 0 0 6px; width: auto; }
.vg-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; }
.vg-btn { font: 600 15px/1 var(--font-body); color: #4338ca; background: #fff; border: 1px solid #c7d2fe; border-radius: 10px; padding: 10px 14px; cursor: pointer; }
.vg-btn:hover { border-color: #6366f1; }
.vg-btn.is-main { background: #6366f1; border-color: #6366f1; color: #fff; box-shadow: 0 2px 0 #3730a3; }
.vg-count { color: #9ca3af; font-size: 13px; text-align: center; margin: 10px 0 0; }
@media (max-width: 640px) {
  .vg { padding: 16px 10px; border-radius: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .vt-c, .vt-c img, button.vl-line { transition: none; }
  .v-pile a { animation: none; }
  .v-card,
  .v-card .v-logo,
  .v-pile a { transition: none; }
  .vd-in,
  .vd-card.enter,
  .vd-res,
  .vd-wager { transition: none; animation: none; }
  html { scroll-behavior: auto; }
}
