/* Site style: dark retro party look with pink, mint and mustard.
   Used by every page; game-specific bits live in each game's own CSS. */
:root {
  --bg: #0c0a0b;
  --panel: #18151a;
  --line: #ffffff1a;
  --cream: #f4ead5;
  --muted: #a39d94;
  --pink: #f2709c;
  --mint: #7fd6b3;
  --mustard: #e9b949;
  --orange: #f08a5d;
  --lavender: #b9a3ec;
}

@font-face {
  font-family: "Cream Cake";
  src: url("src/Cream Cake Bold.otf") format("opentype");
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--cream);
  /* Soft colored glows in the corners, scattered confetti, and a faint dot grid */
  background:
    radial-gradient(circle at 0% 0%, #f2709c26, transparent 35rem),
    radial-gradient(circle at 100% 100%, #7fd6b31f, transparent 35rem),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' fill='none' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M30 20v18M21 29h18' stroke='%23f4ead5' opacity='.16'/%3E%3Ccircle cx='175' cy='42' r='8' stroke='%237fd6b3' opacity='.25'/%3E%3Cpath d='M92 128q8-10 16 0t16 0t16 0' stroke='%23e9b949' opacity='.25'/%3E%3Cpath d='M212 170l3 9 9 3-9 3-3 9-3-9-9-3 9-3z' fill='%23f2709c' stroke='none' opacity='.32'/%3E%3Ccircle cx='60' cy='200' r='2.5' fill='%23f4ead5' stroke='none' opacity='.22'/%3E%3Ccircle cx='132' cy='58' r='2' fill='%23f2709c' stroke='none' opacity='.32'/%3E%3Cpath d='M38 112l13-7' stroke='%23f2709c' opacity='.22'/%3E%3Crect x='150' y='212' width='10' height='10' rx='2' transform='rotate(20 155 217)' stroke='%23e9b949' opacity='.22'/%3E%3Cpath d='M225 88l9 9M234 88l-9 9' stroke='%237fd6b3' opacity='.22'/%3E%3Cpath d='M100 222l3 6 6 3-6 3-3 6-3-6-6-3 6-3z' fill='%237fd6b3' stroke='none' opacity='.22'/%3E%3C/svg%3E"),
    radial-gradient(#ffffff0f 1px, transparent 1.5px),
    var(--bg);
  background-size: auto, auto, 260px 260px, 22px 22px, auto;
  background-attachment: fixed, fixed, scroll, scroll, scroll;
  overflow-x: hidden;
}

.pink { color: var(--pink); }

/* Header: Party Corner on the left, deNomer link on the right */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: calc(100% - 2rem);
  max-width: 1100px;
  margin: 1rem auto 0;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #18151acc;
  backdrop-filter: blur(6px);
}

header h1 {
  margin: 0;
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

header h1 a {
  color: var(--pink);
  text-decoration: none;
}

/* Cursive deNomer link, links back to denomer.fun */
.home {
  font-family: "Cream Cake", cursive;
  font-size: 1.5rem;
  color: var(--mustard);
  text-decoration: none;
}

/* --- Page content --- */

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.2rem 6rem;
}

/* Small script label above a big title */
.label {
  margin: 0;
  font-family: "Cream Cake", cursive;
  font-size: 1.3rem;
  color: var(--mint);
}

.section-title {
  margin: 0.3rem 0 2.5rem;
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  line-height: 1;
  text-transform: uppercase;
}

/* --- Game cards on the main page --- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

/* Colored sticky-note cards with a piece of tape on top */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 240px;
  padding: 1.6rem 1.4rem 1.2rem;
  border-radius: 14px;
  color: var(--bg);
  text-decoration: none;
  box-shadow: 0 12px 30px #0008;
  transition: transform 0.2s;
}

.card::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 1.2rem;
  width: 56px;
  height: 18px;
  background: #f4ead5cc;
  transform: rotate(-4deg);
}

.card-pink { background: var(--pink); transform: rotate(-2deg); }
.card-mint { background: var(--mint); transform: rotate(1deg); }
.card-mustard { background: var(--mustard); transform: rotate(-1deg); }
.card-orange { background: var(--orange); transform: rotate(1.5deg); }
.card-lavender { background: var(--lavender); transform: rotate(-1.5deg); }

a.card:hover {
  transform: rotate(0) translateY(-6px);
}

.card-tag {
  margin: 0 0 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.7;
}

.card h3 {
  margin: 0 0 0.6rem;
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-size: 2rem;
  line-height: 1;
  text-transform: uppercase;
}

.card p {
  margin: 0;
  line-height: 1.5;
}

.card-go {
  margin-top: auto;
  padding-top: 1rem;
  font-family: "Cream Cake", cursive;
  font-size: 1.2rem;
  text-align: right;
}

/* --- Game pages --- */

/* Dark rounded box that holds a game */
.panel {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #18151ae6;
  box-shadow: 0 20px 50px #0009;
  text-align: center;
}

.panel h2 {
  margin: 0 0 1rem;
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-size: 1.6rem;
  text-transform: uppercase;
}

.panel p {
  line-height: 1.6;
  color: var(--muted);
}

.game-head {
  text-align: center;
}

/* --- Game controls shared by all games --- */

/* Setup screen: rules text on top, a gap before each heading */
#setup > p {
  margin-top: 0;
}

#setup h2 {
  margin-top: 2rem;
}

/* Pink pill buttons */
button {
  padding: 0.65rem 1.4rem;
  border: none;
  border-radius: 999px;
  background: var(--pink);
  color: var(--bg);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s;
}

button:hover:not(:disabled) {
  transform: translateY(-2px);
}

button:disabled {
  opacity: 0.4;
  cursor: default;
}

/* Quieter outline button for side actions */
.button-ghost {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
}

.button-ghost:hover {
  color: var(--cream);
}

/* Row of buttons under a prompt, e.g. Change vibe + Next */
.play-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

#start {
  margin-top: 0.5rem;
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
}

input {
  padding: 0.65rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--cream);
  font: inherit;
}

input:focus {
  outline: 2px solid var(--mint);
  outline-offset: 1px;
}

/* Small caps line above a prompt, e.g. "Sam — Truth" */
.panel .prompt-type {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mint);
}

/* The prompt itself, big */
.panel .prompt-text {
  margin: 1rem 0 2rem;
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  line-height: 1.15;
  text-transform: none;
}

/* Prompt type picker */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

/* Hide the checkbox itself but keep it usable with the keyboard */
.chip input {
  position: absolute;
  opacity: 0;
}

.chip input:focus-visible + span {
  outline: 2px solid var(--mint);
}

.chip span {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  cursor: pointer;
}

/* Each vibe's colors; two colors make a gradient border */
.chip { --vibe-a: var(--mint); --vibe-b: var(--mint); }
.chip-chill { --vibe-a: #7fd6b3; --vibe-b: #9fe8cf; }
.chip-party { --vibe-a: #a77bff; --vibe-b: #4fa3ff; }
.chip-wild { --vibe-a: #ff6a2b; --vibe-b: #ffc933; }
.chip-spicy { --vibe-a: #e8352b; --vibe-b: #ff5a3c; }
.chip-date { --vibe-a: #f2709c; --vibe-b: #ff9ec4; }

/* Picked: the border lights up in the vibe's colors with a soft glow */
.chip input:checked + span {
  border-color: transparent;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    linear-gradient(135deg, var(--vibe-a), var(--vibe-b)) border-box;
  box-shadow: 0 0 14px color-mix(in srgb, var(--vibe-a) 55%, transparent);
}

/* Faded list of what each vibe means, under the picker */
.vibe-info {
  margin: 0 0 1.5rem;
  text-align: left;
  opacity: 0.6;
}

.panel .vibe-info p {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  line-height: 1.5;
}

/* "Give Me Crazy" stands out: pink-to-mustard and a soft glow */
.chip-fun span {
  border-color: var(--pink);
  color: var(--pink);
  font-weight: 700;
  box-shadow: 0 0 12px #f2709c66;
}

.chip-fun input:checked + span {
  border-color: transparent;
  background: linear-gradient(135deg, var(--pink), var(--mustard));
  color: var(--bg);
  animation: glow 1.5s ease-in-out infinite alternate;
}

@keyframes glow {
  from { box-shadow: 0 0 8px #f2709c99; }
  to   { box-shadow: 0 0 22px #f2709c; }
}
