
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@600;700;800;900&family=Outfit:wght@600;700;800;900&display=swap');

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(ellipse at 50% 35%, #17123e, #080d20 65%);
  color: #f5f6ff;
  font-family: Nunito, sans-serif;
}

header {
  padding: 15px 3%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  background: #080d20;
}

.logo {
  font: 900 30px Outfit;
  color: white;
}

.logo b {
  color: #ff8bba;
}

.logo small {
  display: block;
  font: 700 12px Nunito;
  color: #adbfdf;
}

.logo {
  text-decoration: none;
}

.rainbow {
  height: 3px;
  background: linear-gradient(90deg, #f24d9e, #ffb14e, #39d5a6, #398bff, #b34dff);
}

nav {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

button {
  cursor: pointer;
  color: #eef3ff;
  background: #122443;
  border: 1px solid #2a426d;
  border-radius: 11px;
  padding: 10px;
  font-weight: 800;
}

button:hover {
  filter: brightness(1.25);
  transform: translateY(-1px);
}

main {
  max-width: 1450px;
  margin: auto;
  padding: 0 18px;
}

.intro {
  text-align: center;
  padding: 25px 0 18px;
}

.intro h1 {
  font: 900 clamp(23px, 3vw, 36px) Outfit;
  margin: 0 0 7px;
}

.intro em {
  font-style: normal;
  color: #ff78bb;
}

.intro p {
  margin: 0;
  color: #a9b9d9;
}

.kitchen {
  display: grid;
  grid-template-columns: 1fr 1.3fr 1fr;
  gap: 15px;
}

.picker, .result, .collection {
  background: #0d1932;
  border: 1px solid #2a4778;
  border-radius: 18px;
  padding: 15px;
  min-width: 0;
  box-shadow: 0 12px 30px #0005;
}

.picker:first-child {
  border: 2px solid #348bff;
}

.picker:last-child {
  border: 2px solid #c34be9;
}

.picker input {
  width: 100%;
  padding: 13px;
  border-radius: 11px;
  background: #081329;
  border: 1px solid #2b4778;
  color: white;
  font: 700 14px Nunito;
  outline: none;
}

.cats {
  display: flex;
  gap: 5px;
  overflow: auto;
  padding: 10px 0;
}

.cats button {
  font-size: 10px;
  padding: 7px;
  white-space: nowrap;
}

.cats button.active {
  background: #1e4b83;
  border-color: #54a6ff;
}

.grid {
  height: 275px;
  overflow: auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}

.grid button {
  font-size: 26px;
  aspect-ratio: 1;
  padding: 3px;
  background: #142748;
  border-color: transparent;
}

.grid button.selected {
  border: 2px solid #52a3ff;
}

.picker p {
  border-top: 1px solid #283b60;
  padding-top: 9px;
  color: #849abe;
  font-size: 10px;
  font-weight: 900;
}

.picker p b {
  font-size: 19px;
  margin-left: 8px;
  color: white;
}

.result {
  border: 2px solid #426de0;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.result > small {
  color: #64dcb4;
  letter-spacing: 1px;
  font-weight: 900;
}

#stage {
  flex: 1;
  min-height: 300px;
  margin: 12px 0;
  background: radial-gradient(circle, #28175d, #0c1730 70%);
  border-radius: 15px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

#stage img {
  max-width: 90%;
  max-height: 300px;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px #0009);
  animation: pop .3s ease;
}

@keyframes pop {
  from {
    transform: scale(.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #aab9d8;
  font-size: 55px;
}

.placeholder b {
  font: 800 16px Outfit;
  color: white;
}

.placeholder small {
  font: 600 12px Nunito;
}

.result h2 {
  font: 800 16px Outfit;
}

.mix {
  background: linear-gradient(90deg, #398cff, #a04cff);
  border: 0;
  padding: 14px;
  margin-top: 10px;
}

.actions {
  display: flex;
  gap: 7px;
  margin-top: 8px;
}

.actions button {
  flex: 1;
}

.actions button:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.note {
  color: #8296bb;
  font-size: 10px;
  margin: 10px;
}

.shortcuts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 18px 0;
}

.shortcuts button {
  text-align: left;
  min-height: 72px;
  font-size: 22px;
}

.shortcuts b, .shortcuts small {
  display: block;
  margin-left: 35px;
}

.shortcuts b {
  font: 800 13px Outfit;
  margin-top: -25px;
}

.shortcuts small {
  font-size: 11px;
  color: #b4c4e1;
}

.collection {
  margin-bottom: 20px;
}

.collection h2 {
  font: 800 18px Outfit;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 9px;
}

.combo {
  background: #142748;
  border: 1px solid #2c4168;
  border-radius: 12px;
  padding: 8px;
  text-align: center;
}

.combo img {
  width: 75px;
  height: 75px;
  max-width: 100%;
  object-fit: contain;
}

.combo b {
  display: block;
  font-size: 10px;
}

.collection-grid .empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 22px;
  color: #a9b9d9;
}

#clearBtn {
  margin-top: 12px;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 18px 3%;
  color: #9aacca;
  font-size: 11px;
}

#toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  background: white;
  color: #11182a;
  border-radius: 10px;
  padding: 12px 17px;
  font-weight: 900;
  transition: .2s;
  pointer-events: none;
}

#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media(max-width:950px) {
  .kitchen {
    grid-template-columns: 1fr 1fr;
  }

  .result {
    grid-column: 1/-1;
    grid-row: 1;
  }

  .collection-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media(max-width:620px) {
  header {
    align-items: flex-start;
    flex-direction: column;
  }

  .kitchen {
    grid-template-columns: 1fr;
  }

  .result {
    grid-column: auto;
    grid-row: auto;
  }

  .shortcuts {
    grid-template-columns: 1fr 1fr;
  }

  .grid {
    grid-template-columns: repeat(7, 1fr);
  }

  .collection-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  footer {
    flex-wrap: wrap;
    gap: 10px;
  }
}

/* Emoji picker: prevent text selection */
.emoji-option {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

#gridA button,
#gridB button {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

#copyBtn,
#downloadBtn,
#favBtn {
  opacity: 1 !important;
  filter: none !important;
  cursor: pointer !important;
}
