:root{
  --color-bg: #1a1525;
  --color-surface: #2d243b;
  --color-primary: #d4af37;
  --color-primary-dark: #b8962e;
  --color-text: #e0d8e8;
  --color-text-muted: #a69bb5;
  --color-poor: #8d7b68;
  --color-average: #5b7c99;
  --color-rich: #995b82;
  --font-main: system-ui, -apple-system, sans-serif;
  --font-heading: Georgia, serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-main); background-color: var(--color-bg); color: var(--color-text); line-height: 1.6; }
.container { max-width: 900px; margin: 0 auto; padding: 0 20px; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: normal; margin-bottom: 1rem; color: #fff; }
h1 { font-size: 2.5rem; color: var(--color-primary); }
h2 { font-size: 2rem; border-bottom: 1px solid var(--color-surface); padding-bottom: 0.5rem; margin-top: 2rem; }
.site-header { background: #110e18; padding: 1rem 0; border-bottom: 2px solid var(--color-surface); }
.nav-bar { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-family: var(--font-heading); font-weight: bold; color: var(--color-primary); }
.nav-bar nav a { margin-left: 1.5rem; color: var(--color-text); }
.nav-bar nav a:hover { color: var(--color-primary); }
main { padding: 3rem 0; }
.hero { text-align: center; margin-bottom: 3rem; }
.hero p { font-size: 1.1rem; color: var(--color-text-muted); margin-bottom: 1rem; max-width: 800px; margin-inline: auto; }
.ad-container { text-align: center; margin: 2rem 0; min-height: 120px; background: rgba(0,0,0,0.2); border: 1px dashed var(--color-surface); display: flex; align-items: center; justify-content: center; }
.generator-section { background: var(--color-surface); padding: 2rem; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); text-align: center; }
.generator-controls { display: flex; gap: 1rem; justify-content: center; margin: 2rem 0; flex-wrap: wrap; }
.btn-wealth { padding: 1rem 2rem; font-size: 1.1rem; border: none; border-radius: 4px; cursor: pointer; font-weight: bold; transition: transform 0.2s, filter 0.2s; color: #fff; }
.btn-wealth:hover { transform: translateY(-2px); filter: brightness(1.2); }
.btn-wealth.poor { background: var(--color-poor); }
.btn-wealth.average { background: var(--color-average); }
.btn-wealth.rich { background: var(--color-rich); }
.inventory-output { margin-top: 2rem; background: #e8e2d5; color: #333; padding: 2rem; border-radius: 4px; box-shadow: inset 0 0 20px rgba(0,0,0,0.1); text-align: left; }
.inventory-output.hidden { display: none; }
.inventory-output h3 { color: #222; margin-bottom: 0.5rem; }
.shop-flavor-text { font-style: italic; color: #555; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid #ccc; }
.table-responsive { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin-top: 1rem; }
th, td { padding: 0.75rem; border-bottom: 1px solid #ccc; text-align: left; }
th { font-weight: bold; font-family: var(--font-heading); color: #222; text-transform: uppercase; font-size: 0.9rem; }
tr:nth-child(even) { background: rgba(0,0,0,0.03); }
.tips-section { margin-top: 4rem; }
.tip-card { background: rgba(255,255,255,0.05); padding: 1.5rem; margin-bottom: 1.5rem; border-left: 4px solid var(--color-primary); border-radius: 0 4px 4px 0; }
.tip-card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; color: var(--color-primary); }
.faq-section { margin-top: 4rem; }
.faq-item { margin-bottom: 1.5rem; }
.faq-item strong { display: block; font-size: 1.2rem; color: #fff; margin-bottom: 0.5rem; }
.site-footer { background: #110e18; padding: 2rem 0; margin-top: 4rem; text-align: center; border-top: 1px solid var(--color-surface); }
.site-footer nav { margin-top: 1rem; }
.site-footer nav a { margin: 0 1rem; font-size: 0.9rem; }
.slide-up { animation: slideUp 0.6s ease forwards; opacity: 0; transform: translateY(20px); }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
@keyframes slideUp { to { opacity: 1; transform: translateY(0); } }
@media(max-width: 600px) { .btn-wealth { width: 100%; } .hero h1 { font-size: 2rem; } th, td { padding: 0.5rem; font-size: 0.9rem; } }


/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
