:root {
  color-scheme: light;
  --bg: #f3f1ea;
  --paper: #fffdf7;
  --ink: #211d18;
  --muted: #6d655c;
  --line: #d8cdbc;
  --accent: #9b2d2a;
  --accent-2: #236466;
  --gold: #c58b2a;
  --forest: #2f6843;
  --shadow: 0 18px 60px rgba(38, 28, 18, .13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", Arial, sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 52px);
  background: rgba(255, 253, 247, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--ink);
  color: #f8e7bd;
  font-weight: 800;
  border-radius: 6px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.nav a {
  padding: 8px 10px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.nav a:hover {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  align-items: center;
  gap: clamp(28px, 6vw, 80px);
  min-height: calc(100vh - 72px);
  padding: clamp(42px, 8vw, 92px) clamp(18px, 5vw, 72px) 52px;
}

.hero h1 {
  margin: 8px 0 18px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 1.03;
  letter-spacing: 0;
}

.hero p {
  max-width: 680px;
  color: var(--muted);
  font-size: 18px;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  border-radius: 6px;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff7ec;
}

.game-panel {
  overflow: hidden;
  background: #3f2d20;
  border: 1px solid #8e7053;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.game-toolbar {
  display: flex;
  gap: 6px;
  padding: 10px;
  background: #2b211a;
}

.game-toolbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d3a75b;
}

.game-world {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  aspect-ratio: 4 / 3;
}

.tile {
  min-height: 92px;
  background-size: 24px 24px;
}

.tile.grass {
  background-color: var(--forest);
  background-image: linear-gradient(45deg, rgba(255,255,255,.08) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.08) 75%);
}

.tile.path {
  background-color: #a96d39;
  background-image: linear-gradient(135deg, rgba(255,255,255,.08) 25%, transparent 25%, transparent 75%, rgba(0,0,0,.07) 75%);
}

.hero-tile {
  position: relative;
}

.avatar {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 36px;
  height: 54px;
  transform: translate(-50%, -50%);
  background: linear-gradient(#31569a 0 42%, #1f2751 42% 100%);
  border: 2px solid #161116;
  border-radius: 18px 18px 8px 8px;
}

.avatar::before {
  content: "";
  position: absolute;
  left: 8px;
  top: -14px;
  width: 16px;
  height: 16px;
  background: #dca56e;
  border: 2px solid #161116;
  border-radius: 50%;
}

.game-status {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #6d513a;
  color: #f8e7bd;
  font-size: 13px;
}

.game-status span {
  padding: 10px;
  background: #2b211a;
  text-align: center;
}

.section {
  padding: 70px clamp(18px, 5vw, 72px);
}

.band {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section h2 {
  margin: 4px 0 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.15;
}

.notice-list,
.guide-grid,
.article-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

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

article,
.download-box,
.contact-grid > div,
.legal > div {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.band article,
.band .contact-grid > div {
  background: #f7f2e7;
}

article h3,
.download-box h3,
.contact-grid h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

article p,
.download-box p,
.contact-grid p,
.legal p,
.split p {
  margin: 0;
  color: var(--muted);
}

time {
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 800;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

th,
td {
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  background: #efe3cf;
}

tr:last-child td {
  border-bottom: 0;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: center;
}

.download-box {
  background: #f7f2e7;
}

.legal {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 26px clamp(18px, 5vw, 72px);
  background: #211d18;
  color: #f5e8d1;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero,
  .split,
  .legal {
    grid-template-columns: 1fr;
  }

  .notice-list,
  .guide-grid,
  .article-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 520px) {
  .site-header {
    position: static;
  }

  .hero h1 {
    font-size: 40px;
  }

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