/* KoD (King of Dominoes) site: the app's burgundy, gold and green felt. Same layout as the other Oluma app sites. */
@font-face { font-family: "Cinzel"; src: url(/assets/fonts/Cinzel.ttf) format("truetype"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Libre Baskerville"; src: url(/assets/fonts/LibreBaskerville.ttf) format("truetype"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Lato"; src: url(/assets/fonts/Lato-Regular.ttf) format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lato"; src: url(/assets/fonts/Lato-Bold.ttf) format("truetype"); font-weight: 700; font-display: swap; }
:root {
  --page: #1e0303; --panel: #580808; --panel-dark: #340505; --ink: #fff6e0; --muted: #e2c79a; --rule: #7a1016;
  --gold: #ffc83d; --gold-bright: #fff1a0; --gold-border: #dca637; --gold-ink: #3a1d00; --felt: #075c38; --felt-dark: #003b24;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; margin: 0; color: var(--ink);
       background: radial-gradient(ellipse at 50% 0%, #7a1016 0%, #3e0606 45%, var(--page) 80%) fixed, var(--page);
       font: 17px/1.6 "Lato", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif; }
a { color: var(--gold); }
header, main, footer { max-width: 960px; margin: 0 auto; padding: 0 16px; }
header { display: flex; align-items: center; gap: 12px; padding-top: 24px; flex-wrap: wrap; }
header a.home { display: flex; align-items: center; gap: 12px; color: var(--gold-bright); text-decoration: none; font: 700 24px "Libre Baskerville", Georgia, serif; }
header img { width: 44px; height: 44px; border-radius: 10px; }
nav { margin-left: auto; display: flex; gap: 18px; font-size: 15px; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--gold); }
h1 { font: 700 42px/1.15 "Cinzel", Georgia, serif; margin: 16px 0 8px; color: var(--gold-bright); }
h2 { font: 700 30px/1.2 "Cinzel", Georgia, serif; margin: 44px 0 10px; color: var(--gold); }
h3 { margin: 0 0 6px; font-size: 18px; font-weight: 700; color: var(--gold-bright); }
.hero { text-align: center; padding: 20px 0 8px; }
.hero .logo { width: min(400px, 88%); height: auto; filter: drop-shadow(0 0 30px rgba(255,191,54,.35)); }
.hero h1 { margin-top: 8px; }
.hero .lead { font-size: 20px; color: var(--muted); margin: 8px auto 0; max-width: 640px; }
.cta { margin: 24px 0 8px; }
.store-badge img { height: 52px; }
.soon { display: inline-block; padding: 12px 24px; border-radius: 999px; font-weight: 700; font-size: 17px;
        color: var(--gold-ink); background: linear-gradient(180deg, var(--gold-bright), var(--gold) 55%, #c47a0c);
        box-shadow: 0 0 24px rgba(255,191,54,.35); }
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 36px 0; }
.shots figure { margin: 0; }
.shots img { width: 100%; height: auto; border-radius: 26px; border: 2px solid var(--gold-border);
             box-shadow: 0 14px 34px rgba(0,0,0,.55), 0 0 24px rgba(255,191,54,.18); display: block; }
.shots figcaption { text-align: center; color: var(--muted); font-size: 15px; margin-top: 10px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 20px 0; }
.card { background: linear-gradient(180deg, var(--panel), var(--panel-dark)); border: 1.5px solid rgba(220,166,55,.55); border-radius: 18px; padding: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.felt { background: radial-gradient(ellipse at 50% 30%, var(--felt) 0%, var(--felt-dark) 85%); border: 2px solid var(--gold-border); border-radius: 22px;
        padding: 22px; margin: 32px 0; box-shadow: 0 0 30px rgba(255,191,54,.15), inset 0 0 40px rgba(0,0,0,.35); }
.felt h2 { margin-top: 0; }
.felt p { color: var(--ink); margin-bottom: 0; }
.more-apps { margin-top: 40px; }
.app-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 16px; }
.app-card { display: flex; gap: 14px; align-items: flex-start; }
.app-card img { flex: none; width: 56px; height: 56px; border-radius: 12px; }
.app-links { display: flex; gap: 14px; margin-top: 8px; font-size: 15px; flex-wrap: wrap; }
.app-links span { color: var(--muted); }
.all-apps { margin-top: 18px; }
main.doc { max-width: 760px; }
main.doc h1 { margin-top: 36px; }
main.doc h2 { font-size: 22px; margin-top: 30px; }
footer { color: var(--muted); font-size: 14px; padding-top: 28px; padding-bottom: 40px; border-top: 1px solid var(--rule); margin-top: 48px; }
@media (max-width: 760px) {
  h1 { font-size: 32px; }
  .shots { grid-template-columns: repeat(2, 1fr); }
  nav { margin-left: 0; width: 100%; }
}
@media (max-width: 420px) {
  .shots { grid-template-columns: 1fr; max-width: 320px; margin-left: auto; margin-right: auto; }
}

/* Page switch: horizontal slide. The header stays put; the page underneath slides. */
@view-transition { navigation: auto; }
header { view-transition-name: site-header; }
::view-transition-group(site-header) { z-index: 2; }
::view-transition-old(root), ::view-transition-new(root) {
  animation-duration: .6s; animation-timing-function: cubic-bezier(.22, 1, .36, 1); animation-fill-mode: both;
}
::view-transition-new(root) { box-shadow: 0 0 48px rgba(0, 0, 0, .55); }
html:active-view-transition-type(forward)::view-transition-old(root) { animation-name: kod-out-left; }
html:active-view-transition-type(forward)::view-transition-new(root) { animation-name: kod-in-right; }
html:active-view-transition-type(back)::view-transition-old(root) { animation-name: kod-out-right; z-index: 1; }
html:active-view-transition-type(back)::view-transition-new(root) { animation-name: kod-in-left; }
@keyframes kod-in-right  { from { transform: translateX(100%); } to { transform: none; } }
@keyframes kod-out-left  { from { transform: none; } to { transform: translateX(-28%); opacity: .35; filter: brightness(.55); } }
@keyframes kod-in-left   { from { transform: translateX(-28%); opacity: .35; filter: brightness(.55); } to { transform: none; } }
@keyframes kod-out-right { from { transform: none; } to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}
