:root {
  --bg: #fffdfb;
  --bg-soft: #f7f7f8;
  --panel: #ffffff;
  --panel-soft: #fafafa;
  --line: rgba(32, 32, 36, 0.08);
  --text: #202024;
  --muted: #6f6f78;
  --accent: #d9d9dd;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(240, 240, 243, 0.95), transparent 18%),
    radial-gradient(circle at 84% 12%, rgba(230, 230, 234, 0.85), transparent 16%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  color: var(--text);
  font-family: "Zen Kaku Gothic New", sans-serif;
}

.page-shell {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

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

.header-inner {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 116px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  display: block;
  height: 102px;
  width: auto;
}

.brand-name {
  display: none;
  color: #ffffff;
  font-family: "Urbanist", sans-serif;
  font-size: 3.1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 14px 0;
  position: relative;
}

.site-nav a:hover {
  color: #ffffff;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d7d7db, #ffffff);
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.featured-stage {
  min-height: calc(100vh - 116px);
  padding-top: 116px;
  background:
    radial-gradient(circle at 10% 10%, rgba(236, 236, 240, 0.78), transparent 22%),
    linear-gradient(180deg, #fffefe 0%, var(--bg-soft) 100%);
}

.featured-stage-inner {
  width: min(1200px, calc(100% - 40px));
  min-height: calc(100vh - 116px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.featured-stage-media,
.featured-stage-copy {
  min-height: auto;
}

.featured-stage-media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 40px 20px 20px;
}

.featured-stage-link {
  display: block;
  width: 100%;
  max-width: 1040px;
  color: inherit;
  text-decoration: none;
}

.featured-stage-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  padding: 0 20px 40px;
  border-left: 0;
  background: transparent;
}

.featured-stage-copy-compact {
  align-items: center;
  text-align: center;
}

.video-frame {
  width: 100%;
  max-width: 880px;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 1px solid rgba(51, 41, 69, 0.08);
  box-shadow: var(--shadow);
  border-radius: 24px;
  overflow: hidden;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

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

.featured-image-frame {
  max-width: 1040px;
  aspect-ratio: 16 / 9;
  background: #f3f3f5;
}

.featured-image-frame img {
  object-fit: cover;
}

.stage-kicker,
.section-label,
.card-label,
time {
  margin: 0;
  color: #787880;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.featured-stage h1,
.about-section h2,
.contact-copy h2,
.feature-card h2,
.news-strip h2,
.games-hero h1,
.games-section h2 {
  margin: 12px 0 0;
  line-height: 1.08;
}

.featured-stage h1 {
  font-family: "Urbanist", sans-serif;
  font-size: clamp(3rem, 6vw, 5.8rem);
  letter-spacing: -0.04em;
}

.stage-text,
.about-section p,
.contact-copy p,
.featured-news p,
.news-list span,
.hero-text,
.game-entry p {
  color: var(--muted);
  line-height: 1.85;
}

.stage-text {
  margin: 18px 0 0;
  max-width: 32rem;
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #82828a;
}

.stage-kicker {
  font-weight: 700;
}

.stage-actions,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
  margin-top: 22px;
}

.stage-actions-compact {
  max-width: 1040px;
  justify-content: center;
  margin-top: 0;
}

.stage-actions-compact .button {
  min-height: 54px;
  padding: 0 24px;
  font-size: 1.02rem;
}

.store-coming-soon {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.store-badge {
  display: inline-block;
  height: 54px;
  border-radius: 10px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.store-badge-link {
  display: inline-block;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.store-badge-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.02);
}

.store-badge-steam {
  width: 172px;
  height: 54px;
  background-image: url("assets/steam_button.svg?v=2");
}

.store-badge-more {
  width: 174px;
  height: 54px;
  background-image: url("assets/more_button.svg");
}

.text-button-more {
  min-width: 174px;
  height: 54px;
  min-height: 0;
  padding: 0 24px;
  border-radius: 14px;
  border-color: rgba(17, 17, 20, 0.12);
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 15, 18, 0.08);
  color: #111114;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
}

.text-button-more:hover {
  transform: translateY(-2px);
  filter: brightness(1.02);
  background: #ffffff;
}

.store-badge-google {
  width: 182px;
  background-image: url("assets/GetItOnGooglePlay_Badge_Web_color_Japanese.svg");
}

.store-badge-appstore {
  width: 164px;
  background-image: url("assets/Download_on_the_App_Store_Badge_JP_RGB_blk_100317.svg");
}

.store-badge-muted {
  opacity: 0.45;
  filter: grayscale(0.15);
}

.store-coming-soon-label {
  color: #8b8b92;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.news-strip,
.feature-card,
.about-section,
.contact-section,
.games-hero,
.games-section {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-soft) 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 28px;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.feature-card {
  display: block;
  min-height: 360px;
  padding: 18px;
  color: inherit;
  text-decoration: none;
}

.feature-card-image {
  display: grid;
  grid-template-rows: 1fr auto auto auto;
  gap: 10px;
}

.card-visual {
  display: block;
  min-height: 230px;
  border-radius: 22px;
  border: 1px solid rgba(51, 41, 69, 0.08);
  background-color: #efeff2;
  background-size: cover;
  background-position: center;
}

.visual-games {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.12)),
    url("zoowars/ZooWars_KeyVisual.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.visual-about {
  background:
    url("assets/StudioGG_Logo.png"),
    linear-gradient(135deg, #f4f4f6 0%, #d8d8de 100%);
  background-size: 58%, cover;
  background-position: center, center;
  background-repeat: no-repeat;
}

.visual-contact {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.4), transparent 35%),
    linear-gradient(135deg, #2d2d33 0%, #111114 100%);
}

.visual-column {
  background:
    url("assets/note_logo.svg"),
    linear-gradient(135deg, #f4f4f6 0%, #d8d8de 100%);
  background-size: 54%, cover;
  background-position: center, center;
  background-repeat: no-repeat;
}

.feature-card h2 {
  margin: 0;
  line-height: 1;
}

.card-meta {
  display: inline-block;
  color: #74747b;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid rgba(51, 41, 69, 0.1);
  background: transparent;
  color: var(--text);
  text-decoration: none;
  font: inherit;
  cursor: pointer;
}

.button.primary {
  background: linear-gradient(180deg, #2f2f34, #111114);
  color: #fff;
  border-color: rgba(17, 17, 20, 0.9);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.96);
}

.button-disabled {
  color: #98989f;
  background: rgba(244, 244, 246, 0.96);
  border-color: rgba(51, 41, 69, 0.08);
  cursor: default;
  pointer-events: none;
}

.news-strip {
  padding: 26px 28px 22px;
}

.news-strip-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.news-strip-content {
  margin-top: 14px;
}

.news-more {
  margin-top: 18px;
}

.news-link {
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
}

.featured-news {
  padding: 20px 0;
}

.featured-news h3 {
  margin: 10px 0 8px;
  font-size: 1.3rem;
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}

.news-list li {
  display: grid;
  gap: 6px;
  padding: 16px 0;
  border-top: 1px solid rgba(51, 41, 69, 0.08);
}

.feature-games {
  grid-column: span 1;
}

.about-section,
.contact-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  margin-top: 18px;
  padding: 30px;
}

.about-combined-body {
  display: grid;
  gap: 20px;
}

.about-combined-body > p {
  margin: 0;
}

.about-features {
  display: grid;
  gap: 16px;
}

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  font-size: 0.96rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(51, 41, 69, 0.1);
  background: rgba(255, 255, 255, 0.98);
  color: var(--text);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(40, 40, 46, 0.12);
  border-color: rgba(40, 40, 46, 0.24);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #8d8f99;
}

.contact-mail {
  display: grid;
  align-content: center;
  gap: 14px;
}

.contact-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.site-footer {
  padding: 26px 0 8px;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(32, 32, 36, 0.18);
}

.footer-links a:hover {
  border-bottom-color: rgba(32, 32, 36, 0.42);
}

.legacy-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(32, 32, 36, 0.18);
}

.legacy-link:hover {
  border-bottom-color: rgba(32, 32, 36, 0.42);
}

.games-hero {
  margin-top: 96px;
  padding: 34px;
}

.games-hero > div {
  max-width: 920px;
}

.games-hero p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.9;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.feature-entry {
  min-height: 100%;
}

.feature-entry h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
}

.about-logo-lockup {
  display: flex;
  justify-content: center;
  margin: 28px 0 24px;
}

.about-logo-lockup img {
  width: min(360px, 72%);
  height: auto;
}

.games-section {
  margin-top: 18px;
  padding: 30px;
}

.legal-page {
  padding: 34px;
}

.legal-content {
  display: grid;
  gap: 22px;
}

.legal-block h2 {
  margin: 0 0 10px;
  font-size: 1.12rem;
}

.legal-block p,
.legal-list {
  margin: 0;
  color: var(--muted);
  line-height: 1.9;
}

.legal-block p + p {
  margin-top: 12px;
}

.legal-block p:has(.button) {
  margin-top: 18px;
}

.legal-list {
  padding-left: 1.2em;
}

.subheading {
  margin: 8px 0 0;
  font-size: 1.4rem;
  line-height: 1.2;
}

.section-heading {
  margin-bottom: 18px;
}

.games-list {
  display: grid;
  gap: 16px;
}

.boardgames-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.boardgames-group + .boardgames-group {
  margin-top: 28px;
}

.game-entry {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(51, 41, 69, 0.08);
  background: rgba(255, 247, 250, 0.92);
  border-radius: 22px;
}

.boardgame-entry {
  align-content: start;
  min-height: 420px;
}

.boardgame-entry h3 {
  margin: 0;
  line-height: 1.45;
}

.boardgame-link {
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.boardgame-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.1);
}

.boardgame-visual {
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 18px;
  border: 1px solid rgba(51, 41, 69, 0.08);
  background-color: #ececf0;
}

.visual-boardgame {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 30%),
    radial-gradient(circle at 25% 24%, rgba(255, 255, 255, 0.92), transparent 16%),
    linear-gradient(135deg, #d8d8de 0%, #a7a8b0 100%);
}

.visual-zoowars-cardgame,
.visual-dangerous-mining,
.visual-terrible-monster,
.visual-littletownbuilders,
.visual-harapeko-bahamuto,
.visual-tenohira-dungeon,
.visual-firm-with-brownies,
.visual-frontier-with-brownies,
.visual-minecart-town,
.visual-northern-branch,
.visual-meikyu-suiri,
.visual-meikyu-suiri-omnibus {
  background-color: #f5f5f7;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.visual-zoowars-cardgame {
  background-image: url("games/zoowars_cardgame.png");
}

.visual-dangerous-mining {
  background-image: url("games/dengerous_mining.png");
}

.visual-terrible-monster {
  background-image: url("games/terrible_monster.jpg");
}

.visual-littletownbuilders {
  background-image: url("games/littletownbuilders.jpg");
}

.visual-harapeko-bahamuto {
  background-image: url("games/harapeko_bahamuto.jpg");
}

.visual-tenohira-dungeon {
  background-image: url("games/tenohira_dungeon.png");
}

.visual-firm-with-brownies {
  background-image: url("games/firm_with_brownies.jpg");
}

.visual-frontier-with-brownies {
  background-image: url("games/frontier_with_brownies.jpg");
}

.visual-minecart-town {
  background-image: url("games/minecart_town.png");
}

.visual-northern-branch {
  background-image: url("games/northern_branch.jpg");
}

.visual-meikyu-suiri {
  background-image: url("games/meikyu_suiri.jpg");
}

.visual-meikyu-suiri-omnibus {
  background-image: url("games/meikyu_suiri_omnibus.jpg");
}

.featured-game-visual {
  background-image: url("zoowars/ZooWars_KeyVisual.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f3f3f5;
  aspect-ratio: 16 / 9;
  min-height: auto;
}

.member-entry {
  grid-template-columns: 88px 1fr;
  align-items: start;
  gap: 18px;
}

.member-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
}

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

.member-icon-placeholder {
  background: #efeff2;
}

.member-body {
  display: grid;
  gap: 8px;
}

.member-body h3 {
  margin: 0;
}

.member-body p {
  margin: 0;
}

.member-body a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(51, 41, 69, 0.18);
}

.member-body a:hover {
  border-bottom-color: rgba(51, 41, 69, 0.42);
}

.featured-game {
  display: grid;
  gap: 18px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.featured-game:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.08);
}

.featured-game-main {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: start;
  gap: 20px;
  color: inherit;
  text-decoration: none;
}

.button {
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.featured-game-body {
  display: grid;
  align-content: start;
  gap: 14px;
}

.featured-game-body h3 {
  margin: 0;
}

.game-links {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
}

.game-store-coming-soon {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.game-links .button {
  min-height: 54px;
}

@media (max-width: 1100px) {
  .featured-stage,
  .about-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .featured-stage-copy {
    border-left: 0;
    border-top: 1px solid rgba(51, 41, 69, 0.08);
    padding-left: 40px;
  }

  .stage-meta {
    grid-template-columns: 1fr;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 300px;
  }

  .card-visual {
    min-height: 180px;
  }

  .visual-about {
    background-size: 34%, cover;
    background-position: center, center;
  }

  .featured-game {
    gap: 16px;
  }

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

  .about-features {
    grid-template-columns: 1fr;
  }

  .member-entry {
    grid-template-columns: 1fr;
  }

  .about-logo-lockup img {
    width: min(280px, 78%);
  }
}

@media (max-width: 760px) {
  .page-shell,
  .header-inner {
    width: min(100% - 20px, 1200px);
  }

  .header-inner {
    min-height: 92px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .site-nav {
    gap: 18px;
  }

  .brand-logo {
    height: 72px;
  }

  .site-nav a {
    font-size: 1.08rem;
  }

  .featured-stage {
    min-height: auto;
    padding-top: 92px;
  }

  .featured-stage-inner {
    width: min(100% - 20px, 1200px);
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .featured-stage-media {
    padding: 20px 10px 20px;
  }

  .featured-stage-copy {
    padding: 24px 20px 28px;
  }

  .news-strip-head {
    align-items: start;
    flex-direction: column;
  }

  .featured-stage h1 {
    font-size: clamp(2.3rem, 12vw, 4rem);
  }

  .game-links .button {
    min-height: 50px;
  }

  .news-strip,
  .feature-card,
  .about-section,
  .contact-section,
  .games-hero,
  .games-section {
    padding: 22px;
  }

  .feature-card {
    min-height: 260px;
  }

  .card-visual {
    min-height: 160px;
  }

  .boardgame-entry {
    min-height: 320px;
  }

  .boardgame-visual {
    aspect-ratio: 4 / 5;
  }

  .visual-about {
    background-size: 42%, cover;
  }
}

@media (max-width: 640px) {
  .boardgames-list {
    grid-template-columns: 1fr;
  }

  .boardgame-entry {
    min-height: 280px;
  }

  .boardgame-visual {
    aspect-ratio: 1 / 1.15;
  }
}

@media (min-width: 1000px) {
  .brand-name {
    display: inline-block;
  }
}
