:root {
  color-scheme: dark;
  --bg: #000;
  --surface: #101010;
  --text: #fff;
  --muted: #8c8c8c;
  --line: #202020;
  --cyan: #aa36ff;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  font-family: Inter, Arial, sans-serif;
  font-synthesis: none;
  letter-spacing: -.07em;
}

* { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; margin: 0; background: var(--bg); color: var(--text); }
body { min-height: 100svh; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible, input:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 2px solid #c88aff; outline-offset: 4px; }
button:active:not(:disabled) { transform: scale(.97); }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.figma-icon { display: block; width: 24px; height: 24px; flex: 0 0 auto; object-fit: contain; filter: brightness(0) invert(1); }
.icon-dark { filter: brightness(0); }

.mobile-header { display: flex; align-items: center; justify-content: space-between; min-height: 36px; gap: 12px; margin-inline: 15px; }
.mobile-brand { display: flex; align-items: center; min-width: 0; gap: 10px; }
.mobile-brand .brand-logo, .mobile-brand .staff-logo { width: 24px; height: 30px; flex: 0 0 24px; object-fit: contain; }
.mobile-brand .has-club-logo { width: 36px; flex-basis: 36px; }
.mobile-brand h1, .mobile-brand > span { min-width: 0; margin: 0; overflow: hidden; font-size: 12px; font-weight: 400; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.attempt-status { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; gap: 5px; min-height: 38px; padding: 10px 15px; border: 1px solid var(--line); border-radius: 40px; background: var(--surface); color: #777; font-size: 12px; line-height: 16px; }
.attempt-status .figma-icon { width: 16px; height: 16px; filter: brightness(0) invert(.45); }
.attempt-status.is-available { min-height: 36px; padding-block: 9px; border-color: #fff; background: #fff; color: #000; }
.attempt-status.is-available .figma-icon { filter: brightness(0); }

.mobile-banner { position: relative; display: flex; align-items: center; width: calc(100% - 30px); min-height: 120px; margin: 30px 15px 0; padding: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); text-align: left; }
button.mobile-banner { cursor: pointer; }
.mobile-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mobile-banner-copy { position: relative; z-index: 1; display: block; width: 55%; }
.mobile-banner-copy strong { display: block; margin: 0; font-size: 20px; font-weight: 400; line-height: 24px; }
.mobile-banner-copy small { display: block; max-width: 190px; margin-top: 5px; color: #999; font-size: 10px; line-height: 12px; }
.mobile-section-title { margin: 0 0 10px; color: var(--muted); font-size: 15px; font-weight: 400; line-height: 18px; }
.recent-prizes { margin-top: 30px; }
.recent-prizes .mobile-section-title { margin-left: 15px; }
.recent-prizes-track { display: flex; gap: 5px; min-height: 50px; padding: 0 15px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.recent-prizes-track::-webkit-scrollbar { display: none; }
.recent-prize { display: flex; align-items: center; flex: 0 0 120px; gap: 5px; height: 50px; padding: 5px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.recent-prize > img { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 5px; object-fit: cover; }
.recent-prize > div { min-width: 0; }
.recent-prize strong { display: block; overflow: hidden; color: #eee; font-size: 10px; font-weight: 400; line-height: 13px; text-overflow: ellipsis; white-space: nowrap; }
.recent-prize time { display: block; margin-top: 4px; color: #888; font-size: 8px; line-height: 10px; white-space: nowrap; }
.recent-prizes-empty { display: flex; align-items: center; width: 100%; margin: 0; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); font-size: 12px; line-height: 16px; }

.mobile-identity { display: flex; align-items: center; min-width: 0; gap: 10px; min-height: 50px; }
.mobile-avatar { display: grid; place-items: center; width: 50px; height: 50px; flex: 0 0 50px; overflow: hidden; border-radius: 50%; background: #242424; color: #d5b0fa; font-size: 23px; }
img.mobile-avatar { object-fit: cover; }
.mobile-identity > div { min-width: 0; }
.mobile-identity h2 { margin: 0; overflow-wrap: anywhere; font-size: 16px; font-weight: 400; line-height: 19px; }
.mobile-identity p { margin: 2px 0 0; color: var(--muted); font-size: 12px; line-height: 14px; }

.mobile-nav { position: fixed; z-index: 20; bottom: calc(30px + env(safe-area-inset-bottom, 0px)); left: 50%; display: flex; gap: 5px; width: max-content; padding: 0; border-radius: 30px; transform: translateX(-50%); }
.mobile-nav button { display: grid; place-items: center; width: 54px; height: 54px; padding: 15px; border: 0; border-radius: 50%; background: var(--surface); transition: background-color 160ms ease, transform 120ms ease; }
.mobile-nav button.is-active { background: #fff; }
.mobile-nav button.is-active .figma-icon { filter: brightness(0); }
.mobile-nav button:disabled { opacity: .4; }

@media (max-width: 359px) {
  .mobile-header { gap: 8px; }
  .mobile-brand { gap: 7px; }
  .attempt-status { padding-inline: 10px; font-size: 11px; }
  .mobile-banner-copy { width: 62%; }
  .mobile-banner-copy small { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}
