@import url('https://fonts.googleapis.com/css2?family=DotGothic16&family=Noto+Sans+JP:wght@500;700;900&family=Outfit:wght@700;800;900&display=swap');

:root {
  --bg-abyss: #090612;
  --bg-deep: #130B29;
  --bg-card: rgba(26, 15, 56, 0.88);
  --bg-card-hover: rgba(40, 22, 84, 0.96);
  --gold-koban: #FFEA56;
  --gold-yamabuki: #FFB300;
  --gold-pale: #FFF9C4;
  --crimson-shinku: #FF1744;
  --crimson-bright: #FF5252;
  --jade-green: #00E676;
  --cyan-magic: #00E5FF;
  --purple-neon: #B388FF;
  --text-main: #FFFFFF;
  --text-sub: #E8EAF6;
  --text-muted: #B39DDB;
  --border-gold: rgba(255, 234, 86, 0.72);
  --border-subtle: rgba(255, 255, 255, 0.18);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --shadow-gold: 0 12px 36px rgba(255, 184, 0, 0.28);
  --shadow-dark: 0 18px 44px rgba(0, 0, 0, 0.75);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-abyss);
  color: var(--text-main);
  font-family: 'Noto Sans JP', 'Outfit', sans-serif;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.7;
  background:
    radial-gradient(circle at 12% 10%, rgba(124, 77, 255, 0.32) 0%, transparent 42%),
    radial-gradient(circle at 88% 15%, rgba(255, 179, 0, 0.22) 0%, transparent 40%),
    radial-gradient(circle at 50% 65%, rgba(0, 229, 255, 0.14) 0%, transparent 50%),
    linear-gradient(180deg, #090612 0%, #140B2E 45%, #0D0720 100%);
}

h1, h2, h3, .pixel-font {
  font-family: 'DotGothic16', 'Noto Sans JP', sans-serif;
  font-weight: 900;
  letter-spacing: 0.03em;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(11, 7, 24, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 2px solid var(--border-gold);
  padding: 0.75rem 1.5rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.65);
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon-img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 2px solid var(--gold-koban);
  box-shadow: 0 0 16px rgba(255, 234, 86, 0.45);
  image-rendering: pixelated;
  object-fit: cover;
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--gold-koban);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.75);
}

.brand-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
}

.nav-links a {
  color: #FFFFFF;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 800;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--gold-koban);
}

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* 3D Arcade Buttons */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(180deg, #FFF176 0%, #FFA000 100%);
  color: #2B0900;
  font-weight: 900;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.92rem;
  border: 2px solid #FFFFFF;
  box-shadow: 0 4px 0 #9E5400, 0 8px 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #9E5400, 0 12px 26px rgba(255, 209, 92, 0.65);
}

.btn-crimson {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(180deg, #FF5252 0%, #C51162 100%);
  color: #fff;
  border: 2px solid #FFFFFF;
  font-weight: 900;
  padding: 0.62rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.88rem;
  box-shadow: 0 4px 0 #6A0032, 0 8px 20px rgba(255, 23, 68, 0.45);
  transition: all 0.15s ease;
}

.btn-crimson:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #6A0032, 0 12px 24px rgba(255, 82, 82, 0.7);
}

/* Hero Section */
.hero-section {
  max-width: 1240px;
  margin: 0 auto;
  padding: 8.2rem 1.5rem 4.5rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero-top-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.hero-app-icon {
  width: 78px;
  height: 78px;
  border-radius: 20px;
  border: 3px solid var(--gold-koban);
  box-shadow: 0 8px 26px rgba(255, 184, 0, 0.42);
  image-rendering: pixelated;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 234, 86, 0.14);
  border: 1.5px solid var(--gold-koban);
  color: var(--gold-koban);
  padding: 0.38rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
}

.hero-title {
  font-size: 2.85rem;
  line-height: 1.28;
  font-weight: 900;
  margin-bottom: 1.15rem;
  color: #fff;
  text-shadow: 0 4px 0 #1F084D, 0 8px 24px rgba(0, 0, 0, 0.7);
}

.gold-gradient-text {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF176 45%, #FFB300 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cyan-gradient-text {
  background: linear-gradient(180deg, #E0F7FA 0%, #00E5FF 55%, #00B0FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.04rem;
  color: var(--text-sub);
  margin-bottom: 1.85rem;
  line-height: 1.85;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2rem;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background: linear-gradient(180deg, #281856 0%, #130A30 100%);
  border: 2px solid var(--border-gold);
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-md);
  color: var(--text-main);
  text-decoration: none;
  box-shadow: 0 5px 0 #070312, 0 10px 22px rgba(0, 0, 0, 0.55);
  transition: all 0.2s ease;
}

.store-btn:hover {
  transform: translateY(-3px);
  border-color: #FFFFFF;
}

.store-btn-sub {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
}

.store-btn-main {
  display: block;
  font-size: 1.02rem;
  font-weight: 900;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-top: 1.4rem;
  border-top: 1.5px solid var(--border-subtle);
}

.stat-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 0.75rem 0.85rem;
}

.stat-box h4 {
  font-size: 1.35rem;
  color: var(--gold-koban);
  font-weight: 900;
}

.stat-box p {
  font-size: 0.76rem;
  color: var(--text-sub);
  font-weight: 700;
}

/* Interactive 8x8 Board Card in Hero */
.hero-board-showcase {
  background: linear-gradient(160deg, #261454 0%, #11082B 100%);
  border: 3px solid var(--gold-koban);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: 0 8px 0 #5D3A00, var(--shadow-dark), var(--shadow-gold);
  position: relative;
}

.board-showcase-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.9rem;
  padding-bottom: 0.7rem;
  border-bottom: 1.5px solid var(--border-gold);
}

.board-grid-demo {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 5px;
  aspect-ratio: 1;
  background: #0D0722;
  padding: 9px;
  border-radius: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.demo-cell {
  background: linear-gradient(145deg, #4B5563 0%, #374151 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 3px 0 #1F2937, inset 0 2px 2px rgba(255, 255, 255, 0.3);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.14s ease;
  user-select: none;
  overflow: hidden;
}

.demo-cell:hover {
  border-color: var(--gold-koban);
  transform: scale(1.06);
}

.demo-cell.dug-miss {
  background: #140B29;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
  color: rgba(255, 255, 255, 0.3);
}

.demo-cell.dug-hit {
  background: linear-gradient(180deg, #FFF176 0%, #FF1744 100%);
  border-color: #FFFFFF;
  box-shadow: 0 2px 0 #880E4F, 0 0 12px rgba(255, 234, 86, 0.8);
  color: #fff;
}

/* Sections */
.section-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 4.8rem 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-block;
  background: rgba(255, 234, 86, 0.15);
  border: 1.5px solid var(--gold-koban);
  padding: 0.25rem 0.95rem;
  border-radius: 999px;
  color: var(--gold-koban);
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
  text-shadow: 0 3px 0 #1D0942;
}

.section-desc {
  color: var(--text-sub);
  max-width: 740px;
  margin: 0 auto;
  font-size: 0.98rem;
}

/* 3 Major Modes Grid */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.75rem;
}

.mode-card {
  background: linear-gradient(165deg, rgba(44, 22, 94, 0.95) 0%, rgba(18, 9, 43, 0.98) 100%);
  border: 2.5px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 8px 0 #0B041D, var(--shadow-dark);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.mode-card:hover {
  transform: translateY(-6px);
  border-color: #FFFFFF;
}

.mode-badge {
  align-self: flex-start;
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  border: 1.5px solid #FFF;
}

.mode-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.25rem;
}

.mode-list li {
  font-size: 0.9rem;
  color: var(--text-sub);
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.mode-list li i {
  color: var(--gold-koban);
  margin-top: 0.3rem;
}

/* Magic Stone Dungeon Exclusive Weapons Table/Cards */
.stone-weapons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.stone-weapon-card {
  background: linear-gradient(160deg, rgba(16, 36, 74, 0.95) 0%, rgba(13, 16, 42, 0.98) 100%);
  border: 2px solid var(--cyan-magic);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  box-shadow: 0 6px 0 #071229, 0 12px 30px rgba(0, 229, 255, 0.15);
  transition: transform 0.2s ease;
}

.stone-weapon-card:hover {
  transform: translateY(-5px);
  border-color: #FFFFFF;
}

.stone-course-pill {
  background: rgba(0, 229, 255, 0.18);
  border: 1.5px solid var(--cyan-magic);
  color: #E0F7FA;
  font-size: 0.75rem;
  font-weight: 900;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
}

.shape-grid-box {
  display: inline-grid;
  gap: 2px;
  padding: 6px;
  background: #090D1A;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
}

.shape-grid-cell {
  width: 14px;
  height: 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 2px;
}

.shape-grid-cell.active {
  background: linear-gradient(180deg, #80D8FF 0%, #00B0FF 100%);
  border-color: #FFFFFF;
  box-shadow: 0 0 6px rgba(0, 229, 255, 0.8);
}

/* Feature Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(265px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--bg-card);
  border: 2px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: 0 6px 0 #0D0522, var(--shadow-dark);
  transition: all 0.22s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: #FFFFFF;
  background: var(--bg-card-hover);
}

.feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: linear-gradient(180deg, #FFF176, #FF9800);
  border: 2px solid #FFFFFF;
  box-shadow: 0 4px 0 #B25000;
  color: #3E1000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  margin-bottom: 1.1rem;
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.65rem;
  color: var(--gold-koban);
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-sub);
}

/* Treasure Catalog Showcase */
.treasure-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}

.treasure-card {
  background: linear-gradient(160deg, #2A1659 0%, #150A33 100%);
  border: 2px solid var(--gold-koban);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: 0 6px 0 #0A041C, var(--shadow-dark);
  transition: all 0.22s ease;
}

.treasure-card:hover {
  border-color: #FFFFFF;
  transform: translateY(-4px);
}

.treasure-img-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.treasure-3d-img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  border: 2px solid #FFFFFF;
  background: rgba(10, 5, 25, 0.75);
  padding: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.55);
  object-fit: contain;
  image-rendering: pixelated;
}

.rarity-badge {
  display: inline-block;
  padding: 0.22rem 0.75rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
}

.rarity-low { background: #40C4FF; color: #002B4D; border: 1.5px solid #FFF; }
.rarity-mid { background: #00E676; color: #003314; border: 1.5px solid #FFF; }
.rarity-high { background: #FFB300; color: #3E1000; border: 1.5px solid #FFF; }
.rarity-leg { background: #FF4081; color: #FFFFFF; border: 1.5px solid #FFF; }

/* Policy Page */
.policy-wrapper {
  max-width: 880px;
  margin: 7.5rem auto 4rem;
  padding: 3rem 2.5rem;
  background: var(--bg-card);
  border: 2.5px solid var(--gold-koban);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-dark);
}

.policy-wrapper h1 {
  font-size: 2.1rem;
  color: var(--gold-koban);
  margin-bottom: 0.5rem;
}

.policy-wrapper h2 {
  font-size: 1.3rem;
  color: var(--gold-pale);
  margin-top: 2.2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border-gold);
}

.policy-wrapper h3 {
  font-size: 1.05rem;
  color: var(--gold-koban);
  margin-top: 1.2rem;
  margin-bottom: 0.4rem;
}

.policy-wrapper p, .policy-wrapper li {
  color: var(--text-sub);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.policy-wrapper ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

/* Footer */
.site-footer {
  background: #06030D;
  border-top: 2px solid var(--border-gold);
  padding: 3.2rem 1.5rem 2.5rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-sub);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
}

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

@media (max-width: 960px) {
  .hero-section {
    grid-template-columns: 1fr;
    padding-top: 6.8rem;
  }
  .hero-title {
    font-size: 2.15rem;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-links {
    display: none;
  }
}
