/* Planque website. Values mirror src/theme/tokens.ts and planque-design-reference.html. */
:root {
  --sky-top: #3e6bff;
  --sky-mid: #8db4ff;
  --sky-bottom: #eaf0ff;
  --land: #eaf0ff;
  --ink: #101433;
  --ink2: #4f5890;
  --panel: rgba(255, 255, 255, 0.76);
  --panel-border: rgba(255, 255, 255, 0.9);
  --panel-shadow: 0 16px 30px -12px rgba(20, 30, 110, 0.45);
  --card: rgba(255, 255, 255, 0.62);
  --link: #4b4ff0;
  --soft-stops: #ffffff, #eef1ff;
  --soft-base: #c9d0f2;
  --soft-ink: #101433;
  --cloud: #ffffff;
  --sticker-shadow: drop-shadow(0 6px 8px rgba(16, 20, 80, 0.35));
  --display: 'Baloo 2', ui-rounded, 'Nunito', sans-serif;
  --body: 'Nunito', ui-rounded, -apple-system, 'Segoe UI', sans-serif;
  --r-panel: 30px;
  --r-button: 20px;
  --r-tile: 18px;
  --r-tag: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --sky-top: #070b2a;
    --sky-mid: #1b1f5e;
    --sky-bottom: #1b1a38;
    --land: #1b1a38;
    --ink: #ffffff;
    --ink2: #c9c4ee;
    --panel: rgba(30, 28, 64, 0.74);
    --panel-border: rgba(255, 255, 255, 0.14);
    --panel-shadow: 0 16px 30px -12px rgba(0, 0, 0, 0.7);
    --card: rgba(255, 255, 255, 0.08);
    --link: #8c90ff;
    --soft-stops: #4a4690, #3a3678;
    --soft-base: #24215a;
    --soft-ink: #ffffff;
    --cloud: rgba(255, 255, 255, 0.12);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  font-family: var(--body);
  font-weight: 800;
  color: var(--ink);
  background: var(--land);
  background-image: linear-gradient(180deg, var(--sky-top) 0, var(--sky-mid) 340px, var(--sky-bottom) 620px, var(--land) 100%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.1; margin: 0; }
p { margin: 0; }

.wrap { width: 100%; max-width: 560px; margin: 0 auto; padding: 0 16px; }

/* Sky: clouds by day, stars by night. */
.sky { position: relative; padding: 36px 0 8px; text-align: center; overflow: hidden; }
.cloud { position: absolute; background: var(--cloud); border-radius: 999px; opacity: 0.9; pointer-events: none; }
.cloud::before, .cloud::after { content: ''; position: absolute; background: inherit; border-radius: 50%; }
.cloud::before { width: 46%; height: 160%; left: 18%; bottom: 20%; }
.cloud::after { width: 34%; height: 130%; left: 52%; bottom: 20%; }
.cloud.c1 { width: 92px; height: 22px; top: 34px; left: -18px; }
.cloud.c2 { width: 70px; height: 18px; top: 92px; right: -10px; }
@media (prefers-color-scheme: dark) {
  .cloud { width: 3px !important; height: 3px !important; opacity: 0.8; background: #fff; box-shadow: 40px 30px 0 #fff, 90px -10px 0 #fff, 150px 50px 0 #fff, 220px 10px 0 #fff, 290px 60px 0 #fff; }
  .cloud::before, .cloud::after { display: none; }
  .cloud.c1 { top: 24px; left: 8%; }
  .cloud.c2 { top: 70px; right: auto; left: 30%; }
}

.wordmark { width: min(78%, 320px); margin: 0 auto; transform: rotate(-3deg); filter: drop-shadow(0 6px 10px rgba(16, 20, 80, 0.22)); }
.wordmark-link { display: inline-block; }
.pitch { position: relative; margin: 14px auto 0; max-width: 22ch; font-family: var(--display); font-size: 25px; line-height: 1.15; color: #fff; text-shadow: 0 2px 6px rgba(0, 0, 60, 0.35); }

/* Die-cut stickers */
.stickers { position: relative; display: flex; justify-content: center; gap: 4px; margin: 18px 0 6px; }
.sticker { width: 96px; height: 96px; filter: var(--sticker-shadow); }
.sticker:nth-child(1) { transform: rotate(-8deg) translateY(6px); }
.sticker:nth-child(2) { transform: rotate(4deg) scale(1.12); }
.sticker:nth-child(3) { transform: rotate(9deg) translateY(8px); }
.bob { animation: bob 3.2s ease-in-out infinite; }
.sticker:nth-child(2).bob { animation-delay: -1.1s; }
.sticker:nth-child(3).bob { animation-delay: -2.2s; }
@keyframes bob { 50% { translate: 0 -6px; } }
@media (prefers-reduced-motion: reduce) { .bob { animation: none; } }

/* Frosted-glass panel */
.panel {
  margin: 16px 0;
  padding: 14px;
  border-radius: var(--r-panel);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: var(--panel-shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.panel h2 { font-size: 22px; padding: 4px 6px 0; }

.step { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--r-tile); background: var(--card); }
.step img { flex: none; width: 54px; height: 54px; filter: drop-shadow(0 4px 4px rgba(16, 20, 80, 0.3)); }
.step h3 { font-size: 19px; }
.step p { margin-top: 2px; font-size: 14px; line-height: 19px; color: var(--ink2); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 2px; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px 4px 6px; border-radius: var(--r-tag); font-family: var(--display); font-size: 15px; line-height: 1; color: #101433; background: #fff; box-shadow: 0 0 0 3px #fff, 0 4px 6px rgba(16, 20, 80, 0.25); }
.tag img { width: 22px; height: 22px; }
.tag.yellow { background: #ffe14d; } .tag.pink { background: #ff8fc7; } .tag.green { background: #8fe3a0; } .tag.blue { background: #9fd8ff; }

/* Glossy game buttons */
.btn {
  display: block;
  width: 100%;
  border: 0;
  border-radius: var(--r-button);
  padding: 15px 13px 13px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 19px;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(180deg, #7f8cff 0%, #4b4ff0 55%, #3a35d6 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45), 0 6px 0 #2a24a8, 0 12px 18px -8px rgba(40, 30, 160, 0.6);
  text-shadow: 0 1px 2px rgba(0, 0, 60, 0.4);
  transition: transform 0.08s, box-shadow 0.08s;
  margin-bottom: 6px;
}
.btn:active { transform: translateY(4px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.45), 0 2px 0 #2a24a8, 0 6px 10px -6px rgba(40, 30, 160, 0.6); }
.btn.orange { background: linear-gradient(180deg, #ffc15a 0%, #ff8a1f 60%, #f06a00 100%); box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.5), 0 6px 0 #b84e00, 0 12px 18px -8px rgba(200, 90, 0, 0.6); }
.btn.soft { background: linear-gradient(180deg, var(--soft-stops)); color: var(--soft-ink); text-shadow: none; box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.6), 0 6px 0 var(--soft-base), 0 12px 18px -8px rgba(40, 30, 160, 0.3); }
.btn:focus-visible { outline: 3px solid #ffe14d; outline-offset: 3px; }
.note { font-size: 14px; line-height: 19px; color: var(--ink2); text-align: center; padding: 0 6px 4px; }

/* Join page */
.code-label { text-align: center; font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink2); }
.code {
  align-self: center;
  margin: -4px 0 6px;
  padding: 10px 20px 4px;
  border-radius: 22px;
  background: #ffe14d;
  color: #101433;
  font-family: var(--display);
  font-size: clamp(40px, 13vw, 56px);
  line-height: 1;
  letter-spacing: 0.08em;
  box-shadow: 0 0 0 4px #fff, 0 8px 14px rgba(16, 20, 80, 0.3);
  transform: rotate(-2deg);
  max-width: 100%;
  overflow-wrap: anywhere;
}
.panel h1 { font-size: 25px; text-align: center; padding: 6px 4px 0; }
[hidden] { display: none !important; }

/* Legal pages */
.legal { padding-bottom: 8px; }
.legal .panel { gap: 0; padding: 22px 18px; }
.legal h1 { font-size: 32px; }
.legal h2 { font-size: 21px; margin: 22px 0 6px; padding: 0; }
.legal h3 { font-size: 17px; margin: 14px 0 4px; }
.legal p, .legal li { font-family: var(--body); font-weight: 600; font-size: 15px; line-height: 1.55; color: var(--ink); }
.legal p + p { margin-top: 8px; }
.legal ul { margin: 6px 0; padding-left: 20px; }
.legal .meta { color: var(--ink2); font-size: 14px; margin-top: 6px; }
.legal .summary { margin-top: 16px; padding: 4px 14px 8px; border-radius: var(--r-tile); background: var(--card); }
.legal .summary h2 { margin-top: 10px; }
.legal b { font-weight: 800; }
.table-scroll { overflow-x: auto; margin: 8px 0; }
.legal table { width: 100%; border-collapse: collapse; font-weight: 600; font-size: 14px; line-height: 1.45; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 8px 6px; border-bottom: 1px solid var(--panel-border); }
.legal th { font-family: var(--display); font-weight: 800; font-size: 15px; }

.header-small { padding: 24px 0 0; }
.header-small .wordmark { width: 170px; }

/* Footer */
footer { padding: 18px 0 32px; text-align: center; font-size: 14px; color: var(--ink2); }
footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 8px; }
footer a { color: var(--ink2); text-decoration: none; }
footer a:hover { text-decoration: underline; }

@media (min-width: 720px) {
  .sky { padding-top: 56px; }
  .sticker { width: 120px; height: 120px; }
  .pitch { font-size: 30px; }
}
.panel .step-title { font-size: 19px; padding: 0; }
.center-title { font-size: 25px; text-align: center; padding: 6px 4px 0; }
