/* Frenzy Paws wiki: same palette, fonts and grain as the main site (website/index.html). */
:root {
  --ink: #0d0809;
  --stone: #1a1214;
  --stone-2: #241a1c;
  --bone: #f0e8da;
  --bone-dim: rgba(240, 232, 218, 0.66);
  --ember: #ff7a2e;
  --lava: #e8331f;
  --gold: #ffc64c;
  --line: rgba(255, 198, 76, 0.22);
  --party: #ff7a2e;
  --duos: #ff5fa2;
  --teams: #5fb8ff;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
body {
  background: var(--ink);
  color: var(--bone);
  font: 500 18px/1.55 "Barlow Semi Condensed", sans-serif;
  overflow-x: hidden;
}
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold); }
h1, h2, h3 { font-family: "Bebas Neue", sans-serif; font-weight: 400; letter-spacing: 0.04em; line-height: 0.95; }
h1 em, h2 em { font-style: normal; color: var(--gold); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
kbd {
  display: inline-block; min-width: 1.7em; padding: 0.05em 0.45em 0; margin: 0 0.08em;
  font: 600 0.82em/1.45 "Barlow Semi Condensed", sans-serif; letter-spacing: 0.04em; text-align: center; color: var(--bone);
  background: var(--stone-2); border: 1px solid rgba(255, 198, 76, 0.35); border-bottom-width: 3px; border-radius: 5px;
}

/* ---------- top bar + section tabs ---------- */
.top { position: sticky; top: 0; z-index: 40; background: rgba(13, 8, 9, 0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px clamp(16px, 4vw, 48px) 6px; max-width: 1296px; margin: 0 auto; }
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--bone); font-family: "Bebas Neue"; font-size: 26px; letter-spacing: 0.06em; white-space: nowrap; }
.mark img { width: 34px; height: 34px; border-radius: 8px; }
.mark__tag { font-size: 15px; letter-spacing: 0.14em; color: var(--ink); background: var(--gold); border-radius: 4px; padding: 3px 7px 0; margin-left: 2px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 0 clamp(10px, 4vw, 42px); max-width: 1296px; margin: 0 auto; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  flex: none; padding: 8px 12px 9px; text-decoration: none; color: var(--bone-dim);
  font-weight: 600; font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.tabs a:hover { color: var(--gold); }
.tabs a[aria-current] { color: var(--bone); border-color: var(--lava); }

.btn {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  font-family: "Bebas Neue"; letter-spacing: 0.06em; text-decoration: none; color: #fff;
  font-size: 20px; padding: 8px 16px 5px; border-radius: 6px;
  background: linear-gradient(180deg, #ef3b24, #b51d12); border: 2px solid #ff8a5c; box-shadow: 0 4px 0 #6d0f08;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #6d0f08; }
.btn svg { width: 19px; height: 19px; margin-top: -3px; }

/* ---------- page header ---------- */
.head { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 96px) 0 clamp(34px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.head__art { position: absolute; inset: 0; background: url(/img/arena.jpg) center 40% / cover no-repeat; opacity: 0.32; }
.page-home .head__art { background-image: url(/img/keyart.jpg); opacity: 0.4; }
.head::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--ink) 10%, rgba(13, 8, 9, 0.55) 70%, rgba(13, 8, 9, 0.3)), linear-gradient(transparent 50%, var(--ink)); }
.head .wrap { position: relative; z-index: 2; }
.kicker { font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; font-size: 14px; color: var(--lava); margin-bottom: 10px; }
h1 { font-size: clamp(56px, 10vw, 120px); }
.lead { max-width: 640px; font-size: clamp(18px, 2vw, 21px); color: var(--bone-dim); margin-top: 14px; }

/* ---------- sections ---------- */
main { padding-bottom: 60px; }
.sec { padding-top: clamp(40px, 6vw, 72px); }
h2 { font-size: clamp(42px, 6vw, 68px); margin-bottom: 18px; }
.sub { color: var(--bone-dim); margin: -6px 0 22px; max-width: 720px; }
.prose { max-width: 760px; color: var(--bone-dim); }
.prose p + p, .prose p + ul { margin-top: 14px; }
.prose b { color: var(--bone); }
.facts { list-style: none; display: grid; gap: 8px; }
.facts li { padding-left: 22px; position: relative; }
.facts li::before { content: ""; position: absolute; left: 4px; top: 0.62em; width: 8px; height: 8px; background: var(--lava); transform: rotate(45deg); }

/* home: quick-link tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 2px; background: var(--line); border: 1px solid var(--line); }
.tile { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 4px; padding: 28px 24px 26px; background: var(--stone); text-decoration: none; color: var(--bone); transition: background 0.25s; }
.tile:hover { background: var(--stone-2); }
.tile b { font-family: "Bebas Neue"; font-weight: 400; font-size: 36px; letter-spacing: 0.04em; color: var(--gold); line-height: 1; }
.tile small { color: var(--bone-dim); font-size: 16px; }
.tile__n { position: absolute; right: 14px; top: 6px; font-family: "Bebas Neue"; font-size: 84px; line-height: 1; color: rgba(255, 198, 76, 0.08); transition: color 0.25s, transform 0.25s; }
.tile:hover .tile__n { color: rgba(232, 51, 31, 0.22); transform: rotate(-6deg); }

/* home: modes */
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.mode { background: var(--stone); border: 1px solid var(--line); border-top: 3px solid var(--lava); border-radius: 6px; padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 10px; }
.mode h3 { font-size: 34px; color: var(--gold); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mode p { color: var(--bone-dim); flex: 1; }
.mode a { font-weight: 700; letter-spacing: 0.06em; text-decoration: none; }
.mode a:hover { text-decoration: underline; }
.mode--off { border-top-color: rgba(240, 232, 218, 0.3); }
.mode--off h3 { color: var(--bone); }
.pill { font: 700 12px/1 "Barlow Semi Condensed"; letter-spacing: 0.14em; text-transform: uppercase; padding: 5px 8px 4px; border-radius: 20px; border: 1px solid var(--line); color: var(--bone-dim); }

/* home: controls */
.ctrls { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; }
.ctrl { display: flex; align-items: center; gap: 14px; background: var(--stone); border: 1px solid var(--line); border-radius: 6px; padding: 14px 18px; }
.ctrl__keys { flex: none; min-width: 120px; white-space: nowrap; }
.ctrl__keys kbd { font-size: 16px; }
.ctrl__or { color: var(--bone-dim); }
.ctrl__what b { display: block; font-weight: 700; }
.ctrl__what small { color: var(--bone-dim); font-size: 15px; }

.twists { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.twists li { background: var(--stone); border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; color: var(--bone-dim); font-size: 17px; }
.twists b { display: block; font-family: "Bebas Neue"; font-weight: 400; font-size: 26px; letter-spacing: 0.05em; color: var(--gold); line-height: 1.1; }

/* ---------- minigames ---------- */
.filter { position: sticky; top: 96px; z-index: 30; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding: 14px 0; margin-top: 8px; background: linear-gradient(var(--ink) 75%, rgba(13, 8, 9, 0)); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font: 700 15px/1 "Barlow Semi Condensed"; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer;
  color: var(--bone-dim); background: var(--stone); border: 1px solid var(--line); border-radius: 30px; padding: 9px 14px 8px;
}
.chip span { color: var(--gold); margin-left: 4px; }
.chip:hover { color: var(--bone); }
.chip[aria-pressed="true"] { color: #fff; background: var(--lava); border-color: #ff8a5c; }
.chip[aria-pressed="true"] span { color: #fff; }
.search { flex: 1 1 240px; max-width: 360px; }
.search input {
  width: 100%; font: 500 17px "Barlow Semi Condensed"; color: var(--bone); background: var(--stone); border: 1px solid var(--line); border-radius: 30px; padding: 9px 16px;
}
.search input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.none { padding: 40px 0; color: var(--bone-dim); text-align: center; }
.mode-sec { padding-top: 34px; }
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.game { background: var(--stone); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; display: flex; flex-direction: column; transition: border-color 0.25s, transform 0.25s; }
.game:hover { border-color: rgba(255, 198, 76, 0.5); }
.game.flash { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold), 0 0 40px rgba(255, 198, 76, 0.3); }
.game img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; background: var(--stone-2); }
.game__body { padding: 14px 18px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.badge { align-self: flex-start; font: 700 12px/1 "Barlow Semi Condensed"; letter-spacing: 0.16em; text-transform: uppercase; padding: 5px 8px 4px; border-radius: 4px; color: var(--ink); }
.badge--party { background: var(--party); }
.badge--duos { background: var(--duos); }
.badge--teams { background: var(--teams); }
.game h3 { font-size: 32px; }
.game h3 a { color: var(--bone); text-decoration: none; }
.game h3 a:hover { color: var(--gold); }
.game__rules { color: var(--bone); font-size: 17px; line-height: 1.5; }
.sep { color: var(--lava); margin: 0 0.4em; font-weight: 700; }
.game__win { color: var(--bone-dim); font-size: 16px; }
.game__win b { color: var(--gold); text-transform: uppercase; letter-spacing: 0.12em; font-size: 13px; margin-right: 8px; }
.game details { margin-top: auto; border-top: 1px solid var(--line); padding-top: 8px; }
.game summary { cursor: pointer; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 14px; color: var(--gold); list-style: none; padding: 4px 0; }
.game summary::-webkit-details-marker { display: none; }
.game summary::before { content: "+"; display: inline-block; width: 1.2em; font-size: 17px; transition: transform 0.2s; }
.game details[open] summary::before { transform: rotate(45deg); }
.game details p { color: var(--bone-dim); font-size: 16px; padding-top: 4px; }
[hidden] { display: none !important; }

/* ---------- perks ---------- */
.howto { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.howto > div { background: var(--stone); border: 1px solid var(--line); border-radius: 6px; padding: 20px 20px 18px; }
.howto b { display: block; font-family: "Bebas Neue"; font-weight: 400; font-size: 30px; letter-spacing: 0.04em; color: var(--gold); line-height: 1.1; }
.howto p { color: var(--bone-dim); }
.howto__n { float: right; font-family: "Bebas Neue"; font-size: 48px; line-height: 0.8; color: rgba(232, 51, 31, 0.5); }
.perks { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.perk { display: flex; gap: 16px; align-items: flex-start; background: var(--stone); border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.perk img { width: 84px; height: 84px; flex: none; border-radius: 12px; background: radial-gradient(circle, rgba(255, 198, 76, 0.18), transparent 70%); }
.perk h3 { font-size: 32px; color: var(--bone); }
.perk__tag { color: var(--gold); font-weight: 700; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; margin: 2px 0 6px; }
.perk p:last-child { color: var(--bone-dim); font-size: 17px; }

/* ---------- ghosts ---------- */
.powers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.power { --c: #bf4dff; background: radial-gradient(circle at 20% 0%, color-mix(in srgb, var(--c) 22%, transparent), transparent 60%), var(--stone); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); border-radius: 8px; padding: 22px; }
.power--slime { --c: #59ff26; }
.power--shock { --c: #73d9ff; }
.power kbd { font-size: 26px; min-width: 1.8em; border-color: var(--c); color: var(--c); }
.power h3 { font-size: 38px; margin: 12px 0 6px; color: var(--bone); }
.power p { color: var(--bone-dim); }

/* ---------- updates ---------- */
.upds { display: grid; gap: 0; border-left: 2px solid var(--line); margin-left: 6px; }
.upd { position: relative; display: grid; grid-template-columns: 130px 1fr; gap: 8px 24px; padding: 0 0 36px 26px; }
.upd::before { content: ""; position: absolute; left: -8px; top: 6px; width: 14px; height: 14px; background: var(--lava); transform: rotate(45deg); box-shadow: 0 0 14px rgba(232, 51, 31, 0.6); }
.upd:first-child::before { background: var(--gold); box-shadow: 0 0 18px rgba(255, 198, 76, 0.7); }
.upd time { font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; font-size: 15px; color: var(--bone-dim); padding-top: 4px; }
.upd h3 { font-size: 34px; color: var(--gold); margin-bottom: 8px; }
.upd ul { list-style: none; display: grid; gap: 6px; color: var(--bone-dim); }
.upd li { padding-left: 18px; position: relative; }
.upd li::before { content: "›"; position: absolute; left: 2px; color: var(--lava); font-weight: 700; }
@media (max-width: 620px) {
  .upd { grid-template-columns: 1fr; gap: 2px; }
  html { scroll-padding-top: 150px; }
  .filter { position: static; padding-bottom: 0; }
  .chip { padding: 8px 11px 7px; font-size: 14px; }
  .search { max-width: none; }
  .tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 0 6px; }
  .tabs a { padding: 7px 4px 7px; font-size: 13.5px; letter-spacing: 0.08em; text-align: center; }
  .filter { top: 0; }
  .games, .perks { grid-template-columns: 1fr; }
  .ctrls { grid-template-columns: 1fr; }
  .mark { font-size: 22px; }
}

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 34px 0; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 18px 28px; flex-wrap: wrap; }
.foot__links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot__links a { color: var(--bone-dim); text-decoration: none; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; font-size: 14px; }
.foot__links a:hover { color: var(--gold); }
footer small { color: var(--bone-dim); font-size: 14px; letter-spacing: 0.04em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- critters ---------- */
.crits { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.crit { display: flex; background: var(--stone); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.crit__pic { position: relative; flex: 0 0 42%; min-height: 250px; overflow: hidden;
  background: radial-gradient(circle at 50% 45%, rgba(255, 122, 46, 0.4), transparent 65%), linear-gradient(180deg, var(--stone-2), var(--ink)); }
.crit:nth-child(2) .crit__pic { background-color: rgba(90, 110, 200, 0.2); }
.crit__pic img { position: absolute; left: 50%; bottom: 6%; width: 118%; max-width: none; transform: translateX(-50%); filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.6)); transition: transform 0.35s cubic-bezier(0.2, 1.4, 0.4, 1); }
.crit:hover .crit__pic img { transform: translateX(-50%) translateY(-6px) scale(1.04); }
.crit__body { padding: 18px 18px 16px; flex: 1; min-width: 0; }
.crit h3 { font-size: 44px; line-height: 0.9; }
.crit__sp { color: var(--gold); font-weight: 700; font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 12px; }
.skins { list-style: none; display: grid; gap: 8px; }
.skins li { display: flex; align-items: center; gap: 10px; }
.skins i { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--c); border: 2px solid rgba(240, 232, 218, 0.35); box-shadow: inset 0 -4px 6px rgba(0, 0, 0, 0.35); }
.skins b { display: block; font-weight: 700; font-size: 16px; line-height: 1.2; }
.skins small { color: var(--bone-dim); font-size: 14px; }
.skins small b { display: inline; font-size: inherit; color: var(--bone); }
.skins--prize { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.skins--prize li { background: var(--stone); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
.skins--prize i { width: 36px; height: 36px; }
@media (max-width: 620px) {
  .crits { grid-template-columns: 1fr; }
  .crit__pic { flex-basis: 40%; min-height: 230px; }
}
