/* Featured listing cards (holo foil). Shared by the game and the Market page. */
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.featured { display: grid; gap: 10px; }
.feat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.feat-head h2 { font: 700 14px/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; margin: 0; display: flex; align-items: center; gap: 8px; }
.feat-head h2 .spark { color: var(--gold); font-size: 16px; }
.feat-head .feat-meta { color: var(--muted); font-size: 13px; }
.feat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.feat {
  --foil: conic-gradient(from var(--spin), #f6d365, #fda085, #f093fb, #8fd3f4, #84fab0, #f6d365);
  position: relative; display: block; padding: 2px; border-radius: 14px; background: var(--foil);
  text-decoration: none; color: var(--ink); min-width: 0; isolation: isolate;
  box-shadow: 0 6px 22px -8px color-mix(in srgb, var(--gold) 55%, transparent);
  animation: spin 6s linear infinite; transition: transform .2s ease, box-shadow .2s ease;
}
@keyframes spin { to { --spin: 360deg; } }
.feat:hover, .feat:focus-visible { transform: translateY(-3px); box-shadow: 0 14px 30px -10px color-mix(in srgb, var(--gold) 75%, transparent); }
.feat-in {
  position: relative; overflow: hidden; height: 100%; border-radius: 12px; padding: 14px 14px 12px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--gold) 9%, var(--surface)), var(--surface) 55%);
  display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto 1fr auto; gap: 4px 12px; padding-top: 26px;
}
.feat-in::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.45) 48%, rgba(180,225,255,.25) 52%, transparent 65%); background-size: 260% 100%; background-position: 130% 0; transition: background-position .8s ease; }
.feat:hover .feat-in::after { background-position: -40% 0; }
.feat-av { grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 700 20px/1 var(--f-display); color: var(--gold-ink); background: radial-gradient(circle at 30% 30%, #fff6c9, var(--gold) 60%); box-shadow: inset 0 0 0 2px rgba(0,0,0,.08); }
.feat-name { font: 700 17px/1.2 var(--f-display); overflow-wrap: anywhere; align-self: end; }
.feat-host { font: 600 11px/1.3 var(--f-mono); color: var(--muted); letter-spacing: .02em; align-self: start; }
.feat-text { grid-column: 1 / -1; font-size: 14px; color: var(--ink); margin-top: 6px; overflow-wrap: anywhere; }
.feat-go { grid-column: 1 / -1; align-self: end; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 8px; padding: 9px 12px; font: 700 13px/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase; background: var(--ink); color: var(--bg); }
.feat:hover .feat-go { background: var(--accent); color: var(--surface); }
.feat-tag { position: absolute; top: 9px; right: 10px; font: 700 9px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); background: var(--gold); border-radius: 4px; padding: 3px 5px; z-index: 1; }
.feat-disc { color: var(--muted); font-size: 12px; margin: 0; }
@media (prefers-reduced-motion: reduce) { .feat { animation: none; } .feat, .feat-in::after { transition: none; } }

/* Quiet one-line strip shown while playing: no motion, no foil. */
.mkt-strip { display: flex; align-items: center; gap: 6px 12px; flex-wrap: wrap; min-width: 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 14px; }
.mkt-strip .strip-k { font: 600 10px/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); flex: none; }
.mkt-strip .strip-l { flex: 1 1 200px; min-width: 0; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mkt-strip .strip-l:hover b { text-decoration: underline; }
.mkt-strip .strip-t { color: var(--muted); }
.mkt-strip .strip-all { flex: none; font-weight: 700; font-size: 13px; color: var(--accent); text-decoration: none; }
.mkt-strip .strip-all:hover { text-decoration: underline; }

/* End-of-game showcase: every live listing in a swipeable row. */
.showcase { display: grid; gap: 10px; min-width: 0; }
.show-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 260px); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 12px; scrollbar-width: thin; }
.show-row > .feat { scroll-snap-align: start; }
.show-row.few { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); grid-auto-columns: auto; overflow: visible; }
.market-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
