/* rupcake design system — Yopki legal pages
   Accent: gradient #FF8F00 -> #FF6200
   Display font: Baloo 2
   Body font: Nunito
*/

:root {
  --bg: #1a1a1e;
  --bg-elevated: #202024;
  --bg-card: #202024;
  --border: #222226;
  --border-strong: #2e2e33;
  --text: #f5f5f7;
  --text-muted: #a1a1aa;
  --text-dim: #6b6b74;
  --accent-1: #ff8f00;
  --accent-2: #ff6200;
  --accent-gradient: linear-gradient(135deg, #ff8f00 0%, #ff6200 100%);
  --radius: 20px;
  --radius-sm: 14px;
  --max-width: 1120px;
  --font-display: 'Baloo 2', 'Nunito', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, sans-serif;

  /* Neumorphic shadows */
  --neu-light: rgba(255, 255, 255, 0.09);
  --neu-dark: rgba(0, 0, 0, 0.6);
  --neu-shadow: 12px 12px 24px var(--neu-dark), -12px -12px 24px var(--neu-light);
  --neu-shadow-sm: 7px 7px 16px var(--neu-dark), -7px -7px 16px var(--neu-light);
  --neu-shadow-inset: inset 6px 6px 14px var(--neu-dark), inset -6px -6px 14px var(--neu-light);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  padding-bottom: 84px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Background logo watermark */
.bg-logo {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url('img/rupcake_text_orange_2048.png');
  background-repeat: no-repeat;
  background-position: right 22%;
  background-size: min(60vw, 720px) auto;
  opacity: 1;
}

/* Game icon */
.game-icon {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  box-shadow: var(--neu-shadow);
  margin-bottom: 24px;
}

main {
  position: relative;
  z-index: 1;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-1);
  margin-bottom: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #1a0d00;
  box-shadow: 10px 10px 22px rgba(0, 0, 0, 0.5), -8px -8px 20px rgba(255, 255, 255, 0.08),
    0 0 16px rgba(255, 98, 0, 0.28), 0 0 40px rgba(255, 143, 0, 0.14);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 12px 12px 26px rgba(0, 0, 0, 0.55), -10px -10px 24px rgba(255, 255, 255, 0.09),
    0 0 22px rgba(255, 98, 0, 0.34), 0 0 52px rgba(255, 143, 0, 0.18);
}

.btn-ghost {
  background: var(--bg);
  color: var(--text);
  border-color: transparent;
  box-shadow: var(--neu-shadow-sm);
}

.btn-ghost:hover {
  color: var(--accent-1);
  box-shadow: var(--neu-shadow-inset);
}

/* Header */
.site-header {
  position: sticky;
  top: 16px;
  z-index: 50;
  width: fit-content;
  max-width: calc(100% - 32px);
  margin: 16px auto 0;
  background: var(--bg);
  border-radius: 999px;
  box-shadow: var(--neu-shadow);
  backdrop-filter: blur(14px);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: auto;
  height: auto;
  padding: 8px 18px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--bg);
  box-shadow: 3px 3px 6px var(--neu-dark), -3px -3px 6px var(--neu-light);
  transition: color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav a:hover {
  color: var(--accent-1);
  box-shadow: var(--neu-shadow-inset);
  transform: translateY(-1px);
}

.nav a.active {
  color: var(--accent-1);
  box-shadow: var(--neu-shadow-inset);
}

/* Footer */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  padding: 14px 0;
  margin-top: 0;
  background: rgba(26, 26, 30, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.3);
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
}

.footer-meta {
  color: var(--text-dim);
  font-size: 0.8rem;
}

.footer-links {
  display: flex;
  gap: 14px;
}

.footer-links a {
  color: var(--text-dim);
  font-size: 0.8rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--text-muted);
}

/* Legal prose */
.prose {
  max-width: 720px;
}

.prose h2 {
  font-size: 1.4rem;
  margin-top: 2em;
}

.prose h3 {
  font-size: 1.1rem;
  margin-top: 1.5em;
}

.prose h2,
.prose h3 {
  scroll-margin-top: 110px;
}

.prose p,
.prose li {
  color: var(--text-muted);
}

.prose ul {
  padding-left: 1.2em;
}

.prose a {
  color: var(--accent-1);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--accent-2);
}

/* Legal panels */
.panel {
  background: rgba(26, 26, 30, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--neu-shadow);
  backdrop-filter: blur(14px);
}

.text-muted {
  color: var(--text-muted);
}

/* Landing cards */
.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--bg-card);
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--neu-shadow);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
  box-shadow: 14px 14px 28px var(--neu-dark), -14px -14px 28px var(--neu-light);
  transform: translateY(-2px);
}

.card-body {
  padding: 24px;
}

.card-body h3 {
  margin-bottom: 8px;
}

.card-body p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

@media (max-width: 640px) {
  .section {
    padding: 64px 0;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }
}