@font-face { font-family: "Space Mono"; font-weight: 400; font-display: swap; src: url(/fonts/space-mono-400.woff2) format("woff2"); }
@font-face { font-family: "Space Mono"; font-weight: 700; font-display: swap; src: url(/fonts/space-mono-700.woff2) format("woff2"); }

:root {
  --main: #CB7C95;
  --dark: #85465A;
  --light: #FCF7F9;
  --selected: #F4E7EC;
  --current: #AF526A;
  --line: rgba(203, 124, 149, .5);
}
* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--main); font: 400 1rem/1.5 "Space Mono", monospace; }
a { color: inherit; text-decoration: none; }
h1, h2, p { margin: 0; }
h1 { font-size: 2.125rem; line-height: 1.235; letter-spacing: .00735em; font-weight: 700; }
h2 { font-size: 1.25rem; line-height: 1.6; letter-spacing: .0075em; font-weight: 700; }
.s1 > * + * { margin-top: 8px; }
.s2 > * + * { margin-top: 16px; }
.s3 > * + * { margin-top: 24px; }

/* header */
header {
  position: relative; padding-top: 8px;
  box-shadow: 0 3px 3px -2px rgba(203, 124, 149, .2), 0 3px 4px 0 rgba(203, 124, 149, .14), 0 1px 8px 0 rgba(203, 124, 149, .12);
}
.banner { position: relative; height: 80px; margin: 16px 0; }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.icon { display: inline-flex; padding: 8px; border: 0; border-radius: 50%; background: none; color: var(--main); cursor: pointer; }
.icon:hover { background: rgba(203, 124, 149, .08); }
.icon svg { width: 35px; height: 35px; fill: currentColor; }
.menu svg { width: 34px; height: 34px; }
.social { display: flex; }
.social.top { display: none; }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 0 .5rem; }
.pills { display: none; }
.pill {
  display: block; margin: 0 16px; padding: 7px 21px;
  border: 1px solid var(--line); border-radius: 200px; background: var(--light);
  font-size: 1.5rem; font-weight: 700; line-height: 1.334; letter-spacing: .15px; text-transform: uppercase; text-align: center;
}
.pill:hover { background: var(--selected); }
.pill.on { background: var(--current); border-color: rgba(0, 0, 0, .12); color: var(--selected); pointer-events: none; }

/* mobile drawer */
#drawer {
  margin: 0; inset: 0 auto 0 0; width: 250px; height: 100%; max-height: none; padding: 0; border: 0;
  background: #fff; color: var(--main);
  box-shadow: 0 8px 10px -5px rgba(0, 0, 0, .2), 0 16px 24px 2px rgba(0, 0, 0, .14), 0 6px 30px 5px rgba(0, 0, 0, .12);
}
#drawer::backdrop { background: rgba(0, 0, 0, .5); }
#drawer .icon { float: right; margin: 8px 8px 0 0; }
#drawer .item { display: block; clear: both; padding: 8px 16px; font-size: 1.25rem; line-height: 1.6; font-weight: 700; }
#drawer .item:first-of-type { margin-top: 8px; }
#drawer .item:hover { background: rgba(203, 124, 149, .08); }
#drawer .item.on { background: var(--selected); }

/* content */
main { max-width: 1200px; margin: 0 auto; padding: 24px 16px 0; }
main.gallery { padding-top: 32px; }
footer { height: 100px; box-shadow: 0 2px 1px -1px rgba(0, 0, 0, .2), 0 1px 1px 0 rgba(0, 0, 0, .14), 0 1px 3px 0 rgba(0, 0, 0, .12); }
.row { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: var(--gap); }
.tile { display: block; }
.tile img { display: block; width: 100%; height: auto; cursor: zoom-in; }

.masonry { display: none; gap: 8px; }
.masonry > div { display: flex; flex: 1; flex-direction: column; gap: 8px; min-width: 0; }
.m1 { display: flex; }

/* game page */
.video { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 8px; }
.btn {
  display: inline-block; padding: 8px 22px; border: 1px solid var(--line); border-radius: 4px; background: var(--light);
  font-size: .9375rem; line-height: 1.75; letter-spacing: .02857em; text-transform: uppercase;
}
.btn:hover { background: var(--selected); }

/* lightbox */
body:has(#lb[open]) { overflow: hidden; }
#lb {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: var(--light); color: var(--main);
}
#lb[open] { display: flex; flex-direction: column; }
#lb::backdrop { background: var(--light); }
#lb .icon { padding: 5px; }
#lb .icon svg { width: 40px; height: 40px; }
#lb .icon:hover { color: var(--dark); background: none; }
#lb .x { position: absolute; top: 0; right: 0; z-index: 1; }
#lb .nav { position: absolute; top: calc(50% - 25px); z-index: 1; }
#lb .prev { left: 0; }
#lb .next { right: 0; }
.stage { display: flex; flex: 1; min-height: 0; padding: 35px; overflow: auto; }
.big { max-width: 100%; max-height: 100%; margin: auto; object-fit: contain; cursor: zoom-in; }
.zoom .big { max-width: none; max-height: none; cursor: zoom-out; }
.thumbs { display: flex; gap: 8px; padding: 8px; overflow-x: auto; }
.thumbs button { flex: none; width: 88px; height: 50px; padding: 2px; border: 1px solid var(--main); background: var(--light); cursor: pointer; }
.thumbs button:first-child { margin-left: auto; }
.thumbs button:last-child { margin-right: auto; }
.thumbs button.on { border: 1.5px solid var(--dark); background: var(--selected); }
.thumbs img { display: block; width: 100%; height: 100%; object-fit: contain; }

@media (min-width: 600px) {
  .banner { height: 135px; }
  main { padding: 24px 24px 0; }
  .m1 { display: none; }
  .m2 { display: flex; }
}
@media (min-width: 900px) {
  .menu, .social.inbar { display: none; }
  .social.top {
    display: flex; position: absolute; top: 1rem; left: 0; right: 0; max-width: 1536px; margin: 0 auto; padding: 0 24px;
    justify-content: flex-end; pointer-events: none;
  }
  .social.top .icon { pointer-events: auto; }
  .bar { justify-content: center; margin-bottom: 1rem; padding: 0; }
  .pills { display: flex; flex-grow: 1; flex-wrap: wrap; justify-content: center; row-gap: 8px; }
  .m2 { display: none; }
  .m3 { display: flex; gap: 16px; }
  .m3 > div { gap: 16px; }
}
