:root {
  --ink: #2d2819;
  --muted: #5f604e;
  --paper: #faf8f0;
  --panel: #ffffff;
  --brand: #483d21;
  --brand-2: #136f63;
  --accent: #b64b2f;
  --line: #d8d2ba;
  --soft: #eef4ed;
  --ad: #f6f6f1;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  user-select: text;
}

a {
  color: var(--brand-2);
}

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

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  background: var(--brand);
  border-bottom: 6px solid var(--brand-2);
}

header.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.brand {
  color: #fffced;
  font-weight: 900;
  letter-spacing: 2px;
  text-decoration: none;
  white-space: nowrap;
}

.brand span {
  color: #d8d2ba;
  font-weight: 500;
}

.site-nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.site-nav a,
.site-footer a {
  color: #fff6c8;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.hero,
.page-hero {
  background: var(--brand);
  color: #fffced;
}

.hero-inner,
.page-hero .container {
  padding: 52px 0 42px;
}

.hero h1,
.page-hero h1 {
  max-width: 780px;
  margin: 0 0 14px;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 1;
  letter-spacing: 0;
}

.hero p,
.page-hero p {
  max-width: 760px;
  margin: 0 0 18px;
  color: #eee6c9;
  font-size: 1.1rem;
}

.eyebrow {
  color: #bce3da;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.primary-link {
  display: inline-block;
  min-height: 44px;
  padding: 10px 18px;
  color: #ffffff;
  background: var(--brand-2);
  border: 2px solid #bce3da;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.primary-link:hover {
  color: #ffffff;
  background: #0f5b51;
}

#game {
  width: min(1000px, calc(100% - 32px));
  margin: 32px auto;
  padding: 18px;
  background: #ece9d8;
  border: 4px solid var(--brand);
  border-bottom-width: 12px;
  border-radius: 8px;
}

#counter {
  min-height: 8rem;
  color: var(--brand);
}

#per_second {
  color: var(--brand);
}

.sbs {
  user-select: none;
}

.sb1 {
  cursor: pointer;
}

#items {
  max-height: 30rem;
}

.notice {
  padding: 12px 14px;
  background: #fff8d7;
  border: 1px solid #cfb45b;
  border-radius: 6px;
}

.ad-slot {
  width: min(940px, calc(100% - 32px));
  min-height: 92px;
  margin: 28px auto;
  padding: 18px;
  color: var(--muted);
  background: var(--ad);
  border: 1px dashed #aaa58f;
  border-radius: 6px;
  text-align: center;
}

.ad-slot span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ad-slot p {
  margin: 4px auto 0;
  max-width: 620px;
  font-size: 0.9rem;
}

.content-section,
.page-content {
  width: min(980px, calc(100% - 32px));
  margin: 44px auto;
}

article.content-section {
  display: block;
  max-width: 980px;
}

.seo-content section,
.text-section {
  margin: 0;
  padding: 28px 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.seo-content section:first-child,
.text-section:first-child {
  padding-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.18;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
}

h3 {
  margin: 22px 0 6px;
}

p,
li {
  font-size: 1rem;
}

ol,
ul {
  padding-left: 1.3rem;
}

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

.info-band {
  margin: 30px 0;
  padding: 22px;
  background: var(--soft);
  border-left: 6px solid var(--brand-2);
  border-radius: 6px;
}

.breadcrumbs {
  width: min(980px, calc(100% - 32px));
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: var(--brand-2);
  text-decoration: none;
}

.site-footer {
  margin-top: 48px;
  padding: 28px 0;
  color: #fff6c8;
  background: var(--brand);
  text-align: left;
}

#footer.site-footer {
  padding: 28px 0;
  width: 100%;
  background: var(--brand);
  font-size: 1rem;
}

.site-footer .container {
  display: grid;
  gap: 14px;
  background: transparent;
  border: 0;
  padding: 0;
}

.site-footer p {
  margin: 0;
  color: #eee6c9;
}

.text-button {
  width: max-content;
  min-height: 40px;
  padding: 8px 12px;
  color: #fffced;
  background: transparent;
  border: 1px solid #bce3da;
  border-radius: 6px;
  cursor: pointer;
}

.text-button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

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

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

  #game {
    padding: 12px;
  }

  #counter {
    font-size: 5.2rem;
  }
}

@media (max-width: 520px) {
  .brand {
    white-space: normal;
  }

  .hero-inner,
  .page-hero .container {
    padding: 38px 0 32px;
  }

  #counter {
    font-size: 4rem;
  }

  .sbs {
    letter-spacing: 8px;
  }
}
