@font-face { font-family: "Honey Display"; src: url("/assets/honey-display.8c4bcc2c77.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Baloo"; src: url("/assets/baloo.35941e5bfd.woff2") format("woff2"); font-display: swap; }

:root {
  --honey: #f6b21f;
  --honey-deep: #e08a12;
  --gold: #ffd23f;
  --wood: #8a4a1e;
  --wood-dark: #4a230c;
  --parch: #fff1d2;
  --text: #4a230c;
  --green: #3fae1f;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; color: var(--text); line-height: 1.5;
  font-family: "Baloo", "Trebuchet MS", system-ui, sans-serif;
  background: #f7e3b5 radial-gradient(circle at 20% 0, #fff4d8 0, transparent 60%);
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--wood); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 18px; }

/* Game UI kit: 9-slice frames and buttons */
.frame {
  border: 26px solid transparent;
  border-image: url("/assets/frame.06263d51ef.png") 75 fill / 26px stretch;
  filter: drop-shadow(0 6px 8px rgba(74, 35, 12, .28));
}
.btn-green {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff;
  font-family: "Honey Display", "Baloo", sans-serif; letter-spacing: .02em;
  border: 22px solid transparent; border-image: url("/assets/btn-green.057d4fae33.png") 44 60 fill / 22px 30px stretch;
  text-shadow: 0 2px 0 #24660f, 0 0 2px #24660f;
  transition: transform .15s ease, filter .15s ease;
}
.btn-green:hover { transform: translateY(-2px) scale(1.02); filter: brightness(1.06); }
.btn-green.small { font-size: 1.05rem; padding: 0 6px; border-width: 14px 20px; border-image-width: 14px 20px; }
.btn-green.big { font-size: clamp(1.25rem, 3vw, 1.7rem); padding: 4px 18px 6px 8px; line-height: 1.05; border-width: 26px 36px; border-image-width: 26px 36px; }
.btn-green.big span { white-space: nowrap; }
.btn-green.big small { display: block; font-family: "Baloo", sans-serif; font-size: .55em; letter-spacing: 0; opacity: .95; }
.gp { width: 1.6em; height: 1.6em; flex: 0 0 auto; filter: drop-shadow(0 2px 0 #24660f); }

.headline {
  margin: 0; font-family: "Honey Display", "Baloo", sans-serif; font-weight: 400;
  font-size: clamp(2.3rem, 6.4vw, 4.6rem); line-height: .98; color: #fff8e6;
  -webkit-text-stroke: .12em var(--wood-dark); paint-order: stroke fill;
  text-shadow: 0 .09em 0 var(--wood-dark), 0 .14em .18em rgba(74, 35, 12, .45);
}
.headline span { display: block; color: var(--gold); }
.headline.small { font-size: clamp(1.9rem, 4.6vw, 3.1rem); }
.lead { font-size: clamp(1.02rem, 1.8vw, 1.22rem); color: #fff; text-shadow: 0 2px 2px rgba(74, 35, 12, .7); max-width: 40ch; }
.lead.dark { color: var(--text); text-shadow: none; }
.lead.center { margin: 0 auto 26px; color: var(--text); text-shadow: none; text-align: center; }

/* Top bar: wooden plank with honey pills */
.bar { position: sticky; top: 0; z-index: 20; padding: 8px 12px 0; }
.bar-in {
  max-width: 1240px; margin: 0 auto; display: flex; align-items: center; gap: 14px; padding: 6px 14px 6px 8px;
  background: linear-gradient(180deg, #a35a27 0, #8a4a1e 55%, #74391a 100%);
  border: 4px solid var(--wood-dark); border-radius: 18px;
  box-shadow: inset 0 3px 0 rgba(255, 210, 150, .35), inset 0 -4px 0 rgba(0, 0, 0, .18), 0 6px 14px rgba(74, 35, 12, .35);
}
.logo { flex: 0 0 auto; margin: -22px 0 -30px; width: 150px; filter: drop-shadow(0 4px 4px rgba(74, 35, 12, .45)); }
.links { display: flex; gap: 8px; flex: 1; justify-content: center; }
.pill {
  font-family: "Honey Display", "Baloo", sans-serif; color: #fff; text-decoration: none; font-size: 1.05rem;
  padding: 2px 10px; border: 14px solid transparent; border-image: url("/assets/btn-honey.5fdc9da9a4.png") 60 80 fill / 14px 22px stretch;
  text-shadow: 0 2px 0 #9a5a0a, 0 0 2px #9a5a0a;
}
.pill:hover { filter: brightness(1.08); }
.bar-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.flag { width: 24px; height: 16px; flex: 0 0 auto; border-radius: 3px; box-shadow: 0 0 0 1.5px rgba(74, 35, 12, .55); }

/* Language menu: flag + code in the bar, dropdown list of all languages */
.lang-menu { position: relative; }
.lang-menu summary {
  display: flex; align-items: center; gap: 7px; cursor: pointer; list-style: none; user-select: none;
  color: #ffe6b8; font-weight: 800; padding: 6px 10px; border-radius: 12px; background: rgba(0, 0, 0, .2); border: 2px solid rgba(255, 220, 160, .35);
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: ""; border: 5px solid transparent; border-top-color: currentColor; margin: 5px 0 0 1px; }
.lang-menu[open] summary::after { border-top-color: transparent; border-bottom-color: currentColor; margin: 0 0 5px 1px; }
.lang-menu summary:hover, .lang-menu[open] summary { background: rgba(0, 0, 0, .3); }
.lang-list {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 30; margin: 0; padding: 6px; list-style: none; white-space: nowrap;
  background: var(--parch); border: 4px solid var(--wood-dark); border-radius: 14px; box-shadow: 0 10px 22px rgba(74, 35, 12, .4);
}
.lang-list a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 9px; color: var(--text); font-weight: 800; text-decoration: none; }
.lang-list a:hover { background: #f7dfa6; }
.lang-list a[aria-current] { background: var(--honey); color: #fff; text-shadow: 0 1px 0 #9a5a0a; }

/* Hero */
.hero {
  position: relative; margin-top: -86px; padding: 130px 0 70px;
  background: url("/assets/hero.8d40bf4400.webp") center 40% / cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(40, 70, 10, .38) 0, rgba(40, 70, 10, 0) 55%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 90px; background: linear-gradient(180deg, transparent, #f7e3b5); }
.hero-in { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 0 18px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 24px; }
.hero-text .lead { margin: 18px 0 26px; }
.hero-art { position: relative; min-height: 520px; }
.phone {
  position: absolute; right: 6%; bottom: 0; width: 250px; aspect-ratio: 9 / 18.5; padding: 12px;
  background: linear-gradient(145deg, #2c2c34, #101015); border-radius: 38px;
  box-shadow: 0 0 0 3px #4a4a55, 0 24px 40px rgba(0, 0, 0, .45); transform: rotate(6deg);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 28px; }
.hero-bee { position: absolute; left: -4%; top: -6%; width: 64%; z-index: 2; filter: drop-shadow(0 18px 18px rgba(74, 35, 12, .35)); animation: float 4.5s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-16px) rotate(2deg); } }

/* Stats strip */
.stats { position: relative; z-index: 2; margin-top: -40px; }
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat > div { min-width: 0; }
.stat { display: flex; align-items: center; gap: 12px; padding: 2px 6px; }
.stat .ico { width: 64px; height: 64px; object-fit: contain; flex: 0 0 auto; }
.stat b { display: block; font-family: "Honey Display", "Baloo", sans-serif; font-weight: 400; font-size: 1.9rem; line-height: 1; color: var(--wood); }
.stat span { font-weight: 800; text-transform: uppercase; letter-spacing: .03em; font-size: .9rem; }

/* Sections */
.section { padding: 64px 0 10px; }
.plank-title { display: flex; justify-content: center; margin: 0 0 30px; padding: 0 12px; }
.plank-title span {
  font-family: "Honey Display", "Baloo", sans-serif; font-weight: 400; font-size: clamp(1.5rem, 3.6vw, 2.3rem); color: #fff4d6;
  padding: 4px 34px 10px; border: 30px solid transparent; border-image: url("/assets/plank.e0b908946f.png") 50 90 fill / 30px 54px stretch;
  text-shadow: 0 3px 0 var(--wood-dark), 0 0 3px var(--wood-dark); text-align: center;
}
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { display: flex; gap: 14px; align-items: center; min-height: 150px; }
.card .ico { width: 96px; height: 96px; object-fit: contain; flex: 0 0 auto; }
.card h3 { margin: 0 0 4px; font-family: "Honey Display", "Baloo", sans-serif; font-weight: 400; font-size: 1.35rem; line-height: 1.1; color: var(--wood); }
.card p { margin: 0; font-size: .98rem; }
.combo { position: relative; flex: 0 0 auto; }
.combo span { position: absolute; inset: 0; display: grid; place-items: center; padding-bottom: 8%; font-family: "Honey Display", "Baloo", sans-serif; font-size: 2.1rem; color: #fff; -webkit-text-stroke: 6px var(--wood-dark); paint-order: stroke fill; transform: rotate(-8deg); }

.world { background: linear-gradient(180deg, transparent, rgba(120, 190, 70, .22) 30%, rgba(120, 190, 70, .22) 70%, transparent); padding-bottom: 50px; }
.world-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 34px; align-items: center; }
.world .lead.dark { margin: 14px 0 22px; max-width: none; }
.biomes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.biome { margin: 0; text-align: center; }
.biome img { aspect-ratio: 1; object-fit: cover; border-radius: 16px; border: 4px solid var(--wood); box-shadow: 0 4px 0 var(--wood-dark); }
.biome figcaption { margin-top: 6px; font-weight: 800; font-size: .92rem; line-height: 1.1; }
.biome b { display: block; font-family: "Honey Display", "Baloo", sans-serif; font-weight: 400; color: var(--honey-deep); font-size: 1.3rem; }
.map { max-width: 430px; justify-self: center; transform: rotate(1.5deg); }
.map img { border-radius: 10px; }

.pu-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.pu { text-align: center; }
.pu .ico { width: 84px; height: 84px; object-fit: contain; margin: 0 auto 6px; }
.pu h3 { margin: 0 0 4px; font-family: "Honey Display", "Baloo", sans-serif; font-weight: 400; color: var(--wood); font-size: 1.2rem; }
.pu p { margin: 0; font-size: .92rem; line-height: 1.35; }

.skins { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.skin {
  aspect-ratio: 1 / 1.1; display: grid; place-items: center; padding: 10%;
  background: radial-gradient(circle at 50% 40%, #fff6cf, var(--gold) 70%);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.skin img { width: 100%; height: 100%; object-fit: contain; transition: transform .2s ease; }
.skin:hover img { transform: scale(1.08) rotate(-3deg); }

.strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.strip img { border-radius: 20px; border: 5px solid var(--wood); box-shadow: 0 6px 0 var(--wood-dark); }

.faq { max-width: 860px; display: grid; gap: 12px; }
.qa summary { cursor: pointer; list-style: none; font-family: "Honey Display", "Baloo", sans-serif; font-size: 1.2rem; color: var(--wood); display: flex; justify-content: space-between; gap: 12px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--honey-deep); }
.qa[open] summary::after { content: "–"; }
.qa p { margin: 8px 0 0; }

.final { position: relative; text-align: center; padding: 80px 18px 40px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.final-bee { width: min(300px, 60vw); animation: float 4.5s ease-in-out infinite; }
.final .lead { color: var(--text); text-shadow: none; text-align: center; }

/* Sub pages */
.doc-wrap { padding: 40px 14px 20px; }
.doc { max-width: 860px; margin: 0 auto; }
.doc h1 { margin: 0 0 6px; font-family: "Honey Display", "Baloo", sans-serif; font-weight: 400; color: var(--wood); font-size: clamp(1.7rem, 5vw, 2.4rem); line-height: 1.1; }
.doc h2 { margin: 22px 0 6px; font-family: "Honey Display", "Baloo", sans-serif; font-weight: 400; color: var(--wood); font-size: 1.3rem; }
.doc .meta { margin-top: 0; opacity: .75; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin: 4px 0; }

/* Footer */
.foot { position: relative; margin-top: 30px; }
.foot-meadow { width: 100%; height: clamp(90px, 12vw, 170px); object-fit: cover; object-position: center bottom; margin-bottom: -2px; pointer-events: none; }
.foot-in { background: linear-gradient(180deg, #8a4a1e, #5e2d12); border-top: 4px solid var(--wood-dark); padding: 22px 16px 30px; text-align: center; color: #ffe6b8; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; margin-bottom: 8px; }
.foot a { color: #fff1d2; font-weight: 800; }
.foot p { margin: 0; opacity: .8; font-size: .9rem; }
.foot .foot-langs { gap: 8px 18px; margin: 4px 0 12px; }
.foot-langs a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .92rem; text-decoration: none; }
.foot-langs a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 1050px) {
  .links { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .pu-row { grid-template-columns: repeat(3, 1fr); }
  .skins { grid-template-columns: repeat(4, 1fr); }
  .strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; }
  .strip img { width: 220px; flex: 0 0 auto; scroll-snap-align: center; }
}
@media (max-width: 820px) {
  .hero { padding: 120px 0 40px; }
  .hero-in { grid-template-columns: 1fr; text-align: center; }
  .hero-text { display: flex; flex-direction: column; align-items: center; }
  .hero-text .lead { margin-left: auto; margin-right: auto; }
  .hero-art { min-height: 380px; margin-top: 10px; }
  .phone { width: 180px; right: 12%; }
  .hero-bee { width: 58%; left: 4%; }
  .hero::before { background: rgba(40, 70, 10, .28); }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .world-in { grid-template-columns: 1fr; }
  .biomes { gap: 6px; }
  .biome figcaption { font-size: .78rem; }
}
@media (max-width: 560px) {
  .btn-green.big { font-size: 1.15rem; border-width: 20px 26px; border-image-width: 20px 26px; }
  .logo { width: 110px; margin: -12px 0 -20px; }
  .grid { grid-template-columns: 1fr; }
  .pu-row { grid-template-columns: repeat(2, 1fr); }
  .stat { border-width: 18px; border-image-width: 18px; gap: 8px; padding: 0; }
  .stat .ico { width: 40px; height: 40px; }
  .stat b { font-size: 1.15rem; overflow-wrap: anywhere; }
  .stat span { font-size: .72rem; letter-spacing: 0; overflow-wrap: anywhere; }
  .card, .pu, .qa { border-width: 20px; border-image-width: 20px; }
  .podium { gap: 6px; }
  .medal { width: 48px; height: 48px; }
  .pname { font-size: .95rem; }
  .card .ico { width: 76px; height: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bee, .final-bee { animation: none; }
}

/* Ranking */
.ranking { max-width: 760px; text-align: center; }
.tabs { display: inline-flex; gap: 8px; margin-bottom: 18px; }
.tab {
  font-family: "Honey Display", "Baloo", sans-serif; font-size: 1.1rem; color: #fff; cursor: pointer; background: none;
  padding: 2px 12px; border: 14px solid transparent; border-image: url("/assets/btn-wood.9a5c2a9caa.png") 40 70 fill / 14px 24px stretch;
  text-shadow: 0 2px 0 var(--wood-dark);
}
.tab.active { border-image-source: url("/assets/btn-honey.5fdc9da9a4.png"); border-image-slice: 60 80 fill; text-shadow: 0 2px 0 #9a5a0a; }
.podium { display: flex; justify-content: center; align-items: flex-end; gap: 12px; margin-bottom: 18px; }
.spot { display: flex; flex-direction: column; align-items: center; width: 31%; max-width: 210px; }
.medal { width: 64px; height: 64px; object-fit: contain; margin-bottom: 4px; }
.pname { font-family: "Honey Display", "Baloo", sans-serif; font-weight: 400; color: var(--wood); font-size: 1.1rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pscore { font-weight: 800; color: var(--honey-deep); }
.block {
  width: 100%; margin-top: 6px; display: grid; place-items: center; color: #fff; font-family: "Honey Display", "Baloo", sans-serif; font-size: 2rem;
  background: linear-gradient(180deg, #a35a27, #74391a); border: 4px solid var(--wood-dark); border-radius: 14px 14px 4px 4px; text-shadow: 0 3px 0 var(--wood-dark);
}
.spot-1 .block { height: 120px; background: linear-gradient(180deg, #ffd23f, #e08a12); }
.spot-2 .block { height: 88px; }
.spot-3 .block { height: 68px; }
.rows { list-style: none; margin: 0; padding: 0; text-align: left; }
.rows li { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; padding: 6px 4px; border-bottom: 2px dashed rgba(138, 74, 30, .25); font-weight: 800; }
.rows li:last-child { border-bottom: 0; }
.rk { color: var(--honey-deep); font-family: "Honey Display", "Baloo", sans-serif; text-align: center; }
.nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc { color: var(--wood); }
.rank-note { margin: 12px 0 0; font-weight: 800; opacity: .75; }
.ranking.empty .rank-note { opacity: 1; font-size: 1.1rem; }
