/* Cinderwake website: dark stone, ember and gold. System fonts only (the site must load in mainland China). */
:root {
  --bg: #0d0a09; --panel: #16110e; --panel2: #1d1612; --edge: #3a2b20; --gold: #dcb860; --ember: #ff7a2a;
  --text: #e6ddd0; --dim: #a8a294; --link: #e8c98a;
  --serif: Georgia, "Times New Roman", "Noto Serif SC", "Songti SC", "SimSun", serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Microsoft YaHei", "PingFang SC", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--sans); }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--gold); }
h1, h2, h3 { font-family: var(--serif); color: var(--gold); font-weight: 600; letter-spacing: .02em; }
h1 { font-size: 34px; margin: 18px 0 6px; }
h2 { font-size: 26px; margin: 42px 0 14px; border-bottom: 1px solid var(--edge); padding-bottom: 6px; }
h3 { font-size: 19px; margin: 0 0 6px; }
.sub { color: var(--dim); margin-top: 0; }
.note { color: var(--dim); font-size: 14px; }

.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 22px; padding: 10px 22px;
  background: rgba(13, 10, 9, .92); border-bottom: 1px solid var(--edge); backdrop-filter: blur(6px); }
.brand img { height: 30px; display: block; }
.bar nav { display: flex; gap: 18px; flex: 1; flex-wrap: wrap; }
.bar nav a { color: var(--text); font-weight: 500; }
.bar nav a:hover { color: var(--gold); }
.steam { background: linear-gradient(#e8a33c, #b8611d); color: #1a0f06 !important; font-weight: 700; padding: 8px 16px;
  border-radius: 4px; border: 1px solid #f5c66a; white-space: nowrap; }
.steam:hover { filter: brightness(1.1); }
.steam.big { font-size: 20px; padding: 14px 30px; display: inline-block; margin-top: 18px; }

.hero { min-height: 520px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 60px 20px; background: linear-gradient(rgba(13,10,9,.25), rgba(13,10,9,.85) 85%, var(--bg)),
  url(../img/hero.jpg) center/cover no-repeat; }
.hero .logo { width: min(640px, 90vw); filter: drop-shadow(0 4px 18px #000); }
.tagline { font: 22px/1.4 var(--serif); max-width: 760px; text-shadow: 0 2px 8px #000; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 10px 22px 60px; }
.pitch { font-size: 19px; max-width: 860px; color: var(--text); }
.trailer { width: 100%; border: 1px solid var(--edge); border-radius: 4px; background: #000; }

.grid { display: grid; gap: 16px; }
.grid.five { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.grid.four { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.grid.feats { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { background: var(--panel); border: 1px solid var(--edge); border-radius: 6px; padding: 14px 16px; color: var(--text); }
a.card:hover { border-color: var(--gold); background: var(--panel2); }
.card p { margin: 0; color: var(--dim); font-size: 15px; }
.card.cls { padding: 0; overflow: hidden; }
.card.cls img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.card.cls h3, .card.cls p { padding: 0 14px; }
.card.cls h3 { margin-top: 12px; }
.card.cls p { padding-bottom: 14px; }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.shots img { width: 100%; border: 1px solid var(--edge); border-radius: 4px; display: block; }

/* skill trees */
.trees { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin: 18px 0 30px; }
.tree { background: var(--panel); border: 1px solid var(--edge); border-radius: 6px; padding: 12px; }
.tgrid { display: grid; grid-template-columns: 40px repeat(4, 1fr); gap: 6px; align-items: center; }
.rl { color: var(--dim); font-size: 12px; text-align: right; }
.sk { text-align: center; cursor: pointer; }
.sk img { width: 54px; height: 54px; border: 1px solid var(--edge); border-radius: 4px; display: block; margin: 0 auto; }
.sk:hover img { border-color: var(--gold); }
.sk span { display: block; font-size: 11px; color: var(--dim); line-height: 1.2; margin-top: 2px; }
.sk.empty { min-height: 54px; }
.list { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.card.skill { display: flex; gap: 12px; font-size: 14px; }
.card.skill > img { width: 48px; height: 48px; border-radius: 4px; flex: none; }
.at { margin-top: 8px; color: var(--dim); }

/* items */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 18px; }
.filters input { flex: 1 1 240px; background: var(--panel); border: 1px solid var(--edge); color: var(--text);
  padding: 9px 12px; border-radius: 4px; font: inherit; }
.chip { background: var(--panel); border: 1px solid var(--edge); color: var(--text); padding: 7px 12px; border-radius: 16px;
  cursor: pointer; font: inherit; font-size: 14px; }
.chip.on { border-color: var(--gold); color: var(--gold); }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-bottom: 20px; }
.card.item { display: flex; gap: 12px; font-size: 14px; }
.card.item > img { width: 56px; height: auto; max-height: 112px; object-fit: contain; flex: none; image-rendering: auto; }
.tt { line-height: 1.45; }
.tt .c { text-align: left; }
.bonus { list-style: none; padding: 0; color: var(--text); }
.bonus .h { color: var(--gold); font-weight: 600; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; color: var(--gold); border-bottom: 1px solid var(--edge); padding: 8px; }
.tbl td { border-bottom: 1px solid #241b15; padding: 8px; vertical-align: top; }
.tbl .ins { color: #5fe0d6; font-weight: 600; white-space: nowrap; }
.rune { display: inline-flex; align-items: center; gap: 4px; margin-right: 8px; white-space: nowrap; }
.rune img { width: 22px; height: 22px; }
.card.note { margin-bottom: 12px; }
.card.note h3 span { color: var(--dim); font: 13px var(--sans); margin-left: 8px; }
.card.note ul { margin: 6px 0 0; padding-left: 20px; }

.tip { position: fixed; z-index: 50; max-width: 380px; background: #0b0807f2; border: 1px solid var(--gold); border-radius: 4px;
  padding: 10px 12px; font-size: 14px; line-height: 1.45; pointer-events: none; display: none; box-shadow: 0 6px 24px #000; }

footer { border-top: 1px solid var(--edge); padding: 22px; text-align: center; color: var(--dim); font-size: 14px; }
footer .langs a { margin: 0 8px; color: var(--dim); }
footer .langs a.on { color: var(--gold); }

@media (max-width: 720px) {
  .bar { gap: 10px; padding: 8px 12px; flex-wrap: wrap; }
  .bar nav { order: 3; width: 100%; gap: 14px; }
  h1 { font-size: 27px; } h2 { font-size: 22px; }
  .hero { min-height: 380px; }
  .tgrid { grid-template-columns: 30px repeat(4, 1fr); }
  .sk img { width: 44px; height: 44px; }
}

/* class ideas of the players (classes.js) */
.designs-page .steam { display: inline-block; margin: 6px 0 10px; }
.grid.designs { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.card.design { display: flex; flex-direction: column; gap: 8px; }
.dhead { display: flex; align-items: center; gap: 12px; }
.dhead > div:not(.votes) { flex: 1; min-width: 0; }
.dhead img { width: 48px; height: 48px; border-radius: 4px; border: 1px solid var(--edge); flex: none; }
.dhead h3, .dhead h1 { margin: 0; overflow-wrap: anywhere; }
.dhead.big { margin: 14px 0 6px; }
.by { font-size: 13px; color: var(--dim); }
.card p.trees { font-size: 13px; color: #8f8778; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.votes { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: none; }
.vote { background: var(--panel2); border: 1px solid var(--edge); color: var(--dim); width: 34px; height: 26px;
  border-radius: 4px; cursor: pointer; font-size: 13px; line-height: 1; }
.vote:hover { border-color: var(--gold); color: var(--gold); }
.vote.up.on { color: #7fd36b; border-color: #7fd36b; }
.vote.down.on { color: #e0675a; border-color: #e0675a; }
.pts { font: 600 18px var(--serif); color: var(--gold); min-width: 34px; text-align: center; }
.sk.edit { border: 1px dashed var(--edge); border-radius: 4px; min-height: 54px; display: flex; align-items: center; justify-content: center; }
.sk.edit:hover { border-color: var(--gold); }
.sk .plus { font-size: 22px; color: var(--edge); margin: 0; }
.sk.edit:hover .plus { color: var(--gold); }
.tname { width: 100%; margin-bottom: 10px; }
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin: 14px 0; }
.form .fld:last-child { grid-column: 1 / -1; }
.fld { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--dim); }
.designs-page input, .designs-page textarea, .designs-page select { background: var(--panel); border: 1px solid var(--edge);
  color: var(--text); padding: 8px 10px; border-radius: 4px; font: inherit; }
.designs-page textarea { min-height: 90px; resize: vertical; }
.designs-page input:focus, .designs-page textarea:focus { outline: none; border-color: var(--gold); }
.modal { position: fixed; inset: 0; z-index: 40; background: #000a; display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 12px; overflow-y: auto; }
.mbox { width: min(560px, 100%); display: flex; flex-direction: column; gap: 10px; }
.chosen img { width: 48px; height: 48px; border-radius: 4px; border: 1px solid var(--edge); }
.icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 4px; max-height: 210px; overflow-y: auto; }
.ic { background: none; border: 1px solid transparent; padding: 1px; border-radius: 4px; cursor: pointer; }
.ic img { width: 40px; height: 40px; display: block; }
.ic:hover, .ic.on { border-color: var(--gold); }
.btns { display: flex; gap: 10px; align-items: center; }
.btns .steam { cursor: pointer; font: inherit; font-weight: 700; }
.designs-page button.steam.big { cursor: pointer; font-family: inherit; }
.tip .tn { color: var(--gold); display: block; }
.tip .tk { color: var(--dim); font-size: 12px; }
.tip .td { margin-top: 6px; white-space: pre-wrap; }
.tip .tr { margin-top: 6px; color: #e0675a; }
.card.skill .tn { color: var(--gold); }
.card.skill .tk { color: var(--dim); font-size: 12px; }
.card.skill .td { margin-top: 4px; white-space: pre-wrap; overflow-wrap: anywhere; }
.noicon { width: 48px; height: 48px; border: 1px solid var(--edge); border-radius: 4px; background: var(--panel2); flex: none; margin: 0 auto; }
.sk .noicon { width: 54px; height: 54px; }
.ic .noicon { width: 40px; height: 40px; }
@media (max-width: 720px) { .sk .noicon { width: 44px; height: 44px; } }
.card.skill .noicon, .dhead .noicon { margin: 0; }
