@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@1,600;1,700&display=swap');

:root {
  color-scheme: dark;
  --ink: #120b1b;
  --panel: #1b1225;
  --panel-light: #251832;
  --gold: #e8bf6a;
  --gold-light: #f7dfa4;
  --cream: #f7f1e7;
  --muted: #a89daf;
  --line: rgba(232, 191, 106, 0.2);
  --sans: "DM Sans", Arial, sans-serif;
  --serif: "Playfair Display", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(232, 191, 106, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 191, 106, 0.022) 1px, transparent 1px),
    var(--ink);
  background-size: 64px 64px;
  color: var(--cream);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
svg { display: block; }
[hidden] { display: none !important; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.page-glow {
  position: fixed;
  z-index: -1;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
}
.page-glow-one { top: -220px; right: -100px; background: rgba(106, 48, 142, 0.25); }
.page-glow-two { bottom: -280px; left: -220px; background: rgba(232, 191, 106, 0.09); }
.site-header {
  width: min(1280px, calc(100% - 64px));
  height: 110px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; }
.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
}
.brand-mark svg { width: 25px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.brand-copy { display: flex; flex-direction: column; gap: 2px; }
.brand-copy strong { font-size: 17px; letter-spacing: 0.16em; }
.brand-copy small { color: var(--muted); font-size: 8px; letter-spacing: 0.28em; }
.live-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c9bdce;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
}
.live-badge span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #83c995;
  box-shadow: 0 0 0 4px rgba(131, 201, 149, 0.1);
}
main { width: min(1280px, calc(100% - 64px)); margin: 0 auto; }
.hero {
  min-height: 690px;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.88fr);
  align-items: center;
  gap: 64px;
  padding: 64px 0 84px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 24px;
  color: var(--gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.25em;
}
.eyebrow > span { width: 30px; height: 1px; background: currentColor; }
h1 {
  margin: 0;
  font-size: clamp(66px, 7vw, 106px);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 0.9;
}
h1 em { color: var(--gold); font-family: var(--serif); font-weight: 600; }
.hero-intro { margin: 30px 0 34px; color: #bdb2c3; font-size: 16px; line-height: 1.75; }
.team-form { max-width: 610px; }
.lookup-row {
  display: flex;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: #f8f4ed;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.22);
}
.lookup-row:focus-within { outline: 2px solid var(--gold); outline-offset: 4px; }
.lookup-row input {
  min-width: 0;
  flex: 1;
  padding: 0 16px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #25192c;
  font-size: 14px;
}
.lookup-row input::placeholder { color: #776e79; }
.lookup-row button {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  background: var(--gold);
  color: #21132b;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 160ms ease, transform 160ms ease;
}
.lookup-row button:hover { background: var(--gold-light); transform: translateY(-1px); }
.lookup-row button:disabled { cursor: wait; opacity: 0.72; transform: none; }
.lookup-row button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.form-error { min-height: 18px; margin: 10px 0 0; color: #f0a4a4; font-size: 12px; }
.form-meta { display: flex; justify-content: space-between; gap: 16px; color: #8f8398; font-size: 11px; }
.text-button {
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(232, 191, 106, 0.45);
  background: none;
  color: var(--gold);
  font-size: 11px;
  text-decoration: none;
}
.text-button:hover { color: var(--gold-light); border-color: currentColor; }
.evidence-list { display: flex; align-items: center; gap: 13px; margin-top: 43px; color: #776a80; font-size: 9px; letter-spacing: 0.2em; }
.evidence-list i { width: 3px; height: 3px; border-radius: 50%; background: #665672; }
.preview-wrap { position: relative; display: grid; place-items: center; perspective: 1000px; }
.preview-orbit {
  position: absolute;
  width: 490px;
  height: 490px;
  border: 1px solid rgba(232, 191, 106, 0.11);
  border-radius: 50%;
}
.preview-orbit::before, .preview-orbit::after {
  content: "";
  position: absolute;
  inset: 38px;
  border: 1px solid rgba(232, 191, 106, 0.07);
  border-radius: 50%;
}
.preview-orbit::after { inset: 92px; }
.preview-card {
  position: relative;
  width: 360px;
  aspect-ratio: 0.7;
  display: flex;
  flex-direction: column;
  padding: 25px 28px 23px;
  overflow: hidden;
  border: 1px solid #f5d992;
  border-radius: 6px;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.25), transparent 33%),
    linear-gradient(145deg, #f0d083, #c48b3e 72%, #a66e2c);
  box-shadow: 0 38px 80px rgba(0, 0, 0, 0.42), 0 0 0 8px rgba(232, 191, 106, 0.035);
  color: #29162f;
  transform: rotate(4deg);
  animation: card-float 6s ease-in-out infinite;
}
.preview-card::before, .verdict-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(55, 28, 49, 0.22);
  border-radius: 2px;
  pointer-events: none;
}
.card-topline, .card-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
}
.preview-crown { position: relative; height: 205px; display: grid; place-items: center; }
.preview-crown svg { width: 112px; height: 92px; fill: none; stroke: currentColor; stroke-width: 1.1; }
.crown-ray { position: absolute; width: 180px; height: 1px; background: rgba(55, 28, 49, 0.2); }
.ray-one { transform: rotate(30deg); }
.ray-two { transform: rotate(90deg); }
.ray-three { transform: rotate(150deg); }
.preview-copy { text-align: center; }
.preview-copy p { margin: 0 0 10px; font-size: 8px; font-weight: 700; letter-spacing: 0.24em; }
.preview-copy strong { display: block; font-family: var(--serif); font-size: 43px; font-style: italic; line-height: 1.02; }
.preview-copy > span { display: block; margin-top: 13px; font-size: 10px; }
.card-footer { margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(55, 28, 49, 0.24); }
@keyframes card-float {
  0%, 100% { transform: rotate(4deg) translateY(0); }
  50% { transform: rotate(3deg) translateY(-10px); }
}
.result { padding: 76px 0 60px; border-top: 1px solid var(--line); scroll-margin-top: 20px; animation: reveal 500ms ease both; }
@keyframes reveal { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.result-heading { margin-bottom: 30px; }
.result-heading .eyebrow { margin-bottom: 13px; }
.result-heading h2 { margin: 0; font-family: var(--serif); font-size: clamp(32px, 4vw, 48px); font-style: italic; font-weight: 600; }
.result-heading > p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.verdict-layout { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 22px; }
.verdict-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 29px;
  overflow: hidden;
  border: 1px solid #f0d38c;
  border-radius: 7px;
  background: radial-gradient(circle at 90% 0, #f6dfa1, transparent 45%), linear-gradient(145deg, #e8c474, #bd843a);
  color: #29162f;
}
.verdict-main { display: flex; align-items: center; gap: 30px; padding: 45px 5px 38px; }
.score-ring {
  --score: 0;
  position: relative;
  flex: 0 0 auto;
  width: 142px;
  height: 142px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#2b1733 calc(var(--score) * 1%), rgba(43, 23, 51, 0.16) 0);
  transform: rotate(-90deg);
}
.score-ring::before { content: ""; position: absolute; width: 126px; height: 126px; border-radius: 50%; background: #dfb668; }
.score-ring > div { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; transform: rotate(90deg); }
.score-ring strong { font-family: var(--serif); font-size: 54px; font-style: italic; line-height: 1; }
.score-ring span { margin-top: 4px; font-size: 9px; font-weight: 700; letter-spacing: 0.16em; }
.verdict-crown { width: 34px; height: 28px; margin-bottom: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.verdict-kicker { margin: 0 0 7px; font-size: 8px; font-weight: 700; letter-spacing: 0.16em; }
.verdict-copy h3 { margin: 0 0 12px; font-family: var(--serif); font-size: clamp(31px, 3.3vw, 46px); font-style: italic; line-height: 1; }
#verdict-roast { max-width: 390px; margin: 0; font-size: 12px; line-height: 1.65; }
.verdict-seal { display: flex; align-items: center; gap: 12px; margin-top: auto; font-size: 8px; font-weight: 700; letter-spacing: 0.18em; }
.verdict-seal span { flex: 1; height: 1px; background: rgba(43, 23, 51, 0.25); }
.stats-panel { display: flex; flex-direction: column; border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 7px; background: rgba(27, 18, 37, 0.8); }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; }
.stat { min-width: 0; padding: 24px 26px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.stat:nth-child(odd) { border-right: 1px solid rgba(255, 255, 255, 0.07); }
.stat > span, .recent-heading > span { display: block; color: var(--gold); font-size: 8px; font-weight: 700; letter-spacing: 0.17em; }
.stat strong { display: block; margin: 8px 0 3px; overflow: hidden; font-family: var(--serif); font-size: 31px; font-style: italic; text-overflow: ellipsis; }
.stat small { color: #8e8197; font-size: 10px; }
.recent-form { flex: 1; padding: 22px 26px 20px; }
.recent-heading { display: flex; align-items: center; justify-content: space-between; }
.recent-heading small { color: #776b80; font-size: 8px; letter-spacing: 0.12em; }
.form-chart { height: 108px; display: flex; align-items: flex-end; gap: 10px; margin-top: 18px; }
.form-item { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; }
.form-item strong { color: #d9ccde; font-size: 10px; }
.form-bar { width: 100%; max-width: 36px; min-height: 5px; height: var(--height); border-radius: 3px 3px 1px 1px; background: linear-gradient(#e8bf6a, #8c622f); }
.form-item small { color: #776b80; font-size: 8px; }
.result-actions { display: flex; align-items: center; gap: 12px; margin-top: 25px; }
.action-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 17px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: transparent;
  color: #ddd2e1;
  font-size: 11px;
  font-weight: 600;
}
.action-button:hover { border-color: var(--gold); color: var(--gold); }
.action-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.action-primary { border-color: var(--gold); background: var(--gold); color: #25152e; }
.action-primary:hover { background: var(--gold-light); color: #25152e; }
.result-actions > .text-button { margin-left: auto; }
.share-feedback { min-height: 18px; margin: 10px 0 0; color: var(--muted); font-size: 11px; }
.mode-switch {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 12px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9px;
  background: rgba(27, 18, 37, 0.75);
}
.mode-switch button {
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #91849a;
  font-size: 10px;
  font-weight: 600;
}
.mode-switch button.active { background: #33223f; color: var(--cream); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18); }
.mode-switch button span { margin-left: 5px; color: var(--gold); font-size: 7px; letter-spacing: 0.1em; }
.rumble-id-row { display: flex; align-items: flex-end; gap: 10px; }
.rumble-input {
  min-width: 0;
  flex: 1;
  padding: 10px 14px 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  background: #f8f4ed;
  color: #25192c;
}
.rumble-input:focus-within { outline: 2px solid var(--gold); outline-offset: 3px; }
.rumble-input > span { display: block; margin-bottom: 2px; color: #8b713e; font-size: 7px; font-weight: 700; letter-spacing: 0.16em; }
.rumble-input input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; color: #25192c; font-size: 13px; }
.rumble-input input::placeholder { color: #776e79; }
.versus-mini { padding-bottom: 14px; color: var(--gold); font-family: var(--serif); font-size: 15px; font-style: italic; }
.rumble-submit {
  width: 100%;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 10px;
  border: 0;
  border-radius: 8px;
  background: var(--gold);
  color: #21132b;
  font-size: 12px;
  font-weight: 700;
}
.rumble-submit:hover { background: var(--gold-light); }
.rumble-submit:disabled { cursor: wait; opacity: 0.72; }
.rumble-submit svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.rumble-arena {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(27, 18, 37, 0.88);
}
.battle-team { position: relative; min-width: 0; min-height: 255px; display: flex; flex-direction: column; padding: 34px; }
.battle-team > p { margin: 0 0 18px; color: var(--gold); font-size: 8px; font-weight: 700; letter-spacing: 0.2em; }
.battle-team h3 { margin: 0 0 9px; overflow-wrap: anywhere; font-family: var(--serif); font-size: clamp(27px, 3.2vw, 42px); font-style: italic; line-height: 1.05; }
.battle-manager { color: var(--muted); font-size: 11px; }
.battle-team-bottom { display: flex; align-items: flex-end; gap: 12px; margin-top: auto; padding-top: 28px; }
.battle-team-bottom strong { font-family: var(--serif); font-size: 60px; font-style: italic; line-height: 0.8; }
.battle-team-bottom span { max-width: 50px; color: #8e8197; font-size: 7px; font-weight: 700; letter-spacing: 0.13em; line-height: 1.5; }
.battle-team.winner {
  background: radial-gradient(circle at 100% 0, #f6dfa1, transparent 45%), linear-gradient(145deg, #e8c474, #bd843a);
  color: #29162f;
}
.battle-team.winner > p, .battle-team.winner .battle-manager, .battle-team.winner .battle-team-bottom span { color: #4d334b; }
.winner-badge {
  position: absolute;
  top: 0;
  right: 24px;
  padding: 7px 11px;
  background: #2b1733;
  color: var(--gold);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.battle-vs { display: flex; flex-direction: column; align-items: center; justify-content: center; border-right: 1px solid rgba(255, 255, 255, 0.07); border-left: 1px solid rgba(255, 255, 255, 0.07); }
.battle-vs svg { width: 28px; height: 24px; margin-bottom: 12px; fill: none; stroke: var(--gold); stroke-width: 1.6; }
.battle-vs strong { font-family: var(--serif); font-size: 28px; font-style: italic; }
.battle-vs span { margin-top: 8px; color: #776b80; font-size: 6px; letter-spacing: 0.16em; }
.rounds-panel { margin-top: 22px; padding: 25px 28px 12px; border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 7px; background: rgba(27, 18, 37, 0.8); }
.rumble-rounds { margin-top: 16px; }
.rumble-round { display: grid; grid-template-columns: 1fr 1.25fr 1fr; align-items: center; gap: 16px; padding: 17px 0; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.round-value { display: flex; flex-direction: column; gap: 3px; }
.round-value strong { font-family: var(--serif); font-size: 26px; font-style: italic; }
.round-value small { color: #716576; font-size: 7px; font-weight: 700; letter-spacing: 0.13em; }
.round-value-b { text-align: right; }
.round-label { color: #a99cae; font-size: 10px; font-weight: 600; text-align: center; }
.round-winner-a .round-value-a strong, .round-winner-b .round-value-b strong { color: var(--gold); }
.round-winner-a .round-value-a small, .round-winner-b .round-value-b small { color: var(--gold); }
.round-draw .round-value strong { color: #a89daf; }
@media (max-width: 600px) {
  .mode-switch { display: flex; }
  .mode-switch button { flex: 1; padding: 0 8px; }
  .rumble-id-row { gap: 6px; }
  .rumble-input { padding: 9px 10px 7px; }
  .rumble-input input { font-size: 11px; }
  .rumble-arena { grid-template-columns: 1fr; }
  .battle-team { min-height: 190px; padding: 28px 24px 24px; }
  .battle-team h3 { font-size: 30px; }
  .battle-manager { font-size: 10px; overflow-wrap: anywhere; }
  .battle-team-bottom { gap: 10px; padding-top: 20px; }
  .battle-team-bottom strong { font-size: 50px; }
  .battle-vs { flex-direction: row; gap: 10px; padding: 12px; border: 0; border-top: 1px solid rgba(255, 255, 255, 0.07); border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
  .battle-vs svg { width: 22px; margin: 0; }
  .battle-vs strong { font-size: 22px; }
  .winner-badge { right: 18px; padding: 6px 9px; font-size: 6px; }
  .rounds-panel { padding: 20px 14px 8px; }
  .rumble-round { gap: 8px; }
  .round-value strong { font-size: 21px; }
  .round-value small { font-size: 6px; }
  .round-label { font-size: 9px; }
}
.site-footer {
  width: min(1280px, calc(100% - 64px));
  min-height: 90px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: #6f6378;
  font-size: 9px;
}
.site-footer > span { color: #9c8ba6; font-weight: 700; letter-spacing: 0.18em; }
@media (max-width: 1050px) {
  .hero { grid-template-columns: minmax(0, 1.15fr) minmax(310px, 0.85fr); gap: 30px; }
  .preview-card { width: 310px; }
  .preview-orbit { width: 400px; height: 400px; }
  .preview-crown { height: 170px; }
  .verdict-main { gap: 20px; }
  .score-ring { width: 118px; height: 118px; }
  .score-ring::before { width: 104px; height: 104px; }
  .score-ring strong { font-size: 45px; }
}
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding-top: 60px; }
  .hero-copy { max-width: 680px; }
  .preview-wrap { margin: 15px 0 30px; }
  .preview-card { width: 330px; animation: none; transform: rotate(3deg); }
  .verdict-layout { grid-template-columns: 1fr; }
  .verdict-main { justify-content: center; }
}
@media (max-width: 560px) {
  .site-header, main, .site-footer { width: min(100% - 32px, 1280px); }
  .site-header { height: 84px; }
  .live-badge { font-size: 8px; letter-spacing: 0.1em; }
  .hero { min-height: 0; padding: 48px 0 58px; }
  h1 { font-size: clamp(58px, 18vw, 80px); }
  .hero-intro { font-size: 14px; }
  .hero-intro br { display: none; }
  .lookup-row { flex-direction: column; padding: 7px; }
  .lookup-row input { min-height: 49px; }
  .lookup-row button { width: 100%; }
  .form-meta { align-items: flex-start; font-size: 10px; }
  .evidence-list { margin-top: 32px; }
  .preview-orbit { width: 340px; height: 340px; }
  .preview-card { width: 290px; }
  .preview-crown { height: 150px; }
  .preview-copy strong { font-size: 36px; }
  .result { padding-top: 55px; }
  .verdict-card { padding: 24px; }
  .verdict-main { flex-direction: column; align-items: flex-start; padding: 34px 0; }
  .verdict-copy { text-align: left; }
  .score-ring { align-self: center; }
  .stat { padding: 20px 18px; }
  .stat strong { font-size: 26px; }
  .stat small { font-size: 9px; }
  .recent-form { padding: 20px 18px; }
  .result-actions { flex-wrap: wrap; }
  .result-actions > .text-button { margin: 8px 0 0; }
  .site-footer { padding: 25px 0; flex-direction: column; align-items: flex-start; }
  .site-footer p { margin: 0; line-height: 1.5; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
