:root {
  --ink: #211103;
  --muted: #432712;
  --surface: #bd7828;
  --surface-strong: #9b5415;
  --card: #d0943b;
  --card-soft: #e3b45f;
  --cream: #f5dfaa;
  --cream-bright: #fff0c4;
  --panel: #9a5215;
  --panel-dark: #512005;
  --panel-deep: #240b01;
  --leaf: #2d6e45;
  --leaf-soft: #a9a862;
  --berry: #5b170c;
  --sky: #85a69a;
  --line: #603006;
  --edge: rgba(255, 240, 196, 0.22);
  --shadow: 0 18px 38px rgba(18, 6, 0, 0.6);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(31, 10, 1, 0.72) 0%, rgba(78, 31, 6, 0.18) 18%, transparent 35%, transparent 65%, rgba(78, 31, 6, 0.2) 84%, rgba(31, 10, 1, 0.76) 100%),
    linear-gradient(180deg, rgba(48, 17, 3, 0.96), rgba(78, 31, 6, 0.94)),
    url("../images/original/bg.gif");
  font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: var(--panel-deep);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--berry);
  text-decoration: underline;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--cream-bright);
  outline-offset: 3px;
}

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

.site-wrap {
  width: auto;
  max-width: 1140px;
  margin: 18px auto 28px;
}

.meta-bar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 14px;
  color: var(--cream);
  background: linear-gradient(180deg, #2c0d01, #190600);
  border: 1px solid rgba(245, 223, 170, 0.32);
  border-radius: 8px 8px 0 0;
  font-size: 0.92rem;
  box-shadow: inset 0 1px 0 rgba(255, 240, 196, 0.08);
  overflow-wrap: anywhere;
}

.site-header {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  box-shadow: var(--shadow);
}

.brand-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  padding: 30px 34px;
  background:
    linear-gradient(90deg, rgba(255, 240, 196, 0.12), rgba(255, 240, 196, 0.04) 58%, rgba(255, 240, 196, 0.08)),
    radial-gradient(circle at top right, rgba(245, 223, 170, 0.16), transparent 34%),
    linear-gradient(135deg, #cd8a38 0%, #c17c2e 52%, #b87324 100%);
  box-shadow: inset 0 1px 0 rgba(255, 240, 196, 0.18);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 110px;
  min-width: 110px;
  padding: 2px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 240, 196, 0.2), rgba(111, 50, 8, 0.08) 64%, transparent 72%);
  filter: drop-shadow(0 8px 10px rgba(22, 8, 0, 0.38));
  text-decoration: none;
}

.brand-mark img {
  width: 100%;
  height: auto;
}

.brand-copy {
  min-width: 0;
  max-width: 780px;
}

.eyebrow,
.section-kicker,
.tag,
.news-meta {
  margin: 0 0 6px;
  color: var(--berry);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-copy h1,
.hero-card h2,
.section-heading h2,
.widget-card h2,
.site-footer {
  font-family: Georgia, "Times New Roman", serif;
}

.brand-copy h1 {
  margin: 0;
  color: var(--panel-deep);
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 240, 196, 0.2);
}

.lead {
  max-width: 720px;
  margin: 12px 0 0;
  color: #241104;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.main-nav {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  background: var(--panel-deep);
}

.main-nav a {
  min-width: 0;
  padding: 13px 10px;
  color: var(--cream);
  border-top: 1px solid rgba(245, 223, 170, 0.22);
  border-right: 1px solid rgba(245, 223, 170, 0.14);
  text-align: center;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: #fff;
  background: var(--leaf);
  text-decoration: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
  gap: 18px;
  margin-top: 18px;
}

.hero-card,
.quick-panel,
.category-block,
.widget-card,
.site-footer {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(184, 115, 36, 0.97);
  box-shadow: var(--shadow), inset 0 1px 0 var(--edge);
}

.hero-card {
  min-width: 0;
  padding: clamp(20px, 3vw, 30px);
  background:
    radial-gradient(circle at top left, rgba(255, 240, 196, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(199, 127, 49, 0.98), rgba(184, 115, 36, 0.98)),
    var(--surface);
}

.hero-card h2 {
  max-width: 680px;
  margin: 0;
  color: var(--panel-deep);
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.08;
}

.hero-card p:not(.section-kicker) {
  max-width: 760px;
  margin: 16px 0 0;
  color: #2c1706;
  font-size: 1.04rem;
}

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

.hero-actions a,
.game-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 13px;
  color: #fff;
  background: var(--leaf);
  border: 1px solid #174b32;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 240, 196, 0.26), 0 2px 0 rgba(16, 50, 32, 0.88);
}

.hero-actions a + a {
  color: var(--panel-deep);
  background: var(--card-soft);
  border-color: var(--line);
}

.hero-actions a:hover,
.hero-actions a:focus-visible,
.game-card a:hover,
.game-card a:focus-visible {
  filter: brightness(0.96);
  transform: translateY(1px);
  text-decoration: none;
}

.quick-panel {
  padding: 18px;
  background: linear-gradient(180deg, #ad661f, #965114);
}

.quick-panel h2,
.widget-card h2 {
  margin: 0 0 14px;
  color: var(--panel-deep);
  font-size: 1.35rem;
}

.quick-links,
.side-links {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.quick-shelf {
  margin-top: 18px;
  padding: clamp(14px, 2.5vw, 20px);
  background: linear-gradient(180deg, rgba(126, 54, 10, 0.98), rgba(86, 32, 5, 0.98));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 240, 196, 0.12);
}

.quick-shelf .section-kicker,
.quick-shelf .section-heading h2 {
  color: var(--cream);
}

.compact-heading {
  margin-bottom: 12px;
}

.shelf-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.shelf-grid a {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 9px;
  color: var(--panel-deep);
  background: linear-gradient(180deg, var(--card-soft), var(--card));
  border: 1px solid #71400c;
  border-radius: 8px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 240, 196, 0.28);
}

.shelf-grid img {
  width: 72px;
  min-height: 34px;
  padding: 3px;
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  object-fit: contain;
}

.shelf-grid span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.quick-links a,
.side-links a {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px;
  background: linear-gradient(180deg, var(--card-soft), var(--card));
  border: 1px solid var(--line);
  border-radius: 7px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 240, 196, 0.24);
}

.quick-links span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--cream);
  background: var(--berry);
  border-radius: 50%;
  font-size: 0.78rem;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.catalog,
.side-stack {
  display: grid;
  gap: 18px;
}

.category-block,
.widget-card {
  padding: clamp(16px, 3vw, 24px);
}

.category-block {
  background:
    linear-gradient(180deg, rgba(255, 240, 196, 0.08), transparent 18%),
    linear-gradient(180deg, #ad641c, #88400d);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 14px;
  border-bottom: 2px solid rgba(96, 48, 6, 0.86);
  padding-bottom: 10px;
}

.section-heading h2 {
  margin: 0;
  color: var(--panel-deep);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

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

.game-card {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 14px;
  min-height: 150px;
  padding: 12px;
  background: linear-gradient(180deg, #d89b42 0%, #cc8730 72%, #bd7424 100%);
  border: 1px solid #683707;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 240, 196, 0.28), 0 2px 0 rgba(64, 27, 4, 0.34);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.game-card:focus-within,
.game-card:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 240, 196, 0.34), 0 5px 12px rgba(45, 17, 2, 0.28);
}

.game-card img {
  width: 128px;
  min-height: 72px;
  padding: 5px;
  background: var(--card-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  object-fit: contain;
  box-shadow: 0 1px 0 rgba(255, 240, 196, 0.3);
}

.game-card h3,
.news-card h3 {
  margin: 0 0 6px;
  color: var(--panel-deep);
  font-size: 1.12rem;
}

.game-card p:not(.tag),
.news-card p:not(.news-meta),
.widget-card p {
  margin: 0 0 10px;
  color: var(--muted);
}

.game-card a {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 0.9rem;
}

.split-block {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  background: linear-gradient(180deg, rgba(106, 47, 9, 0.98), rgba(74, 28, 4, 0.98));
}

.split-block .section-heading {
  border-bottom-color: rgba(255, 240, 196, 0.28);
}

.split-block .section-kicker,
.split-block .section-heading h2 {
  color: var(--cream-bright);
}

.mini-category {
  display: grid;
  gap: 10px;
}

.mini-category .section-heading {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  align-items: start;
  margin-bottom: 0;
}

.mini-category .section-heading h2 {
  font-size: clamp(1.45rem, 2.5vw, 1.75rem);
  line-height: 1.05;
}

.mini-category .section-kicker {
  max-width: 18ch;
  font-size: 0.72rem;
}

.compact {
  grid-template-columns: 108px 1fr;
  min-height: 132px;
}

.compact img {
  width: 108px;
}

.news-section {
  padding: clamp(16px, 3vw, 24px);
  background:
    radial-gradient(circle at top left, rgba(169, 168, 98, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(84, 35, 6, 0.98), rgba(145, 76, 17, 0.96));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.news-section .section-heading {
  border-bottom-color: rgba(255, 240, 196, 0.28);
}

.news-section .section-kicker,
.news-section .section-heading h2 {
  color: var(--cream-bright);
}

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

.news-card {
  overflow: hidden;
  background: linear-gradient(180deg, #d99b42 0%, #c9822a 72%, #b76e1d 100%);
  border: 1px solid #70400d;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 240, 196, 0.26);
}

.news-card img {
  width: 100%;
  aspect-ratio: 16 / 5;
  background: linear-gradient(180deg, var(--card-soft), #c98732);
  object-fit: cover;
  object-position: center top;
  border-bottom: 1px solid rgba(96, 48, 6, 0.72);
}

.news-card > :not(img),
.featured-news div {
  padding-inline: 14px;
}

.news-card .news-meta {
  padding-top: 14px;
}

.news-card p:last-child {
  padding-bottom: 14px;
}

.featured-news {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 1fr;
  align-items: center;
}

.featured-news img {
  height: 100%;
  min-height: 190px;
  aspect-ratio: auto;
}

.widget-card {
  background: linear-gradient(180deg, #a65d1c, #8f4710);
}

.widget-card details {
  padding: 9px 0;
}

.widget-card details + details {
  border-top: 1px solid rgba(255, 240, 196, 0.24);
}

.widget-card summary {
  color: var(--cream-bright);
  cursor: pointer;
  font-weight: 700;
}

.widget-card summary::marker {
  color: var(--cream);
}

.widget-card p {
  color: var(--cream-bright);
}

.highlight-widget {
  background: var(--card);
  border-color: #71400c;
}

.highlight-widget p {
  color: var(--muted);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  padding: 16px;
  color: var(--cream);
  background: var(--panel-deep);
}

.site-footer a {
  color: var(--cream);
  font-weight: 700;
}

.site-footer a:last-child {
  justify-self: end;
}

@media (max-width: 940px) {
  .main-nav {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-grid,
  .content-layout,
  .featured-news,
  .split-block {
    grid-template-columns: 1fr;
  }

  .side-stack {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .site-wrap {
    width: auto;
    max-width: 1120px;
    margin: 8px 8px 18px;
  }

  .meta-bar,
  .brand-panel,
  .section-heading,
  .site-footer {
    display: grid;
    grid-template-columns: 1fr;
  }

  .brand-mark {
    width: 86px;
    min-width: 86px;
  }

  .brand-copy h1,
  .hero-card h2,
  .lead,
  .hero-card p,
  .meta-bar span {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .game-grid,
  .news-grid,
  .side-stack {
    grid-template-columns: 1fr;
  }

  .game-card,
  .compact {
    grid-template-columns: 96px 1fr;
  }

  .game-card img,
  .compact img {
    width: 96px;
  }

  .site-footer a:last-child {
    justify-self: start;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 15px;
  }

  .site-wrap {
    max-width: 390px;
  }

  .brand-copy h1 {
    font-size: clamp(1.9rem, 10vw, 2.35rem);
  }

  .hero-card h2 {
    font-size: clamp(1.55rem, 8vw, 1.95rem);
  }

  .main-nav {
    grid-template-columns: 1fr;
  }

  .brand-panel,
  .hero-card,
  .quick-panel,
  .category-block,
  .widget-card,
  .news-section {
    padding: 14px;
  }

  .game-card,
  .compact {
    grid-template-columns: 1fr;
  }

  .game-card img,
  .compact img {
    width: 168px;
  }

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

  .hero-actions {
    display: grid;
  }
}
