/*
! tailwindcss v3.4.1 | MIT License | https://tailwindcss.com
*//*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box; /* 1 */
  border-width: 0; /* 2 */
  border-style: solid; /* 2 */
  border-color: #e5e7eb; /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  -moz-tab-size: 4; /* 3 */
  -o-tab-size: 4;
     tab-size: 4; /* 3 */
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */
  font-feature-settings: normal; /* 5 */
  font-variation-settings: normal; /* 6 */
  -webkit-tap-highlight-color: transparent; /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0; /* 1 */
  line-height: inherit; /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
  border-top-width: 1px; /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

a {
  color: inherit;
  text-decoration: inherit;
}

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */
  font-feature-settings: normal; /* 2 */
  font-variation-settings: normal; /* 3 */
  font-size: 1em; /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
  border-collapse: collapse; /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-feature-settings: inherit; /* 1 */
  font-variation-settings: inherit; /* 1 */
  font-size: 100%; /* 1 */
  font-weight: inherit; /* 1 */
  line-height: inherit; /* 1 */
  color: inherit; /* 1 */
  margin: 0; /* 2 */
  padding: 0; /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
[type='button'],
[type='reset'],
[type='submit'] {
  -webkit-appearance: button; /* 1 */
  background-color: transparent; /* 2 */
  background-image: none; /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/
dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

input::placeholder,
textarea::placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/
:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; /* 1 */
  vertical-align: middle; /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */
[hidden] {
  display: none;
}
    /* "NotoSansSC" is declared in /fonts/noto.css, generated by lib/font.js (per-language subsets). */
    html {
        font-family: system-ui, "NotoSansSC", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    }

    a {
        text-decoration: underline;
    }

    body {
        line-height: 30px;
    }

    /* Headings and lists inside blog posts (Markdown output). */
    h2 {
  padding-bottom: 1rem;
  padding-top: 2rem;
  text-align: center;
  font-size: 1.5rem;
  line-height: 2rem;
}
    h3 {
  padding-bottom: 0.25rem;
  font-size: 1.25rem;
  line-height: 1.75rem;
}
    ul {
        list-style: square;
        padding-left: 30px;
    }
    li {
        padding-top: 10px;
        padding-bottom: 10px;
    }

*, ::before, ::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
}

::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
}
.container {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
}
@media (min-width: 640px) {

  .container {
    max-width: 640px;
  }
}
@media (min-width: 768px) {

  .container {
    max-width: 768px;
  }
}
@media (min-width: 1024px) {

  .container {
    max-width: 1024px;
  }
}
@media (min-width: 1280px) {

  .container {
    max-width: 1280px;
  }
}
@media (min-width: 1536px) {

  .container {
    max-width: 1536px;
  }
}
.visible {
  visibility: visible;
}
.invisible {
  visibility: hidden;
}
.absolute {
  position: absolute;
}
.relative {
  position: relative;
}
.-start-3 {
  inset-inline-start: -0.75rem;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.mb-1 {
  margin-bottom: 0.25rem;
}
.mb-10 {
  margin-bottom: 2.5rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.me-2 {
  margin-inline-end: 0.5rem;
}
.ms-6 {
  margin-inline-start: 1.5rem;
}
.mt-10 {
  margin-top: 2.5rem;
}
.mt-16 {
  margin-top: 4rem;
}
.mt-3 {
  margin-top: 0.75rem;
}
.block {
  display: block;
}
.inline-block {
  display: inline-block;
}
.flex {
  display: flex;
}
.inline-flex {
  display: inline-flex;
}
.table {
  display: table;
}
.grid {
  display: grid;
}
.hidden {
  display: none;
}
.aspect-video {
  aspect-ratio: 16 / 9;
}
.size-8 {
  width: 2rem;
  height: 2rem;
}
.size-full {
  width: 100%;
  height: 100%;
}
.h-4 {
  height: 1rem;
}
.h-6 {
  height: 1.5rem;
}
.h-8 {
  height: 2rem;
}
.h-auto {
  height: auto;
}
.min-h-\[calc\(100\%-9rem\)\] {
  min-height: calc(100% - 9rem);
}
.w-4 {
  width: 1rem;
}
.w-6 {
  width: 1.5rem;
}
.w-8 {
  width: 2rem;
}
.w-fit {
  width: -moz-fit-content;
  width: fit-content;
}
.w-full {
  width: 100%;
}
.max-w-3xl {
  max-width: 48rem;
}
.max-w-5xl {
  max-width: 64rem;
}
.max-w-\[52rem\] {
  max-width: 52rem;
}
.transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.resize {
  resize: both;
}
.scroll-mt-8 {
  scroll-margin-top: 2rem;
}
.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.flex-wrap {
  flex-wrap: wrap;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.gap-1 {
  gap: 0.25rem;
}
.gap-1\.5 {
  gap: 0.375rem;
}
.gap-10 {
  gap: 2.5rem;
}
.gap-4 {
  gap: 1rem;
}
.gap-6 {
  gap: 1.5rem;
}
.gap-x-5 {
  -moz-column-gap: 1.25rem;
       column-gap: 1.25rem;
}
.gap-y-1 {
  row-gap: 0.25rem;
}
.space-x-4 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(1rem * var(--tw-space-x-reverse));
  margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse)));
}
.space-y-10 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(2.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(2.5rem * var(--tw-space-y-reverse));
}
.space-y-4 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1rem * var(--tw-space-y-reverse));
}
.overflow-hidden {
  overflow: hidden;
}
.rounded-full {
  border-radius: 9999px;
}
.rounded-lg {
  border-radius: 0.5rem;
}
.border-2 {
  border-width: 2px;
}
.border-s {
  border-inline-start-width: 1px;
}
.border-gray-600 {
  --tw-border-opacity: 1;
  border-color: rgb(75 85 99 / var(--tw-border-opacity));
}
.border-gray-700 {
  --tw-border-opacity: 1;
  border-color: rgb(55 65 81 / var(--tw-border-opacity));
}
.bg-\[\#3b5998\] {
  --tw-bg-opacity: 1;
  background-color: rgb(59 89 152 / var(--tw-bg-opacity));
}
.bg-\[\#a43740\] {
  --tw-bg-opacity: 1;
  background-color: rgb(164 55 64 / var(--tw-bg-opacity));
}
.bg-\[\#bf4a5d\] {
  --tw-bg-opacity: 1;
  background-color: rgb(191 74 93 / var(--tw-bg-opacity));
}
.bg-black {
  --tw-bg-opacity: 1;
  background-color: rgb(0 0 0 / var(--tw-bg-opacity));
}
.bg-gray-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(75 85 99 / var(--tw-bg-opacity));
}
.bg-slate-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(248 250 252 / var(--tw-bg-opacity));
}
.bg-stone-700\/60 {
  background-color: rgb(68 64 60 / 0.6);
}
.bg-stone-800 {
  --tw-bg-opacity: 1;
  background-color: rgb(41 37 36 / var(--tw-bg-opacity));
}
.object-contain {
  -o-object-fit: contain;
     object-fit: contain;
}
.object-cover {
  -o-object-fit: cover;
     object-fit: cover;
}
.p-4 {
  padding: 1rem;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.px-5 {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}
.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}
.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.py-2\.5 {
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}
.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.pb-10 {
  padding-bottom: 2.5rem;
}
.pb-2 {
  padding-bottom: 0.5rem;
}
.pb-4 {
  padding-bottom: 1rem;
}
.pb-6 {
  padding-bottom: 1.5rem;
}
.pb-8 {
  padding-bottom: 2rem;
}
.pl-5 {
  padding-left: 1.25rem;
}
.pt-0 {
  padding-top: 0px;
}
.pt-10 {
  padding-top: 2.5rem;
}
.pt-12 {
  padding-top: 3rem;
}
.pt-14 {
  padding-top: 3.5rem;
}
.pt-16 {
  padding-top: 4rem;
}
.pt-2 {
  padding-top: 0.5rem;
}
.pt-6 {
  padding-top: 1.5rem;
}
.pt-8 {
  padding-top: 2rem;
}
.text-left {
  text-align: left;
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}
.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}
.text-5xl {
  font-size: 3rem;
  line-height: 1;
}
.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}
.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}
.font-bold {
  font-weight: 700;
}
.font-medium {
  font-weight: 500;
}
.font-normal {
  font-weight: 400;
}
.font-semibold {
  font-weight: 600;
}
.uppercase {
  text-transform: uppercase;
}
.leading-none {
  line-height: 1;
}
.tracking-widest {
  letter-spacing: 0.1em;
}
.text-gray-300 {
  --tw-text-opacity: 1;
  color: rgb(209 213 219 / var(--tw-text-opacity));
}
.text-gray-400 {
  --tw-text-opacity: 1;
  color: rgb(156 163 175 / var(--tw-text-opacity));
}
.text-gray-500 {
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / var(--tw-text-opacity));
}
.text-gray-600 {
  --tw-text-opacity: 1;
  color: rgb(75 85 99 / var(--tw-text-opacity));
}
.text-slate-50 {
  --tw-text-opacity: 1;
  color: rgb(248 250 252 / var(--tw-text-opacity));
}
.text-white {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity));
}
.underline {
  text-decoration-line: underline;
}
.no-underline {
  text-decoration-line: none;
}
.blur {
  --tw-blur: blur(8px);
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.drop-shadow-lg {
  --tw-drop-shadow: drop-shadow(0 10px 8px rgb(0 0 0 / 0.04)) drop-shadow(0 4px 3px rgb(0 0 0 / 0.1));
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

/*
 * Games page media: key art, screenshot pages, enlarged view. Behaviour: src/client/games.js.
 * Plain CSS outside @layer, so Tailwind never purges the classes the script toggles.
 */

/*
 * Hover feedback for everything clickable on every page built from layouts/base.liquid (games, blog
 * lists, posts; body.hover-pop): it pops up a little,
 * with a springy ease, and gives one short shake. Bigger things move less; round icons don't shake.
 */
.hover-pop :is(a, button) {
    --pop-scale: 1.05;
    --pop-turn: 0.8deg;
}
.hover-pop .social-links a {
    --pop-scale: 1.15;
    --pop-turn: 6deg;
}
/* Blog list titles are left-aligned text: grow from the left edge, shake less. */
.hover-pop .post-link {
    --pop-scale: 1.04;
    --pop-turn: 0.5deg;
    transform-origin: left center;
}
.hover-pop :is(.shots-arrow, .lightbox-close) {
    --pop-scale: 1.1;
    --pop-turn: 0deg;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .hover-pop :is(a, button) {
        /* Keeps the colour and fade transitions some of these elements have of their own. */
        transition: scale 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.15s, color 0.15s, opacity 0.28s;
    }
    .hover-pop :is(a, button):hover {
        scale: var(--pop-scale);
        animation: media-shake 0.45s ease-in-out;
    }
    .hover-pop .media-pop:hover {
        z-index: 1;
    }
}
@keyframes media-shake {
    0%, 100% { rotate: 0deg; }
    20% { rotate: calc(var(--pop-turn) * -1); }
    40% { rotate: var(--pop-turn); }
    60% { rotate: calc(var(--pop-turn) * -0.5); }
    80% { rotate: calc(var(--pop-turn) * 0.25); }
}

/* Key art and screenshots are buttons. */
.media-pop {
    display: block;
    width: 100%;
    position: relative;
    border-radius: 0.5rem;
    cursor: zoom-in;
}
.hover-pop .media-pop {
    --pop-scale: 1.025;
    --pop-turn: 0.6deg;
}
/* Key art that plays a trailer gets a pointer; one that only enlarges (press kits) keeps zoom-in. */
.media-pop.keyart[data-video] {
    cursor: pointer;
}
.hover-pop .media-pop.keyart {
    --pop-scale: 1.015;
    --pop-turn: 0.35deg;
}
.media-pop:focus-visible {
    outline: 2px solid #9ca3af;
    outline-offset: 4px;
}

/* Press kits: the download arrow on each image (partials/presskit-image.liquid). Always visible on
   touch screens; elsewhere it appears when the image is hovered. */
.presskit-download {
    position: absolute;
    right: 0.5rem;
    bottom: 0.5rem;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background: rgb(0 0 0 / 0.55);
    border: 1px solid rgb(255 255 255 / 0.35);
    color: rgb(255 255 255 / 0.9);
}
.presskit-download svg {
    width: 60%;
    height: 60%;
}
.hover-pop .presskit-download {
    --pop-scale: 1.1;
    --pop-turn: 0deg;
}
@media (hover: hover) {
    .presskit-download {
        opacity: 0;
    }
    .relative:hover > .presskit-download,
    .presskit-download:focus-visible {
        opacity: 1;
    }
}

/* Back to top (layouts/base.liquid, src/client/top.js): bottom right, styled like the screenshot arrows. */
.to-top {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 10;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0.55rem;
    border: 2px solid #4b5563; /* gray-600 */
    border-radius: 9999px;
    background: rgb(41 37 36 / 0.85); /* stone-800 */
    color: #9ca3af; /* gray-400 */
    opacity: 1;
    transition: background-color 0.15s, color 0.15s, opacity 0.25s;
}
.to-top:hover {
    background: #4b5563;
    color: #fff;
}
.to-top[hidden] {
    display: grid; /* stays in place so it can fade in */
    opacity: 0;
    visibility: hidden; /* not clickable or focusable while hidden */
}
.hover-pop .to-top {
    --pop-scale: 1.1;
    --pop-turn: 0deg;
}
@media (max-width: 639px) {
    .to-top {
        right: 1rem;
        bottom: 1rem;
    }
}

/* Games page: the description's lines (one per <br> in game.yml) each wrap evenly instead of leaving
   a word or two alone on the last line. Japanese breaks between phrases rather than inside words. */
.game-description span {
    display: block;
    text-wrap: balance;
}
.game-description:lang(ja) {
    word-break: auto-phrase;
}

/* Games page: status under the title (partials/game-entry.liquid). */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 0 1rem;
    padding: 0.1rem 0.8rem;
    border: 1px solid #4b5563; /* gray-600 */
    border-radius: 9999px;
    color: #d1d5db; /* gray-300 */
    font-size: 0.95rem;
}
.status-badge span {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background: #fbbf24; /* amber-400: in development */
}
.status-badge.is-released span {
    background: #34d399; /* emerald-400 */
}

/* Previous/next links at the end of a post (layouts/post.liquid). */
.post-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
    border: 1px solid #4b5563; /* gray-600 */
    border-radius: 0.5rem;
    text-decoration: none;
    line-height: 1.5;
    transition: background-color 0.15s;
}
.post-nav:hover {
    background: rgb(75 85 99 / 0.35);
}
.hover-pop .post-nav {
    --pop-scale: 1.03;
    --pop-turn: 0.4deg;
}

/* Ludography thumbnails: links to the timeline entries. */
.ludo {
    cursor: pointer;
}
.hover-pop .ludo {
    --pop-scale: 1.04;
    --pop-turn: 0.6deg;
}
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth; /* Ludography and press kit jump links */
    }
}

.play-badge {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background: rgb(0 0 0 / 0.4);
    border: 1px solid rgb(255 255 255 / 0.35);
    color: rgb(255 255 255 / 0.85);
    pointer-events: none;
    transition: background-color 0.2s;
}
/* The triangle's box sits a little right of center so it looks centered. */
.play-badge svg {
    width: 55%;
    height: 55%;
}
.keyart:hover .play-badge {
    background: rgb(0 0 0 / 0.6);
}
@media (max-width: 639px) {
    .play-badge {
        right: 0.5rem;
        bottom: 0.5rem;
        width: 2.25rem;
        height: 2.25rem;
    }
}

/* Screenshot pages: a horizontal scroller with one 3 × 2 grid per page. The 12px padding (taken back
   by the negative margin) leaves room for the hover pop; the 24px gap keeps the next page out of view. */
.shots {
    position: relative;
    margin-top: 1.25rem;
}
.shots-track {
    display: flex;
    gap: 24px;
    padding: 12px;
    margin: -12px;
    scroll-padding: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -moz-user-select: none;
         user-select: none;
    -webkit-user-select: none;
}
.shots-track::-webkit-scrollbar {
    display: none;
}
.shots-track.dragging {
    scroll-snap-type: none;
    cursor: grabbing;
}
.shots-track.dragging .media-pop {
    cursor: grabbing;
}
.shots-track img {
    -webkit-user-drag: none;
}
.shots-page {
    flex: 0 0 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-content: start;
    gap: 0.75rem;
    scroll-snap-align: start;
}
/*
 * A page with fewer than 6 screenshots (data-count) keeps a full page's height (two rows) and fills it
 * differently: 1 = one large; 2 = two side by side; 3 = one large + two stacked; 4 = one large + three
 * stacked; 5 = three, then two centered. Sizes assume 16:9 screenshots; others are cropped to fit.
 * 100cqw is the width of .shots.
 */
.shots {
    container-type: inline-size;
}
.shots-page[data-count] {
    --g: 0.75rem;
    --box: calc((100cqw - 2 * var(--g)) / 3 * 9 / 8 + var(--g)); /* two 16:9 rows of a third of the width */
    height: var(--box);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--g);
}
.shots-page[data-count] .shot img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
}
.shots-page[data-count="1"] .shot {
    width: auto;
    height: 100%;
    aspect-ratio: 16 / 9;
}
.shots-page[data-count="2"] .shot {
    flex: 1 1 0;
    width: auto;
    aspect-ratio: 16 / 9;
}
.shots-page[data-count="3"] {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
}
.shots-page[data-count="3"] .shot:first-child {
    grid-column: span 2;
    grid-row: span 2;
}
.shots-page[data-count="4"] {
    display: grid;
    grid-template-columns: calc(var(--box) * 16 / 9) calc((var(--box) - 2 * var(--g)) / 3 * 16 / 9);
    grid-template-rows: repeat(3, minmax(0, 1fr));
}
.shots-page[data-count="4"] .shot:first-child {
    grid-row: span 3;
}
.shots-page:is([data-count="3"], [data-count="4"]) .shot {
    height: 100%;
}
.shots-page[data-count="5"] {
    flex-wrap: wrap;
    align-content: center;
}
.shots-page[data-count="5"] .shot {
    flex: none;
    width: calc((100cqw - 2 * var(--g)) / 3);
}
/* Phones: two columns. A full page is 2 × 3; a shorter page puts its first screenshot across both
   columns when the count is odd (1, 3, 5), the rest two by two. */
@media (max-width: 639px) {
    .shots-page,
    .shots-page[data-count] {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
        height: auto;
        align-content: start;
    }
    .shots-page[data-count] .shot {
        width: auto;
        height: auto;
        aspect-ratio: 16 / 9;
    }
    .shots-page[data-count] .shot:first-child {
        grid-row: auto;
        grid-column: auto;
    }
    .shots-page:is([data-count="1"], [data-count="3"], [data-count="5"]) .shot:first-child {
        grid-column: span 2;
    }
    .shots-page[data-count="5"] .shot {
        width: auto;
    }
}
/* Large tiles pop less. */
.hover-pop .shots-page:is([data-count="1"], [data-count="2"]) .shot,
.hover-pop .shots-page:is([data-count="3"], [data-count="4"]) .shot:first-child {
    --pop-scale: 1.015;
    --pop-turn: 0.35deg;
}

.shots-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.45rem;
    translate: 0 -50%;
    border: 2px solid #4b5563; /* gray-600, like the nav buttons */
    border-radius: 9999px;
    background: rgb(41 37 36 / 0.85); /* stone-800, the page background */
    color: #9ca3af; /* gray-400 */
    transition: background-color 0.15s, color 0.15s;
}
.shots-arrow:hover {
    background: #4b5563;
    color: #fff;
}
.shots-arrow[hidden] {
    display: none;
}
.shots-next {
    right: -1.25rem;
}
.shots-prev {
    left: -1.25rem;
}

/* Enlarged screenshot or trailer: the dialog covers the window with a dark see-through overlay;
   the frame is placed and animated by the script. */
.lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
    background: rgb(0 0 0 / 0);
    transition: background-color 0.28s;
    cursor: zoom-out;
}
.lightbox::backdrop {
    background: transparent;
}
.lightbox.is-open {
    background: rgb(0 0 0 / 0.8);
}
html:has(.lightbox[open]) {
    overflow: hidden;
    scrollbar-gutter: stable;
}
.lightbox-frame {
    position: fixed;
    overflow: hidden;
    border-radius: 0.5rem;
    background: #000;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.6);
    transform-origin: 0 0;
}
.lightbox-frame img,
.lightbox-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    -o-object-fit: contain;
       object-fit: contain;
    border: 0;
}
.lightbox-frame .lightbox-hi {
    opacity: 0;
    transition: opacity 0.2s;
}
.lightbox-frame .lightbox-hi.loaded {
    opacity: 1;
}
.lightbox-close {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0.6rem;
    border-radius: 9999px;
    color: rgb(255 255 255 / 0.8);
    opacity: 0;
    transition: opacity 0.28s, background-color 0.15s;
}
.lightbox.is-open .lightbox-close {
    opacity: 1;
}
.lightbox-close:hover {
    color: #fff;
    background: rgb(255 255 255 / 0.12);
}
.hover\:bg-\[\#3b5998\]\/90:hover {
  background-color: rgb(59 89 152 / 0.9);
}
.hover\:bg-\[\#a43740\]\/90:hover {
  background-color: rgb(164 55 64 / 0.9);
}
.hover\:bg-\[\#bf4a5d\]\/90:hover {
  background-color: rgb(191 74 93 / 0.9);
}
.hover\:bg-gray-600:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(75 85 99 / var(--tw-bg-opacity));
}
.hover\:text-white:hover {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity));
}
@media (min-width: 640px) {

  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sm\:items-end {
    align-items: flex-end;
  }

  .sm\:text-right {
    text-align: right;
  }
}
@media (min-width: 768px) {

  .md\:grid-cols-\[14rem_1fr\] {
    grid-template-columns: 14rem 1fr;
  }
}
@media (min-width: 1024px) {

  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.\[\&_a\]\:text-slate-50 a {
  --tw-text-opacity: 1;
  color: rgb(248 250 252 / var(--tw-text-opacity));
}
.\[\&_i\]\:text-slate-50 i {
  --tw-text-opacity: 1;
  color: rgb(248 250 252 / var(--tw-text-opacity));
}
