/* forum.css - the Critters vs. Predators skin for the site forum at /cvp/forum/.
 *
 * The forum itself is the portal's (LerkArcade website/portal/php); portal.css lays it
 * out and this file repaints it in the game's colours, loaded after portal.css on every
 * page whose URL starts /cvp/forum/. Everything here is scoped to body.cvp.
 */
body.cvp {
  --bg:      #fff6e6;
  --bg-2:    #fdebc8;
  --panel:   #ffffff;
  --panel-2: #fffaf0;
  --ink:     #1b1420;
  --muted:   #6b5a4e;
  --line:    rgba(27, 20, 32, 0.14);

  --magenta: #d8372b;
  --cyan:    #d06a12;   /* the link colour everywhere in portal.css */
  --yellow:  #e3a21a;
  --violet:  #7a4fc2;
  --green:   #4f9d3a;

  --sans:  "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pixel: "Lilita One", "Nunito", sans-serif;
  --outline: #1b1420;

  background: linear-gradient(#c9ebf8 0, #fff6e6 320px) no-repeat, #fff6e6;
  color: var(--ink);
  font-weight: 500;
}
html:has(body.cvp) { background: #fff6e6; }

/* ---- bar ---- */
body.cvp .reader-bar {
  background: var(--outline);
  border-bottom: 0;
  padding: 8px 24px;
  font-size: 15px;
}
body.cvp .reader-bar .brand img { height: 40px; width: auto; display: block; }
body.cvp .bar-links a { color: #fff6e6; opacity: .85; font-weight: 700; }
body.cvp .bar-links a:hover { color: #f4c96b; opacity: 1; }
body.cvp .bar-links .cta {
  color: #fff; opacity: 1;
  background: #f08a24; border: 2px solid #000; border-radius: 999px; padding: 7px 15px;
  box-shadow: 0 3px 0 #000;
}
body.cvp form.inline button { color: #fff6e6; border-color: rgba(255, 246, 230, .35); font-family: var(--sans); }
body.cvp form.inline button:hover { color: #f4c96b; border-color: #f4c96b; }

/* ---- type ---- */
body.cvp .forum .kicker {
  font-family: var(--sans); font-weight: 800; font-size: 12px; letter-spacing: 2.5px;
  color: #f08a24;
}
body.cvp .forum h1, body.cvp .pad h1 {
  font-family: var(--pixel); font-weight: 400;
  font-size: clamp(30px, 5vw, 46px); line-height: 1.1; letter-spacing: .5px;
  color: var(--ink); text-shadow: none;
}
body.cvp .forum h2 {
  font-family: var(--pixel); font-weight: 400; font-size: 26px; letter-spacing: .5px; color: var(--ink);
}
body.cvp .crumbs { font-family: var(--sans); font-weight: 800; font-size: 13px; letter-spacing: .5px; }
body.cvp .sub { font-size: 17px; }
body.cvp .ok  { background: #e6f5dc; border: 2px solid #4f9d3a; color: #2f6b24; }
body.cvp .bad { background: #fde3df; border: 2px solid #d8372b; color: #8c1f16; }

/* ---- buttons: the game page's chunky pill ---- */
body.cvp .btn-primary, body.cvp .composer button, body.cvp .card button, body.cvp .card .buy {
  display: inline-block;
  font: 400 18px/1 var(--pixel); letter-spacing: .5px; text-decoration: none;
  color: #fff; text-shadow: 0 2px 0 rgba(27, 20, 32, .35);
  background: #f08a24;
  border: 3px solid var(--outline); border-radius: 999px;
  padding: 12px 22px;
  box-shadow: 0 4px 0 var(--outline);
  transition: transform .08s, box-shadow .08s;
}
body.cvp .btn-primary:hover, body.cvp .composer button:hover, body.cvp .card button:hover, body.cvp .card .buy:hover {
  background: #f08a24; transform: translateY(-2px); box-shadow: 0 6px 0 var(--outline);
}
body.cvp .card button:disabled, body.cvp .composer button:disabled {
  background: #cbbfb3; color: #6b5a4e; box-shadow: 0 4px 0 #8a7d72; border-color: #8a7d72;
}

/* ---- cards, tables, posts: white panels with the sprites' ink outline ---- */
body.cvp .card, body.cvp .ftable, body.cvp .post {
  background: #fff;
  border: 3px solid var(--outline);
  border-radius: 16px;
  box-shadow: 0 6px 0 var(--outline);
}
body.cvp .ftable-head {
  font-family: var(--sans); font-weight: 800; font-size: 12px; letter-spacing: 1.5px;
  color: var(--ink); background: #f4c96b; border-bottom: 3px solid var(--outline);
}
body.cvp .frow { border-bottom: 2px solid var(--line); }
body.cvp .frow:hover { background: #fff6e6; }
body.cvp a.frow::before { box-shadow: none; width: 6px; }
body.cvp .frow.pinned { background: #fff3d1; }
body.cvp .frow-title a:hover, body.cvp .frow-t > a:hover { color: #d06a12; }
body.cvp .frow-n { font-family: var(--pixel); font-size: 20px; color: var(--ink); }
body.cvp .board-glyph {
  font-family: var(--pixel); font-size: 20px; color: #fff;
  background: var(--accent, #f08a24);
  border: 3px solid var(--outline); box-shadow: none; text-shadow: 0 2px 0 rgba(27, 20, 32, .35);
}
body.cvp .fstats > div { background: #fff; border: 3px solid var(--outline); box-shadow: 0 4px 0 var(--outline); }
body.cvp .fstats b { font-family: var(--pixel); font-weight: 400; font-size: 24px; color: var(--ink); text-shadow: none; }
body.cvp .fstats span { font-weight: 700; }

body.cvp .post::before { background: #f08a24; width: 6px; }
body.cvp .post-body code, body.cvp .post-body pre { background: #fff6e6; }
body.cvp .post-body .quote { border-left-color: #f4c96b; }
body.cvp .who-link { border-bottom-color: rgba(208, 106, 18, .45); }
body.cvp .ava { color: var(--ink); border: 2px solid var(--outline); box-shadow: none; }
body.cvp .tag { background: #fff6e6; border: 2px solid var(--outline); color: var(--ink); align-self: flex-start; }

/* ---- forms ---- */
body.cvp .card input[type=email], body.cvp .card input[type=text],
body.cvp .composer textarea, body.cvp .composer input[type=text], body.cvp .reportbox input[type=text] {
  background: #fffaf0; color: var(--ink); border: 2px solid var(--line); font-family: var(--sans);
}
body.cvp .composer textarea { font-family: var(--sans); font-size: 15px; }
body.cvp .card input:focus, body.cvp .composer textarea:focus, body.cvp .composer input:focus {
  outline: 3px solid #f4c96b; outline-offset: 0; border-color: var(--outline);
}
body.cvp .card label { color: var(--ink); font-weight: 700; }

body.cvp .modbar { border-color: #e3a21a; }
body.cvp .modbar button { color: #8a5a00; border-color: #e3a21a; }

body.cvp .portal-foot { color: var(--muted); }
body.cvp .portal-foot a { color: var(--ink); font-weight: 700; }

@media (max-width: 760px) {
  body.cvp .reader-bar { padding: 8px 14px; gap: 10px; }
  body.cvp .reader-bar .brand img { height: 32px; }
  body.cvp .bar-links { gap: 12px; font-size: 14px; }
  body.cvp .bar-links a[href="/cvp/"] { display: none; }
}
