/* Royal Table website: royal purple and gold, like the game's store art. Fonts are the game's own (OFL). */

@font-face {
  font-family: "Lilita One";
  src: url("/assets/fonts/LilitaOne-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/Outfit-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/Outfit-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --bg: #170a45;
  --bg-deep: #0d0629;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 215, 124, 0.16);
  --border-strong: rgba(255, 215, 124, 0.34);

  --text: #ffffff;
  --text-2: #e4ddf6;
  --muted: #b8acdc;

  --gold: #ffd77c;
  --gold-2: #ffbb42;
  --gold-deep: #e8961f;
  --gold-shadow: #a85a12;
  --pink: #e23a77;
  --purple: #3f1893;
  --purple-bright: #51269c;
  --ink: #2a1060;

  --ruby: #e0303b;
  --emerald: #22b05a;
  --amber: #f5b400;
  --sapphire: #2f7bea;

  --radius: 20px;
  --radius-sm: 14px;
  --wrap: 1120px;
  --gutter: 20px;

  --font: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --font-display: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-2);
  background-color: var(--bg-deep);
  background-image:
    radial-gradient(900px 520px at 50% -120px, rgba(186, 120, 140, 0.38), transparent 70%),
    linear-gradient(180deg, #2f1273 0px, var(--bg) 720px, var(--bg-deep) 100%);
  background-repeat: no-repeat;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
a:hover {
  color: #fff1cc;
}
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  font-weight: 400;
  line-height: 1.12;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}

/* Header */

.top {
  position: relative;
  z-index: 2;
}
.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 23px;
  letter-spacing: 0.01em;
  color: var(--gold);
  text-decoration: none;
  white-space: nowrap;
}
.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.top nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.top nav a:not(.btn) {
  color: var(--text-2);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.top nav a:not(.btn):hover {
  color: var(--gold);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.btn-gold {
  padding: 14px 28px 14px 22px;
  color: var(--ink);
  background: linear-gradient(180deg, #ffe7a6 0%, var(--gold-2) 58%, var(--gold-deep) 100%);
  box-shadow: 0 5px 0 var(--gold-shadow), 0 16px 30px rgba(0, 0, 0, 0.38);
}
.btn-gold:hover {
  color: var(--ink);
  transform: translateY(-1px);
  filter: brightness(1.04);
}
.btn-gold:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--gold-shadow), 0 8px 18px rgba(0, 0, 0, 0.32);
}
.btn-gold svg {
  width: 26px;
  height: 26px;
  flex: none;
}
.btn-label {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}
.btn-label small {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.btn-label strong {
  font-size: 19px;
  font-weight: 600;
}
.btn-small {
  padding: 9px 18px;
  font-size: 15px;
  color: var(--ink);
  background: linear-gradient(180deg, #ffe7a6, var(--gold-2));
  box-shadow: 0 3px 0 var(--gold-shadow);
}
.btn-small:hover {
  color: var(--ink);
  transform: translateY(-1px);
}

/* Hero */

.hero {
  position: relative;
  padding: 36px 0 72px;
  isolation: isolate;
}
.hero::before {
  /* the store art's sunburst, faded out towards the edges */
  content: "";
  position: absolute;
  inset: -120px 0 0;
  z-index: -1;
  background: repeating-conic-gradient(from 0deg at 72% 38%, rgba(255, 255, 255, 0.045) 0deg 7deg, transparent 7deg 14deg);
  -webkit-mask-image: radial-gradient(closest-side at 72% 42%, #000 0%, transparent 100%);
  mask-image: radial-gradient(closest-side at 72% 42%, #000 0%, transparent 100%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 40px;
}
.eyebrow {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 6.2vw, 74px);
  line-height: 1.02;
  letter-spacing: 0.005em;
  background: linear-gradient(180deg, #fff2c8 0%, var(--gold) 45%, var(--gold-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 0 rgba(60, 20, 120, 0.9)) drop-shadow(0 14px 24px rgba(0, 0, 0, 0.35));
}
.lede {
  max-width: 34em;
  margin: 22px 0 30px;
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--text-2);
}
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 22px;
}
.cta-note {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
.seats {
  display: flex;
  gap: 8px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}
.seats li {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.22), 0 2px 6px rgba(0, 0, 0, 0.3);
}
.seats .ruby { background: var(--ruby); }
.seats .emerald { background: var(--emerald); }
.seats .amber { background: var(--amber); }
.seats .sapphire { background: var(--sapphire); }

.hero-phones {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 520px;
}
.phone {
  margin: 0;
  padding: 8px;
  border-radius: 30px;
  background: linear-gradient(180deg, #3a2478, #120838);
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.4);
}
.phone img {
  border-radius: 22px;
  width: 100%;
}
.hero-phones .phone {
  position: absolute;
  width: min(270px, 56%);
}
.hero-phones .phone-back {
  top: 10px;
  right: 6%;
  transform: rotate(7deg);
  opacity: 0.92;
}
.hero-phones .phone-front {
  top: 40px;
  left: 8%;
  transform: rotate(-5deg);
  z-index: 1;
}

/* Highlights */

.section {
  padding: 64px 0;
}
.section-head {
  max-width: 40em;
  margin: 0 0 32px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 46px);
  color: var(--gold);
}
.section-head p {
  margin: 12px 0 0;
  color: var(--muted);
}

.highlights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.highlight {
  padding: 24px 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.highlight h3 {
  margin-bottom: 8px;
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
}
.highlight p {
  margin: 0;
  font-size: 15.5px;
  color: var(--text-2);
}
.highlight .dot {
  display: block;
  width: 34px;
  height: 6px;
  margin-bottom: 18px;
  border-radius: 999px;
}
.dot.ruby { background: var(--ruby); }
.dot.emerald { background: var(--emerald); }
.dot.amber { background: var(--amber); }
.dot.sapphire { background: var(--sapphire); }

/* Games */

.games {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.game {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(81, 38, 156, 0.55), rgba(23, 10, 69, 0.75));
  border: 1px solid var(--border);
}
.game-shot {
  position: relative;
  aspect-ratio: 540 / 600;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.game-shot img {
  width: 100%;
  object-fit: cover;
  object-position: top;
}
.game-body {
  padding: 20px 22px 24px;
}
.game h3 {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--gold);
}
.game p {
  margin: 0;
  font-size: 15.5px;
}

/* Closing */

.closing {
  padding: 40px 0 84px;
}
.closing-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: clamp(28px, 5vw, 48px);
  border-radius: 28px;
  background:
    radial-gradient(520px 260px at 100% 0%, rgba(226, 58, 119, 0.28), transparent 70%),
    linear-gradient(135deg, var(--purple-bright), #24105e);
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}
.closing-card h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 42px);
  color: var(--gold);
}
.closing-card p {
  max-width: 34em;
  margin: 10px 0 0;
}

/* Footer */

.foot {
  border-top: 1px solid var(--border);
  padding: 28px 0 36px;
  font-size: 15px;
  color: var(--muted);
}
.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.foot p {
  margin: 0;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}
.foot a {
  color: var(--text-2);
  text-decoration: none;
}
.foot a:hover {
  color: var(--gold);
  text-decoration: underline;
}

/* Policy pages */

.doc-wrap {
  padding: 24px 0 72px;
}
.doc {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 52px);
  border-radius: var(--radius);
  background: rgba(13, 6, 41, 0.55);
  border: 1px solid var(--border);
}
.doc h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 48px);
  color: var(--gold);
}
.doc .effective {
  margin: 10px 0 28px;
  color: var(--muted);
}
.doc h2 {
  margin: 34px 0 10px;
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
}
.doc p {
  margin: 0 0 16px;
  line-height: 1.7;
}
.doc strong {
  color: var(--text);
}
.doc .questions {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

/* Not found */

.lost {
  padding: 80px 0 120px;
  text-align: center;
}
.lost h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 64px);
  color: var(--gold);
}
.lost p {
  margin: 16px auto 30px;
  max-width: 28em;
}

/* Layout steps */

@media (max-width: 980px) {
  .highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .games {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .hero {
    padding-top: 12px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-phones {
    min-height: 0;
    height: clamp(380px, 96vw, 560px);
  }
  .hero-phones .phone {
    width: min(250px, 50%);
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }
  body {
    font-size: 16px;
  }
  .top nav {
    gap: 14px;
  }
  .top nav .nav-optional {
    display: none;
  }
  .brand {
    font-size: 20px;
  }
  .brand img {
    width: 32px;
    height: 32px;
  }
  .section {
    padding: 44px 0;
  }
  .highlights,
  .games {
    grid-template-columns: 1fr;
  }
  .game-shot {
    aspect-ratio: 540 / 520;
  }
  .btn-gold {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
}
