html {
  background: #0b0f14;
}

body {
  min-height: 100vh;
  margin: 0;
  background: #f4f4f5;
  color: #18181b;
}

.ff-nav {
  border-bottom: 4px solid #dc2626;
  background: #0b0f14;
  color: #ffffff;
}

.ff-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 80rem;
  height: 4rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.ff-nav-left,
.ff-nav-links,
.ff-nav-actions,
.ff-brand {
  display: flex;
  align-items: center;
}

.ff-nav-left {
  gap: 2rem;
}

.ff-nav-links,
.ff-nav-actions {
  gap: 0.5rem;
}

.ff-brand {
  gap: 0.75rem;
  color: #ffffff;
  text-decoration: none;
}

.ff-brand span {
  font-size: 1.125rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ff-brand-mark,
.ff-hero-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  background:
    linear-gradient(45deg, #ffffff 25%, transparent 25%, transparent 75%, #ffffff 75%),
    linear-gradient(45deg, #ffffff 25%, transparent 25%, transparent 75%, #ffffff 75%),
    #0b0f14;
  background-position: 0 0, 8px 8px;
  background-size: 16px 16px;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0;
}

.ff-brand-mark {
  width: 3rem;
  height: 2rem;
  font-size: 0.95rem;
  text-shadow: 0 1px 2px #000000;
}

.ff-nav-link,
.ff-nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.8rem;
  color: #d4d4d8;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
}

.ff-nav-link:hover,
.ff-nav-button:hover {
  background: #dc2626;
  color: #ffffff;
}

.ff-nav-button {
  border: 0;
  background: #dc2626;
  color: #ffffff;
}

.ff-user-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  background: #dc2626;
  color: #ffffff;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.ff-user-button::-webkit-details-marker {
  display: none;
}

.ff-user-menu {
  position: relative;
}

.ff-menu {
  position: absolute;
  right: 0;
  z-index: 20;
  display: none;
  width: 12rem;
  margin-top: 0.5rem;
  border: 1px solid #e4e4e7;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.15);
}

.ff-user-menu[open] .ff-menu {
  display: block;
}

.ff-menu a {
  display: block;
  padding: 0.65rem 1rem;
  color: #18181b;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.ff-menu a:hover {
  background: #f4f4f5;
}

.ff-messages {
  display: grid;
  gap: 0.5rem;
  max-width: 80rem;
  margin: 1rem auto 0;
  padding: 0 1rem;
}

.ff-message {
  border: 1px solid #d4d4d8;
  border-left: 4px solid #18181b;
  background: #ffffff;
  padding: 0.85rem 1rem;
  color: #18181b;
  font-weight: 800;
}

.ff-message-success {
  border-left-color: #16a34a;
}

.ff-message-error {
  border-left-color: #dc2626;
}

.ff-message-info {
  border-left-color: #2563eb;
}

.ff-hero {
  min-height: calc(100vh - 4rem);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(220, 38, 38, 0.12) 0 1px, transparent 1px 64px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 64px),
    #0b0f14;
  color: #ffffff;
}

.ff-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  max-width: 80rem;
  min-height: calc(100vh - 4rem);
  margin: 0 auto;
  padding: 4rem 1rem;
}

.ff-hero-mark {
  width: 5rem;
  height: 5rem;
  margin-bottom: 2rem;
  border-color: #dc2626;
  font-size: 1.8rem;
  text-shadow: 0 2px 4px #000000;
}

.ff-kicker {
  display: inline-flex;
  border-left: 4px solid #dc2626;
  background: #ffffff;
  padding: 0.5rem 1rem;
  color: #0b0f14;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ff-hero h1 {
  max-width: 46rem;
  margin: 1.25rem 0 0;
  color: #ffffff;
  font-size: clamp(3rem, 8vw, 6.4rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: 0;
}

.ff-hero-copy {
  max-width: 42rem;
  margin: 1.5rem 0 0;
  color: #d4d4d8;
  font-size: 1.2rem;
  line-height: 1.65;
}

.ff-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.ff-primary,
.ff-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  font-weight: 900;
  text-decoration: none;
}

.ff-primary {
  background: #dc2626;
  color: #ffffff;
}

.ff-primary:hover {
  background: #b91c1c;
}

.ff-secondary {
  border: 1px solid #ffffff;
  color: #ffffff;
}

.ff-secondary:hover {
  background: #ffffff;
  color: #0b0f14;
}

.ff-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 34rem;
  margin-top: 2.25rem;
}

.ff-stat {
  border: 1px solid #3f3f46;
  background: #18181b;
  padding: 1rem;
  text-align: center;
}

.ff-stat strong {
  display: block;
  color: #ef4444;
  font-size: 2rem;
  line-height: 1;
}

.ff-stat span {
  display: block;
  margin-top: 0.45rem;
  color: #a1a1aa;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ff-board-wrap {
  position: relative;
}

.ff-board-frame {
  position: absolute;
  inset: 2rem auto auto -2rem;
  width: 100%;
  height: 100%;
  border: 2px solid #dc2626;
}

.ff-board {
  position: relative;
  border: 1px solid #3f3f46;
  background: #18181b;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.ff-board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #3f3f46;
  background: #0b0f14;
  padding: 1.25rem;
}

.ff-board-label {
  margin: 0;
  color: #ef4444;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ff-board h2 {
  margin: 0.2rem 0 0;
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 900;
}

.ff-pill {
  background: #dc2626;
  padding: 0.35rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ff-board-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1.25rem;
}

.ff-board-card {
  border: 1px solid #3f3f46;
  background: #0b0f14;
  padding: 1rem;
}

.ff-board-card p,
.ff-standings p {
  margin: 0;
  color: #a1a1aa;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ff-board-card ol {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.ff-board-card li {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #27272a;
  padding: 0.65rem 0;
}

.ff-board-card li:last-child {
  border-bottom: 0;
}

.ff-board-card strong,
.ff-score {
  color: #ef4444;
  font-weight: 900;
}

.ff-standings {
  border-top: 1px solid #3f3f46;
  padding: 1.25rem;
}

.ff-standing-row {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) 4rem;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
  border: 1px solid #3f3f46;
  padding: 0.8rem;
  font-weight: 900;
}

.ff-standing-row:first-of-type {
  background: #ffffff;
  color: #0b0f14;
}

.ff-page {
  max-width: 80rem;
  min-height: calc(100vh - 14rem);
  margin: 0 auto;
  padding: 3rem 1rem;
}

.ff-panel,
.ff-table-card {
  border: 1px solid #d4d4d8;
  border-top: 4px solid #dc2626;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.ff-auth-panel {
  max-width: 34rem;
  padding: 2rem;
}

.ff-panel h1,
.ff-page-header h1 {
  margin: 0.25rem 0 0;
  color: #0b0f14;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.ff-eyebrow {
  margin: 0;
  color: #dc2626;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ff-muted {
  max-width: 42rem;
  margin: 0.75rem 0 0;
  color: #52525b;
  font-size: 1rem;
  line-height: 1.6;
}

.ff-detail-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0 0;
}

.ff-detail-list div {
  display: grid;
  gap: 0.25rem;
  border-left: 4px solid #dc2626;
  background: #f4f4f5;
  padding: 0.75rem 1rem;
}

.ff-detail-list dt {
  color: #52525b;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ff-detail-list dd {
  margin: 0;
  color: #18181b;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.ff-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

.ff-form p,
.ff-form .control-group,
.ff-form .form-group {
  margin: 0;
}

.ff-form label {
  display: block;
  margin-bottom: 0.35rem;
  color: #18181b;
  font-size: 0.9rem;
  font-weight: 800;
}

.ff-form input,
.ff-form select,
.ff-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #a1a1aa;
  background: #ffffff;
  padding: 0.8rem 0.9rem;
  color: #18181b;
  font-size: 1rem;
}

.ff-form input[type="checkbox"],
.ff-form input[type="radio"] {
  width: auto;
  margin-right: 0.5rem;
}

.ff-form ul {
  padding-left: 0;
  list-style: none;
}

.ff-form li {
  margin-top: 0.45rem;
}

.ff-form li label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0;
  font-weight: 700;
}

.ff-form input[type="file"] {
  padding: 0.65rem;
}

.ff-form input:focus,
.ff-form select:focus,
.ff-form textarea:focus {
  outline: 2px solid #dc2626;
  outline-offset: 2px;
  border-color: #dc2626;
}

.ff-form .help-block,
.ff-form .helptext,
.ff-form ul {
  margin: 0.35rem 0 0;
  color: #71717a;
  font-size: 0.85rem;
}

.ff-form .errorlist {
  color: #b91c1c;
  font-weight: 700;
}

.ff-form-submit {
  width: 100%;
  border: 0;
  background: #dc2626;
  padding: 0.9rem 1rem;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ff-form-submit:hover {
  background: #b91c1c;
}

.ff-form-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.ff-form-link,
.ff-auth-switch a,
.ff-table-link {
  color: #dc2626;
  font-weight: 800;
  text-decoration: none;
}

.ff-form-link:hover,
.ff-auth-switch a:hover,
.ff-table-link:hover {
  color: #991b1b;
  text-decoration: underline;
}

.ff-auth-switch {
  margin: 1.25rem 0 0;
  color: #52525b;
}

.ff-page-header {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.ff-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.ff-card {
  border: 1px solid #d4d4d8;
  border-top: 4px solid #dc2626;
  background: #ffffff;
  padding: 1.25rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.ff-card h2,
.ff-card h3 {
  margin: 0;
  color: #0b0f14;
  font-weight: 900;
  letter-spacing: 0;
}

.ff-card h2 {
  font-size: 1.75rem;
}

.ff-card h3 {
  font-size: 1.15rem;
}

.ff-section-header {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.ff-section-header h2,
.ff-section-header h3 {
  margin: 0;
}

.ff-section-header-compact {
  margin-bottom: 0.75rem;
}

.ff-subsection {
  margin-top: 1rem;
  border-top: 1px solid #e4e4e7;
  padding-top: 1rem;
}

.ff-card + .ff-card,
.ff-table-card + .ff-card,
.ff-card + .ff-table-card {
  margin-top: 1rem;
}

.ff-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.25rem;
}

.ff-inline-form {
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
}

.ff-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #18181b;
  background: #ffffff;
  padding: 0.75rem 1rem;
  color: #18181b;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.ff-link-button:hover {
  background: #18181b;
  color: #ffffff;
}

.ff-danger-button {
  border: 1px solid #b91c1c;
  background: #ffffff;
  padding: 0.65rem 0.9rem;
  color: #b91c1c;
  font-weight: 900;
  text-transform: uppercase;
}

.ff-danger-button:hover {
  background: #b91c1c;
  color: #ffffff;
}

.ff-token-value {
  display: block;
  margin-top: 1rem;
  overflow-x: auto;
  border: 1px solid #e4e4e7;
  background: #0b0f14;
  padding: 1rem;
  color: #ffffff;
  font-size: 0.95rem;
  white-space: nowrap;
}

.ff-copy-field {
  width: 100%;
  box-sizing: border-box;
  margin-top: 1rem;
  border: 1px solid #d4d4d8;
  background: #fafafa;
  padding: 0.85rem 1rem;
  color: #18181b;
  font: inherit;
}

.ff-copy-field:focus {
  outline: 2px solid #dc2626;
  outline-offset: 2px;
}

.ff-token-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.ff-token-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  justify-content: space-between;
  border: 1px solid #e4e4e7;
  background: #fafafa;
  padding: 1rem;
}

.ff-token-row strong,
.ff-token-row span {
  display: block;
}

.ff-token-row span {
  margin-top: 0.35rem;
  color: #71717a;
  font-size: 0.85rem;
}

.ff-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.ff-metric {
  border: 1px solid #e4e4e7;
  background: #fafafa;
  padding: 1rem;
}

.ff-metric span {
  display: block;
  color: #71717a;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ff-metric strong {
  display: block;
  margin-top: 0.35rem;
  color: #18181b;
  font-size: 1.25rem;
  font-weight: 900;
}

.ff-feature-list {
  display: grid;
  gap: 0.45rem;
  margin: 1rem 0;
  padding-left: 1.15rem;
  color: #3f3f46;
}

.ff-feature-list li {
  padding-left: 0.2rem;
}

.ff-league-dashboard-card {
  display: grid;
  gap: 0.75rem;
}

.ff-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1rem;
}

.ff-race-tile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.ff-race-tile {
  display: block;
  min-height: 6.25rem;
  border: 1px solid #d4d4d8;
  background: #fafafa;
  padding: 1rem;
  color: #18181b;
  text-decoration: none;
}

.ff-race-tile span {
  display: block;
  color: #71717a;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ff-race-tile strong {
  display: block;
  margin-top: 0.35rem;
  color: #18181b;
  font-size: 1.45rem;
  font-weight: 900;
}

.ff-race-tile em {
  display: block;
  margin-top: 0.6rem;
  color: #dc2626;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ff-race-tile[href]:hover {
  border-color: #dc2626;
  background: #fff7f7;
}

.ff-race-tile-next {
  border-color: #dc2626;
  background: #fff7f7;
}

.ff-race-tile-muted em {
  color: #71717a;
}

.ff-pick-preview {
  margin-top: 0.85rem;
  border-top: 1px solid #fecaca;
  padding-top: 0.75rem;
}

.ff-pick-preview + .ff-pick-preview {
  margin-top: 0.75rem;
}

.ff-pick-preview > span {
  color: #71717a;
  font-size: 0.68rem;
}

.ff-pick-preview ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.45rem 0 0;
  padding: 0;
  list-style: none;
}

.ff-pick-preview li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid #fecaca;
  background: #ffffff;
  padding: 0.35rem 0.5rem;
  color: #18181b;
  font-size: 0.82rem;
  font-weight: 900;
}

.ff-pick-preview .ff-pick-position {
  color: #dc2626;
  font-size: 0.68rem;
}

.ff-pick-block {
  display: grid;
  gap: 0.75rem;
}

.ff-pick-detail-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(5rem, 1fr));
  gap: 0.5rem;
}

.ff-pick-detail-item {
  border: 1px solid #e4e4e7;
  background: #fafafa;
  padding: 0.75rem;
}

.ff-pick-detail-item span {
  display: block;
  color: #dc2626;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ff-pick-detail-item strong {
  display: block;
  margin-top: 0.25rem;
  color: #18181b;
  font-size: 1.05rem;
  font-weight: 900;
}

.ff-dashboard-actions {
  margin-top: 0.25rem;
}

.ff-status {
  border-left: 4px solid #dc2626;
  background: #fef2f2;
  padding: 0.85rem 1rem;
  color: #7f1d1d;
  font-weight: 800;
}

.ff-empty-panel {
  border: 1px dashed #a1a1aa;
  background: #fafafa;
  padding: 1.5rem;
  color: #52525b;
  text-align: center;
}

.ff-recap-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.ff-recap-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.ff-recap-preview {
  border: 1px solid #d4d4d8;
  background: #ffffff;
  padding: 1rem;
}

.ff-recap-preview-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.ff-recap-preview-header strong {
  color: #52525b;
  font-size: 0.85rem;
}

.ff-recap-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 4px solid #dc2626;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 12%, transparent 12% 24%, rgba(255, 255, 255, 0.04) 24% 36%, transparent 36%),
    #0b0f14;
  color: #ffffff;
}

.ff-recap-card::before {
  content: "";
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 8rem;
  height: 4rem;
  background:
    linear-gradient(45deg, #ffffff 25%, transparent 25%, transparent 75%, #ffffff 75%),
    linear-gradient(45deg, #ffffff 25%, transparent 25%, transparent 75%, #ffffff 75%);
  background-position: 0 0, 1rem 1rem;
  background-size: 2rem 2rem;
  opacity: 0.9;
}

.ff-recap-card-square {
  aspect-ratio: 1 / 1;
  padding: clamp(1rem, 4vw, 2.25rem);
}

.ff-recap-card-vertical {
  aspect-ratio: 9 / 16;
  max-height: 46rem;
  padding: clamp(1.25rem, 5vw, 2.75rem);
}

.ff-recap-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ff-recap-card-top strong,
.ff-recap-card-top span {
  display: block;
}

.ff-recap-card-top strong {
  font-size: clamp(0.95rem, 2vw, 1.3rem);
  font-weight: 900;
  text-transform: uppercase;
}

.ff-recap-card-top span {
  color: #fca5a5;
  font-size: clamp(0.7rem, 1.5vw, 0.95rem);
  font-weight: 900;
  text-transform: uppercase;
}

.ff-recap-race {
  position: relative;
  z-index: 1;
  margin: clamp(1rem, 4vw, 2.25rem) 0 0;
  color: #fca5a5;
  font-size: clamp(0.8rem, 2vw, 1rem);
  font-weight: 900;
  text-transform: uppercase;
}

.ff-recap-card h2 {
  position: relative;
  z-index: 1;
  margin: 0.6rem 0 0;
  color: #ffffff;
  font-size: clamp(2rem, 7vw, 4.4rem);
  line-height: 0.98;
  font-weight: 900;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.ff-recap-winner {
  position: relative;
  z-index: 1;
  margin-top: auto;
  border: 3px solid #dc2626;
  background: #ffffff;
  padding: clamp(0.85rem, 3vw, 1.5rem);
  color: #0b0f14;
}

.ff-recap-winner span,
.ff-recap-battle span {
  display: block;
  color: #991b1b;
  font-size: clamp(0.7rem, 1.6vw, 0.9rem);
  font-weight: 900;
  text-transform: uppercase;
}

.ff-recap-winner strong {
  display: block;
  margin-top: 0.25rem;
  font-size: clamp(1.65rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1;
  overflow-wrap: anywhere;
}

.ff-recap-winner em,
.ff-recap-podium em {
  display: block;
  color: #dc2626;
  font-style: normal;
  font-weight: 900;
}

.ff-recap-podium {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.ff-recap-podium div {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #3f3f46;
  background: #18181b;
  padding: 0.65rem 0.75rem;
}

.ff-recap-podium span {
  color: #fca5a5;
  font-weight: 900;
}

.ff-recap-podium strong {
  overflow: hidden;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ff-recap-battle {
  position: relative;
  z-index: 1;
  margin-top: 1rem;
  border-left: 4px solid #dc2626;
  background: #18181b;
  padding: 1rem;
}

.ff-recap-battle strong {
  display: block;
  margin-top: 0.35rem;
  line-height: 1.25;
}

.ff-recap-card footer {
  position: relative;
  z-index: 1;
  margin-top: 0.8rem;
  color: #d4d4d8;
  font-size: clamp(0.65rem, 1.5vw, 0.8rem);
  font-weight: 900;
  text-transform: uppercase;
}

.ff-caption-field {
  min-height: 8rem;
  resize: vertical;
}

.ff-submit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.ff-results-list {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
}

.ff-result-row {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  border: 1px solid #e4e4e7;
  background: #fafafa;
  padding: 0.75rem;
}

.ff-result-row strong {
  color: #dc2626;
  font-weight: 900;
}

.ff-profile-summary {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ff-profile-avatar {
  width: 4rem;
  height: 4rem;
  border: 3px solid #dc2626;
  background: #18181b;
  object-fit: cover;
}

.ff-definition-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.ff-definition-row {
  display: grid;
  grid-template-columns: minmax(8rem, 0.35fr) minmax(0, 1fr);
  gap: 1rem;
  border-top: 1px solid #e4e4e7;
  padding-top: 0.75rem;
}

.ff-definition-row dt {
  color: #71717a;
  font-weight: 900;
}

.ff-definition-row dd {
  margin: 0;
  color: #18181b;
}

.ff-table-card {
  overflow-x: auto;
}

.ff-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.ff-table th {
  background: #0b0f14;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  padding: 1rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.ff-table td {
  border-top: 1px solid #e4e4e7;
  padding: 1rem;
  color: #18181b;
}

.ff-table tr:hover td {
  background: #fafafa;
}

.ff-empty-state {
  color: #71717a;
  text-align: center;
}

.ff-footer {
  border-top: 1px solid #27272a;
  background: #0b0f14;
  color: #d4d4d8;
}

.ff-footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 80rem;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.ff-footer strong {
  display: block;
  color: #ffffff;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ff-footer p {
  margin: 0.25rem 0 0;
  color: #a1a1aa;
}

.ff-footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.ff-footer a {
  color: #d4d4d8;
  font-weight: 700;
  text-decoration: none;
}

.ff-footer a:hover {
  color: #ffffff;
}

@media (min-width: 640px) {
  .ff-actions {
    flex-direction: row;
  }

  .ff-footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .ff-page-header {
    flex-direction: row;
    align-items: end;
    justify-content: space-between;
  }

  .ff-section-header {
    flex-direction: row;
    align-items: start;
  }

  .ff-profile-summary {
    flex-direction: row;
    align-items: center;
  }

  .ff-inline-form {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .ff-token-row {
    flex-direction: row;
    align-items: center;
  }
}

@media (min-width: 768px) {
  .ff-board-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  .ff-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .ff-nav-inner,
  .ff-hero-inner,
  .ff-footer-inner {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .ff-hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(28rem, 0.9fr);
  }

  .ff-submit-grid {
    grid-template-columns: minmax(0, 34rem) minmax(0, 1fr);
    align-items: start;
  }

  .ff-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .ff-recap-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.75fr);
    align-items: start;
  }
}

@media (max-width: 767px) {
  .ff-nav-links,
  .ff-brand span {
    display: none;
  }

  .ff-board-frame {
    display: none;
  }

  .ff-summary-grid,
  .ff-race-tile-grid {
    grid-template-columns: 1fr;
  }
}
