/* Cwelantis Online -- dark fantasy theme matching the in-client splash.
   Palette derived from the hero artwork (charred reds, fire-lit gold,
   parchment cream). Layered radial vignettes keep text legible over
   the background image without resorting to a flat black mask. */

* { box-sizing: border-box; }

:root {
  --bg-deep:    #0a0606;          /* page bottom, beyond the artwork  */
  --bg-card:    #1a0d09;          /* panels                            */
  --bg-card-2:  #251410;          /* panels' top edge, soft gradient   */
  --border:     #5a2818;          /* thin warm-brown lines             */
  --border-hi:  #9c5a2e;          /* hover / focus accents             */
  --gold:       #e8b66a;          /* primary accent (fire-lit gold)    */
  --gold-soft:  #c89b4a;          /* dimmer gold for links             */
  --ember:      #d94a2a;          /* fire / danger / tag accents       */
  --text:       #e8d9b0;          /* parchment cream                   */
  --text-dim:   #a08664;          /* muted parchment                   */
  --shadow:     0 4px 24px rgba(0, 0, 0, 0.6);
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: "Cinzel", "Trajan Pro", Georgia, serif;
  color: var(--text);
  background: var(--bg-deep);
}

/* Subtle warm-ember gradient on the deep-black base. Mimics the hero
   artwork's lighting (fire glow up top fading into char black) without
   pasting the image itself. */
body {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%,  rgba(120, 40, 20, 0.35) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(90, 30, 15, 0.25) 0%, transparent 70%),
    linear-gradient(180deg, #120808 0%, #0a0606 50%, #050303 100%);
  background-attachment: fixed;
}

/* Top bar -- thin gold line + black gradient so the hero peeks through. */
header {
  padding: 1.4rem 2rem;
  background:
    linear-gradient(180deg, rgba(10,6,6,.85) 0%, rgba(10,6,6,.4) 100%);
  border-bottom: 2px solid var(--gold-soft);
  box-shadow: var(--shadow);
}
header h1 {
  margin: 0;
  color: var(--gold);
  font-size: 2rem;
  letter-spacing: 0.05em;
  text-shadow: 0 0 8px rgba(217, 74, 42, 0.45);
}
nav { margin-top: 0.6rem; }
nav a {
  color: var(--gold-soft);
  margin-right: 1.2rem;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: color 0.15s;
}
nav a:hover { color: var(--gold); }

/* Card / content panel -- semi-translucent so the hero shows behind. */
main {
  max-width: 720px;
  margin: 2.5rem auto;
  padding: 2rem;
  background: linear-gradient(180deg, var(--bg-card-2) 0%, var(--bg-card) 100%);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: var(--shadow);
}
h2 {
  color: var(--gold);
  margin-top: 0;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}
h3 {
  color: var(--gold-soft);
  letter-spacing: 0.03em;
}

/* Form fields -- forged-metal look. */
form { display: flex; flex-direction: column; gap: 0.9rem; }
label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--text-dim);
  letter-spacing: 0.03em;
}
input, select {
  padding: 0.7rem 0.8rem;
  background: rgba(10, 6, 6, 0.7);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 3px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus {
  outline: none;
  border-color: var(--border-hi);
  box-shadow: 0 0 0 1px var(--border-hi);
}

/* Buttons -- iron-rivet style with red ember highlight. */
button {
  padding: 0.75rem 1.6rem;
  background: linear-gradient(180deg, #5a2818 0%, #3a1810 100%);
  color: var(--gold);
  border: 1px solid var(--border-hi);
  cursor: pointer;
  font-size: 1rem;
  font-family: inherit;
  letter-spacing: 0.04em;
  border-radius: 3px;
  transition: background 0.15s, transform 0.05s;
}
button:hover {
  background: linear-gradient(180deg, #7a3820 0%, #4a1f14 100%);
}
button:active {
  transform: translateY(1px);
}
button.primary {
  background: linear-gradient(180deg, #d94a2a 0%, #a02818 100%);
  color: #fff8e6;
  border-color: #f0a060;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
  font-weight: bold;
}
button.primary:hover {
  background: linear-gradient(180deg, #f06030 0%, #c03820 100%);
}

/* Hero download CTA. */
.download-btn {
  display: inline-block;
  padding: 1rem 2.2rem;
  background: linear-gradient(180deg, #d94a2a 0%, #a02818 100%);
  color: #fff8e6;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  border-radius: 3px;
  border: 1px solid #f0a060;
  box-shadow: 0 4px 12px rgba(217, 74, 42, 0.35);
  transition: background 0.15s, box-shadow 0.15s;
}
.download-btn:hover {
  background: linear-gradient(180deg, #f06030 0%, #c03820 100%);
  box-shadow: 0 6px 18px rgba(217, 74, 42, 0.5);
}

/* Status messages. */
.error {
  color: #ffb6a0;
  background: rgba(120, 30, 20, 0.5);
  border: 1px solid #8a3020;
  padding: 0.6rem 0.8rem;
  border-radius: 3px;
  display: none;
}
.success {
  color: #b6ffa0;
  background: rgba(30, 70, 20, 0.5);
  border: 1px solid #3a6020;
  padding: 0.6rem 0.8rem;
  border-radius: 3px;
  display: none;
}

/* Character list. */
.char-list { list-style: none; padding: 0; margin: 0.5rem 0; }
.char-list li {
  padding: 0.7rem 0.9rem;
  background: rgba(10, 6, 6, 0.5);
  border: 1px solid var(--border);
  margin-bottom: 0.4rem;
  border-radius: 3px;
  transition: border-color 0.15s;
}
.char-list li:hover { border-color: var(--border-hi); }

.hint {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-style: italic;
}

code {
  background: rgba(10, 6, 6, 0.6);
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
  font-family: "Cascadia Code", ui-monospace, monospace;
  font-size: 0.9em;
  color: var(--gold);
}
