:root {
  --bg: #151412;
  --surface: #1d1b18;
  --surface-2: #24211d;
  --surface-hover: #27241f;
  --border: #2c2924;
  --border-strong: #3d3831;
  --accent: #e88b5a;
  --accent-hover: #f09b6e;
  --accent-soft: rgba(232, 139, 90, 0.14);
  --accent-border: rgba(232, 139, 90, 0.42);
  --text: #f3efe8;
  --text-secondary: #a8a196;
  --text-muted: #7c756b;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 14px;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans SC", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
}

/* ===== Sticky Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(21, 20, 18, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 20px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-inner--narrow {
  max-width: 740px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: opacity 0.16s ease;
}

.brand:hover {
  opacity: 0.9;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--accent);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

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

.nav-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 8px;
  transition: color 0.16s ease, background-color 0.16s ease;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav-link.is-active {
  color: var(--text);
  background: var(--surface-2);
}

/* ===== Layout Containers ===== */
.main-content {
  flex: 1;
  width: 100%;
  padding: 28px 20px 64px;
}

.container {
  max-width: 920px;
  margin: 0 auto;
}

.container--narrow {
  max-width: 740px;
  margin: 0 auto;
}

/* ===== Home Intro Tagline ===== */
.studio-intro {
  margin-bottom: 18px;
}

.studio-intro__lead {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
}

.studio-intro__sub {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ===== Featured Hero Card (Home) ===== */
.featured-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 42px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.26);
}

.featured-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #10141c;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.featured-media:hover img {
  transform: scale(1.018);
}

.badge-new {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--accent);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  border: 1.5px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.featured-body {
  padding: 20px 24px 24px;
}

.featured-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.featured-meta__dot {
  color: var(--text-muted);
}

.featured-title {
  margin: 0 0 8px;
  font-size: 23px;
  line-height: 1.3;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}

.featured-desc {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.featured-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.12s ease,
    color 0.16s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border: 1px solid transparent;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  background: #2c2823;
  border-color: #544d44;
}

.featured-actions .btn-primary {
  flex: 1.55;
}

.featured-actions .btn-secondary {
  flex: 1;
}

/* ===== Section Header (Home / Games) ===== */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding-bottom: 12px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.section-head__left {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}

.section-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}

.section-sub {
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ===== Category Filter Pills ===== */
.filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.16s ease;
}

.filter-pill:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.filter-pill.is-active {
  color: var(--accent-hover);
  border-color: var(--accent-border);
  background: var(--accent-soft);
  font-weight: 600;
}

.filter-pill__count {
  font-size: 11.5px;
  color: var(--text-muted);
}

.filter-pill.is-active .filter-pill__count {
  color: var(--accent);
}

/* ===== Game Cards Grid (3-Col Desktop / 1-Col Mobile) ===== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

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

.game-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease, background-color 0.18s ease;
}

.game-card:hover {
  border-color: #49433b;
  background: #201e1a;
  transform: translateY(-2px);
}

.game-card.is-hidden {
  display: none;
}

.game-card__cover-link {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #141311;
  border-bottom: 1px solid var(--border);
}

.game-card__cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.game-card:hover .game-card__cover-img {
  transform: scale(1.03);
}

/* Studio Split-Cover for Portrait Mobile Games (N.K. Works Card Aesthetic) */
.card-showcase {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  padding: 12px 12px 10px 14px;
  gap: 8px;
  position: relative;
}

.card-showcase--caliper {
  background: linear-gradient(135deg, #212529 0%, #171b1f 58%, #272219 100%);
}

.card-showcase--factory {
  background: linear-gradient(135deg, #25201a 0%, #191715 58%, #2b1a17 100%);
}

.card-showcase__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  z-index: 1;
}

.card-showcase__kicker {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(232, 139, 90, 0.16);
  color: #f3b38c;
  border: 1px solid rgba(232, 139, 90, 0.32);
}

.card-showcase__name {
  font-size: 15px;
  line-height: 1.28;
  font-weight: 800;
  color: #f8f4ed;
  letter-spacing: -0.01em;
}

.card-showcase__hint {
  font-size: 11px;
  line-height: 1.4;
  color: #b7afa3;
}

.card-showcase__frame {
  height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  padding-top: 2px;
}

.card-showcase__phone {
  width: 100%;
  max-width: 104px;
  border-radius: 8px;
  border: 2px solid #35322d;
  background: #111;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
  transform: rotate(2deg) translateY(2px);
  transition: transform 0.28s ease;
}

.game-card:hover .card-showcase__phone {
  transform: rotate(0.5deg) translateY(-1px);
}

.card-showcase__phone img {
  width: 100%;
  height: auto;
  display: block;
}

.game-card__tag-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--accent);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.game-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 14px 16px 16px;
}

.game-card__title {
  margin: 0 0 6px;
  font-size: 15.5px;
  line-height: 1.35;
  font-weight: 700;
  color: var(--text);
}

.game-card__title a:hover {
  color: var(--accent-hover);
}

.game-card__desc {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.62;
  color: var(--text-secondary);
  flex: 1;
}

.game-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.game-card__tags {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-chip {
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 999px;
}

.card-play-link {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
  transition: color 0.15s ease;
}

.card-play-link:hover {
  color: var(--accent-hover);
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-decoration-color: rgba(168, 161, 150, 0.35);
  text-underline-offset: 3px;
}

.breadcrumb a:hover {
  color: var(--text);
}

.breadcrumb__sep {
  opacity: 0.6;
}

/* ===== Detail Page Header & Hero Banner ===== */
.detail-title {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.28;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.015em;
}

.detail-subtitle {
  margin: 0 0 22px;
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.detail-banner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  margin-bottom: 20px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.detail-banner--widescreen {
  aspect-ratio: 16 / 9;
}

.detail-banner--widescreen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* N.K. Works-style Studio Hero Showcase Banner for Portrait Games */
.detail-showcase {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 20px;
  padding: 28px 32px;
  min-height: 360px;
  position: relative;
  overflow: hidden;
}

.detail-showcase--caliper {
  background:
    linear-gradient(to right, rgba(28, 34, 38, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(28, 34, 38, 0.06) 1px, transparent 1px),
    #f3efe5;
  background-size: 24px 24px;
  color: #1c1d1f;
}

.detail-showcase--factory {
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(210, 148, 42, 0.06),
      rgba(210, 148, 42, 0.06) 10px,
      transparent 10px,
      transparent 20px
    ),
    #f4f0e6;
  color: #1c1d1f;
}

.detail-showcase__left {
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 2;
}

.detail-showcase__badge {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 5px;
  background: #1f2226;
  color: #f3efe8;
}

.detail-showcase__title {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #18191b;
  margin: 0;
}

.detail-showcase__line {
  width: 72px;
  height: 3px;
  border-radius: 2px;
  background: #d95d39;
}

.detail-showcase__sub {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: #4b4740;
  font-weight: 500;
}

.detail-showcase__foot {
  margin-top: 8px;
  font-size: 12px;
  color: #7a7368;
  font-family: var(--font-mono);
}

.detail-showcase__right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.detail-showcase__phone-main {
  width: 168px;
  border-radius: 14px;
  border: 3px solid #222326;
  background: #111;
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(20, 18, 15, 0.28);
  transform: rotate(3deg);
  position: relative;
  z-index: 2;
}

.detail-showcase__phone-back {
  width: 132px;
  border-radius: 12px;
  border: 2.5px solid #2b2c30;
  background: #111;
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(20, 18, 15, 0.22);
  transform: rotate(-6deg) translate(-24px, 16px);
  position: absolute;
  left: 6px;
  z-index: 1;
  opacity: 0.94;
}

.detail-showcase__phone-main img,
.detail-showcase__phone-back img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== Detail Primary CTA Row ===== */
.cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-bottom: 22px;
}

.cta-row .btn-primary {
  padding: 0 28px;
  min-height: 48px;
  font-size: 15px;
}

.cta-note {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ===== 4-Row Spec Table (N.K. Works Spec Box) ===== */
.spec-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 36px;
}

.spec-table tr + tr th,
.spec-table tr + tr td {
  border-top: 1px solid var(--border);
}

.spec-table th {
  width: 118px;
  text-align: left;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  vertical-align: top;
  white-space: nowrap;
}

.spec-table td {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text);
  vertical-align: top;
}

/* ===== Detail Sections with Coral Accent Bar ===== */
.detail-section {
  margin-bottom: 38px;
}

.detail-section__heading {
  position: relative;
  margin: 0 0 14px;
  padding-left: 13px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}

.detail-section__heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 3.5px;
  border-radius: 2px;
  background: var(--accent);
}

.detail-prose {
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.8;
  color: #d9d3c9;
}

/* ===== 2-Up Real Screenshot Gallery ===== */
.shot-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.shot-gallery--portrait {
  max-width: 580px;
}

.shot-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shot-frame {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #101216;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.shot-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.shot-caption {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ===== Numbered Steps List (N.K. Works Step Pills) ===== */
.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14.5px;
  line-height: 1.65;
  color: #ded8ce;
}

.step-num {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent-hover);
  font-size: 12.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ===== Bullet Lists (Rules & Highlights) ===== */
.bullet-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bullet-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  line-height: 1.72;
  color: #d9d3c9;
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

/* ===== Dev Note Card ===== */
.dev-note-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  font-size: 14.5px;
  line-height: 1.82;
  color: #d7d0c5;
}

.dev-note-box p {
  margin: 0;
}

.dev-note-meta {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ===== Bottom Detail CTA Box ===== */
.bottom-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin: 32px 0 42px;
}

.bottom-cta__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.bottom-cta__title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}

.bottom-cta__sub {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ===== About Page Cards ===== */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 32px;
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
}

.about-card__title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.about-card__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 20px 32px;
  background: rgba(21, 20, 18, 0.72);
}

.footer-inner {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-inner--narrow {
  max-width: 740px;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-sep {
  opacity: 0.45;
}

/* ===== Responsive (Tablet & Mobile 390px) ===== */
@media (max-width: 760px) {
  .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .detail-showcase {
    grid-template-columns: 1fr;
    padding: 22px 20px;
    min-height: auto;
    gap: 18px;
  }

  .detail-showcase__title {
    font-size: 25px;
  }

  .detail-showcase__right {
    min-height: 240px;
  }

  .detail-showcase__phone-main {
    width: 146px;
  }

  .detail-showcase__phone-back {
    width: 118px;
    left: 16%;
  }
}

@media (max-width: 580px) {
  .header-inner {
    padding: 0 16px;
  }

  .main-content {
    padding: 20px 16px 48px;
  }

  .featured-body {
    padding: 16px 16px 18px;
  }

  .featured-title {
    font-size: 19px;
  }

  .featured-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .featured-actions .btn {
    width: 100%;
    flex: none;
  }

  .games-grid,
  .games-grid--two {
    grid-template-columns: 1fr;
  }

  .detail-title {
    font-size: 23px;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .cta-row .btn-primary {
    width: 100%;
  }

  .cta-note {
    text-align: center;
  }

  .spec-table th {
    width: 92px;
    padding: 10px 12px;
  }

  .spec-table td {
    padding: 10px 12px;
  }

  .shot-gallery {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .shot-gallery--portrait {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .bottom-cta {
    padding: 16px;
  }

  .bottom-cta .btn-primary {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
