body{
  margin:0;
  font-family:Georgia, serif;
  background-color:#000;
  color:#111;
}

.layout{
  display:flex;
  align-items:stretch;
  background:#000;
}

.main-content{
  flex:1;
  min-width:0;
  padding:32px;
  box-sizing:border-box;
  background-color:#e9e9e9;
}

.section-header{
  margin-bottom:20px;
}

.section-header h2{
  margin:0 0 8px 0;
  font-size:clamp(28px, 4vw, 40px);
}

.section-header p{
  margin:0;
  font-size:18px;
  color:#333;
  line-height:1.5;
}

.content-card{
  background:white;
  border:2px solid #000;
  border-radius:14px;
  padding:22px;
  box-sizing:border-box;
  box-shadow:0 4px 14px rgba(0,0,0,0.08);
}

.content-card h3{
  margin:0 0 12px 0;
  font-size:24px;
}

.content-card p{
  margin:0;
  line-height:1.7;
  font-size:17px;
  color:#222;
}

@media (max-width: 768px){
  .layout{
    display:block;
    background:#e9e9e9;
  }

  .main-content{
    padding:20px 16px 100px;
  }

  .section-header h2{
    font-size:30px;
  }

  .section-header p,
  .content-card p{
    font-size:16px;
  }
}

/* === Game / Tool Hero Banner ============================================= */

.game-hero {
  background: #131313;
  border: 1px solid rgba(184,136,26,0.75);
  border-radius: 20px;
  padding: 0 28px 0 0;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 0;
  margin-bottom: 28px;
  position: relative;
  min-height: 190px;
  box-shadow: 0 8px 36px rgba(0,0,0,0.65);
}

/* Inner corner ornament lines */
.game-hero-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: rgba(184,136,26,0.7);
  border-style: solid;
  pointer-events: none;
}
.game-hero-corner.tl { top: 8px;    left: 8px;  border-width: 1.5px 0 0 1.5px; }
.game-hero-corner.tr { top: 8px;    right: 8px; border-width: 1.5px 1.5px 0 0; }
.game-hero-corner.bl { bottom: 8px; left: 8px;  border-width: 0 0 1.5px 1.5px; }
.game-hero-corner.br { bottom: 8px; right: 8px; border-width: 0 1.5px 1.5px 0; }

/* Emblem box — square, dark bg, faint gold border, contains icon */
.game-hero-emblem {
  width: 150px;
  height: 150px;
  background: #0d0d0d;
  border: 1px solid rgba(184,136,26,0.28);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 20px 0 20px 20px;
  overflow: hidden;
}

.game-hero-emblem img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: screen;
  display: block;
}

/* Vertical divider with centered spark */
.game-hero-sep {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 40px;
  flex-shrink: 0;
  color: rgba(184,136,26,0.85);
  font-size: 10px;
}

.game-hero-sep::before,
.game-hero-sep::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  background: rgba(184,136,26,0.3);
}

.game-hero-sep::before { top: 20px;    height: calc(50% - 26px); }
.game-hero-sep::after  { bottom: 20px; height: calc(50% - 26px); }

/* Title + subtitle */
.game-hero-title {
  text-align: center;
  padding: 0 32px;
}

.game-hero-title h2 {
  margin: 0 0 9px;
  font-size: clamp(36px, 4.5vw, 58px);
  color: #ffffff;
  font-family: Georgia, serif;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
}

.game-hero-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(184,136,26,0.9);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-family: Georgia, serif;
}

.game-hero-sub-line {
  flex: 1;
  max-width: 100px;
  height: 1px;
  background: rgba(184,136,26,0.5);
  display: block;
}

/* Action button — gold outline, dark fill, hover glow */
.game-hero-btn {
  border: 1.5px solid rgba(184,136,26,0.8);
  background: transparent;
  color: rgba(184,136,26,0.9);
  border-radius: 8px;
  padding: 10px 18px;
  font-family: Georgia, serif;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.game-hero-btn:hover {
  background: rgba(184,136,26,0.1);
  color: #e8c050;
  box-shadow: 0 0 18px rgba(184,136,26,0.22);
}

/* Tablet */
@media (max-width: 820px) {
  .game-hero {
    grid-template-columns: auto auto 1fr;
    grid-template-rows: 1fr auto;
    padding: 0 20px 0 0;
    min-height: 0;
  }

  .game-hero-emblem {
    width: 100px;
    height: 100px;
    margin: 16px 0 16px 16px;
    grid-row: 1 / 3;
  }

  .game-hero-sep {
    grid-row: 1 / 3;
    width: 28px;
  }

  .game-hero-sep::before { top: 16px;    height: calc(50% - 22px); }
  .game-hero-sep::after  { bottom: 16px; height: calc(50% - 22px); }

  .game-hero-title {
    grid-column: 3;
    grid-row: 1;
    padding: 20px 16px 8px;
  }

  .game-hero-btn {
    grid-column: 3;
    grid-row: 2;
    margin: 0 0 16px;
    justify-content: center;
  }
}

/* Mobile */
@media (max-width: 500px) {
  .game-hero {
    grid-template-columns: auto 1fr;
    grid-template-rows: 1fr auto;
    padding: 0 14px 0 0;
  }

  .game-hero-sep { display: none; }

  .game-hero-emblem {
    width: 72px;
    height: 72px;
    margin: 14px 0 14px 14px;
    border-radius: 10px;
    grid-row: 1 / 3;
  }

  .game-hero-title {
    grid-column: 2;
    grid-row: 1;
    padding: 14px 0 6px 14px;
    text-align: left;
  }

  .game-hero-title h2 { font-size: clamp(26px, 7vw, 36px); }

  .game-hero-btn {
    grid-column: 2;
    grid-row: 2;
    margin: 0 0 14px;
    padding: 10px 0 0 14px;
    border: none;
    border-top: 1px solid rgba(184,136,26,0.2);
    border-radius: 0;
    justify-content: flex-start;
  }
}

/* === end Game / Tool Hero Banner ========================================= */

/* === Catalog Hero (games/index & tools/index) ============================ */
.catalog-hero {
  --hero-gold: #bf7d08;
  --hero-gold-bright: #e2ad35;

  display: grid;
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  grid-template-columns: minmax(0, 190px) minmax(0, 68px) minmax(0, 1fr) minmax(0, 300px);
  align-items: center;
  min-height: 210px;
  padding: 20px 36px;

  background:
    radial-gradient(circle at 18% 50%, rgba(184,136,26,0.06), transparent 29%),
    radial-gradient(circle at 54% 48%, rgba(255,255,255,0.032), transparent 31%),
    linear-gradient(135deg, #111 0%, #151515 45%, #0d0d0d 100%);
  border: 1.5px solid rgba(191,125,8,0.95);
  border-radius: 20px;
  box-shadow:
    inset 0 0 0 1px rgba(184,136,26,0.16),
    inset 0 0 0 8px rgba(0,0,0,0.16),
    inset 0 0 40px rgba(255,255,255,0.028),
    0 8px 22px rgba(0,0,0,0.56);
}

.catalog-hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 7px;
  border: 1px solid rgba(191,125,8,0.62);
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.035), transparent 12%, transparent 88%, rgba(255,255,255,0.035)),
    repeating-linear-gradient(105deg, rgba(255,255,255,0.016) 0 1px, transparent 1px 5px);
  pointer-events: none;
}

.catalog-hero .game-hero-corner { display: none; }

.catalog-hero > * { position: relative; z-index: 2; min-width: 0; }

.catalog-hero .game-hero-emblem {
  place-self: center;
  width: 182px;
  height: 182px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  margin: 0;
}

.catalog-hero .game-hero-emblem img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 8px rgba(184,136,26,0.18));
}

.catalog-hero .game-hero-sep {
  align-self: stretch;
  width: 100%;
  font-size: 22px;
  color: var(--hero-gold-bright);
}

.catalog-hero .game-hero-sep::before,
.catalog-hero .game-hero-sep::after { background: rgba(191,125,8,0.86); }

.catalog-hero .game-hero-sep::before { top: 24px;    height: calc(50% - 36px); }
.catalog-hero .game-hero-sep::after  { bottom: 24px; height: calc(50% - 36px); }

.catalog-hero .game-hero-title {
  overflow: hidden;
  min-width: 0;
  padding: 0 24px 4px;
  container-type: inline-size;
}

.catalog-hero .game-hero-title h2 {
  margin: 0 0 18px;
  font-size: clamp(32px, 9cqi, 68px);
  color: #f7f7f7;
  text-shadow: 0 2px 0 rgba(0,0,0,0.65), 0 0 14px rgba(255,255,255,0.18);
  overflow: hidden;
}

.catalog-hero .game-hero-sub {
  gap: 18px;
  color: var(--hero-gold-bright);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.catalog-hero .game-hero-sub-line {
  flex: 1;
  max-width: 100px;
  background: rgba(191,125,8,0.95);
  position: relative;
}

.catalog-hero .game-hero-sub-line::before,
.catalog-hero .game-hero-sub-line::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 5px;
  height: 5px;
  background: var(--hero-gold-bright);
  border-radius: 50%;
  transform: translateY(-50%);
}

.catalog-hero .game-hero-sub-line::before { left: 0; }
.catalog-hero .game-hero-sub-line::after  { right: 0; }

/* Entry count panel (replaces artifact code) */
.catalog-count {
  align-self: center;
  width: 100%;
  min-height: 82px;
  border: 1px solid rgba(191,125,8,0.95);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  position: relative;
  background: rgba(8,8,8,0.26);
  box-shadow: inset 0 0 16px rgba(184,136,26,0.04);
}

.catalog-count::before, .catalog-count::after,
.catalog-count-inner::before, .catalog-count-inner::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: var(--hero-gold);
  border-style: solid;
  pointer-events: none;
}
.catalog-count::before       { top: 4px;    left: 4px;   border-width: 1px 0 0 1px; }
.catalog-count::after        { top: 4px;    right: 4px;  border-width: 1px 1px 0 0; }
.catalog-count-inner::before { bottom: 4px; left: 4px;   border-width: 0 0 1px 1px; }
.catalog-count-inner::after  { bottom: 4px; right: 4px;  border-width: 0 1px 1px 0; }
.catalog-count-inner { position: absolute; inset: 0; pointer-events: none; }

.catalog-count-num {
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  color: #f7f7f7;
  font-family: Georgia, serif;
  text-shadow: 0 1px 0 rgba(0,0,0,0.65), 0 0 10px rgba(255,255,255,0.12);
}

.catalog-count-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hero-gold-bright);
  font-family: Georgia, serif;
}

/* ── ≤1300px ───────────────────────────────────────────────────────────── */
@media (max-width: 1300px) {
  .catalog-hero {
    grid-template-columns: minmax(0, 152px) minmax(0, 52px) minmax(0, 1fr) minmax(0, 240px);
    min-height: 186px;
    padding: 18px 28px;
  }
  .catalog-hero .game-hero-emblem { width: 148px; height: 148px; }
  .catalog-hero .game-hero-sep { font-size: 18px; }
  .catalog-hero .game-hero-sep::before { top: 20px; height: calc(50% - 30px); }
  .catalog-hero .game-hero-sep::after  { bottom: 20px; height: calc(50% - 30px); }
  .catalog-hero .game-hero-title { padding: 0 16px 2px; }
  .catalog-hero .game-hero-title h2 { font-size: clamp(24px, 9cqi, 48px); margin-bottom: 14px; }
  .catalog-hero .game-hero-sub { font-size: 12px; gap: 12px; }
  .catalog-hero .game-hero-sub-line { max-width: 72px; }
  .catalog-count { min-height: 68px; }
  .catalog-count-num { font-size: 38px; }
  .catalog-count-label { font-size: 11px; }
}

/* ── ≤1200px: count moves below title ──────────────────────────────────── */
@media (max-width: 1200px) {
  .catalog-hero {
    grid-template-columns: minmax(0, 134px) minmax(0, 42px) minmax(0, 1fr);
    grid-template-rows: auto auto;
    min-height: 0;
    height: auto;
    padding: 16px 20px;
    align-items: center;
    border-radius: 16px;
  }
  .catalog-hero::after { inset: 5px; border-radius: 11px; }
  .catalog-hero .game-hero-emblem {
    width: 114px; height: 114px;
    grid-column: 1; grid-row: 1 / 3;
  }
  .catalog-hero .game-hero-sep {
    grid-column: 2; grid-row: 1 / 3;
    font-size: 16px;
  }
  .catalog-hero .game-hero-sep::before { top: 20px; height: calc(50% - 28px); }
  .catalog-hero .game-hero-sep::after  { bottom: 20px; height: calc(50% - 28px); }
  .catalog-hero .game-hero-title { grid-column: 3; grid-row: 1; padding: 6px 0 8px; text-align: center; }
  .catalog-hero .game-hero-title h2 { font-size: clamp(22px, 9cqi, 46px); margin-bottom: 10px; }
  .catalog-hero .game-hero-sub { font-size: 11px; gap: 10px; }
  .catalog-hero .game-hero-sub-line { max-width: 56px; }
  .catalog-count {
    grid-column: 3; grid-row: 2;
    min-height: 0; padding: 8px 16px; margin-bottom: 6px;
  }
  .catalog-count-num { font-size: 32px; }
  .catalog-count-label { font-size: 10px; }
}

/* ── ≤560px ─────────────────────────────────────────────────────────────── */
@media (max-width: 560px) {
  .catalog-hero {
    grid-template-columns: minmax(0, 86px) minmax(0, 32px) minmax(0, 1fr);
    padding: 12px 14px;
    border-radius: 13px;
  }
  .catalog-hero::after { inset: 4px; border-radius: 9px; }
  .catalog-hero .game-hero-emblem { width: 76px; height: 76px; }
  .catalog-hero .game-hero-sep { display: flex; font-size: 12px; }
  .catalog-hero .game-hero-sep::before { top: 16px; height: calc(50% - 22px); }
  .catalog-hero .game-hero-sep::after  { bottom: 16px; height: calc(50% - 22px); }
  .catalog-hero .game-hero-title h2 { font-size: clamp(16px, 9cqi, 30px); margin-bottom: 8px; }
  .catalog-hero .game-hero-sub { font-size: 9px; gap: 8px; }
  .catalog-hero .game-hero-sub-line { max-width: 36px; }
  .catalog-count { display: none; }
}

/* ── ≤390px ─────────────────────────────────────────────────────────────── */
@media (max-width: 390px) {
  .catalog-hero {
    grid-template-columns: minmax(0, 60px) minmax(0, 1fr);
    padding: 12px;
  }
  .catalog-hero .game-hero-sep { display: none; }
  .catalog-hero .game-hero-emblem { width: 60px; height: 60px; }
  .catalog-hero .game-hero-title h2 { font-size: 21px; }
  .catalog-hero .game-hero-sub { font-size: 8px; gap: 6px; }
  .catalog-hero .game-hero-sub-line { max-width: 22px; }
}
/* === end Catalog Hero ==================================================== */

/* --- catalog card icons (tools / games index) --- */
.tool-icon,
.game-icon{
  font-size:32px;
  line-height:1;
  margin-bottom:10px;
}

.game-icon{
  margin-bottom:12px;
}
