/* =========================================================
   Fox Mitten Library - main.css
   整理版
   ========================================================= */

/* ---------- 基本設定 ---------- */

:root {
  --color-bg: #f6f4ef;
  --color-surface: #fffdf8;
  --color-surface-soft: #f7efe2;
  --color-line: #e5d4bc;
  --color-line-strong: #d39a5f;
  --color-text: #2f2a24;
  --color-text-soft: #5b5247;
  --color-link: #8a4b08;
  --color-link-hover: #b45d06;
  --color-accent: #d7ef63;
  --color-accent-strong: #b8de3d;
  --color-accent-text: #243000;
  --shadow-soft: 0 6px 18px rgba(80, 60, 30, 0.06);
  --shadow-card: 0 10px 28px rgba(70, 50, 20, 0.08);
  --radius-s: 10px;
  --radius-m: 14px;
  --radius-l: 18px;
  --content-width: 1100px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family:
    "Hiragino Kaku Gothic ProN",
    "Hiragino Sans",
    "Yu Gothic",
    "Meiryo",
    sans-serif;
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-link);
}

a:hover {
  color: var(--color-link-hover);
}

p {
  margin: 0 0 1em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  line-height: 1.4;
  color: #222;
}

.container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.container h1 {
  font-size: clamp(2rem, 3.4vw, 3rem);
  margin-bottom: 0.6em;
}

.container h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  margin-bottom: 0.65em;
}

.container h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  margin-bottom: 0.7em;
}

/* =========================================
   Common Header
========================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.site-header__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.site-header__brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  color: inherit;
  min-width: 180px;
}

.site-header__title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
}

.site-header__tagline {
  font-size: 0.82rem;
  line-height: 1.3;
  opacity: 0.72;
}

.top-nav {
  margin-left: auto;
}

.top-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.top-nav__item {
  margin: 0;
  padding: 0;
}

.top-nav__link {
  display: inline-block;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  color: inherit;
  font-size: 0.95rem;
  line-height: 1;
  background: rgba(0, 0, 0, 0.04);
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.top-nav__link:hover {
  background: rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.top-nav__link.is-active {
  background: rgba(120, 200, 120, 0.22);
  font-weight: 700;
}

.site-header__sub {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  background: rgba(0, 0, 0, 0.015);
}

.site-header__sub-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.site-header__sub-link {
  font-size: 0.88rem;
  text-decoration: none;
  color: inherit;
  opacity: 0.84;
}

.site-header__sub-link:hover {
  text-decoration: underline;
}

/* =========================================================
   game_detail.php / readme_detail.php 用
   ========================================================= */

.game-detail-page {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.game-detail-main {
  margin-bottom: 28px;
}

.game-detail-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-card);
  padding: 22px 22px 18px;
  margin-bottom: 28px;
}

.game-detail-card__heading {
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-line-strong);
  font-size: 1.55rem;
  line-height: 1.4;
  color: #2e2a25;
}

.game-description {
  white-space: normal;
}

.game-description p {
  margin: 0 0 1em;
}

.game-description p:last-child {
  margin-bottom: 0;
}

.game-description ul,
.game-description ol {
  margin: 0.5em 0 1em 1.4em;
  padding: 0;
}

.game-description li {
  margin: 0 0 0.35em;
}

/* ---------- 基本情報テーブル ---------- */

.game-meta {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

.game-meta th,
.game-meta td {
  padding: 14px 12px;
  vertical-align: top;
  border-bottom: 1px solid #efe4d6;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--color-text);
}

.game-meta tr:last-child th,
.game-meta tr:last-child td {
  border-bottom: none;
}

.game-meta th {
  width: 220px;
  min-width: 220px;
  background: var(--color-surface-soft);
  text-align: left;
  font-weight: 700;
  white-space: normal;
  word-break: keep-all;
}

.game-meta td {
  background: var(--color-surface);
  word-break: break-word;
}

.game-meta tr.meta-row--link th,
.game-meta tr.meta-row--link td {
  background: #fff7ee;
}

.game-meta .meta-link,
.game-meta td a {
  display: inline-block;
  color: var(--color-link);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  word-break: break-all;
  line-height: 1.8;
}

.game-meta .meta-link:hover,
.game-meta td a:hover {
  color: var(--color-link-hover);
}

.game-meta .meta-link::after,
.game-meta td a::after {
  content: " ↗";
  font-weight: 700;
}

/* ---------- CTA ---------- */

.game-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

.game-cta__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  padding: 16px 20px;
  border-radius: var(--radius-m);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  text-align: center;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    opacity 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
  cursor: pointer;
  border: none;
}

.game-cta__btn:hover {
  transform: translateY(-2px);
  opacity: 0.97;
}

.game-cta__btn--readme {
  background: linear-gradient(135deg, #f6d7d4 0%, #eeb8b2 100%);
  color: #7a2f2a;
  box-shadow: 0 4px 14px rgba(140, 60, 50, 0.12);
}

.game-cta__btn--readme:hover {
  background: linear-gradient(135deg, #f4cbc7 0%, #e9aaa3 100%);
  color: #6d2621;
  box-shadow: 0 6px 18px rgba(140, 60, 50, 0.16);
}

.game-cta__btn--play {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-strong) 100%);
  color: var(--color-accent-text);
  box-shadow: 0 4px 18px rgba(140, 170, 20, 0.18);
}

.game-cta__btn--play:hover {
  background: linear-gradient(135deg, #dff36f 0%, #bfe23e 100%);
  color: #202900;
  box-shadow: 0 6px 22px rgba(140, 170, 20, 0.24);
}

/* ---------- 公開先一覧 ---------- */

.game-public-links {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #eadfce;
}

.game-public-links__title {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 700;
  color: #5b5247;
}

.game-public-links__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.game-public-links__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  color: #6a4a21;
  background: #f6ecdd;
  border: 1px solid #ead8bb;
  white-space: nowrap;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.game-public-links__item:hover {
  transform: translateY(-1px);
  color: #8a4b08;
  background: #f9f0e3;
  border-color: #e1cba7;
}

.game-public-links__other {
  margin-top: 12px;
}

.game-public-links__other a {
  display: inline-block;
  color: var(--color-link);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  word-break: break-all;
  line-height: 1.8;
}

.game-public-links__other a:hover {
  color: var(--color-link-hover);
}

.game-public-links__note {
  margin: 10px 0 0;
  color: var(--color-text-soft);
  font-size: 0.95rem;
}

/* ---------- モーダル ---------- */

.game-dialog[hidden] {
  display: none !important;
}

.game-dialog {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.game-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.game-dialog__panel {
  position: relative;
  width: min(92vw, 520px);
  margin: 10vh auto 0;
  background: var(--color-surface);
  border-radius: var(--radius-l);
  padding: 28px 24px 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  border: 1px solid #eadbc4;
}

.game-dialog__title {
  margin: 0 0 10px;
  font-size: 1.3rem;
  color: #2f2a24;
}

.game-dialog__text {
  margin: 0 0 20px;
  line-height: 1.8;
  color: #4a4033;
}

.game-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.game-dialog__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    opacity 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}

.game-dialog__btn:hover {
  transform: translateY(-1px);
  opacity: 0.97;
}

.game-dialog__btn--readme {
  background: #f3d4d1;
  color: #7a2f2a;
}

.game-dialog__btn--readme:hover {
  background: #efc6c1;
  color: #6d2621;
}

.game-dialog__btn--play {
  background: #cde95d;
  color: #243000;
}

.game-dialog__btn--play:hover {
  background: #c4e24e;
  color: #1f2900;
}

.game-dialog__btn--close {
  background: #eee7da;
  color: #5a5247;
}

.game-dialog__btn--close:hover {
  background: #e8dfd0;
  color: #4f473d;
}

/* =========================================
   Game Archive
========================================= */

.game-archive {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}

.game-archive__header {
  margin-bottom: 28px;
}

.game-archive__header h1 {
  margin: 0 0 12px;
  font-size: 2rem;
  line-height: 1.2;
}

.game-archive__header p {
  margin: 0;
  color: #555;
  line-height: 1.8;
}

.game-search-form {
  margin-bottom: 28px;
  padding: 24px;
  border: 1px solid #d9d9d9;
  border-radius: 16px;
  background: #fafafa;
}

.game-search-form__row {
  margin-bottom: 18px;
}

.game-search-form__row:last-child {
  margin-bottom: 0;
}

.game-search-form label,
.game-search-form fieldset {
  display: block;
}

.game-search-form label > span,
.game-search-form legend {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: #222;
}

.game-search-form input[type="text"],
.game-search-form select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #cfcfcf;
  border-radius: 10px;
  background: #fff;
  font-size: 0.95rem;
}

.game-search-form input[type="text"]:focus,
.game-search-form select:focus {
  outline: none;
  border-color: #7aa7ff;
  box-shadow: 0 0 0 3px rgba(122, 167, 255, 0.2);
}

.game-search-form__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.game-search-form__tags {
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  background: #fff;
}

.game-search-form__tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.game-search-form__tag-item {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-weight: 400;
}

.game-search-form__tag-item input[type="checkbox"] {
  margin: 0;
}

.game-search-form__tag-item span {
  margin: 0 !important;
  font-weight: 400 !important;
}

.game-search-form__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.game-search-form__actions button,
.game-search-form__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 0.95rem;
  text-decoration: none;
  box-sizing: border-box;
}

.game-search-form__actions button {
  border: none;
  background: #2f6fed;
  color: #fff;
  cursor: pointer;
}

.game-search-form__actions button:hover {
  opacity: 0.92;
}

.game-search-form__actions a {
  border: 1px solid #cfcfcf;
  background: #fff;
  color: #333;
}

.game-search-form__actions a:hover {
  background: #f3f3f3;
}

.game-archive__result-meta {
  margin-bottom: 20px;
}

.game-archive__result-meta p {
  margin: 0;
  color: #555;
  font-size: 0.95rem;
}

.game-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.game-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e2e2e2;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.game-card__thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eef1f6;
  text-decoration: none;
}

.game-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card__thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #777;
  font-size: 0.95rem;
  background: linear-gradient(135deg, #eef1f6 0%, #e3e8f0 100%);
}

.game-card__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
}

.game-card__title {
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.4;
}

.game-card__title a {
  color: #222;
  text-decoration: none;
}

.game-card__title a:hover {
  text-decoration: underline;
}

.game-card__summary {
  margin: 0;
  color: #444;
  line-height: 1.8;
  font-size: 0.95rem;
}

.game-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.game-card__chips li {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f1f4f9;
  color: #334;
  font-size: 0.82rem;
  line-height: 1;
}

.game-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 4px;
}

.game-card__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #d3d9e4;
  border-radius: 10px;
  background: #fff;
  color: #2a4b8d;
  text-decoration: none;
  font-size: 0.9rem;
}

.game-card__links a:hover {
  background: #f5f8ff;
}

.game-archive > p {
  margin-top: 24px;
  color: #555;
  line-height: 1.8;
}

/* =========================================
   Home
========================================= */

.home-page {
  min-height: 60vh;
  background: var(--color-bg);
}

.home-section {
  padding: 64px 0;
}

.home-section--intro {
  background: var(--color-surface);
}

.home-section--menu {
  background: #f9f6f0;
}

.home-section--links {
  background: var(--color-surface);
}

.home-section--content {
  background: #f5f3ee;
}

.home-section__heading {
  margin-bottom: 28px;
}

.home-section__heading h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  color: var(--color-text);
}

.home-section__heading p {
  margin: 0;
  color: var(--color-text-soft);
  line-height: 1.8;
}

.home-intro,
.home-content-area {
  padding: 24px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-l);
  background: #fffdf8;
  box-shadow: var(--shadow-soft);
}

.home-content-area img,
.home-content-area iframe,
.home-content-area video {
  max-width: 100%;
}

.home-shortcuts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.home-shortcuts--compact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.home-shortcut-card {
  position: relative;
  display: block;
  min-height: 180px;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--color-line);
  border-radius: 20px;
  background: #fffdf8;
  box-shadow: var(--shadow-soft);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
  overflow: hidden;
  isolation: isolate;
}

.home-shortcut-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: var(--color-line-strong);
}

.home-shortcut-card__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  padding: 22px 20px;
}

.home-shortcut-card__title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.35;
  color: var(--color-text);
}

.home-shortcut-card__text {
  margin: 0;
  color: var(--color-text-soft);
  line-height: 1.8;
  font-size: 0.95rem;
  max-width: 16em;
}

.home-shortcut-card__thumb {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 52%;
  height: 72%;
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: contain;
  opacity: 0.92;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(circle at 100% 100%, rgba(0, 0, 0, 1) 45%, rgba(0, 0, 0, 0.72) 68%, rgba(0, 0, 0, 0) 100%);
  mask-image: radial-gradient(circle at 100% 100%, rgba(0, 0, 0, 1) 45%, rgba(0, 0, 0, 0.72) 68%, rgba(0, 0, 0, 0) 100%);
}

.home-shortcut-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 auto;
  width: 65%;
  height: 78%;
  background: linear-gradient(
    135deg,
    rgba(255, 253, 248, 0) 20%,
    rgba(255, 253, 248, 0.76) 58%,
    rgba(255, 253, 248, 0.98) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.home-shortcut-card--external {
  background: #fff8ef;
}

/* =========================================
   Home Hero Stage
========================================= */

.home-hero-stage {
  position: relative;
  height: clamp(420px, 56vw, 720px);
  overflow: hidden;
  background: #d8d2c4;
  border-bottom: 1px solid var(--color-line);
}

.home-hero-stage__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.home-hero-stage__media-inner,
.home-hero-stage__media .ccm-area,
.home-hero-stage__media .ccm-block,
.home-hero-stage__media .ccm-block-type-image,
.home-hero-stage__media .ccm-image-block,
.home-hero-stage__media .ccm-image-block-figure,
.home-hero-stage__media a,
.home-hero-stage__media picture {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
}

.home-hero-stage__media img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center center;
}

.home-hero-stage__fallback {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg, rgba(50, 40, 28, 0.35) 0%, rgba(70, 50, 30, 0.18) 35%, rgba(215, 205, 185, 0.45) 100%),
    linear-gradient(180deg, #d4c8b7 0%, #bda88b 100%);
}

.home-hero-stage__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 16, 12, 0.18) 0%,
    rgba(20, 16, 12, 0.08) 30%,
    rgba(20, 16, 12, 0.22) 100%
  );
  pointer-events: none;
}

.home-hero-stage__overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-top: 56px;
  padding-bottom: 56px;
}

.home-hero-stage__text {
  max-width: 900px;
}

.home-hero-stage__text .ccm-block {
  margin-bottom: 0;
}

.home-hero-stage__text .ccm-block-type-content h1,
.home-hero-stage__text .ccm-block-type-content h2,
.home-hero-stage__text .ccm-block-type-content h3,
.home-hero-stage__text .ccm-block-type-content p,
.home-hero-stage__text .ccm-block-type-content div,
.home-hero-stage__text .ccm-block-type-content span {
  max-width: 100%;
}

.home-hero-stage__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}

.home-hero-stage__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.home-hero-stage__button:hover {
  transform: translateY(-1px);
  opacity: 0.97;
}

.home-hero-stage__button--primary {
  background: rgba(60, 60, 60, 0.72);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.home-hero-stage__button--primary:hover {
  background: rgba(50, 50, 50, 0.82);
  color: #fff;
}

.home-hero-stage__button--secondary {
  background: rgba(255, 255, 255, 0.9);
  color: #2b241d;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.home-hero-stage__button--secondary:hover {
  background: #ffffff;
  color: #2b241d;
}

.home-hero-stage__media .ccm-area-empty {
  position: absolute;
  inset: 20px;
  z-index: 3;
  min-height: 120px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px dashed rgba(255, 255, 255, 0.6);
  color: #fff;
  backdrop-filter: blur(4px);
}

/* Hero text helpers */

.hero-eyebrow {
  margin: 0 0 14px;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 1.08;
  font-weight: 700;
}

.hero-lead {
  margin: 0 0 30px;
  max-width: 720px;
  font-size: 1.02rem;
  line-height: 1.95;
}

.hero-white {
  color: #ffffff !important;
}

.hero-black {
  color: #1f1a16 !important;
}

.hero-cream {
  color: #fff7e8 !important;
}

.hero-shadow-none {
  text-shadow: none !important;
}

.hero-shadow-soft {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.28) !important;
}

.hero-shadow-strong {
  text-shadow:
    0 2px 12px rgba(0, 0, 0, 0.30),
    0 0 2px rgba(0, 0, 0, 0.26) !important;
}

/* =========================================
   Terms Page
========================================= */

.terms-page .terms-intro:empty,
.terms-page .terms-footer:empty {
  display: none;
}

.terms-page .terms-description {
  margin-bottom: 18px;
}

.terms-page .terms-content > *:last-child,
.terms-page .terms-intro > *:last-child,
.terms-page .terms-footer > *:last-child {
  margin-bottom: 0;
}

.terms-page .terms-content ul,
.terms-page .terms-content ol {
  margin: 0.5em 0 1.2em 1.4em;
  padding: 0;
}

.terms-page .terms-content li {
  margin: 0 0 0.5em;
}

.terms-page .terms-content h2,
.terms-page .terms-content h3,
.terms-page .terms-content h4 {
  margin-top: 1.4em;
}

.terms-page .terms-links {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.terms-page .terms-footer {
  margin-top: 16px;
}

.terms-page .terms-nav {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #eadfce;
}

/* =========================================
   Update Archive / Detail
========================================= */

.update-archive-list {
  display: grid;
  gap: 22px;
}

.update-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.update-card__thumb {
  display: block;
  background: #efe8de;
  min-height: 180px;
}

.update-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.update-card__body {
  padding: 18px 18px 18px 0;
  display: flex;
  flex-direction: column;
}

.update-card__meta,
.update-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.update-card__kind {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f6ecdd;
  border: 1px solid #ead8bb;
  color: #6a4a21;
  font-size: 0.82rem;
  font-weight: 700;
}

.update-card__date {
  color: var(--color-text-soft);
  font-size: 0.9rem;
}

.update-card__title {
  margin: 0 0 10px;
  font-size: 1.35rem;
  line-height: 1.4;
}

.update-card__title a {
  color: inherit;
  text-decoration: none;
}

.update-card__title a:hover {
  text-decoration: underline;
}

.update-card__summary {
  margin: 0 0 14px;
  color: var(--color-text-soft);
  line-height: 1.85;
}

.update-card__actions {
  margin-top: auto;
}

.update-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #d3d9e4;
  color: #2a4b8d;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
}

.update-card__link:hover {
  background: #f5f8ff;
}

.update-detail__thumb {
  margin: 16px 0 18px;
  border-radius: 14px;
  overflow: hidden;
}

.update-detail__thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.library-news-detail__summary {
  color: var(--color-text-soft);
}

.library-news-detail__summary p {
  font-size: 1rem;
  line-height: 1.9;
}

.library-news-detail__body > *:last-child {
  margin-bottom: 0;
}

/* Blog archive */

.library-news-archive__intro .game-description:last-child > *:last-child {
  margin-bottom: 0;
}

.library-news-archive__lead {
  color: var(--color-text-soft);
}

.library-news-archive__list {
  display: grid;
  gap: 18px;
}

.library-news-entry {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-l);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.library-news-entry:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
  border-color: var(--color-line-strong);
}

.library-news-entry__link {
  display: grid;
  grid-template-columns: 220px 1fr;
  color: inherit;
  text-decoration: none;
  min-height: 180px;
}

.library-news-entry.is-no-thumb .library-news-entry__link {
  grid-template-columns: 1fr;
  min-height: 0;
}

.library-news-entry__thumb {
  background: #f3f0ea;
  overflow: hidden;
}

.library-news-entry__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.library-news-entry__body {
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
  min-width: 0;
}

.library-news-entry__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.92rem;
}

.library-news-entry__badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef6ff;
  border: 1px solid #d6e8fb;
  color: #355a82;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
}

.library-news-entry__date {
  color: var(--color-text-soft);
  font-size: 0.92rem;
}

.library-news-entry__title {
  margin: 0 0 10px;
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--color-link);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.library-news-entry__summary {
  margin: 0;
  color: var(--color-text);
  line-height: 1.85;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.library-news-entry__actions {
  margin-top: 18px;
}

.library-news-entry__more {
  display: inline-flex;
  align-items: center;
  color: var(--color-link);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* =========================================
   Responsive
========================================= */

@media (max-width: 1100px) {
  .home-shortcuts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-shortcuts--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .game-search-form__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .game-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .home-hero-stage {
    height: 520px;
  }

  .home-hero-stage__overlay {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .hero-title {
    font-size: clamp(2.2rem, 10vw, 4rem);
  }

  .hero-lead {
    max-width: 100%;
    font-size: 0.96rem;
  }

  .home-shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-shortcuts--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .container,
  .game-detail-page {
    padding: 24px 14px 48px;
  }

  .site-header__inner {
    align-items: flex-start;
  }

  .top-nav {
    width: 100%;
    margin-left: 0;
  }

  .top-nav__list {
    gap: 8px;
  }

  .top-nav__link {
    padding: 0.5rem 0.8rem;
    font-size: 0.9rem;
  }

  .game-meta,
  .game-meta tbody,
  .game-meta tr,
  .game-meta th,
  .game-meta td {
    display: block;
    width: 100%;
  }

  .game-meta th {
    min-width: 0;
    padding-bottom: 6px;
  }

  .game-meta td {
    padding-top: 0;
  }

  .game-cta {
    grid-template-columns: 1fr;
  }

  .game-dialog__panel {
    margin-top: 8vh;
    padding: 22px 18px 18px;
  }

  .game-public-links__list {
    gap: 8px;
  }

  .game-public-links__item {
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.95rem;
  }

  .update-card {
    grid-template-columns: 1fr;
  }

  .update-card__body {
    padding: 0 16px 16px;
  }

  .library-news-entry__link {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .library-news-entry__thumb {
    aspect-ratio: 16 / 9;
  }

  .library-news-entry__body {
    padding: 16px;
  }

  .library-news-entry__title {
    font-size: 1.3rem;
  }
}

@media (max-width: 640px) {
  .game-archive {
    padding: 28px 16px 48px;
  }

  .game-search-form {
    padding: 18px;
    border-radius: 14px;
  }

  .game-search-form__grid {
    grid-template-columns: 1fr;
  }

  .game-card-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .game-card__body {
    padding: 16px;
  }

  .game-card__title {
    font-size: 1.2rem;
  }

  .game-search-form__actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  .home-section {
    padding: 48px 0;
  }

  .home-hero-stage {
    height: 460px;
  }

  .home-hero-stage__actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .home-hero-stage__button {
    width: 100%;
  }

  .home-shortcuts,
  .home-shortcuts--compact {
    grid-template-columns: 1fr;
  }

  .home-intro,
  .home-content-area {
    padding: 18px;
  }
}

@media (max-width: 480px) {
  .game-detail-card {
    padding: 16px 14px 14px;
  }
}
