
:root {
  color-scheme: dark;
  --chalk: #f1e7d4;
  --paper: #f7ecd8;
  --ink: #071827;
  --stone: #c7bba5;
  --moss: #a4b88d;
  --navy: #071827;
  --navy-soft: #0c2538;
  --vermillion: #ff3f2e;
  --cyan: #00c7e6;
  --chartreuse: #b7f23c;
  --orchid: #a251ff;
  --saffron: #ffbc31;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 14%, rgba(255, 63, 46, 0.18), transparent 23%),
    radial-gradient(circle at 91% 17%, rgba(0, 199, 230, 0.15), transparent 24%),
    radial-gradient(circle at 72% 88%, rgba(162, 81, 255, 0.12), transparent 25%),
    var(--navy);
  color: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.shell {
  min-height: 100vh;
  overflow: hidden;
  padding: 22px;
  position: relative;
}

.shell::before {
  background: repeating-linear-gradient(112deg, rgba(247, 236, 216, 0.025) 0 1px, transparent 1px 7px);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.topbar {
  align-items: center;
  border-bottom: 1px solid rgba(247, 236, 216, 0.22);
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  padding: 10px 0 18px;
  position: relative;
  z-index: 5;
}

.store-mark {
  color: var(--paper);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-decoration: none;
  text-transform: uppercase;
}

.top-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.hero {
  align-items: center;
  display: grid;
  gap: clamp(28px, 6vw, 74px);
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  margin: 0 auto;
  max-width: 1180px;
  min-height: calc(100vh - 94px);
  padding: clamp(34px, 7vw, 82px) 0 58px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--chartreuse);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.title-lockup {
  display: grid;
  gap: clamp(6px, 1vw, 12px);
  margin: 0;
  max-width: 710px;
  position: relative;
}

.title-dual,
.title-death {
  display: block;
}

.title-dual {
  color: var(--paper);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(82px, 14vw, 160px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.76;
  text-transform: uppercase;
}

.title-death {
  color: var(--paper);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(42px, 7vw, 82px);
  font-weight: 950;
  letter-spacing: -0.025em;
  line-height: 0.84;
  max-width: 620px;
  text-transform: uppercase;
  text-shadow: 6px 6px 0 var(--vermillion);
}

.title-rule {
  background: var(--vermillion);
  display: block;
  height: 6px;
  transform: rotate(-1deg);
  width: min(380px, 62vw);
}

.descriptor {
  color: var(--cyan);
  font-size: clamp(18px, 2.4vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  margin: 24px 0 8px;
  max-width: 620px;
}

.thesis {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 3.8vw, 48px);
  line-height: 1.02;
  margin: 26px 0;
  max-width: 720px;
}

.subcopy {
  color: rgba(247, 236, 216, 0.68);
  font-size: 18px;
  line-height: 1.45;
  max-width: 520px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button,
button {
  align-items: center;
  appearance: none;
  border: 2px solid var(--paper);
  border-radius: 3px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 900;
  justify-content: center;
  letter-spacing: 0.04em;
  min-height: 46px;
  padding: 0 20px;
  text-decoration: none;
  text-transform: uppercase;
  transform: rotate(-0.4deg);
}

.button.primary,
button.primary {
  background: var(--vermillion);
  border-color: var(--vermillion);
  color: var(--paper);
}

.button.secondary,
button.secondary {
  background: transparent;
  border-color: rgba(247, 236, 216, 0.62);
  color: var(--paper);
}

.button:hover,
button:hover {
  filter: brightness(1.08);
  transform: rotate(0);
}

.artifact-stage {
  display: grid;
  min-height: 560px;
  place-items: center;
  position: relative;
}

.artifact-stage::before {
  background: conic-gradient(
    from 218deg,
    transparent 0 8deg,
    var(--cyan) 8deg 19deg,
    transparent 19deg 46deg,
    var(--chartreuse) 46deg 56deg,
    transparent 56deg 91deg,
    var(--vermillion) 91deg 108deg,
    transparent 108deg 164deg,
    var(--orchid) 164deg 176deg,
    transparent 176deg 231deg,
    var(--saffron) 231deg 245deg,
    transparent 245deg 310deg,
    var(--cyan) 310deg 322deg,
    transparent 322deg
  );
  clip-path: polygon(0 42%, 34% 43%, 9% 8%, 43% 37%, 46% 0, 55% 36%, 88% 8%, 67% 44%, 100% 54%, 68% 56%, 94% 92%, 59% 65%, 50% 100%, 44% 65%, 8% 88%, 34% 56%, 0 62%);
  content: "";
  inset: 4%;
  opacity: 0.85;
  position: absolute;
  transform: rotate(-4deg);
}

.duel-card {
  aspect-ratio: 0.68;
  background:
    radial-gradient(circle at 50% 35%, transparent 0 23%, var(--ink) 23.5% 47%, transparent 47.5%),
    linear-gradient(90deg, var(--ink) 0 49.5%, var(--paper) 50%),
    var(--paper);
  border: 3px solid var(--paper);
  border-radius: 26px;
  box-shadow: var(--shadow);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 370px;
  overflow: hidden;
  padding: 22px;
  position: relative;
  transform: rotate(7deg);
  width: min(80vw, 370px);
  z-index: 1;
}

.duel-card::before {
  border: 2px solid var(--ink);
  border-radius: 19px;
  content: "";
  inset: 12px;
  position: absolute;
}

.duel-card::after {
  background:
    linear-gradient(90deg, var(--cyan) 0 49%, var(--saffron) 50%) bottom / 100% 30% no-repeat,
    var(--paper);
  border: 12px solid var(--ink);
  box-shadow:
    inset 0 0 0 8px var(--paper),
    inset 0 0 0 17px var(--ink),
    inset 0 0 0 25px var(--paper),
    inset 0 0 0 33px var(--ink);
  content: "";
  height: 42%;
  left: 29%;
  position: absolute;
  top: 29%;
  transform: perspective(360px) rotateX(2deg) rotateY(-8deg);
  width: 42%;
}

.duel-card .card-type,
.duel-card .card-title {
  position: relative;
  z-index: 2;
}

.duel-card .card-type {
  background: var(--chartreuse);
  color: var(--ink);
  justify-self: start;
  padding: 6px 8px;
  width: max-content;
}

.card-type {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.card-title {
  background: var(--paper);
  color: var(--ink);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 42px;
  letter-spacing: -0.02em;
  line-height: 0.94;
  max-width: 250px;
  padding: 8px 10px;
  text-transform: uppercase;
}

.card-effect {
  color: rgba(255, 250, 240, 0.78);
  font-size: 15px;
  line-height: 1.35;
  max-width: 260px;
}

.next-band {
  border-top: 1px solid rgba(247, 236, 216, 0.22);
  margin: 0 auto;
  max-width: 1180px;
  padding: 28px 0 10px;
  position: relative;
  z-index: 1;
}

.site-footer {
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 63, 46, 0.13), transparent 25%),
    radial-gradient(circle at 88% 84%, rgba(0, 199, 230, 0.11), transparent 28%),
    var(--paper);
  border: 3px solid var(--paper);
  border-radius: 6px;
  box-shadow: 12px 12px 0 var(--vermillion);
  color: var(--ink);
  margin: 52px auto 0;
  max-width: 1180px;
  overflow: hidden;
  padding: clamp(26px, 4vw, 46px);
  position: relative;
  z-index: 1;
}

.footer-intro {
  border-bottom: 2px solid var(--ink);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(220px, 0.7fr) minmax(280px, 1.3fr);
  padding-bottom: clamp(26px, 4vw, 40px);
}

.footer-kicker,
.footer-label {
  color: var(--vermillion);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  margin: 0;
  text-transform: uppercase;
}

.footer-intro h2 {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(36px, 5vw, 58px);
  grid-row: 2 / span 2;
  line-height: 0.9;
  margin: 0;
  max-width: 540px;
  text-transform: uppercase;
}

.footer-intro h2 a {
  color: inherit;
  text-decoration: none;
}

.footer-intro h2 a:hover {
  color: var(--vermillion);
}

.footer-intro h2 span {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.45em;
  vertical-align: top;
}

.footer-statement {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.08;
  margin: 0;
  max-width: 610px;
}

.footer-note {
  color: rgba(7, 24, 39, 0.65);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
  max-width: 570px;
}

.footer-content {
  display: grid;
  gap: clamp(22px, 3vw, 38px);
  grid-template-columns: 1.25fr 1fr 0.72fr;
  padding: clamp(26px, 4vw, 38px) 0;
}

.footer-content h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 2.3vw, 30px);
  line-height: 1;
  margin: 22px 0;
}

.footer-about > p:last-child {
  color: rgba(7, 24, 39, 0.7);
  line-height: 1.6;
  margin: 0;
}

.footer-steps {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.footer-steps li {
  border-top: 1px solid rgba(7, 24, 39, 0.22);
  display: grid;
  gap: 4px 12px;
  grid-template-columns: 28px 1fr;
  padding: 11px 0;
}

.footer-steps span {
  color: var(--orchid);
  font-size: 11px;
  font-weight: 900;
  grid-row: 1 / span 2;
  padding-top: 3px;
}

.footer-steps strong {
  font-size: 15px;
}

.footer-steps small {
  color: rgba(7, 24, 39, 0.6);
  font-size: 13px;
  line-height: 1.4;
}

.footer-nav {
  display: flex;
  flex-direction: column;
}

.footer-nav .footer-label {
  margin-bottom: 18px;
}

.footer-nav a {
  align-items: center;
  border-top: 1px solid rgba(7, 24, 39, 0.22);
  display: flex;
  font-size: 14px;
  font-weight: 800;
  justify-content: space-between;
  padding: 11px 0;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--vermillion);
}

.footer-development {
  background: var(--chartreuse);
  border: 2px solid var(--ink);
  border-radius: 2px;
  box-shadow: 8px 8px 0 var(--ink);
  color: var(--ink);
  display: grid;
  gap: clamp(20px, 3vw, 38px);
  grid-template-columns: minmax(220px, 0.7fr) minmax(280px, 1.3fr);
  margin-bottom: clamp(26px, 4vw, 38px);
  padding: clamp(20px, 2.6vw, 28px);
}

.footer-development .footer-label {
  color: rgba(24, 23, 19, 0.64);
}

.footer-development h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 0.98;
  margin: 18px 0 0;
}

.footer-development p {
  font-size: 14px;
  line-height: 1.45;
  margin: 0 0 10px;
}

.footer-cta {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  margin-top: 10px;
}

.footer-base {
  border-top: 1px solid rgba(7, 24, 39, 0.24);
  color: rgba(7, 24, 39, 0.52);
  display: flex;
  flex-wrap: wrap;
  font-size: 10px;
  font-weight: 800;
  gap: 12px 32px;
  justify-content: space-between;
  letter-spacing: 0.12em;
  padding-top: 22px;
  text-transform: uppercase;
}

.site-footer-compact {
  border-radius: 4px;
  margin-top: 36px;
  padding: clamp(20px, 3vw, 32px);
}

.site-footer-compact .footer-intro {
  gap: 10px 22px;
  padding-bottom: clamp(20px, 3vw, 28px);
}

.site-footer-compact .footer-intro h2 {
  font-size: clamp(31px, 4vw, 44px);
}

.site-footer-compact .footer-statement {
  font-size: clamp(18px, 2vw, 23px);
}

.site-footer-compact .footer-note {
  font-size: 13px;
  line-height: 1.45;
}

.site-footer-compact .footer-content {
  gap: clamp(20px, 2.5vw, 30px);
  padding: clamp(20px, 3vw, 28px) 0;
}

.site-footer-compact .footer-content h3 {
  font-size: clamp(21px, 2vw, 26px);
  margin: 12px 0;
}

.site-footer-compact .footer-about > p:last-child {
  font-size: 13px;
  line-height: 1.45;
}

.site-footer-compact .footer-steps li,
.site-footer-compact .footer-nav a {
  padding: 8px 0;
}

.site-footer-compact .footer-development {
  gap: clamp(16px, 2.5vw, 28px);
  margin-bottom: clamp(20px, 3vw, 28px);
  padding: clamp(17px, 2.4vw, 22px);
}

.site-footer-compact .footer-development h3 {
  font-size: clamp(24px, 2.6vw, 31px);
  margin-top: 9px;
}

.site-footer-compact .footer-development p {
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 8px;
}

.site-footer-compact .footer-cta {
  min-height: 38px;
  padding: 0 16px;
}

.contributor-shell {
  background:
    radial-gradient(circle at 12% 12%, rgba(183, 242, 60, 0.16), transparent 26%),
    radial-gradient(circle at 92% 24%, rgba(162, 81, 255, 0.18), transparent 28%),
    var(--navy);
}

.contributor-layout {
  align-items: start;
  display: grid;
  gap: clamp(34px, 6vw, 82px);
  grid-template-columns: minmax(280px, 0.82fr) minmax(360px, 1.18fr);
  margin: 0 auto;
  max-width: 1180px;
  padding: clamp(54px, 8vw, 104px) 0;
  position: relative;
  z-index: 1;
}

.contributor-intro {
  position: sticky;
  top: 40px;
}

.contributor-intro h1 {
  color: var(--paper);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(54px, 8vw, 96px);
  letter-spacing: -0.03em;
  line-height: 0.86;
  margin: 0;
  text-transform: uppercase;
}

.contributor-intro .thesis {
  font-size: clamp(24px, 3vw, 38px);
}

.contributor-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.contributor-fields span {
  background: transparent;
  border: 1px solid rgba(247, 236, 216, 0.5);
  border-radius: 2px;
  color: var(--paper);
  font-size: 12px;
  font-weight: 800;
  padding: 8px 11px;
}

.tally-panel {
  background: var(--paper);
  border: 3px solid var(--paper);
  border-radius: 4px;
  box-shadow: var(--shadow);
  overflow: visible;
  padding: clamp(16px, 3vw, 30px);
}

.tally-panel iframe {
  display: block;
}

.auth-panel,
.home-panel {
  background: var(--paper);
  border: 3px solid var(--paper);
  border-radius: 4px;
  box-shadow: var(--shadow);
  color: var(--ink);
  margin: 48px auto;
  max-width: 520px;
  padding: 30px;
}

.home-panel {
  border-top: 10px solid var(--vermillion);
  max-width: 980px;
}

.auth-panel .eyebrow,
.home-panel .eyebrow,
.card-back .eyebrow {
  color: var(--vermillion);
}

.auth-panel h2,
.home-panel h2 {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(38px, 6vw, 64px);
  letter-spacing: -0.025em;
  line-height: 0.9;
  margin: 12px 0 22px;
  text-transform: uppercase;
}

.auth-panel .thesis,
.home-panel .thesis,
.card-back .thesis {
  color: var(--ink);
}

.field {
  display: grid;
  gap: 7px;
  margin: 16px 0;
}

label {
  color: rgba(7, 24, 39, 0.72);
  font-size: 13px;
  font-weight: 900;
}

input {
  background: #fffaf0;
  border: 2px solid var(--ink);
  border-radius: 2px;
  color: var(--ink);
  font: inherit;
  min-height: 46px;
  padding: 0 13px;
  width: 100%;
}

select {
  background: #fffaf0;
  border: 2px solid var(--ink);
  border-radius: 2px;
  color: var(--ink);
  font: inherit;
  min-height: 46px;
  padding: 0 13px;
  width: 100%;
}

input[type="file"] {
  align-items: center;
  display: flex;
  min-height: 54px;
  padding: 13px;
}

.error {
  color: #a01d16;
  font-size: 13px;
  font-weight: 800;
}

.grid-actions {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.tool-tile {
  background: var(--navy);
  border: 2px solid var(--navy);
  border-radius: 2px;
  color: var(--paper);
  min-height: 118px;
  padding: 16px;
  text-decoration: none;
}

.tool-tile strong {
  display: block;
  font-size: 20px;
  margin-bottom: 10px;
}

.tool-tile:nth-child(1) {
  border-top: 7px solid var(--vermillion);
}

.tool-tile:nth-child(2) {
  border-top: 7px solid var(--cyan);
}

.tool-tile:nth-child(3) {
  border-top: 7px solid var(--chartreuse);
}

.tool-tile:nth-child(4) {
  border-top: 7px solid var(--orchid);
}

.tool-tile:hover {
  box-shadow: 6px 6px 0 var(--saffron);
  transform: translate(-2px, -2px);
}

.muted {
  color: rgba(247, 236, 216, 0.64);
}

.auth-panel .muted,
.home-panel .muted,
.card-back .muted {
  color: rgba(7, 24, 39, 0.62);
}

.tool-tile .muted {
  color: rgba(247, 236, 216, 0.62);
}

.home-deck {
  border-top: 2px solid var(--ink);
  margin-top: 38px;
  padding-top: 28px;
  scroll-margin-top: 24px;
}

.home-deck-heading {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
}

.home-deck-heading .eyebrow {
  margin-bottom: 8px;
}

.home-deck-heading h3 {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.02em;
  line-height: 0.95;
  margin: 0;
  text-transform: uppercase;
}

.home-deck-heading > a {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-card-grid {
  display: grid;
  gap: clamp(18px, 3vw, 30px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-card {
  min-width: 0;
}

.home-card-note {
  color: rgba(7, 24, 39, 0.62);
  display: flex;
  font-size: 11px;
  font-weight: 900;
  justify-content: space-between;
  padding: 12px 4px 0;
  text-transform: capitalize;
}

.card-form-panel {
  max-width: 620px;
}

.card-detail {
  align-items: center;
  display: grid;
  gap: clamp(24px, 5vw, 70px);
  grid-template-columns: minmax(280px, 0.8fr) minmax(280px, 1fr);
  margin: 42px auto;
  max-width: 1080px;
  position: relative;
  z-index: 1;
}

.created-card {
  aspect-ratio: 0.68;
  background: #111;
  border: 3px solid var(--paper);
  border-radius: 5px;
  box-shadow: var(--shadow);
  color: var(--paper);
  overflow: hidden;
  position: relative;
  width: min(82vw, 390px);
}

.card-media {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.created-card-meta {
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
  bottom: 0;
  left: 0;
  padding: 88px 22px 22px;
  position: absolute;
  right: 0;
}

.created-card-meta h2 {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 42px;
  letter-spacing: -0.02em;
  line-height: 0.95;
  margin: 10px 0 0;
  text-transform: uppercase;
}

.card-back {
  background: var(--paper);
  border: 3px solid var(--paper);
  border-radius: 4px;
  box-shadow: var(--shadow);
  color: var(--ink);
  padding: 30px;
}

.duel-setup,
.duel-invitation {
  margin: clamp(42px, 7vw, 90px) auto;
  max-width: 1120px;
  position: relative;
  z-index: 1;
}

.duel-setup {
  align-items: start;
  display: grid;
  gap: clamp(30px, 6vw, 78px);
  grid-template-columns: minmax(280px, 0.72fr) minmax(320px, 1fr);
}

.duel-setup-panel,
.duel-invitation-action {
  background: var(--paper);
  box-shadow: var(--shadow);
  color: var(--ink);
  padding: clamp(26px, 5vw, 48px);
}

.duel-setup-panel h1,
.duel-invitation-heading h1 {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(42px, 7vw, 78px);
  letter-spacing: -0.03em;
  line-height: 0.88;
  margin: 14px 0 24px;
  text-transform: uppercase;
}

.duel-form {
  display: grid;
  gap: 24px;
  margin-top: 28px;
}

.duel-form fieldset {
  border: 0;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.duel-form legend {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.duel-form fieldset label {
  align-items: start;
  border: 2px solid var(--ink);
  cursor: pointer;
  display: flex;
  gap: 12px;
  padding: 16px;
}

.duel-form fieldset input {
  margin-top: 4px;
  width: auto;
}

.duel-form fieldset span,
.duel-card-choice > span:last-child {
  display: grid;
  gap: 4px;
}

.duel-form small,
.duel-card-choice small {
  color: rgba(7, 24, 39, 0.62);
}

.duel-note {
  display: grid;
  font-size: 12px;
  font-weight: 900;
  gap: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.duel-note > span {
  color: rgba(7, 24, 39, 0.54);
  font-weight: 700;
}

.duel-note textarea {
  min-height: 104px;
  resize: vertical;
}

.duel-card-choices {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.duel-card-choice {
  background: rgba(7, 24, 39, 0.04);
  border: 2px solid var(--ink);
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: auto 58px 1fr;
  padding: 10px;
}

.duel-card-choice > input {
  align-self: center;
  width: auto;
}

.duel-card-choice-visual {
  aspect-ratio: 0.68;
  background: var(--ink);
  display: block;
  overflow: hidden;
}

.duel-card-choice-visual img,
.duel-card-choice-visual video {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.duel-card-choice > span:last-child {
  align-self: center;
  min-width: 0;
}

.duel-invitation-heading {
  margin: 0 auto clamp(36px, 6vw, 68px);
  max-width: 900px;
  text-align: center;
}

.duel-table {
  display: flex;
  justify-content: center;
}

.duel-table-ready {
  align-items: center;
  gap: clamp(16px, 3vw, 38px);
}

.duel-table-ready .created-card {
  width: min(37vw, 350px);
}

.duel-versus {
  color: var(--chartreuse);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(38px, 7vw, 84px);
  transform: rotate(-7deg);
}

.duel-invitation-action {
  margin: clamp(38px, 7vw, 70px) auto 0;
  max-width: 720px;
}

.duel-invitation-action h2 {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 0.95;
  margin: 12px 0 18px;
  text-transform: uppercase;
}

.share-link {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr auto;
  margin-top: 24px;
}

.share-link input {
  min-width: 0;
}

.profile-shell {
  background:
    radial-gradient(circle at 8% 18%, rgba(162, 81, 255, 0.17), transparent 25%),
    radial-gradient(circle at 92% 8%, rgba(183, 242, 60, 0.15), transparent 25%),
    var(--navy);
}

.profile-header {
  align-items: end;
  border-bottom: 1px solid rgba(247, 236, 216, 0.24);
  display: grid;
  gap: clamp(22px, 4vw, 48px);
  grid-template-columns: auto 1fr auto;
  margin: 0 auto;
  max-width: 1180px;
  padding: clamp(54px, 9vw, 116px) 0 clamp(34px, 6vw, 62px);
  position: relative;
  z-index: 1;
}

.profile-avatar {
  background: var(--paper);
  border: 5px solid var(--paper);
  border-radius: 3px;
  box-shadow: 8px 8px 0 var(--vermillion);
  height: clamp(92px, 13vw, 148px);
  object-fit: cover;
  width: clamp(92px, 13vw, 148px);
}

.profile-avatar-fallback {
  align-items: center;
  color: var(--ink);
  display: flex;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 7vw, 78px);
  font-weight: 900;
  justify-content: center;
}

.profile-identity .eyebrow {
  margin-bottom: 12px;
}

.profile-identity h1 {
  color: var(--paper);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(48px, 8vw, 94px);
  letter-spacing: -0.045em;
  line-height: 0.86;
  margin: 0;
  text-transform: uppercase;
}

.profile-handle {
  color: var(--cyan);
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 800;
  margin: 18px 0 0;
}

.profile-stats {
  display: flex;
  gap: clamp(20px, 4vw, 48px);
  margin: 0;
}

.profile-stats div {
  display: grid;
  gap: 7px;
}

.profile-stats dt {
  color: rgba(247, 236, 216, 0.55);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.profile-stats dd {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 800;
  margin: 0;
}

.profile-feed {
  margin: 0 auto;
  max-width: 1180px;
  padding: clamp(42px, 7vw, 82px) 0 0;
  position: relative;
  z-index: 1;
}

.profile-feed-heading {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 28px;
}

.profile-feed-heading .eyebrow {
  margin-bottom: 10px;
}

.profile-feed-heading h2 {
  color: var(--paper);
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(36px, 5vw, 58px);
  letter-spacing: -0.025em;
  line-height: 0.95;
  margin: 0;
  text-transform: uppercase;
}

.profile-card-grid {
  display: grid;
  gap: clamp(18px, 3vw, 34px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-card {
  min-width: 0;
}

.profile-card-visual {
  aspect-ratio: 0.78;
  background: var(--navy);
  border: 3px solid var(--paper);
  border-radius: 4px;
  box-shadow: 7px 7px 0 var(--vermillion);
  color: var(--paper);
  display: block;
  overflow: hidden;
  position: relative;
}

.profile-card-visual img,
.profile-card-visual video {
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
  width: 100%;
}

.profile-card-visual:hover img,
.profile-card-visual:hover video {
  transform: scale(1.025);
}

.profile-card-overlay {
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
  bottom: 0;
  display: grid;
  gap: 8px;
  left: 0;
  padding: 72px 18px 18px;
  position: absolute;
  right: 0;
}

.profile-card-overlay small {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.profile-card-overlay strong {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.015em;
  line-height: 0.95;
  text-transform: uppercase;
}

.profile-card-note {
  color: rgba(247, 236, 216, 0.62);
  display: flex;
  font-size: 12px;
  font-weight: 800;
  justify-content: space-between;
  padding: 12px 4px 0;
}

.profile-empty {
  background: rgba(247, 236, 216, 0.07);
  border: 1px dashed rgba(247, 236, 216, 0.4);
  border-radius: 3px;
  grid-column: 1 / -1;
  padding: clamp(36px, 7vw, 78px);
  text-align: center;
}

.profile-empty .eyebrow,
.profile-empty p {
  margin-left: auto;
  margin-right: auto;
}

.joined-activity {
  align-items: center;
  border-top: 1px solid rgba(247, 236, 216, 0.24);
  display: flex;
  gap: 16px;
  margin-top: clamp(38px, 6vw, 68px);
  padding-top: 24px;
}

.joined-activity div {
  display: grid;
  gap: 4px;
}

.joined-activity time {
  color: rgba(247, 236, 216, 0.55);
  font-size: 12px;
}

.joined-mark {
  align-items: center;
  background: var(--chartreuse);
  border-radius: 2px;
  color: var(--ink);
  display: flex;
  font-size: 24px;
  height: 46px;
  justify-content: center;
  width: 46px;
}

@media (max-width: 780px) {
  .shell {
    padding: 16px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 40px;
  }

  h1 {
    font-size: clamp(58px, 23vw, 104px);
  }

  .artifact-stage {
    min-height: 430px;
  }

  .duel-card {
    max-width: 310px;
  }

  .grid-actions {
    grid-template-columns: 1fr;
  }

  .home-deck-heading {
    align-items: start;
    flex-direction: column;
    gap: 14px;
  }

  .home-card-grid {
    grid-template-columns: 1fr;
  }

  .card-detail {
    grid-template-columns: 1fr;
  }

  .duel-setup {
    grid-template-columns: 1fr;
  }

  .duel-setup > .created-card {
    justify-self: center;
  }

  .duel-card-choices {
    grid-template-columns: 1fr;
  }

  .duel-table-ready {
    gap: 10px;
  }

  .duel-table-ready .created-card {
    width: min(39vw, 270px);
  }

  .share-link {
    grid-template-columns: 1fr;
  }

  .site-footer {
    border-radius: 18px;
    margin-top: 38px;
    padding: 22px;
  }

  .footer-intro,
  .footer-content,
  .footer-development,
  .contributor-layout {
    grid-template-columns: 1fr;
  }

  .footer-intro h2 {
    grid-row: auto;
  }

  .footer-content {
    gap: 27px;
  }

  .footer-base {
    flex-direction: column;
  }

  .contributor-intro {
    position: static;
  }

  .profile-header {
    align-items: start;
    grid-template-columns: auto 1fr;
  }

  .profile-stats {
    grid-column: 1 / -1;
  }

  .profile-card-grid {
    grid-template-columns: 1fr;
  }

  .profile-feed-heading {
    align-items: start;
    flex-direction: column;
    gap: 20px;
  }

  .site-footer-compact {
    margin-top: 30px;
    padding: 18px;
  }

  .site-footer-compact .footer-content {
    gap: 22px;
  }

}
