.sunset-page, .sunset-card {
  --sunset-navy: #071630;
  --sunset-blue: #152e58;
  --sunset-orange: #ff8132;
  --sunset-burnt: #964217;
  --sunset-sand: #fff1df;
  --sunset-cream: #fffaf4;
  --sunset-line: #eadbc9;
}

.sunset-card.tournament-card {
  min-height: 340px;
  border-color: var(--sunset-line);
  background: linear-gradient(115deg, var(--sunset-cream), #ffefe1);
}
.sunset-card.tournament-card:hover { border-color: #e6a675; box-shadow: 0 24px 56px #14294b25; }
.sunset-card.tournament-card:focus-visible { outline-color: var(--sunset-burnt); }
.sunset-card .sunset-brand {
  position: relative;
  min-height: 100%;
  padding: 0;
  overflow: hidden;
  background: var(--sunset-navy);
}
.sunset-card .sunset-brand img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center 42%;
  border-radius: 0;
  box-shadow: none;
}
.sunset-card .tournament-copy h3 { color: var(--sunset-navy); }
.sunset-card .tournament-copy > p { color: #5e5360; }
.sunset-card .event-status, .sunset-card .tournament-meta span { background: #fce4cd; color: #713514; }
.sunset-card .event-button { background: var(--sunset-navy); color: #fff; }
.sunset-card:hover .event-button { background: var(--sunset-blue); }
.sunset-card { position: relative; }
.sunset-card .event-button::after { position: absolute; inset: 0; border-radius: 26px; content: ""; }
.sunset-card .event-button:focus-visible::after { outline: 3px solid var(--sunset-burnt); outline-offset: 4px; }
.sunset-card .signup-button { position: relative; z-index: 1; }
.sunset-card .signup-button, .sunset-page .signup-button {
  background: var(--sunset-orange);
  color: var(--sunset-navy);
  box-shadow: 0 10px 24px #ff813226;
}
.sunset-card .signup-button:hover, .sunset-page .signup-button:hover { background: #ff9b54; }
.sunset-card .signup-button { font-weight: 850; }
.sunset-hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: min(100%, 560px);
  margin-top: 24px;
}
.sunset-hero-actions .sunset-action {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  min-height: 82px;
  gap: 11px;
  padding: 14px 16px;
  border: 1px solid #ffd4ad;
  border-radius: 14px;
  text-decoration: none;
}
.sunset-page .sunset-signup-action {
  background: linear-gradient(120deg, #ff8132, #ffac69);
  color: var(--sunset-navy);
  box-shadow: 0 10px 28px #ff81322e, inset 0 1px 0 #ffffff55;
}
.sunset-page .sunset-signup-action:hover { background: linear-gradient(120deg, #ff9549, #ffbb83); }
.sunset-hero-actions .sunset-group-action {
  border-color: #c5d7f066;
  background: #ffffff0c;
  color: #fff;
  box-shadow: inset 0 1px 0 #ffffff0b;
}
.sunset-hero-actions .sunset-group-action:hover { border-color: #f8c498; background: #ffffff18; }
.sunset-action-icon {
  display: grid;
  flex: 0 0 34px;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #07163030;
  border-radius: 10px;
  background: #ffffff21;
}
.sunset-group-action .sunset-action-icon { border-color: #d4e1f733; color: #ffc38e; }
.sunset-action-icon svg { display: block; width: 22px; height: 22px; }
.sunset-action-copy { display: grid; gap: 3px; min-width: 0; text-align: left; }
.sunset-action-copy strong { font-size: clamp(.9rem, 1.2vw, 1.03rem); font-weight: 850; line-height: 1.2; }
.sunset-action-copy small { font-size: .71rem; font-weight: 500; line-height: 1.25; }
.sunset-signup-action small { color: #293346; }
.sunset-group-action small { color: #d4dff0; }
@media (max-width: 400px) {
  .sunset-hero-actions { gap: 10px; }
  .sunset-hero-actions .sunset-action { flex-direction: column; align-items: flex-start; gap: 9px; padding: 12px; }
  .sunset-action-icon { flex-basis: 30px; width: 30px; height: 30px; }
}

.sunset-page {
  --ink: var(--sunset-navy);
  --muted: #5d6472;
  --forest: var(--sunset-navy);
  --green: var(--sunset-blue);
  --green-2: var(--sunset-burnt);
  --lime: var(--sunset-sand);
  --paper: var(--sunset-cream);
  --line: var(--sunset-line);
  --shadow: 0 18px 50px #152e5812;
  background: var(--sunset-cream);
  color: var(--sunset-navy);
}
.sunset-page .portal-header, .sunset-page footer { background: var(--sunset-navy); }
.sunset-page .portal-nav a { color: #e5eaf2; white-space: nowrap; }
.sunset-page .portal-nav a:hover { color: #fff; background: #ffffff18; }
.sunset-page .footer-row span, .sunset-page .footer-row p { color: #d0d9e9; }
.sunset-page :focus-visible { outline-color: var(--sunset-burnt); }
.sunset-hero {
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(ellipse at 78% 24%, #284a78 0%, transparent 50%),
    linear-gradient(145deg, var(--sunset-navy) 22%, #0d2147 78%, #172f54 100%);
  border-bottom: 4px solid var(--sunset-orange);
}
.sunset-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  align-items: center;
  gap: clamp(24px, 6vw, 90px);
  padding-block: clamp(32px, 5vw, 66px);
}
.sunset-hero-copy { padding-block: 6px; }
.sunset-label {
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sunset-burnt);
}
.sunset-hero .sunset-edition {
  display: inline-block;
  margin: 0 0 19px;
  padding: 5px 11px;
  border: 1px solid #ff9d6566;
  border-radius: 5px;
  background: #ff813219;
  color: #ffd0a9;
}
.sunset-hero h1 {
  margin: 0;
  font-size: clamp(3.25rem, 7.4vw, 7.1rem);
  font-weight: 950;
  letter-spacing: -.078em;
  line-height: .87;
}
.sunset-hero h1 span { display: block; color: var(--sunset-orange); }
.sunset-location { margin: 19px 0 0; color: #dde6f5; font-weight: 650; }
.sunset-date {
  display: grid;
  gap: 3px;
  margin: 28px 0 22px;
  padding-left: 16px;
  border-left: 3px solid var(--sunset-orange);
}
.sunset-date strong { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1; letter-spacing: -.04em; }
.sunset-date span { color: #fff2e6; font-weight: 650; }
.sunset-formats { display: flex; flex-wrap: wrap; gap: 8px; }
.sunset-formats > div {
  display: grid;
  padding: 8px 13px;
  min-width: 118px;
  border: 1px solid #dce7fa44;
  border-radius: 8px;
  background: #ffffff0d;
}
.sunset-formats strong { font-size: .94rem; }
.sunset-formats span { color: #dce7f9; font-size: .8rem; }
.sunset-visual {
  position: relative;
  justify-self: end;
  width: min(100%, 465px);
  margin: 0;
}
.sunset-photo-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid #ffd7b273;
  border-radius: 20px;
  background: #c9a182;
  box-shadow: 0 20px 55px #030c2266;
  color: #fff;
  cursor: zoom-in;
}
.sunset-photo-button::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 46%;
  height: 4px;
  background: var(--sunset-orange);
  content: "";
}
.sunset-photo-button:hover .sunset-uniforms { transform: scale(1.015); }
.sunset-photo-button:focus-visible { outline: 3px solid #ffb57c; outline-offset: 4px; }
.sunset-uniforms {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1.035;
  object-fit: cover;
  object-position: center 50%;
  transition: transform .2s ease;
}
.sunset-logo {
  position: absolute;
  top: 14px;
  right: 14px;
  width: clamp(68px, 10%, 96px);
  height: auto;
  padding: 3px;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 3px 15px #07163038;
}
.sunset-photo-hint {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 7px 11px;
  border: 1px solid #ffffff44;
  border-radius: 999px;
  background: #071630d9;
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  box-shadow: 0 6px 18px #07163055;
}
.sunset-shirt-stock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 11px;
  padding: 11px 14px;
  border: 1px solid #ffb57c55;
  border-radius: 12px;
  background: #ffffff0d;
  color: #fff;
}
.sunset-shirt-stock span { font-size: .88rem; font-weight: 750; }
.sunset-shirt-stock strong { color: var(--sunset-orange); font-size: 1.45rem; line-height: 1; }
.sunset-shirt-stock small { color: #d9e3f1; font-size: .72rem; text-align: right; }
.sunset-shirt-dialog {
  width: min(92vw, 760px);
  max-width: none;
  max-height: 92vh;
  padding: 0;
  overflow: hidden;
  border: 1px solid #ffb57c88;
  border-radius: 20px;
  background: var(--sunset-navy);
  color: #fff;
  box-shadow: 0 28px 90px #020817cc;
}
.sunset-shirt-dialog::backdrop { background: #020817db; backdrop-filter: blur(5px); }
.sunset-shirt-dialog-card { display: grid; max-height: 92vh; }
.sunset-shirt-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 16px; }
.sunset-shirt-dialog-head p { margin: 0; color: #ffb57c; font-size: .68rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.sunset-shirt-dialog-head h2 { margin: 2px 0 0; color: #fff; font-size: 1.25rem; }
.sunset-shirt-dialog-head button { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid #ffffff33; border-radius: 50%; background: #ffffff12; color: #fff; font: 300 2rem/1 system-ui; cursor: pointer; }
.sunset-shirt-dialog-head button:hover { background: #ffffff22; }
.sunset-shirt-dialog-card > img { display: block; width: 100%; height: min(76vh, 773px); object-fit: contain; background: #c9a182; }

.sunset-page.event-open .section-nav { border-color: var(--sunset-line); background: #fff8ef; }
.sunset-page .event-view .nav-button { color: var(--sunset-navy); }
.sunset-page .event-view .nav-button:hover { background: var(--sunset-sand); }
.sunset-page .event-view .nav-button.active { background: var(--sunset-navy); color: #fff; }
.sunset-page .event-back { border-color: var(--sunset-line); text-decoration: none; }
.sunset-page :is(.kicker, .draw-label, .day-title) { color: var(--sunset-burnt); }
.sunset-page :is(.control-panel, .draw-shell, .court-overview-card, .award-stage) { border-color: var(--sunset-line); }
.sunset-page :is(.category-rule-card, .court-overview-card > header, .award-brand, .award-mvp .award-reveal) {
  background: linear-gradient(130deg, var(--sunset-navy), var(--sunset-blue));
  color: #fff;
}
.sunset-page :is(.category-rule-card > div > span, .category-rule-card aside strong) { color: #ffba82; }
.sunset-page :is(.category-rule-card > div > p, .category-rule-card li) { color: #eef1f8; }
.sunset-page :is(.draw-toolbar, .draw-group-count-panel, .draw-latest, .podium-winner) { background: var(--sunset-sand); }
.sunset-page :is(.draw-group-count button, .draw-category-list button) { border-color: var(--sunset-line); color: var(--sunset-blue); }
.sunset-page :is(.draw-group-count button.active, .draw-category-list button.active) {
  border-color: var(--sunset-blue);
  background: var(--sunset-blue);
  color: #fff;
  box-shadow: 0 8px 18px #152e582a;
}
.sunset-page :is(.draw-group-a, .draw-group-b, .draw-group-c) header { background: var(--sunset-blue); color: #fff; }
.sunset-page .draw-group-b header { background: var(--sunset-burnt); }
.sunset-page .draw-group-c header { background: var(--sunset-navy); }
.sunset-page .draw-button { background: var(--sunset-orange); color: var(--sunset-navy); }
.sunset-page .award-brand img { object-fit: contain; background: #fff; padding: 5px; }
.sunset-page :is(.award-category-title, .podium-winner strong, .award-mvp > div > strong) { color: var(--sunset-navy); }
.sunset-page .podium-winner span { color: var(--sunset-burnt); }
.sunset-page .court-overview > .empty-state { grid-column: 1 / -1; }
.sunset-page .sunset-end { display: block; font-size: .75rem; font-weight: 600; }
.sunset-page #regulamento section { margin-top: 20px; }
.sunset-page #regulamento section h2 { margin: 4px 0 18px; font-size: clamp(1.8rem, 4vw, 2.7rem); letter-spacing: -.045em; }
.sunset-blocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sunset-blocks article { background: #fff; border: 1px solid var(--sunset-line); border-radius: 18px; padding: 24px; }
.sunset-blocks p { margin: 0; color: var(--sunset-burnt); font-weight: 750; }
.sunset-blocks h3 { margin: 9px 0; font-size: 1.55rem; }
.sunset-blocks ul { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 12px 0 0; list-style: none; }
.sunset-blocks li { border-radius: 8px; background: var(--sunset-sand); padding: 5px 9px; }
.sunset-note { color: var(--muted); }
.sunset-registration { background: var(--sunset-cream); border-bottom: 1px solid var(--sunset-line); padding: 32px 0; }
.sunset-registration-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(275px, 1fr); gap: 18px; align-items: stretch; }
.sunset-fees, .sunset-shirt-perk { border-radius: 20px; padding: clamp(20px, 3vw, 30px); }
.sunset-fees { background: #fff; border: 1px solid var(--sunset-line); box-shadow: 0 12px 30px #14294b0a; }
.sunset-fees h2 { margin: 6px 0 8px; font-size: clamp(1.55rem, 3vw, 2.2rem); color: var(--sunset-navy); line-height: 1.15; letter-spacing: -.035em; }
.sunset-registration-intro { margin: 0 0 18px; color: #665a57; font-size: .95rem; }
.sunset-fee-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.sunset-fee { padding: 14px 10px; border-radius: 12px; background: var(--sunset-sand); border: 1px solid #f0dbc5; display: flex; flex-direction: column; gap: 5px; }
.sunset-fee:first-child { background: #fff1e6; border-color: #f4b482; }
.sunset-fee span { color: #714c38; font-size: .77rem; font-weight: 700; }
.sunset-fee strong { color: var(--sunset-navy); font-size: clamp(1.3rem, 2.2vw, 1.75rem); letter-spacing: -.035em; }
.sunset-shirt-perk { background: linear-gradient(145deg, var(--sunset-navy), #173963); color: #fff; border: 1px solid #29486e; display: flex; flex-direction: column; justify-content: center; }
.sunset-shirt-kicker { margin: 0; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 800; color: #ffb57c; }
.sunset-shirt-count { font-size: clamp(3.5rem, 7vw, 5.2rem); font-weight: 900; line-height: 1; letter-spacing: -.07em; color: var(--sunset-orange); margin: 10px 0; }
.sunset-shirt-count span { font-size: clamp(1rem, 2.3vw, 1.5rem); letter-spacing: -.025em; color: #fff; vertical-align: middle; }
.sunset-shirt-perk h3 { margin: 0 0 10px; font-size: clamp(1.15rem, 2.5vw, 1.5rem); color: #fff; }
.sunset-shirt-perk > p:last-child { margin: 0; color: #e1e8f3; font-size: .87rem; line-height: 1.55; }
.sunset-shirts-panel .section-heading { align-items: center; }
.sunset-shirts-summary { display: flex; align-items: baseline; gap: 7px; padding: 10px 14px; border: 1px solid #ffc18f; border-radius: 12px; background: #fff1df; color: var(--sunset-navy); }
.sunset-shirts-summary strong { color: var(--sunset-burnt); font-size: 1.7rem; line-height: 1; }
.sunset-shirts-summary span { font-size: .78rem; font-weight: 800; }
.guaranteed-shirt-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; counter-reset: shirt; }
.guaranteed-shirt-list li { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; min-height: 72px; padding: 12px 14px; border: 1px solid var(--sunset-line); border-radius: 14px; background: #fff; box-shadow: 0 10px 28px #152e5810; }
.guaranteed-shirt-list li > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--sunset-navy); color: #ffb57c; font-weight: 900; }
.guaranteed-shirt-list li > strong { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; min-width: 0; color: var(--sunset-navy); }
.guaranteed-shirt-list .shirt-size { display: inline-flex; padding: 4px 7px; border-radius: 999px; background: #e7eef8; color: #24476f; font-size: .68rem; font-style: normal; font-weight: 900; line-height: 1; white-space: nowrap; }
.guaranteed-shirt-list li > small { padding: 5px 8px; border-radius: 999px; background: #fff1df; color: var(--sunset-burnt); font-size: .67rem; font-weight: 850; white-space: nowrap; }
.guaranteed-shirt-list .guaranteed-shirt-empty { grid-template-columns: 1fr; grid-column: 1 / -1; text-align: center; }
.guaranteed-shirt-list .guaranteed-shirt-empty small { background: transparent; color: var(--muted); white-space: normal; }
.sunset-reserved-shirts { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--sunset-line); }
.sunset-reserved-shirts h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0; color: var(--sunset-navy); font-size: 1.25rem; }
.sunset-reserved-shirts h3 span { display: inline-grid; place-items: center; min-width: 30px; min-height: 30px; border-radius: 9px; background: #e7eef8; color: #24476f; font-size: .92rem; }
.sunset-reserved-shirts > p { margin: 8px 0 0; color: var(--muted); line-height: 1.5; }
.sunset-waitlist-shirts .waitlist-shirt-list { margin-top: 18px; }
.sunset-waitlist-shirts .waitlist-shirt-list li > small { background: #fff1df; color: var(--sunset-burnt); }
.sunset-waitlist-shirts .waitlist-shirt-list li.paid-waiting > small { background: #e5f7ef; color: #176a49; }

@media (max-width: 720px) {
  .sunset-registration-grid { grid-template-columns: 1fr; }
  .sunset-registration { padding: 22px 0; }
  .sunset-fee-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sunset-hero-inner { grid-template-columns: 1fr; gap: 19px; }
  .sunset-hero h1 { font-size: clamp(2.8rem, 10vw, 4.35rem); }
  .sunset-hero h1 span { display: inline; }
  .sunset-visual { justify-self: stretch; width: 100%; }
  .sunset-photo-button { border-radius: 14px; }
  .sunset-uniforms { aspect-ratio: 2 / 1; object-position: center 39%; }
  .sunset-shirt-stock { align-items: flex-start; }
  .sunset-shirt-stock small { max-width: 140px; }
  .guaranteed-shirt-list { grid-template-columns: 1fr; }
  .guaranteed-shirt-list li { grid-template-columns: 38px 1fr; }
  .guaranteed-shirt-list li > span { width: 38px; height: 38px; }
  .guaranteed-shirt-list li > small { grid-column: 2; justify-self: start; margin-top: -8px; }
  .sunset-hero .sunset-edition { margin-bottom: 15px; }
  .sunset-location { margin-top: 11px; }
  .sunset-date { margin: 16px 0; }
}
@media (max-width: 640px) {
  .sunset-card .sunset-brand { min-height: 205px; }
  .sunset-card .sunset-brand img { object-position: center 35%; }
  .sunset-blocks { grid-template-columns: 1fr; }
  .sunset-blocks article { padding: 17px; }
  .sunset-page .portal-row { height: auto; min-height: 64px; flex-wrap: wrap; gap: 4px 8px; padding-block: 7px; }
}
