@import "./card-badges.css";

:root {
  color-scheme: dark;
  --ink: #f8f2e6;
  --muted: #a8b7ce;
  --gold: #ffc95b;
  --navy: #101d37;
  --line: #ffffff1c;
  font:
    16px/1.55 "Trebuchet MS",
    system-ui,
    sans-serif;
  background: #101d37;
  color: var(--ink);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(ellipse at 80% 8%, #34528944, transparent 42%), #101d37;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #8ce5f2;
  outline-offset: 5px;
}
[hidden] {
  display: none !important;
}
.skip {
  position: fixed;
  left: 12px;
  top: 12px;
  clip-path: inset(50%);
  padding: 12px;
  background: var(--gold);
  color: #101d37;
  z-index: 10;
}
.skip:focus-visible {
  clip-path: none;
}
.header {
  min-height: 96px;
  padding: 20px max(24px, calc((100vw - 1280px) / 2));
  display: flex;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid var(--line);
  background: #101d37dd;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  white-space: nowrap;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.5px;
}
.brand-crown {
  font-size: 40px;
  line-height: 1;
  color: var(--gold);
}
.navigation {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 3px;
  flex-wrap: wrap;
}
.nav-button {
  position: relative;
  border: 0;
  border-radius: 6px;
  padding: 9px 10px;
  color: var(--muted);
  background: none;
  font-size: 13px;
  font-weight: 700;
}
.nav-button[aria-current] {
  color: var(--gold);
  background: #ffc95b11;
}
.nav-button:hover {
  color: white;
  background: #ffffff08;
}
.identity {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  font-size: 13px;
  font-weight: 700;
  max-width: 180px;
  overflow-wrap: anywhere;
}
.identity small {
  font-size: 9px;
  color: var(--gold);
  letter-spacing: 2px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 21px;
  border: 1px solid #ffffff30;
  border-radius: 8px;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  color: var(--ink);
  background: #263854;
  transition:
    transform 0.15s,
    background 0.15s;
}
.button:hover {
  background: #354d71;
  transform: translateY(-1px);
}
.button.gold {
  background: var(--gold);
  color: #241c0e;
  border-color: #ffe19a;
  box-shadow:
    0 4px 0 #a97429,
    0 10px 28px #0003;
}
.button.gold:hover {
  background: #ffda85;
}
.button.small {
  padding: 9px 12px;
  font-size: 12px;
}
.site-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px 75px;
  min-height: calc(100svh - 170px);
}
.notice {
  min-height: 22px;
  font-size: 12px;
  color: var(--muted);
  margin: 20px 0 0;
}
.notice.error {
  color: #ffb6b6;
  border-left: 3px solid #ff827c;
  padding-left: 12px;
}
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 46px 0 72px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.8px;
  color: var(--gold);
  margin: 0 0 17px;
}
.hero h1 {
  font-size: clamp(46px, 5.9vw, 78px);
  letter-spacing: -3.5px;
  line-height: 1.04;
  white-space: pre-line;
  margin: 0 0 24px;
  font-weight: 900;
  max-width: 650px;
}
.lede {
  max-width: 480px;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 26px;
}
.hero-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.text-link {
  font-size: 12px;
  color: #e5eaf4;
  text-decoration: none;
  border-bottom: 1px solid #ffffff38;
  padding-bottom: 3px;
}
.hero-art {
  min-height: 335px;
  position: relative;
  isolation: isolate;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 15px;
}
.hero-art:before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  border: 1px solid #ffc95b2b;
  border-radius: 50%;
  background: radial-gradient(circle, #5170a45c, transparent 70%);
  z-index: -1;
}
.hero-art:after {
  content: "✦";
  position: absolute;
  right: 5%;
  top: 15px;
  color: var(--gold);
  font-size: 43px;
}
.hero-character {
  position: absolute;
  width: 160px;
  border-radius: 15px;
  border: 3px solid #d9a945;
  box-shadow: 0 12px 28px #0008;
  background: linear-gradient(150deg, #8d4c88, #241d47);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.hero-character img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: contain;
}
.hero-character span {
  background: #10152cee;
  padding: 8px 4px;
  text-align: center;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 1px;
  text-shadow: 0 2px #000;
}
.hero-character.taylor {
  transform: translate(-115px, 8px) rotate(-16deg);
  z-index: 0;
}
.hero-character.rock {
  transform: translate(115px, 6px) rotate(16deg);
  z-index: 0;
  background: #466568;
}
.hero-character.trump {
  transform: translateY(-12px);
  z-index: 1;
  background: #796445;
}
.art-stamp {
  position: absolute;
  bottom: 5px;
  z-index: 2;
  padding: 7px 15px;
  background: var(--gold);
  color: #271c13;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 2px;
  transform: rotate(-4deg);
  box-shadow: 4px 4px #101d37;
}
.play-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 54px;
  padding-top: 35px;
  border-top: 1px solid var(--line);
}
.panel {
  background: linear-gradient(120deg, #1d3150, #182943);
  border: 1px solid #ffffff1d;
  border-radius: 14px;
  padding: 30px;
  box-shadow: 0 15px 30px #0001;
}
.help-link {
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  padding: 0;
}
.help-guide {
  max-width: 1000px;
  margin: 0 auto;
}
.help-start li + li {
  margin-top: 8px;
}
.help-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 28px 0;
}
.help-topics a {
  color: var(--gold);
  font-size: 14px;
}
.help-sections {
  display: grid;
  gap: 22px;
}
.help-sections section {
  scroll-margin-top: 20px;
}
.help-sections p:last-child {
  margin-bottom: 0;
}
.play-card {
  border-top: 3px solid var(--gold);
}
h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.12;
  letter-spacing: -1.5px;
  margin: 35px 0 20px;
}
h2 {
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.6px;
  margin: 0 0 25px;
}
h3 {
  font-size: 15px;
  margin: 0 0 5px;
}
p {
  margin-top: 0;
}
.muted {
  font-size: 12px;
  color: var(--muted);
}
label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin: 20px 0;
}
select,
input {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: 8px;
  background: #0e2039;
  border: 1px solid #61718b;
  border-radius: 7px;
  color: var(--ink);
  padding: 12px;
  font-size: 13px;
}
select {
  white-space: normal;
}
.rule-note {
  font-size: 11px;
  color: #aebfd5;
  line-height: 1.7;
  border-left: 2px solid #6982aa;
  padding-left: 12px;
  margin: 20px 0 25px;
}
.join {
  width: 100%;
}
.arena-notes {
  padding: 18px 0;
}
.arena-notes h2 {
  font-size: 29px;
  max-width: 290px;
}
.playbook-row {
  display: flex;
  gap: 20px;
  margin: 25px 0;
}
.step {
  color: var(--gold);
  font-size: 12px;
  border: 1px solid #ffc95b44;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: grid;
  place-content: center;
  flex: none;
}
.playbook-row p {
  font-size: 13px;
  line-height: 1.8;
  max-width: 280px;
  color: var(--muted);
}
footer {
  max-width: 1280px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 24px 40px 32px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #8a9ab3;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
}
footer a {
  letter-spacing: 0;
  font-size: 11px;
  text-decoration: none;
}
.narrow {
  max-width: 620px;
  margin-top: 30px;
}
.site-main:has(.deck-preparation) {
  max-width: none;
}
.deck-preparation {
  grid-template-columns: minmax(0, 1fr);
}
.deck-preparation .arena-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 32px;
}
.deck-preparation .arena-notes > .eyebrow,
.deck-preparation .arena-notes > h2 {
  grid-column: 1 / -1;
  max-width: none;
}
.deck-preparation .join {
  margin-bottom: 24px;
}
.your-deck {
  padding: clamp(10px, 2vw, 24px);
  border: 2px solid var(--gold);
  border-radius: 14px;
  background: #081326;
}
.deck-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.deck-controls h3 {
  margin: 0;
}
.selected-deck {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 0;
}
.selected-deck-card {
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 7px;
  aspect-ratio: 3 / 4;
}
.selected-deck-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: contain;
}
.selected-deck-card:has(span) {
  display: grid;
  place-items: center;
  border: 1px dashed #6982aa;
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}
.deck-picker {
  margin: 32px 0 20px;
  padding-top: 24px;
  border-top: 1px solid #42516b;
}
summary {
  font-size: 13px;
  color: var(--gold);
  cursor: pointer;
}
.deck-grid {
  display: grid;
  align-items: start;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 20px 12px;
  margin-top: 14px;
}
.deck-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 7px;
  overflow: hidden;
  position: relative;
  color: var(--muted);
}
.deck-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: contain;
}
.deck-card > span:not(.card-badges) {
  font-size: 10px;
  font-weight: 900;
  display: block;
  padding: 7px 3px;
  line-height: 1.3;
  min-height: 2.6em;
  overflow-wrap: anywhere;
}
.queue-status {
  color: var(--gold);
  font-size: 14px;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 27px 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th {
  text-align: left;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
td,
th {
  padding: 15px 10px;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
td:nth-child(2) {
  font-weight: 800;
}
.list-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.list-row span {
  color: var(--muted);
  font-size: 12px;
}
.invitation-code {
  margin: 24px 0 0;
  padding: 18px;
  background: #101d37;
  border-radius: 8px;
  overflow-wrap: anywhere;
  color: var(--gold);
}
.battle-panel {
  margin-top: 20px;
}
.live {
  color: #a9e9bc;
}
@media (min-width: 1500px) {
  .hero {
    padding-top: 65px;
    padding-bottom: 85px;
  }
  .hero-art {
    transform: scale(1.08);
  }
}
@media (max-width: 1050px) {
  .header {
    padding: 16px 24px;
    gap: 16px;
    flex-wrap: wrap;
  }
  .navigation {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
  }
  .identity {
    margin-left: auto;
  }
  .hero {
    gap: 10px;
  }
  .hero-character {
    width: 135px;
  }
  .hero-character.taylor {
    transform: translate(-88px, 8px) rotate(-16deg);
  }
  .hero-character.rock {
    transform: translate(88px, 6px) rotate(16deg);
  }
  .play-grid {
    gap: 30px;
  }
  .hero h1 {
    font-size: 59px;
  }
  .hero-links {
    gap: 15px;
  }
  .text-link {
    font-size: 11px;
  }
}
@media (max-width: 700px) {
  .header {
    padding: 16px 20px;
  }
  .brand {
    font-size: 15px;
  }
  .brand-crown {
    font-size: 33px;
  }
  .navigation {
    gap: 0;
  }
  .nav-button {
    font-size: 11px;
    padding: 8px;
  }
  .site-main {
    padding: 0 22px 45px;
  }
  .notice {
    font-size: 11px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 40px 0 35px;
  }
  .hero h1 {
    font-size: 58px;
    letter-spacing: -2.8px;
  }
  .hero .lede {
    font-size: 14px;
    max-width: 350px;
  }
  .hero-art {
    min-height: 290px;
    max-width: 400px;
    width: 100%;
    margin: auto;
  }
  .hero-character {
    width: 140px;
  }
  .hero-art:before {
    width: 260px;
    height: 260px;
  }
  .hero-character.taylor {
    transform: translate(-90px, 8px) rotate(-16deg);
  }
  .hero-character.rock {
    transform: translate(90px, 6px) rotate(16deg);
  }
  .art-stamp {
    bottom: 0;
  }
  .play-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 25px;
  }
  .panel {
    padding: 23px 20px;
  }
  .arena-notes {
    padding: 10px;
  }
  .arena-notes h2 {
    max-width: none;
    font-size: 26px;
  }
  .playbook-row {
    margin: 20px 0;
  }
  .playbook-row p {
    max-width: none;
  }
  .hero-links {
    gap: 18px;
  }
  .identity {
    font-size: 11px;
    max-width: 125px;
  }
  footer {
    padding: 25px 22px;
    letter-spacing: 1px;
  }
  .narrow {
    margin-top: 25px;
  }
  table {
    font-size: 11px;
  }
  td,
  th {
    padding: 12px 5px;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 2px;
  }
}
@media (max-width: 360px) {
  .header {
    padding: 14px;
  }
  .site-main {
    padding: 0 16px 35px;
  }
  .hero h1 {
    font-size: 49px;
  }
  .hero-character {
    width: 120px;
  }
  .hero-character.taylor {
    transform: translate(-76px, 8px) rotate(-16deg);
  }
  .hero-character.rock {
    transform: translate(76px, 6px) rotate(16deg);
  }
  .hero-art {
    min-height: 260px;
  }
  .nav-button {
    font-size: 10px;
    padding: 8px 6px;
  }
  .brand {
    font-size: 13px;
  }
  .brand-crown {
    font-size: 28px;
  }
  .button.small {
    font-size: 10px;
    padding: 8px;
  }
  .hero-links {
    gap: 15px;
  }
  .playbook-row {
    gap: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Shared account, history and competition surfaces. */
.action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}
.history-list,
.competition-list {
  display: grid;
  gap: 20px;
  margin: 25px 0;
}
.match-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}
.match-heading h2 {
  margin-bottom: 12px;
}
.badge {
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid #ffffff25;
  border-radius: 7px;
  font-size: 11px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.gold-badge {
  color: var(--gold);
  border-color: #ffc95b44;
}
.sharing-panel {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 24px;
}
.competition-list {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 285px), 1fr));
}
.competition-card h2 {
  overflow-wrap: anywhere;
}
.competition-card .button {
  margin-top: 20px;
  width: 100%;
}
.competition-form {
  max-width: 620px;
  margin: 25px 0;
}
.competition-detail {
  margin: 30px 0;
}
.entrants {
  margin: 28px 0;
}
.entrants .badge {
  margin: 5px 5px 0 0;
}
.bracket {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}
.fixture {
  background: #101d37;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 17px;
  margin: 14px 0;
}
.fixture p {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.fixture .button {
  font-size: 11px;
  padding: 9px;
}
.fixture .muted {
  font-size: 11px;
}
.sharing-panel input {
  font-size: 12px;
}
.history-match > p {
  overflow-wrap: anywhere;
}

.button.danger {
  background: #622c3c;
  border-color: #e08c91;
  color: #ffebeb;
}

@media (max-width: 1100px) {
  .selected-deck,
  .deck-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .deck-preparation .arena-notes {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 480px) {
  .selected-deck,
  .deck-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
