body.duck-site.duck-home-view { background: #fff9f0; }
body.duck-site.duck-home-view > header.duck-header {
  height: 72px;
  background: #fffdf8;
  border-bottom-color: #eee3d0;
}
body.duck-site.duck-home-view .duck-header > nav { margin-inline: auto; }
body.duck-site.duck-home-view .duck-header > nav a.active {
  background: #ffd354;
  color: #293241;
  line-height: 1.25;
  padding: 10px 13px;
  border-radius: 11px;
}
body.duck-site.duck-home-view .duck-header > nav a.active::after,
body.duck-site.duck-home-view .duck-header-search { display: none; }

.duck-home { max-width: 1440px; padding: 18px clamp(16px, 3vw, 42px) 48px; }
.duck-home .duck-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 1fr);
  align-items: center;
  min-height: 220px;
  gap: 18px;
  padding: 16px clamp(24px, 4vw, 58px);
  border: 1px solid #e5e4cf;
  border-radius: 22px;
  background: radial-gradient(ellipse at 83% 125%, #beebd8 0%, transparent 63%),
    linear-gradient(110deg, #fff0bf 8%, #fff8e8 45%, #d8ecff 100%);
}
.duck-home .duck-eyebrow { color: #645435; font-weight: 750; margin-bottom: 8px; }
body.duck-site .duck-home .duck-hero h1 {
  margin: 0 0 8px;
  color: #293241;
  font-size: clamp(28px, 4.1vw, 56px);
  text-wrap: balance;
}
.duck-home .duck-hero-copy > p:not(.duck-eyebrow) { margin: 0 0 14px; color: #534733; }
.duck-home .duck-hero-action {
  display: inline-flex;
  gap: 12px;
  background: #ffd354;
  color: #392a13;
  font-weight: 750;
  border-radius: 11px;
  padding: 9px 15px;
  text-decoration: none;
}
.duck-home .duck-hero-action:hover { background: #ffca37; }
.duck-home .duck-hero-art { position: relative; display: grid; place-items: center; height: 184px; }
.duck-home .duck-hero-orbit { position: absolute; inset: 12px 8%; border-radius: 50%; background: #fff7; }
.duck-home .duck-hero-art .duck-character { position: relative; width: 160px; height: 160px; z-index: 1; }
.duck-home .duck-hero-art img { position: absolute; width: 26%; border-radius: 14px; box-shadow: 0 5px 12px #44556820; }
.duck-home .duck-hero-tile { left: 2%; top: 12px; transform: rotate(-10deg); }
.duck-home .duck-hero-wheel { right: 1%; top: 7px; transform: rotate(10deg); }
.duck-home .duck-hero-board { right: 9%; bottom: 6px; transform: rotate(-8deg); }
.duck-home .duck-home-search {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  height: 46px;
  border: 1px solid #e1e3e7;
  border-radius: 12px;
  background: #fff;
  padding: 0 14px;
}
.duck-home .duck-home-search:focus-within { outline: 2px solid #39738d; }
.duck-home .duck-home-search input { min-width: 0; width: 100%; height: 40px; padding: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important; outline: none; }
.duck-home .duck-library { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 18px; scroll-margin-top: 86px; }
.duck-home .duck-discovery { position: sticky; top: 86px; align-self: start; display: grid; justify-content: stretch; gap: 12px; background: #fffdf8; border: 1px solid #efe5d3; border-radius: 16px; padding: 12px; }
.duck-home .duck-filters { display: grid; }
.duck-home .duck-filters button { min-height: 38px; font-size: 13px; text-align: start; border-radius: 10px; }
.duck-home .duck-filters button[aria-pressed=true] { background: #ffedb4; color: #293241; border-color: #f0ce69; }
body.duck-site .duck-home .duck-card-grid.tool-grid { grid-template-columns: repeat(3,minmax(0,1fr)) !important; grid-auto-rows: auto; }
.duck-site .duck-home .duck-game-card.tool-card { border-radius: 16px; border-color: #ede4d3 !important; box-shadow: 0 3px 10px #49371a0a !important; }
.duck-site .duck-home .duck-game-card.tool-card:hover { box-shadow: 0 8px 20px #49371a19 !important; }
.duck-home .duck-game-card[hidden] { display: none !important; }
.duck-home .duck-card-link {
  height: 100%;
  min-height: 0;
  padding: 11px 11px 12px;
  align-items: stretch;
  text-align: start;
}
.duck-site .duck-home .duck-card-link h2 {
  font-size: clamp(15px, 1.5vw, 20px) !important;
  line-height: 1.3;
  margin: 0 3px 2px;
}
.duck-home .duck-card-subtitle {
  font-size: 11px;
  color: #5f6b79;
  margin-inline: 3px;
}
.duck-home .duck-card-link > p {
  font-size: 14px;
  line-height: 1.45;
  color: #4f5b6a;
  min-height: 0;
  max-width: none;
  margin: 5px 3px 8px;
}
.duck-home .duck-tags {
  justify-content: flex-start;
  gap: 5px;
  padding-inline: 3px;
}
.duck-home .duck-tags > span {
  font-size: 11px;
  line-height: 1.25;
  padding: 3px 7px;
  color: #3e654c;
}
.duck-home .duck-tags > .tag-1 { color: #795533; }
.duck-home .duck-card-art {
  position: relative;
  display: grid;
  place-items: center;
  height: auto;
  aspect-ratio: 4 / 3;
  margin: 0 0 8px;
  overflow: hidden;
  border-radius: 12px;
  background: radial-gradient(ellipse at 50% 80%, #fff9, transparent 75%), #e0f3db;
}
.duck-home .duck-card-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.duck-home .duck-custom { z-index: 2; background: #fffdf8; }
.duck-home .duck-prepare { margin-top: 24px; }
.duck-home :is(button, a):focus-visible { outline: 2px solid #39738d; outline-offset: 2px; }
@media (max-width: 900px) {
  .duck-home .duck-library { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .duck-home .duck-discovery { position: static; display: flex; flex-wrap: wrap; padding: 8px; }
  .duck-home .duck-filters { display: flex; flex-wrap: wrap; }
}
@media (max-width: 620px) {
  body.duck-site.duck-home-view > header.duck-header { height: auto; min-height: 58px; }
  .duck-home .duck-hero { grid-template-columns: minmax(0,1fr) 84px; gap: 8px; padding: 15px; min-height: 170px; }
  .duck-home .duck-hero-art { height: 100px; }
  .duck-home .duck-hero-art .duck-character { width: 84px; height: 84px; }
  .duck-home .duck-hero-art img { display: none; }
  body.duck-site .duck-home .duck-card-grid.tool-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
}
