*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0a0b10;
  --bg-muted: #12141c;
  --surface: #1a1d28;
  --border: #2a2f3d;
  --text: #eef0f6;
  --text-muted: #9aa3b5;
  --accent: #6c5ce7;
  --accent-hover: #7d6ff0;
  --radius: 12px;
  --container: 1080px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10, 11, 16, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.9375rem;
  transition: color 0.2s;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--text);
}

/* Hero */
.hero {
  padding: 6rem 0 5rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, rgba(108, 92, 231, 0.25), transparent),
    var(--bg);
}

.hero-inner {
  max-width: 640px;
}

.hero-label {
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-desc {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.title-games-section {
  padding-top: 0;
}

.title-game-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.title-game-grid .game-card-thumb {
  height: 220px;
}

.partner-banner-section {
  padding-top: 0;
}

.partner-carousel-viewport {
  overflow: hidden;
  border-radius: var(--radius);
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.partner-carousel-viewport.is-dragging {
  cursor: grabbing;
}

.partner-carousel-track {
  display: flex;
  will-change: transform;
}

.partner-slide {
  flex: 0 0 100%;
  min-width: 0;
}

.partner-card {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  min-height: 220px;
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius);
}

.mddc-banner {
  background:
    radial-gradient(ellipse 90% 140% at 0% 50%, rgba(224, 195, 106, 0.16), transparent 58%),
    var(--surface);
  border: 1px solid rgba(224, 195, 106, 0.42);
}

.mddc-banner-coin {
  width: 112px;
  height: 112px;
  object-fit: contain;
  flex-shrink: 0;
  pointer-events: none;
}

.mddc-banner-label,
.blvd-banner-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.mddc-banner-label {
  color: #e0c36a;
}

.mddc-banner h2,
.blvd-banner h2 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.mddc-banner-copy > p:last-of-type,
.blvd-banner-copy > p:last-of-type {
  color: var(--text-muted);
  font-size: 0.975rem;
  max-width: 54ch;
  margin-bottom: 1rem;
}

.mddc-banner-cta {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 0.9375rem;
  color: #e0c36a;
}

.mddc-banner-cta::after {
  content: " →";
}

.blvd-banner {
  background:
    radial-gradient(ellipse 80% 120% at 100% 50%, rgba(255, 32, 32, 0.16), transparent 55%),
    #0b0b0d;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.blvd-banner-logo {
  flex: 0 0 min(360px, 48%);
  width: min(360px, 48%);
  height: 188px;
  display: grid;
  place-items: center;
}

.blvd-banner-art {
  width: 94%;
  height: 78%;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
}

.blvd-banner-label {
  color: #ff4d4d;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 148px;
  padding: 0.45rem 0.8rem 0.45rem 0.65rem;
  color: #fff;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 8px;
  transition: background 0.2s, border-color 0.2s;
}

.store-badge:hover {
  background: #161616;
  border-color: #fff;
}

.store-badge-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.store-badge-apple {
  width: 20px;
  color: #fff;
}

.store-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.store-badge-text small {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.9;
}

.partner-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.9rem;
}

.partner-carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #3a4050;
  cursor: pointer;
}

.partner-carousel-dot.is-active {
  width: 22px;
  background: var(--accent);
}

@media (max-width: 600px) {
  .title-game-grid {
    grid-template-columns: 1fr;
  }

  .title-game-grid .game-card-thumb {
    height: 180px;
  }

  .partner-card {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 1.25rem;
    gap: 1rem;
    min-height: 0;
  }

  .mddc-banner-coin {
    width: 88px;
    height: 88px;
  }

  .blvd-banner-logo {
    flex: none;
    width: min(100%, 340px);
    height: 148px;
  }

  .mddc-banner-copy > p:last-of-type,
  .blvd-banner-copy > p:last-of-type {
    margin-inline: auto;
  }

  .mddc-banner-cta,
  .store-badges {
    justify-content: center;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
}

.btn-primary:disabled,
.btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-muted);
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-muted {
  background: var(--bg-muted);
}

.section-title {
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.section-heading .section-title {
  margin-bottom: 0;
}

.section-link {
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s;
}

.section-link:hover {
  color: var(--text);
}

.home-notice-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 840px;
}

/* Contact form */
.contact-page {
  max-width: 640px;
}

.contact-form {
  display: grid;
  gap: 1.25rem;
}

.contact-field {
  display: grid;
  gap: 0.5rem;
}

.contact-field label {
  font-size: 0.9375rem;
  font-weight: 600;
}

.contact-field input[type="text"],
.contact-field input[type="email"],
.contact-field textarea {
  width: 100%;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
}

.contact-field input[type="text"],
.contact-field input[type="email"],
.contact-field textarea {
  padding: 0.85rem 1rem;
}

.contact-field textarea {
  resize: vertical;
  min-height: 180px;
  line-height: 1.6;
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-honey {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  pointer-events: none;
}

.contact-status {
  min-height: 1.4em;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.contact-status.is-success {
  color: #7ddea0;
}

.contact-status.is-error {
  color: #ff8f8f;
}

.contact-submit {
  justify-self: start;
  min-width: 160px;
}

.about p {
  color: var(--text-muted);
  max-width: 640px;
  font-size: 1.0625rem;
}

/* Game grid */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.game-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.game-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.game-card-disabled {
  cursor: default;
  opacity: 0.7;
}

.game-card-disabled:hover {
  border-color: var(--border);
  transform: none;
}

.game-card-thumb {
  height: 160px;
  background: #0f1118;
  overflow: hidden;
}

.game-card-thumb:not(:has(img)) {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1e2130, #2a2f45);
  color: var(--text-muted);
  font-weight: 600;
  text-align: center;
  padding: 1rem;
}

.game-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.game-card-body {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem 1.25rem;
}

.game-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  flex-shrink: 0;
  object-fit: cover;
}

.game-card-body h3 {
  font-size: 1.125rem;
  margin-bottom: 0.125rem;
}

.game-card-body p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.game-card h3 {
  padding: 1rem 1.25rem 0.25rem;
  font-size: 1.125rem;
}

.game-card p {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* APK page */
.page-header h1 {
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.page-desc {
  color: var(--text-muted);
}

.download-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.download-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.download-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  flex-shrink: 0;
  object-fit: cover;
}

.download-card h2 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.download-meta {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.download-count {
  color: var(--text-muted);
  font-size: 0.8125rem;
  margin-top: 0.15rem;
}

.notice {
  margin-top: 2rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Notices */
.notice-page {
  max-width: 840px;
}

.notice-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.25rem;
}

.notice-sort {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.notice-sort select {
  appearance: none;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  font: inherit;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 14px) calc(50% - 2px), calc(100% - 9px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.notice-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.notice-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.25rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, transform 0.2s;
}

.notice-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.notice-card-thumb {
  height: 110px;
  border-radius: 8px;
  overflow: hidden;
  background: #0f1118;
}

.notice-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.notice-card-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8125rem;
  background: linear-gradient(135deg, #1e2130, #2a2f45);
}

.notice-card-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
}

.notice-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.notice-number {
  color: var(--accent);
  font-weight: 700;
}

.notice-card-body h2 {
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.notice-card-body p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notice-empty {
  color: var(--text-muted);
  padding: 2rem 0;
}

.notice-empty code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.875em;
  color: var(--text);
}

.notice-detail-page {
  max-width: 760px;
}

.notice-back {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  transition: color 0.2s;
}

.notice-back:hover {
  color: var(--text);
}

.notice-detail-header {
  margin-bottom: 1.75rem;
}

.notice-detail-header h1 {
  margin-top: 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.notice-detail-summary {
  margin-top: 0.85rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

.notice-detail-cover {
  margin: 0 0 2rem;
}

.notice-detail-cover img,
.notice-figure img,
.notice-detail-body img {
  display: block;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  object-fit: cover;
}

.notice-figure {
  margin: 1.5rem 0;
}

.notice-detail-body {
  display: grid;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.notice-detail-body h2,
.notice-detail-body h3 {
  color: var(--text);
  letter-spacing: -0.02em;
  margin-top: 0.5rem;
}

.notice-detail-body h2 {
  font-size: 1.35rem;
}

.notice-detail-body h3 {
  font-size: 1.125rem;
}

.notice-detail-body a {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.notice-detail-body strong {
  color: var(--text);
}

.notice-callout {
  padding: 1rem 1.15rem;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}

.notice-callout p + p {
  margin-top: 0.65rem;
}

.notice-detail-body ul,
.notice-detail-body ol {
  display: grid;
  gap: 0.5rem;
  padding-left: 1.25rem;
}

.notice-detail-body code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.9em;
  color: var(--text);
}

.notice-stage-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.55rem 0.45rem;
}

.notice-stage-grid figure {
  margin: 0;
}

.notice-detail-body .notice-stage-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
}

.notice-stage-grid figcaption {
  margin-top: 0.28rem;
  font-size: 0.68rem;
  line-height: 1.25;
  text-align: center;
  color: var(--text-muted);
}

.notice-weapon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.notice-weapon-card {
  padding: 1rem 1.1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.notice-detail-body .notice-weapon-card img {
  width: 88px;
  height: 88px;
  margin: 0 auto 0.75rem;
  object-fit: contain;
  border: 0;
  background: transparent;
}

.notice-weapon-card h4 {
  color: var(--text);
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
}

.notice-detail-body .notice-character-card img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--bg-muted);
}

.notice-weapon-card p {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
}

.notice-weapon-card ul {
  display: grid;
  gap: 0.28rem;
  padding-left: 0;
  list-style: none;
  text-align: left;
  font-size: 0.875rem;
}

.notice-table-wrap {
  overflow-x: auto;
}

.notice-detail-body .notice-rate-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  color: var(--text);
}

.notice-rate-table th,
.notice-rate-table td {
  border: 1px solid var(--border);
  padding: 0.55rem 0.75rem;
  text-align: left;
}

.notice-rate-table th {
  background: var(--surface);
  font-weight: 600;
}

.notice-rate-table td:last-child,
.notice-rate-table th:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.notice-rate-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 720px) {
  .notice-stage-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .notice-card {
    grid-template-columns: 1fr;
  }

  .notice-card-thumb {
    height: 160px;
  }

  .notice-stage-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .notice-weapon-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-copy {
  display: grid;
  gap: 0.35rem;
  max-width: 42rem;
}

.footer-address {
  line-height: 1.5;
}

.footer-inner a:hover {
  color: var(--text);
}

/* APK redirect page */
.apk-redirect {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1rem;
}

.apk-redirect-card {
  width: min(100%, 360px);
  padding: 2.5rem 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.apk-redirect-icon {
  width: 96px;
  height: 96px;
  border-radius: 20px;
  object-fit: cover;
  margin-bottom: 1.25rem;
}

.apk-redirect-card h1 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.375rem;
}

.apk-redirect-version {
  color: var(--accent);
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.apk-redirect-hint {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.apk-redirect-card .btn {
  width: 100%;
}

/* Game detail page */
.game-detail-inner {
  max-width: 900px;
}

.game-detail-hero {
  max-width: 680px;
  margin: 0 auto 3rem;
  text-align: center;
}

.game-detail-icon {
  width: 112px;
  height: 112px;
  border-radius: 24px;
  object-fit: cover;
  margin-bottom: 1.5rem;
}

.game-detail-inner h1 {
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.game-detail-desc {
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.game-detail-figure {
  margin: 0 0 3rem;
}

.game-detail-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  object-fit: cover;
}

.game-detail-figure figcaption {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  text-align: center;
}

.game-detail-content {
  display: grid;
  gap: 1.25rem;
}

.game-detail-card {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.game-detail-card h2 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.game-detail-card p,
.game-detail-card li {
  color: var(--text-muted);
}

.game-detail-card ul,
.game-detail-card ol {
  display: grid;
  gap: 0.5rem;
  padding-left: 1.25rem;
}

.game-detail-card strong {
  color: var(--text);
}

.game-detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.game-detail-gallery .game-detail-figure {
  margin: 0;
}

.game-detail-download {
  margin-top: 3rem;
  text-align: center;
}

.game-detail-actions {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 3rem;
}

.game-detail-hero + .game-detail-actions {
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
}

.game-detail-actions .btn {
  width: 200px;
}

/* How To Play */
.howto-inner {
  max-width: 900px;
}

.howto-hero {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.howto-hero .game-detail-icon {
  margin-bottom: 1.25rem;
}

.howto-hero h1 {
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.howto-lead {
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.howto-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.howto-toc a {
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-muted);
  font-size: 0.8125rem;
  transition: color 0.2s, border-color 0.2s;
}

.howto-toc a:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.howto-section {
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.howto-section:last-of-type {
  border-bottom: none;
}

.howto-section h2 {
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.howto-section h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.125rem;
}

.howto-section h3:first-of-type {
  margin-top: 1rem;
}

.howto-section > p,
.howto-section li {
  color: var(--text-muted);
}

.howto-section ul,
.howto-section ol {
  display: grid;
  gap: 0.5rem;
  padding-left: 1.25rem;
  margin: 1rem 0;
}

.howto-section strong {
  color: var(--text);
}

.howto-figure {
  margin: 1.25rem 0 0;
}

.howto-figure img {
  display: block;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  object-fit: contain;
}

.howto-figure figcaption {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  text-align: center;
}

.howto-figure-wide img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.howto-figure-ui img {
  width: auto;
  max-width: 100%;
  margin-inline: auto;
}

.howto-figure-flag img {
  width: auto;
  max-height: 280px;
  margin-inline: auto;
}

.howto-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 180px;
  padding: 1.5rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg-muted);
  text-align: center;
}

.howto-placeholder strong {
  color: var(--text);
  font-size: 1rem;
}

.howto-placeholder span {
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
}

.howto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.howto-card {
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.howto-card img {
  display: block;
  width: 88px;
  height: 88px;
  margin: 0 auto 0.75rem;
  object-fit: contain;
}

.howto-card h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.howto-card p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.howto-card .howto-meta {
  margin-top: 0.5rem;
  color: var(--accent-hover);
  font-size: 0.8125rem;
  font-weight: 600;
}

.howto-stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.howto-stat {
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.howto-stat dt {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.howto-stat dd {
  font-size: 1.0625rem;
  font-weight: 600;
}

.howto-inline-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin: 1.25rem 0;
}

.howto-inline-icons img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.howto-merge-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.howto-merge-flow img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.howto-merge-flow .howto-arrow {
  color: var(--text-muted);
  font-size: 1.25rem;
}

.howto-table-wrap {
  overflow-x: auto;
  margin-top: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.howto-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.howto-table th,
.howto-table td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.howto-table th {
  background: var(--bg-muted);
  color: var(--text);
  font-weight: 600;
}

.howto-table td {
  color: var(--text-muted);
}

.howto-table tr:last-child td {
  border-bottom: none;
}

.howto-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}

.howto-actions-top {
  margin-top: 1.5rem;
}

.howto-actions .btn {
  min-width: 200px;
}

.exchange-wrap {
  max-width: 32rem;
}

.exchange-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.exchange-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.exchange-card p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
}

.btn-google {
  background: #fff;
  color: #1f1f1f;
  gap: 0.6rem;
}

.btn-google:hover:not(:disabled) {
  background: #f2f2f2;
}

.btn-google:disabled {
  opacity: 0.6;
  cursor: wait;
}

.btn-google-icon {
  flex-shrink: 0;
}

.exchange-error {
  margin-top: 1rem;
  margin-bottom: 0;
  color: #f87171;
  font-size: 0.875rem;
}

.exchange-profile {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1rem;
}

.exchange-avatar {
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-muted);
}

.exchange-name {
  margin: 0;
  font-weight: 600;
  color: var(--text);
}

.exchange-email {
  margin: 0.2rem 0 0;
  font-size: 0.875rem;
}

.exchange-wallet {
  margin: 0 0 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-muted);
}

.exchange-wallet-label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.exchange-wallet-amount {
  margin: 0.35rem 0 0.4rem;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.exchange-wallet-note {
  margin: 0;
  font-size: 0.8125rem;
}

.exchange-card .exchange-error {
  margin-bottom: 1rem;
}

.exchange-send {
  display: grid;
  gap: 1rem;
  margin: 0 0 1.25rem;
}

.exchange-field {
  display: grid;
  gap: 0.45rem;
}

.exchange-field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.exchange-field input[type="text"],
.exchange-field input[type="number"] {
  width: 100%;
  padding: 0.85rem 1rem;
  color: var(--text);
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
}

.exchange-field input:focus {
  outline: none;
  border-color: var(--accent);
}

.exchange-field input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.exchange-field input[type="number"]::-webkit-outer-spin-button,
.exchange-field input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.btn-send-soon {
  flex-direction: column;
  gap: 0.15rem;
  width: 100%;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  line-height: 1.15;
}

.btn-send-label {
  font-size: 0.9375rem;
}

.btn-send-soon-note {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.85;
}

@media (max-width: 600px) {
  .hero {
    padding: 4rem 0 3rem;
  }

  .nav {
    gap: 1rem;
  }

  .game-detail-gallery {
    grid-template-columns: 1fr;
  }

  .howto-hero h1 {
    font-size: 1.625rem;
  }
}
