html, body {
  margin: 0;
  min-height: 100%;
  background: #000;
  user-select: none;
  -webkit-user-select: none;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}

.logo {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, 80vw);
  height: auto;
  -webkit-user-drag: none;
  pointer-events: none;
}

.desc {
  position: fixed;
  top: calc(50% - 300px);
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0 24px;
  width: min(560px, 90vw);
  box-sizing: border-box;
  text-align: center;
  color: #b8b8bd;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.6;
}

.discord-btn {
  position: fixed;
  top: calc(50% - 200px);
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.discord-btn:hover {
  transform: translateX(-50%) translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.09);
}

.discord-btn svg {
  width: 28px;
  height: 28px;
}

.toolbar {
  position: fixed;
  top: calc(50% - 130px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.tool-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.tool-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.09);
}

.tool-btn svg {
  width: 22px;
  height: 22px;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 72px 0 48px;
  box-sizing: border-box;
}

.back {
  position: fixed;
  top: 16px;
  left: 20px;
  color: #b8b8bd;
  text-decoration: none;
  font-size: 22px;
  line-height: 1;
}

.back:hover {
  color: #fff;
}

.tile {
  width: min(560px, 90vw);
  box-sizing: border-box;
  border-radius: 14px;
  color: #e8e8ea;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.tile:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

.tile-head {
  margin: 0;
  padding: 18px 22px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.tile-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.tile-body p {
  margin: 0;
  padding: 0 24px 20px;
  text-align: center;
  color: #b8b8bd;
  font-size: 15px;
  line-height: 1.6;
}

.tile-body .price {
  color: #fff;
  font-weight: 600;
}

.tile.open .tile-body {
  max-height: 400px;
}

.files {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  width: min(720px, 92vw);
}

.file {
  border-radius: 14px;
  padding: 20px 14px;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.file svg {
  width: 30px;
  height: 30px;
  color: #fff;
}

.file-name {
  margin: 12px 0 4px;
  color: #e8e8ea;
  font-size: 14px;
  font-weight: 600;
  word-break: break-word;
}

.file-ver {
  margin: 0 0 14px;
  color: #b8b8bd;
  font-size: 13px;
}

.file-dl {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.file-dl:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.09);
}

.empty {
  color: #b8b8bd;
  font-size: 15px;
  text-align: center;
}

body {
  transition: opacity 0.3s ease;
}

body.preload,
body.leaving {
  opacity: 0;
}

.tool-btn {
  position: relative;
}

.tool-btn::after {
  content: attr(data-tip);
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(20, 20, 22, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e8e8ea;
  font-size: 12px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.tool-btn:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
