.ff-cup {
  --cup-accent: #d34a10;
  --cup-surface: #1c1c1e;
  width: min(100%, 1440px);
  margin: 24px auto 64px;
  color: #fafafa;
  display: grid;
  gap: clamp(24px, 3vw, 46px);
}
.ff-cup *, .ff-cup *::before { box-sizing: border-box }
.ff-cup > *, .ff-cup section { min-width: 0 }
.ff-cup h1, .ff-cup h2, .ff-cup h3 { margin: 0; line-height: 1.07; overflow-wrap: anywhere }
.ff-cup h1 { font-size: clamp(32px, 4vw, 64px); letter-spacing: -.042em }
.ff-cup h2 { margin-bottom: 18px; font-size: clamp(23px, 2.45vw, 36px); letter-spacing: -.035em }
.ff-cup p { line-height: 1.5 }
.ff-cup a { text-decoration: none }
.cup-hero, .cup-mast, .cup-season, .cup-league-card, .cup-podium article { position: relative; isolation: isolate; overflow: hidden; border-radius: 24px; color: white }
.cup-hero { display: flex; align-items: center; min-height: clamp(280px, 23vw, 335px); padding: clamp(24px, 3vw, 48px) }
.cup-hero > div { position: relative; max-width: 66% }
.cup-hero p { margin: 0 0 10px; font-size: 15px; font-weight: 600 }
.cup-hero h1 + p { margin: 12px 0 0; font-size: clamp(17px, 1.5vw, 23px) }
.cup-actions, .cup-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 8px }
.cup-actions { margin-top: 24px }
.cup-btn, .cup-back, .cup-toolbar > nav a, .cup-picker summary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 99px; font-weight: 650; transition: background .16s, transform .16s }
.cup-btn { min-height: 46px; padding: 10px 22px; background: white; color: #1a1614 }
.cup-btn.soft, .cup-back { background: #25292c; color: #fff3e8 }
.cup-btn:hover { background: #eceef0 }.cup-btn.soft:hover, .cup-back:hover { background: #373c40 }
.cup-btn:active, .cup-back:active, .cup-toolbar a:active { transform: scale(.97) }
.cup-leagues, .cup-podium, .cup-cards { display: grid; gap: clamp(12px, 1.6vw, 24px); grid-template-columns: repeat(3,minmax(0,1fr)) }
.cup-league-card, .cup-podium article { display: grid; justify-items: center; align-content: center; gap: 14px; text-align: center; padding: 32px 18px; min-height: clamp(240px, 22vw, 355px); background: radial-gradient(ellipse at 50% -25%, #67391f 0, #2a2320 38%, transparent 70%), #1d1d1e }
.cup-league-card::before, .cup-podium article::before { content: ""; position: absolute; top: 0; width: 48px; height: 3px; border-radius: 0 0 3px 3px; background: var(--cup-accent) }
.cup-league-card h3, .cup-podium h3 { font-size: clamp(20px,1.9vw,29px); color: #ff8446 }
.cup-league-card > span:last-child { color: #cdc6c1; font-size: 14px }
.cup-league-card i { font-style: normal; margin-left: 4px }
.cup-empty, .cup-panel, .ff-cup #registration, .ff-cup .lg-admin, .cup-table-wrap { padding: clamp(18px,2.4vw,32px); background: var(--cup-surface); border-radius: 19px }
.cup-empty { margin: 0; color: #c9c6c4 }
.cup-mast { display: grid; place-items: center; height: clamp(148px,17vw,248px); background: #261631 }
.cup-mast::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #0d0214a6, transparent 60%, #110d2390),url(/assets/rust-league-flight.webp) center 42% / cover; filter: hue-rotate(291deg) }
.cup-mast b { font-size: clamp(64px,12vw,180px); line-height: .9; font-weight: 950; letter-spacing: -.065em; color: #ffe5ff; margin-right: 35%; text-shadow: 0 4px 28px #20002e75 }
.cup-back { justify-self: start; min-height: 38px; padding: 6px 16px; background: #141416e8; font-size: 13px }
.cup-mast .cup-back { position: absolute; top: 14px; left: 14px }
.cup-hub h1 { margin-top: 22px; font-size: clamp(32px,3vw,46px) }
.cup-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: relative; z-index: 3 }
.cup-toolbar > nav { display: inline-flex; padding: 5px; background: var(--cup-surface); border-radius: 99px }
.cup-toolbar > nav a { min-height: 42px; padding: 8px 18px; color: #ccc7c4 }
.cup-toolbar a[aria-current="page"] { background: #b9410e; color: white }
.cup-picker { position: relative; min-width: 150px; max-width: 45% }
.cup-picker summary { cursor: pointer; justify-content: space-between; border-radius: 12px; padding: 12px 16px; min-height: 46px; color: #e8e5e3; background: #252527; list-style: none }
.cup-picker summary::-webkit-details-marker { display:none }
.cup-picker summary span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.cup-picker svg, .cup-tags svg { width: 17px; height: 17px; flex: none }
.cup-picker nav { position: absolute; right: 0; top: calc(100% + 6px); background: #252527; border: 1px solid #444; border-radius: 12px; padding: 5px; width: max-content; max-width: min(76vw,350px); min-width: 100%; max-height: 300px; overflow: auto; box-shadow: 0 10px 24px #0005 }
.cup-picker nav a { display: block; color: #ddd; padding: 10px 12px; border-radius: 8px }
.cup-picker nav a:hover, .cup-picker nav a[aria-current] { color: white; background: #33383d }
.cup-podium article > small { position: absolute; right: 14px; top: 6px; font-size: clamp(32px,4vw,68px); font-weight: 900; color: transparent; -webkit-text-stroke: 1px #9a8175 }
.cup-podium .clan-avatar { width: clamp(80px,11vw,155px); height: auto; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; object-fit: cover; background: #3a3532 }
.cup-podium .clan-avatar svg { width: 40%; height: 40% }
.cup-podium article > b, .cup-table strong { background: #af390e; color: white; padding: 6px 14px; border-radius: 99px; font-variant-numeric: tabular-nums }
.cup-table { width: 100%; border-collapse: separate; border-spacing: 0 5px; text-align: left }
.cup-table :is(td,th) { padding: 10px 12px }
.cup-table thead th { font-size: 13px; font-weight: 500; color: #c4bcb8 }
.cup-table tbody :is(td,th) { background: #28282a }
.cup-table tr > :first-child { width: 12%; border-radius: 12px 0 0 12px; text-align: center }
.cup-table tr > :last-child { border-radius: 0 12px 12px 0; text-align: right }
.cup-table th span { display: inline-flex; align-items: center; gap: 12px }
.cup-table .clan-avatar { width: 38px; height: 38px; border-radius: 50%; object-fit: cover }
.cup-cards { grid-template-columns: repeat(2,minmax(0,1fr)) }
.cup-season { width: 100%; min-width: 0; aspect-ratio: 2.05; min-height: 232px; display: flex; flex-direction: column; justify-content: space-between; padding: 14px; background: #202023 }
.cup-season::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg,#0d091750,transparent 70%),url(/assets/league-coastal-compound.webp) center / cover; transition: filter .2s ease-out }
.cup-tags span { display: inline-flex; align-items: center; gap: 6px; background: #201d20ed; color: #fff; border: 1px solid #ffffff19; border-radius: 99px; font-size: 13px; padding: 7px 10px }
.cup-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px 8px 18px; min-height: 54px; border-radius: 18px; background: #191618eb; color: white }
.cup-caption h3 { font-size: clamp(17px,1.45vw,24px) }
.cup-caption > div { flex: none; padding: 4px 10px; border-left: 1px solid #ffffff30 }
.cup-caption small, .cup-caption time, .cup-facts small, .cup-facts b { display: block }
.cup-caption small, .cup-facts small { color: #c6c1be }.cup-caption time { font-size: 13px; font-weight: bold }
.cup-facts { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,180px),1fr)); gap: 12px }
.cup-facts > div { padding: 16px; border-radius: 12px; background: #2b2a2d }.cup-facts b { margin-top: 6px }
.ff-cup form { display: grid; gap: 12px; justify-items: start }.ff-cup fieldset { display: flex; flex-wrap: wrap; gap: 12px; border: 1px solid #4b484a; padding: 15px }
.ff-cup label { display: flex; gap: 6px; align-items: center }.ff-cup .lg-admin summary { cursor: pointer }
.ff-cup :focus-visible { outline: 3px solid #b1c9da; outline-offset: 3px }
@media (max-width:760px) {
  .cup-cards { grid-template-columns: minmax(0,1fr) }.cup-leagues { grid-template-columns: repeat(2,minmax(0,1fr)) }
  .cup-podium { grid-template-columns: 1fr }.cup-podium article { min-height: 120px; grid-template-columns: 72px 1fr; text-align: left; justify-items: start; align-items: center; gap: 5px 16px; padding: 20px }
  .cup-podium .clan-avatar { width: 68px; grid-row: span 2 }.cup-podium h3 { align-self: end; padding-right: 28px }.cup-podium article > b { align-self: start }
}
@media (max-width:520px) {
  .ff-cup { margin-top: 12px; gap: 22px }.cup-leagues { grid-template-columns: 1fr }.cup-league-card { min-height: 216px }
  .cup-hero { min-height: 265px; padding: 22px 18px }.cup-hero > div { max-width: 100% }
  .cup-toolbar { flex-wrap: wrap }.cup-toolbar > nav a { min-height: 38px; padding-inline: 12px }.cup-picker { min-width: 118px; max-width: 44% }.cup-picker summary { padding-inline: 10px }
  .cup-mast b { margin: 24px 24% 0 0 }.cup-season { padding: 10px; min-height: 220px }.cup-tags { gap: 4px }.cup-tags span { font-size: 11px; padding: 5px 7px }
  .cup-table-wrap { padding: 8px }.cup-table :is(td,th) { padding: 8px 5px }.cup-table .clan-avatar { width: 28px; height: 28px }.cup-caption { padding-left: 10px }
}
@media (prefers-reduced-motion:reduce) { .ff-cup *, .ff-cup *::before { transition: none } }

.ff-cup {
  --cup-accent: #c4cfce;
  --cup-ink: #17140e;
  --cup-muted: #b0aca5;
  --cup-line: #ffffff19;
  --cup-panel-inset: #242323;
}
.cup-notice {
  background: #252621;
  color: #fff7f2;
}
.cup-notice::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url(/assets/league-dome-patrol.webp) center 46% / cover no-repeat;
  mask-image: linear-gradient(90deg,transparent 0%, #0003 26%, black 70%);
  filter: saturate(.84);
}
.cup-notice > div { max-width: min(60%,720px); text-shadow: none }
.cup-notice h1 a { color: inherit }
.project-frostfire .ff-cup .cup-notice h1 a:any-link, .project-frostfire .ff-cup .cup-notice h1 a:hover { text-decoration: none!important; border-bottom: 0; box-shadow: none }
.ff-cup .cup-notice .cup-btn:not(.soft), .ff-cup .cup-event-mast > .cup-btn { color: #17191b; background: #fff; border: 1px solid #fff; border-radius: 999px }
.ff-cup .cup-notice .cup-btn:not(.soft):hover, .ff-cup .cup-event-mast > .cup-btn:hover { background: #ececea; color: #131415 }
.cup-notice .cup-btn.soft { color: #ece9e6; background: #232425; border-color: #494749 }
.cup-notice .cup-btn.soft:hover { background: #353535 }
.cup-flags { display: block; width: clamp(88px,9vw,132px); height: auto; object-fit: contain }
.cup-league-card { min-height: clamp(185px,17vw,265px); border-radius: 15px; border: 1px solid var(--cup-line) }
.cup-league-card h3, .cup-podium h3 { color: var(--cup-accent) }
.cup-mast, .cup-event-mast {
  border: 1px solid var(--cup-line);
  border-radius: 14px;
  background: #131617;
}
.cup-mast::before {
  background: linear-gradient(90deg,#141718 13%,transparent 86%),url(/assets/league-winter-convoy.webp) center 54% / cover;
  filter: none;
}
.cup-mast b { color: #fff0c1; margin-right: 40%; font-size: clamp(55px,9vw,136px); text-shadow: 0 3px 24px #120f04 }
.cup-toolbar > nav a[aria-current="page"], .cup-table strong, .cup-podium article > b { background: var(--cup-accent); color: var(--cup-ink) }
.cup-tools { display: flex; align-items: center; gap: 10px; min-width: 0 }
.cup-tools .cup-picker { max-width: 190px }
.cup-season { border-radius: 15px; border: 1px solid var(--cup-line) }
.cup-season::before, .cup-season.archived::before { filter: grayscale(1) brightness(.84) }
.cup-season:hover::before, .cup-season:focus-visible::before { filter: none }
.cup-season:hover .cup-caption, .cup-season:focus-visible .cup-caption { box-shadow: inset 0 0 0 1px #aaafae88 }
.cup-cards .cup-empty { grid-column: 1/-1 }
.cup-event-header { display: grid; gap: 21px }
.cup-event-mast { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(170px,18vw,265px); display: grid; align-items: center; padding: 35px }
.cup-event-mast::before { content: ""; z-index: -1; position: absolute; inset: 0; background: linear-gradient(180deg,#12151a0a 50%,#11131575),url(/assets/league-coastal-compound.webp) center 49% / cover }
.cup-event-mast .cup-back, .cup-event-mast > .cup-btn { position: absolute }
.cup-event-mast .cup-back { inset: 12px auto auto 12px }
.cup-event-mast > .cup-btn { inset: auto 12px 12px auto }
.cup-event-mast .cup-cover-type { padding: 10px 0; pointer-events: none }
.cup-page-title h1 { font-size: clamp(30px,3.8vw,57px) }
.cup-page-title p { margin: 8px 0 0; color: var(--cup-muted) }
.cup-event-grid { min-width: 0; display: grid; grid-template-columns: minmax(0,2.4fr) minmax(250px,1fr); gap: 18px }
.cup-event-grid .cup-panel, .cup-rules-copy { border-radius: 14px; border: 1px solid var(--cup-line); padding: clamp(16px,2vw,26px) }
.cup-event-grid h2, .cup-rules-copy h2 { font-size: 19px; color: var(--cup-accent); letter-spacing: 0 }
.cup-panel-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px }
.cup-panel-heading a { color: var(--cup-muted); font-size: 14px; display: inline-flex; gap: 6px; align-items: center; margin-bottom: 12px }
.cup-panel-heading svg { width: 18px; height: 18px }
.cup-facts { grid-template-columns: repeat(3,minmax(0,1fr)) }
.cup-facts > div { background: var(--cup-panel-inset); border-radius: 10px }
.cup-facts > div svg { width: 38px; height: 38px; padding: 9px; border-radius: 9px; background: #c4cfce14; color: var(--cup-accent); margin-bottom: 10px }
.cup-facts b { overflow-wrap: anywhere }
.cup-my-clan > div, .cup-roster li { display: flex; gap: 12px; align-items: center }
.cup-my-clan img, .cup-roster img { object-fit: cover }
.cup-roster, .cup-prizes ol, .cup-schedule ol { margin: 0; padding: 0; list-style: none }
.cup-schedule ol { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px }
.cup-schedule li, .cup-prizes li, .cup-roster li { padding: 12px; border-radius: 8px; background: var(--cup-panel-inset) }
.cup-schedule small { display: block; color: var(--cup-muted); margin-bottom: 5px }
.cup-prizes ol { counter-reset: cup-prize; display: grid; gap: 7px }
.cup-prizes li { counter-increment: cup-prize; display: flex; align-items: center; gap: 10px; font-weight: 650 }
.cup-prizes li::before { content: '#' counter(cup-prize); font-size: 13px; font-weight: 750; color: var(--cup-accent) }
.cup-prizes li:first-child { background: #343a3c }
.cup-roster { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,205px),1fr)); gap: 8px; margin-bottom: 16px }
.cup-roster .clan-avatar { width: 38px; height: 38px; flex: 0 0 38px }
.cup-roster li span:not(.clan-avatar) { margin-left: auto; font-size: 13px; color: var(--cup-muted) }
#registration :is(h3,legend) { color: var(--cup-accent) }
.cup-rules-copy li { margin-bottom: 10px }
@media (max-width: 810px) {
  .cup-event-grid { grid-template-columns: minmax(0,1fr) }.cup-event-facts{order:-2}.cup-schedule{order:-1}
  .cup-toolbar { flex-wrap: wrap }
  .cup-notice > div { max-width: 76% }
}
@media (max-width: 520px) {
  .cup-notice::before { inset: 0 0 0 18%; opacity: .28 }
  .cup-notice > div { max-width: 100% }
  .cup-tools { flex-wrap: wrap; width: 100%; }
  .cup-event-mast { padding: 32px 16px 42px }.cup-event-mast .cup-cover-type { padding-top: 21px }
  .cup-event-mast > .cup-btn { min-height: 38px; padding: 8px 11px }
  .cup-facts { grid-template-columns: minmax(0,1fr) }
  .cup-facts > div { display: grid; grid-template-columns: 38px minmax(0,1fr); gap: 4px 10px }
  .cup-facts > div svg { grid-row: span 2; margin-bottom: 0 }
  .cup-facts b { margin-top: 0 }
}
.cup-league-card { background: linear-gradient(0deg,#172124e8,#17212494),url(/assets/rust-league-flight.webp) center / cover }
.cup-league-card h3, .cup-event-grid h2 { color: #f1f0eb }
.cup-season { justify-content: space-between }
.cup-schedule ol { display: flex; overflow-x: auto; padding: 14px 0; gap: 0; border-radius: 10px; background: #242526; scrollbar-color: #636566 #222 }
.cup-schedule li { display: grid; align-content: end; gap: 6px; flex: 1 0 148px; padding: 2px 20px; border-radius: 0; background: transparent }
.cup-schedule li + li { border-left: 1px solid #454749 }
.cup-schedule li small { font-size: 13px; margin: 0; color: #d3d5d4 }
.cup-schedule li time { color: #deddd9; font-size: 27px; font-weight: 720; line-height: 1; font-variant-numeric: tabular-nums }
.cup-schedule li strong { font-size: 16px; color: #c1c3c4 }
.cup-schedule li span { color: #b7bcbb; font-size: 14px }
.cup-event-grid .cup-schedule { min-width: 0 }
.cup-notice .cup-btn:focus-visible { outline-color: #fff }

.project-frostfire .ff-cup .cup-toolbar > nav a { background: transparent; color: #f3f3f3!important; text-shadow: none }
.project-frostfire .ff-cup .cup-toolbar > nav a[aria-current="page"] { color: #171819!important; background: #fff }
.project-frostfire .ff-cup .cup-toolbar > nav a:hover { color: #fff!important; background: #393d42 }
.ff-cup .cup-back { gap: 9px; border: 1px solid #ffffff3d; color: #fff; background: #151719e8; border-radius: 99px; padding: 8px 14px 8px 10px }
.ff-cup .cup-back:is(:hover,:focus-visible) { background: #792d32; border-color: #cc6469; color: white }
.cup-back svg, .cup-actions svg, .cup-event-mast > .cup-btn svg { width: 18px; height: 18px; flex: none }
.cup-back svg { transition: transform .16s ease-out }
@media (prefers-reduced-motion:no-preference) { .cup-back:is(:hover,:focus-visible) svg { transform: translateX(-3px) } }
.cup-tools { margin-bottom: 16px; flex-wrap: wrap; justify-content: space-between; padding: 12px; background: #1c1e20; border: 1px solid #333537; border-radius: 13px }
.cup-tools .cup-picker { z-index: 3 }
.cup-leagues { grid-template-columns: repeat(auto-fill,minmax(min(100%,310px),1fr)); max-width: 1440px }
.ff-cup .cup-league-card {
  display: grid; width: 100%; max-width: 460px; aspect-ratio: 1.24; min-height: 240px;
  place-content: center; justify-items: center; gap: 12px; text-align: center;
  border: 1px solid #35302d; border-radius: 20px;
  background: radial-gradient(ellipse at 50% -18%,#48372c 0,transparent 58%),#1a1b1b;
}
.ff-cup .cup-league-card::before { display: block; left: calc(50% - 24px); background: #ab7051 }
.cup-emblem { width: clamp(94px,10vw,140px); height: auto; margin-bottom: 6px; filter: drop-shadow(0 10px 8px #0008) }
.cup-league-link { display: inline-flex; gap: 4px; align-items: center; color: #bfb9b3; font-size: 13px }
.cup-league-link svg { width: 14px; height: 14px }
.ff-cup .cup-league-card:is(:hover,:focus-visible) { border-color: #72655a }
@media (prefers-reduced-motion:no-preference) {
  .cup-emblem { transition: transform .22s ease-out }
  .cup-league-card:is(:hover,:focus-visible) .cup-emblem { transform: translateY(-3px) rotate(-3deg) }
}
.cup-prizes li::before { content: none }
.cup-prizes li { display: grid; grid-template-columns: minmax(78px,auto) 1fr; gap: 12px; align-items: center; padding: 12px; border-left: 3px solid var(--metal,#999); background: #27292b }
.cup-place { display: flex; gap: 6px; align-items: center; color: var(--metal); font-weight: 650 }
.cup-place svg { width: 20px; height: 20px; flex: none }
.cup-prizes li strong { text-align: right; line-height: 1.35; font-variant-numeric: tabular-nums }
.cup-prizes li:first-child { --metal:#efd397; background: #322e27 }
.cup-prizes li:nth-child(2) { --metal:#c3d0da }
.cup-prizes li:nth-child(3) { --metal:#d6aa8e }
.cup-event-grid .cup-panel { background: #1b1d1f; border-color: #343638 }
.cup-facts > div { background: #242729 }
.cup-facts > div:nth-child(1) svg { color: #b6d2e0; background: #2b3a43 }
.cup-facts > div:nth-child(2) svg { color: #b9d1c1; background: #2a3932 }
.cup-facts > div:nth-child(3) svg { color: #e2cfad; background: #3c352b }
@font-face {
  font-family: CupOswald; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/assets/profile-oswald-latin-600-normal.woff2) format('woff2');
}
@font-face {
  font-family: CupOswald; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/assets/profile-oswald-cyrillic-600-normal.woff2) format('woff2');
  unicode-range: U+0400-052F,U+2116;
}
.ff-cup .cup-tools { width: fit-content; max-width: 100%; margin: 0 0 16px auto; padding: 0; background: transparent; border: 0 }
.cup-tools .cup-picker { max-width: min(250px,82vw); width: max-content }
.cup-picker summary, .cup-picker nav { background: #17191c; border: 1px solid #34383d }
.cup-picker summary:hover { background: #25292d }
.cup-league-card .cup-league-name { font: 600 clamp(24px,2vw,32px)/1.1 CupOswald,sans-serif; text-shadow: 0 1px 5px #000b }
.cup-podium { align-items: end; gap: clamp(8px,1.3vw,20px); grid-template-columns: 1.14fr 1fr .93fr }
.cup-podium .cup-step {
  --metal: #cbd6e0; --edge: #52616c; --face: 84px;
  min-width: 0; min-height: 235px; padding: 18px; border: 1px solid var(--edge);
  border-radius: 12px; align-content: end; gap: 12px;
  background: linear-gradient(160deg,#2c343c,#171b1f 65%);
}
.cup-podium .step-1 { --metal:#f1ce70; --edge:#66563c; --face:102px; min-height: 280px; background: linear-gradient(160deg,#38352e,#1a1b1b 65%) }
.cup-podium .step-3 { --metal:#cf9678; --edge:#574945; --face:66px; min-height: 208px; background: linear-gradient(160deg,#342e2c,#1b1b1d 65%) }
.cup-podium .cup-step::before { width: 42px; left: 18px; height: 2px; background: var(--metal) }
.cup-standing { display: flex; align-items: center; gap: 7px; color: var(--metal); font: 600 18px/1 CupOswald,sans-serif }
.cup-medal { width: 30px; height: 30px; object-fit: contain; flex: none }
.metal-2 { filter: grayscale(1) brightness(1.16) }
.metal-3 { filter: sepia(.35) saturate(.76) hue-rotate(-19deg) brightness(.92) }
.cup-podium .cup-step .clan-avatar { width: var(--face); height: var(--face); grid-row: auto; border: 2px solid var(--edge) }
.cup-podium .cup-step h3 { font: 600 clamp(22px,2.5vw,36px)/1.08 CupOswald,sans-serif; color: #f1f3f5; letter-spacing: .01em }
.cup-score { font: 600 18px/1.3 CupOswald,sans-serif; color: var(--metal); font-variant-numeric: tabular-nums }
.cup-event-grid .cup-panel, .ff-cup .cup-event-grid + .cup-panel, .ff-cup #registration { background: #14171b; border: 1px solid #30353b }
.cup-event-grid h2 { font: 600 24px/1.15 CupOswald,sans-serif; color: #eff1f2 }
.cup-event-grid .cup-facts > div, .cup-schedule ol, .cup-roster li { background: #1c2025 }
.cup-prizes li { background: #202329 }.cup-prizes li:first-child { background: #2a2721 }
.cup-place .cup-medal { width: 34px; height: 34px }
.cup-prizes li strong { font: 600 clamp(17px,1.3vw,22px)/1.15 CupOswald,sans-serif; color: #f5f1ed }
@media (max-width:760px) {
  .cup-podium { grid-template-columns: 1fr; gap: 9px }
  .cup-podium .cup-step { grid-template-columns: 60px minmax(0,1fr) auto; align-content: center; align-items: center; justify-items: start; gap: 5px 12px; min-height: 109px; padding: 14px; --face: 50px }
  .cup-podium .step-1 { min-height: 133px; --face: 60px }
  .cup-podium .step-3 { min-height: 94px; --face: 42px }
  .cup-podium .cup-step .clan-avatar { grid-column: 1; grid-row: 1 / span 2 }
  .cup-podium .cup-standing { grid-column: 2; grid-row: 1; font-size: 15px }
  .cup-podium .cup-medal { width: 22px; height: 22px }
  .cup-podium .cup-step h3 { grid-column: 2; grid-row: 2; padding: 0; font-size: 22px }
  .cup-podium .cup-score { grid-column: 3; grid-row: 1 / span 2; font-size: 16px }
}

.ff-cup .cup-standing { color: var(--metal); font-size: clamp(25px,2.4vw,36px); font-variant-numeric: tabular-nums }
.cup-score { display: grid; justify-items: center; gap: 3px }
.ff-cup .cup-score span, .ff-cup .cup-table td strong { color: #f17378; padding: 0; border: 0; background: transparent; font: 600 24px/1 CupOswald,sans-serif; font-variant-numeric: tabular-nums }
.cup-score small { color: #a7a5a4; font: 500 11px/1.2 system-ui,sans-serif }
.cup-table tbody tr:first-child td:first-child { color: #f1ce70 }
.cup-table tbody tr:nth-child(2) td:first-child { color: #cbd6e0 }
.cup-table tbody tr:nth-child(3) td:first-child { color: #cf9678 }
.cup-tags .cup-item { width: 21px; height: 21px; object-fit: contain }
.cup-facts .cup-item { width: 34px; height: 34px; object-fit: contain; margin-bottom: 8px }
@media (max-width:760px) {
  .ff-cup .cup-standing { font-size: 20px }
  .cup-facts .cup-item { grid-row: span 2; margin: 0 }
}
/* Rust screenshots: Facepunch Studios, official Steam gallery (app 252490).
   Wipe: https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/252490/ss_271feae67943bdc141c1249aba116349397e9ba9.1920x1080.jpg
   League: https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/252490/ss_6c6269c7c6164876585e0728742156b49af966af.1920x1080.jpg
   Cup: https://shared.akamai.steamstatic.com/store_item_assets/steam/apps/252490/69dc23d53163b755e809a562a377bd276154c70e/ss_69dc23d53163b755e809a562a377bd276154c70e.1920x1080.jpg
   Trophy: https://wiki.facepunch.com/rust/item/trophy */
.ff-cup .cup-notice {background:#151919;--poster-metal:#fbc797}
.ff-cup .cup-notice::before {
  inset:0; width:auto; opacity:1; filter:none; mask-image:none;
  background:linear-gradient(90deg,#131918de,transparent 67%),url(/assets/ff-ingame-wipe.webp) 72% 0% / cover;
}
.ff-cup .cup-mast {background:#080e23;--poster-metal:#c2d7ff}
.ff-cup .cup-mast::before {
  background:linear-gradient(90deg,#080d22a1,transparent 50%),url(/assets/ff-ingame-league.webp) 65% 10% / cover;
  filter:none;
}
.ff-cup .cup-event-mast,.ff-cup .cup-season {--poster-metal:#e6bc94}
.ff-cup .cup-event-mast::before,.ff-cup .cup-season::before {
  background:linear-gradient(90deg,#160f0c85,transparent 66%),url(/assets/ff-ingame-cup.webp) 68% 12% / cover;
}
.ff-cup .cup-season::before { filter: grayscale(.95) brightness(.53); transition: filter .32s ease-out }
.ff-cup .cup-season:focus-within::before { filter: none }
@media (hover:hover) { .ff-cup .cup-season:hover::before { filter: none } }
.ff-cup :is(.cup-mast,.cup-event-mast) {display:grid;place-items:end start;height:clamp(235px,24vw,355px);padding:clamp(18px,3vw,42px);border-radius:20px}
.cup-mast-copy {position:relative;max-width:62%;color:#fff3df}
.ff-cup .cup-mast-copy>span {font:750 11px/1.3 Inter,sans-serif;letter-spacing:.18em;color:#ffbd8b}
.ff-cup .cup-mast-copy :is(h1,strong) {display:block;margin:7px 0 14px;font:700 clamp(38px,5.5vw,82px)/.98 CupOswald,sans-serif;letter-spacing:-.045em;color:white}
/* Addresses printed on the tournament artwork. */
.ff-cup .cup-poster-addresses {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 22px;
  max-width: 100%;
  margin: 0;
  color: #f7f5f0;
  font: 600 clamp(13px, 1vw, 15px)/1.35 Inter, system-ui, sans-serif;
  letter-spacing: -.012em;
  text-shadow: 0 1px 3px #000b, 0 2px 9px #0009;
  pointer-events: none;
}
.cup-poster-addresses > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.ff-cup .cup-poster-addresses svg {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--poster-metal, #f3ece0);
  filter: drop-shadow(0 1px 2px #12100f);
}
.ff-cup .cup-notice .cup-poster-addresses {margin-bottom: clamp(14px, 1.4vw, 22px)}
.ff-cup .cup-mast-copy {text-shadow: 0 2px 12px #080c1080}
@media (max-width: 600px) {
  .ff-cup .cup-poster-addresses {align-items: flex-start; flex-direction: column; gap: 5px}
  .ff-cup .cup-notice .cup-poster-addresses {margin-bottom: 12px}
  .ff-cup :is(.cup-mast,.cup-event-mast)::before {
    background-image: linear-gradient(0deg,#0c1016d6,transparent 77%),var(--cup-phone-art);
  }
  .ff-cup .cup-mast {--cup-phone-art: url(/assets/ff-ingame-league.webp)}
  .ff-cup .cup-event-mast {--cup-phone-art: url(/assets/ff-ingame-cup.webp)}
}
.ff-cup .cup-start-line svg,.cup-start-date svg,.cup-schedule small svg {width:17px;height:17px;flex:none}
.cup-metric-list {display:flex;flex-wrap:wrap;gap:7px;list-style:none;padding:0;margin:12px 0 0}
.cup-metric-list li {display:flex;align-items:center;gap:6px;border:1px solid var(--cup-line);border-radius:8px;padding:5px 10px}
.cup-metric-list .cup-item {width:22px;height:22px;object-fit:contain}
.cup-winner svg {width:19px;height:19px;color:#edc477;vertical-align:middle}
@media(max-width:600px){
  .ff-cup .cup-mast::before,.ff-cup .cup-event-mast::before {background-position:72% 30%}
  .ff-cup .cup-season::before {background-position:75% 30%}
}
.ff-cup .cup-start-line svg,.cup-start-date svg,.cup-schedule small svg {width:17px;height:17px;flex:none}
.ff-cup .cup-start-line,.cup-schedule li small {display:flex;align-items:center;gap:8px;font-variant-numeric:tabular-nums}
.cup-caption .cup-start-date {display:grid;grid-template-columns:18px auto;align-items:center;column-gap:8px}
.cup-start-date svg {grid-row:span 2;color:#dec59c}
.cup-facts .cup-item {filter:drop-shadow(0 2px 2px #0005)}
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  .cup-facts>div :is(svg,.cup-item), .cup-start-date svg {transition:transform .2s ease-out}
  .cup-facts>div:hover :is(svg,.cup-item),.cup-season:hover .cup-start-date svg {transform:translateY(-2px) rotate(-5deg)}
}
@media (prefers-reduced-motion:reduce) { .ff-cup .cup-season::before {transition:none} }
@media(max-width:600px){
  .ff-cup .cup-notice::before {inset:0 0 auto;width:100%;height:65%;background-position:78% 40%;mask-image:linear-gradient(0deg,transparent, #000c 20%,black 58%)}
  .ff-cup .cup-notice {align-items:end;min-height:380px}
  .ff-cup .cup-mast-copy {max-width:100%}
  .ff-cup .cup-event-mast:has(>.cup-btn) {padding-bottom:68px}
  .ff-cup .cup-caption {flex-wrap:wrap}
  .ff-cup .cup-caption .cup-start-date {border:0;padding:2px 0}
}
.ff-cup .cup-toolbar {justify-content:space-between;overflow:visible;position:relative;z-index:4;flex-wrap:wrap;gap:10px}
.cup-toolbar>.cup-picker {min-width:155px}
.ff-cup .cup-picker nav {background:#262629;min-width:100%;text-align:left}
.ff-cup .cup-picker nav a {padding:12px 14px;white-space:nowrap}
.cup-picker[open] summary svg {transform:rotate(180deg)}
.ff-cup .cup-season {position:relative;align-items:start;gap:12px;padding:clamp(14px,2vw,24px);min-height:290px;aspect-ratio:1.95}
.cup-season .cup-caption {align-self:stretch;width:100%;position:static;color:white}
.cup-card-target::after {content:"";position:absolute;inset:0;z-index:1}
.ff-cup .cup-cover-word {margin:auto 0 0;color:#ffccae;font:650 13px/1.1 Inter,sans-serif;letter-spacing:.13em}
.ff-cup .cup-cover-word b {display:block;color:white;font:700 clamp(38px,5vw,76px)/1 CupOswald,sans-serif;letter-spacing:-.045em}
.ff-cup .cup-podium {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch}
.ff-cup .cup-podium .cup-step {
  order:initial;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:13px;
  min-height:clamp(230px,24vw,350px);padding:32px 12px 22px;text-align:center;border-radius:20px;
  background:radial-gradient(ellipse at 50% -38%,#663819 0,transparent 68%),#202021;border:1px solid #ffffff0f;
}
.ff-cup .cup-podium .cup-step::before {left:calc(50% - 24px);top:0;width:48px;height:3px;background:#d6531e}
.ff-cup .cup-placement {position:absolute;right:14px;top:8px;font:700 clamp(36px,4vw,60px)/1 CupOswald,sans-serif;color:transparent;-webkit-text-stroke:1px #8d796f8f}
.ff-cup .step-1 .cup-placement {-webkit-text-stroke-color:#db671f}
.ff-cup .cup-podium .cup-step .clan-avatar {width:clamp(72px,10vw,148px);height:clamp(72px,10vw,148px);border-radius:50%;border:1px solid #ffffff24;display:grid;place-items:center;object-fit:cover}
.ff-cup .cup-podium .cup-step h3 {color:#ff9359;font:750 clamp(20px,2vw,30px)/1.14 Inter,sans-serif;max-width:100%}
.cup-points-pill {padding:6px 15px;border-radius:999px;color:white;background:#ad3d13;font:700 14px/1.25 Inter,sans-serif}
.cup-prize-total {font:700 clamp(36px,5vw,62px)/1 CupOswald,sans-serif;color:#f1bf7f}
.cup-prize-lines {white-space:pre-line}
.ff-cup #registration form {display:grid;gap:10px;max-width:700px}
.ff-cup #registration .cup-members {display:block;margin:14px 0 0;padding:0;min-width:0;border:1px solid #ffffff24;border-radius:12px}
.cup-members legend {padding:0 6px;margin-left:12px;font-weight:650}
.ff-cup #registration .cup-list-tools,.ff-cup #registration .cup-member {display:flex;align-items:center;gap:12px;padding:11px 16px}
.ff-cup #registration .cup-list-tools {justify-content:space-between;border-bottom:1px solid #ffffff24}
.ff-cup #registration .cup-list-tools label {display:flex;align-items:center;gap:10px}
.ff-cup #registration .cup-member {cursor:pointer;margin:0;min-height:46px;overflow-wrap:anywhere}
.cup-member+.cup-member {border-top:1px solid #ffffff14}
.cup-member small {margin-left:auto;color:var(--muted)}
.cup-members input {width:18px;height:18px;accent-color:#e87940;flex:none}
.cup-members output {font-variant-numeric:tabular-nums}
.cup-member:hover {background:#ffffff09}
#registration button:disabled {opacity:.45;cursor:default}
html[data-brightness=light] .ff-cup {color:#242b28;--cup-surface:#fff}
html[data-brightness=light] .ff-cup :is(.cup-panel,#registration,.cup-table-wrap,.cup-empty,.lg-admin) {background:#fff;color:#2c3330;border-color:#cdd3cc}
html[data-brightness=light] .ff-cup :is(.cup-mast,.cup-event-mast,.cup-season,.cup-league-card,.cup-step,.cup-facts>div,.cup-roster li) {color:white}
html[data-brightness=light] .cup-prize-total {color:#854815}
html[data-brightness=light] .ff-cup .cup-members,html[data-brightness=light] .ff-cup .cup-member,html[data-brightness=light] .ff-cup .cup-list-tools {border-color:#d6d7ce!important}
@media(max-width:600px){
  .ff-cup .cup-podium {grid-template-columns:1fr}
  .ff-cup .cup-podium .cup-step {display:grid;grid-template-columns:74px minmax(0,1fr);grid-template-rows:auto auto;justify-items:start;align-content:center;min-height:112px;padding:18px;gap:8px 14px;text-align:left}
  .ff-cup .cup-podium .cup-step h3 {grid-column:2;grid-row:1;align-self:end;padding-right:25px}
  .ff-cup .cup-podium .cup-step .clan-avatar {grid-row:1 / 3;grid-column:1}
  .cup-points-pill {grid-column:2;grid-row:2;align-self:start}
  .ff-cup .cup-season {min-height:250px}
  .cup-toolbar>.cup-picker {min-width:130px}
}
.cup-stat-scroll {overflow-x:auto}
.cup-stat-scroll .cup-table {min-width:560px;font-variant-numeric:tabular-nums}
.cup-stat-scroll .cup-table tr>:first-child {width:auto;text-align:left}
@media(min-width:810px){
  .ff-cup .cup-event-mast {background:#171411}
  .ff-cup :is(.cup-notice,.cup-mast)::before {
    left: auto;
    width: 75%;
    mask-image: linear-gradient(90deg, transparent, black 32%);
  }
  .ff-cup .cup-event-mast::before {left:auto;width:min(100%,clamp(580px,60vw,888px));background-position:68% 15%;background-size:cover;mask-image:linear-gradient(90deg,transparent,black 22%)}
}

/* Smoked-glass tournament poster. */
.ff-cup .cup-season {--poster-metal:#efd19b;--glass-edge:#ffffff32;container-type:inline-size;padding:clamp(12px,1.3vw,20px);gap:12px;border-radius:22px;justify-content:space-between}
.ff-cup .cup-season::before {background-position:65% 14%;filter:saturate(.64) brightness(.68)}
.ff-cup .cup-season:focus-within::before {filter:none}
@media(hover:hover){.ff-cup .cup-season:hover::before {filter:none}}
.cup-season .cup-card-target {position:absolute;inset:0;z-index:1;border-radius:inherit}
.cup-season .cup-card-target:focus-visible {outline:2px solid #fff;outline-offset:-4px}
.cup-season .cup-card-target::after {content:none}
.cup-season .cup-tags {gap:5px}
.cup-season .cup-tags>span,.ff-cup .cup-season .cup-caption,.cup-prizes li .cup-place {
  border:1px solid var(--glass-edge,#ffffff30);
  background:linear-gradient(165deg,#ffffff17,transparent 58%),rgba(19,15,20,.78);
  box-shadow:inset 0 1px 0 #ffffff22,0 3px 9px #0003;
}
@supports (backdrop-filter:blur(8px)) {
  .cup-season .cup-tags>span,.ff-cup .cup-season .cup-caption,.cup-prizes li .cup-place {
    background:linear-gradient(160deg,#ffffff18,transparent 58%),rgba(17,14,18,.53);
    backdrop-filter:blur(12px) saturate(1.2);
  }
}
.cup-season .cup-tags>span {padding:6px 10px;color:#faf8fa;font:600 12px/1.35 Inter,system-ui,sans-serif}
.cup-season .cup-tags svg {width:15px;height:15px;color:#e5c4c8}
.cup-season .cup-poster-lockup {align-self:flex-start;margin-block:auto;max-width:70%}
.ff-cup .cup-season .cup-cover-word {color:#f4eef0;font:800 clamp(12px,2.4cqw,17px)/1 Inter,system-ui,sans-serif;letter-spacing:.11em}
.ff-cup .cup-season .cup-cover-word b {
  margin:4px 0 7px;font:700 clamp(46px,12.5cqw,90px)/.95 CupOswald,sans-serif;letter-spacing:-.035em;
  color:#b5a7a9;color:rgba(195,182,185,.67);-webkit-text-stroke:.7px #f4e3e55e;text-shadow:0 2px 6px #0004;
}
.ff-cup .cup-season:focus-within .cup-cover-word b {color:#ffdc95}
@media(hover:hover){.ff-cup .cup-season:hover .cup-cover-word b {color:#ffdc95}}
.ff-cup .cup-season .cup-poster-addresses {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-top: 11px;
  font-size: clamp(12px, 2cqw, 14px);
}
.ff-cup .cup-season .cup-poster-addresses svg {width: 15px; height: 15px}
.ff-cup .cup-season .cup-caption {padding:6px 6px 6px 14px;min-height:56px;gap:10px;border-radius:17px}
.ff-cup .cup-caption h3 {font:700 clamp(16px,3cqw,22px)/1.16 Inter,system-ui,sans-serif;letter-spacing:-.025em}
.ff-cup .cup-caption .cup-start-date {padding:7px 10px;background:#ffffff0b;border:1px solid #ffffff20;border-radius:12px}
.cup-season .cup-start-date svg {color:#e8c8cf}
.cup-prizes li .cup-place {width:fit-content;padding:3px 10px 3px 5px;border-radius:999px}
@media(max-width:600px){
  .ff-cup .cup-season {aspect-ratio:auto;min-height:320px}
  .cup-season .cup-fund-tag {max-width:100%}
  .ff-cup .cup-season .cup-caption {flex-wrap:wrap}
}

/* Gold finish on the tournament's in-game trophy mark. */
.ff-cup :is(.cup-event-mast .cup-mast-copy strong,.cup-season .cup-cover-word b)::after {
  content: "";
  display: inline-block;
  vertical-align: -.04em;
  width: .63em;
  height: .87em;
  margin-inline-start: .12em;
  background: url(/assets/ff-ingame-trophy.webp) center / contain no-repeat;
  filter: sepia(1) saturate(2.6) brightness(1.7) drop-shadow(0 2px 3px #0008);
}

.ff-cup .cup-season {background: #151413}
.ff-cup .cup-season::before {
  left: auto;
  width: 73%;
  background-position: 51% 12%;
  mask-image: linear-gradient(90deg, transparent, black 44%);
}
@media (max-width: 600px) {
  .ff-cup .cup-event-mast {background: #171411}
  .ff-cup .cup-event-mast::before {
    left: auto;
    width: 78%;
    background-position: 49% 15%;
    mask-image: linear-gradient(90deg, transparent, black 38%);
  }
}
.ff-cup .cup-score-scroll {max-width:100%; overflow-x:auto; padding:8px 12px; border-radius:14px}
.cup-score-table {min-width:550px; font-variant-numeric:tabular-nums}
.cup-score-table tr>td,.cup-score-table thead th {text-align:center; white-space:nowrap}
.cup-score-table tr>:nth-child(2) {text-align:left}
.cup-score-table tbody th b {font-weight:600; overflow-wrap:anywhere}
.ff-cup .cup-score-table td strong {
  display:inline-block; padding:4px 11px; border-radius:999px;
  background:#963e1b; color:#fff; font:700 14px/1.4 system-ui,sans-serif;
}
.cup-score-key {margin:12px 0; color:inherit}
.cup-score-key summary {width:fit-content; cursor:pointer; padding:5px 0; font-size:14px; font-weight:600}
.cup-score-key p {max-width:72ch; margin:6px 0 12px; line-height:1.55}
@media (max-width:600px){.ff-cup .cup-score-scroll {padding:4px 6px}}
.cup-team-score {display:flex; flex-wrap:wrap; gap:12px 28px; margin:0}
.cup-team-score dt {font-size:14px}
.cup-team-score dd {margin:4px 0 0; font-size:20px; font-weight:700; font-variant-numeric:tabular-nums}

/* League selection and tournament detail pages */
.ff-cup .cup-leagues{grid-template-columns:repeat(auto-fill,minmax(min(100%,360px),1fr))}
.ff-cup .cup-league-card{
  max-width:440px;min-height:clamp(265px,21vw,305px);aspect-ratio:1.48;
  background:radial-gradient(ellipse at 50% 25%,#614c3199,transparent 58%),linear-gradient(145deg,#282725,#1a1b1f);
  border-color:#9c806038
}
.ff-cup .cup-league-card::before{display:none}
.ff-cup .cup-league-card .cup-emblem{width:clamp(128px,11vw,160px);margin:0}
.ff-cup .cup-league-card:focus-visible{outline:2px solid #e8c486;outline-offset:3px}
.ff-cup.event-page{--event-ink:#f3f0e9;--event-muted:#bab9b7;--event-panel:#1d1e20;gap:clamp(14px,1.8vw,25px)}
.ff-cup .cup-event-mast.event-poster{
  height:auto;min-height:clamp(270px,24vw,365px);align-content:space-between;align-items:start;gap:35px;
  padding:clamp(18px,2.4vw,36px);color:white;background:#181614
}
.event-top{width:100%;display:flex;justify-content:space-between;align-items:center;gap:18px}
.event-poster .event-top .cup-back{position:static;color:white}
.event-poster .event-top .cup-poster-addresses{font-size:12px;gap:12px}
.event-poster::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#120f0de8,transparent 79%),linear-gradient(0deg,#1513128a,transparent 65%);pointer-events:none}
.event-intro{max-width:min(76%,820px);color:#fff}
.event-series,.event-meta,.event-meta>span{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.event-series{font:650 .83rem/1.3 Inter,sans-serif;color:#f4d299}
.event-series img{width:19px;height:24px;object-fit:contain}
.event-state{margin-left:4px;padding:4px 10px;background:#1f2422e8;color:#f4efdf;border-radius:20px}
.ff-cup .event-intro h1{margin:.16em 0;font:650 clamp(34px,4.4vw,68px)/1.07 CupOswald,sans-serif;letter-spacing:-.025em;text-wrap:balance;color:white}
.event-intro .event-meta{margin:10px 0 0;gap:6px 18px;font:550 .93rem/1.5 Inter,sans-serif;color:#f0e7dc}
.event-meta svg{width:16px;height:16px}
.ff-cup .event-intro .cup-btn{margin-top:16px;min-height:40px;padding:8px 18px;color:#261c0d;background:#f4cf90}
.event-intro .cup-btn svg{width:16px;height:16px}
.event-nav nav{max-width:100%;flex-wrap:wrap}
.ff-cup .event-nav a[aria-current=page]{background:#e8c994;color:#251d13}
.event-page .cup-event-grid{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:14px;align-items:start}
.ff-cup.event-page :is(.cup-panel,#registration){background:var(--event-panel);color:var(--event-ink);padding:clamp(17px,2vw,28px);border:0;border-radius:17px}
.ff-cup.event-page :is(.cup-panel,#registration)>h2,.event-page .cup-panel-heading h2{color:inherit;font:600 clamp(23px,2.1vw,32px)/1.16 CupOswald,sans-serif;letter-spacing:-.012em}
.event-page .cup-panel>p{color:var(--event-muted)}
.event-page .cup-facts>div{background:transparent;padding:4px 0;min-width:0}
.event-page .cup-facts small{color:var(--event-muted)}
.event-page .cup-facts b{font:600 clamp(18px,1.6vw,25px)/1.25 CupOswald,sans-serif;color:var(--event-ink)}
.event-page .cup-my-clan .cup-btn,.event-page #registration .cup-btn{border:1px solid #b5986d55}
.event-page .cup-schedule ol{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0;background:transparent}
.event-page .cup-schedule li{display:flex;flex-direction:column;align-items:flex-start;padding:12px;border:0;border-radius:10px;background:#27282b}
.event-page .cup-schedule li span{order:-2;font-size:.81rem}
.event-page .cup-schedule li :is(time,strong){order:-1}
.event-page .cup-schedule li time{font:600 1.8rem/1.15 CupOswald,sans-serif}
.event-page .cup-prizes li{border:0;border-radius:12px}
.event-page .cup-roster li{min-width:0;overflow-wrap:anywhere}
.event-page #points .cup-roster{display:grid;grid-template-columns:1fr}
.event-page #points .cup-roster li{display:grid;grid-template-columns:minmax(95px,.9fr) minmax(80px,1fr) minmax(100px,1.6fr) auto;align-items:center;gap:12px}
.point-delta{font-variant-numeric:tabular-nums;color:#a6d9ac}.point-delta.negative{color:#f4ada0}
.event-page .event-entrants .cup-roster{grid-template-columns:repeat(auto-fill,minmax(min(100%,205px),1fr));gap:8px}
.event-entrants .cup-roster span{white-space:nowrap}
html[data-brightness=light] .ff-cup.event-page{--event-panel:#f6f3ed;--event-ink:#282521;--event-muted:#625c55}
html[data-brightness=light] .event-page .cup-facts>div{color:var(--event-ink)}
@media(max-width:800px){.event-page .cup-event-grid{grid-template-columns:1fr}.event-page .cup-event-grid>*{order:0}}
@media(max-width:600px){
  .ff-cup .cup-league-card{min-height:220px;aspect-ratio:1.55}
  .ff-cup .cup-league-card .cup-emblem{width:116px}
  .ff-cup .cup-event-mast.event-poster{gap:36px;min-height:280px}
  .event-top{align-items:flex-start}.event-top .cup-poster-addresses{align-items:flex-end;flex-direction:column}
  .event-poster::after{background:linear-gradient(0deg,#151312e8,transparent),linear-gradient(90deg,#15131291,transparent)}
  .event-intro{max-width:100%}.ff-cup .event-nav nav a{padding:7px 10px;min-height:40px;font-size:.85rem}
  .event-page .cup-facts>div{grid-template-columns:34px minmax(0,1fr);align-items:center;padding:5px 0}
  .event-page #points .cup-roster li{grid-template-columns:minmax(0,1fr) auto}
}
