/* =========================================================
   Fruit Merge Online — Complete Homepage Stylesheet
   Updated: 2026-07-11
   Includes homepage entries for:
   - Fruit Evolution Guide
   - Fruit Merge Scoring Guide
   - How to Get Dragon Fruit
   ========================================================= */

* {
  box-sizing: border-box;
}

:root {
  --dark: #071221;
  --dark-2: #0a1728;
  --cream: #fff2c4;
  --gold: #ffd45a;
  --green: #9cff55;
  --muted: #b9c1d5;
  --brown: #6f3d12;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: #fff;
  background:
    radial-gradient(circle at 30% -10%, rgba(50, 132, 255, 0.18), transparent 32%),
    radial-gradient(circle at 80% 0%, rgba(156, 255, 85, 0.12), transparent 26%),
    #06101d;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
canvas {
  max-width: 100%;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   Main Layout
   ========================================================= */

.portal-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  grid-template-rows: 72px 1fr;
  grid-template-areas:
    "top top"
    "side main";
}

.portal-header {
  grid-area: top;
  height: 72px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  position: sticky;
  top: 0;
  z-index: 100;
  background:
    linear-gradient(180deg, rgba(8, 18, 33, 0.98), rgba(7, 14, 27, 0.95));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0 0 22px 22px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 22px;
  line-height: 1;
  font-weight: 1000;
  letter-spacing: -0.055em;
}

.brand > span:last-child span,
.brand strong {
  color: var(--green);
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #d8ff80, #22ce63);
  box-shadow:
    0 12px 26px rgba(66, 232, 103, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.search-box {
  flex: 1 1 360px;
  max-width: 430px;
  min-width: 220px;
  height: 42px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  color: #c6cede;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.055));
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
}

.search-box input::placeholder {
  color: #99a3b8;
}

.top-nav {
  flex: 0 0 auto;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.88);
}

.top-nav a {
  position: relative;
  padding: 9px 0;
  white-space: nowrap;
  line-height: 1;
}

.top-nav a.active,
.top-nav a:hover {
  color: #fff;
}

.top-nav a.active::after,
.top-nav a:hover::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 1px;
  height: 3px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 10px rgba(156, 255, 85, 0.75);
}

.icon-sidebar {
  grid-area: side;
  width: 88px;
  height: calc(100dvh - 72px);
  padding: 22px 10px 18px;
  position: sticky;
  top: 72px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background:
    linear-gradient(180deg, rgba(8, 18, 33, 0.96), rgba(7, 14, 27, 0.98));
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0 26px 26px 0;
}

.icon-sidebar a,
.side-settings {
  width: 62px;
  min-height: 64px;
  border: 0;
  color: #e9eefc;
  background: transparent;
  display: grid;
  justify-items: center;
  gap: 6px;
  cursor: pointer;
}

.icon-sidebar a span,
.side-settings {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.045));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 22px rgba(0, 0, 0, 0.18);
  font-size: 22px;
}

.icon-sidebar a small {
  font-size: 11px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.82);
}

.side-settings {
  margin-top: auto;
  min-height: 44px;
  font-size: 22px;
}

.portal-main {
  grid-area: main;
  min-width: 0;
  padding: 12px 18px 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* =========================================================
   Game Card
   ========================================================= */

.game-player {
  width: min(980px, calc(100vw - 170px));
  height: min(640px, calc(100dvh - 96px));
  margin: 0 auto;
  overflow: hidden;
  border-radius: 30px;
  background: #071221;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.game-viewport {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 30px 30px 0 0;
  background:
    radial-gradient(circle at 38% 4%, rgba(255, 255, 255, 0.72), transparent 18%),
    radial-gradient(circle at 50% 54%, rgba(255, 255, 255, 0.42), transparent 46%),
    linear-gradient(180deg, #fff0b5 0%, #ffe09b 42%, #fff1bf 100%);
}

.game-viewport::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 5% 4%, rgba(91, 163, 33, 0.22), transparent 9%),
    radial-gradient(circle at 96% 3%, rgba(238, 142, 18, 0.24), transparent 10%),
    radial-gradient(circle at 6% 96%, rgba(231, 127, 24, 0.28), transparent 11%),
    radial-gradient(circle at 96% 98%, rgba(63, 172, 56, 0.28), transparent 12%);
  pointer-events: none;
}

.game-viewport::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 0;
  height: 78px;
  opacity: 0.85;
  background:
    radial-gradient(circle at 3% 100%, rgba(255, 130, 35, 0.38), transparent 17%),
    radial-gradient(circle at 9% 105%, rgba(137, 64, 221, 0.38), transparent 16%),
    radial-gradient(circle at 92% 104%, rgba(255, 84, 70, 0.30), transparent 15%),
    radial-gradient(circle at 97% 102%, rgba(96, 194, 49, 0.32), transparent 16%);
  pointer-events: none;
}

.game-scene {
  position: relative;
  width: min(
    900px,
    calc(100% - 56px),
    calc((100dvh - 190px) * 16 / 9)
  );
  aspect-ratio: 16 / 9;
  height: auto;
  margin: 0 auto;
  overflow: visible;
  z-index: 2;
}

.scene-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* =========================================================
   Scene Title and Decorations
   ========================================================= */

.scene-title {
  position: absolute;
  left: 50%;
  top: 1.4%;
  z-index: 10;
  padding: 3px 22px 7px;
  border-radius: 999px;
  transform: translateX(-50%) rotate(-1deg);
  white-space: nowrap;
  font-family: "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  line-height: 0.92;
  letter-spacing: -0.055em;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.55), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.06));
  filter:
    drop-shadow(0 10px 12px rgba(128, 77, 16, 0.20))
    drop-shadow(0 0 18px rgba(255, 236, 152, 0.50));
}

.scene-title::before {
  content: "🍓";
  position: absolute;
  left: -13px;
  top: 6px;
  font-size: 20px;
  transform: rotate(-16deg);
  filter: drop-shadow(0 5px 5px rgba(112, 62, 10, 0.22));
}

.scene-title::after {
  content: "✨";
  position: absolute;
  right: -15px;
  top: 6px;
  font-size: 18px;
  transform: rotate(12deg);
  filter: drop-shadow(0 5px 5px rgba(112, 62, 10, 0.18));
}

.scene-title span,
.scene-title strong {
  display: inline-block;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 0.92;
  font-weight: 1000;
  -webkit-text-stroke: 3px #ffffff;
  paint-order: stroke fill;
  text-shadow:
    0 3px 0 rgba(126, 76, 14, 0.14),
    0 8px 14px rgba(126, 76, 14, 0.16);
}

.scene-title span {
  color: #ff654b;
}

.scene-title strong {
  margin-left: 10px;
  color: #76ca39;
}

.scene-decoration {
  position: absolute;
  z-index: 1;
  opacity: 0.6;
  filter: blur(0.1px) drop-shadow(0 8px 8px rgba(117, 75, 12, 0.15));
  pointer-events: none;
}

.scene-leaf-one {
  left: 3%;
  top: 8%;
  font-size: 24px;
  transform: rotate(-24deg);
}

.scene-leaf-two {
  right: 7%;
  top: 8%;
  font-size: 20px;
  transform: rotate(28deg);
}

.scene-star-one {
  left: 33%;
  top: 8%;
  color: #f1b927;
  font-size: 13px;
}

.scene-star-two {
  right: 34%;
  top: 8%;
  color: #f1b927;
  font-size: 13px;
}

.fruit-corner {
  position: absolute;
  bottom: -1%;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  gap: 0;
  pointer-events: none;
  filter: drop-shadow(0 12px 14px rgba(99, 57, 10, 0.22));
}

.fruit-corner span {
  display: inline-block;
  font-size: 24px;
  margin-left: -6px;
}

.fruit-corner-left {
  left: 0;
}

.fruit-corner-right {
  right: 0;
}

/* =========================================================
   Left Score and Leaderboard Panel
   ========================================================= */

.scene-left {
  position: absolute;
  left: 5.5%;
  top: 13.2%;
  width: 18.2%;
  height: auto;
  z-index: 4;
}

.score-orb {
  position: relative;
  width: 94px;
  height: 94px;
  margin: 0 auto 9px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  color: #392c2f;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.80), rgba(255, 255, 255, 0.48));
  border: 2px solid rgba(255, 255, 255, 0.84);
  box-shadow:
    0 18px 34px rgba(167, 105, 23, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
}

.score-crown {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 20px;
  filter: drop-shadow(0 6px 6px rgba(116, 70, 12, 0.22));
}

.score-orb span,
.score-orb small {
  display: block;
  color: #7d3c10;
  font-size: 7px;
  font-weight: 1000;
  text-transform: uppercase;
}

.score-orb strong {
  display: block;
  margin: 2px 0 4px;
  color: #2f3348;
  font-size: 27px;
  line-height: 0.96;
  font-weight: 1000;
  letter-spacing: -0.04em;
  text-shadow: 0 3px 0 rgba(255, 255, 255, 0.78);
}

.score-orb b {
  color: #8a3c09;
  font-size: 11px;
  font-weight: 1000;
}

.score-panel {
  width: 100%;
  min-height: 212px;
  max-height: 212px;
  padding: 11px 10px 10px;
  border-radius: 20px;
  overflow: hidden;
  color: #703b10;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 247, 216, 0.78));
  border: 2px solid rgba(255, 255, 255, 0.78);
  box-shadow:
    0 18px 34px rgba(130, 77, 13, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(12px);
}

.panel-title {
  text-align: center;
}

.panel-title h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1;
  font-weight: 1000;
  letter-spacing: -0.035em;
}

.panel-title p {
  margin: 4px 0 8px;
  font-size: 8px;
  font-weight: 850;
}

.time-card {
  padding: 7px 6px;
  border-radius: 12px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 244, 217, 0.95), rgba(255, 221, 179, 0.78));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.time-card span {
  display: block;
  margin-bottom: 4px;
  color: #c35d1b;
  font-size: 8px;
  font-weight: 1000;
  text-transform: uppercase;
}

.time-card strong {
  display: block;
  font-size: 16px;
  font-weight: 1000;
  color: #7f3d10;
}

.top-runs-title {
  margin: 8px 0 6px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6px;
  color: #c15c1a;
  font-size: 8px;
  font-weight: 1000;
  text-transform: uppercase;
}

.top-runs-title span {
  height: 1px;
  background: rgba(189, 112, 35, 0.28);
}

.leaderboard-list {
  display: grid;
  gap: 5px;
}

.leaderboard-item {
  min-height: 28px;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 5px;
  padding: 3px 6px 3px 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
}

.leaderboard-item:nth-child(n + 4) {
  display: none !important;
}

.leaderboard-rank {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #7b430f;
  background: linear-gradient(180deg, #ffe062, #f4af1c);
  font-size: 11px;
  font-weight: 1000;
}

.leaderboard-main {
  min-width: 0;
}

.leaderboard-main strong,
.leaderboard-main span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-main strong {
  font-size: 8px;
  font-weight: 1000;
}

.leaderboard-main span {
  display: none;
}

.leaderboard-score {
  font-size: 8px;
  font-weight: 1000;
}

.quick-buttons {
  display: none;
}

/* =========================================================
   Center Canvas
   ========================================================= */

.scene-center {
  position: absolute;
  left: 32.5%;
  top: 15.8%;
  width: 34.5%;
  z-index: 5;
  display: grid;
  justify-items: center;
}

.glass-top {
  width: 52%;
  height: 14px;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(180deg, #ffe77d, #f4bd32);
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.36),
    0 9px 18px rgba(128, 76, 14, 0.16);
}

.canvas-frame {
  position: relative;
  width: 100%;
  padding: 4px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, #ffe77d, #f0b531);
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.38),
    0 22px 44px rgba(128, 76, 14, 0.22);
  overflow: hidden;
}

#gameCanvas {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  background: #eaf9f5;
  touch-action: none;
}

/* =========================================================
   Game Over
   ========================================================= */

.game-over-panel {
  position: absolute;
  inset: 4px;
  z-index: 50;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(30, 18, 6, 0.48);
  backdrop-filter: blur(10px);
}

.game-over-card {
  width: min(88%, 270px);
  padding: 20px 15px;
  border-radius: 22px;
  text-align: center;
  color: #6b3c13;
  background: linear-gradient(180deg, #fff9de, #ffd985);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.26);
}

.game-over-badge {
  display: inline-flex;
  margin: 0 0 8px;
  padding: 5px 12px;
  border-radius: 999px;
  color: #fff;
  background: #ff6e4f;
  font-size: 11px;
  font-weight: 1000;
  text-transform: uppercase;
}

.game-over-card h2 {
  margin: 0;
}

.game-over-score {
  margin: 6px 0 12px;
  font-size: 38px;
  line-height: 1;
  font-weight: 1000;
}

.game-over-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.game-over-meta div {
  padding: 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.52);
}

.game-over-meta span,
.game-over-meta strong {
  display: block;
}

.game-over-meta span {
  font-size: 10px;
  font-weight: 900;
  opacity: 0.72;
  text-transform: uppercase;
}

.game-over-meta strong {
  font-size: 15px;
}

.game-over-tip {
  margin: 12px 0 14px;
  font-size: 12px;
  line-height: 1.5;
}

.game-over-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.game-over-actions button {
  min-width: 90px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 1000;
}

.game-over-actions .primary {
  color: #fff;
  background: linear-gradient(180deg, #24db69, #10b956);
}

.game-over-actions .secondary {
  color: #704615;
  background: #fff;
}

/* =========================================================
   Right Next and Evolution Panels
   ========================================================= */

.scene-right {
  position: absolute;
  right: 5.3%;
  top: 13.2%;
  width: 19.2%;
  height: auto;
  z-index: 4;
}

.next-panel,
.evolution-panel {
  position: relative;
  color: #6c3b14;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 247, 218, 0.80));
  border: 2px solid rgba(255, 255, 255, 0.78);
  box-shadow:
    0 18px 34px rgba(130, 77, 13, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(12px);
}

.next-panel {
  min-height: 166px;
  max-height: 166px;
  padding: 11px 10px 9px;
  border-radius: 20px;
  text-align: center;
}

.panel-sparkle {
  position: absolute;
  top: 16px;
  right: 15px;
  color: #f1b927;
  font-size: 13px;
}

.next-panel h2,
.evolution-panel h2 {
  margin: 0 0 7px;
  color: #653312;
  font-size: 17px;
  line-height: 1;
  font-weight: 1000;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.75);
}

.next-main {
  display: grid;
  justify-items: center;
  gap: 4px;
}

.next-main canvas {
  width: 48px;
  height: 48px;
  display: block;
  background: transparent;
}

.next-main span {
  font-size: 10px;
  font-weight: 1000;
}

.next-divider {
  width: 76%;
  height: 1px;
  margin: 7px auto 6px;
  background: repeating-linear-gradient(
    90deg,
    rgba(209, 121, 31, 0.35) 0 7px,
    transparent 7px 13px
  );
}

.next-mini-row {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.next-mini-row div {
  display: grid;
  justify-items: center;
  gap: 3px;
}

.next-mini-row canvas {
  width: 25px;
  height: 25px;
  background: transparent;
}

.next-mini-row small {
  font-size: 8px;
  font-weight: 1000;
}

.restart-button {
  position: absolute;
  left: -18px;
  top: 44px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #7a3f0d;
  background:
    radial-gradient(circle at 30% 22%, #fff, transparent 30%),
    linear-gradient(180deg, #fff6d2, #f7c95b);
  box-shadow: 0 12px 24px rgba(113, 65, 10, 0.18);
  font-size: 18px;
  font-weight: 1000;
}

.evolution-panel {
  margin-top: 9px;
  padding: 12px 10px 10px;
  border-radius: 21px;
  text-align: center;
  overflow: visible;
}

.evolution-panel h2 {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  margin-bottom: 7px;
  font-size: 14px;
  line-height: 1.08;
}

.evolution-panel h2 span {
  font-size: 11px;
}

.evolution-circle {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: visible;
  background:
    radial-gradient(circle at center, rgba(255, 245, 191, 0.94) 0 34%, transparent 35%),
    radial-gradient(circle at center, transparent 0 47%, rgba(209, 255, 95, 0.78) 48% 70%, transparent 71%),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.32), transparent 74%);
}

.evolution-circle::before {
  content: "";
  position: absolute;
  inset: 42px;
  border-radius: 50%;
  background:
    conic-gradient(from 0deg, rgba(255,255,255,0), rgba(255,255,255,0.62), rgba(255,255,255,0));
  opacity: 0.7;
}

.fm-evo-item {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: 28px !important;
  height: 28px !important;
  margin: -14px 0 0 -14px !important;
  border-radius: 50% !important;
  display: grid !important;
  place-items: center !important;
  background: rgba(255, 255, 255, 0.72) !important;
  box-shadow:
    0 8px 14px rgba(99, 57, 8, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
  transform: var(--fm-evo-transform) !important;
  transform-origin: center center !important;
  opacity: 0.8 !important;
  z-index: 2 !important;
}

.fm-evo-item img {
  width: 22px !important;
  height: 22px !important;
  object-fit: contain !important;
  display: block !important;
  background: transparent !important;
  pointer-events: none !important;
}

.fm-evo-item.is-active {
  opacity: 1 !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow:
    0 0 0 4px rgba(209, 255, 95, 0.45),
    0 0 16px rgba(164, 240, 49, 0.64),
    inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
  z-index: 5 !important;
}

.fm-evo-item.is-pulse {
  animation: fmEvolutionPulse 0.34s ease;
}

@keyframes fmEvolutionPulse {
  0% {
    scale: 1;
  }

  45% {
    scale: 1.18;
  }

  100% {
    scale: 1;
  }
}

.share-current {
  display: none;
}

/* =========================================================
   Start Overlay
   ========================================================= */

.viewport-start-overlay {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #14171f;
}

.viewport-start-overlay.hidden {
  display: none !important;
}

.cover-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 24% 18%, rgba(255,255,255,0.24), transparent 24%),
    radial-gradient(circle at 78% 18%, rgba(255,255,255,0.16), transparent 24%),
    linear-gradient(180deg, #ffe17d 0%, #ffbd54 42%, #ff8b58 100%);
}

.cover-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.18), transparent 34%),
    radial-gradient(circle at center, transparent 0 28%, rgba(86,46,13,0.25) 100%);
}

.cover-fruit-row {
  position: absolute;
  left: 50%;
  top: 5%;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 28px;
  transform: translateX(-50%);
}

.cover-fruit-row span {
  font-size: clamp(58px, 8vw, 94px);
  filter: drop-shadow(0 10px 10px rgba(80,42,8,0.28));
}

.cover-title {
  position: absolute;
  left: 50%;
  top: 24%;
  width: 120%;
  transform: translateX(-50%) rotate(-2deg);
  text-align: center;
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  line-height: 0.86;
  letter-spacing: -0.055em;
  text-shadow:
    0 8px 0 rgba(95,49,9,0.24),
    0 18px 34px rgba(77,35,4,0.32);
}

.cover-title span,
.cover-title strong {
  display: block;
  font-weight: 1000;
}

.cover-title span {
  color: #76db36;
  font-size: clamp(96px, 10vw, 160px);
  -webkit-text-stroke: 5px #5b3512;
}

.cover-title strong {
  color: #ffd33f;
  font-size: clamp(90px, 9vw, 150px);
  -webkit-text-stroke: 5px #5b3512;
}

.cover-fruit-bottom {
  position: absolute;
  left: 50%;
  bottom: 5%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: end;
  gap: 20px;
  transform: translateX(-50%);
}

.cover-fruit-bottom span {
  font-size: clamp(62px, 8vw, 104px);
  filter: drop-shadow(0 12px 12px rgba(70,35,6,0.30));
}

.cover-mask {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(circle at center, rgba(0,0,0,0.14), rgba(0,0,0,0.56)),
    rgba(0,0,0,0.28);
}

.cover-play-button {
  position: relative;
  z-index: 3;
  min-width: 176px;
  height: 58px;
  padding: 0 26px;
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  background: linear-gradient(180deg, #25d969 0%, #12b956 100%);
  box-shadow:
    0 18px 38px rgba(0,0,0,0.30),
    inset 0 4px 10px rgba(255,255,255,0.22);
  font-size: 20px;
  font-weight: 1000;
}

/* =========================================================
   Bottom Game Toolbar
   ========================================================= */

.game-toolbar {
  flex: 0 0 56px;
  height: 56px;
  min-height: 56px;
  padding: 6px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: relative;
  z-index: 20;
  background:
    linear-gradient(180deg, rgba(9, 20, 38, 0.98), rgba(7, 14, 27, 0.98));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.game-info {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.game-icon {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #cfff72, #22c45f);
  font-size: 21px;
  box-shadow: 0 12px 24px rgba(34, 196, 95, 0.24);
}

.game-info h1 {
  margin: 0;
  font-size: 18px;
  line-height: 1;
  font-weight: 1000;
  letter-spacing: -0.04em;
}

.game-info p {
  margin: 4px 0 0;
  color: #b9c1d5;
  font-size: 12px;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toolbar-actions button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.055));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 24px rgba(0, 0, 0, 0.20);
  font-size: 17px;
  font-weight: 1000;
}

.toolbar-actions #toolbarLikeButton {
  background: linear-gradient(180deg, #ff6b77, #f3425e);
}

/* =========================================================
   Homepage Content Sections
   ========================================================= */

.content-section {
  width: min(100%, 980px);
  margin: 24px auto 0;
  padding: 30px;
  border-radius: 26px;
  color: #fff;
  background: rgba(9,20,38,0.92);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.content-section h2 {
  margin: 0 0 18px;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.content-section > p:not(.section-kicker) {
  color: var(--muted);
  line-height: 1.7;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.info-grid article,
.faq-list article {
  padding: 20px;
  border-radius: 20px;
  background: rgba(255,255,255,0.06);
}

.info-grid h3,
.faq-list h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.info-grid p,
.faq-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.evolution-table-wrap {
  overflow-x: auto;
  border-radius: 20px;
  background: rgba(255,255,255,0.06);
}

.evolution-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
}

.evolution-table th,
.evolution-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: left;
}

.evolution-table th {
  color: var(--green);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-footer {
  padding: 28px 20px 42px;
  text-align: center;
  color: var(--muted);
}

.site-footer nav {
  margin-bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.site-footer a {
  color: #fff;
  font-weight: 800;
}

/* =========================================================
   Desktop Responsive
   ========================================================= */

@media (min-width: 881px) and (max-width: 1180px) {
  .search-box {
    display: none;
  }

  .game-player {
    width: min(920px, calc(100vw - 150px));
  }

  .game-scene {
    width: min(
      860px,
      calc(100% - 56px),
      calc((100dvh - 190px) * 16 / 9)
    );
  }
}

@media (min-width: 881px) and (max-height: 720px) {
  .game-player {
    width: min(900px, calc(100vw - 170px));
    height: min(590px, calc(100dvh - 96px));
  }

  .game-scene {
    width: min(
      820px,
      calc(100% - 56px),
      calc((100dvh - 198px) * 16 / 9)
    );
  }

  .scene-title span,
  .scene-title strong {
    font-size: clamp(24px, 3vw, 38px);
  }

  .evolution-circle {
    width: 150px;
    height: 150px;
  }

  .fm-evo-item {
    width: 28px !important;
    height: 28px !important;
    margin: -14px 0 0 -14px !important;
  }

  .fm-evo-item img {
    width: 22px !important;
    height: 22px !important;
  }
}

/* =========================================================
   Mobile Default Layout
   ========================================================= */

.mobile-game-hud,
.mobile-menu-button,
.mobile-game-menu,
.mobile-share-popover {
  display: none;
}

@media (max-width: 880px) {
  .portal-shell {
    grid-template-columns: 1fr;
    grid-template-rows: 58px 1fr;
    grid-template-areas:
      "top"
      "main";
  }

  .portal-header {
    height: 58px;
    padding: 0 12px;
    border-radius: 0;
  }

  .brand {
    font-size: 18px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 13px;
  }

  .search-box,
  .icon-sidebar {
    display: none;
  }

  .top-nav {
    gap: 13px;
    overflow-x: auto;
    white-space: nowrap;
    font-size: 12px;
    scrollbar-width: none;
  }

  .top-nav::-webkit-scrollbar {
    display: none;
  }

  .portal-main {
    padding: 10px 0 28px;
  }

  .game-player {
    width: 100%;
    height: auto;
    max-height: none;
    border-radius: 0;
  }

  .game-viewport {
    height: auto;
    min-height: 0;
    padding: 10px 6px 12px;
    border-radius: 0;
  }

  .game-scene {
    width: min(100%, 430px);
  }

  .scene-title,
  .fruit-corner,
  .scene-decoration {
    display: none;
  }

  .scene-left {
    left: 2%;
    top: 3%;
    width: 22%;
  }

  .scene-center {
    left: 31%;
    top: 8%;
    width: 38%;
  }

  .scene-right {
    right: 2%;
    top: 8%;
    width: 23%;
  }

  .score-orb {
    width: 62px;
    height: 62px;
    border-radius: 18px;
  }

  .score-crown {
    display: none;
  }

  .score-orb span,
  .score-orb small {
    font-size: 6px;
  }

  .score-orb strong {
    font-size: 16px;
  }

  .score-orb b {
    font-size: 8px;
  }

  .score-panel {
    min-height: 0;
    max-height: none;
    padding: 10px 8px;
    border-radius: 18px;
  }

  .panel-title h2 {
    font-size: 13px;
  }

  .panel-title p {
    font-size: 7px;
  }

  .time-card {
    padding: 7px 4px;
  }

  .time-card span {
    font-size: 7px;
  }

  .time-card strong {
    font-size: 13px;
  }

  .top-runs-title {
    margin: 6px 0 4px;
    font-size: 7px;
  }

  .leaderboard-list {
    gap: 4px;
  }

  .leaderboard-item {
    min-height: 28px;
    padding: 4px;
    grid-template-columns: 20px 1fr auto;
    gap: 4px;
  }

  .leaderboard-rank {
    width: 20px;
    height: 20px;
    font-size: 9px;
  }

  .leaderboard-main strong,
  .leaderboard-main span {
    display: none;
  }

  .leaderboard-score {
    font-size: 8px;
  }

  .glass-top {
    height: 12px;
  }

  .canvas-frame {
    padding: 4px;
    border-radius: 16px;
  }

  #gameCanvas {
    border-radius: 12px;
  }

  .next-panel {
    min-height: 110px;
    max-height: none;
    padding: 10px 6px;
    border-radius: 18px;
  }

  .next-panel h2,
  .evolution-panel h2 {
    font-size: 10px;
  }

  .panel-sparkle {
    display: none;
  }

  .next-main canvas {
    width: 38px;
    height: 38px;
  }

  .next-main span {
    font-size: 8px;
  }

  .next-divider {
    margin: 5px auto;
  }

  .next-mini-row {
    gap: 6px;
  }

  .next-mini-row canvas {
    width: 24px;
    height: 24px;
  }

  .next-mini-row small {
    font-size: 7px;
  }

  .restart-button {
    left: -13px;
    top: 38px;
    width: 32px;
    height: 32px;
    font-size: 17px;
  }

  .evolution-panel {
    margin-top: 6px;
    padding: 8px 5px 7px;
    border-radius: 18px;
  }

  .evolution-circle {
    width: 82px;
    height: 82px;
  }

  .evolution-circle::before {
    inset: 25px;
  }

  .fm-evo-item {
    width: 20px !important;
    height: 20px !important;
    margin: -10px 0 0 -10px !important;
  }

  .fm-evo-item img {
    width: 16px !important;
    height: 16px !important;
  }

  .game-toolbar {
    min-height: 76px;
    height: auto;
    flex-basis: auto;
    padding: 12px 16px;
  }

  .game-icon {
    width: 50px;
    height: 50px;
  }

  .game-info h1 {
    font-size: 18px;
  }

  .game-info p {
    font-size: 12px;
  }

  .toolbar-actions button {
    width: 48px;
    height: 48px;
  }

  .content-section {
    margin: 14px 12px 0;
    padding: 20px;
  }

  .content-section h2 {
    font-size: 25px;
  }

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

/* =========================================================
   Mobile Immersive Mode
   Canvas keeps the 420 × 560 logical aspect ratio.
   ========================================================= */

@media (max-width: 880px) {
  body.mobile-playing {
    overflow: hidden !important;
    background: #fff1b8 !important;
    overscroll-behavior: none !important;
    touch-action: none !important;
  }

  body.mobile-playing .portal-header,
  body.mobile-playing .icon-sidebar,
  body.mobile-playing .game-toolbar,
  body.mobile-playing .content-section,
  body.mobile-playing .site-footer,
  body.mobile-playing .scene-left,
  body.mobile-playing .scene-right,
  body.mobile-playing .scene-title,
  body.mobile-playing .fruit-corner,
  body.mobile-playing .scene-decoration {
    display: none !important;
  }

  body.mobile-playing .portal-shell,
  body.mobile-playing .portal-main,
  body.mobile-playing .game-player,
  body.mobile-playing .game-viewport {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 0 !important;
    z-index: 9999 !important;
    background:
      radial-gradient(circle at 50% 8%, rgba(255,255,255,0.18), transparent 25%),
      linear-gradient(
        180deg,
        #cf914c 0%,
        #c38331 24%,
        #fff0b4 24%,
        #fff4c9 100%
      ) !important;
  }

  body.mobile-playing .game-scene {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    aspect-ratio: auto !important;
    transform: none !important;
  }

  body.mobile-playing .mobile-game-hud {
    position: fixed !important;
    left: 8px !important;
    right: 58px !important;
    top: max(74px, calc(env(safe-area-inset-top) + 62px)) !important;
    z-index: 10080 !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 5px !important;
    pointer-events: none !important;
  }

  body.mobile-playing .mobile-hud-pill {
    min-height: 42px !important;
    padding: 5px 3px !important;
    border-radius: 14px !important;
    text-align: center !important;
    color: #5d3a13 !important;
    background:
      linear-gradient(180deg, rgba(255,249,218,0.93), rgba(255,213,112,0.78)) !important;
    border: 1.5px solid rgba(255,255,255,0.72) !important;
    box-shadow:
      0 7px 16px rgba(108,67,14,0.16),
      inset 0 1px 0 rgba(255,255,255,0.84) !important;
    backdrop-filter: blur(10px) !important;
  }

  body.mobile-playing .mobile-hud-pill span {
    display: block !important;
    margin-bottom: 2px !important;
    font-size: 7px !important;
    line-height: 1 !important;
    font-weight: 1000 !important;
    opacity: 0.74 !important;
    text-transform: uppercase !important;
  }

  body.mobile-playing .mobile-hud-pill strong {
    display: block !important;
    font-size: 14px !important;
    line-height: 1.05 !important;
    font-weight: 1000 !important;
  }

  body.mobile-playing .mobile-next-pill canvas {
    width: 24px !important;
    height: 24px !important;
  }

  body.mobile-playing .mobile-menu-button {
    position: fixed !important;
    right: 8px !important;
    top: max(74px, calc(env(safe-area-inset-top) + 62px)) !important;
    z-index: 10090 !important;
    display: grid !important;
    place-items: center !important;
    width: 44px !important;
    height: 42px !important;
    border: 0 !important;
    border-radius: 14px !important;
    color: #6a4115 !important;
    background:
      radial-gradient(circle at 30% 22%, rgba(255,255,255,0.88), transparent 25%),
      linear-gradient(180deg, rgba(255,249,218,0.94), rgba(255,207,89,0.84)) !important;
    border: 1.5px solid rgba(255,255,255,0.72) !important;
    box-shadow: 0 7px 16px rgba(108,67,14,0.14) !important;
  }

  body.mobile-playing .scene-center {
    position: absolute !important;
    left: 50% !important;
    top: max(128px, calc(env(safe-area-inset-top) + 116px)) !important;
    width: min(
      calc(100vw - 10px),
      calc((100dvh - 138px) * 420 / 560),
      420px
    ) !important;
    transform: translateX(-50%) !important;
    display: grid !important;
    grid-template-rows: auto auto !important;
    justify-items: center !important;
    z-index: 10000 !important;
  }

  body.mobile-playing .glass-top {
    display: block !important;
    width: 43% !important;
    height: 12px !important;
  }

  body.mobile-playing .canvas-frame {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 420 / 560 !important;
    padding: 4px !important;
    border-radius: 22px !important;
    overflow: hidden !important;
  }

  body.mobile-playing #gameCanvas {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 420 / 560 !important;
    display: block !important;
    border-radius: 18px !important;
    touch-action: none !important;
  }

  body.mobile-playing .mobile-game-menu {
    position: fixed !important;
    inset: 0 !important;
    z-index: 10080 !important;
    display: grid !important;
    place-items: center !important;
    padding: 20px !important;
    background: rgba(66,38,7,0.32) !important;
    backdrop-filter: blur(10px) !important;
  }

  body.mobile-playing .mobile-game-menu.hidden {
    display: none !important;
  }

  body.mobile-playing .mobile-menu-card {
    width: min(86vw, 340px) !important;
    padding: 22px 20px 20px !important;
    border-radius: 28px !important;
    color: #6a4115 !important;
    background:
      linear-gradient(180deg, rgba(255,249,220,0.96), rgba(255,221,139,0.92)) !important;
    border: 2px solid rgba(255,255,255,0.72) !important;
    text-align: center !important;
    box-shadow: 0 26px 70px rgba(61, 33, 5, 0.28) !important;
  }

  body.mobile-playing .mobile-menu-card h2 {
    margin: 0 0 14px !important;
  }

  body.mobile-playing .mobile-menu-actions {
    display: grid !important;
    gap: 10px !important;
  }

  body.mobile-playing .mobile-menu-actions button {
    height: 48px !important;
    border: 0 !important;
    border-radius: 999px !important;
    font-weight: 1000 !important;
  }

  body.mobile-playing .mobile-menu-primary {
    color: #fff !important;
    background: linear-gradient(180deg, #25d969, #12b956) !important;
  }

  body.mobile-playing .mobile-menu-danger {
    color: #fff !important;
    background: linear-gradient(180deg, #ff8b64, #ef6042) !important;
  }

  body.mobile-playing .mobile-share-popover {
    position: fixed !important;
    right: 8px !important;
    top: max(124px, calc(env(safe-area-inset-top) + 112px)) !important;
    z-index: 10090 !important;
    display: block !important;
    width: min(312px, calc(100vw - 16px)) !important;
  }

  body.mobile-playing .mobile-share-popover.hidden {
    display: none !important;
  }

  body.mobile-playing .mobile-share-card {
    padding: 14px !important;
    border-radius: 22px !important;
    color: #6a4115 !important;
    background:
      linear-gradient(180deg, rgba(255,249,220,0.96), rgba(255,221,139,0.92)) !important;
    border: 2px solid rgba(255,255,255,0.72) !important;
    box-shadow: 0 22px 50px rgba(61, 33, 5, 0.22) !important;
  }

  body.mobile-playing .mobile-share-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
  }

  body.mobile-playing .mobile-share-grid button {
    min-height: 58px !important;
    border: 0 !important;
    border-radius: 16px !important;
    font-size: 11px !important;
    font-weight: 1000 !important;
  }

  body.mobile-playing .viewport-start-overlay {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    z-index: 10100 !important;
  }
}

@media (max-width: 390px) {
  body.mobile-playing .mobile-game-hud {
    left: 6px !important;
    right: 54px !important;
    top: max(72px, calc(env(safe-area-inset-top) + 60px)) !important;
    gap: 4px !important;
  }

  body.mobile-playing .mobile-menu-button {
    right: 6px !important;
    top: max(72px, calc(env(safe-area-inset-top) + 60px)) !important;
    width: 42px !important;
    height: 39px !important;
  }

  body.mobile-playing .mobile-hud-pill {
    min-height: 39px !important;
    padding: 4px 3px !important;
  }

  body.mobile-playing .mobile-hud-pill span {
    font-size: 6px !important;
  }

  body.mobile-playing .mobile-hud-pill strong {
    font-size: 13px !important;
  }

  body.mobile-playing .scene-center {
    top: max(124px, calc(env(safe-area-inset-top) + 112px)) !important;
    width: min(
      calc(100vw - 8px),
      calc((100dvh - 134px) * 420 / 560),
      420px
    ) !important;
  }
}

/* =========================================================
   Homepage Guide Entry Buttons
   This single section controls all three guide links inside #levels.
   ========================================================= */

#levels a[href="/fruit-evolution-guide.html"],
#levels a[href="/fruit-merge-scoring-guide.html"],
#levels a[href="/how-to-get-dragon-fruit.html"] {
  min-height: 50px !important;
  padding: 0 22px !important;
  margin: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 14px !important;
  color: #111827 !important;
  font-size: 14px !important;
  line-height: 1.25 !important;
  font-weight: 900 !important;
  text-align: center !important;
  text-decoration: none !important;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.46) !important;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease !important;
  -webkit-tap-highlight-color: transparent;
}

#levels a[href="/fruit-evolution-guide.html"] {
  background:
    linear-gradient(180deg, #b5ff72 0%, #85ef48 100%) !important;
}

#levels a[href="/fruit-merge-scoring-guide.html"] {
  background:
    linear-gradient(180deg, #ffe987 0%, #ffd052 100%) !important;
}

#levels a[href="/how-to-get-dragon-fruit.html"] {
  background:
    linear-gradient(180deg, #ffb6cf 0%, #ff7fa7 100%) !important;
}

#levels a[href="/fruit-evolution-guide.html"]:hover,
#levels a[href="/fruit-merge-scoring-guide.html"]:hover,
#levels a[href="/how-to-get-dragon-fruit.html"]:hover {
  transform: translateY(-3px) !important;
  filter: brightness(1.04) !important;
  box-shadow:
    0 17px 34px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.58) !important;
}

#levels a[href="/fruit-evolution-guide.html"]:active,
#levels a[href="/fruit-merge-scoring-guide.html"]:active,
#levels a[href="/how-to-get-dragon-fruit.html"]:active {
  transform: translateY(-1px) scale(0.99) !important;
}

#levels a[href="/fruit-evolution-guide.html"]:focus-visible,
#levels a[href="/fruit-merge-scoring-guide.html"]:focus-visible,
#levels a[href="/how-to-get-dragon-fruit.html"]:focus-visible {
  outline: 3px solid #ffffff !important;
  outline-offset: 4px !important;
}

.guide-link-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.guide-link-row > a {
  margin: 0 !important;
}

@media (max-width: 600px) {
  #levels a[href="/fruit-evolution-guide.html"],
  #levels a[href="/fruit-merge-scoring-guide.html"],
  #levels a[href="/how-to-get-dragon-fruit.html"] {
    width: 100% !important;
    min-height: 52px !important;
    margin: 6px 0 !important;
    padding: 0 16px !important;
    font-size: 13px !important;
  }

  .guide-link-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 22px;
  }

  .guide-link-row > a {
    margin: 0 !important;
  }
}
