/* KingCamp: a camp in the forest at night, a castle on the hill, warm firelight. */
:root {
  --night-1: #0b1420;
  --night-2: #12233a;
  --night-3: #1d3554;
  --forest-1: #0c1a14;
  --forest-2: #13281e;
  --forest-3: #1d3a2a;
  --moss: #6f9a5b;
  --ember: #f2a23a;
  --ember-2: #ffcf7a;
  --flame: #ff7a2f;
  --parchment: #f5ead2;
  --parchment-2: #e7d6b2;
  --ink: #2b2116;
  --text: #f3ead8;
  --muted: #b8b09d;
  --line: rgba(255, 231, 186, 0.14);
  --card: rgba(18, 32, 28, 0.72);
  --radius: 18px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --serif: "Cinzel", Georgia, serif;
  --sans: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--forest-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ember-2); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0; letter-spacing: 0.02em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* ---- Header --------------------------------------------------------------------------------- */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.top.solid { background: rgba(9, 17, 14, 0.82); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.top .wrap { display: flex; align-items: center; gap: 18px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { width: 52px; height: auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,.5)); }
.brand span { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; letter-spacing: .06em; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a.link { color: var(--text); text-decoration: none; font-weight: 600; opacity: .85; }
.nav a.link:hover { opacity: 1; color: var(--ember-2); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
  font: 700 0.98rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-fire { color: #2a1605; background: linear-gradient(180deg, var(--ember-2), var(--ember) 60%, #d9822a); box-shadow: 0 6px 20px rgba(242,162,58,.35), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-fire:hover { box-shadow: 0 8px 28px rgba(242,162,58,.55), inset 0 1px 0 rgba(255,255,255,.5); }
.btn-ghost { color: var(--text); border-color: rgba(255,231,186,.35); background: rgba(255,255,255,.04); }
.btn-ghost:hover { border-color: var(--ember-2); color: var(--ember-2); }
.btn-discord { color: #fff; background: #5865f2; box-shadow: 0 6px 20px rgba(88,101,242,.35); }
.btn-discord:hover { background: #4752c4; }
.btn-sm { padding: 8px 14px; font-size: .9rem; }
.btn[disabled] { opacity: .55; cursor: default; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; color: var(--text); font-size: 1.6rem; cursor: pointer; }

/* ---- Hero ----------------------------------------------------------------------------------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; isolation: isolate; }
.hero-scene { position: absolute; inset: 0; z-index: -1; }
.hero-scene svg { width: 100%; height: 100%; display: block; }
.hero-copy { padding: 120px 0 180px; max-width: 640px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: rgba(242,162,58,.12); border: 1px solid rgba(242,162,58,.35); color: var(--ember-2); font-weight: 700; font-size: .85rem; letter-spacing: .04em; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); margin: 18px 0 14px; text-shadow: 0 4px 30px rgba(0,0,0,.6); }
.hero h1 em { font-style: normal; background: linear-gradient(180deg, var(--ember-2), var(--ember)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: #e9dfc9; max-width: 560px; margin: 0 0 28px; text-shadow: 0 2px 12px rgba(0,0,0,.7); }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .badges { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 34px; color: var(--muted); font-weight: 600; font-size: .95rem; }
.hero .badges b { color: var(--text); }

.star { animation: twinkle 4s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .9; } 50% { opacity: .25; } }
.firefly { animation: float 7s ease-in-out infinite; filter: drop-shadow(0 0 6px #ffe48a); }
@keyframes float { 0%, 100% { transform: translate(0, 0); opacity: .2; } 30% { opacity: 1; } 50% { transform: translate(18px, -26px); opacity: .9; } 80% { opacity: .3; } }
.flame { transform-box: fill-box; transform-origin: 50% 100%; animation: flicker 1.1s ease-in-out infinite alternate; }
.flame.f2 { animation-duration: .8s; animation-delay: -.3s; }
.flame.f3 { animation-duration: .65s; animation-delay: -.5s; }
@keyframes flicker { from { transform: scale(1, 1); } to { transform: scale(.88, 1.12) skewX(-3deg); } }
.glow { animation: glow 2.4s ease-in-out infinite alternate; }
@keyframes glow { from { opacity: .55; } to { opacity: .85; } }
.smoke { animation: smoke 6s linear infinite; }
@keyframes smoke { from { transform: translateY(0); opacity: .35; } to { transform: translateY(-80px); opacity: 0; } }

/* ---- Sections ------------------------------------------------------------------------------- */
section { position: relative; }
.section { padding: 96px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 10px 0 12px; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.08rem; }
.divider { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--ember); }
.divider::before, .divider::after { content: ""; width: 60px; height: 1px; background: linear-gradient(90deg, transparent, var(--ember)); }
.divider::after { transform: scaleX(-1); }

.games { background: linear-gradient(180deg, var(--forest-1) 0%, #0f1f19 50%, var(--forest-1) 100%); }
.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.game {
  position: relative; display: flex; flex-direction: column; gap: 16px;
  padding: 26px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(30, 52, 41, .8), rgba(14, 26, 21, .9));
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  overflow: hidden;
}
.game::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 200px at 0% 0%, var(--accent, rgba(242,162,58,.16)), transparent 70%); pointer-events: none; }
.game:hover { transform: translateY(-4px); border-color: rgba(255,207,122,.4); box-shadow: 0 24px 60px rgba(0,0,0,.55); }
.game-top { display: flex; align-items: center; gap: 16px; position: relative; }
.game-logo { width: 96px; height: 72px; flex: none; display: grid; place-items: center; }
.game-logo img { max-height: 72px; width: auto; object-fit: contain; filter: drop-shadow(0 6px 14px rgba(0,0,0,.5)); }
.game-logo .word { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: var(--ember-2); text-align: center; line-height: 1.05; }
.game h3 { font-size: 1.5rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag { font-size: .75rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.07); color: var(--parchment-2); border: 1px solid var(--line); }
.tag.hot { background: rgba(242,162,58,.16); color: var(--ember-2); border-color: rgba(242,162,58,.4); }
.game p { margin: 0; color: #ddd3bf; position: relative; }
.game ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; position: relative; }
.game li { padding-left: 24px; position: relative; color: #e6dcc6; }
.game li::before { content: "✦"; position: absolute; left: 2px; color: var(--ember); font-size: .85rem; top: 2px; }
.game-foot { margin-top: auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; position: relative; }
.online { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; font-weight: 700; }
.online i { width: 9px; height: 9px; border-radius: 50%; background: #5bd47a; box-shadow: 0 0 10px #5bd47a; }

/* How it works */
.how { background: radial-gradient(900px 400px at 50% 0%, rgba(242,162,58,.10), transparent 70%), var(--forest-1); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.step { padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); text-align: center; }
.step .icon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; font-size: 1.8rem; background: radial-gradient(circle at 50% 35%, rgba(255,207,122,.35), rgba(242,162,58,.1)); border: 1px solid rgba(242,162,58,.4); }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); }

/* Discord band */
.camp-band { padding: 80px 0; background: linear-gradient(180deg, var(--forest-1), #0a1310); }
.band { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; padding: 40px; border-radius: 26px; background: linear-gradient(135deg, rgba(88,101,242,.22), rgba(242,162,58,.12)); border: 1px solid rgba(160,170,255,.25); box-shadow: var(--shadow); }
.band h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 12px; }
.band p { color: #ddd3bf; margin: 0 0 22px; }
.band-art { display: grid; place-items: center; }
.band-art img { width: min(280px, 100%); filter: drop-shadow(0 20px 40px rgba(0,0,0,.55)); }

footer { padding: 40px 0 56px; color: var(--muted); font-size: .92rem; border-top: 1px solid var(--line); background: #08100d; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ember-2); }
footer nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---- Dialogs ---------------------------------------------------------------------------------- */
dialog {
  width: min(440px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 22px;
  color: var(--ink); background: var(--parchment);
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
dialog::backdrop { background: rgba(5, 10, 8, .7); backdrop-filter: blur(4px); }
.dlg { padding: 30px 28px 26px; position: relative; }
.dlg h2 { font-size: 1.6rem; color: #3a2a14; margin-bottom: 6px; }
.dlg .sub { margin: 0 0 18px; color: #6b5a3f; }
.dlg .x { position: absolute; top: 14px; right: 14px; border: 0; background: none; font-size: 1.5rem; cursor: pointer; color: #7a6a4e; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 800; font-size: .88rem; color: #4a3920; }
.field input, .field select {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid #cdb88f; background: #fffaf0;
  font: 600 1rem var(--sans); color: var(--ink);
}
.field input:focus, .field select:focus { outline: 2px solid var(--ember); outline-offset: 1px; border-color: var(--ember); }
.field small { color: #7a6a4e; }
.dlg .btn { width: 100%; margin-top: 6px; }
.dlg .swap { text-align: center; margin: 14px 0 0; color: #6b5a3f; }
.dlg .swap a { color: #9a5b12; font-weight: 800; cursor: pointer; }
.msg { min-height: 1.2em; margin: 4px 0 8px; font-weight: 700; font-size: .92rem; }
.msg.err { color: #b0321e; }
.msg.ok { color: #2f7a3a; }

/* ---- Account page ----------------------------------------------------------------------------- */
.page { padding: 110px 0 80px; min-height: 100vh; background: radial-gradient(1000px 500px at 50% -10%, rgba(242,162,58,.12), transparent 70%), var(--forest-1); }
.page-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; justify-content: space-between; margin-bottom: 30px; }
.page-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-head p { margin: 6px 0 0; color: var(--muted); }
.panel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.panel { padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.panel h2 { font-size: 1.35rem; }
.panel .row { display: flex; align-items: center; gap: 14px; }
.panel .row img { width: 64px; height: 48px; object-fit: contain; }
.status { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 4px 10px; border-radius: 999px; }
.status.linked { background: rgba(91,212,122,.15); color: #8fe6a6; border: 1px solid rgba(91,212,122,.4); }
.status.wait { background: rgba(242,162,58,.15); color: var(--ember-2); border: 1px solid rgba(242,162,58,.4); }
.status.off { background: rgba(255,255,255,.06); color: var(--muted); border: 1px solid var(--line); }
.chars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.chars li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 12px; background: rgba(0,0,0,.25); border: 1px solid var(--line); }
.chars li span { color: var(--muted); font-size: .92rem; }
.empty { color: var(--muted); margin: 0; }
.inline-form { display: grid; gap: 10px; padding: 16px; border-radius: 14px; background: rgba(0,0,0,.22); border: 1px solid var(--line); }
.inline-form .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.inline-form input, .inline-form select { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255,231,186,.25); background: rgba(255,255,255,.06); color: var(--text); font: 600 .95rem var(--sans); }
.inline-form input:focus, .inline-form select:focus { outline: 2px solid var(--ember); }
.inline-form select option { color: var(--ink); }
.inline-form .msg.err { color: #ff9a85; }
.inline-form .msg.ok { color: #8fe6a6; }
.muted { color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.loading { text-align: center; padding: 80px 0; color: var(--muted); }

/* ---- Responsive ------------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .game-grid, .panel-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .band { grid-template-columns: 1fr; text-align: center; padding: 30px 22px; }
  .band .actions { justify-content: center; }
}
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 6px; padding: 14px 16px 18px; background: rgba(9,17,14,.96); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a.link { padding: 10px 4px; }
  .hero-copy { padding: 110px 0 160px; }
  .game { padding: 20px; }
  .game-top { align-items: flex-start; }
  .inline-form .grid2 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.online[hidden] { display: none; }

/* Account panel: one section per game, its accounts inside. */
.game-list { display: grid; gap: 22px; }
.game-panel .row img { width: 64px; height: 48px; object-fit: contain; }
.game-panel { gap: 12px; padding: 20px 22px; }
.game-head .game-title { flex: 1; min-width: 0; display: grid; gap: 2px; }
.game-head .game-title .muted { font-size: .9rem; }
.game-name-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.page-live { margin-top: 0; }
.game-head-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
/* One account per line: login and summary on the left, buttons on the right; characters and management fold out. */
.accounts { display: grid; gap: 8px; }
.account { display: grid; gap: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(0,0,0,.22); border: 1px solid var(--line); }
.acc-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.acc-id { flex: 1; min-width: 180px; display: grid; gap: 2px; }
.acc-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.account-login { font-family: var(--sans); font-weight: 800; font-size: 1.05rem; color: var(--ember-2); word-break: break-all; }
.acc-sub { color: var(--muted); font-size: .86rem; }
.acc-chips { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.chip.ok { background: rgba(91,212,122,.12); color: #8fe6a6; border-color: rgba(91,212,122,.35); }
.chip.warn { background: rgba(242,162,58,.12); color: var(--ember-2); border-color: rgba(242,162,58,.35); }
.acc-btns { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.acc-btns .btn { white-space: nowrap; }
.acc-btns .caret { display: inline-flex; margin-left: 7px; vertical-align: middle; transition: transform .15s; }
.acc-btns .btn.on { border-color: var(--ember-2); color: var(--ember-2); }
.acc-btns .btn.on .caret { transform: rotate(180deg); }
.acc-chars { display: grid; border-radius: 10px; border: 1px solid var(--line); overflow: hidden; }
.char-row { display: grid; grid-template-columns: minmax(0, 1.4fr) 70px minmax(0, 1.6fr); gap: 12px; align-items: center; padding: 7px 12px; font-size: .92rem; }
.char-row + .char-row { border-top: 1px solid var(--line); }
.char-row:nth-child(odd) { background: rgba(255,255,255,.025); }
.char-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.char-lv { color: var(--ember-2); font-weight: 700; font-variant-numeric: tabular-nums; }
.char-job { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-manage { display: grid; gap: 8px; padding-top: 10px; border-top: 1px dashed var(--line); }
.acc-area:empty { display: none; }
.account > .msg:empty { display: none; }
.btn.danger:hover { border-color: #e06060; color: #ff9b9b; }
.add-area:empty { display: none; }
.add-choice { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--line); }
.add-choice .muted { font-size: .9rem; margin-right: 4px; }
.btn-x { margin-left: auto; background: none; border: 0; color: var(--muted); font-size: 1rem; cursor: pointer; padding: 4px 6px; }
.btn-x:hover { color: var(--text, #fff); }
@media (max-width: 640px) {
  .game-head { flex-wrap: wrap; }
  .game-head-btns { width: 100%; justify-content: flex-start; }
  .acc-btns { width: 100%; justify-content: stretch; }
  .acc-btns .btn { flex: 1; }
  .char-row { grid-template-columns: minmax(0, 1fr) 56px; }
  .char-row { row-gap: 0; }
  .char-job { grid-column: 1 / -1; font-size: .85rem; }
}
.game-panel .actions .btn-ghost { font-size: .88rem; }

/* Live numbers */
.live-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; text-decoration: none;
  background: rgba(91,212,122,.12); border: 1px solid rgba(91,212,122,.35); color: #bff0cc; font-weight: 800; font-size: .85rem; }
.live-pill i, .online i { width: 9px; height: 9px; border-radius: 50%; background: #5bd47a; box-shadow: 0 0 10px #5bd47a; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.live-pill[hidden] { display: none; }
.live-stats { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.live-stat { min-width: 150px; padding: 12px 18px; border-radius: 16px; background: rgba(9,17,14,.55); border: 1px solid var(--line); backdrop-filter: blur(6px); }
.live-stat b { display: block; font-family: var(--serif); font-size: 1.9rem; line-height: 1.1; color: var(--ember-2); }
.live-stat span { color: #ddd3bf; font-size: .9rem; font-weight: 700; }
.band-count { margin: -4px 0 12px !important; color: var(--text) !important; font-weight: 700; }
.band-count b { color: #c9ceff; font-size: 1.15rem; }
/* "The next realm" card: a slim banner across the grid */
.game-next { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 20px; border-style: dashed; border-color: rgba(255,207,122,.35); }
.game-next h3 { margin-bottom: 6px; }
.next-icon { font-size: 2.6rem; width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%; background: rgba(242,162,58,.12); border: 1px solid rgba(242,162,58,.35); flex: none; }
.game-next .btn { margin-left: auto; }
@media (max-width: 760px) {
  .game-next { flex-direction: column; text-align: center; }
  .game-next .btn { margin-left: 0; }
  .live-stat { flex: 1 1 140px; min-width: 0; }
  .live-pill { display: none !important; }
}

.tag.live { background: rgba(91,212,122,.16); color: #bff0cc; border-color: rgba(91,212,122,.45); }
.tag.soon { background: rgba(140,160,255,.14); color: #cdd5ff; border-color: rgba(140,160,255,.4); }

/* Google sign-in and the login captcha */
.btn-google { width: 100%; background: #fff; color: #3c4043; border: 1px solid #dadce0; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.btn-google:hover { background: #f7f8f8; }
.or { display: flex; align-items: center; gap: 10px; margin: 14px 0 8px; color: #8a7a5e; font-size: .85rem; font-weight: 700; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: #d9c7a3; }
.captcha { margin: 6px 0 4px; min-height: 65px; }
.captcha[hidden], .google-area[hidden], .resend[hidden] { display: none; }
.resend { margin: 0 0 8px; font-size: .9rem; color: #6b5a3f; }
.resend a { color: #9a5b12; font-weight: 800; cursor: pointer; }

[hidden] { display: none !important; }
.tag.beta { background: rgba(190,120,255,.16); color: #e2c8ff; border-color: rgba(190,120,255,.45); }

.qr { width: 180px; height: 180px; padding: 8px; background: #fff; border-radius: 12px; }
.qr svg { width: 100%; height: 100%; display: block; }
.recovery { margin: 0; padding: 12px 14px; border-radius: 10px; background: rgba(0,0,0,.35); border: 1px dashed var(--line); color: var(--ember-2); font: 700 1rem/1.7 ui-monospace, Menlo, monospace; letter-spacing: .05em; }
#twofa-box { margin-top: 4px; }

.lock-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--line); font-size: .9rem; font-weight: 700; color: var(--muted); }
.lock-row.on { color: #bff0cc; border-color: rgba(91,212,122,.4); background: rgba(91,212,122,.08); }

/* Panel: "Seus jogos" first, the rest under "Outros jogos" */
.games-title { font-family: 'Cinzel', serif; font-size: 1.15rem; letter-spacing: .04em; color: var(--ember-2); margin: 10px 0 -4px; }
.games-title ~ .games-title { margin-top: 18px; }
.games-hint { margin: 0; }
/* A linked account whose password changed in the game */
.stale { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 10px; background: rgba(242,162,58,.1); border: 1px solid rgba(242,162,58,.45); font-size: .92rem; }
.stale b { color: var(--ember-2); }

/* Terms */
.terms-check { display: flex; gap: 8px; align-items: flex-start; font-size: .88rem; line-height: 1.4; color: var(--muted); }
.terms-check input { margin-top: 3px; flex: none; }
.terms-check a, .terms-gate a { color: var(--ember-2); }
.terms-gate { max-width: 640px; margin: 0 auto; }
.terms-gate ul { margin: 0; padding-left: 20px; line-height: 1.8; }
.legal-foot { padding: 26px 0 34px; }
.legal-foot .wrap { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; font-size: .88rem; }
.legal-foot a { color: var(--muted); }

/* Legal pages */
.legal { max-width: 820px; line-height: 1.7; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0 0 6px; }
.legal h2 { font-size: 1.2rem; margin: 30px 0 8px; color: var(--ember-2); }
.legal p, .legal li { color: var(--text, #efe6d2); }
.legal ul { padding-left: 22px; }
.legal a { color: var(--ember-2); }
.legal-nav { display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 760px) { .legal-nav { display: none; } }

/* Admin */
.kc-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.kc-stat { padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--line); display: flex; flex-direction: column; }
.kc-stat b { font-size: 1.4rem; color: var(--ember-2); }
.kc-stat span { font-size: .85rem; color: var(--muted); }
.kc-search { flex-direction: row; display: flex; gap: 8px; }
.kc-search input { flex: 1; }
.kc-list { overflow-x: auto; margin-top: 10px; }
.kc-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.kc-table th, .kc-table td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.kc-table tr.is-off td { opacity: .55; }
.kc-detail { margin-top: 22px; }
.kc-detail h3 { margin: 18px 0 6px; font-size: 1rem; color: var(--ember-2); }
#root > .panel + .panel { margin-top: 18px; }
