/*CATPPUCCIN MACCHIATO PALETTE*/
:root {
  --crust:    #181926;
  --mantle:   #1e2030;
  --base:     #24273a;
  --surface0: #363a4f;
  --surface1: #494d64;
  --surface2: #5b6078;
  --overlay0: #6e738d;
  --overlay1: #8087a2;
  --overlay2: #939ab7;
  --subtext0: #a5adcb;
  --subtext1: #b8c0e0;
  --text:     #cad3f5;
  --lavender: #b7bdf8;
  --blue:     #8aadf4;
  --sapphire: #7dc4e4;
  --sky:      #91d7e3;
  --teal:     #8bd5ca;
  --green:    #a6da95;
  --yellow:   #eed49f;
  --peach:    #f5a97f;
  --maroon:   #ee99a0;
  --red:      #ed8796;
  --mauve:    #c6a0f6;
  --pink:     #f5bde6;

  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --sans: 'Inter', system-ui, sans-serif;

  --bar-h:      40px;
  --win-radius: 10px;
}


/*RESET*/
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--sans);
  cursor: none;
  background-color: #0d0f16;
  display: flex;
  flex-direction: column;
  color: var(--text);
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 3px;
}


/*WALLPAPER BACKGROUND*/
#bg {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.bg-layer.active {
  opacity: 1;
}

.bg-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(13, 15, 22, 0.72);
  background-image:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(138, 173, 244, .07) 0%, transparent 100%),
    radial-gradient(ellipse 50% 50% at 90% 90%, rgba(198, 160, 246, .04) 0%, transparent 70%),
    radial-gradient(circle, rgba(255, 255, 255, .018) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 28px 28px;
}


/*WAYBAR*/
#waybar {
  position: relative;
  z-index: 50;
  height: var(--bar-h);
  background: rgba(30, 32, 48, .92);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid rgba(54, 58, 79, .6);
  display: flex;
  align-items: center;
  padding: 0 16px;
  flex-shrink: 0;
  user-select: none;
}

/*--left section--*/
.wb-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.wb-logo {
  height: 26px;
  width: auto;
  flex-shrink: 0;
  mix-blend-mode: screen;
  filter: brightness(1.1);
}

.wb-workspaces {
  display: flex;
  gap: 4px;
  align-items: center;
  background: rgba(54, 58, 79, .4);
  padding: 4px 6px;
  border-radius: 8px;
  border: 1px solid rgba(54, 58, 79, .5);
}

.ws-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 22px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--overlay1);
  background: transparent;
  transition: all .15s;
}

.ws-btn:hover {
  color: var(--subtext1);
  background: rgba(255, 255, 255, .06);
}

.ws-btn.active {
  background: var(--blue);
  color: var(--crust);
  box-shadow: 0 0 10px rgba(138, 173, 244, .35);
}

.ws-btn:focus-visible {
  outline: 2px solid var(--mauve);
  outline-offset: 2px;
}

/*center section*/
.wb-center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.wb-title {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--subtext1);
  letter-spacing: -0.2px;
}

.wb-title .bang { color: var(--peach); }
.wb-title .word { color: var(--mauve); }

.wb-sep {
  color: var(--surface2);
  font-size: 12px;
}

.wb-app-name {
  font-size: 12px;
  color: var(--overlay1);
}

/*right section*/
.wb-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.wb-widget {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11.5px;
  color: var(--subtext0);
  background: transparent;
  transition: background .15s, color .4s;
  cursor: default;
  border: none;
}

.wb-widget:hover {
  background: rgba(255, 255, 255, .05);
}

.wb-widget svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  opacity: .7;
}

.wb-bg-btn {
  cursor: pointer;
}

.wb-bg-btn:hover {
  background: rgba(255, 255, 255, .08);
  color: var(--blue);
}

.wb-clock {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--subtext1);
  padding: 4px 10px;
  background: rgba(54, 58, 79, .5);
  border-radius: 6px;
  border: 1px solid rgba(54, 58, 79, .6);
  cursor: default;
  white-space: nowrap;
}


/*DESKTOP*/
#desktop {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  position: relative;
  z-index: 1;
}


/* WINDOW*/
#win {
  width: min(860px, 94vw);
  height: calc(100vh - var(--bar-h) - 40px);
  background: var(--base);
  border-radius: var(--win-radius);
  border: 2px solid rgba(138, 173, 244, .55);
  box-shadow:
    0 0 0 1px rgba(138, 173, 244, .08),
    0 0 30px rgba(138, 173, 244, .08),
    0 24px 64px rgba(0, 0, 0, .55),
    0 4px 16px rgba(0, 0, 0, .4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color .3s;
}


/*TITLEBAR*/
#titlebar {
  height: 38px;
  background: var(--mantle);
  border-bottom: 1px solid var(--surface0);
  display: flex;
  align-items: center;
  padding: 0 14px;
  flex-shrink: 0;
  user-select: none;
}

.tl-traffic {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-right: 14px;
}

.tl-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  padding: 0;
  flex-shrink: 0;
  cursor: pointer;
  transition: filter .1s, transform .1s;
}

.tl-dot:hover {
  filter: brightness(1.2);
  transform: scale(1.1);
}

.tl-dot.close { background: #ed8796; }
.tl-dot.min   { background: #eed49f; }
.tl-dot.max   { background: #a6da95; }

.tl-divider {
  width: 1px;
  height: 18px;
  background: var(--surface0);
  margin: 0 12px;
  flex-shrink: 0;
}

.tl-icon {
  width: 16px;
  height: 16px;
  margin-right: 7px;
  opacity: .6;
  flex-shrink: 0;
  color: var(--subtext0);
}

.tl-filename {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--subtext0);
  flex: 1;
}

.tl-filename span {
  color: var(--overlay0);
}

.tl-hints {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.tl-key {
  background: var(--surface0);
  border: 1px solid var(--surface1);
  border-radius: 3px;
  padding: 1px 6px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--overlay0);
}


/*WIN BODY*/
#win-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--surface1) transparent;
}

#win-body::-webkit-scrollbar {
  width: 5px;
}

#win-body::-webkit-scrollbar-thumb {
  background: var(--surface1);
  border-radius: 3px;
}


/*STATUSLINE*/
#win-status {
  height: 24px;
  background: var(--mantle);
  border-top: 1px solid var(--surface0);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--overlay0);
  flex-shrink: 0;
  user-select: none;
}

.wst-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.wst-fill {
  flex: 1;
}

.wst-mode {
  background: var(--blue);
  color: var(--crust);
  font-weight: 700;
  padding: 0 8px;
  height: 100%;
  display: flex;
  align-items: center;
  font-size: 10px;
  letter-spacing: 0.5px;
  margin-left: -14px;
  transition: background .2s;
}

.wst-mode.insert {
  background: var(--green);
}

.wst-pos {
  color: var(--mauve);
  font-weight: 600;
}


/*PAGE LAYOUT*/
.page {
  display: none;
  animation: fadeIn .18s ease;
}

.page.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.page-inner {
  padding: 2.5rem 3rem;
  max-width: 820px;
}

.page-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1rem;
}

.page-tag::after {
  content: '';
  height: 1px;
  width: 32px;
  background: var(--blue);
  opacity: .4;
}

.section {
  margin-bottom: 1.5rem;
}

.bl {
  height: 12px;
}

.dim {
  color: var(--overlay0);
  font-size: 13px;
  margin-bottom: 16px;
}


/*TYPOGRAPHY*/
h1.pg-h1 {
  font-family: var(--mono);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: .75rem;
}

h1.pg-h1 .c-mauve { color: var(--mauve); }
h1.pg-h1 .c-peach { color: var(--peach); }
h1.pg-h1 .c-blue  { color: var(--blue);  }

h2.pg-h2 {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  color: var(--subtext1);
  margin: 2rem 0 .75rem;
}

h3.pg-h3 {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--overlay1);
  margin-bottom: .6rem;
}

p.pg-p {
  font-size: 14px;
  color: var(--subtext0);
  line-height: 1.75;
  max-width: 580px;
  margin-bottom: .75rem;
}

p.pg-p b    { color: var(--text); font-weight: 600; }
p.pg-p code { font-family: var(--mono); font-size: 12px; background: var(--surface0); color: var(--green); padding: 1px 6px; border-radius: 3px; }
p.pg-p a    { color: var(--blue); text-decoration: none; }
p.pg-p a:hover { text-decoration: underline; }

hr.pg-hr {
  border: none;
  border-top: 1px solid var(--surface0);
  margin: 1.75rem 0;
}


/*KEY PILLS*/
.key-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 1rem 0;
}

.key-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--mantle);
  border: 1px solid var(--surface0);
  border-radius: 5px;
  padding: 5px 11px;
  font-size: 12px;
  color: var(--subtext0);
  font-family: var(--mono);
}

.key-pill kbd {
  background: var(--crust);
  border: 1px solid var(--surface0);
  border-bottom: 2px solid var(--surface1);
  border-radius: 3px;
  padding: 1px 6px;
  font-size: 11px;
  color: var(--yellow);
  font-family: var(--mono);
}


/*STAT ROW*/
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 1.5rem 0;
  background: var(--surface0);
  border-radius: 8px;
  overflow: hidden;
}

.stat-cell {
  background: var(--mantle);
  padding: 14px 18px;
}

.stat-n {
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--mauve);
  letter-spacing: -1px;
}

.stat-l {
  font-size: 11px;
  color: var(--overlay0);
  margin-top: 3px;
}


/*CODE BLOCK*/
.code-blk {
  background: var(--crust);
  border: 1px solid var(--surface0);
  border-radius: 6px;
  padding: 12px 16px;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.9;
  margin: 1rem 0;
  overflow-x: auto;
}

.code-blk .kw  { color: var(--mauve); }
.code-blk .fn  { color: var(--blue);  }
.code-blk .str { color: var(--green); }
.code-blk .cm  { color: var(--overlay0); }


/*GALLERY / EXAMPLES*/
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
  margin: 1rem 0;
}

.proj {
  background: var(--mantle);
  border: 1px solid var(--surface0);
  border-radius: 7px;
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: border-color .15s, transform .1s;
}

.proj:hover,
.proj:focus-visible {
  border-color: var(--blue);
  transform: translateY(-2px);
}

.proj-img {
  height: 110px;
  border-bottom: 1px solid var(--surface0);
  position: relative;
  overflow: hidden;
}

.proj-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, .06) 2px,
    rgba(0, 0, 0, .06) 3px
  );
}

.proj-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform .3s;
}

.proj:hover .proj-screenshot,
.proj:focus-visible .proj-screenshot {
  transform: scale(1.04);
}

.proj-info {
  padding: 9px 11px;
}

.proj-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.proj-meta {
  font-size: 11px;
  color: var(--overlay0);
  margin-bottom: 6px;
}

.proj-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.ptag {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 3px;
  border: 1px solid var(--surface1);
  color: var(--overlay1);
}

.ptag-k { border-color: rgba(198, 160, 246, .35); color: var(--mauve); }
.ptag-g { border-color: rgba(138, 173, 244, .35); color: var(--blue);  }


/*PRIZES*/
.prize-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--surface0);
  font-size: 13px;
  font-family: var(--mono);
}

.prize-tier {
  min-width: 140px;
  font-weight: 600;
  color: var(--text);
}

.prize-item {
  color: var(--subtext0);
}

.hl-green  { color: var(--green);  }
.h1-mauve  { color: var(--mauve);  }


/*RULES*/
.rules-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1rem 0;
}

@media (max-width: 580px) {
  .rules-cols { grid-template-columns: 1fr; }
}

.rule-ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rule-ul li {
  font-size: 13px;
  color: var(--subtext0);
  padding-left: 1rem;
  position: relative;
  line-height: 1.5;
}

.rule-ul li code {
  font-family: var(--mono);
  font-size: 11px;
  background: var(--surface0);
  color: var(--green);
  padding: 1px 5px;
  border-radius: 3px;
}

.rule-ul li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--overlay0);
  font-size: 10px;
  top: 4px;
  font-family: var(--mono);
}

/*--checklist box--*/
.checklist-box {
  background: var(--mantle);
  border: 1px solid var(--surface0);
  border-radius: 7px;
  padding: 1.2rem;
  margin: 1rem 0;
}

.checklist-box h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--overlay0);
  margin-bottom: .8rem;
}

.chk-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.chk-btn {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--crust);
  border: 1px solid var(--surface0);
  border-radius: 4px;
  padding: 7px 10px;
  cursor: pointer;
  color: var(--subtext0);
  font-family: var(--sans);
  font-size: 12.5px;
  width: 100%;
  text-align: left;
  line-height: 1.4;
  transition: border-color .1s;
}

.chk-btn:hover,
.chk-btn:focus-visible {
  border-color: var(--surface2);
}

.chk-btn.done {
  border-color: rgba(166, 218, 149, .3);
  color: var(--green);
  text-decoration: line-through;
  text-decoration-color: var(--overlay0);
}

.chk-btn.done .chkbox {
  background: var(--green);
  border-color: var(--green);
  color: var(--crust);
}

.chkbox {
  width: 15px;
  height: 15px;
  border: 1px solid var(--surface2);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: transparent;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all .1s;
}


/*FAQ*/
.faq {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 1rem 0;
}

.faq-item {
  background: var(--mantle);
  border: 1px solid var(--surface0);
  border-radius: 6px;
  overflow: hidden;
}

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 14px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text);
  font-size: 13.5px;
  font-family: var(--sans);
  font-weight: 500;
  gap: 1rem;
  transition: background .1s;
}

.faq-q:hover,
.faq-q:focus-visible {
  background: var(--surface0);
}

.faq-ico {
  width: 19px;
  height: 19px;
  border: 1px solid var(--surface1);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--overlay1);
  flex-shrink: 0;
  transition: transform .2s, background .1s;
}

.faq-item.open .faq-ico {
  transform: rotate(45deg);
  background: var(--mauve);
  color: var(--crust);
  border-color: var(--mauve);
}

.faq-ans {
  display: none;
  padding: 10px 14px;
  border-top: 1px solid var(--surface0);
  font-size: 13px;
  color: var(--overlay2);
  line-height: 1.75;
}

.faq-item.open .faq-ans {
  display: block;
}

.faq-ans a {
  color: var(--blue);
  text-decoration: none;
}


/*SUBMIT*/
.submit-hero {
  font-family: var(--mono);
  font-size: 58px;
  font-weight: 800;
  letter-spacing: -3px;
  line-height: 1;
  margin-bottom: 1rem;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--mauve);
  color: var(--crust);
  padding: 11px 22px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .15s;
  margin-top: .5rem;
}

.submit-btn:hover,
.submit-btn:focus-visible {
  background: var(--lavender);
  outline-color: var(--lavender);
}

.submit-req {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 1rem 0 1.5rem;
}

.submit-req li {
  font-size: 13px;
  color: var(--subtext0);
  display: flex;
  gap: 8px;
}

.submit-req li::before {
  content: '[x]';
  color: var(--green);
  font-weight: 700;
  font-family: var(--mono);
  font-size: 11px;
}


/*ROFI LAUNCHER*/
#rofi {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13, 15, 22, .65);
  backdrop-filter: blur(8px);
  z-index: 200;
  align-items: flex-start;
  justify-content: center;
  padding-top: 20vh;
}

#rofi.open {
  display: flex;
}

#rofi-box {
  width: 420px;
  background: var(--mantle);
  border: 1px solid var(--surface1);
  border-radius: 10px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .04);
  overflow: hidden;
}

#rofi-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--surface0);
}

#rofi-prompt {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--mauve);
  font-weight: 600;
  flex-shrink: 0;
}

#rofi-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
  caret-color: var(--mauve);
}

#rofi-results {
  padding: 6px;
}

.rofi-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background .1s;
  border: 1px solid transparent;
  background: transparent;
  width: 100%;
}

.rofi-item:hover,
.rofi-item.sel {
  background: var(--surface0);
  border-color: var(--surface1);
}

.rofi-item.sel {
  background: rgba(138, 173, 244, .08);
  border-color: rgba(138, 173, 244, .25);
}

.rofi-item-icon {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mauve);
  background: rgba(198, 160, 246, .1);
  border: 1px solid rgba(198, 160, 246, .2);
  border-radius: 4px;
  padding: 2px 7px;
  flex-shrink: 0;
}

.rofi-item-name {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}

.rofi-item-desc {
  font-size: 11px;
  color: var(--overlay0);
  margin-left: auto;
}

.rofi-footer {
  padding: 8px 14px;
  border-top: 1px solid var(--surface0);
  display: flex;
  gap: 12px;
  font-size: 10px;
  color: var(--overlay0);
  font-family: var(--mono);
}

.rofi-footer span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.rofi-footer kbd {
  background: var(--surface0);
  border: 1px solid var(--surface1);
  border-radius: 2px;
  padding: 0 4px;
  font-size: 10px;
  color: var(--subtext0);
}


/*TOASTS*/
#toast {
  position: fixed;
  bottom: 40px;
  right: 40px;
  background: rgba(30, 32, 48, .96);
  border: 1px solid var(--surface1);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--subtext1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
  z-index: 100;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .3s, transform .3s;
  pointer-events: none;
  font-family: var(--mono);
}

#toast.hide {
  opacity: 0;
  transform: translateY(6px);
}

#toast-ws {
  color: var(--blue);
  font-weight: 600;
}

/*--no-mouse toast--*/
#nomouse-toast {
  position: fixed;
  top: calc(var(--bar-h) + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: rgba(237, 135, 150, .15);
  border: 1px solid rgba(237, 135, 150, .4);
  border-radius: 6px;
  padding: 7px 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--maroon);
  pointer-events: none;
  z-index: 999;
  opacity: 0;
  transition: opacity .2s, transform .2s;
  white-space: nowrap;
}

#nomouse-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/*KEYBINDS MODAL*/
#keybinds {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13, 15, 22, .7);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

#keybinds.open {
  display: flex;
}

#kb-box {
  width: min(720px, 96vw);
  max-height: calc(100vh - 80px);
  background: var(--mantle);
  border: 1px solid var(--surface1);
  border-radius: 12px;
  box-shadow:
    0 0 0 1px rgba(138, 173, 244, .06),
    0 0 40px rgba(138, 173, 244, .07),
    0 32px 80px rgba(0, 0, 0, .7);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#kb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--surface0);
  background: var(--crust);
  flex-shrink: 0;
}

.kb-header-left {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--subtext1);
  letter-spacing: .4px;
}

.kb-header-left svg {
  color: var(--blue);
  opacity: .8;
}

.kb-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kb-esc-hint {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--overlay0);
  display: flex;
  align-items: center;
  gap: 5px;
}

.kb-esc-hint kbd {
  background: var(--surface0);
  border: 1px solid var(--surface1);
  border-radius: 3px;
  padding: 1px 6px;
  font-size: 10px;
  color: var(--subtext0);
}

#kb-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--surface1) transparent;
}

.kb-section {
  background: var(--base);
  border: 1px solid var(--surface0);
  border-radius: 8px;
  padding: 14px;
}

.kb-section-title {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--overlay1);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--surface0);
}

.kb-section-title svg {
  color: var(--blue);
  flex-shrink: 0;
}

.kb-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.kb-row {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  padding: 3px 0;
}

.kb-keys {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.kb-keys kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 5px;
  background: var(--surface0);
  border: 1px solid var(--surface2);
  border-bottom-width: 2px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--subtext1);
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(0,0,0,.3);
}

.kb-desc {
  font-size: 12px;
  color: var(--overlay2);
  text-align: right;
  flex: 1;
}

#kb-footer {
  padding: 10px 20px;
  border-top: 1px solid var(--surface0);
  background: var(--crust);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--overlay0);
  flex-shrink: 0;
}

.kb-mode-badge {
  background: var(--blue);
  color: var(--crust);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: .8px;
  padding: 2px 7px;
  border-radius: 3px;
  flex-shrink: 0;
}

.kb-footer-hint {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
}

.kb-footer-hint kbd {
  background: var(--surface0);
  border: 1px solid var(--surface1);
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 10px;
  color: var(--subtext0);
}

.wb-help-btn {
  cursor: pointer;
}

.wb-help-btn:hover {
  background: rgba(255, 255, 255, .08);
  color: var(--mauve);
}

.wb-help-btn.active {
  color: var(--mauve);
  background: rgba(198, 160, 246, .1);
}

.tl-key-help {
  background: rgba(198, 160, 246, .12) !important;
  border-color: rgba(198, 160, 246, .3) !important;
  color: var(--mauve) !important;
}

@media (max-width: 640px) {
  #kb-body {
    grid-template-columns: 1fr;
  }

  #kb-footer {
    flex-wrap: wrap;
    gap: 6px;
  }

  .kb-footer-hint {
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  :root {
    --bar-h: 36px;
  }

  .page-inner {
    padding: 1.25rem;
  }

  .wb-widget {
    display: none;
  }

  #desktop {
    padding: 8px;
  }
}
/*PRIZE CARDS*/
.prize-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 1.5rem;
}

.prize-card {
  border: 1px solid var(--surface1);
  border-radius: 8px;
  overflow: hidden;
  background: var(--mantle);
  transition: border-color .2s;
}

.prize-card-top {
  border-color: rgba(198,160,246,.35);
  box-shadow: 0 0 18px rgba(198,160,246,.08);
}

.prize-card-img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #24273a !important;
  overflow: hidden;
  padding: 0;
}

.prize-card-body {
  padding: 10px 12px 12px;
  border-top: 1px solid var(--surface1);
}

.prize-card-tier {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--subtext1);
  letter-spacing: .5px;
  margin-bottom: 4px;
}

.prize-card-name {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
  line-height: 1.5;
}

.prize-card-plus {
  font-size: 11px;
  color: var(--overlay0);
  margin: 1px 0;
}

.prize-card-badge {
  display: inline-block;
  margin-top: 6px;
  background: rgba(198,160,246,.15);
  border: 1px solid rgba(198,160,246,.3);
  border-radius: 4px;
  padding: 2px 7px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--mauve);
  letter-spacing: .5px;
}

@media (max-width: 640px) {
  .prize-cards-grid {
    grid-template-columns: 1fr;
  }
}
.prize-card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0;
}

.wb-logo {
  height: 28px;
  width: auto;
  flex-shrink: 0;
  mix-blend-mode: screen;
  filter: brightness(1.1);
}

.home-logo-img {
  display: block;
  height: 90px;
  width: auto;
  margin: 4px 0 20px 0;
  mix-blend-mode: screen;
  filter: brightness(1.1);
}