.fc-card {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 92px;
  overflow: hidden;
  margin: 0 0 20px;
  padding: 14px 13px 14px 15px;
  border: 1px solid #d9ccdf;
  border-radius: 21px;
  background: linear-gradient(112deg, #f2e8ef 16%, #e7dce9 82%);
  box-shadow: 0 4px #e3d7e1;
  color: #513e55;
  text-align: left;
  touch-action: manipulation;
}

.fc-card-copy { display: grid; gap: 5px; }
.fc-card-copy strong { font-size: clamp(17px, 5vw, 23px); line-height: 1.2; letter-spacing: -.045em; }
.fc-card-copy > span { color: #68536a; font-size: 12px; font-weight: 650; }
.fc-card-art {
  position: absolute;
  z-index: -1;
  right: clamp(31px, 9vw, 60px);
  bottom: -6px;
  width: clamp(106px, 33vw, 148px);
  border-radius: 50% 50% 0 0;
  background: radial-gradient(ellipse at 53% 46%, #fae9ce 0 39%, transparent 40%);
}
.fc-card-art svg { display: block; width: 100%; }
.fc-card-play {
  display: grid;
  flex: none;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 50%;
  background: #735b7e;
  color: #fff6e4;
}
.fc-card-play svg { width: 20px; height: 20px; }
.fc-card:active { box-shadow: 0 1px #e3d7e1; }
.brand-hero + .fc-card { margin-top: 16px; }

#fox-concert {
  min-height: 100dvh;
  padding: max(8px, env(safe-area-inset-top)) 12px max(16px, env(safe-area-inset-bottom));
  background: radial-gradient(ellipse at 50% 0, #f1eadf, #faf7ee 76%);
  color: #513e55;
}

#fox-concert [hidden] { display: none !important; }

.fc-headbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  min-height: 53px;
  margin: 0 auto 7px;
  max-width: 610px;
}

.fc-headbar h1 {
  margin: 0;
  font-size: clamp(19px, 5.5vw, 28px);
  letter-spacing: -.055em;
  text-align: center;
}

.fc-headbar .nb-icon { width: 44px; height: 44px; color: #695373; }
.fc-headbar .is-silent { color: #635b60; }

.fc-stage {
  max-width: 610px;
  margin: auto;
  overflow: hidden;
  border: 1px solid #ded2d2;
  border-radius: clamp(20px, 6vw, 30px);
  background: #f7e9d9;
  box-shadow: 0 5px #e7d6d3, 0 12px 25px #704d6820;
}

.fc-theatre {
  width: 100%;
  position: relative;
  isolation: isolate;
  display: flex;
  justify-content: center;
  overflow: hidden;
  min-height: 188px;
  max-height: 332px;
  aspect-ratio: 1.48;
  background: #e4d9df url("../assets/fox-concert-stage.svg") center center / cover;
}

#fox-concert-turn {
  align-self: flex-start;
  z-index: 1;
  margin: 10px 8px 0;
  padding: 6px 13px;
  border: 1px solid #e4d5d7;
  border-radius: 20px;
  background: #fff8ecef;
  font-size: clamp(12px, 3.5vw, 16px);
  font-weight: 800;
  text-align: center;
  letter-spacing: -.025em;
}
[data-turn="fox"] #fox-concert-turn { background: #f9e2ae; border-color: #ca9c67; }

.fc-theatre .fc-fox {
  position: absolute;
  bottom: 1%;
  left: 50%;
  width: auto;
  height: 85%;
  max-width: 76%;
  transform: translateX(-50%);
}

.fc-replay {
  position: absolute;
  z-index: 2;
  top: 44%;
  right: max(8px, calc(50% - clamp(128px, 40%, 200px)));
  display: grid;
  place-items: center;
  gap: 2px;
  min-width: 58px;
  min-height: 54px;
  padding: 5px 6px;
  border: 1px solid #976750;
  border-radius: 16px;
  background: #fff2ce;
  box-shadow: 0 3px #b1836a;
  color: #654256;
  font-size: clamp(11px, 2.6vw, 15px);
  font-weight: 850;
  line-height: 1.15;
  white-space: nowrap;
  transform: translateY(-50%);
  touch-action: manipulation;
}
.fc-replay svg { display: block; width: 24px; height: 24px; pointer-events: none; }
.fc-replay:active { box-shadow: 0 1px #b1836a; }
.fc-replay:focus-visible { outline: 3px solid #315e8c; outline-offset: 3px; }

.fc-glints, .fc-singing { opacity: 0; }
[data-performing] .fc-singing, [data-performing] .fc-glints { opacity: 1; }
[data-performing] .fc-smile { opacity: 0; }
.fc-tail, .fc-baton, .fc-head, .fc-petals {
  transform-box: fill-box;
  transform-origin: center bottom;
}
.fc-baton { transform-origin: 18% 85%; }
.fc-tail { transform-origin: 18% 80%; }
[data-performing] .fc-baton { animation: fc-conduct .34s ease-in-out infinite; }
[data-performing] .fc-head { animation: fc-nod .34s ease-in-out infinite; }
[data-performing] .fc-tail { animation: fc-tail .68s ease-in-out infinite; }
@keyframes fc-conduct { 0%, 100% { transform: rotate(-8deg); } 42% { transform: rotate(13deg); } }
@keyframes fc-nod { 0%, 100% { transform: rotate(-1deg); } 42% { transform: rotate(2deg) translateY(1px); } }
@keyframes fc-tail { 0%, 100% { transform: rotate(0); } 55% { transform: rotate(-7deg); } }

.fc-instruments {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(6px, 2vw, 14px);
  padding: 0 clamp(8px, 2.6vw, 16px) 12px;
  background: linear-gradient(#e4c9be, #f6e5d5 43%);
}

[data-fc-flower="0"] { --fc-petal: #ed9b9c; --fc-edge: #98566a; --fc-light: #ffd5bb; --fc-heart: #df816c; --fc-pad: #f9e4e1; --fc-shadow: #bc797c; }
[data-fc-flower="1"] { --fc-petal: #f2bd63; --fc-edge: #9b683b; --fc-light: #ffe4a1; --fc-heart: #d78b54; --fc-pad: #fbedd0; --fc-shadow: #bb9263; }
[data-fc-flower="2"] { --fc-petal: #ada8de; --fc-edge: #6b5d9c; --fc-light: #e5d8fa; --fc-heart: #8077b4; --fc-pad: #ebe4f5; --fc-shadow: #a290b7; }

.fc-instruments button {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 112px;
  padding: 5px 2px 9px;
  border: 1px solid #a6757a66;
  border-radius: 16px;
  background: var(--fc-pad);
  box-shadow: 0 4px var(--fc-shadow);
  color: #483951;
  font-size: clamp(13px, 3.5vw, 16px);
  font-weight: 850;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.fc-instruments .fc-flower { display: block; width: min(100%, 110px); pointer-events: none; }
.fc-instruments button[data-ringing] {
  z-index: 1;
  outline: 2px solid var(--fc-edge);
  outline-offset: 0;
  background: #fff6dc;
  box-shadow: 0 3px var(--fc-shadow), 0 0 0 4px #fff5d0;
}
.fc-instruments button:focus-visible { outline: 3px solid #315e8c; outline-offset: 3px; }

.fc-bouquet {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 3vw, 22px);
  padding: 9px 9px 10px;
  border-top: 1px solid #e9d5bd;
  background: #fff8e9;
  font-size: clamp(12px, 3.8vw, 15px);
  font-weight: 800;
}

#fox-concert-phrase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(5px, 1.6vw, 9px);
  margin: 0;
  padding: 0;
  list-style: none;
}

#fox-concert-phrase li {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(52px, 15vw, 65px);
  aspect-ratio: 1;
  border: 1.5px dashed #bca480;
  border-radius: 50%;
  background: #f8efdc;
}

#fox-concert-phrase [data-fc-flower] { border-style: solid; background: var(--fc-pad); }
.fc-slot-art { display: grid; place-items: center; width: 100%; height: 100%; pointer-events: none; }
.fc-slot-edit {
  position: absolute;
  inset: 0;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: inherit;
  background: transparent;
  touch-action: manipulation;
}
#fox-concert-phrase li:has(.fc-slot-edit:not([hidden])) { box-shadow: 0 2px #8f72595c; }
#fox-concert-phrase li:has(.fc-slot-edit[aria-pressed="true"]) {
  z-index: 1;
  border-radius: 13px;
  border-color: #694979;
  box-shadow: 0 0 0 2px #694979;
}
#fox-concert-phrase li:has(.fc-slot-edit[aria-pressed="true"])::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: calc(50% - 6px);
  border-inline: 6px solid transparent;
  border-bottom: 7px solid #694979;
  pointer-events: none;
}
#fox-concert-phrase li[data-ringing] { outline: 2px solid var(--fc-edge); outline-offset: 2px; background: #fff4cb; }
.fc-slot-edit:focus-visible { outline: 3px solid #315e8c; outline-offset: 3px; }
.fc-bouquet .fc-flower { width: 90%; height: 90%; }
.fc-slot-outline { width: 68%; fill: none; stroke: #b39b76; stroke-width: 1.6; stroke-linejoin: round; }
.fc-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (min-width: 660px) {
  .fc-card { min-height: 108px; padding-inline: 22px; }
  .fc-card-art { right: 85px; width: 160px; }
  .fc-card-play { width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  [data-performing] .fc-baton, [data-performing] .fc-head, [data-performing] .fc-tail { animation: none; }
  [data-performing] .fc-baton { transform: rotate(12deg); }
}
