:root {
  color-scheme: light;
  --ink: #211936;
  --muted: #5c536a;
  --paper: #fbfaff;
  --plain: #fff;
  --line: #ded7ec;
  --purple: #4d309c;
  --purple-dark: #3c247e;
  --lilac: #e5dbff;
  --pink: #fbd3e6;
  --mint: #d9eea3;
  --yellow: #ffe49a;
  --blue: #d8e9fc;
  --peach: #ffd8c6;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); line-height: 1.57; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .2em; }
button, input, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #8a62e1; outline-offset: 4px; }
img { max-width: 100%; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1, h2, h3 { margin: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; }
p { margin: 0; }
.wrap { width: min(1170px, calc(100% - 56px)); margin-inline: auto; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.skip-link:focus { position: absolute; z-index: 10; top: 12px; left: 14px; padding: 10px 14px; background: #fff; color: var(--ink); }
.site-header { background: #fff; border-bottom: 1px solid #ede8f5; }
.header-row { min-height: 73px; display: flex; align-items: center; gap: 24px; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; font-weight: 900; letter-spacing: -.055em; gap: 10px; font-size: 1.28rem; text-decoration: none; white-space: nowrap; }
.brand-period { color: #7959ba; }
.brand-icon {
  background: var(--purple); inline-size: 35px; block-size: 35px; border-radius: 10px; position: relative;
  display: inline-grid; place-items: center; flex: 0 0 35px;
}
.brand-icon::before, .brand-icon::after {
  content: ""; width: 13px; height: 18px; border-radius: 3px; position: absolute; top: 9px;
}
.brand-icon::before { background: var(--mint); transform: rotate(-19deg); left: 9px; }
.brand-icon::after { background: #ffc7df; transform: rotate(15deg); left: 15px; }
.brand-icon span { z-index: 1; background: var(--purple); width: 4px; aspect-ratio: 1; transform: translateX(3px) rotate(45deg); }
.site-header nav, .footer-links { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }
.site-header nav a, .footer-links a { text-decoration: none; font-weight: 750; color: var(--muted); }
.site-header nav a:hover, .footer-links a:hover { color: var(--purple); text-decoration: underline; }
.button {
  min-height: 46px; min-inline-size: 42px; padding: 10px 17px; display: inline-flex; align-items: center; justify-content: center;
  text-align: center; border-radius: 11px; border: 1px solid transparent; font-weight: 810; font-size: .95rem;
  line-height: 1.35; text-decoration: none; color: var(--ink); background: #f1ecfa; gap: 6px;
}
.button:hover:not(:disabled) { filter: brightness(.96); }
.button.header-cta { color: var(--purple); background: #f1ebff; white-space: nowrap; }
.button.primary { color: #fff; background: var(--purple); border-color: var(--purple); }
.button.primary:hover:not(:disabled) { background: var(--purple-dark); }
.button.secondary { color: var(--purple-dark); background: #fff; border-color: #cabbe7; }
.button.ghost { background: transparent; color: var(--purple); border-color: #d5c7ea; }
.button:disabled { cursor: default; opacity: .58; }
.hero {
  position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  border-radius: 31px; border: 1px solid #ded0ff; margin-top: 29px; align-items: center;
  min-height: 457px; padding: clamp(26px, 5vw, 64px); overflow: hidden; background: #ebe1ff;
}
.hero::before {
  content: ""; position: absolute; inset: 0 0 0 42%; z-index: -1;
  background: radial-gradient(circle, #9b77d83f 1.2px, transparent 1.3px) center / 16px 16px;
  mask-image: linear-gradient(90deg, transparent, #000 30%, #000);
}
.eyebrow { margin: 0 0 8px; text-transform: uppercase; color: #6745a9; font-size: .84rem; letter-spacing: .105em; font-weight: 850; }
.hero .eyebrow { display: flex; align-items: center; gap: 8px; }
.hero-pip { width: 9px; aspect-ratio: 1; border-radius: 50%; background: #b7d64a; box-shadow: 0 0 0 2px #435320; }
.hero h1 { color: #281a45; font-size: clamp(3rem, 5.2vw, 4.5rem); line-height: .99; letter-spacing: -.075em; }
.hero h1 em { color: #6339ac; font-weight: 700; }
.hero-description { color: #4d405f; max-width: 40ch; margin: 18px 0 23px; font-size: clamp(1rem, 1.5vw, 1.17rem); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-note { margin-top: 13px; color: #5f5272; font-size: .89rem; }
.hero-note span { margin-inline: 4px; }
.hero-art { position: relative; height: clamp(260px, 32vw, 370px); min-width: 0; }
.hero-orbit {
  position: absolute; inset: 15% 0 11% 2%; border: 1px dashed #8d6ac2; border-radius: 50%;
  transform: rotate(-22deg);
}
.hero-twinkle { color: #6543a8; position: absolute; font-family: Georgia, serif; line-height: 1; font-size: 2rem; }
.hero-twinkle.one { top: 8%; left: 5%; }
.hero-twinkle.two { top: 15%; right: -1%; font-size: 2.4rem; }
.hero-twinkle.three { bottom: 7%; left: 3%; }
.floating-card {
  width: 36%; aspect-ratio: .70; min-width: 105px; position: absolute; border: 2px solid #2a1d43; border-radius: 16px;
  color: #2f2245; padding: 12px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  box-shadow: 0 12px 0 #2b1f4129; overflow: hidden;
}
.floating-card span { font-size: clamp(.53rem, .86vw, .73rem); font-weight: 900; line-height: 1.2; letter-spacing: .11em; }
.floating-card strong { align-self: center; font: 700 clamp(2.1rem, 5vw, 4.7rem)/1 Georgia, serif; letter-spacing: -.11em; }
.floating-back { background: var(--mint); left: 48%; top: 15%; transform: rotate(20deg); }
.floating-left { background: var(--blue); left: 12%; top: 31%; transform: rotate(-18deg); }
.floating-front { background: var(--pink); left: 36%; top: 24%; transform: rotate(4deg); }
.floating-front strong { font-size: clamp(4.2rem, 10vw, 8.2rem); letter-spacing: -.03em; }
.art-label {
  position: absolute; bottom: 10%; right: 0; background: var(--yellow); border: 2px solid #352047;
  border-radius: 99px; padding: 7px 14px; font-size: clamp(.83rem, 1.65vw, 1.2rem); font-weight: 900; transform: rotate(-8deg);
  box-shadow: 0 3px 0 #352047;
}
.section { padding-block: 42px; scroll-margin-top: 14px; }
.section-head { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-bottom: 22px; }
.section-head h2, .article h2, .privacy h2, .rules-panel h2 {
  font-size: clamp(1.95rem, 4.05vw, 3.55rem); line-height: 1.08; letter-spacing: -.052em;
}
.section-head > p { max-width: 40ch; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.filters button {
  font-weight: 760; color: var(--muted); padding: 7px 12px; border: 1px solid var(--line);
  background: white; border-radius: 100px;
}
.filters button:hover { border-color: #a892ca; }
.filters button[aria-pressed="true"] { background: #3f2b78; color: white; border-color: #3f2b78; }
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.game-tile {
  display: flex; flex-direction: column; text-decoration: none; overflow: hidden; border-radius: 17px;
  border: 1px solid var(--line); background: var(--plain); transition: transform .16s ease, box-shadow .16s ease;
}
.game-tile:hover { transform: translateY(-3px); box-shadow: 0 12px 26px #31244515; }
.theme-lilac { background: var(--lilac); }
.theme-peach { background: var(--peach); }
.theme-mint { background: var(--mint); }
.theme-yellow { background: var(--yellow); }
.theme-pink { background: var(--pink); }
.theme-blue { background: var(--blue); }
.tile-art {
  position: relative; height: 114px; overflow: hidden; isolation: isolate;
  display: grid; place-items: center; border-bottom: 1px solid #47306b23;
}
.tile-ring {
  position: absolute; z-index: -1; inset: 9% 21%; border-radius: 50%; border: 1px dashed #513d7a83; transform: rotate(-11deg);
}
.tile-spark { position: absolute; right: 16%; top: 13%; font-size: 1.45rem; color: #644696; }
.mini-card {
  display: grid; place-items: center; position: absolute; width: 47px; height: 65px; border-radius: 7px;
  border: 1.5px solid #3b2a54; font: 700 1.8rem/1 Georgia, "Times New Roman", serif; color: #41296a;
}
.mini-first { transform: translateX(-18px) rotate(-16deg); background: #fff7dc; }
.mini-second { transform: translateX(17px) rotate(12deg); background: #fcfaff; box-shadow: 0 4px 0 #4f366c32; }
.tile-body { padding: 14px 17px 16px; display: flex; flex-direction: column; flex: 1; }
.tile-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 3px 7px; font-size: .82rem; color: #685784; font-weight: 770; }
.tile-body h3 { font-size: 1.2rem; line-height: 1.24; letter-spacing: -.034em; margin-top: 6px; }
.tile-body p { color: var(--muted); margin: 5px 0 13px; }
.tile-link { color: var(--purple); font-weight: 860; font-size: .9rem; margin-top: auto; }
.occasion-section { background: #efe9f8; }
.occasions-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.occasion-tile {
  padding: 16px; display: flex; gap: 11px; align-items: center; border: 1px solid var(--line); border-radius: 14px;
  background: white; text-decoration: none; min-width: 0;
}
.occasion-tile:hover { border-color: #a68cca; }
.occasion-icon { inline-size: 42px; block-size: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 9px; color: #523685; font-size: 1.4rem; }
.occasion-tile h3 { font-size: 1.01rem; line-height: 1.2; }
.occasion-tile p { font-size: .9rem; color: var(--muted); margin-top: 3px; }
.privacy { max-width: 820px; }
.privacy h2 { font-size: 2.4rem; margin-bottom: 14px; }
details { border-top: 1px solid var(--line); }
summary { font-weight: 790; cursor: pointer; }
.privacy summary { padding: 13px 0; }
.privacy details p { color: var(--muted); margin: 0 0 14px; }
.site-footer { border-top: 1px solid var(--line); background: #fff; }
.footer-row { display: flex; gap: 12px 23px; flex-wrap: wrap; align-items: center; justify-content: space-between; min-height: 83px; }
.footer-row p { color: var(--muted); font-size: .93rem; }
.footer-links { gap: 13px; font-size: .9rem; }
.interior { padding-top: 20px; }
.breadcrumb { display: flex; gap: 6px 9px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: .9rem; margin-bottom: 15px; }
.breadcrumb a { font-weight: 720; }
.game-intro {
  border-radius: 23px; border: 1px solid #c8b9dc; min-height: 155px; padding: clamp(21px, 4vw, 39px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(96px, 20%); gap: 9px; align-items: center;
}
.game-intro h1, .missing h1 {
  font-size: clamp(2.2rem, 5.2vw, 4.65rem); line-height: 1.05; letter-spacing: -.065em;
}
.game-intro p:not(.eyebrow) { color: #4c3f5d; margin-top: 8px; max-width: 57ch; }
.intro-art { border: 0; height: 113px; }
.intro-art .mini-card { transform-origin: center; width: 62px; height: 84px; font-size: 2.3rem; }
.intro-art .tile-spark { right: 4%; font-size: 1.5rem; }
.ornament { text-align: center; color: #55318f; font-size: clamp(2.7rem, 7vw, 5.2rem); }
.game-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(245px, 1fr); align-items: start; gap: 16px; margin-top: 18px; }
.game-panel, .rules-panel {
  padding: clamp(19px, 3.2vw, 29px); background: white; border: 1px solid var(--line);
  border-radius: 18px; box-shadow: 0 4px 16px #3f2b6510; min-width: 0;
}
.game-panel:focus { outline: none; }
.game-panel > * + * { margin-top: 12px; }
.game-kicker { font-size: .84rem; color: #654794; text-transform: uppercase; font-weight: 850; letter-spacing: .09em; }
.game-title { font: 700 clamp(1.55rem, 3.2vw, 2.46rem)/1.17 Georgia, serif; letter-spacing: -.037em; }
.game-copy { color: var(--muted); }
.game-actions, .control-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.control-row { padding: 8px 0; }
.game-panel label { color: var(--ink); font-size: .91rem; font-weight: 720; }
.game-panel input, .game-panel select {
  min-width: 0; max-width: 100%; border: 1px solid #c6b8de; border-radius: 9px;
  padding: 8px 10px; background: #fcfaff; color: var(--ink);
}
.game-panel input[type="text"], .game-panel input[type="url"] { width: min(100%, 32rem); }
.game-panel label.field { display: grid; gap: 5px; min-width: 0; }
.field > .share-link, label.field > input { width: 100%; }
.game-panel h3 { font-size: 1.06rem; margin-block: 8px; }
.answer-list { display: grid; gap: 8px; padding-inline-start: 0; }
.answer-button {
  min-height: 44px; display: block; width: 100%; padding: 10px 13px; text-align: left; font-weight: 750;
  border: 1px solid #d6c9eb; border-radius: 10px; background: #f8f4ff; color: var(--ink);
}
.answer-button:hover { border-color: #9570cc; background: #efe5ff; }
.answer-button[aria-pressed="true"], .answer-button[aria-selected="true"] { border-color: #7853b6; background: #eaddff; color: #44267a; }
progress { display: block; width: 100%; accent-color: var(--purple); }
.game-status { color: #4d376d; font-size: .91rem; }
.game-status:empty { display: none; }
.game-stat { color: #412874; font-weight: 850; }
.game-badge { display: inline-block; border-radius: 99px; color: #4d3284; background: #eee6ff; padding: 4px 10px; font-size: .83rem; font-weight: 760; }
.game-review { padding-block: 10px 2px; }
.game-answer-review { padding-left: 20px; }
.game-answer-review li, .game-panel li { margin-block: 4px; }
.rules-panel h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.rules-panel ol, .article ol, .article ul { padding-inline-start: 22px; }
.rules-panel li, .article li { margin-block: 7px; }
.rules-panel p, .article p { color: var(--muted); }
.article { width: min(100%, 760px); }
.article h2 { font-size: clamp(1.65rem, 4vw, 2.6rem); }
.article blockquote {
  margin: 10px 0 15px; padding: 13px 16px; border-inline-start: 4px solid #9c77d8; background: #f0e9fa; border-radius: 0 10px 10px 0;
}
.more-games { padding-top: 8px; }
.missing p { margin: 12px 0 17px; color: var(--muted); }
@media (max-width: 900px) {
  .game-grid, .occasions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { min-height: 380px; }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 28px); }
  .header-row { min-height: 63px; gap: 9px; }
  .brand { font-size: 1.07rem; gap: 6px; }
  .brand-icon { inline-size: 32px; block-size: 32px; flex-basis: 32px; }
  .site-header nav { gap: 9px; font-size: .88rem; }
  .header-cta { display: none; }
  .hero { grid-template-columns: 1fr; border-radius: 22px; margin-top: 16px; padding: 23px; }
  .hero::before { inset: 55% 0 0; mask-image: none; }
  .hero h1 { font-size: clamp(2.35rem, 9.6vw, 4.5rem); }
  .hero-art { width: min(100%, 355px); height: 211px; margin: 7px auto 0; }
  .floating-card { top: 26%; }
  .floating-back { top: 12%; }
  .floating-left { top: 29%; }
  .floating-front strong { font-size: clamp(3.2rem, 15vw, 5.7rem); }
  .section { padding-block: 30px; }
  .section-head { margin-bottom: 16px; }
  .game-grid, .occasions-grid { gap: 10px; }
  .tile-body { padding: 12px; }
  .tile-meta { font-size: .77rem; }
  .tile-body h3 { font-size: 1.06rem; }
  .tile-body p { font-size: .92rem; }
  .tile-link { font-size: .84rem; }
  .tile-art { height: 92px; }
  .game-layout { grid-template-columns: 1fr; gap: 11px; }
  .game-intro { grid-template-columns: minmax(0, 1fr) 70px; }
  .intro-art .mini-card { width: 43px; height: 63px; font-size: 1.55rem; }
  .intro-art .mini-first { transform: translateX(-12px) rotate(-16deg); }
  .intro-art .mini-second { transform: translateX(12px) rotate(12deg); }
  .intro-art .tile-spark { display: none; }
  .footer-row { padding-block: 15px; }
}
@media (max-width: 440px) {
  .occasions-grid { grid-template-columns: 1fr; }
  .game-tile { border-radius: 13px; }
  .game-intro { grid-template-columns: 1fr; }
  .intro-art, .ornament { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

.floating-back { justify-content: center; }
.floating-left strong, .floating-front strong { margin: auto; }

@media (max-width: 680px) { .hero-actions .button { padding-inline: 12px; font-size: .9rem; } }
