/**
 * Lucki Donut-style bento home - blue & white, clean boxes.
 */
:root {
  --lb-bg: #0b0f14;
  --lb-panel: #121820;
  --lb-blue: #3b9eff;
  --lb-blue-bright: #6bb6ff;
  --lb-blue-soft: #dcebff;
  --lb-white: #f7fbff;
  --lb-muted: #9db0c7;
  --lb-radius: 22px;
  --lb-font: var(--lk-font, 'Minecraft', monospace);
  --lb-discord: #5865f2;
  --lb-discord-soft: #7289da;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body.lb-body {
  margin: 0;
  min-height: 100%;
  font-family: var(--lb-font);
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(59, 158, 255, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 100%, rgba(59, 158, 255, 0.12), transparent 50%),
    var(--lb-bg);
  color: var(--lb-white);
}

.lb-grid {
  width: min(1100px, calc(100% - 2rem));
  margin: 1.5rem auto 2rem;
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  grid-template-rows: minmax(220px, 28vh) minmax(280px, 38vh);
  gap: 0.9rem;
  grid-template-areas:
    "store discord"
    "stats join";
}

.lb-logo-tag {
  margin: 0;
  color: #0b3a6b;
  font-weight: normal;
  font-size: 0.85rem;
}

.lb-join-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: auto;
}

.lb-cell--join {
  gap: 0.85rem;
}

.lb-join-note {
  margin: 0;
  color: var(--lb-muted);
  font-size: 0.88rem;
  font-weight: normal;
}

.lb-cell {
  position: relative;
  border-radius: var(--lb-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: var(--lb-panel);
  border: 1px solid rgba(123, 176, 255, 0.14);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

a.lb-cell:hover,
.lb-cell--logo:hover {
  transform: translateY(-3px);
  border-color: rgba(59, 158, 255, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.lb-cell--store { grid-area: store; }
.lb-cell--discord { grid-area: discord; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 1.35rem; background: #0e1218; }
.lb-cell--stats { grid-area: stats; }
.lb-cell--join {
  grid-area: join;
  padding: 1.25rem;
  background: linear-gradient(145deg, #10161e, #0c1118);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-play-now {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  height: auto;
  min-height: 0;
  margin: auto;
  padding: 1rem 1.75rem;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  background: #3b9eff;
  overflow: visible;
  border: 3px solid #fff;
  box-shadow: 0 6px 0 #1d6fbf;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.lb-play-now:hover {
  transform: translateY(-2px);
  color: #fff;
  background: #4aa6ff;
  box-shadow: 0 8px 0 #1d6fbf;
}

.lb-play-now:active {
  transform: translateY(3px);
  box-shadow: 0 3px 0 #1d6fbf;
  background: #2f8eef;
}

.lb-play-now__glow {
  display: none;
}

.lb-play-now__label {
  position: relative;
  z-index: 1;
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
}

.lb-logo-card {
  width: min(150px, 42vw);
  aspect-ratio: 1;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(30, 90, 160, 0.25);
}

.lb-logo-card img {
  width: 78%;
  height: auto;
  object-fit: contain;
}

.lb-ip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  background: #141a22;
  color: #fff;
  font-family: inherit;
  font-weight: normal;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.lb-ip:hover { background: #1c2530; }

.lb-label {
  position: absolute;
  top: 1rem;
  left: 1.1rem;
  z-index: 2;
  font-weight: normal;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.lb-cell__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
}

.lb-cell__art--cover {
  object-fit: cover;
  padding: 0;
  background: #0d1522;
}

.lb-cell__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.55));
  pointer-events: none;
}

.lb-cell__hint {
  position: absolute;
  left: 1.1rem;
  bottom: 1rem;
  z-index: 2;
  margin: 0;
  color: var(--lb-blue-soft);
  font-weight: normal;
  font-size: 0.95rem;
}

.lb-discord-icon {
  width: 42px;
  height: 42px;
  color: var(--lb-discord, #5865f2);
  margin-bottom: 0.85rem;
  display: block;
  flex: 0 0 auto;
  filter: drop-shadow(0 6px 16px rgba(88, 101, 242, 0.35));
}

.lb-discord-count {
  margin: 0;
  font-size: clamp(1.05rem, 3.2vw, 1.45rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.25;
  color: var(--lb-discord, #5865f2);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}

.lb-discord-sub {
  margin: 0.65rem 0 0;
  color: var(--lb-discord-soft, #7289da);
  font-size: 0.58rem;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  letter-spacing: 0.03em;
}

.lb-online {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3dd68c;
  box-shadow: 0 0 0 3px rgba(61, 214, 140, 0.2);
}

.lb-join-title {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
  font-weight: normal;
}

.lb-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: var(--lb-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: normal;
}

.lb-field__box {
  font-family: 'Courier New', ui-monospace, monospace;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
  color: #fff;
  background: #05070a;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
  font-weight: normal;
}

.lb-field__box--btn {
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.lb-field__box--btn:hover {
  border-color: var(--lb-blue);
  color: var(--lb-blue-bright);
}

.lb-cursor {
  animation: lbBlink 1s step-end infinite;
  color: var(--lb-blue-bright);
}

@keyframes lbBlink {
  50% { opacity: 0; }
}

.lb-join-discord {
  margin-top: auto;
  color: var(--lb-blue-bright);
  text-decoration: none;
  font-weight: normal;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.lb-join-discord:hover { text-decoration: underline; }

.lb-foot {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  color: var(--lb-muted);
  font-size: 0.85rem;
}

.lb-foot nav {
  display: flex;
  gap: 1rem;
}

.lb-foot a {
  color: var(--lb-blue-soft);
  text-decoration: none;
  font-weight: normal;
}

.lb-foot a:hover { color: #fff; }

@media (max-width: 860px) {
  .lb-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "store discord"
      "stats join";
    margin-top: 1.25rem;
  }

  .lb-cell--store,
  .lb-cell--discord,
  .lb-cell--stats,
  .lb-cell--join {
    min-height: 200px;
  }
}

@media (max-width: 560px) {
  .lb-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "join"
      "store"
      "stats"
      "discord";
    gap: 0.75rem;
  }

  .lb-cell--store,
  .lb-cell--discord,
  .lb-cell--stats,
  .lb-cell--join {
    min-height: 180px;
  }

  .lb-play-now {
    width: 100%;
    max-width: none;
    padding: 1rem 1.2rem;
  }

  .lb-play-now__label { font-size: 0.78rem; }

  .lb-discord-count { font-size: 1.05rem; }
  .lb-label { font-size: 0.72rem; }
}
