/* Public starter pages: /games and /games/:key. Cream paper, ceramic covers, one terracotta action. */
.vd-app .mk-page { --mk-accent: #e7bc57; display: flex; flex-direction: column; gap: 28px; padding-top: 12px; }
.vd-app .mk-page h1, .vd-app .mk-page h2, .vd-app .mk-page h3 { text-wrap: balance; font-weight: 750; }
.vd-app .mk-page > *, .vd-app .mk-hero > * { min-width: 0; }
.vd-app .mk-page .lc-back { align-self: flex-start; }

/* Landing hero */
.vd-app .mk-hero { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 28px 22px 22px; border-radius: 34px; background: radial-gradient(120% 90% at 85% 0%, #f6dfa4 0%, transparent 55%), linear-gradient(180deg, #fffefa, #f6ecd8); box-shadow: var(--lc-shadow-lift); overflow: hidden; }
.vd-app .mk-hero h1 { margin: 0 0 10px; font-size: clamp(2.4rem, 9vw, 4.6rem); line-height: 1; font-weight: 750; letter-spacing: -.045em; }
.vd-app .mk-hero h1 span { display: block; color: var(--vd-action); }
.vd-app .mk-hero-copy > p { margin: 0 0 22px; max-width: 30ch; font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: var(--vd-muted); }
.vd-app .mk-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.vd-app .mk-hero-actions .lc-pill { min-height: 52px; }
.vd-app .mk-roll { gap: 12px; padding-left: 14px; }

.vd-app .mk-die { position: relative; display: grid; grid-template: repeat(3, 1fr) / repeat(3, 1fr); width: 30px; height: 30px; padding: 5px; border-radius: 9px; background: #fff; box-shadow: inset 0 0 0 2px #263b58; flex: none; }
.vd-app .mk-die i { width: 5px; height: 5px; margin: auto; border-radius: 50%; background: #263b58; opacity: 0; }
.vd-app .mk-die[data-face="1"] i:nth-child(5),
.vd-app .mk-die[data-face="2"] i:nth-child(1), .vd-app .mk-die[data-face="2"] i:nth-child(9),
.vd-app .mk-die[data-face="3"] i:nth-child(1), .vd-app .mk-die[data-face="3"] i:nth-child(5), .vd-app .mk-die[data-face="3"] i:nth-child(9),
.vd-app .mk-die[data-face="4"] i:nth-child(1), .vd-app .mk-die[data-face="4"] i:nth-child(3), .vd-app .mk-die[data-face="4"] i:nth-child(7), .vd-app .mk-die[data-face="4"] i:nth-child(9),
.vd-app .mk-die[data-face="5"] i:nth-child(1), .vd-app .mk-die[data-face="5"] i:nth-child(3), .vd-app .mk-die[data-face="5"] i:nth-child(5), .vd-app .mk-die[data-face="5"] i:nth-child(7), .vd-app .mk-die[data-face="5"] i:nth-child(9),
.vd-app .mk-die[data-face="6"] i:nth-child(1), .vd-app .mk-die[data-face="6"] i:nth-child(3), .vd-app .mk-die[data-face="6"] i:nth-child(4), .vd-app .mk-die[data-face="6"] i:nth-child(6), .vd-app .mk-die[data-face="6"] i:nth-child(7), .vd-app .mk-die[data-face="6"] i:nth-child(9) { opacity: 1; }

.vd-app .mk-result { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 10px 10px 10px 10px; border-radius: 22px; background: #fff; box-shadow: var(--lc-shadow); max-width: 440px; }
.vd-app .mk-result[hidden] { display: none; }
.vd-app .mk-result img { width: 72px; height: 54px; flex: none; border-radius: 14px; object-fit: cover; }
.vd-app .mk-result div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.vd-app .mk-result strong { font-size: 1.05rem; letter-spacing: -.01em; }
.vd-app .mk-result span { font-size: .85rem; color: var(--vd-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.vd-app .mk-fan { position: relative; height: 170px; }
.vd-app .mk-fan-card { position: absolute; width: 58%; max-width: 330px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 22px; box-shadow: 0 2px 4px #2432490d, 0 18px 34px -10px #24324944; border: 4px solid #fffefa; }
.vd-app .mk-fan-1 { left: 2%; top: 22px; rotate: -8deg; }
.vd-app .mk-fan-2 { left: 21%; top: 0; rotate: 2deg; z-index: 1; }
.vd-app .mk-fan-3 { right: 2%; top: 30px; rotate: 9deg; }

/* Two ways */
.vd-app .mk-ways { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.vd-app .mk-ways li { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: var(--lc-radius); background: #fffefa; box-shadow: var(--lc-shadow); }
.vd-app .mk-ways .lc-art { width: 110px; }
.vd-app .mk-ways div { display: flex; flex-direction: column; gap: 2px; }
.vd-app .mk-ways strong { font-size: 1.05rem; }
.vd-app .mk-ways span { color: var(--vd-muted); font-size: .95rem; }

/* Shelf */
.vd-app .mk-shelf-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; scroll-margin-top: 80px; }
.vd-app .mk-shelf-head h2 { margin: 0 auto 0 0; font-size: clamp(1.6rem, 4vw, 2.2rem); letter-spacing: -.03em; }
.vd-app .mk-shelf-head .lc-segment-filter { max-width: 100%; overflow-x: auto; }
.vd-app .mk-grid { display: grid; gap: 22px 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.vd-app .mk-tile { position: relative; display: flex; flex-direction: column; gap: 12px; }
.vd-app .mk-tile[hidden] { display: none; }
.vd-app .mk-tile-art { display: block; aspect-ratio: 4 / 3; border-radius: var(--lc-radius); overflow: hidden; background: #f1e7d6; box-shadow: var(--lc-shadow); transition: transform 320ms var(--vd-ease), box-shadow 320ms; }
.vd-app .mk-tile-art:hover { transform: translateY(-5px) scale(1.012); box-shadow: var(--lc-shadow-lift); }
.vd-app .mk-tile-art .vd-game-illustration, .vd-app .mk-tile-art .club-game-art { width: 100%; height: 100%; object-fit: cover; display: block; }
.vd-app .mk-tile-body { padding: 0 52px 0 4px; }
.vd-app .mk-tile-body h3 { margin: 0 0 2px; font-size: 1.15rem; letter-spacing: -.02em; }
.vd-app .mk-tile-body h3 a { color: inherit; text-decoration: none; }
.vd-app .mk-tile-body p { margin: 0 0 6px; color: var(--vd-muted); font-size: .92rem; }
.vd-app .mk-tile-play { position: absolute; right: 2px; bottom: 6px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--vd-action); color: #fff; box-shadow: 0 6px 16px -6px #c74e36aa; transition: transform 160ms var(--vd-ease), background 160ms; }
.vd-app .mk-tile-play:hover { background: #b3452f; transform: scale(1.06); }
.vd-app .mk-tile-play:active { transform: scale(.95); }
.vd-app .mk-tile-play svg { width: 20px; height: 20px; fill: currentColor; stroke: none; margin-left: 2px; }

/* Sign-in invitation */
.vd-app .mk-invite { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 20px; border-radius: var(--lc-radius); background: #efe6d2; }
.vd-app .mk-invite-art svg { width: 84px; display: block; }
.vd-app .mk-invite-copy { flex: 1; min-width: 200px; }
.vd-app .mk-invite h2 { margin: 0 0 2px; font-size: 1.2rem; letter-spacing: -.02em; }
.vd-app .mk-invite p { margin: 0; color: var(--vd-muted); }

/* Game page */
.vd-app .mk-game-grid { display: grid; gap: 22px; }
.vd-app .mk-cover-play { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 30px; overflow: hidden; aspect-ratio: 3 / 2; background: #f1e7d6; box-shadow: var(--lc-shadow-lift), 0 0 0 5px color-mix(in srgb, var(--mk-accent) 55%, #fffefa); cursor: pointer; }
.vd-app .mk-cover-play.is-static { cursor: default; }
.vd-app .mk-cover-play .vd-game-illustration, .vd-app .mk-cover-play .club-game-art { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 600ms var(--vd-ease); }
.vd-app .mk-cover-play:not(.is-static):hover .club-game-art { transform: scale(1.04); }
.vd-app .mk-cover-badge { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px 0 10px; border-radius: 999px; background: #121a2cb3; color: #fff; font-size: 13px; font-weight: 600; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.vd-app .mk-cover-badge svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.vd-app .mk-cover-play:focus-visible { outline: 3px solid #486baf; outline-offset: 4px; }
.vd-app .mk-game-copy { display: flex; flex-direction: column; gap: 16px; }
.vd-app .mk-game-copy h1 { margin: 0; font-size: clamp(2.3rem, 8vw, 4rem); line-height: 1; font-weight: 750; letter-spacing: -.045em; }
.vd-app .mk-tagline { margin: -8px 0 0; font-size: clamp(1.1rem, 2.6vw, 1.4rem); color: var(--vd-action); font-weight: 600; }
.vd-app .mk-meta { margin: 0; }
.vd-app .mk-two { color: #1f7a5a; }
.vd-app .mk-lede { margin: 0; max-width: 56ch; color: var(--vd-muted); font-size: 1.02rem; line-height: 1.5; }
.vd-app .mk-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.vd-app .mk-actions .lc-pill { flex: 1 1 200px; min-height: 54px; }
.vd-app .mk-game-copy .lc-feel { margin: 0; }
.vd-app .mk-rules { margin: 0; }
.vd-app .mk-share { display: flex; }

/* More games */
.vd-app .mk-more h2 { margin: 0 0 12px; font-size: 1.4rem; letter-spacing: -.02em; }
.vd-app .mk-strip { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 2px 14px; margin: 0 -20px; padding-inline: 20px; scrollbar-width: thin; }
.vd-app .mk-chip { flex: none; width: 168px; display: flex; flex-direction: column; gap: 8px; color: inherit; text-decoration: none; scroll-snap-align: start; }
.vd-app .mk-chip-art { display: block; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; box-shadow: var(--lc-shadow); transition: transform 280ms var(--vd-ease), box-shadow 280ms; }
.vd-app .mk-chip-art .vd-game-illustration, .vd-app .mk-chip-art .club-game-art { width: 100%; height: 100%; object-fit: cover; display: block; }
.vd-app .mk-chip:hover .mk-chip-art { transform: translateY(-4px); box-shadow: var(--lc-shadow-lift); }
.vd-app .mk-chip strong { font-size: .95rem; padding-left: 2px; }
.vd-app .mk-chip:focus-visible { outline: 3px solid #486baf; outline-offset: 3px; border-radius: 20px; }

@media (min-width: 760px) {
  .vd-app .mk-hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; padding: 52px 52px 48px; border-radius: 40px; }
  .vd-app .mk-fan { height: 320px; }
  .vd-app .mk-fan-card { width: 62%; border-radius: 26px; }
  .vd-app .mk-ways { grid-template-columns: 1fr 1fr; }
  .vd-app .mk-game-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 44px; align-items: start; }
  .vd-app .mk-cover { position: sticky; top: 84px; }
  .vd-app .mk-actions .lc-pill { flex: 1 1 auto; }
  .vd-app .mk-strip { margin: 0; padding-inline: 2px; flex-wrap: wrap; overflow: visible; }
}
@media (max-width: 420px) { .vd-app .mk-tile-body { padding-right: 52px; } }

@media (prefers-reduced-motion: no-preference) {
  .vd-app .mk-hero-copy > * { animation: entry-rise 600ms var(--vd-ease) both; }
  .vd-app .mk-hero-copy > p { animation-delay: 80ms; }
  .vd-app .mk-hero-actions { animation-delay: 160ms; }
  .vd-app .mk-fan-card { animation: mk-deal 700ms var(--vd-ease) both; }
  .vd-app .mk-fan-2 { animation-delay: 120ms; }
  .vd-app .mk-fan-3 { animation-delay: 240ms; }
  .vd-app .mk-fan-1:hover, .vd-app .mk-fan-3:hover { transition: translate 300ms var(--vd-ease); }
  .vd-app .mk-die.is-rolling { animation: mk-tumble 640ms var(--vd-ease); }
  .vd-app .mk-result.is-new { animation: entry-rise 380ms var(--vd-ease); }
  .vd-app .mk-cover { animation: entry-rise 600ms var(--vd-ease) both; }
}
@keyframes mk-deal { from { opacity: 0; translate: 0 26px; scale: .94; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes mk-tumble { 0% { transform: translateY(0) rotate(0); } 35% { transform: translateY(-14px) rotate(200deg); } 70% { transform: translateY(0) rotate(340deg) scale(1.08); } 100% { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .vd-app .mk-tile-art, .vd-app .mk-chip-art, .vd-app .mk-tile-play, .vd-app .mk-cover-play .club-game-art { transition: none; }
}

/* Gallery: photos and screenshots dropped in app/assets/images/games/<key>/ */
.vd-app .mk-gallery-track { list-style: none; margin: 0 -20px; padding: 4px 20px 14px; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; scrollbar-width: thin; }
.vd-app .mk-gallery-track li { flex: none; width: min(82%, 520px); scroll-snap-align: start; }
.vd-app .mk-gallery-track img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: cover; border-radius: 26px; box-shadow: var(--lc-shadow); background: #f1e7d6; }
.vd-app .mk-gallery-track:focus-visible { outline: 3px solid #486baf; outline-offset: 2px; border-radius: 12px; }
@media (min-width: 760px) { .vd-app .mk-gallery-track { margin: 0; padding-inline: 2px; } .vd-app .mk-gallery-track li { width: min(46%, 520px); } }
