/* Generated by scripts/build-arena-cups-css.mjs from cups.css, cups-v2.css, cup-builder.css, cup-management.css, draft-arena.css. Do not edit. */
/* ---- cups.css ---- */
@font-face {
  font-family: CupClash;
  src: url("../media/Clash_Bold.otf.ttf") format("truetype");
  font-display: swap;
}
body {
  margin: 0;
  background: #100e0d;
  color: #e7dccb;
  font:
    15px/1.6 system-ui,
    sans-serif;
}
body:has([data-custom-cups]) {
  background:
    radial-gradient(ellipse at 70% 12%, #64461f30, transparent 50%), #100e0d;
}
a {
  color: inherit;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.5;
}
[data-custom-cups] {
  --cup-gold: #efbb60;
  --cup-accent: #e2b66c;
  --cup-line: #dfae584d;
  --cup-muted: #c1b09a;
  --cup-panel: #191613;
  min-height: calc(100dvh - 82px);
  overflow: clip;
}
[data-custom-cups] :is(h1, h2, h3) {
  font-family: CupClash, system-ui, sans-serif;
  line-height: 1.18;
  color: #f8eddb;
  text-shadow: 0 2px 0 #0009;
  letter-spacing: 0.02em;
}
[data-custom-cups] h1 {
  font-size: clamp(2.8rem, 6.2vw, 6.4rem);
  margin: 14px 0 24px;
}
[data-custom-cups] h2 {
  font-size: clamp(1.55rem, 2.5vw, 2.3rem);
  margin: 0 0 18px;
}
[data-custom-cups] h3 {
  font-size: 1.2rem;
  margin: 0 0 10px;
}
[data-custom-cups] p {
  color: var(--cup-muted);
}
[data-custom-cups] button:focus-visible,
[data-custom-cups] a:focus-visible {
  outline: 3px solid var(--cup-accent);
  outline-offset: 4px;
}
[data-custom-cups] [hidden] {
  display: none !important;
}
.cup-main {
  max-width: 1440px;
  margin: auto;
  padding: 0 clamp(16px, 4vw, 64px) 44px;
}
.cup-qa {
  background: #2a2117;
  color: #e8d5b4;
  text-align: center;
  padding: 4px 12px;
  font: 600 10px/1.5 system-ui;
  letter-spacing: 2px;
}
.cup-hero {
  position: relative;
  isolation: isolate;
  min-height: 610px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 70px 0 90px;
}
.cup-hero:before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 25px -80px 10px;
  background: radial-gradient(ellipse at 50% 55%, #79552450, transparent 65%);
  border-bottom: 1px solid #9a846040;
  transform: perspective(800px) rotateX(4deg);
  pointer-events: none;
}
.cup-hero-copy {
  position: relative;
  z-index: 3;
  max-width: 650px;
}
.cup-kicker {
  font: 700 10px/1.5 system-ui;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cup-accent) !important;
}
.cup-hero h1 {
  max-width: 650px;
}
.cup-hero h1 span {
  display: block;
  color: var(--cup-gold);
}
.cup-hero p {
  max-width: 440px;
  margin: 0 auto 26px;
}
.cup-hero .cup-kicker {
  margin-bottom: 20px;
}
.cup-hero-art {
  position: absolute;
  bottom: 65px;
  width: clamp(180px, 28vw, 390px);
  height: 420px;
  object-fit: contain;
  z-index: 1;
  pointer-events: none;
  animation: cup-entry 0.8s ease both;
}
.cup-hero-art.left {
  left: -70px;
  transform: rotate(-7deg);
}
.cup-hero-art.right {
  right: -60px;
  transform: rotate(5deg);
}
.cup-hero .cup-orbit {
  position: absolute;
  bottom: 45px;
  left: 15%;
  width: 70%;
  height: 120px;
  border: 1px solid #d3b27d30;
  border-radius: 50%;
  box-shadow:
    0 0 70px #98713233,
    inset 0 0 40px #9b76392b;
  z-index: 0;
}
.cup-sparks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, #efbb60 0 1px, transparent 2px),
    radial-gradient(circle at 70% 60%, #efbb60 0 2px, transparent 3px),
    radial-gradient(circle at 85% 25%, #dfc69e 0 1px, transparent 2px),
    radial-gradient(circle at 40% 75%, #efbb60 0 1px, transparent 2px);
  opacity: 0.65;
}
.cup-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  border-radius: 8px;
  border: 1px solid #ffe4ab;
  padding: 12px 23px;
  background: linear-gradient(#ffe4ac, #edb352 75%, #bf7c2b);
  box-shadow:
    inset 0 2px #fff8,
    0 3px #68451e,
    0 9px 28px #0005;
  color: #231b11;
  text-decoration: none;
  font:
    700 13px/1.5 CupClash,
    system-ui;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
}
.cup-button:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 2px #fff8,
    0 3px #68451e,
    0 12px 30px #d59a2622;
}
.cup-button.secondary {
  color: #f5ede0;
  background: linear-gradient(#3b3023, #251e17);
  border-color: #907852;
  box-shadow:
    inset 0 1px #f3eadc25,
    0 3px #100d0a;
}
.cup-button.danger {
  background: #542b36;
  color: #ffe5e9;
  border-color: #b5596b;
}
.cup-quiet {
  border: 1px solid #9a856443;
  background: #241e18;
  color: #ded0ba;
  border-radius: 6px;
  padding: 8px 12px;
  min-height: 40px;
}
.cup-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.cup-hero .cup-actions {
  justify-content: center;
}
.cup-mini-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}
.cup-entry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  position: relative;
  margin: -42px 0 70px;
  z-index: 5;
}
.cup-entry-card {
  padding: 25px;
  position: relative;
  border: 1px solid var(--cup-line);
  border-radius: 12px;
  background: linear-gradient(130deg, #29221b, #171411);
  text-decoration: none;
  box-shadow: 0 15px 40px #0004;
  transition:
    transform 0.2s,
    border-color 0.2s;
  animation: cup-entry 0.5s both;
}
.cup-entry-card:hover {
  transform: translateY(-4px);
  border-color: #d8bb8b;
}
.cup-entry-card small {
  color: #b79a6c;
  letter-spacing: 2px;
}
.cup-entry-card img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  position: absolute;
  right: 22px;
  top: 24px;
}
.cup-entry-card h3 {
  margin-top: 20px;
}
.cup-entry-card p {
  margin-bottom: 0;
  font-size: 13px;
  max-width: 230px;
}
.cup-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 30px 0 24px;
}
.cup-section-heading h2 {
  margin-bottom: 0;
}
.cup-section-heading .cup-kicker {
  margin: 0 0 8px;
}
.cup-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.cup-tile {
  display: block;
  text-decoration: none;
  min-width: 0;
  border: 1px solid var(--cup-line);
  background: linear-gradient(135deg, #28211a, #171411);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  animation: cup-entry 0.5s both;
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.cup-tile:hover {
  transform: translateY(-5px);
  border-color: #d7c4a6;
}
.cup-tile-art {
  position: relative;
  height: 175px;
  background: radial-gradient(ellipse at 60% 100%, #9f7a3f77, transparent 80%);
  overflow: hidden;
}
.cup-tile-art img {
  position: absolute;
  right: 15px;
  bottom: -45px;
  width: 185px;
  height: 220px;
  object-fit: contain;
}
.cup-tile-art:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 70%, #211c17);
}
.cup-tile-art .cup-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 1;
}
.cup-tile-body {
  padding: 20px 22px 24px;
}
.cup-tile-body h3 {
  overflow-wrap: anywhere;
}
.cup-tile-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #cabba3;
}
.cup-tile-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 15px 0;
}
.cup-tag,
.cup-badge {
  display: inline-block;
  padding: 5px 9px;
  border: 1px solid #b799685e;
  border-radius: 5px;
  background: #211b12da;
  color: #eadac1;
  font: 700 10px/1.4 system-ui;
  letter-spacing: 1px;
}
.cup-badge.live {
  color: #f4d599;
  border-color: #dfae5869;
}
.cup-badge.gold {
  color: var(--cup-gold);
  border-color: #e7b76765;
}
.cup-progress {
  height: 3px;
  background: #544a3a;
  margin: 20px 0 14px;
}
.cup-progress i {
  display: block;
  height: 100%;
  background: var(--cup-gold);
}
.cup-footer {
  max-width: 1320px;
  margin: 30px auto 0;
  border-top: 1px solid #8d7a5c3b;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 11px;
}
.cup-footer p {
  flex: 1;
}
.cup-footer a {
  text-decoration: none;
  color: #e0d7c9;
}
.cup-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  max-width: min(600px, 90vw);
  padding: 14px 20px;
  border: 1px solid #d79659;
  border-radius: 8px;
  background: #241d17;
  box-shadow: 0 8px 30px #000a;
  color: #fff;
  white-space: normal;
}
.cup-toast.error {
  border-color: #e7798a;
}
.cup-loading,
.cup-empty {
  padding: 55px 20px;
  color: var(--cup-muted);
  text-align: center;
  border: 1px dashed #8d754f5e;
  border-radius: 10px;
}
.cup-loading {
  margin-top: 50px;
}
.cup-back {
  display: inline-block;
  color: #d4c8b4;
  font-size: 12px;
  text-decoration: none;
  padding: 20px 0;
}
.cup-detail-header {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 0 30px;
  border-bottom: 1px solid var(--cup-line);
}
.cup-detail-header > div {
  min-width: 0;
  flex: 1;
}
.cup-detail-header h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin: 8px 0 14px;
}
.cup-detail-header p {
  margin: 0;
  font-size: 13px;
}
.cup-detail-header > img {
  width: 90px;
  height: 90px;
  object-fit: contain;
}
.cup-workspace {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 24px;
  margin-top: 28px;
}
.cup-control {
  border: 1px solid var(--cup-line);
  background: #1b1814;
  border-radius: 12px;
  padding: 22px;
  align-self: start;
}
.cup-control h2 {
  font-size: 1.2rem;
}
.cup-control .cup-button {
  width: 100%;
  margin: 5px 0;
  font-size: 11px;
}
.cup-control p {
  font-size: 12px;
  line-height: 1.6;
}
.cup-control .cup-quiet {
  width: 100%;
  margin: 5px 0;
}
.cup-control hr {
  border: 0;
  border-top: 1px solid var(--cup-line);
  margin: 20px 0;
}
.cup-rule {
  border-left: 2px solid #d5b582;
  padding-left: 13px;
}
.cup-rule b {
  color: #f2e8d8;
}
.cup-invite-box input {
  width: 100%;
  font: 12px system-ui;
  color: #e8dbc6;
  background: #14110e;
  border: 1px solid #675435;
  padding: 9px;
  border-radius: 6px;
}
.cup-live-region {
  min-width: 0;
}
.cup-roster {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.cup-entrant {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #241e17;
  border: 1px solid var(--cup-line);
  border-radius: 9px;
  padding: 16px;
  min-width: 0;
}
.cup-entrant > img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.cup-entrant > div {
  min-width: 0;
  flex: 1;
}
.cup-entrant b {
  display: block;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.cup-entrant p {
  font-size: 11px;
  margin: 4px 0;
  overflow-wrap: anywhere;
}
.cup-entrant code {
  font: 11px ui-monospace;
  white-space: nowrap;
  color: #cfba97;
}
.cup-entrant .cup-quiet {
  padding: 4px 8px;
  font-size: 11px;
}
.cup-versus {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 55px minmax(0, 1fr);
  gap: 15px;
  align-items: center;
  padding: 22px;
  border: 1px solid #bda47755;
  border-radius: 12px;
  background:
    radial-gradient(ellipse at 50% 50%, #8c734a33, transparent), #211b15;
  margin-bottom: 24px;
}
.cup-versus > span {
  font: 25px CupClash;
  color: var(--cup-gold);
  text-align: center;
}
.cup-fighter {
  min-width: 0;
  text-align: center;
}
.cup-fighter img {
  width: 66px;
  height: 66px;
  object-fit: contain;
}
.cup-fighter h3 {
  font-size: clamp(0.9rem, 1.6vw, 1.4rem);
  overflow-wrap: anywhere;
}
.cup-fighter small {
  display: block;
  color: #d2c2a8;
  font-size: 11px;
}
.cup-fighter code {
  font: 12px ui-monospace;
}
.cup-round-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.cup-round-head h2 {
  font-size: 1.4rem;
  margin: 0;
}
.cup-round-head select {
  width: auto;
  max-width: 180px;
}
.cup-stage {
  border: 1px solid var(--cup-line);
  border-radius: 12px;
  padding: 24px;
  background: linear-gradient(130deg, #282017, #171411);
  margin: 20px 0;
  position: relative;
  overflow: hidden;
}
.cup-stage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}
.cup-stage-header h2 {
  font-size: 1.45rem;
  margin: 0;
}
.cup-stage-header small {
  color: var(--cup-accent);
  font-size: 12px;
}
.cup-troops {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.cup-troop {
  position: relative;
  text-align: center;
  min-width: 0;
  min-height: 170px;
  border: 1px solid #9c845e5e;
  border-radius: 9px;
  background:
    radial-gradient(ellipse at 50% 90%, #ab885055, transparent 80%), #211d17;
  padding: 10px 4px;
  color: #f6f0e5;
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.cup-troop img {
  width: 100%;
  max-width: 120px;
  height: 120px;
  object-fit: contain;
  transition: transform 0.2s;
}
.cup-troop b {
  display: block;
  font-size: 11px;
  line-height: 1.4;
}
.cup-troop:not(:disabled):hover {
  transform: translateY(-5px);
  border-color: #ffd78b;
}
.cup-troop:not(:disabled):hover img {
  transform: translateY(-4px);
}
.cup-troop.is-banned {
  opacity: 0.5;
  border-color: #b36376;
  animation: cup-ban 0.45s ease;
}
.cup-troop.is-banned:after {
  content: "BANNED";
  position: absolute;
  inset: 45% 0 auto;
  color: #ffc8d1;
  font: 700 10px system-ui;
  letter-spacing: 3px;
  background: #75283ac9;
  padding: 6px;
  transform: rotate(-12deg);
}
.cup-draft-history {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0 0;
}
.cup-draft-history span {
  color: #e7aeb9;
  background: #6c30424d;
  border: 1px solid #a85c6c77;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 11px;
}
.cup-wheel-layout {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) 1fr;
  align-items: center;
  gap: 32px;
}
.cup-wheel-wrap {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1;
  margin: 16px auto;
}
.cup-wheel-wrap:before {
  content: "";
  position: absolute;
  inset: -12px;
  border: 2px solid #cba05e;
  border-radius: 50%;
  box-shadow:
    0 0 30px #e6b55a22,
    inset 0 0 5px #ffe5b0;
}
.cup-wheel-wrap:after {
  content: "";
  position: absolute;
  top: -12px;
  left: calc(50% - 12px);
  width: 24px;
  height: 30px;
  background: #ffe3a0;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  filter: drop-shadow(0 3px 3px #000);
  z-index: 3;
}
.cup-wheel {
  position: absolute;
  inset: 0;
  border: 10px solid #875e34;
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 3px #ffd185,
    inset 0 0 40px #0008;
  transition: transform 3.8s cubic-bezier(0.12, 0.72, 0.16, 1);
  background: conic-gradient(
    #7f602d 0 90deg,
    #76603c 90deg 180deg,
    #7f5a2e 180deg 270deg,
    #88652d 270deg 360deg
  );
}
.cup-wheel label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 35px;
  text-align: center;
  pointer-events: none;
  font: 700 11px/1.2 system-ui;
  color: #fff;
}
.cup-wheel label span {
  display: block;
  max-width: 90px;
  transform: rotate(90deg);
}
.cup-wheel-center {
  position: absolute;
  inset: 35%;
  background: linear-gradient(#30271c, #15120f);
  border: 2px solid #e7bd74;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 3px 15px #0009;
  pointer-events: none;
}
.cup-wheel-center img {
  width: 80%;
  height: 80%;
  object-fit: contain;
}
.cup-wheel-result h3 {
  color: var(--cup-gold);
  font-size: 1.65rem;
  animation: cup-entry 0.6s both;
}
.cup-wheel-result p {
  font-size: 13px;
}
.cup-wheel-result > img {
  height: 95px;
  width: 100px;
  object-fit: contain;
}
.cup-match-note {
  background: #171411;
  border: 1px solid var(--cup-line);
  padding: 16px;
  border-radius: 7px;
  font-size: 12px;
  color: #ddd1bd;
  margin: 18px 0;
}
.cup-match-note strong {
  color: #f5c879;
}
.cup-bracket {
  margin-top: 45px;
}
.cup-bracket-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}
.cup-bracket-toolbar h2 {
  font-size: 1.6rem;
}
.cup-bracket-viewport {
  overflow: auto;
  max-height: 630px;
  overscroll-behavior: contain;
  touch-action: pan-x pan-y;
  padding: 12px 0 28px;
  cursor: grab;
}
.cup-bracket-inner {
  display: flex;
  align-items: stretch;
  gap: 48px;
  transform-origin: 0 0;
  transition: transform 0.2s;
  width: max-content;
}
.cup-bracket-column {
  width: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 25px;
  position: relative;
}
.cup-bracket-column > h3 {
  font: 700 10px system-ui;
  color: #d0c0a5;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.cup-bracket-match {
  position: relative;
  border: 1px solid #88704a;
  border-radius: 9px;
  background: #211c17;
  padding: 10px;
  color: #e7dac6;
  text-align: left;
  width: 230px;
  min-height: 115px;
}
.cup-bracket-match:not(.is-final):after {
  content: "";
  position: absolute;
  right: -49px;
  top: 50%;
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, #bea886, #7e6947);
  pointer-events: none;
}
.cup-bracket-match small {
  display: block;
  color: #c0ad8f;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 9px;
}
.cup-bracket-team {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 3px;
  font-size: 12px;
  min-height: 32px;
  overflow-wrap: anywhere;
}
.cup-bracket-team img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.cup-bracket-team span {
  flex: 1;
  min-width: 0;
}
.cup-bracket-team.winner {
  color: #ffda93;
  background: #d4ad4c15;
}
.cup-bracket-match.is-selected {
  border-color: var(--cup-accent);
  box-shadow: 0 0 16px #c69a541a;
}
.cup-bracket-match.is-pending {
  border-style: dashed;
  opacity: 0.55;
}
.cup-champion {
  text-align: center;
  border: 1px solid #d9b15f80;
  border-radius: 16px;
  padding: 35px;
  background:
    radial-gradient(ellipse at 50% 20%, #b38b3b28, transparent 70%), #201b15;
  margin: 25px 0;
  animation: cup-entry 0.7s both;
}
.cup-champion > img {
  width: 110px;
  height: 110px;
  object-fit: contain;
}
.cup-champion h2 {
  color: var(--cup-gold);
  font-size: 2.5rem;
  margin: 14px 0;
}
.cup-score {
  font: 24px CupClash;
  color: var(--cup-gold);
}
.cup-dialog {
  background: #211b15;
  color: #f8f2e9;
  border: 1px solid #ab97775e;
  border-radius: 16px;
  width: min(740px, calc(100vw - 24px));
  max-height: calc(100dvh - 30px);
  overflow: auto;
  padding: 32px;
  box-shadow: 0 30px 100px #000a;
}
.cup-dialog::backdrop {
  background: #0c0a08e0;
  backdrop-filter: blur(7px);
}
.cup-dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
}
.cup-dialog-head h2 {
  margin-bottom: 8px;
}
.cup-step-progress {
  display: flex;
  gap: 10px;
  margin: 24px 0 30px;
}
.cup-step-progress span {
  height: 4px;
  background: #4b402e;
  flex: 1;
  border-radius: 4px;
}
.cup-step-progress .active {
  background: var(--cup-gold);
  box-shadow: 0 0 12px #ffd08044;
}
.cup-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.cup-option {
  border: 1px solid #866e4856;
  border-radius: 8px;
  background: #2b231a;
  color: #e9ddca;
  padding: 15px 7px;
  text-align: center;
  transition: transform 0.2s;
}
.cup-option img {
  height: 75px;
  width: 100%;
  object-fit: contain;
}
.cup-option b {
  display: block;
  font: 17px CupClash;
  margin: 5px;
}
.cup-option[aria-pressed="true"] {
  border-color: var(--cup-gold);
  box-shadow: inset 0 0 25px #d5a64e22;
  color: #ffe3a1;
  transform: translateY(-3px);
}
.cup-dialog label {
  display: block;
  font-size: 12px;
  color: #e1d4be;
  margin: 18px 0 6px;
}
.cup-dialog :is(input, select, textarea),
.cup-round-head select {
  background: #14110e;
  border: 1px solid #7a6542;
  border-radius: 6px;
  color: #f5eee3;
  padding: 12px;
  width: 100%;
  min-height: 46px;
  box-sizing: border-box;
}
.cup-dialog input[type="checkbox"] {
  width: 20px;
  min-height: 20px;
  margin-right: 8px;
  vertical-align: middle;
  accent-color: #e5b562;
}
.cup-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
}
.cup-dialog .cup-actions {
  justify-content: space-between;
  margin-top: 30px;
}
.cup-checkboxes {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.cup-checkboxes label {
  margin: 5px 0;
}
.cup-checkboxes.cup-townhalls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.cup-townhall {
  position: relative;
  cursor: pointer;
  min-width: 0;
}
.cup-dialog .cup-townhall input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  margin: 0;
  opacity: 0;
}
.cup-townhall-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px;
  border: 2px solid #6d5734;
  border-radius: 12px;
  background: linear-gradient(145deg, #2b241a, #15110c);
}
.cup-townhall-image {
  display: block;
  width: 96px;
  max-width: 100%;
  height: 96px;
  object-fit: contain;
}
.cup-townhall-visual b {
  font: 17px CupClash;
  color: #ebd9b9;
}
.cup-townhall-check {
  position: absolute;
  top: 7px;
  right: 7px;
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #f0c46e;
  color: #231707;
  font: 800 16px system-ui;
  visibility: hidden;
}
.cup-townhall input:checked + .cup-townhall-visual {
  border-color: #f0c46e;
  background: linear-gradient(145deg, #533b1c, #20170e);
  box-shadow: inset 0 0 20px #e0ac3c18;
}
.cup-townhall input:checked + .cup-townhall-visual .cup-townhall-check {
  visibility: visible;
}
.cup-townhall input:focus-visible + .cup-townhall-visual {
  outline: 3px solid #fff1c9;
  outline-offset: 3px;
}
@media (max-width: 560px) {
  .cup-checkboxes.cup-townhalls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .cup-townhall-image {
    width: 76px;
    height: 76px;
  }
}
.cup-summary {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 20px;
  border: 1px solid #aa926a58;
  border-radius: 9px;
  background: #2d2419;
}
.cup-summary img {
  width: 115px;
  height: 130px;
  object-fit: contain;
}
.cup-summary h3 {
  font-size: 1.6rem;
}
.cup-summary p {
  font-size: 13px;
  margin: 4px 0;
}
.cup-error {
  color: #ffb8c5 !important;
  font-size: 13px;
}
.cup-dialog .cup-hint {
  font-size: 12px;
  color: #c7b597;
}
.cup-overlay {
  padding: 0 !important;
  background: transparent !important;
}
.cup-overlay [data-custom-cups] {
  background: transparent;
}
.cup-overlay .cup-main {
  padding: 0;
  max-width: 1100px;
}
.cup-overlay .cup-detail-header,
.cup-overlay .cup-versus {
  background: #171411f2;
  padding: 25px;
  border-radius: 12px;
}
.cup-overlay .cup-detail-header h1 {
  font-size: 38px;
}
.cup-overlay .cup-main > div {
  margin: 0;
}
.cup-overlay .cup-bracket {
  background: #171411f0;
  padding: 25px;
  border-radius: 12px;
}
.cup-overlay .cup-qa {
  background: #33291ced;
}
.cup-skip-motion * {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
@keyframes cup-entry {
  from {
    opacity: 0;
    translate: 0 16px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes cup-ban {
  50% {
    box-shadow: 0 0 25px #ff516e66;
    border-color: #ff7991;
  }
}
@media (min-width: 1600px) {
  .cup-hero-art.left {
    left: -40px;
  }
  .cup-hero-art.right {
    right: -25px;
  }
}
@media (max-width: 1100px) {
  .cup-hero-art {
    width: 230px;
    opacity: 0.9;
  }
  .cup-hero-art.left {
    left: -100px;
  }
  .cup-hero-art.right {
    right: -100px;
  }
  .cup-workspace {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .cup-control {
    padding: 16px;
  }
  .cup-troops {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cup-wheel-layout {
    grid-template-columns: 1fr;
  }
  .cup-wheel-wrap {
    max-width: 260px;
  }
  .cup-wheel-result {
    text-align: center;
  }
  .cup-entry-card {
    padding: 20px;
  }
  .cup-entry-card img {
    width: 38px;
    height: 38px;
    right: 15px;
  }
  .cup-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .cup-main {
    padding: 0 18px 30px;
  }
  .cup-hero {
    min-height: 575px;
    padding: 55px 0 150px;
    align-items: start;
  }
  .cup-hero h1 {
    font-size: clamp(2.7rem, 10vw, 4.5rem);
    margin: 14px 0 20px;
  }
  .cup-hero p {
    font-size: 13px;
    max-width: 300px;
  }
  .cup-hero-art {
    height: 230px;
    width: 185px;
    bottom: 2px;
    opacity: 0.8;
  }
  .cup-hero-art.left {
    left: -35px;
  }
  .cup-hero-art.right {
    right: -35px;
  }
  .cup-hero-copy {
    z-index: 3;
  }
  .cup-hero .cup-orbit {
    bottom: 12px;
    left: -5%;
    width: 110%;
    height: 60px;
  }
  .cup-hero .cup-actions .secondary {
    display: none;
  }
  .cup-entry-grid {
    grid-template-columns: 1fr;
    margin: -5px 0 40px;
    gap: 9px;
  }
  .cup-entry-card {
    padding: 16px 18px 16px 77px;
  }
  .cup-entry-card img {
    left: 18px;
    top: 26px;
    width: 38px;
    height: 38px;
  }
  .cup-entry-card small {
    display: none;
  }
  .cup-entry-card h3 {
    margin: 0;
    font-size: 1.1rem;
  }
  .cup-entry-card p {
    font-size: 12px;
    margin: 6px 0;
    max-width: 100%;
  }
  .cup-grid {
    grid-template-columns: 1fr;
  }
  .cup-tile-art {
    height: 135px;
  }
  .cup-tile-art img {
    width: 165px;
    height: 180px;
    bottom: -30px;
  }
  .cup-tile-body {
    padding: 18px 20px;
  }
  .cup-workspace {
    display: flex;
    flex-direction: column;
    gap: 22px;
  }
  .cup-control {
    width: 100%;
    padding: 20px;
  }
  .cup-control .cup-actions {
    display: flex;
    flex-wrap: wrap;
  }
  .cup-control .cup-button,
  .cup-control .cup-quiet {
    width: auto;
    flex: 1;
    min-width: 130px;
  }
  .cup-control hr {
    margin: 14px 0;
  }
  .cup-detail-header {
    gap: 15px;
    align-items: flex-start;
  }
  .cup-detail-header > img {
    width: 55px;
    height: 65px;
  }
  .cup-detail-header h1 {
    font-size: 2rem;
    margin-top: 12px;
  }
  .cup-detail-header p {
    font-size: 11px;
  }
  .cup-roster {
    grid-template-columns: 1fr;
  }
  .cup-versus {
    padding: 15px;
    gap: 7px;
    grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr);
  }
  .cup-versus > span {
    font-size: 17px;
  }
  .cup-fighter img {
    width: 48px;
    height: 48px;
  }
  .cup-fighter h3 {
    font-size: 0.92rem;
    line-height: 1.4;
  }
  .cup-fighter code {
    font-size: 10px;
  }
  .cup-stage {
    padding: 18px;
  }
  .cup-stage-header {
    align-items: start;
    flex-direction: column;
  }
  .cup-troops {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }
  .cup-troop {
    min-height: 130px;
    padding: 6px;
  }
  .cup-troop img {
    height: 90px;
  }
  .cup-troop b {
    font-size: 9px;
  }
  .cup-wheel-layout {
    gap: 15px;
  }
  .cup-wheel-wrap {
    max-width: 240px;
  }
  .cup-wheel label {
    padding-top: 27px;
    font-size: 9px;
  }
  .cup-wheel label span {
    max-width: 68px;
  }
  .cup-wheel-result h3 {
    font-size: 1.5rem;
  }
  .cup-footer {
    padding: 20px 18px;
    flex-wrap: wrap;
  }
  .cup-footer > img {
    display: none;
  }
  .cup-footer p {
    font-size: 10px;
    flex-basis: 100%;
  }
  .cup-dialog {
    padding: 22px 18px;
  }
  .cup-dialog h2 {
    font-size: 1.5rem;
  }
  .cup-options {
    gap: 7px;
  }
  .cup-option {
    padding: 10px 3px;
  }
  .cup-option img {
    height: 55px;
  }
  .cup-option b {
    font-size: 14px;
  }
  .cup-form-grid {
    grid-template-columns: 1fr;
  }
  .cup-dialog .cup-actions {
    gap: 8px;
  }
  .cup-dialog .cup-button {
    font-size: 11px;
    padding: 12px 15px;
  }
  .cup-summary {
    padding: 14px;
    gap: 15px;
  }
  .cup-summary img {
    width: 80px;
  }
  .cup-summary h3 {
    font-size: 1.3rem;
  }
  .cup-section-heading h2 {
    font-size: 1.5rem;
  }
  .cup-section-heading > .cup-quiet {
    font-size: 11px;
  }
  .cup-bracket-column,
  .cup-bracket-match {
    width: 210px;
  }
  .cup-champion h2 {
    font-size: 1.8rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  [data-custom-cups] *,
  [data-custom-cups] *:before,
  [data-custom-cups] *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (min-width: 701px) {
  .cup-hero-copy {
    max-width: 780px;
  }
  .cup-hero h1 {
    max-width: none;
    font-size: clamp(2.5rem, 4.5vw, 4.6rem);
    text-wrap: initial;
  }
  .cup-hero h1 span {
    white-space: nowrap;
  }
}
.cup-tools {
  border-top: 1px solid var(--cup-line);
  padding: 15px 0 0;
  margin-top: 18px;
}
.cup-tools summary {
  cursor: pointer;
  font: 700 12px/1.5 system-ui;
  color: #f1e7d6;
  min-height: 28px;
}
.cup-tools .cup-rule {
  margin-top: 15px;
}
.cup-tools label {
  font-size: 11px;
  display: block;
  margin-top: 12px;
  color: #d0c0a5;
}
.cup-control .cup-tools + .cup-tools {
  margin-top: 4px;
}
.cup-wheel label {
  padding-top: 20px;
}
.cup-wheel label span {
  transform: none;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 2px;
}
.cup-wheel label img {
  width: 65px;
  height: 72px;
  object-fit: contain;
}
.cup-wheel label b {
  font: 700 10px system-ui;
  color: #f7e3b6;
  background: #241d13a8;
  border-radius: 50%;
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
}
.cup-wheel-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 25px 0 0;
  font-size: 11px;
  color: #e0d3bd;
}
.cup-wheel-legend b {
  color: #f7d28a;
  margin-right: 6px;
}
.cup-entrant img,
.cup-fighter > img {
  border-radius: 8px;
}
.cup-bracket-team img {
  border-radius: 4px;
}
@media (max-width: 700px) {
  .cup-wheel label {
    padding-top: 12px;
  }
  .cup-wheel label img {
    width: 43px;
    height: 50px;
  }
  .cup-wheel label b {
    font-size: 8px;
    width: 15px;
    height: 15px;
  }
  .cup-wheel-legend {
    font-size: 10px;
    gap: 10px;
  }
}
.cup-result-details > summary {
  min-height: 48px;
  cursor: pointer;
  padding: 12px 16px;
  border: 1px solid var(--cup-line);
  border-radius: 8px;
  color: #eadecb;
  font-size: 13px;
  background: #221c16;
}
.cup-champion {
  position: relative;
  overflow: hidden;
  animation:
    cup-entry 0.7s both,
    cup-coronation 1.8s ease both;
}
.cup-champion > *:not(.cup-sparks) {
  position: relative;
}
.cup-champion .cup-champion-photo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 2px solid var(--cup-gold);
  margin-left: 30px;
}
.cup-champion .cup-sparks {
  opacity: 0.4;
}
@keyframes cup-coronation {
  50% {
    box-shadow:
      0 0 45px #ffd08044,
      inset 0 0 60px #ffd08012;
  }
}
.cup-bracket-inner {
  position: relative;
}
.cup-bracket-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
  z-index: 0;
}
.cup-bracket-lines path {
  fill: none;
  stroke: #b09975;
  stroke-width: 1.3;
  opacity: 0.8;
  animation: cup-lines 0.5s ease both;
}
.cup-bracket-match:not(.is-final):after {
  display: none;
}
.cup-bracket-match {
  z-index: 1;
}
.cup-bracket-viewport:active {
  cursor: grabbing;
}
.cup-round-head,
.cup-stage,
.cup-champion {
  scroll-margin-top: 110px;
}
@keyframes cup-lines {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.8;
  }
}
.cup-overlay-disclaimer {
  font: 11px/1.5 system-ui;
  color: #d1c4ae;
  background: #171411cc;
  padding: 4px 12px;
  margin: 0;
  text-align: right;
}
@media (max-width: 700px) {
  .cup-detail-header {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
  }
  .cup-detail-header > img {
    width: 44px;
    height: 50px;
  }
  .cup-detail-header > div {
    min-width: 0;
  }
  .cup-detail-header > .cup-badge {
    grid-column: 2;
    justify-self: start;
  }
  .cup-detail-header h1 {
    font-size: clamp(1.55rem, 7vw, 1.9rem);
    line-height: 1.32;
    word-break: normal;
    text-wrap: initial;
  }
  .cup-detail-header .cup-kicker {
    font-size: 9px;
    letter-spacing: 1.3px;
  }
  .cup-detail-header p {
    line-height: 1.65;
  }
}
.cup-filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 22px;
}
.cup-filter-tabs [aria-pressed="true"] {
  color: #ffe0a0;
  border-color: #d8a758;
  background: #4b371c;
}
.cup-event-date {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin: 12px 0 4px;
}
.cup-reward-preview {
  font-size: 12px !important;
  line-height: 1.6;
  color: #e2bd7d !important;
}
.cup-event-timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin: 22px 0 26px;
}
.cup-event-timeline > div {
  padding: 16px;
  border: 1px solid #81633866;
  border-radius: 8px;
  background: #17130f;
}
.cup-event-timeline small,
.cup-event-rewards small {
  display: block;
  color: #bbaa91;
  font-size: 11px;
  margin-bottom: 7px;
}
.cup-event-timeline b {
  font-size: 14px;
  color: #efdbba;
}
.cup-event-rewards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.cup-event-rewards > div {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 18px;
  border: 1px solid #9471396b;
  border-radius: 9px;
  background: linear-gradient(130deg, #40301b, #21190f);
  font-size: 13px;
  color: #f3d99d;
}
.cup-plan-fields h3:not(:first-child) {
  margin-top: 20px;
}
.cup-plan-fields {
  border-top: 1px solid #765d3c55;
  margin-top: 25px;
  padding-top: 24px;
}
.cup-reward-row {
  display: grid;
  grid-template-columns: 65px minmax(0, 1fr) 80px;
  gap: 10px;
  margin-bottom: 10px;
}
.cup-reward-row input {
  min-width: 0;
}
.cup-event-plan > p {
  font-size: 13px;
}
.cup-event-plan .cup-kicker {
  font-size: 10px;
}
@media (max-width: 700px) {
  .cup-event-timeline {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .cup-event-timeline > div {
    padding: 12px 15px;
  }
  .cup-event-timeline small {
    margin-bottom: 4px;
  }
  .cup-event-rewards {
    grid-template-columns: 1fr;
  }
  .cup-reward-row {
    grid-template-columns: 55px minmax(0, 1fr) 65px;
    gap: 7px;
  }
  .cup-reward-row input {
    padding: 10px 7px;
  }
  .cup-filter-tabs .cup-quiet {
    font-size: 11px;
  }
  .cup-section-heading {
    align-items: start;
    flex-direction: column;
  }
  .cup-section-heading > .cup-actions {
    width: 100%;
  }
}
/* ---- cups-v2.css ---- */
/* Versioned tournament workspace. Scoped; shared Arena shell is unchanged. */
[data-custom-cups] .v2-tabs,
[data-custom-cups] .v2-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  align-items: center;
  margin: 16px 0;
}
[data-custom-cups] .v2-tabs button {
  border: 1px solid #78603b;
  background: #20190f;
  color: #e9d7b5;
  padding: 11px 15px;
  border-radius: 9px;
  cursor: pointer;
  min-height: 44px;
}
[data-custom-cups] .v2-tabs button[aria-pressed="true"] {
  border-color: #ffd580;
  background: #49351b;
  color: #fff1d5;
}
[data-custom-cups] .v2-banner {
  padding: 18px 24px;
  border: 1px solid #98713c;
  border-radius: 12px;
  background: linear-gradient(110deg, #3b2b17, #17130e);
  margin-bottom: 20px;
}
[data-custom-cups] .v2-banner p {
  margin-bottom: 0;
  line-height: 1.65;
}
[data-custom-cups] .v2-catalog-tools {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 14px 0;
}
[data-custom-cups] .v2-catalog-tools input,
[data-custom-cups] .v2-catalog-tools select {
  padding: 12px;
  border-radius: 7px;
  background: #15110c;
  color: #f6e5c6;
  border: 1px solid #74603d;
  min-width: 0;
  flex: 1;
}
[data-custom-cups] .v2-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(116px, 1fr));
  gap: 12px;
  max-height: 580px;
  overflow: auto;
  padding: 4px;
}
[data-custom-cups] .v2-item {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 8px;
  min-height: 146px;
  padding: 12px 6px;
  background: linear-gradient(145deg, #302719, #17130e);
  border: 1px solid #695334;
  border-radius: 12px;
  color: #f7e8cc;
  cursor: pointer;
}
[data-custom-cups] .v2-item img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}
[data-custom-cups] .v2-item b {
  font: 700 12px/1.35 system-ui;
  text-align: center;
  overflow-wrap: anywhere;
}
[data-custom-cups] .v2-item small {
  font-size: 10px;
  color: #c8b492;
}
[data-custom-cups] .v2-item[aria-pressed="true"] {
  border: 2px solid #ffd37a;
  background: #4c371b;
}
[data-custom-cups] .v2-item:disabled {
  opacity: 0.4;
  cursor: default;
}
[data-custom-cups] .v2-history {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 15px 0;
}
[data-custom-cups] .v2-history span {
  border: 1px solid #80603a;
  border-radius: 8px;
  padding: 8px 10px;
  background: #251b13;
  font-size: 12px;
}
[data-custom-cups] .v2-table-wrap {
  max-width: 100%;
  overflow: auto;
  border: 1px solid #765a30;
  border-radius: 12px;
  margin: 18px 0;
}
[data-custom-cups] .v2-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  font: 13px system-ui;
}
[data-custom-cups] .v2-table th,
[data-custom-cups] .v2-table td {
  padding: 14px 13px;
  border-bottom: 1px solid #584326;
  text-align: right;
}
[data-custom-cups] .v2-table :is(th, td):nth-child(2) {
  position: sticky;
  left: 0;
  text-align: left;
  background: #21190f;
  max-width: 240px;
  white-space: normal;
  overflow-wrap: anywhere;
}
[data-custom-cups] .v2-table tbody tr.qualifies {
  background: #98702a22;
}
[data-custom-cups] .v2-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 16px;
}
[data-custom-cups] .v2-grid article {
  padding: 18px;
  border: 1px solid #785d34;
  border-radius: 12px;
  background: #211b13;
}
[data-custom-cups] .v2-match {
  display: block;
  width: 100%;
  text-align: left;
  color: #f3e3c3;
  padding: 15px;
  border: 1px solid #685132;
  background: #211b13;
  border-radius: 10px;
  margin: 8px 0;
  cursor: pointer;
}
[data-custom-cups] .v2-match strong {
  display: block;
  margin: 7px 0;
}
[data-custom-cups] .v2-wheel {
  position: relative;
  margin: 25px auto;
  width: min(100%, 360px);
  aspect-ratio: 1;
  border: 13px solid #b48a47;
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 3px #ffe0a0,
    0 10px 35px #0008;
  transition: transform 4s cubic-bezier(0.12, 0.6, 0.08, 1);
}
[data-custom-cups] .v2-wheel::after {
  content: "CLASH ARENA";
  position: absolute;
  inset: 35%;
  border-radius: 50%;
  background: #1e170f;
  border: 3px solid #e5b567;
  display: grid;
  place-items: center;
  text-align: center;
  font: 16px CupClash;
  color: #ffdc8c;
}
[data-custom-cups] .v2-wheel label {
  position: absolute;
  inset: 9%;
  text-align: center;
  transform-origin: 50% 50%;
  font: 700 15px system-ui;
  color: #fff0cc;
}
[data-custom-cups] .v2-wheel-pointer {
  width: 0;
  height: 0;
  border: 13px solid transparent;
  border-top: 30px solid #ffe2a0;
  position: relative;
  margin: 0 auto -49px;
  z-index: 3;
}
[data-custom-cups] .v2-result {
  padding: 20px;
  border: 1px solid #c69b52;
  border-radius: 12px;
  background: #3a2b16;
  margin: 14px 0;
}
[data-custom-cups] .v2-result h3 {
  font: clamp(20px, 3vw, 30px) CupClash;
  color: #ffe0a1;
}
[data-custom-cups] .v2-step-title {
  font: clamp(20px, 4vw, 32px) CupClash;
}
[data-custom-cups] .v2-fieldset {
  border: 1px solid #715532;
  padding: 16px;
  border-radius: 10px;
  margin: 18px 0;
}
[data-custom-cups] .v2-fieldset label {
  display: block;
  margin: 12px 0;
  font: 13px/1.5 system-ui;
}
[data-custom-cups] .v2-fieldset input[type="checkbox"] {
  width: 20px;
}
[data-custom-cups] .v2-bracket {
  display: flex;
  gap: 24px;
  overflow: auto;
  padding: 16px 0;
  max-width: 100%;
}
[data-custom-cups] .v2-bracket > section {
  min-width: 240px;
  flex: 0 0 240px;
}
[data-custom-cups] .v2-bracket .winner {
  color: #ffce70;
}
[data-custom-cups] .v2-notice {
  font: 13px/1.6 system-ui;
  color: #cdbb9b;
}
[data-custom-cups] .v2-danger {
  background: #5e2320;
  border-color: #b8574d;
}
[data-custom-cups] .v2-rule-list {
  display: grid;
  gap: 12px;
}
[data-custom-cups] .v2-rule-list article {
  padding: 14px;
  border-left: 3px solid #e5b567;
  background: #2b2116;
}
@media (max-width: 600px) {
  [data-custom-cups] .v2-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  [data-custom-cups] .v2-banner {
    padding: 14px;
  }
  [data-custom-cups] .v2-tabs button {
    flex: 1 1 120px;
  }
  [data-custom-cups] .v2-catalog-tools > * {
    flex-basis: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  [data-custom-cups] .v2-wheel {
    transition: none !important;
  }
}
/* Keep the team column readable; only the table viewport scrolls on phones. */
[data-custom-cups] .v2-table {
  min-width: 850px;
}
[data-custom-cups] .v2-table :is(th, td):nth-child(2) {
  min-width: 180px;
  width: 210px;
  z-index: 1;
}
[data-custom-cups] .v2-table thead :is(th, td):nth-child(2) {
  z-index: 2;
}
[data-custom-cups] .v2-close {
  float: right;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #8c6d3d;
  border-radius: 8px;
  background: #302416;
  color: #ffe3ad;
  font: 28px system-ui;
  cursor: pointer;
}
[data-custom-cups] [data-dialog-error] {
  color: #ffd1c4;
  border: 1px solid #a95042;
  background: #461d18;
  padding: 12px;
  border-radius: 8px;
}
[data-custom-cups] .v2-wheel-legend {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  margin: 20px 0;
}
[data-custom-cups] .v2-wheel-legend article {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #6f5631;
  border-radius: 10px;
}
[data-custom-cups] .v2-wheel-legend img {
  object-fit: contain;
  flex: 0 0 64px;
}
[data-custom-cups] .v2-wheel-legend .selected {
  border-color: #f4cf7d;
  background: #4c381c;
}
/* ---- cup-builder.css ---- */
/* Tournament creator only. Arena's shared navigation, hub and matches are untouched. */
[data-custom-cups] .cup-dialog.is-builder {
  --cb-bg: #121110;
  --cb-panel: #211d17;
  --cb-gold: #efc16d;
  --cb-cream: #fff0d5;
  --cb-muted: #bbad96;
  --cb-edge: #71604a;
  --cb-focus: #ffe5a3;
  --cb-radius: 16px;
  width: min(1080px, calc(100vw - 40px));
  max-width: 1080px;
  max-height: min(940px, calc(100dvh - 40px));
  padding: 0;
  overflow: hidden;
  border: 1px solid #a88d58;
  border-radius: 20px;
  color: var(--cb-cream);
  background: var(--cb-bg);
  box-shadow:
    0 32px 110px #000c,
    0 1px 0 #fff2 inset;
}
[data-custom-cups] .is-builder::backdrop {
  background: #070606e3;
  backdrop-filter: blur(10px);
}
[data-custom-cups] .is-builder #cup-dialog-content {
  padding: 0;
  min-height: 0;
  max-height: inherit;
}
[data-custom-cups] .cup-builder {
  position: relative;
  max-height: inherit;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 85% 0, #92652c19, transparent 50%), var(--cb-bg);
  font:
    15px/1.5 system-ui,
    sans-serif;
  isolation: isolate;
}
[data-custom-cups] .cup-builder * {
  box-sizing: border-box;
  min-width: 0;
}
[data-custom-cups] .cup-builder [hidden] {
  display: none !important;
}
[data-custom-cups] .cup-builder :is(h2, h3, h4, p) {
  margin: 0;
}
[data-custom-cups] .cup-builder :is(h2, h3, h4) {
  text-wrap: balance;
  overflow-wrap: anywhere;
  text-shadow: 0 2px 1px #000a;
}
[data-custom-cups] .cb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 30px 14px;
  background: linear-gradient(110deg, #27211880, #141210b0);
  border-bottom: 1px solid #f2c47717;
  flex-shrink: 0;
}
[data-custom-cups] .cb-header > div {
  display: flex;
  align-items: center;
  gap: 13px;
}
[data-custom-cups] .cb-header img {
  object-fit: contain;
  filter: drop-shadow(0 3px 5px #0008);
  flex: 0 0 52px;
}
[data-custom-cups] .cb-header small {
  font: 700 9px/1 system-ui;
  letter-spacing: 0.21em;
  color: var(--cb-gold);
}
[data-custom-cups] .cb-header h2 {
  font:
    20px/1.3 CupClash,
    system-ui;
  letter-spacing: 0.01em;
  color: #fff1d4;
  margin-top: 5px;
}
[data-custom-cups] .cb-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 12px 30px 0;
  flex-shrink: 0;
}
[data-custom-cups] .cb-progress button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 0;
  border-bottom: 3px solid #4c4435;
  border-radius: 0;
  padding: 8px 12px 14px;
  text-align: left;
  color: #a99e8e;
  font: 600 13px/1.3 system-ui;
  cursor: pointer;
  opacity: 1;
  transition:
    color 0.16s,
    border-color 0.16s;
}
[data-custom-cups] .cb-progress button:disabled {
  cursor: default;
  color: #7c7468;
  opacity: 1;
}
[data-custom-cups] .cb-progress button[aria-current] {
  color: #ffe5ae;
  border-color: var(--cb-gold);
}
[data-custom-cups] .cb-progress button:not(:disabled):not([aria-current]) {
  color: #d7c49b;
  border-color: #7e6b40;
}
[data-custom-cups] .cb-step-number {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: grid;
  place-items: center;
  flex: 0 0 26px;
  font-size: 12px;
}
[data-custom-cups] .cb-progress [aria-current] .cb-step-number {
  background: var(--cb-gold);
  color: #241a0c;
  border-color: #ffdfa0;
  box-shadow: 0 2px 8px #0007;
}
[data-custom-cups] .cup-builder form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin: 0;
  overflow: hidden;
}
[data-custom-cups] .cb-body {
  padding: 26px 30px 32px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #846738 #171410;
  outline: 0;
  min-height: 0;
}
[data-custom-cups] .cb-section-heading {
  margin-bottom: 22px;
}
[data-custom-cups] .cb-eyebrow {
  display: block;
  font: 800 9px/1.4 system-ui;
  letter-spacing: 0.22em;
  color: var(--cb-gold);
  margin-bottom: 7px;
}
[data-custom-cups] .cb-section-heading h3 {
  font:
    clamp(23px, 3.3vw, 34px) / 1.22 CupClash,
    system-ui;
  color: #ffedcc;
}
[data-custom-cups] .cb-section-heading p {
  color: var(--cb-muted);
  font-size: 13px;
  line-height: 1.6;
  margin-top: 7px;
}
[data-custom-cups] .cb-reset {
  padding: 0;
  border: 0;
  margin: 0 0 20px;
  min-inline-size: 0;
}
[data-custom-cups] .cb-label {
  display: block;
  font: 700 12px/1.5 system-ui;
  color: #d5c5ac;
  letter-spacing: 0.03em;
  margin-bottom: 10px;
  padding: 0;
}
[data-custom-cups] .cup-builder label {
  margin: 0;
  color: inherit;
  font-size: inherit;
}
[data-custom-cups] .cb-modes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
[data-custom-cups] :is(.cb-mode, .cb-townhall) {
  position: relative;
  cursor: pointer;
  display: block;
}
[data-custom-cups]
  .cup-builder
  :is(
    .cb-mode,
    .cb-townhall,
    .cb-formats label,
    .cb-segments label,
    .cb-visibility label,
    .cb-check
  )
  input,
[data-custom-cups] .cup-builder .cb-toggle input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
  border: 0 !important;
  opacity: 0;
}
[data-custom-cups] .cb-mode-surface {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 204px;
  padding: 8px 10px 14px;
  border: 1px solid #645747;
  border-radius: var(--cb-radius);
  background:
    radial-gradient(ellipse at 50% 30%, #7f552425, transparent 70%),
    linear-gradient(150deg, #302a20, #191715 70%);
  box-shadow:
    inset 0 1px 0 #fff1,
    0 5px 10px #0005;
  transition:
    transform 0.16s ease,
    background 0.16s,
    border-color 0.16s,
    box-shadow 0.16s;
}
[data-custom-cups] .cb-mode-surface::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, #e5bb65, transparent);
  opacity: 0;
  transition: opacity 0.16s;
}
[data-custom-cups] .cb-mode img {
  height: 136px;
  width: 100%;
  max-width: 152px;
  object-fit: contain;
  filter: drop-shadow(0 12px 8px #0009);
  transition: transform 0.18s ease;
  z-index: 1;
}
[data-custom-cups] .cb-mode strong {
  font:
    26px/1.25 CupClash,
    system-ui;
  color: #f2e0c2;
  z-index: 1;
}
[data-custom-cups] .cb-mode small {
  font: 11px/1.4 system-ui;
  color: var(--cb-muted);
  text-align: center;
  display: block;
  margin-top: 3px;
}
[data-custom-cups] .cb-mode input:checked + .cb-mode-surface {
  border-color: #efc16d;
  background:
    radial-gradient(ellipse at 50% 35%, #ab772b55, transparent 75%),
    linear-gradient(150deg, #403223, #201b15);
  box-shadow:
    inset 0 0 0 1px #f5cc7d66,
    inset 0 1px 0 #ffe4a680,
    0 9px 15px #0006;
}
[data-custom-cups] .cb-mode input:checked + .cb-mode-surface::after {
  opacity: 1;
}
[data-custom-cups] .cb-mode input:checked + .cb-mode-surface strong {
  color: #ffe29c;
}
[data-custom-cups] .cb-chosen {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #f4c76d;
  border: 1px solid #ffe5a4;
  color: #261d0f;
  border-radius: 50%;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  font: 800 13px/1 system-ui;
  opacity: 0;
  transform: scale(0.8);
  transition:
    opacity 0.16s,
    transform 0.16s;
  z-index: 2;
  box-shadow: 0 2px 5px #0008;
}
[data-custom-cups] input:checked + span > .cb-chosen {
  opacity: 1;
  transform: scale(1);
}
[data-custom-cups] .cup-builder input:focus-visible + span,
[data-custom-cups] .cup-builder input:focus-visible ~ .cb-switch {
  outline: 3px solid var(--cb-focus);
  outline-offset: 4px;
}
[data-custom-cups]
  .cup-builder
  :is(button, select, a, input, textarea):focus-visible {
  outline: 3px solid var(--cb-focus);
  outline-offset: 3px;
}
[data-custom-cups] .cb-mode input:disabled + .cb-mode-surface {
  cursor: default;
}
@media (hover: hover) {
  [data-custom-cups] .cb-mode:hover .cb-mode-surface,
  [data-custom-cups] .cb-townhall:hover .cb-th-surface {
    transform: translateY(-3px);
    border-color: #c0a16b;
  }
  [data-custom-cups] .cb-mode:hover img {
    transform: translateY(-3px);
  }
}
[data-custom-cups] .cb-settings-line {
  display: grid;
  grid-template-columns: minmax(170px, 230px) 1fr;
  gap: 24px;
  align-items: center;
  padding: 0 0 22px;
  margin-bottom: 20px;
  border-bottom: 1px solid #ad8c4b20;
}
[data-custom-cups] .cb-settings-line > p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font: 12px/1.65 system-ui;
  color: var(--cb-muted);
}
[data-custom-cups] .cb-settings-line img {
  object-fit: contain;
  flex-shrink: 0;
  margin-top: 3px;
}
[data-custom-cups] .cb-field {
  display: flex !important;
  flex-direction: column;
  gap: 8px !important;
  margin: 0 !important;
  color: #d4c4aa !important;
  font: 600 12px/1.5 system-ui !important;
}
[data-custom-cups] .cb-field > span:first-child {
  margin-bottom: 0;
}
[data-custom-cups] .cb-select {
  position: relative;
  display: block;
}
[data-custom-cups]
  .cup-builder
  :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  font: 500 14px/1.5 system-ui;
  min-height: 46px;
  background: linear-gradient(#161310, #1e1914);
  color: #ffedca;
  border: 1px solid #796345;
  border-radius: 9px;
  padding: 12px 14px;
  box-shadow: 0 2px 5px #0005 inset;
  width: 100%;
  max-width: 100%;
}
[data-custom-cups] .cup-builder textarea {
  resize: vertical;
  min-height: 78px;
}
[data-custom-cups] .cb-select select {
  appearance: none;
  padding-right: 40px;
  cursor: pointer;
}
[data-custom-cups] .cb-select > span {
  pointer-events: none;
  position: absolute;
  right: 15px;
  top: 12px;
  color: #e9ba65;
  font-size: 18px;
}
[data-custom-cups] .cup-builder option {
  background: #241c13;
  color: #fff0cf;
}
[data-custom-cups] .cb-townhalls {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
[data-custom-cups] .cb-th-surface {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  background:
    radial-gradient(ellipse at 50% 65%, #b48f3e1a, transparent 65%),
    linear-gradient(#24211c, #191715);
  border: 1px solid #51493d;
  border-radius: 12px;
  min-height: 140px;
  padding: 6px 12px 10px;
  box-shadow:
    inset 0 1px 0 #fff1,
    0 4px 8px #0004;
  transition:
    transform 0.16s,
    border-color 0.16s,
    background 0.16s;
}
[data-custom-cups] .cb-th-surface img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  filter: drop-shadow(0 8px 5px #0008);
}
[data-custom-cups] .cb-th-surface strong {
  font:
    17px/1.4 CupClash,
    system-ui;
}
[data-custom-cups] .cb-townhall input:checked + .cb-th-surface {
  border-color: #edc16b;
  box-shadow:
    inset 0 0 0 1px #edc16b44,
    0 5px 12px #0005;
  background:
    radial-gradient(ellipse at 50% 60%, #b48f3e35, transparent 70%), #2d261b;
}
[data-custom-cups] .cb-setting-slab {
  background: linear-gradient(110deg, #282219, #1e1a15);
  padding: 15px 18px;
  border-radius: 12px;
  border: 1px solid #65513855;
}
[data-custom-cups] .cb-toggle {
  position: relative;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 50px;
  cursor: pointer;
}
[data-custom-cups] .cb-toggle strong {
  display: block;
  font: 650 13px/1.4 system-ui;
  color: #f5e2bf;
}
[data-custom-cups] .cb-toggle small {
  display: block;
  font: 12px/1.5 system-ui;
  color: var(--cb-muted);
  margin-top: 4px;
}
[data-custom-cups] .cb-switch {
  width: 45px;
  min-width: 45px;
  height: 26px;
  border-radius: 20px;
  border: 1px solid #75644e;
  background: #100f0d;
  box-shadow: inset 0 2px 4px #0009;
  position: relative;
  transition: background 0.16s;
}
[data-custom-cups] .cb-switch::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(#afa08c, #736652);
  box-shadow: 0 2px 3px #0008;
  transition:
    transform 0.16s,
    background 0.16s;
}
[data-custom-cups] .cb-toggle input:checked ~ .cb-switch {
  background: #725225;
  border-color: #d9b567;
}
[data-custom-cups] .cb-toggle input:checked ~ .cb-switch::before {
  transform: translateX(19px);
  background: linear-gradient(#ffe6a1, #e5aa41);
}
[data-custom-cups] .cb-hint {
  font: 12px/1.6 system-ui;
  color: var(--cb-muted);
  margin-top: 10px !important;
}
[data-custom-cups] .cb-announcement {
  font: 12px/1.6 system-ui;
  color: #f6d594;
}
[data-custom-cups] .cb-announcement:empty {
  display: none;
}
[data-custom-cups] .cb-preset-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}
[data-custom-cups] .cb-preset-heading [data-preset-status] {
  font: 600 10px/1.4 system-ui;
  color: #e4bc74;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
[data-custom-cups] .cb-presets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 24px;
}
[data-custom-cups] .cb-preset {
  position: relative;
  border: 1px solid #514739;
  border-radius: 11px;
  background: linear-gradient(140deg, #2c251b, #1a1713);
  color: #f1ddbc;
  padding: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  min-height: 112px;
  box-shadow:
    0 3px 8px #0004,
    inset 0 1px 0 #fff1;
  transition:
    transform 0.16s,
    border-color 0.16s,
    background 0.16s;
}
[data-custom-cups] .cb-preset img {
  object-fit: contain;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 3px 3px #0007);
}
[data-custom-cups] .cb-preset strong {
  font:
    14px/1.3 CupClash,
    system-ui;
  display: block;
}
[data-custom-cups] .cb-preset small {
  font: 11px/1.5 system-ui;
  display: block;
  color: #bdad95;
  margin-top: 5px;
}
[data-custom-cups] .cb-preset-check {
  display: none;
  position: absolute;
  bottom: 6px;
  right: 8px;
  color: var(--cb-gold);
  font: 700 12px system-ui;
}
[data-custom-cups] .cb-preset[aria-pressed="true"] {
  border-color: #dfb65f;
  background: linear-gradient(130deg, #46351f, #252016);
  box-shadow:
    inset 0 1px 0 #ffe7a84d,
    0 3px 8px #0005;
}
[data-custom-cups] .cb-preset[aria-pressed="true"] .cb-preset-check {
  display: block;
}
@media (hover: hover) {
  [data-custom-cups] .cb-preset:hover {
    border-color: #b99b63;
    transform: translateY(-2px);
  }
}
[data-custom-cups] .cb-formats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
[data-custom-cups] .cb-formats label,
[data-custom-cups] .cb-visibility label {
  position: relative;
  cursor: pointer;
}
[data-custom-cups] .cb-formats label > span {
  display: grid;
  grid-template-columns: 32px 1fr;
  column-gap: 9px;
  padding: 14px 12px;
  border-radius: 10px;
  border: 1px solid #574935;
  background: #211d17;
  min-height: 90px;
  box-shadow: inset 0 1px 0 #fff1;
  transition:
    background 0.16s,
    border-color 0.16s;
}
[data-custom-cups] .cb-formats img {
  grid-row: 1/3;
  object-fit: contain;
}
[data-custom-cups] .cb-formats strong {
  font: 650 12px/1.4 system-ui;
}
[data-custom-cups] .cb-formats small {
  font: 11px/1.5 system-ui;
  color: var(--cb-muted);
  margin-top: 3px;
}
[data-custom-cups] .cb-formats input:checked + span,
[data-custom-cups] .cb-visibility input:checked + span {
  background: #3a2d1a;
  border-color: #d7ac5c;
  box-shadow: inset 0 0 0 1px #d7ac5c33;
}
[data-custom-cups] .cb-format-note {
  display: flex;
  gap: 8px;
  color: #baac97;
  font: 12px/1.65 system-ui;
  margin: -5px 0 22px !important;
  align-items: flex-start;
}
[data-custom-cups] .cb-format-note img {
  object-fit: contain;
  flex: 0 0 24px;
}
[data-custom-cups] .cb-format-settings {
  margin: -6px 0 16px;
  max-width: 240px;
}
[data-custom-cups] .cb-three-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: none;
}
[data-custom-cups] .cb-rule-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
[data-custom-cups] .cb-rule-panel {
  background: linear-gradient(145deg, #262118, #1c1915);
  border-radius: 14px;
  border: 1px solid #7b634033;
  padding: 20px;
}
[data-custom-cups] .cb-rule-panel > header {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}
[data-custom-cups] .cb-rule-panel > header img {
  object-fit: contain;
  flex: 0 0 42px;
  filter: drop-shadow(0 2px 4px #0008);
}
[data-custom-cups] .cb-rule-panel h4 {
  font:
    18px/1.3 CupClash,
    system-ui;
  color: #ffe1a1;
}
[data-custom-cups] .cb-rule-panel header p {
  font: 11px/1.5 system-ui;
  color: var(--cb-muted);
  margin-top: 4px;
}
[data-custom-cups] .cb-rule-panel .cb-toggle {
  margin-top: 16px;
}
[data-custom-cups] .cb-segments {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  background: #110f0d;
  border: 1px solid #564631;
  padding: 4px;
  border-radius: 11px;
}
[data-custom-cups] .cb-segments label {
  cursor: pointer;
  position: relative;
}
[data-custom-cups] .cb-segments label > span {
  display: grid;
  place-items: center;
  min-height: 38px;
  font: 650 13px/1.4 system-ui;
  border-radius: 7px;
  color: #bdaf96;
  border: 1px solid transparent;
  transition: background 0.16s;
}
[data-custom-cups] .cb-segments input:checked + span {
  background: linear-gradient(#d3a858, #a2722d);
  color: #21170b;
  border-color: #f3ce86;
  box-shadow: 0 2px 4px #0007;
}
[data-custom-cups] .cb-disclosure {
  border-top: 1px solid #9e7b3e30;
  margin-top: 18px;
  padding-top: 14px;
}
[data-custom-cups] .cb-disclosure summary {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  cursor: pointer;
  list-style: none;
  font: 650 12px/1.5 system-ui;
  color: #dac5a4;
  min-height: 34px;
}
[data-custom-cups] .cb-disclosure summary::-webkit-details-marker {
  display: none;
}
[data-custom-cups] .cb-disclosure summary img {
  object-fit: contain;
}
[data-custom-cups] .cb-disclosure[open] summary {
  color: #ffe1a0;
  margin-bottom: 14px;
}
[data-custom-cups] .cb-disclosure > summary > span {
  color: #c3a36a;
  font-size: 11px;
}
[data-custom-cups] .cb-category-list,
[data-custom-cups] .cb-challenge-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  margin-top: 12px;
}
[data-custom-cups] .cb-check {
  position: relative;
  display: flex !important;
  align-items: flex-start;
  gap: 9px;
  cursor: pointer;
  min-height: 40px;
  font: 12px/1.6 system-ui !important;
  padding: 6px 0;
}
[data-custom-cups] .cb-tick {
  border: 1px solid #8e744e;
  box-shadow: 0 1px 4px #0005 inset;
  border-radius: 5px;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  line-height: 18px;
  color: transparent;
  background: #17130f;
  display: grid;
  place-items: center;
  font: 800 13px system-ui;
}
[data-custom-cups] .cb-check input:checked + .cb-tick {
  color: #2e200c;
  background: #edbf68;
  border-color: #ffe1a2;
}
[data-custom-cups] .cb-exclusions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
[data-custom-cups] .cb-exclusions > span {
  font-size: 11px;
  color: var(--cb-muted);
}
[data-custom-cups] [data-wheel-settings] {
  margin-top: 18px;
}
[data-custom-cups] .cb-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
[data-custom-cups] .cb-custom-rule {
  margin: 16px 0;
  padding: 14px;
  border: 1px solid #796037;
  border-radius: 10px;
  display: grid;
  gap: 12px;
}
[data-custom-cups] .cb-custom-rule legend {
  font-size: 12px;
  color: #dfb86e;
}
[data-custom-cups] .cb-advanced-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px;
}
[data-custom-cups] .cb-final-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: start;
}
[data-custom-cups] .cb-final-settings {
  display: grid;
  gap: 22px;
}
[data-custom-cups] .cb-final-settings > [data-creator] input[name="name"] {
  font-size: 18px;
}
[data-custom-cups] .cb-visibility {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
[data-custom-cups] .cb-visibility label > span {
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
  gap: 7px;
  padding: 16px 12px;
  min-height: 148px;
  border: 1px solid #564936;
  border-radius: 12px;
  background: #221c14;
  box-shadow:
    0 4px 9px #0004,
    inset 0 1px 0 #fff1;
}
[data-custom-cups] .cb-visibility img {
  object-fit: contain;
}
[data-custom-cups] .cb-visibility strong {
  font:
    16px/1.3 CupClash,
    system-ui;
}
[data-custom-cups] .cb-visibility small {
  font: 11px/1.5 system-ui;
  color: var(--cb-muted);
}
[data-custom-cups] .cb-policy {
  border-top: 1px solid #82653655;
  padding-top: 18px;
}
[data-custom-cups] .cb-policy header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
}
[data-custom-cups] .cb-policy header img {
  object-fit: contain;
}
[data-custom-cups] .cb-policy h4 {
  font: 650 13px/1.4 system-ui;
  text-shadow: none;
}
[data-custom-cups] .cb-policy p {
  font: 12px/1.6 system-ui;
  color: var(--cb-muted);
  margin-bottom: 8px;
}
[data-custom-cups] .cb-policy a {
  font: 600 12px/1.6 system-ui;
  color: #e3b969;
  display: inline-block;
  text-underline-offset: 3px;
  min-height: 28px;
}
[data-custom-cups] .cb-policy .cb-check {
  margin-top: 8px;
  padding: 12px;
  border-radius: 10px;
  background: #262016;
  border: 1px solid #6c5536;
  font-size: 12px !important;
}
[data-custom-cups] .cb-preview {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 0, #b3812933, transparent 65%),
    linear-gradient(150deg, #34291a, #1d1913);
  border: 1px solid #b58c46;
  border-radius: var(--cb-radius);
  padding: 24px;
  box-shadow:
    inset 0 1px 0 #ffe6ac66,
    0 12px 24px #0005;
  min-width: 0;
}
[data-custom-cups] .cb-preview::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffe9aa, transparent);
}
[data-custom-cups] .cb-preview-crown {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 17px;
}
[data-custom-cups] .cb-preview-crown img {
  object-fit: contain;
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 5px 5px #0007);
}
[data-custom-cups] .cb-preview-crown span {
  font: 750 10px/1.6 system-ui;
  letter-spacing: 0.16em;
  color: #e4bc72;
}
[data-custom-cups] .cb-preview h4 {
  font:
    25px/1.3 CupClash,
    system-ui;
  color: #ffe6ac;
  overflow-wrap: anywhere;
}
[data-custom-cups] .cb-preview-mode {
  font:
    20px/1.4 CupClash,
    system-ui;
  color: #f1c16e;
  margin: 10px 0 !important;
}
[data-custom-cups] .cb-preview-mode span {
  font: 600 12px/1.4 system-ui;
  color: #d3c3a6;
}
[data-custom-cups] .cb-preview-ths {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-bottom: 17px;
  margin-bottom: 6px;
  border-bottom: 1px solid #a8854555;
}
[data-custom-cups] .cb-preview-ths span {
  display: flex;
  align-items: center;
  gap: 4px;
  font: 600 11px system-ui;
  color: #e1cead;
}
[data-custom-cups] .cb-preview-ths img {
  object-fit: contain;
}
[data-custom-cups] .cb-preview-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 0;
  border-bottom: 1px solid #a8854528;
}
[data-custom-cups] .cb-preview-row img {
  object-fit: contain;
  flex: 0 0 30px;
}
[data-custom-cups] .cb-preview-row small {
  display: block;
  font: 11px/1.5 system-ui;
  color: var(--cb-muted);
}
[data-custom-cups] .cb-preview-row strong {
  display: block;
  font: 650 13px/1.5 system-ui;
  color: #f4e3c4;
}
[data-custom-cups] .cb-preview-note {
  font: 11px/1.65 system-ui;
  color: #b9a687;
  margin-top: 17px !important;
}
[data-custom-cups] .cb-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-shrink: 0;
  padding: 17px 30px;
  background: linear-gradient(#211c16, #181511);
  border-top: 1px solid #a984433d;
  box-shadow: 0 -8px 18px #0002;
  z-index: 3;
}
[data-custom-cups] .cb-footer > p {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 11px/1.4 system-ui;
  color: #b7a88e;
}
[data-custom-cups] .cb-footer > p img {
  object-fit: contain;
}
[data-custom-cups] .cb-footer > div {
  display: flex;
  gap: 12px;
  align-items: center;
  position: relative;
}
[data-custom-cups] .cb-button {
  position: relative;
  min-height: 45px;
  min-width: 90px;
  border-radius: 9px;
  border: 1px solid transparent;
  padding: 12px 22px;
  font:
    14px/1.3 CupClash,
    system-ui;
  text-align: center;
  transition:
    transform 0.14s,
    filter 0.14s,
    box-shadow 0.14s;
  cursor: pointer;
  text-shadow: 0 1px 0 #0002;
}
[data-custom-cups] .cb-primary {
  background: linear-gradient(#ffdf85, #efb74d 55%, #d9942f);
  border-color: #efc97a;
  color: #2b1d09;
  box-shadow:
    inset 0 2px 0 #fff2c0,
    0 3px 0 #8e6025,
    0 5px 10px #0006;
  padding-right: 37px;
}
[data-custom-cups] .cb-secondary {
  background: linear-gradient(#352c21, #231d16);
  color: #e5d1b0;
  border-color: #77603e;
  box-shadow:
    inset 0 1px 0 #fff1,
    0 3px 0 #100e0b;
}
[data-custom-cups] .cb-tertiary {
  background: #191612;
  color: #daba80;
  border-color: #685236;
  font: 600 11px/1.5 system-ui;
  min-height: 36px;
  padding: 7px 12px;
  min-width: 0;
  box-shadow: inset 0 1px 0 #fff1;
}
[data-custom-cups] .cb-close {
  padding: 0;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  border: 1px solid #79623d;
  background: linear-gradient(#423321, #241b12);
  font: 25px/1 system-ui;
  color: #edce91;
  box-shadow: inset 0 1px 0 #fff2;
}
[data-custom-cups] .cb-next-icon {
  position: absolute;
  right: 15px;
  color: #3e290a;
  pointer-events: none;
  font: 700 19px system-ui;
}
[data-custom-cups] .cb-button:active {
  transform: translateY(2px);
  box-shadow: inset 0 1px 3px #0003;
}
@media (hover: hover) {
  [data-custom-cups] .cb-button:hover:not(:disabled) {
    filter: brightness(1.1);
    transform: translateY(-1px);
  }
}
[data-custom-cups] .cb-button:disabled {
  cursor: default;
  filter: saturate(0.35);
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}
[data-custom-cups] .cb-button[aria-busy="true"] {
  cursor: wait;
  opacity: 0.85;
  filter: none;
  padding-right: 22px;
}
[data-custom-cups] .cb-button[aria-busy="true"]::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid #53371155;
  border-top-color: #533711;
  border-radius: 50%;
  margin-right: 8px;
  animation: cb-spin 0.8s linear infinite;
  vertical-align: -2px;
}
[data-custom-cups] .cb-footer:has([aria-busy="true"]) .cb-next-icon {
  display: none;
}
[data-custom-cups] .cb-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
[data-custom-cups] .is-builder [data-dialog-error] {
  margin: 0 30px 12px;
  font: 13px/1.5 system-ui;
  padding: 12px;
  background: #43221b;
  border: 1px solid #ad634e;
  border-radius: 9px;
  flex-shrink: 0;
}
@keyframes cb-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes cb-arrive {
  from {
    opacity: 0.55;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
[data-custom-cups] .cb-body > [data-wheel-settings]:not([hidden]),
[data-custom-cups] .cb-disclosure[open] > .cb-category-list {
  animation: cb-arrive 0.18s ease-out;
}
@media (max-width: 900px) {
  [data-custom-cups] .cb-presets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  [data-custom-cups] .cb-preset {
    min-height: 88px;
  }
  [data-custom-cups] .cb-final-grid {
    gap: 22px;
  }
  [data-custom-cups] .cb-preview {
    padding: 20px;
  }
}
@media (max-width: 680px) {
  [data-custom-cups] .cup-dialog.is-builder {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    border-radius: 14px;
  }
  [data-custom-cups] .cb-header {
    padding: 14px 18px 12px;
  }
  [data-custom-cups] .cb-header h2 {
    font-size: 17px;
  }
  [data-custom-cups] .cb-header img {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }
  [data-custom-cups] .cb-progress {
    padding: 7px 16px 0;
  }
  [data-custom-cups] .cb-progress button {
    padding: 8px 4px 12px;
    gap: 7px;
    font-size: 11px;
  }
  [data-custom-cups] .cb-step-number {
    width: 22px;
    height: 22px;
    flex-basis: 22px;
    font-size: 10px;
  }
  [data-custom-cups] .cb-body {
    padding: 22px 18px 25px;
  }
  [data-custom-cups] .cb-modes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  [data-custom-cups] .cb-mode-surface {
    min-height: 170px;
    padding-bottom: 12px;
  }
  [data-custom-cups] .cb-mode img {
    height: 110px;
  }
  [data-custom-cups] .cb-mode strong {
    font-size: 23px;
  }
  [data-custom-cups] .cb-townhalls {
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
  }
  [data-custom-cups] .cb-th-surface {
    min-height: 96px;
    padding: 7px 2px;
  }
  [data-custom-cups] .cb-th-surface img {
    height: 61px;
    width: 61px;
  }
  [data-custom-cups] .cb-th-surface strong {
    font-size: 13px;
  }
  [data-custom-cups] .cb-th-surface .cb-chosen {
    top: 4px;
    right: 4px;
    width: 16px;
    height: 16px;
    font-size: 10px;
  }
  [data-custom-cups] .cb-settings-line {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  [data-custom-cups] .cb-settings-line > p {
    font-size: 11px;
  }
  [data-custom-cups] .cb-setting-slab {
    padding: 14px;
  }
  [data-custom-cups] .cb-formats {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  [data-custom-cups] .cb-formats label > span {
    min-height: 70px;
    padding: 12px;
  }
  [data-custom-cups] .cb-rule-columns {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  [data-custom-cups] .cb-rule-panel {
    padding: 17px;
  }
  [data-custom-cups] .cb-three-fields {
    gap: 10px;
  }
  [data-custom-cups] .cb-advanced-grid {
    grid-template-columns: 1fr;
  }
  [data-custom-cups] .cb-final-grid {
    grid-template-columns: 1fr;
  }
  [data-custom-cups] .cb-preview {
    grid-row: 2;
  }
  [data-custom-cups] .cb-visibility label > span {
    padding: 13px 9px;
    min-height: 145px;
  }
  [data-custom-cups] .cb-footer {
    padding: 14px 18px;
    gap: 10px;
    flex-direction: column;
    align-items: stretch;
  }
  [data-custom-cups] .cb-footer > p {
    font-size: 10px;
    justify-content: center;
  }
  [data-custom-cups] .cb-footer > div {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
  }
  [data-custom-cups] .cb-button {
    font-size: 13px;
    padding: 12px 14px;
    min-width: 70px;
    min-height: 44px;
  }
  [data-custom-cups] .cb-primary {
    padding-right: 30px;
  }
  [data-custom-cups] .cb-close {
    min-width: 36px;
    min-height: 36px;
    padding: 0;
  }
  [data-custom-cups] .is-builder [data-dialog-error] {
    margin: 0 18px 10px;
  }
}
@media (max-width: 380px) {
  [data-custom-cups] .cb-body {
    padding-left: 14px;
    padding-right: 14px;
  }
  [data-custom-cups] .cb-presets {
    grid-template-columns: 1fr;
  }
  [data-custom-cups] .cb-mode-surface {
    min-height: 156px;
  }
  [data-custom-cups] .cb-mode img {
    height: 95px;
  }
  [data-custom-cups] .cb-visibility {
    grid-template-columns: 1fr;
  }
  [data-custom-cups] .cb-visibility label > span {
    display: grid;
    grid-template-columns: 32px 1fr;
    min-height: 90px;
    text-align: left;
    column-gap: 10px;
  }
  [data-custom-cups] .cb-visibility img {
    grid-row: 1/3;
  }
  [data-custom-cups] .cb-category-list {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  [data-custom-cups] .cup-builder * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
[data-custom-cups].cup-skip-motion .cup-builder * {
  animation: none !important;
  transition: none !important;
}
/* ---- cup-management.css ---- */
/* Tournament detail and ownership selection; shared Arena materials remain authoritative. */
.cup-detail-header.cup-detail-hero {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 0 32px;
  margin: 0;
  border: 0;
  min-height: 0;
}
.cup-detail-hero > img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 10px #0009);
}
.cup-detail-hero > div {
  min-width: 0;
}
.cup-detail-header.cup-detail-hero h1 {
  font-size: clamp(30px, 4vw, 56px);
  line-height: 1.15;
  margin: 8px 0 16px;
  overflow-wrap: anywhere;
}
.cup-detail-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: #e3d4b7;
  font-size: 14px;
}
.cup-detail-chips span {
  padding: 6px 12px;
  background: #ffffff06;
  border: 1px solid #d6a64b48;
  border-radius: 8px;
}
.cup-next-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 24px;
  border: 1px solid #bc8c3b88;
  border-radius: 16px;
  background: linear-gradient(110deg, #4a351b66, #141311);
  box-shadow: inset 0 1px #ffdf8a1c;
}
.cup-next-step > div:first-child {
  flex: 1 1 260px;
  min-width: 0;
}
.cup-next-step h2 {
  font-size: 22px;
  margin: 0 0 8px;
}
.cup-next-step p {
  margin: 0;
  max-width: 70ch;
  color: #cbbda5;
  font-size: 15px;
  line-height: 1.6;
}
.cup-next-step .v2-actions {
  margin: 0;
}
.cup-team-secondary {
  flex-basis: 100%;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #b78c3d30;
  padding-top: 16px;
  flex-wrap: wrap;
}
.cup-management-tools {
  margin: 18px 0;
  padding: 0;
  border: 1px solid #b78c3d40;
  border-radius: 12px;
  background: #171510;
}
.cup-management-tools > summary {
  cursor: pointer;
  min-height: 52px;
  padding: 14px 20px;
  font-weight: 700;
  color: #e7c788;
}
.cup-management-tools[open] {
  padding: 0 20px 20px;
}
.cup-management-tools[open] > summary {
  margin: 0 -20px 12px;
}
/* Manage tab: the organizer and staff panels are open sections, not disclosures. */
section.cup-management-tools {
  padding: 18px 20px 20px;
}
section.cup-management-tools > h2 {
  margin: 0 0 12px;
  color: #e7c788;
  font-size: 1.2rem;
}
section.cup-management-tools.is-staff {
  border-color: #e0483e66;
}
.cup-management-tools details {
  margin-top: 16px;
}
.cup-management-tools details > summary {
  padding: 12px 0;
  cursor: pointer;
}
.cup-management-tools input {
  max-width: 100%;
  min-width: 0;
}
.cup-detail-tabs {
  margin: 28px 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cup-lobby {
  padding: 24px 0;
}
.cup-lobby-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.cup-lobby-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(23px, 3vw, 32px);
}
.cup-lobby-heading p {
  margin: 0;
  color: #b6aa94;
  font-size: 15px;
  line-height: 1.6;
}
.cup-lobby-heading > strong {
  text-align: right;
  white-space: nowrap;
  color: #f1ce81;
  font-size: 20px;
}
.cup-lobby-heading small {
  display: block;
  font: 13px/1.8 system-ui;
  color: #b6aa94;
}
.cup-lobby-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 16px;
}
.cup-lobby-team {
  display: flex;
  gap: 16px;
  padding: 20px;
  border: 1px solid #b78c3d40;
  border-radius: 14px;
  background: linear-gradient(140deg, #30261899, #141413);
  min-width: 0;
}
.cup-lobby-team > img {
  object-fit: contain;
  flex-shrink: 0;
  width: 60px;
  height: 60px;
}
.cup-lobby-team > div {
  min-width: 0;
  flex: 1;
}
.cup-lobby-team h3 {
  margin: 0 0 8px;
  font-size: 22px;
  overflow-wrap: anywhere;
}
.cup-team-ready {
  font-size: 12px;
  color: #c6b89e;
  border: 1px solid #8c79444d;
  border-radius: 20px;
  padding: 4px 9px;
  display: inline-block;
}
.cup-team-ready.is-ready {
  color: #9cdda5;
  border-color: #589d6477;
  background: #1f3b2355;
}
.cup-lobby-team ul {
  padding: 0;
  margin: 16px 0;
  list-style: none;
}
.cup-lobby-team li {
  margin: 10px 0;
  overflow-wrap: anywhere;
}
.cup-lobby-team code {
  display: block;
  color: #c3b89f;
  margin-top: 4px;
  font-size: 13px;
}
.cup-lobby-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 36px 24px;
  border: 1px dashed #aa813e55;
  border-radius: 14px;
  background: #171611;
}
.cup-lobby-empty img {
  opacity: 0.8;
  object-fit: contain;
}
.cup-lobby-empty h3 {
  margin: 16px 0 8px;
  font-size: 24px;
}
.cup-lobby-empty p {
  color: #b6aa94;
  font-size: 15px;
}
.cup-team-picker {
  min-width: 0;
}
.cup-team-picker p {
  font-size: 15px;
  line-height: 1.6;
}
.cup-team-clan-label {
  display: grid;
  gap: 10px;
  font-weight: 700;
  margin: 24px 0;
}
.cup-team-clan-label select {
  min-height: 48px;
  width: 100%;
  max-width: 100%;
  text-overflow: ellipsis;
}
.cup-team-picker fieldset {
  border: 0;
  padding: 0;
  margin: 20px 0;
  min-width: 0;
}
.cup-team-picker legend {
  font-weight: 700;
  margin-bottom: 14px;
}
.cup-team-accounts {
  display: grid;
  gap: 10px;
  max-height: 45vh;
  overflow-y: auto;
  padding: 3px;
}
.cup-team-account {
  display: grid !important;
  grid-template-columns: 24px 48px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border: 1px solid #b78c3d55;
  border-radius: 12px;
  padding: 14px !important;
  margin: 0 !important;
  background: #211d16;
  cursor: pointer;
  min-width: 0;
}
.cup-team-account:has(input:checked) {
  border-color: #f0c66e;
  background: #493820;
  box-shadow: inset 0 0 0 1px #f0c66e;
}
.cup-team-account:focus-within {
  outline: 2px solid #ffda85;
  outline-offset: 2px;
}
.cup-team-account.is-unavailable {
  opacity: 0.55;
  cursor: default;
}
.cup-team-account img {
  object-fit: contain;
  width: 48px;
  height: 48px;
}
.cup-team-select {
  display: flex;
  align-items: center;
  min-height: 44px;
}
.cup-team-account input[type="checkbox"] {
  appearance: auto !important;
  position: static !important;
  opacity: 1 !important;
  width: 22px !important;
  height: 22px !important;
  margin: 0 !important;
  accent-color: #d6a84a;
}
.cup-team-account b,
.cup-team-account small,
.cup-team-account em {
  display: block;
  overflow-wrap: anywhere;
}
.cup-team-account b {
  font-size: 17px;
  line-height: 1.4;
}
.cup-team-account small {
  font: 13px/1.8 system-ui;
  color: #c5b79d;
}
.cup-team-account em {
  font: 12px/1.5 system-ui;
  color: #e1c995;
}
.cup-team-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid #a886473d;
  margin-top: 20px;
  padding-top: 18px;
}
.cup-team-footer p {
  margin: 0;
}
.cup-delete-warning {
  padding: 16px;
  border: 1px solid #a64d4d88;
  background: #58252544;
  border-radius: 10px;
  line-height: 1.6;
}
[data-custom-cups] .cup-button.danger {
  background: linear-gradient(#893d34, #59251f);
  border-color: #d58276;
  color: #fff0d9;
}
[data-custom-cups] .cup-button.danger.secondary {
  background: #402521;
  border-color: #92584f;
}
[data-delete-form] label {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}
[data-delete-form] textarea {
  min-height: 100px;
  resize: vertical;
}
@media (max-width: 600px) {
  .cup-detail-header.cup-detail-hero {
    gap: 16px;
    padding: 24px 0;
  }
  .cup-detail-hero > img {
    width: 64px;
    height: 64px;
  }
  .cup-detail-hero .cup-kicker {
    font-size: 10px;
    letter-spacing: 0.12em;
  }
  .cup-detail-header.cup-detail-hero h1 {
    font-size: 32px;
  }
  .cup-detail-chips {
    font-size: 12px;
    gap: 6px;
  }
  .cup-next-step {
    padding: 20px;
    gap: 16px;
  }
  .cup-next-step > .v2-actions {
    width: 100%;
  }
  .cup-next-step > .v2-actions > button {
    width: 100%;
  }
  .cup-lobby-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .cup-lobby-heading > strong {
    text-align: left;
  }
  .cup-lobby-team {
    padding: 16px;
    gap: 12px;
  }
  .cup-team-account {
    padding: 12px !important;
    gap: 10px;
    grid-template-columns: 22px 40px minmax(0, 1fr);
  }
  .cup-team-account img {
    width: 40px;
    height: 40px;
  }
  .cup-team-footer .cup-button {
    width: 100%;
  }
  .cup-management-tools .v2-actions > button {
    max-width: 100%;
  }
}
.cup-dialog:not(.is-builder) #cup-dialog-title {
  padding-right: 60px;
  overflow-wrap: anywhere;
  line-height: 1.25;
}
/* ---- draft-arena.css ---- */
/* Pick & Ban 2.0 Draft Arena, match rules bar and result status. Arena V2 palette: warm stone, forged gold,
   ember for side B, red reserved for bans. Motion only marks confirmed server changes.
   Button rules carry an html prefix: the shared game UI decorates every button as .game-action, and the
   Draft Arena keeps its own controls, like the tournament builder. */
[data-custom-cups] {
  --da-ink: var(--v2-night, #0b0806);
  --da-iron: var(--v2-stone-1, #1a1410);
  --da-iron-2: var(--v2-stone-2, #231b15);
  --da-line: var(--v2-stone-line, #ffe2aa1f);
  --da-text: var(--v2-text, #f6ecd9);
  --da-soft: var(--v2-text-2, #cdbb9f);
  --da-muted: var(--v2-text-3, #9a8670);
  --da-gold: var(--v2-gold, #f2c35f);
  --da-gold-soft: var(--v2-gold-hi, #ffe7a8);
  --da-ember: var(--v2-ember, #ff7a2e);
  --da-red: var(--v2-danger, #e0483e);
  --da-display: var(--v2-display, "Barlow Condensed", Impact, sans-serif);
}
html.da-open, html.da-open body { overflow: hidden; }
[data-custom-cups] .da {
  position: fixed; inset: 0; z-index: 300; display: flex; flex-direction: column; overflow: auto; overscroll-behavior: contain;
  color: var(--da-text); background:
    radial-gradient(1200px 520px at 50% -180px, #f2c35f1f, transparent 70%),
    radial-gradient(700px 400px at 0% 100%, #e0483e12, transparent 70%),
    linear-gradient(180deg, #120e0b, var(--da-ink));
  font-family: Inter, system-ui, sans-serif; animation: da-in .32s ease-out both;
}
/* Flex column: scroll containers (timeline, grid) must keep their height instead of shrinking to zero. */
[data-custom-cups] .da > * { flex-shrink: 0; }
[data-custom-cups] .da :focus-visible { outline: 3px solid var(--da-gold-soft); outline-offset: 2px; }
/* The heading only receives programmatic focus for screen readers; it is not a control. */
[data-custom-cups] .da [tabindex="-1"]:focus, [data-custom-cups] .da [tabindex="-1"]:focus-visible { outline: none; }
[data-custom-cups] .da h2, [data-custom-cups] .da h3 { margin: 0; font-family: var(--da-display); letter-spacing: .02em; }
[data-custom-cups] .da img { display: block; object-fit: contain; }

/* Header: both clans, phase and the server clock. */
[data-custom-cups] .da-top {
  position: sticky; top: 0; z-index: 3; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px;
  padding: 14px clamp(16px, 3vw, 40px) 12px; background: linear-gradient(180deg, #0e0a08f2, #0e0a08d9); border-bottom: 1px solid var(--da-line); backdrop-filter: blur(10px);
}
[data-custom-cups] .da-team { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px 12px; border: 1px solid var(--da-line); border-radius: 14px; background: linear-gradient(135deg, var(--da-iron-2), var(--da-iron)); transition: border-color .25s, box-shadow .25s; }
[data-custom-cups] .da-team.is-b { flex-direction: row-reverse; text-align: right; }
[data-custom-cups] .da-team img { width: 56px; height: 56px; flex: none; }
[data-custom-cups] .da-team > div { min-width: 0; max-width: 100%; }
[data-custom-cups] .da-team b { display: block; overflow: hidden; font: 800 clamp(1rem, 1.6vw, 1.35rem) var(--da-display); text-overflow: ellipsis; white-space: nowrap; }
[data-custom-cups] .da-team small { color: var(--da-gold-soft); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
[data-custom-cups] .da-team.is-active.is-a { border-color: var(--da-gold); box-shadow: 0 0 0 1px #f2c35f55, 0 10px 34px #f2c35f22; }
[data-custom-cups] .da-team.is-active.is-b { border-color: var(--da-ember); box-shadow: 0 0 0 1px #ff7a2e55, 0 10px 34px #ff7a2e22; }
[data-custom-cups] .da-team.is-turn { animation: da-focus .7s ease-out; }
[data-custom-cups] .da-slots { display: flex; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
[data-custom-cups] .da-team.is-b .da-slots { justify-content: flex-end; }
[data-custom-cups] .da-slot { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border: 1px dashed #ffe2aa2e; border-radius: 9px; background: #ffe2aa06; }
[data-custom-cups] .da-slot img { width: 34px; height: 34px; }
[data-custom-cups] .da-slot.is-ban.is-filled { border: 1px solid #e0483e99; background: #e0483e1f; }
[data-custom-cups] .da-slot.is-ban.is-filled img { filter: grayscale(.85) brightness(.85); }
[data-custom-cups] .da-slot.is-ban.is-filled::after { content: ""; position: absolute; inset: 7px; background: linear-gradient(135deg, transparent 45%, var(--da-red) 45% 55%, transparent 55%); }
[data-custom-cups] .da-slot.is-pick { border-color: #f2c35f66; }
[data-custom-cups] .da-slot.is-pick.is-filled { border: 1px solid var(--da-gold); background: radial-gradient(circle, #f2c35f33, #f2c35f0a); }
[data-custom-cups] .da-slot em { position: absolute; bottom: -7px; padding: 0 4px; border-radius: 4px; background: #3a2f25; color: var(--da-soft); font-size: .5rem; font-style: normal; font-weight: 800; text-transform: uppercase; }
[data-custom-cups] .da-slot.is-new.is-ban { animation: da-stamp .5s cubic-bezier(.2, .9, .3, 1.3) both; }
[data-custom-cups] .da-slot.is-new.is-pick { animation: da-rise .6s cubic-bezier(.2, .9, .3, 1.2) both; }
[data-custom-cups] .da-center { display: grid; justify-items: center; gap: 4px; min-width: 128px; text-align: center; }
[data-custom-cups] .da-phase { margin: 0; color: var(--da-gold-soft); font: 800 .78rem/1 Inter, sans-serif; letter-spacing: .2em; text-transform: uppercase; }
[data-custom-cups] .da[data-phase="ban"] .da-phase { color: #ff8d98; }
[data-custom-cups] .da-clock { position: relative; width: 74px; height: 74px; }
[data-custom-cups] .da-clock svg { width: 100%; height: 100%; transform: rotate(-90deg); }
[data-custom-cups] .da-clock circle { fill: none; stroke: #ffe2aa17; stroke-width: 3.5; }
[data-custom-cups] .da-clock .da-clock-run { stroke: var(--da-gold); stroke-linecap: round; stroke-dasharray: 100; transition: stroke-dashoffset .25s linear, stroke .3s; }
[data-custom-cups] .da-clock b { position: absolute; inset: 0; display: grid; place-items: center; font: 800 1.75rem var(--da-display); font-variant-numeric: tabular-nums; }
[data-custom-cups] .da-clock.is-low .da-clock-run, [data-custom-cups] .da-clock.is-grace .da-clock-run { stroke: var(--da-red); }
[data-custom-cups] .da-clock.is-low b { color: #ffb3ba; }
[data-custom-cups] .da-clock.is-critical { animation: da-pulse 1s ease-in-out infinite; }
[data-custom-cups] .da-clock-label { min-height: 1em; color: #ff9aa4; font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
[data-custom-cups] .da-sub { display: flex; align-items: center; gap: 10px; padding-right: clamp(16px, 3vw, 40px); }
[data-custom-cups] .da-sub .da-timeline { flex: 1; min-width: 0; }
html [data-custom-cups] .da-close { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 10px; border: 1px solid #ffe2aa1f; border-radius: 999px; background: #120e0bcc; color: var(--da-muted); font-size: .72rem; font-weight: 700; cursor: pointer; }
html [data-custom-cups] .da-close span { font-size: 1rem; line-height: 1; }
html [data-custom-cups] .da-close:hover { color: var(--da-text); border-color: #ffe2aa3a; }

/* Timeline of the real configured steps. */
[data-custom-cups] .da-timeline { display: flex; gap: 6px; margin: 0; padding: 12px clamp(16px, 3vw, 40px); overflow-x: auto; list-style: none; scrollbar-width: thin; }
[data-custom-cups] .da-timeline li { display: flex; flex: none; align-items: center; gap: 6px; min-height: 34px; padding: 4px 10px 4px 8px; border: 1px solid var(--da-line); border-radius: 999px; background: #ffe2aa05; color: var(--da-muted); font-size: .7rem; }
[data-custom-cups] .da-timeline li img { width: 22px; height: 22px; }
[data-custom-cups] .da-timeline li span { max-width: 9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[data-custom-cups] .da-timeline li b { font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
[data-custom-cups] .da-timeline li.is-ban b { color: #ff8d98; }
[data-custom-cups] .da-timeline li.is-pick b { color: var(--da-gold-soft); }
[data-custom-cups] .da-timeline li.is-done { color: var(--da-soft); background: #ffe2aa0a; }
[data-custom-cups] .da-timeline li.is-current { border-color: var(--da-gold); color: var(--da-text); background: #f2c35f14; }
[data-custom-cups] .da-timeline li.is-current.is-b { border-color: var(--da-ember); background: #ff7a2e14; }
[data-custom-cups] .da-timeline li.is-final.is-done { border-color: #4cdd9a88; color: #8ff0c2; }

/* Board: instruction, filters, unit cards. */
[data-custom-cups] .da-stage { flex: 1; width: min(1240px, 100%); margin: 0 auto; padding: 6px clamp(16px, 3vw, 40px) 24px; }
[data-custom-cups] .da-stage.is-leaving { animation: da-out .5s ease-in both; }
[data-custom-cups] .da-instruction { margin: 4px 0 14px; }
[data-custom-cups] .da-instruction h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1; text-transform: uppercase; outline: none; }
[data-custom-cups] .da[data-phase="ban"] .da-instruction h2 { color: #fff; }
[data-custom-cups] .da-instruction p { max-width: 62ch; margin: 6px 0 0; color: var(--da-soft); font-size: 1rem; }
[data-custom-cups] .da-instruction .da-note { color: var(--da-muted); font-size: .8rem; }
[data-custom-cups] .da-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
[data-custom-cups] .da-cats { display: flex; flex-wrap: wrap; gap: 6px; }
html [data-custom-cups] .da-cats button { min-height: 38px; padding: 6px 14px; border: 1px solid var(--da-line); border-radius: 999px; background: #ffe2aa06; color: var(--da-soft); font-size: .78rem; font-weight: 700; cursor: pointer; }
html [data-custom-cups] .da-cats button[aria-pressed="true"] { border-color: var(--da-gold); background: #f2c35f1c; color: #fff; }
[data-custom-cups] .da-tools input { flex: 1 1 200px; min-width: 0; min-height: 40px; padding: 8px 14px; border: 1px solid #ffe2aa1f; border-radius: 10px; background: #120e0b; color: var(--da-text); font-size: .9rem; }
[data-custom-cups] .da-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 10px; }
html [data-custom-cups] .da-card { position: relative; display: grid; justify-items: center; align-content: start; gap: 4px; min-height: 164px; padding: 10px 8px 12px; border: 1px solid var(--da-line); border-radius: 14px; background: linear-gradient(180deg, var(--da-iron-2), var(--da-iron)); color: var(--da-text); text-align: center; cursor: pointer; font: 600 .84rem/1.2 Inter, system-ui, sans-serif; box-shadow: none; transition: transform .16s, border-color .16s, background .16s; }
html [data-custom-cups] .da-card-art { position: relative; display: grid; place-items: center; width: 88px; height: 88px; border-radius: 12px; background: radial-gradient(circle at 50% 60%, #ffe2aa10, transparent 70%); }
html [data-custom-cups] .da-card img { width: 80px; height: 80px; }
html [data-custom-cups] .da-card b { font-size: .84rem; line-height: 1.15; }
html [data-custom-cups] .da-card small { color: var(--da-muted); font-size: .66rem; }
html [data-custom-cups] .da-card:not(:disabled):hover { transform: translateY(-2px); border-color: #ffe2aa38; }
html [data-custom-cups] .da-card[aria-pressed="true"] { border-color: var(--da-gold); background: linear-gradient(180deg, #2a2213, #14110b); box-shadow: 0 0 0 1px var(--da-gold), 0 12px 28px #f2c35f2b; transform: translateY(-3px); }
html [data-custom-cups] .da[data-phase="ban"] .da-card[aria-pressed="true"] { border-color: #ff7a87; background: linear-gradient(180deg, #2b1418, #150b0d); box-shadow: 0 0 0 1px #ff7a87, 0 12px 28px #e0483e33; }
html [data-custom-cups] .da-card:disabled { cursor: default; }
html [data-custom-cups] .da-card.is-blocked { opacity: .38; }
html [data-custom-cups] .da-card i { position: absolute; top: 8px; left: 8px; right: 8px; padding: 2px 6px; border-radius: 6px; font-size: .58rem; font-style: normal; font-weight: 800; letter-spacing: .06em; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
html [data-custom-cups] .da-card.is-ban { border-color: #e0483e66; background: linear-gradient(180deg, #1b1013, #0e0a0b); }
html [data-custom-cups] .da-card.is-ban img { filter: grayscale(1) brightness(.6); }
html [data-custom-cups] .da-card.is-ban i { background: var(--da-red); color: #fff; }
html [data-custom-cups] .da-card.is-ban .da-card-art::after { content: ""; position: absolute; width: 74px; height: 74px; border: 4px solid var(--da-red); border-radius: 50%; background: linear-gradient(135deg, transparent 46%, var(--da-red) 46% 54%, transparent 54%); opacity: .9; }
html [data-custom-cups] .da-card.is-pick.is-a { border-color: #f2c35f99; }
html [data-custom-cups] .da-card.is-pick.is-b { border-color: #ff7a2e99; }
html [data-custom-cups] .da-card.is-pick i { background: var(--da-gold); color: #1a1407; }
html [data-custom-cups] .da-card.is-pick.is-b i { background: var(--da-ember); }
html [data-custom-cups] .da-card.is-stamped { animation: da-stamp .55s cubic-bezier(.2, .9, .3, 1.3) both; }
html [data-custom-cups] .da-card.is-revealed { animation: da-rise .7s cubic-bezier(.2, .9, .3, 1.2) both; }
html [data-custom-cups] .da-card.is-revealed::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(110deg, transparent 30%, #ffe7a866 50%, transparent 70%) -200% 0 / 200% 100% no-repeat; animation: da-sheen .9s ease-out .1s both; pointer-events: none; }
[data-custom-cups] .da-empty { grid-column: 1 / -1; padding: 30px; color: var(--da-muted); text-align: center; }

/* Sticky action bar: exactly one primary action. */
[data-custom-cups] .da-bar { position: sticky; bottom: 0; z-index: 3; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 12px clamp(16px, 3vw, 40px) calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--da-line); background: linear-gradient(0deg, #0b0806f5, #120e0be6); backdrop-filter: blur(10px); }
[data-custom-cups] .da-choice { display: flex; align-items: center; gap: 10px; min-width: 0; }
[data-custom-cups] .da-choice img { width: 48px; height: 48px; }
[data-custom-cups] .da-choice span { display: grid; min-width: 0; }
[data-custom-cups] .da-choice small { color: var(--da-muted); font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
[data-custom-cups] .da-choice b { overflow: hidden; font-size: 1rem; text-overflow: ellipsis; white-space: nowrap; }
html [data-custom-cups] .da-confirm { min-width: min(320px, 100%); min-height: 52px; padding: 10px 26px; border: 0; border-radius: 12px; background: linear-gradient(180deg, var(--da-gold-soft), var(--da-gold)); color: #1a1407; font: 800 1.15rem var(--da-display); letter-spacing: .04em; text-transform: uppercase; cursor: pointer; box-shadow: 0 8px 22px #f2c35f33, inset 0 1px #fff8; }
html [data-custom-cups] .da-confirm.is-ban { background: linear-gradient(180deg, #ff6b78, #c92a3b); color: #fff; box-shadow: 0 8px 22px #e0483e33, inset 0 1px #fff5; }
html [data-custom-cups] .da-confirm:disabled { background: #2e241b; color: var(--da-muted); box-shadow: none; cursor: default; }
[data-custom-cups] .da-wait { margin: 0; color: var(--da-soft); font-weight: 600; text-align: center; }

/* Ready for battle: summary, wheel and acknowledgements. */
[data-custom-cups] .da-ready { display: grid; justify-items: center; gap: 18px; text-align: center; }
[data-custom-cups] .da-ready.is-entering { animation: da-rise .6s ease-out both; }
[data-custom-cups] .da-kicker { margin: 10px 0 0; color: #8ff0c2; font-size: .78rem; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; }
[data-custom-cups] .da-ready > h2 { color: var(--da-gold-soft); font-size: clamp(2.2rem, 6vw, 4rem); line-height: .95; text-transform: uppercase; text-shadow: 0 0 34px #f2c35f40; outline: none; }
[data-custom-cups] .da-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; width: 100%; text-align: left; }
[data-custom-cups] .da-summary section { padding: 14px; border: 1px solid var(--da-line); border-radius: 14px; background: linear-gradient(180deg, var(--da-iron-2), var(--da-iron)); }
[data-custom-cups] .da-summary section.is-ban { border-color: #e0483e55; }
[data-custom-cups] .da-summary section.is-pick.is-a { border-color: #f2c35f66; }
[data-custom-cups] .da-summary section.is-pick.is-b { border-color: #ff7a2e66; }
[data-custom-cups] .da-summary h3 { margin-bottom: 10px; color: var(--da-soft); font-size: 1rem; text-transform: uppercase; }
[data-custom-cups] .da-summary ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
[data-custom-cups] .da-summary li { display: flex; align-items: center; gap: 10px; font-weight: 700; }
[data-custom-cups] .da-summary li img { width: 40px; height: 40px; }
[data-custom-cups] .da-summary .is-ban li img { filter: grayscale(.9); }
[data-custom-cups] .da-summary li.is-none { color: var(--da-muted); font-weight: 500; }
[data-custom-cups] .da-ready .da-note { max-width: 70ch; margin: 0; color: var(--da-muted); font-size: .85rem; }
[data-custom-cups] .da-acks { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
[data-custom-cups] .da-acks li { display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border: 1px solid var(--da-line); border-radius: 999px; background: #ffe2aa06; }
[data-custom-cups] .da-acks img { width: 36px; height: 36px; }
[data-custom-cups] .da-acks span { color: var(--da-muted); font-size: .76rem; }
[data-custom-cups] .da-acks li.is-done { border-color: #4cdd9a77; }
[data-custom-cups] .da-acks li.is-done span { color: #8ff0c2; }
[data-custom-cups] .da-release { max-width: 64ch; margin: 0; padding: 12px 16px; border: 1px solid #f2c35f44; border-radius: 12px; background: #f2c35f0f; color: #f1dfb6; font-size: .9rem; }
[data-custom-cups] .da-wheel-box { display: grid; grid-template-columns: minmax(200px, 300px) minmax(0, 380px); align-items: center; gap: 22px; width: 100%; justify-content: center; text-align: left; }
[data-custom-cups] .da-wheel-wrap { position: relative; aspect-ratio: 1; }
[data-custom-cups] .da-wheel-pointer { position: absolute; top: -6px; left: 50%; z-index: 1; width: 0; height: 0; border: 13px solid transparent; border-top: 22px solid var(--da-gold-soft); transform: translateX(-50%); filter: drop-shadow(0 3px 4px #000a); }
[data-custom-cups] .da-wheel { width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 0 0 6px #3a2a16, 0 0 0 8px #f2c35f88, 0 18px 50px #000c; }
[data-custom-cups] .da-wheel.is-spinning { transition: transform 3.6s cubic-bezier(.12, .72, .1, 1); }
[data-custom-cups] .da-wheel path { stroke: #f2c35f66; stroke-width: .6; }
[data-custom-cups] .da-wheel .is-light { fill: #8a6230; }
[data-custom-cups] .da-wheel .is-dark { fill: #5b3e1e; }
[data-custom-cups] .da-wheel .is-off { opacity: .35; }
[data-custom-cups] .da-wheel-hub { fill: #1b140c; stroke: var(--da-gold); stroke-width: 2; }
[data-custom-cups] .da-wheel-result { padding: 18px; border: 1px solid #f2c35f55; border-radius: 16px; background: linear-gradient(180deg, #221b10, #110d08); opacity: .25; transform: translateY(8px); transition: opacity .4s, transform .4s; }
[data-custom-cups] .da-wheel-box.is-revealed .da-wheel-result { opacity: 1; transform: none; }
[data-custom-cups] .da-wheel-result small { color: var(--da-gold-soft); font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
[data-custom-cups] .da-wheel-result h3 { margin: 4px 0 8px; font-size: 1.7rem; }
[data-custom-cups] .da-wheel-result p { margin: 0 0 10px; color: #e2d6bd; }
[data-custom-cups] .da-wheel-result em { color: var(--da-muted); font-size: .76rem; font-style: normal; }

/* Overlays: VS intro, phase banner, release. */
[data-custom-cups] .da-intro { position: fixed; inset: 0; z-index: 5; display: grid; grid-template-columns: 1fr auto 1fr; grid-template-rows: 1fr auto auto; align-items: center; justify-items: center; gap: 12px; padding: 24px; background: radial-gradient(circle, #1a140b, #070504 70%); cursor: pointer; transition: opacity .3s; }
[data-custom-cups] .da-intro.is-done { opacity: 0; }
[data-custom-cups] .da-intro-side { display: grid; justify-items: center; gap: 12px; min-width: 0; }
[data-custom-cups] .da-intro-side img { width: clamp(84px, 16vw, 132px); height: auto; aspect-ratio: 1; }
[data-custom-cups] .da-intro-side b { max-width: 100%; overflow: hidden; font: 800 clamp(1.2rem, 3.4vw, 2.4rem) var(--da-display); text-overflow: ellipsis; white-space: nowrap; }
[data-custom-cups] .da-intro-side.is-a { animation: da-from-left .6s cubic-bezier(.2, .9, .3, 1.1) both; }
[data-custom-cups] .da-intro-side.is-b { animation: da-from-right .6s cubic-bezier(.2, .9, .3, 1.1) both; }
[data-custom-cups] .da-intro strong { font: 900 clamp(2.6rem, 9vw, 6rem) var(--da-display); color: var(--da-gold-soft); text-shadow: 0 0 40px #f2c35f66; animation: da-stamp .5s .35s cubic-bezier(.2, .9, .3, 1.4) both; }
[data-custom-cups] .da-intro p { grid-column: 1 / -1; margin: 0; color: var(--da-soft); letter-spacing: .12em; text-transform: uppercase; animation: da-in .4s .6s both; }
html [data-custom-cups] .da-skip { grid-column: 1 / -1; padding: 8px 16px; border: 1px solid #ffe2aa2a; border-radius: 999px; background: transparent; color: var(--da-muted); cursor: pointer; }
[data-custom-cups] .da-banner { position: fixed; inset: 0; z-index: 4; display: grid; place-items: center; pointer-events: none; }
[data-custom-cups] .da-banner b { padding: 14px 48px; border-block: 2px solid var(--da-gold); background: linear-gradient(90deg, transparent, #120e0bf2 15% 85%, transparent); color: var(--da-gold-soft); font: 900 clamp(2rem, 7vw, 4.6rem) var(--da-display); letter-spacing: .06em; text-transform: uppercase; animation: da-sweep 1.25s ease-in-out both; }
[data-custom-cups] .da-banner.is-ban b { border-color: var(--da-red); color: #ff9aa4; }
[data-custom-cups] .da-banner.is-released b { border-color: #4cdd9a; color: #8ff0c2; animation: da-sweep 1.5s ease-in-out both; }

/* Match rules bar and result status inside the tournament page. */
[data-custom-cups] .da-rules { display: flex; align-items: stretch; gap: 8px; margin: 14px 0; padding: 8px; border: 1px solid var(--da-line); border-radius: 14px; background: var(--v2-mat-panel, linear-gradient(180deg, var(--da-iron-2), var(--da-iron))); overflow-x: auto; scrollbar-width: thin; }
[data-custom-cups] .da-rules-group { display: flex; flex: none; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: #ffe2aa06; }
[data-custom-cups] .da-rules-group > b { color: var(--da-soft); font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; max-width: 18em; overflow: hidden; text-overflow: ellipsis; }
[data-custom-cups] .da-rules-group.is-ban > b { color: #ff8d98; }
[data-custom-cups] .da-rules-group.is-pick.is-a > b { color: var(--da-gold-soft); }
[data-custom-cups] .da-rules-group.is-pick.is-b > b { color: #f2a36f; }
[data-custom-cups] .da-rules-group ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
[data-custom-cups] .da-rules-group li img { width: 36px; height: 36px; }
[data-custom-cups] .da-rules-group.is-ban li img { filter: grayscale(.9); }
[data-custom-cups] .da-rules-group li.is-none { color: var(--da-muted); font-size: .76rem; }
[data-custom-cups] .da-rules-group.is-challenge span { color: #f1dfb6; font-weight: 700; white-space: nowrap; }
html [data-custom-cups] .da-rules-more { flex: none; margin-left: auto; padding: 6px 12px; border: 1px solid #ffe2aa1f; border-radius: 10px; background: transparent; color: var(--da-soft); font-size: .76rem; font-weight: 700; cursor: pointer; }
[data-custom-cups] .da-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[data-custom-cups] .da-live-draft { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0; padding: 14px 16px; border: 1px solid #f2c35f55; border-radius: 14px; background: linear-gradient(110deg, #2e2214, var(--da-iron)); }
[data-custom-cups] .da-live-draft b { font: 800 1.2rem var(--da-display); text-transform: uppercase; }
[data-custom-cups] .da-live-draft b::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: var(--da-red); vertical-align: middle; animation: da-pulse 1.4s ease-in-out infinite; }
[data-custom-cups] .da-result { margin: 14px 0; padding: 14px 16px; border: 1px solid var(--da-line); border-radius: 14px; background: var(--v2-mat-panel, linear-gradient(180deg, var(--da-iron-2), var(--da-iron))); }
[data-custom-cups] .da-result small { color: var(--da-muted); font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
[data-custom-cups] .da-result h3 { margin: 4px 0 8px; font: 800 1.5rem var(--da-display); color: var(--da-gold-soft); }
[data-custom-cups] .da-result > p { margin: 8px 0 0; color: var(--da-soft); }
[data-custom-cups] .da-result.is-final { border-color: #f2c35f66; }
[data-custom-cups] .da-result.is-reveal { animation: da-rise .7s cubic-bezier(.2, .9, .3, 1.2) both; }
[data-custom-cups] .da-score { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
[data-custom-cups] .da-score p { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; margin: 0; padding: 10px 12px; border-radius: 10px; background: #ffe2aa06; }
[data-custom-cups] .da-score span { overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
[data-custom-cups] .da-score b { font: 800 1.3rem var(--da-display); }
[data-custom-cups] .da-score em { grid-column: 1 / -1; color: var(--da-muted); font-style: normal; }
[data-custom-cups] .da-score p.is-win { box-shadow: inset 0 0 0 1px var(--da-gold); }

@keyframes da-in { from { opacity: 0; } }
@keyframes da-out { to { opacity: 0; transform: scale(.98); } }
@keyframes da-focus { 0% { box-shadow: 0 0 0 0 #f2c35f88; } 100% { box-shadow: 0 0 0 14px #f2c35f00; } }
@keyframes da-stamp { 0% { transform: scale(1.5) rotate(-8deg); opacity: 0; } 60% { transform: scale(.94) rotate(2deg); opacity: 1; } 100% { transform: none; } }
@keyframes da-rise { 0% { transform: translateY(14px) scale(.96); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes da-sheen { to { background-position: 200% 0; } }
@keyframes da-pulse { 50% { transform: scale(1.07); } }
@keyframes da-sweep { 0% { transform: translateX(-30%); opacity: 0; } 20%, 75% { transform: none; opacity: 1; } 100% { transform: translateX(30%); opacity: 0; } }
@keyframes da-from-left { from { transform: translateX(-60px); opacity: 0; } }
@keyframes da-from-right { from { transform: translateX(60px); opacity: 0; } }

@media (max-width: 760px) {
  [data-custom-cups] .da-top { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; padding: 10px; }
  [data-custom-cups] .da-sub { padding-right: 10px; }
  [data-custom-cups] .da-team { flex-direction: column; align-items: flex-start; gap: 6px; padding: 8px; }
  [data-custom-cups] .da-team.is-b { flex-direction: column; align-items: flex-end; }
  [data-custom-cups] .da-team img { width: 36px; height: 36px; }
  [data-custom-cups] .da-team b { font-size: .95rem; }
  [data-custom-cups] .da-slot { width: 30px; height: 30px; border-radius: 7px; }
  [data-custom-cups] .da-slot img { width: 26px; height: 26px; }
  [data-custom-cups] .da-center { min-width: 76px; }
  [data-custom-cups] .da-phase { font-size: .6rem; letter-spacing: .14em; }
  [data-custom-cups] .da-clock { width: 58px; height: 58px; }
  [data-custom-cups] .da-clock b { font-size: 1.4rem; }
  html [data-custom-cups] .da-close { padding: 4px 9px; font-size: 0; }
  html [data-custom-cups] .da-close span { font-size: 1.2rem; }
  [data-custom-cups] .da-timeline { padding: 8px 10px; }
  [data-custom-cups] .da-stage { padding: 4px 12px 18px; }
  [data-custom-cups] .da-instruction h2 { font-size: 1.9rem; }
  [data-custom-cups] .da-instruction p { font-size: .9rem; }
  [data-custom-cups] .da-cats { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 2px; }
  html [data-custom-cups] .da-cats button { flex: none; }
  [data-custom-cups] .da-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  html [data-custom-cups] .da-card { min-height: 138px; padding: 8px 4px 10px; }
  html [data-custom-cups] .da-card-art { width: 70px; height: 70px; }
  html [data-custom-cups] .da-card img { width: 64px; height: 64px; }
  html [data-custom-cups] .da-card .da-card-art::after { width: 58px !important; height: 58px !important; }
  html [data-custom-cups] .da-card b { font-size: .76rem; }
  [data-custom-cups] .da-bar { flex-direction: column; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  html [data-custom-cups] .da-confirm { width: 100%; min-height: 50px; }
  [data-custom-cups] .da-choice { width: 100%; }
  [data-custom-cups] .da-wheel-box { grid-template-columns: 1fr; justify-items: center; }
  [data-custom-cups] .da-wheel-wrap { width: min(260px, 80vw); }
  [data-custom-cups] .da-score { grid-template-columns: 1fr; }
}
@media (max-width: 359px) {
  [data-custom-cups] .da-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  [data-custom-cups] .da-team small { display: none; }
}
@media (max-height: 520px) and (orientation: landscape) {
  [data-custom-cups] .da-top { position: static; padding-block: 6px; }
  [data-custom-cups] .da-team { flex-direction: row; align-items: center; padding: 6px 8px; }
  [data-custom-cups] .da-team.is-b { flex-direction: row-reverse; }
  [data-custom-cups] .da-team img { display: none; }
  [data-custom-cups] .da-team .da-slot img { display: block; }
  [data-custom-cups] .da-clock { width: 48px; height: 48px; }
  [data-custom-cups] .da-clock b { font-size: 1.2rem; }
  [data-custom-cups] .da-instruction h2 { font-size: 1.5rem; }
  [data-custom-cups] .da-bar { flex-direction: row; padding-block: 6px; }
  [data-custom-cups] .da-choice { width: auto; }
  [data-custom-cups] .da-choice img, [data-custom-cups] .da-choice small { display: none; }
  html [data-custom-cups] .da-confirm { width: auto; min-height: 42px; }
}
@media (prefers-reduced-motion: reduce) {
  [data-custom-cups] .da, [data-custom-cups] .da *, [data-custom-cups] .da-result, [data-custom-cups] .da-live-draft b::before { animation: none !important; transition: none !important; }
}
[data-custom-cups].cup-skip-motion .da, [data-custom-cups].cup-skip-motion .da * { animation: none !important; transition: none !important; }
[data-custom-cups] .da-match-focus { margin: 14px 0; padding: 16px; border: 1px solid #f2c35f44; border-radius: 16px; background: linear-gradient(160deg, #2a2016, var(--da-iron) 60%); }
[data-custom-cups] .da-match-focus h2 { margin: 0; overflow-wrap: anywhere; font: 800 clamp(1.3rem, 3vw, 1.9rem) var(--da-display); }
[data-custom-cups] .da-match-focus h2 span { color: var(--da-gold); font-size: .8em; }
[data-custom-cups] .da-match-focus .v2-actions { margin-bottom: 0; }

/* Hover/active states of the shared .game-action decoration are more specific than plain class rules. */
html [data-custom-cups] .da .da-confirm:hover:not(:disabled), html [data-custom-cups] .da .da-confirm:active:not(:disabled) { border: 0; background: linear-gradient(180deg, #ffe7a6, var(--da-gold)); color: #1a1407; box-shadow: 0 10px 26px #f2c35f44, inset 0 1px #fff9; transform: translateY(-1px); }
html [data-custom-cups] .da .da-confirm.is-ban:hover:not(:disabled), html [data-custom-cups] .da .da-confirm.is-ban:active:not(:disabled) { background: linear-gradient(180deg, #ff8591, #d8344a); color: #fff; box-shadow: 0 10px 26px #e0483e44, inset 0 1px #fff6; }
html [data-custom-cups] .da .da-card:hover:not(:disabled), html [data-custom-cups] .da .da-card:active:not(:disabled) { border-color: #ffe2aa38; background: linear-gradient(180deg, var(--da-iron-2), var(--da-iron)); color: var(--da-text); box-shadow: none; transform: translateY(-2px); }
html [data-custom-cups] .da .da-card[aria-pressed="true"]:hover:not(:disabled), html [data-custom-cups] .da .da-card[aria-pressed="true"]:active:not(:disabled) { border-color: var(--da-gold); background: linear-gradient(180deg, #2a2213, #14110b); box-shadow: 0 0 0 1px var(--da-gold), 0 12px 28px #f2c35f2b; }
html [data-custom-cups] .da[data-phase="ban"] .da-card[aria-pressed="true"]:hover:not(:disabled), html [data-custom-cups] .da[data-phase="ban"] .da-card[aria-pressed="true"]:active:not(:disabled) { border-color: #ff7a87; background: linear-gradient(180deg, #2b1418, #150b0d); box-shadow: 0 0 0 1px #ff7a87, 0 12px 28px #e0483e33; }
html [data-custom-cups] .da .da-cats button:hover:not(:disabled) { border-color: #ffe2aa38; background: #ffe2aa0d; color: #fff; box-shadow: none; transform: none; }
html [data-custom-cups] .da .da-cats button[aria-pressed="true"]:hover:not(:disabled) { border-color: var(--da-gold); background: #f2c35f26; }
html [data-custom-cups] .da .da-close:hover:not(:disabled), html [data-custom-cups] .da-rules .da-rules-more:hover:not(:disabled) { border-color: #ffe2aa3a; background: #ffe2aa0a; color: var(--da-text); box-shadow: none; transform: none; }
/* Wide screens: header and timeline follow the 1240px content column instead of the full window. */
@media (min-width: 1500px) {
  [data-custom-cups] .da-top, [data-custom-cups] .da-timeline { padding-inline: calc((100% - 1240px) / 2); }
  [data-custom-cups] .da-sub { padding-right: calc((100% - 1240px) / 2); }
  [data-custom-cups] .da-sub .da-timeline { padding-right: 0; }
}

/* Arena 2.1 polish: stale-connection pause, phone step line, full clan names and the wheel result in front. */
[data-custom-cups] .da-step-line { display: none; }
[data-custom-cups] .da-team b[data-da="fullname"] { cursor: help; }
[data-custom-cups] .da-team.is-full b { overflow: visible; white-space: normal; overflow-wrap: anywhere; text-overflow: clip; }
[data-custom-cups] .da-stale { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0; padding: 8px 12px; border: 1px solid #f2c35f55; border-radius: 12px; background: #f2c35f12; color: #f1dfb6; font-size: .88rem; font-weight: 700; }
[data-custom-cups] .da.is-stale .da-grid { opacity: .6; }
[data-custom-cups] .da-wheel-box.is-revealed { grid-template-columns: minmax(150px, 220px) minmax(0, 460px); }
[data-custom-cups] .da-wheel-wrap { transition: width .4s ease; }
[data-custom-cups] .da-wheel-box.is-revealed .da-wheel-result { border-color: var(--da-gold); box-shadow: 0 0 0 1px #f2c35f44, 0 18px 50px #000a, 0 0 40px #f2c35f1f; }
[data-custom-cups] .da-wheel-box.is-revealed .da-wheel-result h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); color: #fff3cf; }
@media (max-width: 760px) {
  /* Phones: one line names the current step; the full order opens on demand. */
  html [data-custom-cups] .da-step-line { display: flex; flex: 1; align-items: center; gap: 8px; min-width: 0; min-height: 44px; margin: 6px 0 6px 10px; padding: 6px 12px; border: 1px solid var(--da-gold); border-radius: 999px; background: #f2c35f12; color: var(--da-text); font: inherit; font-size: .88rem; text-align: left; cursor: pointer; }
  html [data-custom-cups] .da-step-line.is-b { border-color: var(--da-ember); background: #ff7a2e12; }
  [data-custom-cups] .da-step-line b { flex: none; color: var(--da-gold-soft); }
  [data-custom-cups] .da-step-line span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; }
  [data-custom-cups] .da-step-line em { flex: none; font-style: normal; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
  [data-custom-cups] .da-step-line small { flex: none; margin-left: auto; color: var(--da-muted); font-size: .72rem; }
  [data-custom-cups] .da-step-line small::after { content: " ▾"; }
  [data-custom-cups] .da-step-line[aria-expanded="true"] small::after { content: " ▴"; }
  [data-custom-cups] .da-sub { flex-wrap: wrap; }
  [data-custom-cups] .da-sub:has(.da-step-line) .da-timeline { display: none; }
  [data-custom-cups] .da-sub.is-steps-open .da-timeline { display: flex; order: 3; flex-basis: 100%; }
  [data-custom-cups] .da-top .da-slots { display: none; }
  /* Horizontal category scroll shows that more categories follow. */
  [data-custom-cups] .da-cats { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); padding-right: 28px; }
  /* After the draw the result card leads; the wheel shrinks below it. */
  [data-custom-cups] .da-wheel-box.is-revealed { grid-template-columns: 1fr; }
  [data-custom-cups] .da-wheel-box.is-revealed .da-wheel-result { order: -1; width: 100%; }
  [data-custom-cups] .da-wheel-box.is-revealed .da-wheel-wrap { width: min(150px, 42vw); }
  /* The header already says "Draft complete"; the stage starts with the headline. */
  [data-custom-cups] .da-ready .da-kicker { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  [data-custom-cups] .da-wheel-wrap { transition: none; }
}
@media (max-height: 520px) and (orientation: landscape) {
  [data-custom-cups] .da-ready .da-kicker { display: none; }
}
