.ekalavya-save {
  margin: 42px 0;
  padding: clamp(18px, 4vw, 34px);
  border: 1px solid #d7c8a9;
  border-radius: 18px;
  background: #f2ead8;
  color: #26362f;
}
.ekalavya-save__intro { max-width: 700px; margin-bottom: 20px; }
.ekalavya-save__eyebrow { margin: 0 0 5px !important; color: #8a6030; font-size: .76rem !important; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ekalavya-save h2 { margin: 0 0 8px; color: #26362f; font: 600 clamp(1.7rem, 4vw, 2.25rem) 'Playfair Display', Georgia, serif; }
.ekalavya-save__intro p:last-child { margin: 0; line-height: 1.6; }
.ekalavya-save__stage { position: relative; height: clamp(340px, 52vw, 460px); overflow: hidden; border: 1px solid #8b8f7d; border-radius: 12px; background: #8d9b70; }
.ekalavya-save__stage canvas { display: block; width: 100%; height: 100%; cursor: pointer; touch-action: manipulation; }
.ekalavya-save__hud { position: absolute; z-index: 2; inset: 10px 12px auto; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; color: #fff8e6; text-shadow: 0 1px 4px #17231e; font-size: .86rem; font-weight: 700; pointer-events: none; }
.ekalavya-save__hud > span { padding: 7px 9px; border-radius: 8px; background: #10221dbd; }
.ekalavya-save__hud > span:last-child { display: grid; justify-items: end; gap: 2px; }
.ekalavya-save__hud > span:last-child small { font-size: .76rem; }
.ekalavya-save__hud > span:last-child small b { color: #ffe2a0; }
.ekalavya-save__overlay { position: absolute; z-index: 4; inset: 0; display: grid; place-items: center; padding: 22px; background: #0f1b19b8; text-align: center; }
.ekalavya-save__overlay[hidden] { display: none; }
.ekalavya-save__overlay > div { max-width: 460px; color: #fff7e5; }
.ekalavya-save__overlay h3 { margin: 0 0 8px; font: 600 1.8rem 'Playfair Display', Georgia, serif; }
.ekalavya-save__overlay p { line-height: 1.55; }
.ekalavya-save button { min-height: 44px; border: 0; border-radius: 8px; padding: 9px 16px; background: #b87a36; color: white; font: inherit; font-weight: 700; cursor: pointer; touch-action: manipulation; }
.ekalavya-save button:focus-visible, .ekalavya-save__stage canvas:focus-visible { outline: 3px solid #f1c86f; outline-offset: 3px; }
.ekalavya-save__result { margin: 18px 0 6px; color: #ffe2a0; font-weight: 700; line-height: 1.8 !important; }
.ekalavya-save__result strong { font-size: 1.12rem; }
.ekalavya-save__record { margin: 8px 0 2px; color: #ffe2a0; line-height: 1.5 !important; }
.ekalavya-save__controls { display: flex; justify-content: center; margin-top: 12px; user-select: none; -webkit-tap-highlight-color: transparent; }
.ekalavya-save__controls button { display: grid; width: clamp(44px, 13vw, 64px); min-width: clamp(44px, 13vw, 64px); min-height: 48px; place-items: center; padding: 8px; }
.ekalavya-save__controls svg { width: 32px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.ekalavya-save__controls button:disabled { opacity: .55; cursor: not-allowed; }
.ekalavya-save__flyer { position: absolute; z-index: 5; transform: translate(-50%, -50%); padding: 9px 13px; border: 1px solid #ffe4a1; border-radius: 999px; background: #163328ed; color: #fff0a5; box-shadow: 0 4px 18px #17231e99; font-size: clamp(.82rem, 2vw, 1.1rem); font-weight: 800; letter-spacing: .03em; text-align: center; white-space: nowrap; pointer-events: none; }
.ekalavya-save__flyer[data-kind="miss"] { border-color: #ffd0b5; color: #ffd0b5; }
.ekalavya-save__flyer[data-kind="hit"] { border-color: #bce5a3; color: #d8f5bf; }
.ekalavya-save__flyer[hidden] { display: none; }
.ekalavya-save__flyer:not([hidden]) { animation: ekalavya-flyer-pop 1.05s ease-out both; }
@keyframes ekalavya-flyer-pop { 0% { opacity: 0; translate: 0 12px; scale: .78; } 18% { opacity: 1; translate: 0 0; scale: 1; } 100% { opacity: 0; translate: 0 -28px; scale: 1; } }
@media (min-width: 760px) { .ekalavya-save__controls { display: none; } }
@media (max-width: 600px) {
  .ekalavya-save__stage { height: clamp(390px, 62vh, 540px); }
  .ekalavya-save__hud { inset: 7px 7px auto; gap: 4px; font-size: .68rem; }
  .ekalavya-save__hud > span { padding: 6px 5px; }
  .ekalavya-save__hud > span:last-child small { font-size: .65rem; }
  .ekalavya-save__overlay { padding: 8px; }
  .ekalavya-save__overlay > div { box-sizing: border-box; max-width: 100%; max-height: 100%; overflow-y: auto; padding: 8px; }
  .ekalavya-save__overlay h3 { margin-bottom: 5px; font-size: 1.3rem; line-height: 1.15; }
  .ekalavya-save__overlay p { margin: 6px 0; font-size: .82rem; line-height: 1.3; }
  .ekalavya-save__result { margin: 8px 0 4px; font-size: .82rem; line-height: 1.35 !important; }
  .ekalavya-save__result strong { font-size: .95rem; }
  .ekalavya-save__record { margin: 5px 0 0; font-size: .8rem; }
}
