/* Home page: the hand of game cards is the main piece */
.home-pick { margin: 36px 0 8px; }
.home-pick h2 { margin: 0 0 4px; font-size: 18px; font-weight: 500; color: var(--text-2); }
.home-hand { padding: 84px 20px 72px; overflow: visible; } /* room above for the lifted card; the outer cards may reach past the column */
body.home { overflow-x: clip; } /* ...but never make the page scroll sideways */
.home-hand .gcard { display: block; width: min(176px, 14.6vw); margin: 0 -14px; border-radius: 16px; text-decoration: none; } /* six cards fit the column at any width */
.home-hand .gcard .g-name { font-size: 14px; bottom: 14px; }
.home-hand .gcard .g-corner { font-size: 14px; }
.home-hand .gcard .g-art { font-size: 40px; }
.home-hand .gcard:hover, .home-hand .gcard:focus-visible { transform: translateY(-22px) rotate(0) scale(1.08); z-index: 5; box-shadow: 0 22px 40px rgba(0, 0, 0, .55); outline: none; }
.home-hand .gcard:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .home-hand .gcard { animation: deal .5s ease backwards; animation-delay: var(--d); }
}
.home-steps { max-width: 760px; }
@media (max-width: 760px) {
  .home-hand { padding: 56px 8px 48px; }
  .home-hand .gcard { width: 76px; margin: 0 -13px; } /* six games now */
  .home-hand .gcard .g-name { font-size: 9px; left: 5px; right: 5px; bottom: 6px; }
  .home-hand .gcard .g-corner { font-size: 10px; left: 8px; top: 7px; }
  .home-hand .gcard .g-art { font-size: 22px; }
}
.step-ico { font-weight: 600; }

/* Live demo next to the steps */
.live { position: relative; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-card); align-self: start; min-height: 440px; display: flex; flex-direction: column; gap: 12px; }
.live-top { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.live-dot { width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(135deg, var(--g1), var(--g2)); }
.live-box { margin: 0; min-height: 76px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--bg); font: 13px/1.6 ui-monospace, Consolas, monospace; white-space: pre-wrap; color: var(--text-2); }
.live-box::after { content: ''; display: inline-block; width: 7px; height: 14px; margin-left: 2px; vertical-align: -2px; background: var(--g1); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.live-btn { align-self: flex-start; padding: 9px 22px; border-radius: 8px; background: var(--accent); border: 1px solid var(--accent-edge); color: var(--on-accent); font-weight: 600; font-size: 14px; transition: transform .15s ease; }
.live.press .live-btn { transform: scale(.94); }
.live-res { opacity: 0; transform: translateY(10px); transition: opacity .35s ease, transform .35s ease; }
.live.done .live-res { opacity: 1; transform: none; }
.live-total small { display: block; color: var(--text-2); font-size: 13px; }
.live-total strong { font: 400 34px 'Inter Tight', Inter, sans-serif; letter-spacing: -.02em; }
.live-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; animation: rowIn .3s ease backwards; }
.live-row i { width: 20px; height: 28px; border-radius: 4px; background: linear-gradient(160deg, var(--g2), var(--g1)); flex: none; }
.live-row em { margin-left: auto; font-style: normal; font-weight: 600; }
@keyframes rowIn { from { opacity: 0; transform: translateX(-8px); } }
.home-steps { max-width: none; }
@media (max-width: 800px) { .live { min-height: 0; } }

/* Cards in the hand float gently once dealt */
@media (prefers-reduced-motion: no-preference) {
  .home-hand .gcard { animation: deal .5s ease backwards, bob 5s ease-in-out .7s infinite alternate; }
  .home-hand .gcard:nth-child(even) { animation-delay: var(--d), 1.4s; }
  .home-hand .gcard:hover, .home-hand .gcard:focus-visible { animation-play-state: running, paused; }
  @keyframes bob { from { translate: 0 0; } to { translate: 0 -8px; } }
}

.home-hand .gcard.has-art { border-radius: 0; }
.home-hand .gcard.has-art:hover, .home-hand .gcard.has-art:focus-visible { box-shadow: none; }

/* Links turn text dark on hover (a:hover); the labels on the cards must stay white and readable */
.home-hand .gcard, .home-hand .gcard:hover, .home-hand .gcard:focus-visible, .home-hand .gcard:visited { color: #fff; text-decoration: none; }
.home-hand .gcard .g-name { color: #fff; background: rgba(0, 0, 0, .68); }

.live-seg { margin-bottom: 12px; }
.live-seg .seg-btn { cursor: default; }


.hero-cta { margin: 18px 0 0; }
button.primary.big { padding: 12px 28px; font-size: 17px; }

/* Suggestion box: a plain bordered box, a short text and a form */
.suggest { margin: 56px 0 8px; padding: 28px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); display: grid; gap: 20px; }
.suggest h2 { margin: 0 0 6px; font-size: 21px; font-weight: 600; line-height: 1.25; }
.suggest p { margin: 0 0 10px; color: var(--text-2); line-height: 1.55; }
.suggest textarea { width: 100%; min-height: 120px; resize: vertical; padding: 12px 14px; font-size: 15px; border-radius: 8px; }
.suggest textarea:focus { border-color: var(--text-2); outline: 2px solid var(--focus); outline-offset: 1px; }
.sug-row { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.sug-row input { flex: 1 1 240px; min-width: 0; border-radius: 8px; padding: 9px 12px; }
.sug-row button { flex: none; border-radius: 8px; }
.sug-more { margin: 0; font-size: 14px; }
.sug-thanks { display: grid; place-items: center; gap: 8px; min-height: 170px; text-align: center; }
.sug-thanks p { margin: 0; font-size: 17px; color: var(--text); }
.sug-check { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--accent-edge); color: var(--accent-ink); font-size: 22px; font-weight: 700; }
@media (min-width: 860px) { .suggest { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); column-gap: 44px; align-items: start; } }
@media (max-width: 560px) { .suggest { padding: 20px 16px; } }

/* Version switch on the left, total on the right of the same line (home demo) */
.live-seg { margin-bottom: 12px; }
.live-seg .seg-btn { cursor: default; }
.live-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.live-head .live-seg { margin-bottom: 0; }
.live-total { text-align: right; }
.live-total strong { font-size: 30px; }

/* Quieter home: the cards are the one decoration; they are dealt in once and then stay still */
@media (prefers-reduced-motion: no-preference) {
  .home-hand .gcard { animation: deal .5s ease backwards; animation-delay: var(--d); }
  .home-hand .gcard:nth-child(even) { animation-delay: var(--d); }
}
.live { box-shadow: none; border-radius: 10px; }
.home-pick h2 { color: var(--text); font-size: 20px; font-weight: 600; }
.stats { margin: 4px 0 0; font-size: 14px; color: var(--text-2); }

/* The demo panel keeps one height while it types and fills in, and the steps beside it do not stretch to follow it */
.home .how-grid { align-items: start; }
.home .steps { align-content: start; grid-auto-rows: auto; gap: 0; padding: 0; }
@media (max-width: 800px) { .home .how-grid { align-items: start; } .home .steps { padding: 0; align-content: start; } }

/* The facts line: a little more presence, still plain (the numbers in bold, the freshness in the quieter colour) */
.stats { margin: 22px 0 34px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 17px; line-height: 1.5; color: var(--text); }
.stats strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.stats .when { color: var(--text-2); }

/* The left column (facts line, title and steps) sits at the bottom of the row, level with the bottom of the demo panel beside it */
.home .how-left { align-self: end; }
.home .how-left .stats { margin: 0 0 22px; padding-top: 0; border-top: 0; }
.home .how-left h2 { margin-top: 0; }
@media (max-width: 800px) { .home .how-left { align-self: start; } }

@media (max-width: 600px) {
  .home-hand { padding: 20px 12px 28px; }
  .home-hand .gcard { width: 100%; max-width: 118px; margin: 0; transform: none; animation: deal .5s ease backwards; animation-delay: var(--d); }
  .home-hand .gcard .g-name { font-size: 11px; left: 6px; right: 6px; bottom: 8px; }
  .home-hand .gcard .g-corner { font-size: 11px; left: 8px; top: 8px; }
  .home-hand .gcard:hover, .home-hand .gcard:focus-visible { transform: translateY(-4px) scale(1.04); }
}

/* Both blocks start at the same line at the top; the card count is the headline of the left column and gets more room */
.home .how-left { align-self: start; }
.home .how-left .stats { margin: 0 0 30px; font-size: 22px; line-height: 1.3; color: var(--text-2); }
.home .how-left .stats strong { font-size: 44px; line-height: 1.1; letter-spacing: -.02em; color: var(--text); }
@media (max-width: 800px) { .home .how-left .stats { margin-bottom: 22px; font-size: 18px; } .home .how-left .stats strong { font-size: 34px; } }
