@font-face {
  font-family:Bricolage;
  src:url('/assets/fonts/bricolage-grotesque.ttf') format('truetype');
  font-style:normal;
  font-weight:200 800;
  font-display:swap;
}

:root {
  --ink:#282333;
  --muted:#726d7b;
  --purple:#dcd4f9;
  --lime:#d7f95c;
  --line:#e9e7ed;
  --font:Bricolage,'Trebuchet MS',sans-serif;
  scroll-behavior:smooth;
  scroll-padding-top:30px;
  color-scheme:light;
}

* {
  box-sizing:border-box;
}

body {
  margin:0;
  background:#fff;
  color:var(--ink);
  font-family:var(--font);
  font-size:16px;
  line-height:1.55;
}

button,input,a {
  -webkit-tap-highlight-color:transparent;
}

button,input {
  font:inherit;
}

button,a {
  touch-action:manipulation;
}

a {
  color:inherit;
  text-decoration:none;
}

button {
  cursor:pointer;
}

button:disabled {
  cursor:default;
}

svg {
  display:block;
}

button:focus-visible,a:focus-visible,input:focus-visible {
  outline:3px solid #7960be;
  outline-offset:5px;
}

::selection {
  background:var(--lime);
  color:var(--ink);
}

[hidden] {
  display:none!important;
}

.wrap {
  width:min(1240px,calc(100% - 96px));
  margin-inline:auto;
}

.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap;
}

.skip-link {
  position:fixed;
  top:12px;
  left:12px;
  padding:10px 18px;
  background:var(--lime);
  z-index:5;
  transform:translateY(-180%);
}

.skip-link:focus {
  transform:translateY(0);
}

.site-header {
  height:112px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
}

.brand {
  display:flex;
  gap:11px;
  align-items:center;
  font-size:17px;
  font-weight:600;
  line-height:1.12;
  letter-spacing:-.6px;
}

.brand strong {
  font-weight:800;
  font-size:21px;
}

.brand-dot {
  color:#8264c6;
}

.brand-mark {
  width:44px;
  height:44px;
}

.site-header nav {
  display:flex;
  gap:34px;
  font-size:15px;
  font-weight:600;
  margin-left:80px;
}

.site-header nav a {
  padding-block:10px;
  position:relative;
}

.site-header nav a::after {
  content:'';
  position:absolute;
  height:2px;
  bottom:5px;
  left:0;
  right:0;
  background:var(--ink);
  transform:scaleX(0);
  transition:transform .2s;
}

.site-header nav a:hover::after {
  transform:scaleX(1);
}

.header-note {
  font-size:14px;
  color:#625b70;
  display:flex;
  gap:9px;
  align-items:center;
}

.header-note>span {
  color:#7e64bb;
  font-size:26px;
}

.hero {
  min-height:505px;
  background:var(--purple);
  border-radius:24px;
  position:relative;
  display:grid;
  grid-template-columns:1.15fr 1fr;
  overflow:hidden;
}

.hero-copy {
  padding:51px 0 42px 52px;
  z-index:1;
}

.eyebrow {
  font-size:12px;
  letter-spacing:1.8px;
  font-weight:700;
  display:block;
}

.hero .eyebrow {
  display:flex;
  align-items:center;
  gap:9px;
  color:#504264;
}

.tiny-star {
  font-size:24px;
  line-height:1;
}

h1,h2,h3,p {
  margin:0;
}

h1 {
  font-size:clamp(38px,4.1vw,60px);
  line-height:1.04;
  font-weight:800;
  letter-spacing:-2.7px;
  margin:26px 0 23px;
}

.fun-word {
  position:relative;
  white-space:nowrap;
}

.fun-word svg {
  position:absolute;
  left:0;
  bottom:-9px;
  width:100%;
  height:14px;
  fill:none;
  stroke:#779830;
  stroke-width:4;
  stroke-linecap:round;
}

.hero-copy>p {
  font-size:18px;
  line-height:1.55;
  color:#554a68;
}

.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:51px;
  padding:13px 23px;
  border-radius:10px;
  font-weight:650;
  font-size:15px;
  border:0;
  transition:transform .2s,background .2s;
}

.button-dark {
  background:var(--ink);
  color:white;
  margin-top:25px;
}

.button-dark:hover {
  background:#443653;
  transform:translateY(-2px);
}

.button svg {
  width:23px;
  height:23px;
}

.hero-footnote {
  font-size:12px;
  color:#5f536f;
  margin-top:20px;
}

.hero-footnote>span {
  margin-right:5px;
}

.hero-art {
  position:relative;
  min-width:0;
  display:grid;
  place-items:center;
}

.mascot {
  width:100%;
  height:calc(100% - 65px);
  object-fit:contain;
  position:absolute;
  top:20px;
  left:-5px;
}

.art-caption {
  position:absolute;
  bottom:18px;
  font-size:12px;
  color:#6b5a82;
  transform:rotate(-4deg);
  right:65px;
}

.catalog {
  padding-top:65px;
}

.section-heading {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
}

.section-heading .eyebrow {
  color:var(--muted);
  margin-bottom:10px;
}

h2 {
  font-size:32px;
  font-weight:750;
  line-height:1.15;
  letter-spacing:-1.2px;
}

.count {
  font-size:14px;
  color:var(--muted);
  padding-bottom:3px;
  white-space:nowrap;
}

.catalog-toolbar {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin:28px 0 24px;
}

.filters {
  display:flex;
  gap:7px;
  flex-wrap:wrap;
}

.filter {
  border:1px solid var(--line);
  border-radius:8px;
  padding:9px 18px;
  min-height:42px;
  background:#fff;
  color:#6a6374;
  font-size:14px;
  transition:background .2s,color .2s,border-color .2s;
}

.filter:hover {
  background:#f4f0fb;
  color:var(--ink);
}

.filter.is-active {
  background:var(--ink);
  border-color:var(--ink);
  color:#fff;
}

.filter span {
  color:var(--lime);
  margin-left:5px;
}

.search {
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid var(--line);
  border-radius:8px;
  padding:0 13px;
  min-height:44px;
  width:272px;
  background:#fff;
}

.search:focus-within {
  border-color:#8b75b5;
  box-shadow:0 0 0 2px #eee7fc;
}

.search svg {
  width:18px;
  height:18px;
  flex-shrink:0;
  color:#8a8395;
}

.search input {
  width:100%;
  min-width:0;
  border:0;
  background:none;
  font-size:14px;
  outline:none;
  color:var(--ink);
  padding:11px 0;
}

.search input:focus-visible {
  outline:none;
}

.search input::placeholder {
  color:#8a8395;
  opacity:1;
}

.empty-state {
  border:1.5px dashed #dcd6e7;
  min-height:322px;
  border-radius:15px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  text-align:center;
  background:#fcfbfe;
  padding:30px 24px;
}

.empty-doodle {
  position:relative;
  width:112px;
  margin:0 0 23px;
  transform:rotate(-8deg);
}

.empty-doodle svg {
  width:102px;
  height:78px;
}

.empty-doodle>span {
  position:absolute;
  font-size:12px;
  white-space:nowrap;
  background:var(--lime);
  padding:1px 7px;
  bottom:-6px;
  left:8px;
  transform:rotate(12deg);
  border-radius:3px;
}

.empty-state h3 {
  font-size:23px;
  font-weight:700;
  letter-spacing:-.6px;
  line-height:1.2;
}

.empty-state p {
  max-width:420px;
  font-size:15px;
  color:var(--muted);
  line-height:1.65;
  margin-top:10px;
}

.coming-soon {
  font-size:12px;
  letter-spacing:1.4px;
  font-weight:650;
  color:#88789d;
  margin-top:20px;
}

.text-button {
  border:0;
  background:none;
  text-decoration:underline;
  text-underline-offset:4px;
  font-size:14px;
  font-weight:600;
  color:#6e509f;
  margin-top:15px;
  padding:7px;
}

.about {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:90px;
  padding-block:67px 54px;
}

.about-intro .eyebrow {
  color:var(--muted);
  margin-bottom:16px;
}

.about-intro h2 {
  font-size:35px;
  line-height:1.1;
}

.about-intro>p {
  font-size:16px;
  color:var(--muted);
  max-width:345px;
  margin-top:18px;
  line-height:1.7;
}

.about-details {
  display:flex;
  flex-direction:column;
  gap:22px;
  padding-top:4px;
}

.principle {
  display:flex;
  align-items:flex-start;
  gap:16px;
}

.principle-icon {
  background:#f2eef9;
  display:grid;
  place-items:center;
  flex-shrink:0;
  width:42px;
  height:42px;
  border-radius:12px;
}

.principle-icon svg {
  height:23px;
  width:23px;
  stroke:#715995;
  stroke-width:1.5;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.principle h3 {
  font-size:17px;
  letter-spacing:-.2px;
  font-weight:650;
  margin-bottom:4px;
}

.principle p {
  font-size:14px;
  color:var(--muted);
  line-height:1.6;
}

.closing {
  background:var(--lime);
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:38px;
  min-height:74px;
  padding:18px;
  text-align:center;
}

.closing p {
  font-size:19px;
  letter-spacing:-.4px;
  font-weight:600;
}

.closing>span {
  font-size:28px;
}

.site-footer {
  min-height:107px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  font-size:12px;
  color:var(--muted);
}

.footer-name {
  font-weight:750;
  color:var(--ink);
  font-size:15px;
  letter-spacing:-.5px;
}

.mobile-only {
  display:none;
}

.game-grid {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px;
}

.game-card {
  border:1px solid var(--line);
  border-radius:15px;
  overflow:hidden;
  transition:transform .2s,box-shadow .2s;
  background:#fff;
}

.game-card:hover {
  transform:translateY(-4px);
  box-shadow:0 9px 24px #28233310;
}

.game-card img {
  width:100%;
  aspect-ratio:16/10;
  object-fit:cover;
  background:#f0ecf8;
  display:block;
}

.game-card-content {
  padding:20px;
}

.game-card h3 {
  font-size:22px;
  letter-spacing:-.5px;
  margin:9px 0;
}

.game-card p {
  font-size:15px;
  color:var(--muted);
}

.game-genre {
  font-size:12px;
  background:#f0ebf9;
  color:#73519a;
  border-radius:5px;
  padding:4px 8px;
}

.game-card .button {
  margin-top:18px;
  min-height:42px;
  padding:9px 16px;
  font-size:14px;
}

.noscript-note {
  padding:20px;
  border:1px solid var(--line);
  margin-top:20px;
}

@media(min-width:1440px) {
  h1 {
    font-size:60px;
  }
  .mascot {
    top:20px;
    width:100%;
  }
  .hero {
    min-height:515px;
  }
}

@media(max-width:1100px) {
  .wrap {
    width:calc(100% - 64px);
  }
  .hero-copy {
    padding:42px 0 38px 36px;
  }
  .hero {
    min-height:475px;
    grid-template-columns:1.15fr 1fr;
  }
  h1 {
    font-size:47px;
    letter-spacing:-2.2px;
  }
  .hero-copy>p {
    font-size:17px;
  }
  .mascot {
    top:35px;
    left:0;
  }
  .art-caption {
    right:28px;
  }
  .site-header nav {
    margin-left:0;
  }
  .header-note {
    font-size:12px;
  }
  .about {
    gap:45px;
  }
  h2 {
    font-size:29px;
  }
  .filter {
    padding-inline:14px;
  }
  .search {
    width:240px;
  }
}

@media(max-width:800px) {
  .wrap {
    width:calc(100% - 40px);
  }
  .site-header {
    height:92px;
  }
  .header-note {
    display:none;
  }
  .site-header nav {
    gap:22px;
    font-size:14px;
  }
  .hero {
    grid-template-columns:1fr 1fr;
    min-height:450px;
  }
  .hero-copy {
    padding:34px 0 34px 28px;
  }
  .hero .eyebrow {
    font-size:12px;
    letter-spacing:1px;
  }
  h1 {
    font-size:39px;
    letter-spacing:-1.8px;
  }
  .hero-copy>p {
    font-size:15px;
  }
  .hero-footnote {
    max-width:240px;
    font-size:12px;
  }
  .mascot {
    width:110%;
    height:calc(100% - 90px);
    left:-20px;
    top:45px;
  }
  .art-caption {
    font-size:12px;
    right:20px;
  }
  .catalog {
    padding-top:44px;
  }
  .catalog-toolbar {
    flex-wrap:wrap;
  }
  .search {
    width:100%;
  }
  .about {
    gap:30px;
    padding-block:46px;
  }
  .about-intro h2 {
    font-size:30px;
  }
  .about-intro>p {
    font-size:15px;
  }
  .principle {
    gap:10px;
  }
  .principle h3 {
    font-size:16px;
  }
  .principle p {
    font-size:14px;
  }
  .site-footer {
    flex-wrap:wrap;
    justify-content:center;
    gap:7px 22px;
    padding-block:26px;
  }
  .site-footer p {
    order:3;
    width:100%;
    text-align:center;
  }
  .game-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:600px) {
  .wrap {
    width:calc(100% - 32px);
  }
  .site-header {
    height:86px;
    gap:12px;
  }
  .brand {
    font-size:14px;
    gap:8px;
  }
  .brand strong {
    font-size:17px;
  }
  .brand-mark {
    width:36px;
    height:36px;
  }
  .site-header nav {
    gap:16px;
    font-size:14px;
  }
  .nav-games {
    display:none;
  }
  .hero {
    display:flex;
    flex-direction:column;
    border-radius:18px;
  }
  .hero-copy {
    padding:30px 25px 0;
  }
  .hero .eyebrow {
    font-size:12px;
    letter-spacing:1.3px;
  }
  h1 {
    font-size:clamp(36px,8.7vw,52px);
    line-height:1.07;
    letter-spacing:-1.8px;
    margin:22px 0;
  }
  .hero-copy>p {
    font-size:16px;
  }
  .hero .button {
    min-height:49px;
    margin-top:22px;
  }
  .hero-footnote {
    max-width:none;
    font-size:12px;
    margin-top:15px;
  }
  .hero-art {
    min-height:320px;
    margin-top:8px;
  }
  .mascot {
    height:290px;
    width:100%;
    top:0;
    left:50%;
    transform:translateX(-50%);
  }
  .art-caption {
    bottom:14px;
    right:28px;
    font-size:12px;
  }
  .catalog {
    padding-top:38px;
  }
  .eyebrow {
    font-size:12px;
    letter-spacing:1.5px;
  }
  .section-heading {
    align-items:flex-start;
  }
  .section-heading h2 {
    font-size:27px;
    letter-spacing:-1px;
  }
  .mobile-only {
    display:initial;
  }
  .count {
    font-size:12px;
    padding-top:26px;
    white-space:normal;
    max-width:75px;
    text-align:right;
  }
  .catalog-toolbar {
    margin-top:23px;
    gap:15px;
  }
  .filters {
    width:100%;
    gap:6px;
    justify-content:flex-start;
  }
  .filter {
    font-size:14px;
    padding:9px 10px;
    min-height:42px;
    flex-grow:0;
  }
  .filter span {
    display:none;
  }
  .empty-state {
    padding:28px 18px;
    min-height:320px;
  }
  .empty-state h3 {
    font-size:21px;
  }
  .empty-state p {
    font-size:14px;
  }
  .empty-doodle {
    margin-bottom:24px;
  }
  .about {
    grid-template-columns:1fr;
    gap:28px;
    padding-block:39px;
  }
  .about-intro h2 {
    font-size:32px;
  }
  .about-intro>p {
    max-width:100%;
    margin-top:14px;
  }
  .about-details {
    gap:21px;
  }
  .principle {
    gap:14px;
  }
  .principle h3 {
    font-size:16px;
  }
  .principle p {
    font-size:14px;
  }
  .closing {
    gap:19px;
    padding:19px 12px;
    min-height:88px;
  }
  .closing p {
    font-size:17px;
    line-height:1.3;
  }
  .closing>span {
    font-size:23px;
  }
  .game-grid {
    grid-template-columns:1fr;
  }
  .site-footer {
    font-size:12px;
    padding-block:25px;
  }
  .footer-name {
    font-size:14px;
  }
}

@media(max-width:360px) {
  h1 {
    font-size:29px;
    letter-spacing:-1.3px;
  }
  .hero-copy {
    padding-inline:20px;
  }
  .section-heading {
    display:block;
  }
  .count {
    display:block;
    max-width:none;
    text-align:left;
    padding-top:10px;
  }
}

@media(prefers-reduced-motion:reduce) {
  :root {
    scroll-behavior:auto;
  }
  *,*::before,*::after {
    transition:none!important;
  }
}


/* Mobile: comfortable touch targets, no keyboard zoom and a compact filter grid. */
@media (max-width: 600px) {
  .desktop-break { display: none; }
  .site-header nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .site-header nav a.nav-games { display: none; }
  .search input { font-size: 16px; min-height: 46px; }
  .filters { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
  .filter { min-height: 44px; padding: 9px 3px; }
  .text-button { min-height: 44px; }
  .hero-footnote { max-width: 100%; }
}
@media (max-width: 360px) {
  .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
