:root {
  --ink: #091006;
  --panel-shadow: 4px 4px 0 #0d1608;
}

* {
  box-sizing: border-box;
}

html {
  background: #263e15;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Tahoma, Verdana, "MS Sans Serif", sans-serif;
  image-rendering: pixelated;
  background:
    radial-gradient(circle at 50% 12%, rgba(255, 255, 255, 0.28), transparent 24%),
    repeating-linear-gradient(0deg, rgba(9, 14, 5, 0.24) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(90deg, rgba(226, 245, 139, 0.08) 0 1px, transparent 1px 7px),
    linear-gradient(0deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.18)),
    repeating-linear-gradient(180deg, #68952a 0 20px, #568121 20px 40px, #446819 40px 60px),
    linear-gradient(180deg, #7eac31 0%, #4d741f 36%, #213715 100%);
  background-position: center 0, 0 0, 0 0, 0 0, 0 0, 0 0;
}

body::before,
body::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  height: 17px;
  z-index: 5;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(0, 0, 0, 0.74)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 2px, transparent 2px 8px);
}

body::before {
  top: 0;
}

body::after {
  bottom: 0;
}

.field-drift {
  position: fixed;
  inset: -32px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.28;
  will-change: transform;
  background-image:
    repeating-linear-gradient(0deg, rgba(245, 255, 196, 0.09) 0 2px, transparent 2px 22px),
    repeating-linear-gradient(90deg, rgba(8, 12, 4, 0.13) 0 1px, transparent 1px 16px),
    radial-gradient(circle at 18% 28%, rgba(229, 245, 152, 0.12) 0 2px, transparent 2px 24px);
  background-size: auto, auto, 160px 160px;
  animation: field-drift-layer 18s steps(24, end) infinite alternate;
}

.noise {
  position: fixed;
  inset: -24px;
  pointer-events: none;
  opacity: 0.22;
  z-index: 1;
  will-change: transform;
  background-image:
    repeating-linear-gradient(0deg, rgba(14, 20, 7, 0.2) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(229, 245, 152, 0.14) 0 1px, transparent 1px 5px),
    radial-gradient(circle at 15% 24%, rgba(255, 236, 165, 0.16) 0 1px, transparent 1px 7px),
    radial-gradient(circle at 78% 66%, rgba(3, 7, 2, 0.28) 0 1px, transparent 1px 9px);
  background-size: 100% 4px, 6px 100%, 14px 14px, 16px 16px;
  animation: noise-float 11s steps(18, end) infinite alternate;
}

.page-shell {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 16px));
  margin: 0 auto;
  padding: 20px 0 44px;
}

.mvp-banner {
  margin-top: 12px;
}

.mvp-card {
  padding: 12px 14px;
  border: 2px solid #0d1608;
  outline: 2px solid rgba(236, 246, 190, 0.85);
  box-shadow: var(--panel-shadow);
  background:
    repeating-linear-gradient(90deg, rgba(255, 179, 71, 0.08) 0 10px, transparent 10px 20px),
    linear-gradient(180deg, rgba(58, 27, 8, 0.96), rgba(106, 50, 15, 0.95) 48%, rgba(36, 54, 20, 0.98) 100%);
  color: #eef5dd;
}

.mvp-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.mvp-badge {
  display: inline-block;
  padding: 6px 10px;
  border: 2px solid #f1d886;
  background: linear-gradient(180deg, #d7ae47, #87681b);
  color: #fff4d6;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 2px 2px 0 rgba(9, 16, 6, 0.94);
}

.mvp-copy {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.masthead,
.big-card,
.small-card,
.match-card,
.admin-card,
.team-card,
.profile-form-card,
.bio-card,
.profile-card,
.player-card,
.nav-ribbon,
.flash,
.rail-widget,
.hud-bar {
  border: 2px solid #0d1608;
  outline: 2px solid rgba(236, 246, 190, 0.85);
  box-shadow: var(--panel-shadow);
}

.masthead {
  position: relative;
  padding: 14px;
  background:
    radial-gradient(circle at 18% 30%, rgba(255, 255, 255, 0.18), transparent 20%),
    linear-gradient(180deg, rgba(222, 226, 224, 0.98), rgba(126, 136, 136, 0.94) 28%, rgba(58, 63, 62, 0.97) 29%, rgba(38, 53, 24, 0.98) 100%);
  filter: saturate(1.04) contrast(1.04);
}

.eyebrow-slider {
  margin: 0 0 8px;
  padding: 4px 0;
  overflow: hidden;
  border: 2px solid #f0ffac;
  background: linear-gradient(180deg, #d5ea57, #6a8e22);
  box-shadow: 2px 2px 0 var(--ink);
}

.eyebrow-track {
  display: flex;
  width: max-content;
  min-width: 100%;
  will-change: transform;
  animation: eyebrow-scroll 18s linear infinite;
}

.eyebrow-segment {
  flex: 0 0 auto;
  padding: 0 18px;
  white-space: nowrap;
  color: #f2f8e0;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.brand-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

h1 {
  margin: 0;
  font-family: "Arial Black", Impact, Tahoma, sans-serif;
  font-size: clamp(3rem, 10vw, 6.2rem);
  line-height: 0.88;
  letter-spacing: 0.12em;
  color: #f7faf4;
  font-style: italic;
  text-shadow: 0 1px 0 #1c2a12, 2px 2px 0 #568220, 4px 4px 0 rgba(12, 19, 8, 0.56);
}

.bootleg-row,
.auth-tabs,
.nav-ribbon,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.bootleg-row {
  margin-top: 8px;
}

.bootleg-seal {
  display: inline-block;
  padding: 4px 8px;
  background: linear-gradient(180deg, #14270c, #091006);
  color: #eef9a4;
  border: 2px dotted #d8f26a;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.bootleg-seal.toxic {
  background: linear-gradient(180deg, #d7a83d, #876517);
  color: #140f03;
}

.ticker {
  display: block;
  margin-top: 16px;
  padding: 8px 10px;
  border: 3px ridge #d7ddde;
  background:
    repeating-linear-gradient(90deg, rgba(255, 179, 71, 0.13) 0 8px, transparent 8px 16px),
    linear-gradient(180deg, rgba(121, 58, 18, 0.96), rgba(47, 20, 5, 0.98));
  color: #eef4f5;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background-position: 0 0, 0 0;
}

.masthead-side-gif {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.weed-gif {
  opacity: 0.96;
  filter: saturate(1.02) contrast(1.02);
}

.weed-gif-tiny {
  max-width: 34px;
  max-height: 34px;
}

.weed-gif-small {
  max-width: 54px;
  max-height: 54px;
}

.weed-gif-medium {
  max-width: 88px;
  max-height: 88px;
}

.weed-gif-large {
  max-width: 112px;
  max-height: 112px;
}

.weed-gif-wide {
  max-width: 132px;
  max-height: 50px;
}

.construction-gif {
  max-width: 88px;
}

main {
  margin-top: 12px;
}

.view {
  display: none;
}

.view.active,
.screen.active {
  display: block;
}

#landingView {
  position: relative;
  padding-top: 54px;
}

.hero-grid,
.screen-grid,
.calendar-grid,
.players-grid,
.profiles-grid {
  display: grid;
  gap: 12px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.16fr) minmax(320px, 0.84fr);
  align-items: start;
}

.free-gif {
  position: absolute;
  z-index: 2;
  pointer-events: none;
}

.free-gif-a {
  left: -10px;
  top: 86px;
}

.free-gif-b {
  left: 32%;
  top: 92px;
}

.free-gif-c {
  left: 63%;
  top: 98px;
}

.free-gif-d {
  right: 0;
  top: 84px;
}

.free-gif-e {
  right: 28%;
  bottom: 22px;
}

.down-arrow {
  transform: rotate(90deg);
}

.clutter-float {
  image-rendering: pixelated;
  filter: drop-shadow(2px 2px 0 rgba(9, 16, 6, 0.85));
}

.clutter-float.small {
  width: 54px;
  height: auto;
}

.clutter-float.medium {
  width: 78px;
  height: auto;
}

.big-card,
.small-card,
.match-card,
.admin-card,
.team-card,
.profile-form-card,
.bio-card,
.profile-card,
.player-card {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 5px),
    linear-gradient(180deg, rgba(220, 226, 223, 0.96), rgba(117, 127, 127, 0.92) 13%, rgba(53, 59, 57, 0.96) 14%, rgba(70, 98, 31, 0.95) 100%);
  background-position: 0 0, 0 0;
}

.big-card,
.small-card,
.match-card,
.admin-card,
.team-card,
.profile-form-card,
.bio-card,
.profile-card,
.player-card,
.rail-widget {
  padding: 14px;
}

.hero-card,
.auth-card {
  position: relative;
  min-height: 430px;
}

.hero-gif-cluster,
.auth-gif-cluster,
.rail-gif-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-gif-cluster,
.auth-gif-cluster {
  margin-top: 18px;
  justify-content: flex-end;
}

.hero-gif-cluster img,
.auth-gif-cluster img,
.rail-gif-stack img,
.rail-widget img {
  display: block;
  max-width: 100%;
  image-rendering: pixelated;
}

.hero-gif-cluster img:nth-child(1) {
  width: 72px;
}

.hero-gif-cluster img:nth-child(2) {
  width: 76px;
}

.auth-gif-cluster img:nth-child(1) {
  width: 104px;
}

.widget-kicker {
  margin: 0 0 6px;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #eff8c6;
}

.stamp {
  display: inline-block;
  padding: 6px 10px;
  background: linear-gradient(180deg, #d7ae47, #87681b);
  color: #f8f0d5;
  border: 2px solid #f0d681;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 var(--ink);
}

.next-match-headline {
  margin: 18px 0 12px;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: clamp(2.2rem, 6vw, 4.4rem);
  line-height: 0.92;
  color: #f5f7f4;
  text-shadow: 0 1px 0 #0b1109, 2px 2px 0 rgba(0, 0, 0, 0.56);
}

.date-fragment {
  display: inline-block;
  padding: 2px 8px;
  background: linear-gradient(180deg, #ca7128, #692f0a);
  color: #fff2dc;
  border: 2px solid #d6dfe3;
}

.hero-meta,
.info-rack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.hero-meta span,
.rack-chip {
  padding: 5px 8px;
  border: 2px solid var(--ink);
  background: linear-gradient(180deg, #d0d7d7, #6f7878 48%, #90b237 49%, #496b18 100%);
  color: #f7f8f2;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 2px 2px 0 rgba(9, 16, 6, 0.95);
}

.loud-box {
  margin: 14px 0;
  padding: 14px;
  border: 2px solid #d8e2e6;
  box-shadow: inset 0 0 0 2px rgba(8, 13, 5, 0.32);
  background:
    repeating-linear-gradient(0deg, rgba(236, 246, 177, 0.06) 0 2px, transparent 2px 5px),
    linear-gradient(180deg, rgba(46, 76, 27, 0.94), rgba(22, 37, 13, 0.96));
  color: #f2f7ef;
  background-position: 0 0, 0 0;
}

.status-pill {
  display: inline-block;
  padding: 6px 12px;
  border: 2px solid #f0d88b;
  background: linear-gradient(180deg, #c5a13d, #7e6117);
  color: #fff7de;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 2px 2px 0 var(--ink);
}

.status-pill.locked {
  background: linear-gradient(180deg, #4c6f25, #243913);
  color: #eef3cb;
}

.tab-button,
.nav-chip,
.sticker-button {
  border-top: 2px solid #edf0f1;
  border-left: 2px solid #edf0f1;
  border-right: 2px solid #1b211f;
  border-bottom: 2px solid #1b211f;
  background: linear-gradient(180deg, #ccd3d5 0%, #72797d 22%, #e4b953 23%, #926c1d 100%);
  color: #f8faf9;
  font-family: inherit;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  padding: 9px 12px;
  text-align: left;
  box-shadow: 3px 3px 0 var(--ink);
}

.tab-button.active,
.nav-chip.active {
  background: linear-gradient(180deg, #ef9032 0%, #7c3710 24%, #d8eb5f 25%, #58781d 100%);
}

.sticker-button.ghost {
  background: linear-gradient(180deg, #d3dadc 0%, #646e73 30%, #557c22 31%, #2f4814 100%);
}

.sticker-button:disabled {
  cursor: not-allowed;
  opacity: 0.66;
  filter: grayscale(0.25);
}

.text-link-button {
  display: inline-flex;
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #eef9a4;
  font: inherit;
  font-weight: 900;
  text-decoration: underline;
  text-transform: uppercase;
  cursor: pointer;
}

.auth-body,
.auth-pane,
.auth-form {
  margin-top: 16px;
}

.auth-pane {
  display: none;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(16, 24, 17, 0.28);
}

.auth-pane.active {
  display: block;
}

.auth-form {
  margin-top: 0;
}

.modal-form h2 {
  margin: 0;
  font-family: "Arial Black", Impact, sans-serif;
  color: #f4f7b1;
  text-shadow: 2px 2px 0 rgba(9, 16, 6, 0.94);
}

.auth-social,
.verification-panel {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(237, 240, 241, 0.3);
}

.google-stack {
  margin-bottom: 8px;
}

.google-button-mount {
  display: flex;
  justify-content: center;
  min-height: 44px;
}

label {
  display: block;
  margin-bottom: 12px;
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #f5f7f4;
}

fieldset {
  margin: 0 0 12px;
  padding: 10px 12px 12px;
  border: 2px solid rgba(236, 246, 190, 0.34);
}

legend {
  padding: 0 6px;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #f5f7f4;
}

.priority-grid,
.smoke-options {
  display: grid;
  gap: 10px;
}

.smoke-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.smoke-option {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  padding: 8px 10px;
  border: 2px solid rgba(236, 246, 190, 0.2);
  background: rgba(18, 25, 17, 0.2);
}

.smoke-option input {
  width: auto;
  margin: 0;
}

.auth-social-note {
  color: #f5f7f4;
  font-weight: 900;
}

input,
select,
textarea {
  box-sizing: border-box;
  width: 100%;
  margin-top: 6px;
  padding: 8px 10px;
  border-top: 2px solid #1b2d0d;
  border-left: 2px solid #1b2d0d;
  border-right: 2px solid #f2ffaf;
  border-bottom: 2px solid #f2ffaf;
  background: rgba(224, 229, 226, 0.96);
  font: inherit;
  box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.28);
}

.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.verification-preview,
.flash {
  padding: 12px 14px;
  border: 2px solid #d5dde0;
  background:
    repeating-linear-gradient(90deg, rgba(236, 246, 177, 0.05) 0 7px, transparent 7px 14px),
    linear-gradient(180deg, rgba(31, 53, 23, 0.96), rgba(15, 24, 17, 0.96));
  color: #eef4ec;
  font-weight: 800;
  background-position: 0 0, 0 0;
}

.hidden {
  display: none !important;
}

body.modal-open {
  overflow: hidden;
}

.screen {
  display: none;
}

.screen-grid {
  grid-template-columns: minmax(0, 1.18fr) minmax(260px, 0.82fr);
  gap: 12px;
}

.dashboard-stack,
.sidebar-stack,
.chaos-rail {
  display: grid;
  gap: 12px;
  align-content: start;
}

.match-card,
.admin-card,
.team-card,
.profile-form-card,
.bio-card,
.profile-card,
.player-card {
  color: #f1f5ef;
}

.match-card h2,
.admin-card h2,
.team-card h2,
.profile-form-card h2,
.bio-card h2,
.profile-card h2,
.player-card h2 {
  margin-top: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-title-row h2 {
  margin-bottom: 0;
}

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

.calendar-team-columns {
  margin-top: 12px;
}

.calendar-actions {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.result-form {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(237, 240, 241, 0.3);
}

.team-list,
.profile-list,
.signup-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}

.team-list li,
.profile-list li,
.signup-list li {
  padding: 7px 0;
  border-bottom: 1px dotted rgba(231, 240, 224, 0.4);
}

.signup-entry,
.guest-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.participant-chip {
  display: inline-block;
  min-width: 74px;
  padding: 3px 8px;
  border: 1px solid rgba(244, 239, 191, 0.75);
  background: rgba(9, 16, 6, 0.38);
  color: #f6f0c1;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
}

.participant-chip.guest {
  background: linear-gradient(180deg, rgba(108, 71, 21, 0.9), rgba(49, 28, 8, 0.95));
}

.guest-admin-form,
.guest-admin-list {
  display: grid;
  gap: 10px;
}

.guest-admin-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.guest-row {
  padding: 10px 0;
  border-bottom: 1px dotted rgba(231, 240, 224, 0.4);
}

.guest-row strong {
  display: block;
}

.guest-row .tiny-note {
  margin: 4px 0 0;
}

.guest-row-empty {
  justify-content: flex-start;
}

.guest-remove-button {
  flex: 0 0 auto;
}

.admin-schedule-card {
  overflow: hidden;
}

.admin-tag {
  display: inline-block;
  padding: 4px 8px;
  border: 2px solid #f4efbf;
  background: linear-gradient(180deg, #503f12, #241a08);
  color: #f8f1b8;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 2px 2px 0 rgba(9, 16, 6, 0.9);
}

.schedule-preview {
  margin: 12px 0;
  padding: 10px 12px;
  border: 2px solid rgba(236, 246, 190, 0.46);
  background:
    repeating-linear-gradient(90deg, rgba(255, 185, 74, 0.08) 0 8px, transparent 8px 16px),
    rgba(9, 16, 6, 0.26);
}

.schedule-preview p {
  margin: 0;
}

.schedule-preview p + p {
  margin-top: 8px;
}

.admin-schedule-form {
  display: grid;
  gap: 10px;
}

.signup-list {
  columns: 2;
  column-gap: 16px;
}

.tiny-note {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.profile-photo-preview,
.player-avatar,
.profile-avatar {
  background: #fff;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  image-rendering: pixelated;
  filter: contrast(1.1) saturate(0.95);
  object-fit: cover;
}

.profile-photo-preview {
  width: 168px;
  height: 168px;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1.15fr);
  gap: 16px;
  align-items: start;
}

.own-card-panel {
  min-width: 0;
}

.own-card-shell {
  display: grid;
  place-items: center;
  padding: 10px;
  border: 2px solid rgba(236, 246, 190, 0.6);
  background:
    repeating-linear-gradient(0deg, rgba(255, 244, 176, 0.07) 0 3px, transparent 3px 13px),
    rgba(9, 16, 6, 0.24);
}

.own-profile-card {
  width: min(100%, 420px);
}

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

.stats-breakdown {
  display: grid;
  gap: 12px;
}

.stats-breakdown h2 {
  margin: 0;
  font-family: "Arial Black", Impact, sans-serif;
  color: #f4f7b1;
  text-shadow: 2px 2px 0 rgba(9, 16, 6, 0.94);
}

.breakdown-table {
  display: grid;
  gap: 4px;
  overflow-x: auto;
}

.breakdown-row {
  display: grid;
  grid-template-columns: minmax(128px, 1.3fr) repeat(6, minmax(54px, 0.7fr));
  gap: 4px;
  min-width: 520px;
  align-items: center;
}

.breakdown-row > * {
  padding: 6px 7px;
  border: 1px solid rgba(236, 246, 190, 0.42);
  background: rgba(9, 16, 6, 0.26);
  font-weight: 900;
}

.breakdown-head > *,
.breakdown-total > * {
  background: rgba(244, 247, 177, 0.18);
  color: #f8edb4;
}

.calendar-grid,
.players-grid,
.profiles-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.cards-board {
  display: grid;
  gap: 14px;
}

.cards-intro {
  margin-bottom: 0;
}

.mini-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  padding: 0 26px;
}

.mini-player-card {
  position: relative;
  min-height: 238px;
  padding: 10px 8px;
  overflow: hidden;
  border: 4px solid #261d0b;
  outline: 2px solid #f9ed9d;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  background:
    repeating-linear-gradient(0deg, rgba(54, 42, 12, 0.14) 0 2px, transparent 2px 28px),
    linear-gradient(115deg, transparent 0 18%, rgba(255, 247, 177, 0.76) 18% 27%, transparent 27% 100%),
    linear-gradient(76deg, transparent 0 58%, rgba(221, 194, 94, 0.48) 58% 64%, transparent 64% 100%),
    linear-gradient(180deg, #f4df7f, #d8c568);
  color: #171007;
  box-shadow: 5px 5px 0 rgba(9, 16, 6, 0.88);
  cursor: pointer;
  font-family: "Arial Black", Impact, sans-serif;
  text-align: left;
  transition: transform 120ms steps(2), filter 120ms steps(2);
}

.mini-player-card::after {
  content: "";
  position: absolute;
  inset: 9px;
  z-index: 0;
  border: 2px solid rgba(38, 29, 11, 0.42);
  pointer-events: none;
}

.mini-player-card:active {
  transform: translate(3px, 3px);
  box-shadow: 2px 2px 0 rgba(9, 16, 6, 0.95);
}

.mini-player-card:hover {
  filter: saturate(1.18) contrast(1.08);
}

.mini-rating {
  position: absolute;
  left: 10px;
  top: 12px;
  z-index: 2;
  display: block;
  font-size: clamp(2rem, 9vw, 3.2rem);
  line-height: 0.85;
  text-shadow: 2px 2px 0 #f8edb4;
}

.mini-leaf {
  position: absolute;
  z-index: 2;
  right: 10px;
  top: 14px;
  width: 38px;
  height: 38px;
  object-fit: contain;
  image-rendering: pixelated;
}

.mini-photo-window {
  position: absolute;
  z-index: 1;
  left: 10px;
  right: 10px;
  top: 48px;
  bottom: 54px;
  display: grid;
  place-items: end center;
  overflow: hidden;
  pointer-events: none;
}

.mini-photo {
  display: block;
  max-width: none;
  transform-origin: center bottom;
  filter: drop-shadow(6px 7px 0 rgba(31, 23, 18, 0.24));
}

.mini-photo-cutout {
  --mini-photo-scale: 1.18;
  --mini-photo-y: 10px;
  width: 76%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  transform: translateY(var(--mini-photo-y)) scale(var(--mini-photo-scale));
}

.mini-photo-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.mini-player-card strong {
  position: absolute;
  z-index: 3;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: block;
  min-height: 36px;
  padding-top: 7px;
  border-top: 2px solid rgba(38, 29, 11, 0.45);
  font-size: clamp(0.84rem, 3.8vw, 1.25rem);
  line-height: 0.95;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 #f8edb4;
}

.player-head,
.profile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.player-avatar,
.profile-avatar {
  width: 86px;
  height: 86px;
}

.player-mascot,
.profile-mascot,
.card-gif {
  flex: 0 0 auto;
}

.rating-badge {
  display: inline-block;
  min-width: 66px;
  padding: 4px 8px;
  border: 2px solid #d7f864;
  background: linear-gradient(180deg, #cf7a2d, #662d0b);
  color: #f3ffa7;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 2.5rem;
  line-height: 1;
  text-align: center;
  box-shadow: 2px 2px 0 rgba(9, 16, 6, 0.94);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin-top: 14px;
}

.stat-line,
.metric-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 4px;
  border-bottom: 1px dotted rgba(31, 23, 18, 0.6);
  font-weight: 900;
}

.vote-form {
  margin-top: 14px;
}

.vote-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.vote-grid label {
  margin-bottom: 0;
}

.position-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.position-option {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(236, 246, 190, 0.28);
  background: rgba(9, 16, 6, 0.22);
}

.position-option input {
  width: auto;
  margin: 0;
}

.position-option span {
  font-size: 0.82rem;
}

.chip-row {
  margin-top: 12px;
}

.micro-chip {
  border: 2px solid var(--ink);
  padding: 4px 8px;
  background: linear-gradient(180deg, #d4a945, #7a5b17);
  color: #fff7de;
  font-weight: 900;
  box-shadow: 2px 2px 0 rgba(13, 22, 8, 0.8);
}

.section-card {
  grid-column: 1 / -1;
}

.chalaboard-card {
  display: grid;
  gap: 14px;
}

.chalaboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.board-stat {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(236, 246, 190, 0.32);
  box-shadow: inset 0 0 0 1px rgba(9, 16, 6, 0.3);
  background:
    repeating-linear-gradient(90deg, rgba(236, 246, 177, 0.04) 0 8px, transparent 8px 16px),
    linear-gradient(180deg, rgba(22, 36, 16, 0.46), rgba(8, 14, 7, 0.28));
}

.board-stat strong {
  display: block;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  line-height: 0.96;
  color: #f5ffb8;
  text-shadow: 2px 2px 0 rgba(9, 16, 6, 0.96);
}

#appView.active {
  display: block;
  margin-top: 12px;
}

.nav-ribbon {
  flex-direction: row;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 10px;
  background:
    repeating-linear-gradient(0deg, rgba(223, 239, 122, 0.08) 0 7px, transparent 7px 14px),
    linear-gradient(180deg, rgba(19, 29, 16, 0.95), rgba(8, 12, 7, 0.98));
  background-position: 0 0, 0 0;
  scrollbar-width: thin;
}

.nav-chip {
  flex: 0 0 auto;
  min-width: 146px;
  white-space: nowrap;
}

.flash {
  margin: 12px 0 0;
}

.screen.active {
  margin-top: 12px;
}

.rail-widget {
  background:
    repeating-linear-gradient(90deg, rgba(255, 173, 63, 0.07) 0 8px, transparent 8px 16px),
    linear-gradient(180deg, rgba(19, 31, 14, 0.95), rgba(8, 12, 6, 0.98));
  color: #eef4e7;
  background-position: 0 0, 0 0;
}

.rail-gif-stack {
  justify-content: center;
}

.rail-leader {
  margin-bottom: 10px;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 1.2rem;
  text-transform: uppercase;
  color: #f5ffb8;
  text-shadow: 2px 2px 0 rgba(9, 16, 6, 0.96);
}

.hud-bar {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 10px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 185, 74, 0.08) 0 10px, transparent 10px 18px),
    linear-gradient(180deg, rgba(61, 27, 8, 0.96), rgba(133, 62, 18, 0.95));
  color: #eef3f7;
  font-size: 0.82rem;
  text-transform: uppercase;
  background-position: 0 0, 0 0;
}

.hud-button {
  flex: 1 1 170px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  border-top: 2px solid #edf0f1;
  border-left: 2px solid #edf0f1;
  border-right: 2px solid #1b211f;
  border-bottom: 2px solid #1b211f;
  background: transparent;
  color: #eef3f7;
  font: inherit;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  padding: 6px 8px;
}

.hud-button:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.hud-button b {
  display: inline-block;
  min-width: 18px;
  text-align: center;
  border: 1px solid #f8df93;
  background: linear-gradient(180deg, #d7ac45, #7f6117);
  color: #0d1608;
}

.smoke-burst {
  position: fixed;
  left: 50%;
  bottom: 112px;
  z-index: 60;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%);
}

.smoke-burst img {
  width: 176px;
  height: auto;
  filter: drop-shadow(0 0 18px rgba(219, 255, 118, 0.55));
}

.smoke-burst.show {
  animation: smoke-pop 1.8s ease-out;
}

.chala-modal {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  padding: 18px;
  box-sizing: border-box;
  overflow: hidden;
  overscroll-behavior: contain;
  background: rgba(6, 9, 4, 0.72);
  isolation: isolate;
}

.chala-modal-card {
  width: min(460px, calc(100vw - 36px));
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  box-sizing: border-box;
  padding: 18px 16px;
  border: 2px solid #0d1608;
  outline: 2px solid rgba(236, 246, 190, 0.85);
  box-shadow: var(--panel-shadow);
  background:
    repeating-linear-gradient(90deg, rgba(255, 179, 71, 0.08) 0 8px, transparent 8px 16px),
    linear-gradient(180deg, rgba(220, 226, 223, 0.96), rgba(117, 127, 127, 0.92) 13%, rgba(53, 59, 57, 0.96) 14%, rgba(70, 98, 31, 0.95) 100%);
  color: #f1f5ef;
  text-align: center;
}

.chala-modal-card p {
  margin: 0 0 14px;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 1.3rem;
  line-height: 1.15;
  text-shadow: 2px 2px 0 rgba(9, 16, 6, 0.96);
}

.chala-modal-card.card-detail-modal {
  width: min(420px, calc(100vw - 36px));
  max-height: calc(100dvh - 36px);
  padding: 14px;
  text-align: left;
}

.card-detail {
  display: grid;
  gap: 14px;
}

.full-player-card {
  display: block;
  width: min(100%, 360px);
  margin: 0 auto;
  border: 3px solid #0d1608;
  background: #3b3f42;
  box-shadow: 5px 5px 0 rgba(9, 16, 6, 0.86);
}

.card-vote-panel {
  padding: 12px;
  margin-bottom: 12px;
  border: 2px solid rgba(236, 246, 190, 0.78);
  background: rgba(9, 16, 6, 0.34);
}

.card-vote-panel h2 {
  margin: 0 0 8px;
  font-family: "Arial Black", Impact, sans-serif;
  color: #f4f7b1;
  text-shadow: 2px 2px 0 rgba(9, 16, 6, 0.94);
}

.troll-note {
  margin-top: 10px;
  color: #f8edb4;
}

.card-detail-modal .sticker-button {
  margin-top: 12px;
}

.card-vote-panel .sticker-button {
  margin-top: 14px;
}

.mvp-vote-modal {
  display: grid;
  gap: 14px;
}

.mvp-vote-header h2 {
  margin: 0 0 8px;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 1.5rem;
  line-height: 1.05;
  color: #f4f7b1;
  text-shadow: 2px 2px 0 rgba(9, 16, 6, 0.94);
}

.mvp-vote-header p {
  margin: 0 0 10px;
  font-size: 0.98rem;
  line-height: 1.2;
}

.mvp-vote-badge {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 10px;
  border: 1px solid rgba(236, 246, 190, 0.76);
  background: rgba(9, 16, 6, 0.34);
  color: #f4f7b1;
  font: 800 0.78rem/1 "Arial Black", Impact, sans-serif;
  text-transform: uppercase;
}

.mvp-vote-form {
  display: grid;
  gap: 14px;
}

.mvp-vote-list {
  display: grid;
  gap: 10px;
}

.mvp-vote-option {
  display: grid;
  grid-template-columns: 18px 46px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(236, 246, 190, 0.36);
  background: rgba(9, 16, 6, 0.3);
  cursor: pointer;
}

.mvp-vote-option input {
  margin: 0;
}

.mvp-vote-option img {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(236, 246, 190, 0.42);
  object-fit: cover;
  background: rgba(0, 0, 0, 0.24);
}

.mvp-vote-copy {
  display: grid;
  gap: 4px;
}

.mvp-vote-copy strong,
.mvp-vote-copy small {
  line-height: 1.1;
}

.mvp-vote-copy strong {
  font-size: 0.95rem;
}

.mvp-vote-copy small {
  color: rgba(241, 245, 239, 0.82);
}

@keyframes blink-bad {
  0%, 44% { opacity: 1; }
  45%, 60% { opacity: 0.18; }
  61%, 100% { opacity: 1; }
}

@keyframes eyebrow-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes field-drift-layer {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(0, 34px, 0); }
}

@keyframes noise-float {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(22px, 0, 0); }
}

@keyframes smoke-pop {
  0% { opacity: 0; transform: translateX(-50%) translate3d(0, 24px, 0) scale(0.72); }
  15% { opacity: 1; transform: translateX(-50%) translate3d(0, 0, 0) scale(1); }
  100% { opacity: 0; transform: translateX(-50%) translate3d(0, -46px, 0) scale(1.12); }
}

@media (max-width: 1040px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .free-gif-a {
    left: 0;
  }

  .free-gif-b {
    left: 24%;
  }

  .free-gif-c {
    left: auto;
    right: 26%;
  }

  .free-gif-d {
    right: 0;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .screen-grid,
  .profile-layout,
  .team-columns {
    grid-template-columns: 1fr;
  }

  .nav-ribbon {
    flex-direction: row;
  }

  .brand-row {
    flex-direction: column;
    align-items: stretch;
  }

  .free-gif {
    display: none;
  }

  .signup-list {
    columns: 1;
  }

  h1 {
    font-size: clamp(3rem, 18vw, 5rem);
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100%, calc(100% - 10px));
  }

  .stats-grid,
  .vote-grid {
    grid-template-columns: 1fr;
  }

  .mini-cards-grid {
    gap: 24px;
    padding: 0 22px;
  }

  .mini-player-card {
    min-height: 206px;
    padding: 8px 6px;
    border-width: 3px;
  }

  .mini-player-card::after {
    inset: 7px;
  }

  .mini-rating {
    left: 8px;
    top: 10px;
    font-size: clamp(1.75rem, 11vw, 2.45rem);
  }

  .mini-leaf {
    right: 8px;
    top: 10px;
    width: 30px;
    height: 30px;
  }

  .mini-photo-window {
    left: 8px;
    right: 8px;
    top: 40px;
    bottom: 48px;
  }

  .mini-photo-cutout {
    --mini-photo-scale: 1.18;
    --mini-photo-y: 10px;
    width: 78%;
    height: 100%;
    transform: translateY(var(--mini-photo-y)) scale(var(--mini-photo-scale));
  }

  .mini-photo-avatar {
    width: 100%;
    height: 100%;
  }

  .mini-player-card strong {
    left: 8px;
    right: 8px;
    bottom: 8px;
    min-height: 32px;
    font-size: clamp(0.78rem, 4.2vw, 1.02rem);
  }

  .chala-modal {
    align-items: center;
    justify-content: center;
    padding: 18px;
  }

  .chala-modal-card.card-detail-modal {
    width: calc(100vw - 36px);
    max-height: calc(100vh - 36px);
    max-height: calc(100dvh - 36px);
    padding: 10px;
  }

  .chala-modal-card p {
    font-size: 1rem;
  }

  .full-player-card {
    width: min(100%, 280px);
  }

  .card-vote-panel {
    padding: 10px;
  }

  .breakdown-table {
    overflow-x: visible;
  }

  .breakdown-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-width: 0;
    gap: 3px;
    padding: 6px;
    border: 1px solid rgba(236, 246, 190, 0.34);
    background: rgba(9, 16, 6, 0.2);
  }

  .breakdown-row > * {
    padding: 5px 4px;
    font-size: 0.72rem;
    text-align: center;
  }

  .breakdown-row > :first-child {
    grid-column: 1 / -1;
    text-align: left;
  }

  .breakdown-row:not(.breakdown-head) span::before {
    content: attr(data-stat);
    display: block;
    margin-bottom: 2px;
    color: #f8edb4;
    font-size: 0.62rem;
    line-height: 1;
  }

  .hero-gif-cluster,
  .auth-gif-cluster {
    justify-content: center;
  }

  .hud-bar {
    display: grid;
    grid-template-columns: 1fr;
    font-size: 0.74rem;
  }

  .smoke-burst {
    bottom: 122px;
  }
}
