@font-face {
  font-family: 'Tektur';
  src: url('/assets/fonts/tektur-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 75% 100%;
  font-display: swap;
}

@font-face {
  font-family: 'Tektur';
  src: url('/assets/fonts/tektur-latin-ext.woff2') format('woff2');
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 75% 100%;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --purple: #a55af6;
  --blue: #5f83ea;
  --cyan: #12dfcb;
  --panel: #555555;
  --page: #787878;
  --ink: #ffffff;
  --black: #050505;
  --font-tektur: 'Tektur';
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: linear-gradient(110deg, var(--purple), #6690e8 55%, var(--cyan));
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(110deg, var(--purple), #6690e8 55%, var(--cyan));
  font-family: var(--font-tektur), system-ui, sans-serif;
  font-variation-settings: "wdth" 94;
  font-weight: 600;
  font-size: 18px;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
select {
  font: inherit;
}

.site-shell {
  min-height: calc(100vh - 26px);
  margin: 13px 15px;
  padding: 32px 38px;
  background: var(--page);
}

.brand {
  display: inline-block;
  color: transparent;
  background: linear-gradient(90deg, #a05df2 0%, #6589ea 46%, #12dfcb 86%);
  background-clip: text;
  -webkit-background-clip: text;
  font-family: var(--font-tektur), system-ui, sans-serif;
  font-size: clamp(3.2rem, 6.6vw, 5.75rem);
  font-variation-settings: "wdth" 78;
  font-weight: 900;
  letter-spacing: .015em;
  line-height: .95;
  text-transform: uppercase;
  -webkit-text-stroke: 7px #050505;
  paint-order: stroke fill;
}

.brand-home {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 73px auto 78px;
  text-align: center;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
  max-width: 1256px;
  margin: 0 auto;
  align-items: start;
}

.home-panel {
  min-height: 290px;
  padding: 28px 46px 36px;
  border: 5px solid transparent;
  border-radius: 13px;
  background:
    linear-gradient(var(--panel), var(--panel)) padding-box,
    linear-gradient(120deg, var(--purple), #65a0e8 48%, var(--cyan)) border-box;
  text-align: center;
}

.home-panel:nth-child(3) {
  min-height: 478px;
}

.outlined-heading {
  margin: 0 0 34px;
  color: #fff;
  font-family: var(--font-tektur), system-ui, sans-serif;
  font-variation-settings: "wdth" 82;
  font-size: clamp(1.85rem, 3vw, 2.55rem);
  font-weight: 900;
  letter-spacing: .04em;
  line-height: 1;
  text-transform: uppercase;
  -webkit-text-stroke: 6px #050505;
  paint-order: stroke fill;
}

.home-links {
  display: grid;
  gap: 38px;
}

.pill {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 2px solid #242020;
  border-radius: 999px;
  padding: 10px 18px;
  box-shadow: 0 2px 0 rgb(0 0 0 / 12%);
  font-family: var(--font-tektur), system-ui, sans-serif;
  font-variation-settings: "wdth" 92;
  font-size: 1.1rem;
  font-weight: 800;
  transition: transform 140ms ease, filter 140ms ease, box-shadow 140ms ease;
}

.pill:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
  box-shadow: 0 7px 14px rgb(0 0 0 / 18%);
}

.pill:focus-visible {
  outline: 4px solid #fff;
  outline-offset: 4px;
}

.pill[aria-disabled="true"] {
  cursor: default;
}

.pill-red { background: #ff3438; }
.pill-blue { background: #526cf4; }
.pill-green { background: #04c774; }
.pill-orange { background: #ff711f; }
.pill-cyan { background: #0fd2c5; }
.pill-dark { background: #282426; }
.pill-gradient { background: linear-gradient(90deg, #a267ef, #5688ea 55%, #12d9ce); }

.content-screen {
  padding: 30px 27px 43px;
}

.page-header {
  display: flex;
  min-height: 153px;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.page-brand {
  max-width: calc(100% - 330px);
  font-size: clamp(3rem, 6vw, 5.35rem);
  line-height: 1.04;
}

.header-action {
  width: min(300px, 27vw);
  flex: 0 0 auto;
  text-transform: uppercase;
}

.home-chip {
  display: inline-flex;
  min-width: 120px;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  border: 2px solid #242020;
  border-radius: 999px;
  background: #292627;
  font-weight: 800;
}

.gradient-panel {
  border: 5px solid transparent;
  border-radius: 13px;
  background:
    linear-gradient(var(--panel), var(--panel)) padding-box,
    linear-gradient(115deg, var(--purple), #64a0ea 50%, var(--cyan)) border-box;
}

.bracket-meta {
  display: grid;
  grid-template-columns: minmax(270px, 1.4fr) repeat(2, minmax(190px, .8fr));
  gap: 14px;
  margin: 0 0 24px;
  text-transform: uppercase;
}

.bracket-meta span {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: center;
  border: 3px solid transparent;
  border-radius: 10px;
  padding: 13px 18px;
  color: #fff;
  background:
    linear-gradient(#4d4d4d, #4d4d4d) padding-box,
    linear-gradient(110deg, var(--purple), var(--cyan)) border-box;
  font-size: clamp(1.05rem, 1.45vw, 1.32rem);
  font-weight: 800;
  letter-spacing: .025em;
  line-height: 1.15;
  text-align: center;
}

.bracket-meta .bracket-name {
  color: #21e1cf;
  font-size: clamp(1.22rem, 1.75vw, 1.58rem);
  font-weight: 900;
}

.empty-state {
  display: grid;
  place-content: center;
  padding: 38px;
  text-align: center;
}

.empty-state-large {
  min-height: 430px;
}

.empty-state h1 {
  max-width: 820px;
  margin: 12px auto 13px;
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 900;
  line-height: 1.08;
  text-transform: uppercase;
}

.empty-state p {
  max-width: 680px;
  margin: 0 auto;
  color: #ededed;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.55;
}

.empty-kicker {
  color: #20e1d0;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.song-table {
  overflow: hidden;
}

.song-table-head,
.song-row {
  display: grid;
  grid-template-columns: 168px minmax(230px, 2fr) minmax(155px, 1.1fr) minmax(150px, 1fr) 180px;
  align-items: center;
  text-align: center;
}

.song-table-head {
  min-height: 39px;
  border-bottom: 4px solid transparent;
  border-image: linear-gradient(90deg, var(--purple), var(--cyan)) 1;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.song-row {
  min-height: 215px;
  padding: 18px 16px;
}

.song-row + .song-row {
  border-top: 4px solid transparent;
  border-image: linear-gradient(90deg, var(--purple), var(--cyan)) 1;
}

.song-row > * {
  padding: 0 10px;
}

.song-row strong {
  font-size: 1.06rem;
  line-height: 1.35;
}

.song-title-cell strong {
  display: block;
}

.difficulty-cell strong {
  color: #984cf2;
  font-size: 1.12rem;
  -webkit-text-stroke: 1px #070707;
  paint-order: stroke fill;
}

.mobile-field {
  display: none;
}

.song-cover {
  display: block;
  width: 146px;
  height: 146px;
  border: 4px solid #050505;
  border-radius: 36px;
  object-fit: cover;
  background: linear-gradient(135deg, #8b58ef, #417fe4 52%, #12d9c8);
  box-shadow: 0 7px 0 rgb(0 0 0 / 14%);
}

.placeholder-cover {
  display: grid;
  place-items: center;
  color: white;
  font-size: 3.2rem;
  font-weight: 900;
}

.version-logo {
  display: block;
  width: 150px;
  max-height: 110px;
  margin: 0 auto;
  object-fit: contain;
}

.version-label {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border: 2px solid #20dfce;
  border-radius: 9px;
  padding: 10px 16px;
  font-weight: 900;
}

.data-table {
  width: 100%;
}

.data-row {
  min-height: 72px;
  align-items: center;
  border-top: 4px solid transparent;
  border-image: linear-gradient(90deg, var(--purple), var(--cyan)) 1;
  padding: 0 12px;
  font-size: 1.06rem;
  text-align: center;
}

.data-row:first-child {
  border-top: 0;
}

.data-head {
  min-height: 39px;
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.score-table-wrap,
.leaderboard-panel,
.archive-panel,
.placements-panel {
  overflow-x: auto;
}

.score-table {
  min-width: 1100px;
}

.score-grid {
  display: grid;
  grid-template-columns: 80px 180px 110px repeat(6, minmax(118px, 1fr));
}

.score-grid:not(.data-head) span:nth-child(n + 4) {
  font-family: "Courier New", monospace;
  font-size: .98rem;
}

.leaderboard-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr 1fr .8fr 1.15fr;
}

.leaderboard-panel {
  min-height: 500px;
}

.player-link {
  color: #fff;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: #1adccc;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.player-link:hover {
  color: #20e2d1;
}

.rank-cell {
  font-size: 1.22rem;
}

.metric-note {
  max-width: 760px;
  margin: 15px 3px 0;
  color: #f2f2f2;
  font-family: var(--font-tektur), system-ui, sans-serif;
  font-size: .9rem;
  line-height: 1.5;
}

.possession-value {
  display: grid;
  gap: 1px;
  width: 100%;
  align-self: center;
  justify-items: center;
  line-height: 1.05;
  text-align: center;
}

.possession-value strong {
  font-size: .92rem;
}

.possession-value small,
.profile-stats dd small {
  font-family: var(--font-tektur), system-ui, sans-serif;
  font-size: .72rem;
  font-weight: 700;
  opacity: .92;
}

.possession-silver { color: #e5edf4; }
.possession-gold { color: #ffd95b; }
.possession-platinum { color: #fff4bd; }
.possession-rainbow {
  color: #fff;
  background: linear-gradient(90deg, #ae62ff, #5b90ff, #19ddca);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.possession-unavailable { color: #cfcfcf; }

.table-empty {
  display: flex;
  min-height: 210px;
  align-items: center;
  justify-content: center;
  padding: 30px;
  color: #efefef;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 700;
  letter-spacing: .02em;
  text-align: center;
}

.compact-empty {
  min-height: 105px;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(380px, 36%) 1fr;
  gap: 34px;
}

.profile-card {
  overflow: hidden;
  padding-top: 40px;
  text-align: center;
}

.profile-avatar {
  display: block;
  width: 146px;
  height: 146px;
  margin: 0 auto 28px;
  border: 5px solid #050505;
  border-radius: 38px;
  background: linear-gradient(135deg, #9d5cf2, #5688ea 50%, #13dbc9);
  object-fit: cover;
}

.player-name {
  margin-bottom: 50px;
  font-size: 2.28rem;
}

.profile-stats {
  margin: 0;
  text-align: left;
}

.profile-stats div {
  display: flex;
  min-height: 71px;
  align-items: center;
  justify-content: space-between;
  border-top: 4px solid transparent;
  border-image: linear-gradient(90deg, var(--purple), var(--cyan)) 1;
  padding: 0 18px;
}

.profile-stats dt {
  text-transform: uppercase;
}

.profile-stats dd {
  margin: 0;
  color: #fff;
  background: none;
  font-size: 1.14rem;
  -webkit-text-fill-color: #fff;
  -webkit-text-stroke: 0;
}

.profile-kamai {
  width: min(220px, calc(100% - 40px));
  margin: 9px auto;
}

.placements-panel {
  min-height: 615px;
}

.placements-table {
  min-width: 680px;
}

.placements-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr .75fr 1.2fr;
}

.community-grid {
  display: grid;
  grid-template-columns: 37% 1fr;
  gap: 26px 34px;
}

.community-grid .outlined-heading {
  margin-bottom: 27px;
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  -webkit-text-stroke-width: 5px;
}

.registered-card,
.arcades-panel,
.events-panel,
.community-links-panel {
  padding: 24px 28px;
}

.registered-card {
  min-height: 270px;
  text-align: center;
}

.big-number {
  display: block;
  color: transparent;
  background: linear-gradient(120deg, var(--purple), var(--cyan));
  background-clip: text;
  -webkit-background-clip: text;
  font-size: 7.2rem;
  line-height: .95;
  -webkit-text-stroke: 8px #050505;
  paint-order: stroke fill;
}

.small-link {
  display: inline-block;
  margin-top: 16px;
  font-size: .75rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.arcades-panel {
  min-height: 270px;
}

.arcade-list {
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--purple), var(--cyan)) 1;
}

.arcade-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  gap: 16px;
  padding: 12px 0;
  text-transform: uppercase;
}

.arcade-row:hover {
  color: #1fe0ce;
}

.events-panel,
.community-links-panel {
  min-height: 274px;
}

.event-head,
.event-row {
  display: grid;
  grid-template-columns: .8fr 1.1fr 1fr;
  gap: 15px;
  padding: 9px 12px;
  text-transform: uppercase;
}

.event-head {
  border-block: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--purple), var(--cyan)) 1;
}

.discord-pill {
  width: 100%;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.discord-mark {
  margin-right: 18px;
  font-size: 1.65rem;
}

.community-callout {
  display: flex;
  align-items: center;
  gap: 18px;
  border-radius: 13px;
  padding: 15px;
  background: #292526;
}

.people-icon {
  color: #536cf4;
  font-size: 1.25rem;
  letter-spacing: -3px;
}

.community-callout strong,
.community-callout small {
  display: block;
}

.community-callout strong {
  color: transparent;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  background-clip: text;
  -webkit-background-clip: text;
}

.community-callout small {
  margin-top: 3px;
  font-family: var(--font-tektur), system-ui, sans-serif;
  font-size: .8rem;
}

.archive-stats {
  display: grid;
  grid-template-columns: .8fr 1.1fr 1.2fr;
  gap: 24px;
  margin-bottom: 24px;
}

.archive-stats .gradient-panel {
  display: grid;
  min-height: 120px;
  place-items: center;
  padding: 16px;
  text-align: center;
  text-transform: uppercase;
}

.archive-stats strong {
  color: #18ddcd;
  font-size: 1.7rem;
}

.archive-table {
  min-width: 930px;
}

.archive-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr .8fr .7fr 1.1fr 1.2fr;
}

.access-denied {
  max-width: 680px;
  margin: 30px auto;
  padding: 50px;
  text-align: center;
}

.access-denied .pill {
  width: 220px;
  margin: 30px auto 0;
}

.admin-panel {
  max-width: 1120px;
  margin: 0 auto;
  padding: 34px;
}

.admin-topline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.admin-topline h1 {
  margin: 6px 0 0;
  font-size: 2rem;
  text-transform: uppercase;
}

.eyebrow,
.signed-in-as {
  color: #1de1cf;
  font-family: var(--font-tektur), system-ui, sans-serif;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

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

.admin-form label {
  display: grid;
  gap: 9px;
}

.admin-form label > span,
.admin-form legend {
  font-size: .88rem;
  text-transform: uppercase;
}

.admin-form input,
.admin-form select {
  width: 100%;
  min-height: 51px;
  border: 2px solid #242020;
  border-radius: 7px;
  padding: 10px 13px;
  color: #fff;
  background: #353233;
}

.admin-form input:focus,
.admin-form select:focus {
  outline: 3px solid #16dacb;
  outline-offset: 2px;
}

.admin-form fieldset {
  grid-column: 1 / -1;
  border: 0;
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--purple), var(--cyan)) 1;
  margin: 7px 0 0;
  padding: 26px 0 0;
}

.admin-form legend {
  padding-right: 16px;
}

.song-select-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px 24px;
}

.save-bracket {
  grid-column: 1 / -1;
  width: min(360px, 100%);
  margin: 10px auto 0;
  color: #fff;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  filter: grayscale(1);
  opacity: .55;
}

.flash {
  position: fixed;
  z-index: 20;
  top: 25px;
  left: 50%;
  width: min(680px, calc(100% - 36px));
  transform: translateX(-50%);
  border: 3px solid #111;
  border-radius: 12px;
  padding: 15px 20px;
  color: #fff;
  background: #087f6f;
  box-shadow: 0 10px 30px rgb(0 0 0 / 35%);
  text-align: center;
}

.flash-error { background: #b82632; }

.setup-panel {
  max-width: 980px;
  margin: 0 auto;
  padding: 38px;
}

.setup-panel h1,
.compact-admin h2 {
  margin: 8px 0 14px;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  text-transform: uppercase;
}

.setup-panel > p {
  max-width: 800px;
  margin-bottom: 28px;
  line-height: 1.55;
}

code {
  border-radius: 5px;
  padding: 3px 7px;
  background: #282526;
  color: #25e4d2;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .88em;
  overflow-wrap: anywhere;
}

.check-label {
  grid-column: 1 / -1;
  grid-template-columns: auto 1fr !important;
  align-items: center;
}

.check-label input {
  width: 24px;
  min-height: 24px;
}

.setup-action,
.error-home {
  width: min(390px, 100%);
  margin-top: 28px;
}

.form-error,
.admin-notice {
  border: 2px solid #ffafb5;
  border-radius: 8px;
  margin-bottom: 24px;
  padding: 14px 18px;
  background: #852c34;
}

.admin-notice {
  border-color: #f0c06d;
  background: #6d5025;
}

.link-button {
  cursor: pointer;
  border: 0;
  padding: 0;
  background: none;
}

.admin-secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 1120px;
  margin: 28px auto 0;
}

.compact-admin {
  margin: 0;
}

.stack-form {
  display: grid;
  gap: 17px;
}

.stack-form label {
  display: grid;
  gap: 8px;
}

.stack-form label > span {
  font-size: .92rem;
  text-transform: uppercase;
}

.stack-form input,
.stack-form select {
  width: 100%;
  min-height: 51px;
  border: 2px solid #242020;
  border-radius: 7px;
  padding: 10px 13px;
  color: #fff;
  background: #353233;
}

.stack-form input[type='file'] {
  padding: 8px;
}

.mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}

.settings-title {
  border-top: 3px solid #727272;
  margin-top: 34px !important;
  padding-top: 29px;
}

.admin-count {
  margin: 20px 0 0;
  color: #1de1cf;
  text-align: center;
}

.admin-record-section {
  border-top: 3px solid #727272;
  margin-top: 34px;
  padding-top: 28px;
}

.admin-record-section h2,
.compact-admin .admin-record-section h2 {
  margin: 0 0 16px;
  font-size: 1.25rem;
  text-transform: uppercase;
}

.compact-record-section {
  margin-top: 25px;
  padding-top: 23px;
}

.admin-record-list {
  display: grid;
  gap: 10px;
}

.admin-record {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 2px solid #292526;
  border-radius: 9px;
  padding: 12px 14px;
  background: #3b3839;
}

.admin-record > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.admin-record strong {
  overflow-wrap: anywhere;
}

.admin-record span {
  color: #dedede;
  font-family: var(--font-tektur), system-ui, sans-serif;
  font-size: .8rem;
  line-height: 1.35;
}

.admin-record form {
  flex: 0 0 auto;
  margin: 0;
}

.delete-record {
  border: 2px solid #171313;
  border-radius: 999px;
  padding: 8px 16px;
  color: #fff;
  background: #c82d38;
  font: inherit;
  font-size: .8rem;
  font-weight: 800;
  cursor: pointer;
  text-transform: uppercase;
}

.delete-record:hover,
.delete-record:focus-visible {
  background: #f03b49;
}

.catalog-copy {
  margin: 0 0 22px;
  color: #f1f1f1;
  font-family: var(--font-tektur), system-ui, sans-serif;
  font-size: .94rem;
  font-weight: 600;
  line-height: 1.55;
}

.catalog-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 0 0 22px;
}

.catalog-stats div {
  display: grid;
  gap: 2px;
  border: 2px solid #252222;
  border-radius: 9px;
  padding: 16px;
  background: #3b3839;
  text-align: center;
}

.catalog-stats strong {
  color: #24dfcf;
  font-family: var(--font-tektur), system-ui, sans-serif;
  font-size: 1.75rem;
}

.catalog-stats span {
  font-size: .8rem;
  text-transform: uppercase;
}

.bracket-meta span {
  font-size: clamp(1.2rem, 1.7vw, 1.5rem);
}

.bracket-meta .bracket-name {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.event-row[href]:hover {
  background: rgb(255 255 255 / 7%);
}

@media (max-width: 800px) {
  .admin-secondary-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1000px) {
  .site-shell {
    padding: 28px 24px 48px;
  }

  .brand-home {
    margin: 42px auto 50px;
  }

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

  .home-panel:nth-child(3) {
    grid-column: 1 / -1;
    min-height: 0;
  }

  .home-panel:nth-child(3) .home-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-header {
    min-height: 130px;
  }

  .page-brand {
    max-width: calc(100% - 210px);
  }

  .header-action {
    width: 190px;
  }

  .bracket-meta {
    grid-template-columns: 1fr;
  }

  .song-table-head {
    display: none;
  }

  .song-row {
    grid-template-columns: 155px 1.4fr 1fr;
    min-height: 190px;
  }

  .song-row > :nth-child(4),
  .song-row > :nth-child(5) {
    margin-top: 12px;
  }

  .version-image {
    display: none;
  }

  .mobile-field {
    display: block;
    margin-bottom: 5px;
    color: #ddd;
    font-size: .7rem;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

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

  .profile-card {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
  }

  .placements-panel {
    min-height: 360px;
  }

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

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

@media (max-width: 640px) {
  .site-shell {
    min-height: calc(100vh - 12px);
    margin: 6px;
    padding: 30px 14px;
  }

  .brand {
    font-size: clamp(2rem, 11vw, 3.2rem);
    -webkit-text-stroke-width: 4px;
  }

  .brand-home {
    margin: 24px auto 38px;
    line-height: 1.08;
  }

  .home-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .home-panel,
  .home-panel:nth-child(3) {
    grid-column: auto;
    min-height: 0;
    padding: 26px 24px 28px;
  }

  .home-panel:nth-child(3) .home-links {
    grid-template-columns: 1fr;
  }

  .outlined-heading {
    -webkit-text-stroke-width: 4px;
  }

  .home-links {
    gap: 18px;
  }

  .content-screen {
    padding: 20px 12px 35px;
  }

  .page-header {
    min-height: 105px;
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    padding-bottom: 26px;
  }

  .page-brand {
    max-width: 100%;
  }

  .header-action,
  .home-chip {
    width: 100%;
  }

  .bracket-meta {
    display: grid;
  }

  .song-row {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-block: 28px;
  }

  .song-cover {
    justify-self: center;
  }

  .data-head {
    font-size: .88rem;
  }

  .leaderboard-table {
    min-width: 680px;
  }

  .profile-card {
    padding-top: 30px;
  }

  .player-name {
    margin-bottom: 35px;
    font-size: 1.9rem;
  }

  .registered-card,
  .arcades-panel,
  .events-panel,
  .community-links-panel {
    padding: 22px 16px;
  }

  .arcade-row {
    grid-template-columns: 1fr;
    border-bottom: 1px solid rgb(255 255 255 / 15%);
  }

  .event-head,
  .event-row {
    grid-template-columns: 1fr;
  }

  .admin-panel {
    padding: 25px 18px;
  }

  .admin-topline {
    align-items: start;
    flex-direction: column;
  }

  .admin-form,
  .song-select-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
