@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700;800&display=swap");
/*! tailwindcss v4.1.3 | MIT License | https://tailwindcss.com */
@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;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --default-font-family: var(--font-sans);
    --default-font-feature-settings: var(--font-sans--font-feature-settings);
    --default-font-variation-settings: var(--font-sans--font-variation-settings);
    --default-mono-font-family: var(--font-mono);
    --default-mono-font-feature-settings: var(--font-mono--font-feature-settings);
    --default-mono-font-variation-settings: var(--font-mono--font-variation-settings);
  }
}

@layer base {
  *, :after, :before, ::backdrop {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  ::file-selector-button {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  html, :host {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    line-height: 1.5;
    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;
  }

  body {
    line-height: inherit;
  }

  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;
    -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 {
    vertical-align: baseline;
    font-size: 75%;
    line-height: 0;
    position: relative;
  }

  sub {
    bottom: -.25em;
  }

  sup {
    top: -.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 {
    vertical-align: middle;
    display: block;
  }

  img, video {
    max-width: 100%;
    height: auto;
  }

  button, input, select, optgroup, textarea {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  :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;
    color: currentColor;
  }

  @supports (color: color-mix(in lab, red, red)) {
    ::placeholder {
      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 {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-year-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-month-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-day-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-hour-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-minute-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-second-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-millisecond-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }

  :-moz-ui-invalid {
    box-shadow: none;
  }

  button, input:where([type="button"], [type="reset"], [type="submit"]) {
    appearance: button;
  }

  ::file-selector-button {
    appearance: button;
  }

  ::-webkit-inner-spin-button {
    height: auto;
  }

  ::-webkit-outer-spin-button {
    height: auto;
  }

  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }

  * {
    border-color: var(--border);
    outline-color: var(--ring);
  }

  @supports (color: color-mix(in lab, red, red)) {
    * {
      outline-color: color-mix(in oklab, var(--ring) 50%, transparent);
    }
  }

  * {
    border-color: var(--border);
    outline-color: var(--ring);
  }

  @supports (color: color-mix(in lab, red, red)) {
    * {
      outline-color: color-mix(in oklab, var(--ring) 50%, transparent);
    }
  }

  body {
    background-color: var(--background);
    color: var(--foreground);
  }

  :where(:not(:has([class*=" text-"]), :not(:has([class^="text-"])))) h1 {
    font-size: var(--text-2xl);
    font-weight: var(--font-weight-medium);
    line-height: 1.5;
  }

  :where(:not(:has([class*=" text-"]), :not(:has([class^="text-"])))) h2 {
    font-size: var(--text-xl);
    font-weight: var(--font-weight-medium);
    line-height: 1.5;
  }

  :where(:not(:has([class*=" text-"]), :not(:has([class^="text-"])))) h3 {
    font-size: var(--text-lg);
    font-weight: var(--font-weight-medium);
    line-height: 1.5;
  }

  :where(:not(:has([class*=" text-"]), :not(:has([class^="text-"])))) h4 {
    font-size: var(--text-base);
    font-weight: var(--font-weight-medium);
    line-height: 1.5;
  }

  :where(:not(:has([class*=" text-"]), :not(:has([class^="text-"])))) p {
    font-size: var(--text-base);
    font-weight: var(--font-weight-normal);
    line-height: 1.5;
  }

  :where(:not(:has([class*=" text-"]), :not(:has([class^="text-"])))) label, :where(:not(:has([class*=" text-"]), :not(:has([class^="text-"])))) button {
    font-size: var(--text-base);
    font-weight: var(--font-weight-medium);
    line-height: 1.5;
  }

  :where(:not(:has([class*=" text-"]), :not(:has([class^="text-"])))) input {
    font-size: var(--text-base);
    font-weight: var(--font-weight-normal);
    line-height: 1.5;
  }
}

@layer utilities {
  .static {
    position: static;
  }

  .container {
    width: 100%;
  }

  @media (width >= 40rem) {
    .container {
      max-width: 40rem;
    }
  }

  @media (width >= 48rem) {
    .container {
      max-width: 48rem;
    }
  }

  @media (width >= 64rem) {
    .container {
      max-width: 64rem;
    }
  }

  @media (width >= 80rem) {
    .container {
      max-width: 80rem;
    }
  }

  @media (width >= 96rem) {
    .container {
      max-width: 96rem;
    }
  }
}


:root {
  --font-size: 16px;
  --background: #fff;
  --foreground: oklch(.145 0 0);
  --card: #fff;
  --card-foreground: oklch(.145 0 0);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(.145 0 0);
  --primary: #030213;
  --primary-foreground: oklch(1 0 0);
  --secondary: oklch(.95 .0058 264.53);
  --secondary-foreground: #030213;
  --muted: #ececf0;
  --muted-foreground: #717182;
  --accent: #e9ebef;
  --accent-foreground: #030213;
  --destructive: #d4183d;
  --destructive-foreground: #fff;
  --border: #0000001a;
  --input: transparent;
  --input-background: #f3f3f5;
  --switch-background: #cbced4;
  --font-weight-medium: 500;
  --font-weight-normal: 400;
  --ring: oklch(.708 0 0);
  --chart-1: oklch(.646 .222 41.116);
  --chart-2: oklch(.6 .118 184.704);
  --chart-3: oklch(.398 .07 227.392);
  --chart-4: oklch(.828 .189 84.429);
  --chart-5: oklch(.769 .188 70.08);
  --radius: .625rem;
  --sidebar: oklch(.985 0 0);
  --sidebar-foreground: oklch(.145 0 0);
  --sidebar-primary: #030213;
  --sidebar-primary-foreground: oklch(.985 0 0);
  --sidebar-accent: oklch(.97 0 0);
  --sidebar-accent-foreground: oklch(.205 0 0);
  --sidebar-border: oklch(.922 0 0);
  --sidebar-ring: oklch(.708 0 0);
}

.dark {
  --background: oklch(.145 0 0);
  --foreground: oklch(.985 0 0);
  --card: oklch(.145 0 0);
  --card-foreground: oklch(.985 0 0);
  --popover: oklch(.145 0 0);
  --popover-foreground: oklch(.985 0 0);
  --primary: oklch(.985 0 0);
  --primary-foreground: oklch(.205 0 0);
  --secondary: oklch(.269 0 0);
  --secondary-foreground: oklch(.985 0 0);
  --muted: oklch(.269 0 0);
  --muted-foreground: oklch(.708 0 0);
  --accent: oklch(.269 0 0);
  --accent-foreground: oklch(.985 0 0);
  --destructive: oklch(.396 .141 25.723);
  --destructive-foreground: oklch(.637 .237 25.331);
  --border: oklch(.269 0 0);
  --input: oklch(.269 0 0);
  --ring: oklch(.439 0 0);
  --font-weight-medium: 500;
  --font-weight-normal: 400;
  --chart-1: oklch(.488 .243 264.376);
  --chart-2: oklch(.696 .17 162.48);
  --chart-3: oklch(.769 .188 70.08);
  --chart-4: oklch(.627 .265 303.9);
  --chart-5: oklch(.645 .246 16.439);
  --sidebar: oklch(.205 0 0);
  --sidebar-foreground: oklch(.985 0 0);
  --sidebar-primary: oklch(.488 .243 264.376);
  --sidebar-primary-foreground: oklch(.985 0 0);
  --sidebar-accent: oklch(.269 0 0);
  --sidebar-accent-foreground: oklch(.985 0 0);
  --sidebar-border: oklch(.269 0 0);
  --sidebar-ring: oklch(.439 0 0);
}

html {
  font-size: var(--font-size);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: JetBrains Mono, monospace;
  overflow: hidden;
}

.app {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.split-container {
  width: 100vw;
  height: 100vh;
  display: flex;
  position: relative;
}

.split-side {
  background-position: center;
  background-size: cover;
  flex: 1;
  justify-content: center;
  align-items: center;
  height: 100%;
  transition: all .6s cubic-bezier(.4, 0, .2, 1);
  display: flex;
  position: relative;
}

.overlay {
  z-index: 1;
  background: #000000a6;
  position: absolute;
  inset: 0;
}

.correct-answer .overlay {
  background: #10b981d9;
}

.wrong-answer .overlay {
  background: #ef4444d9;
}

.side-content {
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 600px;
  padding: 40px;
  position: relative;
}

.repo-name {
  color: #fff;
  text-shadow: 0 2px 8px #000c, 0 4px 16px #0009, 0 0 1px #000;
  letter-spacing: -.5px;
  margin-bottom: 24px;
  font-size: 2.8em;
  font-weight: 700;
  line-height: 1.15;
  animation: .6s ease-out fadeInUp;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.has-text {
  color: #fff;
  text-shadow: 0 2px 6px #000c, 0 0 1px #000;
  letter-spacing: .3px;
  margin-bottom: 20px;
  font-size: 1.2em;
  font-weight: 600;
}

.star-count {
  color: #fff;
  text-shadow: 0 4px 16px #00000080, 0 8px 32px #0000004d;
  letter-spacing: -1px;
  background: linear-gradient(#fff 0%, #ffffffeb 100%);
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  font-size: 5.8em;
  font-weight: 800;
  line-height: 1;
}

.stat-label {
  color: #fff;
  text-shadow: 0 2px 6px #000c, 0 0 1px #000;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 32px;
  font-size: .95em;
  font-weight: 600;
}

.repo-meta {
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  display: flex;
}

.meta-item {
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  color: #fff;
  letter-spacing: .2px;
  background: #fff3;
  border: 1.5px solid #fff6;
  border-radius: 100px;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: .95em;
  font-weight: 600;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  display: flex;
  box-shadow: 0 4px 20px #0003, inset 0 1px #fff3;
}

.meta-item:hover {
  background: #ffffff40;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px #0000004d, inset 0 1px #ffffff4d;
}

.action-buttons-inline {
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 420px;
  margin-bottom: 32px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
}

.inline-btn {
  cursor: pointer;
  color: #fff;
  letter-spacing: .5px;
  text-shadow: 0 1px 4px #0000004d;
  border: 2px solid #ffffff80;
  border-radius: 100px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 20px 40px;
  font-size: 1.35em;
  font-weight: 700;
  transition: all .25s cubic-bezier(.4, 0, .2, 1);
  display: flex;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px #00000040, inset 0 1px #ffffff26;
}

.inline-btn:before {
  content: "";
  background: linear-gradient(90deg, #0000, #ffffff26, #0000);
  width: 100%;
  height: 100%;
  transition: left .5s;
  position: absolute;
  top: 0;
  left: -100%;
}

.inline-btn:hover:before {
  left: 100%;
}

.btn-higher {
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background: #ffffff26;
}

.btn-lower {
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background: #00000040;
}

.inline-btn:hover {
  background: #ffffff40;
  border-color: #ffffffb3;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px #00000059, inset 0 1px #ffffff40;
}

.inline-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px #0000004d;
}

.vs-badge {
  color: #0f172a;
  z-index: 10;
  letter-spacing: 2px;
  background: #fff;
  border: 5px solid #0000001a;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 90px;
  height: 90px;
  font-size: 1.8em;
  font-weight: 900;
  display: flex;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 10px 50px #0009;
}

.score-corner {
  color: #fff;
  text-shadow: 0 2px 12px #0009;
  z-index: 3;
  letter-spacing: .3px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background: #0003;
  border: 1.5px solid #ffffff4d;
  border-radius: 100px;
  padding: 10px 20px;
  font-size: 1em;
  font-weight: 600;
  position: absolute;
  bottom: 36px;
  box-shadow: 0 4px 16px #0000004d;
}

.left-side .score-corner {
  left: 32px;
}

.right-side .score-corner {
  right: 32px;
}

.modal-overlay {
  z-index: 1000;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  background: #0f172af5;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  animation: .3s ease-out fadeIn;
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal {
  text-align: center;
  background: #fff;
  border: 4px solid #fff3;
  border-radius: 32px;
  max-width: 560px;
  padding: 64px 80px;
  animation: .5s cubic-bezier(.4, 0, .2, 1) modalSlideIn;
  box-shadow: 0 24px 80px #000000b3;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-80px)scale(.9);
  }

  to {
    opacity: 1;
    transform: translateY(0)scale(1);
  }
}

.modal-title {
  color: #0f172a;
  letter-spacing: -.5px;
  margin-bottom: 24px;
  font-size: 2.8em;
  font-weight: 700;
}

.modal-score {
  color: #475569;
  margin-bottom: 20px;
  font-size: 1.4em;
}

.modal-score strong {
  color: #0f172a;
  letter-spacing: -.5px;
  margin-top: 8px;
  font-size: 2.4em;
  font-weight: 800;
  display: block;
}

.modal-high-score {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 36px;
  font-size: 1.6em;
  font-weight: 800;
}

.play-again-button {
  color: #fff;
  cursor: pointer;
  letter-spacing: .8px;
  background: linear-gradient(135deg, #1e3a8a 0%, #7c3aed 100%);
  border: 3px solid #ffffff4d;
  border-radius: 16px;
  padding: 20px 64px;
  font-size: 1.3em;
  font-weight: 800;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  box-shadow: 0 10px 30px #7c3aed80;
}

.play-again-button:hover {
  transform: translateY(-4px)scale(1.05);
  box-shadow: 0 14px 40px #7c3aed99;
}

.play-again-button:active {
  transform: translateY(-2px)scale(1.02);
}

@media (width <= 1024px) {
  .split-container {
    flex-direction: column;
  }

  .split-side {
    flex: 1;
  }

  .vs-badge {
    width: 80px;
    height: 80px;
    font-size: 1.6em;
  }

  .repo-name {
    font-size: 2.2em;
  }

  .star-count {
    font-size: 4em;
  }
}

@media (width <= 768px) {
  .side-content {
    padding: 30px 20px;
  }

  .repo-name {
    margin-bottom: 16px;
    font-size: 1.8em;
  }

  .has-text {
    margin-bottom: 20px;
    font-size: 1.1em;
  }

  .star-count {
    margin-bottom: 12px;
    font-size: 3.5em;
  }

  .stat-label {
    margin-bottom: 24px;
    font-size: 1em;
  }

  .action-buttons-inline {
    gap: 12px;
    max-width: 320px;
  }

  .inline-btn {
    padding: 16px 32px;
    font-size: 1.2em;
  }

  .vs-badge {
    width: 70px;
    height: 70px;
    font-size: 1.4em;
  }

  .score-corner {
    font-size: 1em;
    bottom: 24px;
  }

  .left-side .score-corner {
    left: 24px;
  }

  .right-side .score-corner {
    right: 24px;
  }

  .modal {
    margin: 20px;
    padding: 48px 40px;
  }

  .modal-title {
    font-size: 2.8em;
  }

  .modal-score {
    font-size: 1.5em;
  }
}

@media (width <= 480px) {
  .repo-name {
    font-size: 1.5em;
  }

  .has-text {
    font-size: 1em;
  }

  .star-count {
    font-size: 3em;
  }

  .stat-label {
    font-size: .9em;
  }

  .meta-item {
    padding: 8px 16px;
    font-size: .9em;
  }

  .action-buttons-inline {
    max-width: 280px;
  }

  .inline-btn {
    padding: 14px 28px;
    font-size: 1.1em;
  }

  .vs-badge {
    width: 60px;
    height: 60px;
    font-size: 1.2em;
  }

  .score-corner {
    font-size: .9em;
    bottom: 20px;
  }

  .left-side .score-corner {
    left: 20px;
  }

  .right-side .score-corner {
    right: 20px;
  }
}
