/*! tailwindcss v4.1.17 | MIT License | https://tailwindcss.com */
@layer theme, base, components, utilities;
@layer theme {
  :root, :host {
    --font-sans: ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
    'Noto Color Emoji';
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New',
    monospace;
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}
@layer base {
  *, ::after, ::before, ::backdrop, ::file-selector-button {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border: 0 solid;
  }
  html, :host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji');
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }
  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }
  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }
  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }
  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }
  b, strong {
    font-weight: bolder;
  }
  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }
  small {
    font-size: 80%;
  }
  sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
  }
  sub {
    bottom: -0.25em;
  }
  sup {
    top: -0.5em;
  }
  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }
  :-moz-focusring {
    outline: auto;
  }
  progress {
    vertical-align: baseline;
  }
  summary {
    display: list-item;
  }
  ol, ul, menu {
    list-style: none;
  }
  img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    vertical-align: middle;
  }
  img, video {
    max-width: 100%;
    height: auto;
  }
  button, input, select, optgroup, textarea, ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    border-radius: 0;
    background-color: transparent;
    opacity: 1;
  }
  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }
  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }
  ::file-selector-button {
    margin-inline-end: 4px;
  }
  ::placeholder {
    opacity: 1;
  }
  @supports (not (-webkit-appearance: -apple-pay-button))  or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentcolor;
      @supports (color: color-mix(in lab, red, red)) {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }
  textarea {
    resize: vertical;
  }
  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }
  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }
  ::-webkit-datetime-edit {
    display: inline-flex;
  }
  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }
  ::-webkit-datetime-edit, ::-webkit-datetime-edit-year-field, ::-webkit-datetime-edit-month-field, ::-webkit-datetime-edit-day-field, ::-webkit-datetime-edit-hour-field, ::-webkit-datetime-edit-minute-field, ::-webkit-datetime-edit-second-field, ::-webkit-datetime-edit-millisecond-field, ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }
  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }
  :-moz-ui-invalid {
    box-shadow: none;
  }
  button, input:where([type='button'], [type='reset'], [type='submit']), ::file-selector-button {
    appearance: button;
  }
  ::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
    height: auto;
  }
  [hidden]:where(:not([hidden='until-found'])) {
    display: none !important;
  }
}
@layer utilities {
  .fixed {
    position: fixed;
  }
  .static {
    position: static;
  }
  .container {
    width: 100%;
    @media (width >= 40rem) {
      max-width: 40rem;
    }
    @media (width >= 48rem) {
      max-width: 48rem;
    }
    @media (width >= 64rem) {
      max-width: 64rem;
    }
    @media (width >= 80rem) {
      max-width: 80rem;
    }
    @media (width >= 96rem) {
      max-width: 96rem;
    }
  }
  .contents {
    display: contents;
  }
}
@import url("https://fonts.googleapis.com/css2?family=Special+Elite&family=Courier+Prime:ital,wght@0,400;0,700;1,400&display=swap");
:root {
  --bg: #fde68a;
  --surface: #fbd96a;
  --border: #b8b0a4;
  --border-dk: #8a837a;
  --accent: #2d6a2d;
  --accent-dk: #1e4a1e;
  --text: #1a1a1a;
  --text-mid: #444;
  --text-dim: #888;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Courier Prime', 'Courier New', monospace;
  font-size: 15px;
  min-height: 100vh;
}
.ticker {
  background: var(--accent);
  color: #fff;
  font-family: 'Courier Prime', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 3px 0;
  overflow: hidden;
  white-space: nowrap;
}
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
.ticker-inner {
  display: inline-block;
  animation: marquee 24s linear infinite;
  white-space: nowrap;
}
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 1rem 1.2rem;
  text-align: center;
}
h1 {
  font-family: 'Special Elite', Georgia, serif;
  font-size: 3rem;
  color: var(--accent-dk);
  letter-spacing: 0.08em;
  line-height: 1;
}
header p {
  font-size: 0.72rem;
  color: var(--text-dim);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-top: 0.3rem;
}
.header-back-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  color: #adc8ad;
  text-decoration: none;
  letter-spacing: 0.1em;
  border-bottom: 1px solid #adc8ad;
  transition: color 0.15s;
}
.header-back-link:hover {
  color: #fff;
  border-color: #fff;
}
main {
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}
.section-label {
  font-family: 'Special Elite', serif;
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-align: center;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 700px;
}
.section-label::before, .section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.back-link {
  align-self: flex-start;
  font-size: 0.75rem;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: 0.1em;
  border-bottom: 1px dotted var(--border-dk);
  transition: color 0.15s;
}
.back-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}
#bird-wrapper {
  display: flex;
  flex-direction: row;
  width: 100%;
  max-width: 700px;
  align-items: stretch;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 4px;
  overflow: hidden;
}
@media (max-width: 560px) {
  #bird-wrapper {
    flex-direction: column;
  }
  .vs-col {
    writing-mode: horizontal-tb;
    padding: 0.5rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    border-left: none;
    border-right: none;
  }
}
.vs-col {
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-lr;
  padding: 1rem 0.5rem;
  background: var(--bg);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  font-family: 'Courier Prime', monospace;
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.bird-card {
  flex: 1;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.img-frame {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bird-info {
  text-align: center;
}
.bird-info .common-name {
  font-family: 'Special Elite', serif;
  font-size: 1.15rem;
  color: var(--accent-dk);
  letter-spacing: 0.04em;
}
.bird-info .sci-name {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-style: italic;
  margin-top: 0.1rem;
}
.vote-btn {
  display: block;
  width: 100%;
  background: var(--accent);
  border: 1px solid var(--accent-dk);
  color: #fff;
  font-family: 'Courier Prime', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.5rem;
  cursor: pointer;
  border-radius: 3px;
  transition: background 0.15s;
}
.vote-btn:hover {
  background: var(--accent-dk);
}
.vote-btn:active {
  background: #0f2e0f;
}
#leaderboard-wrapper {
  width: 100%;
  max-width: 520px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 4px;
  overflow: hidden;
}
.lb-header {
  background: var(--accent-dk);
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.lb-title {
  font-family: 'Special Elite', serif;
  font-size: 1rem;
  color: #fff;
  letter-spacing: 0.06em;
}
.lb-link {
  font-size: 0.7rem;
  color: #adc8ad;
  text-decoration: none;
  border-bottom: 1px solid #adc8ad;
  letter-spacing: 0.05em;
  transition: color 0.15s;
}
.lb-link:hover {
  color: #fff;
  border-color: #fff;
}
.lb-bird-link {
  color: var(--accent);
  text-decoration: none;
  font-style: italic;
  border-bottom: 1px dotted var(--border-dk);
  transition: color 0.15s;
}
.lb-bird-link:hover {
  color: var(--accent-dk);
  border-color: var(--accent-dk);
}
.lb-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}
.lb-controls select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.2rem 0.4rem;
  font-family: 'Courier Prime', monospace;
  font-size: 0.75rem;
  color: var(--text-mid);
  cursor: pointer;
}
.lb-controls button {
  background: var(--accent);
  border: 1px solid var(--accent-dk);
  color: #fff;
  font-family: 'Courier Prime', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.15s;
}
.lb-controls button:hover {
  background: var(--accent-dk);
}
.lb-controls button:active {
  background: #0f2e0f;
}
table {
  width: 100%;
  border-collapse: collapse;
}
thead th {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0.5rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  font-weight: normal;
}
thead th:last-child {
  text-align: right;
  position: relative;
  padding-bottom: 1.5rem;
}
.elo-sub {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.3rem;
  text-align: right;
  padding-right: 1rem;
}
.elo-link {
  font-size: 0.6rem;
  font-style: italic;
  color: var(--text-dim);
  text-decoration: none;
  border-bottom: 1px dotted var(--border-dk);
}
.elo-link:hover {
  color: var(--accent);
}
tbody tr {
  border-bottom: 1px solid var(--border);
}
tbody tr:last-child {
  border-bottom: none;
}
tbody tr:hover {
  background: rgba(0,0,0,0.03);
}
tbody td {
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
  color: var(--text-mid);
}
tbody td:first-child {
  color: var(--text-dim);
  width: 2.5rem;
}
tbody td:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
#profile-wrapper {
  display: flex;
  flex-direction: row;
  width: 100%;
  max-width: 700px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 4px;
  overflow: hidden;
}
@media (max-width: 560px) {
  #profile-wrapper {
    flex-direction: column;
  }
  .profile-image {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}
.profile-image {
  flex-shrink: 0;
  width: 280px;
  aspect-ratio: 1;
  background: var(--bg);
  border-right: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-details {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.profile-name h2 {
  font-family: 'Special Elite', serif;
  font-size: 1.6rem;
  color: var(--accent-dk);
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.profile-name p {
  font-size: 0.8rem;
  color: var(--text-dim);
  font-style: italic;
  margin-top: 0.2rem;
}
.profile-divider {
  height: 1px;
  background: var(--border);
}
.profile-meta {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.meta-row {
  display: flex;
  gap: 0.75rem;
  font-size: 0.78rem;
  line-height: 1.4;
}
.meta-label {
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.65rem;
  white-space: nowrap;
  padding-top: 0.1rem;
  min-width: 6rem;
}
.meta-value {
  color: var(--text-mid);
}
footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  text-align: center;
  padding: 0.9rem;
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.loading-shimmer {
  background: linear-gradient(90deg, var(--surface) 25%, var(--bg) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
