.home-feature {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template: 'title stage' auto 'actions stage' auto / minmax(0, .85fr) minmax(0, 1.42fr);
  align-content: center;
  gap: 16px clamp(6px, 2vw, 28px);
  padding: clamp(26px, 4vw, 50px);
  border: 1px solid #204a41;
  border-radius: 28px;
  color: #fbffeb;
  background:
    radial-gradient(ellipse at 74% 74%, #32946683, transparent 61%),
    linear-gradient(140deg, #102f32, #103939 47%, #12644c);
  box-shadow: inset 0 1px #ffffff40, 0 13px 28px #163c302b;
  overflow: hidden;
}

.home-feature::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: '';
  background: repeating-linear-gradient(112deg, #e4ffc00a 0 42px, transparent 42px 84px);
  mask-image: linear-gradient(90deg, transparent, #000 70%);
}

.home-feature-copy { grid-area: title; align-self: end; min-width: 0; }
.home-feature-label {
  width: fit-content;
  margin: 0 0 13px;
  padding: 6px 11px;
  color: #dffcb3;
  background: #a6ea9721;
  border: 1px solid #b4f5a649;
  border-radius: 9px;
  font-weight: 800;
  font-size: .88rem;
}
.home-feature h1 {
  margin: 0;
  font-size: clamp(2.75rem, 5.85vw, 5.4rem);
  line-height: .99;
  letter-spacing: -.085em;
  font-weight: 950;
  word-break: keep-all;
  text-shadow: 0 4px #071f2a70;
}
.home-feature h1 em { display: block; color: #dcff86; font-style: normal; }
.home-feature-actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  align-self: start;
  gap: 8px;
  padding-bottom: 3px;
}
.home-feature-actions .btn { min-height: 48px; }
.home-play-button {
  color: #173221;
  border-color: #c4ee72;
  background: linear-gradient(155deg, #e9ffb3, #bdef66);
  box-shadow: inset 0 1px #fff9, 0 3px 0 #659633;
}
.home-catalog-button {
  color: #f4ffdc;
  border-color: #c7f3bf66;
  background: #214c45;
  box-shadow: inset 0 1px #ffffff24, 0 3px 0 #092e2b;
}
.home-play-button:active:not(:disabled) { box-shadow: inset 0 1px #fff9, 0 1px 0 #659633; }
.home-catalog-button:active:not(:disabled) { box-shadow: inset 0 1px #ffffff24, 0 1px 0 #092e2b; }
.home-feature :where(a, button):focus-visible { outline-color: #ffe68b; }

.home-feature-stage {
  grid-area: stage;
  position: relative;
  isolation: isolate;
  min-width: 0;
  padding: 23px 0 0 clamp(53px, 9.7vw, 142px);
}
.home-feature-stage::before {
  content: '';
  position: absolute;
  z-index: -2;
  inset: 15px -22px 43px 0;
  border: 2px solid #ccffb73a;
  border-radius: 50%;
  background:
    repeating-linear-gradient(90deg, #d3ffab0c 0 40px, transparent 40px 80px),
    radial-gradient(ellipse, #6bbd6766, #337f4b13 70%);
  transform: perspective(420px) rotateX(39deg);
}
.home-striker {
  position: absolute;
  z-index: 1;
  width: clamp(114px, 16vw, 225px);
  height: auto;
  inset-inline-start: clamp(-46px, -2.3vw, -8px);
  bottom: 36px;
  pointer-events: none;
  filter: drop-shadow(4px 12px 8px #041e2770);
}
.home-kick-net {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(168px, 20vw, 230px);
  padding: 15px 15px 28px;
  border: 7px solid #e8ffe4;
  border-bottom-width: 5px;
  border-radius: 18px 18px 6px 6px;
  background:
    repeating-linear-gradient(0deg, #e0ffdc2b 0 1px, transparent 1px 18px),
    repeating-linear-gradient(90deg, #e0ffdc2b 0 1px, transparent 1px 18px),
    linear-gradient(165deg, #0d352e, #2a7950 88%);
  box-shadow: inset 0 12px 20px #04231880, 0 10px 0 #133f37, 0 15px 18px #09272070;
}
.home-kick-lanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(5px, 1vw, 12px); }
.home-kick-lane {
  display: grid;
  place-items: center;
  min-height: 92px;
  padding: 5px;
  border: 1px solid #d4efcf70;
  border-radius: 12px;
  background: #123d3ccc;
  box-shadow: inset 0 1px #f5ffd02c;
}
.home-kick-lane[data-open='true'] {
  border: 2px dashed #e6ff9f;
  background: radial-gradient(circle, #8ce17990, #499e5538 69%), #1c5542;
}
.home-kick[data-result='goal'] .home-kick-lane[data-selected='true'] { background: #759f37; border-style: solid; }
.home-kick[data-result='save'] .home-kick-lane[data-selected='true'] { border-color: #fbc1a1; background: #604742; }
.home-kick-lane[aria-disabled='true'] { cursor: default; }
.home-kick-target {
  width: clamp(29px, 4.7vw, 53px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 2px solid #eeffae;
  border-radius: 50%;
  background: #daff7b20;
  box-shadow: 0 0 0 5px #dfff8c21, 0 0 20px #cfff7d62;
}
.home-kick-target-core {
  width: 63%;
  aspect-ratio: 1;
  background: linear-gradient(#fff8b2, #dfff84);
  clip-path: polygon(50% 0%, 61% 35%, 100% 50%, 61% 62%, 50% 100%, 38% 63%, 0% 50%, 37% 37%);
}
.home-kick-keeper { position: relative; display: block; width: clamp(32px, 5vw, 57px); height: clamp(30px, 4.5vw, 54px); }
.home-kick-keeper-body {
  position: absolute;
  inset: 45% 14% 0;
  border-radius: 13px 13px 7px 7px;
  border: 1px solid #e9c4ea8f;
  background: linear-gradient(145deg, #d591ee, #9861cb);
  box-shadow: inset 0 2px #fff6, 0 3px #373049;
}
.home-kick-keeper-body::before {
  content: '';
  position: absolute;
  inset: auto 20% 89%;
  aspect-ratio: 1;
  border-radius: 45% 48% 46% 49%;
  background: radial-gradient(circle at 35% 55%, #543054 0 8%, transparent 9%), radial-gradient(circle at 66% 55%, #543054 0 8%, transparent 9%), linear-gradient(140deg, #fff7d2, #edc099);
  border-top: 4px solid #c987df;
  box-shadow: 0 2px 1px #503b5e80;
}
.home-kick-keeper-hands::before, .home-kick-keeper-hands::after {
  content: '';
  position: absolute;
  top: 38%;
  width: 30%;
  height: 29%;
  border-radius: 65% 60% 45% 50%;
  background: linear-gradient(#fff5fb, #d7b7ee);
  box-shadow: 0 3px #6f5485;
}
.home-kick-keeper-hands::before { left: 0; transform: rotate(-24deg); }
.home-kick-keeper-hands::after { right: 0; transform: rotate(24deg); }
.home-kick-ball {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: -17px;
  width: clamp(26px, 4vw, 43px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid #bac6c4;
  border-radius: 50%;
  background: radial-gradient(circle at 31% 24%, #fff, #fff 33%, #dae3dc 65%, #9aaca9);
  box-shadow: 0 4px 7px #091f28a6;
  transform: translateX(-50%) rotate(10deg);
  pointer-events: none;
}
.home-kick-ball-pattern {
  width: 50%;
  aspect-ratio: 1;
  background: #26373d;
  clip-path: polygon(50% 0%, 100% 40%, 82% 96%, 18% 96%, 0% 40%);
}
.home-kick[data-result='goal'] .home-kick-ball, .home-kick[data-result='save'] .home-kick-ball {
  left: calc(50% + var(--kick-lane) * 32%);
  bottom: 34%;
  transform: translateX(-50%) rotate(220deg) scale(.79);
  animation: home-kick-shot .36s cubic-bezier(.17, .8, .37, 1) both;
}
.home-kick[data-result='save'] .home-kick-ball { bottom: 19%; }
@keyframes home-kick-shot {
  from { left: 50%; bottom: -17px; transform: translateX(-50%) rotate(10deg); }
}
.home-kick-feedback {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 68px;
  padding-top: 17px;
  text-align: center;
}
.home-kick-status { color: #f2ffde; font-weight: 850; line-height: 1.38; word-break: keep-all; }
.home-kick-replay {
  flex-shrink: 0;
  min-height: 44px;
  padding: 5px 10px;
  color: #214230;
  background: #e5ffb9;
  border: 1px solid #c6eb91;
  border-radius: 9px;
  font-weight: 850;
  font-size: .86rem;
}

.home-arcade-section { margin-top: 27px; }
.today-heading .btn { flex: 0 0 auto; }
.today-journey { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.today-card {
  position: relative;
  background: #fffdf7;
  border: 1px solid #e6dcec;
  border-radius: 17px;
  box-shadow: 0 3px 0 #eadff0;
}
.today-card > .game-preview { border-radius: 16px 16px 0 0; }
.today-preview-button {
  width: 100%;
  min-height: 68px;
  padding: 10px 13px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  border-radius: 0 0 17px 17px;
  word-break: keep-all;
}
.today-preview-button::after { position: absolute; content: ''; inset: 0; border-radius: 17px; }
.today-preview-button strong { display: block; font-size: 1.02rem; letter-spacing: -.035em; }
.today-preview-button span { display: block; margin-top: 3px; color: var(--muted); font-size: .83rem; line-height: 1.32; }
.catalog-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; min-width: 0; }
.catalog-preview {
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 68px;
  min-height: 44px;
  padding: 0 8px;
  color: var(--grape-deep);
  background: #fffaff;
  border: 1px solid #e4d3ef;
  border-radius: 13px;
  font-size: .79rem;
  font-weight: 850;
  white-space: nowrap;
}
.catalog-preview span { width: 8px; height: 9px; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.challenge-level { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .86rem; font-weight: 800; }
.challenge-level select { min-height: 44px; padding: 7px 9px; border: 1px solid #cbb5e3; border-radius: 9px; color: var(--ink); background-color: #fffafa; font-weight: 850; }
@media (hover: hover) {
  .home-kick-lane:hover:not([aria-disabled='true']) { border-color: #f0ffa8; filter: brightness(1.18); }
  .catalog-preview:hover { background: #f0e5fc; }
  .today-card:hover { border-color: #c9abe6; box-shadow: 0 4px 0 #e7d8f2; }
}
@media (max-width: 680px) {
  .home-feature {
    grid-template: 'title' auto 'stage' auto 'actions' auto / minmax(0, 1fr);
    gap: 9px;
    padding: 17px 14px 15px;
    border-radius: 22px;
  }
  .home-feature-label { margin-bottom: 8px; padding: 4px 9px; font-size: .74rem; }
  .home-feature h1 { font-size: clamp(2.3rem, 9.1vw, 3.65rem); }
  .home-feature h1 em { display: inline; }
  .home-feature-actions { gap: 7px; }
  .home-feature-actions .btn { min-height: 44px; padding: 7px 11px; font-size: .86rem; }
  .home-feature-stage { padding: 6px 0 0 clamp(51px, 16vw, 105px); }
  .home-feature-stage::before { inset: 4px -5px 27px -10px; }
  .home-striker { inset-inline-start: -19px; bottom: 39px; width: clamp(92px, 29vw, 170px); }
  .home-kick-net { min-height: clamp(120px, 39vw, 182px); padding: 9px 7px 16px; border-width: 5px 5px 4px; border-radius: 12px 12px 4px 4px; }
  .home-kick-lane { min-height: clamp(54px, 20vw, 88px); border-radius: 8px; }
  .home-kick-target { width: clamp(25px, 8vw, 42px); }
  .home-kick-keeper { width: clamp(27px, 8vw, 46px); height: clamp(27px, 8vw, 44px); }
  .home-kick-ball { bottom: -13px; }
  .home-kick-feedback { min-height: 57px; padding: 13px 0 0; gap: 5px; }
  .home-kick-status { font-size: .84rem; }
  .home-kick-replay { padding-inline: 7px; font-size: .8rem; }
  .home-arcade-section { margin-top: 21px; }
  .today-heading .btn { min-height: 44px; padding: 5px 9px; font-size: .81rem; }
  .today-journey { grid-template-columns: 1fr; gap: 9px; }
  .today-card { display: grid; grid-template-columns: 44% minmax(0, 1fr); --preview-height: 99px; }
  .today-card > .game-preview { border-radius: 16px 0 0 16px; }
  .today-preview-button { border-radius: 0 16px 16px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .home-kick[data-result] .home-kick-ball { animation: none; }
}
