@import "https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Space+Grotesk:wght@400;600;700&display=swap";
@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;
    --spacing: 0.25rem;
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}
@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;
  }
  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;
    -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: -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 {
    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;
  }
  @supports (not ((-webkit-appearance: -apple-pay-button))) or
    (contain-intrinsic-size: 1px) {
    ::placeholder {
      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;
  }
  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }
  :-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;
  }
}
@layer components;
@layer utilities {
  .relative {
    position: relative;
  }
  .start {
    inset-inline-start: var(--spacing);
  }
  .contents {
    display: contents;
  }
  .table {
    display: table;
  }
}
:root {
  --ink: #f3f6f4;
  --mint: #74ffbe;
  --red: #ff4d6d;
  --bg: #090b0d;
}
* {
  box-sizing: border-box;
}
html,
body {
  background: var(--bg);
  min-height: 100%;
  color: var(--ink);
  overscroll-behavior: none;
  margin: 0;
}
body {
  background-image:
    radial-gradient(circle at 50% 38%, #16211d 0, #0000 38%),
    linear-gradient(#ffffff06 1px, #0000 1px),
    linear-gradient(90deg, #ffffff06 1px, #0000 1px);
  background-size:
    auto,
    32px 32px,
    32px 32px;
  font-family:
    Space Grotesk,
    system-ui,
    sans-serif;
}
button,
a {
  font: inherit;
}
button {
  color: inherit;
}
.game-shell {
  -webkit-user-select: none;
  user-select: none;
  grid-template-rows: auto auto 1fr auto;
  gap: 16px;
  width: min(100%, 720px);
  min-height: 100dvh;
  margin: auto;
  padding: 22px 24px 18px;
  display: grid;
}
header {
  justify-content: space-between;
  align-items: center;
  display: flex;
}
.brand {
  color: var(--ink);
  letter-spacing: 0.15em;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  white-space: nowrap;
}
.brand img {
  object-fit: contain;
  filter: drop-shadow(0 0 9px #ff4d6d40);
  width: 34px;
  height: 34px;
}
.brand .studio-name b {
  color: var(--mint);
}
.brand .studio-name b,
.brand .game-name {
  font-weight: 700;
}
.header-actions {
  align-items: center;
  gap: 8px;
  display: flex;
}
.boost-bank {
  color: var(--mint);
  letter-spacing: 0.06em;
  border: 1px solid #74ffbe47;
  border-radius: 999px;
  padding: 9px 11px;
  font:
    500 11px DM Mono,
    monospace;
}
.sound {
  letter-spacing: 0.09em;
  cursor: pointer;
  background: #00000040;
  border: 1px solid #ffffff2e;
  border-radius: 999px;
  padding: 9px 12px;
  font:
    500 11px DM Mono,
    monospace;
}
.scorebar {
  border-block: 1px solid #ffffff1f;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 12px 0;
  display: grid;
}
.scorebar > div:last-child {
  text-align: right;
}
.scorebar small {
  color: #a1aaa5;
  letter-spacing: 0.13em;
  font:
    500 11px DM Mono,
    monospace;
  display: block;
}
.scorebar strong {
  margin-top: 2px;
  font:
    500 22px DM Mono,
    monospace;
  display: block;
}
.timer {
  border: 1px solid #ffffff21;
  border-radius: 50%;
  place-items: center;
  width: 54px;
  height: 54px;
  display: grid;
  position: relative;
  overflow: hidden;
}
.timer span {
  background: conic-gradient(var(--mint) var(--progress), transparent 0);
  opacity: 0.25;
  position: absolute;
  inset: 0;
}
.timer b {
  font:
    500 16px DM Mono,
    monospace;
  position: relative;
}
.arena {
  touch-action: manipulation;
  cursor: pointer;
  place-items: center;
  min-height: 420px;
  display: grid;
  position: relative;
  overflow: hidden;
}
canvas {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
.overlay {
  z-index: 2;
  text-align: center;
  pointer-events: none;
  flex-direction: column;
  align-items: center;
  width: min(90%, 390px);
  display: flex;
}
.overlay .eyebrow {
  color: var(--mint);
  letter-spacing: 0.18em;
  margin: -34px 0 38px;
  font:
    500 12px DM Mono,
    monospace;
}
.overlay h1 {
  letter-spacing: -0.075em;
  margin: 0;
  font-size: clamp(48px, 13vw, 82px);
  font-weight: 700;
  line-height: 0.78;
}
.overlay h1 em {
  color: var(--mint);
  font-style: normal;
}
.overlay > p:not(.eyebrow) {
  color: #9aa19e;
  max-width: 310px;
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.5;
}
.overlay button {
  pointer-events: auto;
  background: var(--mint);
  color: #07100c;
  letter-spacing: 0.08em;
  cursor: pointer;
  border: 0;
  border-radius: 2px;
  justify-content: space-between;
  align-items: center;
  width: 210px;
  padding: 16px 18px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  box-shadow: 0 0 34px #74ffbe38;
}
.overlay button:active {
  transform: scale(0.97);
}
.overlay button span {
  font-size: 20px;
}
.end-actions {
  pointer-events: auto;
  gap: 9px;
  width: 230px;
  display: grid;
}
.end-actions button {
  width: 100%;
}
.overlay button.share-boost:disabled {
  opacity: 0.72;
  cursor: default;
}
.overlay button.replay {
  color: var(--ink);
  box-shadow: none;
  background: #090b0db8;
  border: 1px solid #fff3;
}
.overlay > small {
  color: #909894;
  letter-spacing: 0.12em;
  margin-top: 13px;
  font:
    500 11px DM Mono,
    monospace;
}
.countdown {
  z-index: 3;
  pointer-events: none;
  text-align: center;
  place-items: center;
  display: grid;
}
.countdown span {
  color: var(--mint);
  letter-spacing: -0.07em;
  text-shadow: 0 0 42px #74ffbe7a;
  font-size: clamp(68px, 18vw, 112px);
  font-weight: 700;
  line-height: 0.82;
  animation: 0.72s cubic-bezier(0.16, 0.84, 0.3, 1) both countBeat;
  display: block;
}
.countdown small {
  color: #aab3ae;
  letter-spacing: 0.17em;
  margin-top: 24px;
  font:
    500 12px DM Mono,
    monospace;
}
.countdown-set span {
  color: #ffd84d;
  text-shadow: 0 0 42px #ffd84d85;
}
.countdown-rush span {
  color: #ff5f3d;
  text-shadow: 0 0 52px #ff5f3dad;
}
.combo {
  z-index: 1;
  color: var(--heat);
  letter-spacing: 0.13em;
  text-align: center;
  text-shadow: 0 0 14px var(--heat);
  font:
    500 11px DM Mono,
    monospace;
  animation: 0.2s ease-out pop;
  position: absolute;
  top: 11%;
}
.combo b,
.combo span {
  display: block;
}
.combo b {
  letter-spacing: 0.08em;
  margin-bottom: 3px;
  font:
    700 19px Space Grotesk,
    sans-serif;
}
.combo.on-fire {
  animation: 0.42s ease-in-out infinite alternate firePulse;
}
footer {
  color: #a1aaa5;
  letter-spacing: 0.06em;
  justify-content: space-between;
  gap: 12px;
  font:
    500 11px/1.4 DM Mono,
    monospace;
  display: flex;
}
footer span:before {
  content: "";
  background: var(--mint);
  vertical-align: 1px;
  border-radius: 50%;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  display: inline-block;
}
footer .red:before {
  background: var(--red);
}
@keyframes pop {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }
}
@keyframes countBeat {
  0% {
    opacity: 0;
    transform: scale(0.35) rotate(-4deg);
  }
  42% {
    opacity: 1;
    transform: scale(1.12) rotate(1deg);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes firePulse {
  0% {
    filter: brightness();
    transform: scale(1);
  }
  to {
    filter: brightness(1.35);
    transform: scale(1.07);
  }
}
@media (width<=520px) {
  .game-shell {
    gap: 10px;
    padding: 18px 18px 14px;
  }
  .brand {
    min-width: 0;
    gap: 8px;
    letter-spacing: 0.1em;
    font-size: 13px;
  }
  .brand img {
    width: 38px;
    height: 38px;
  }
  .brand .studio-name,
  .brand .brand-divider {
    display: none;
  }
  .brand .game-name {
    color: var(--ink);
  }
  .boost-bank {
    padding: 8px 9px;
    font-size: 10px;
  }
  .sound {
    display: none;
  }
  .arena {
    min-height: 400px;
  }
  .overlay > p:not(.eyebrow) {
    margin: 18px 0;
  }
  .scorebar {
    padding: 9px 0;
  }
  footer {
    grid-template-columns: 1fr;
    gap: 5px;
    font-size: 10px;
    display: grid;
  }
  .timer {
    width: 48px;
    height: 48px;
  }
}
@media (height<=720px) {
  .game-shell {
    padding-block: 12px;
  }
  .arena {
    min-height: 340px;
  }
  .overlay .eyebrow {
    margin: -20px 0 28px;
  }
  .overlay h1 {
    font-size: 52px;
  }
  .overlay > p:not(.eyebrow) {
    margin: 14px 0;
  }
  .scorebar {
    padding: 7px 0;
  }
}

.mode-badge {
  color: #d7ff5f;
  letter-spacing: 0.09em;
  border: 1px solid #d7ff5f47;
  border-radius: 999px;
  padding: 9px 11px;
  font: 500 11px DM Mono, monospace;
}
.mode-picker {
  pointer-events: auto;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: min(100%, 340px);
  margin: 0 0 13px;
  display: grid;
}
.overlay .mode-picker button {
  color: #aab3ae;
  background: #090b0dcc;
  border: 1px solid #ffffff26;
  border-radius: 3px;
  width: auto;
  min-height: 48px;
  padding: 9px 11px;
  display: block;
  box-shadow: none;
  text-align: left;
}
.overlay .mode-picker button b {
  color: inherit;
  letter-spacing: 0.08em;
  font: 700 11px Space Grotesk, sans-serif;
  display: block;
}
.overlay .mode-picker button small {
  color: #7f8984;
  letter-spacing: 0.05em;
  margin-top: 2px;
  font: 500 8px DM Mono, monospace;
  display: block;
}
.overlay .mode-picker button.selected {
  color: #07100c;
  background: var(--mint);
  border-color: var(--mint);
  box-shadow: 0 0 25px #74ffbe26;
}
.overlay .mode-picker button.selected small {
  color: #173326;
}
.overlay .mode-picker button.completed:not(.selected)::after {
  content: " ✓";
  color: var(--mint);
}
.share-card {
  background: #090b0de8;
  border: 1px solid #74ffbe52;
  border-radius: 4px;
  width: 230px;
  margin: 0 0 12px;
  padding: 11px 14px;
  box-shadow: 0 0 28px #74ffbe17;
}
.share-card small {
  color: var(--mint);
  letter-spacing: 0.14em;
  font: 500 9px DM Mono, monospace;
  display: block;
}
.share-card strong {
  letter-spacing: 0.02em;
  margin: 2px 0;
  font: 700 28px DM Mono, monospace;
  display: block;
}
.share-card span {
  letter-spacing: 0.08em;
  font-size: 17px;
  line-height: 1;
  display: block;
}
.share-name {
  pointer-events: auto;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 230px;
  margin: 0 0 9px;
  display: flex;
}
.share-name span {
  color: #8e9792;
  letter-spacing: 0.09em;
  text-align: left;
  font: 500 8px DM Mono, monospace;
}
.share-name input {
  color: var(--ink);
  background: #ffffff0a;
  border: 1px solid #ffffff26;
  border-radius: 2px;
  outline: none;
  width: 120px;
  padding: 7px 9px;
  font: 500 10px DM Mono, monospace;
}
.share-name input:focus {
  border-color: #74ffbe8c;
  box-shadow: 0 0 0 2px #74ffbe12;
}
.overlay button.daily-reminder {
  pointer-events: auto;
  width: auto;
  min-height: 0;
  margin-top: 13px;
  padding: 9px 12px;
  color: #a2aba6;
  background: #090b0dcc;
  border: 1px solid #ffffff26;
  border-radius: 999px;
  letter-spacing: .08em;
  text-decoration: none;
  box-shadow: none;
  font: 500 8px/1.35 DM Mono, monospace;
  display: block;
}
.overlay button.daily-reminder:hover { color: var(--mint);border-color:#74ffbe66; }
.overlay button.daily-reminder[data-state="enabled"] { color:var(--mint);border-color:#74ffbe55; }
.daily-count { margin-top:10px;color:var(--mint);letter-spacing:.1em;font:500 9px DM Mono,monospace; }
@media (width<=520px) {
  .mode-badge {
    padding: 8px 9px;
    font-size: 9px;
  }
  .mode-picker {
    width: min(100%, 310px);
  }
  .overlay .mode-picker button {
    padding: 8px 9px;
  }
  .header-actions {
    gap: 5px;
  }
}
@media (height<=720px) {
  .mode-picker {
    margin-bottom: 9px;
  }
  .overlay .mode-picker button {
    min-height: 43px;
    padding-block: 6px;
  }
  .share-card {
    padding-block: 8px;
  }
  .share-name {
    margin-bottom: 6px;
  }
}
