.module-detail--call {
  background:
    radial-gradient(circle at 50% 18%, rgba(192, 148, 63, .08), transparent 27%),
    #020308;
}

.module-detail--call .module-hero .hero-grid { grid-template-columns: 1fr; }
.module-detail--call .module-hero__intro { display: grid; max-width: 1060px; grid-template-columns: minmax(0, 1fr) minmax(260px, .68fr); gap: clamp(24px, 5vw, 80px); align-items: end; }
.module-detail--call .module-hero__intro .hero-lead { margin: 0; }

.call-game { --call-gold: #c9a961; --call-gold-bright: #f0d98f; --call-ink: #090a0d; width: 100%; margin-top: clamp(26px, 4vw, 50px); }
.call-game__shell { position: relative; isolation: isolate; display: flex; width: 100%; height: clamp(610px, 76vh, 760px); flex-direction: column; overflow: hidden; border: 1px solid rgba(201, 169, 97, .28); border-radius: 27px; background: #08090c; box-shadow: 0 42px 130px rgba(0, 0, 0, .64), inset 0 1px rgba(255, 255, 255, .035); color: #f7f2e7; }
.call-game__shell::before { position: absolute; z-index: 10; inset: 0; border: 1px solid rgba(255, 255, 255, .025); border-radius: inherit; pointer-events: none; content: ""; }
.call-game__top { display: flex; min-height: 66px; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 20px; border-bottom: 1px solid rgba(255, 255, 255, .07); background: rgba(255, 255, 255, .018); }
.call-game__identity { display: flex; min-width: 0; align-items: center; gap: 12px; }
.call-game__identity b, .call-game__identity small { display: block; }
.call-game__identity b { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.call-game__identity small { margin-top: 3px; color: #817d75; font-size: 10px; }
.call-game__live-dot { width: 12px; height: 12px; flex: 0 0 auto; border-radius: 50%; background: #d3a743; box-shadow: 0 0 0 6px rgba(211, 167, 67, .1), 0 0 20px rgba(211, 167, 67, .45); transition: background .25s ease, box-shadow .25s ease; }
.call-game__shell[data-call-state="active"] .call-game__live-dot, .call-game__shell[data-call-state="complete"] .call-game__live-dot { background: #39d67c; box-shadow: 0 0 0 6px rgba(57, 214, 124, .1), 0 0 20px rgba(57, 214, 124, .52); }
.call-game__timer { flex: 0 0 auto; color: #d9d0bd; font-size: 14px; font-variant-numeric: tabular-nums; }
.call-game__body { display: grid; min-height: 0; flex: 1; grid-template-columns: minmax(0, 1.18fr) minmax(360px, .82fr); }

.call-game__stage { position: relative; min-height: 0; overflow: hidden; background: radial-gradient(circle at 50% 42%, rgba(201, 169, 97, .13), transparent 29%), radial-gradient(circle at 50% 45%, #12131a 0%, #08090d 64%, #050609 100%); }
.call-game__stage::before, .call-game__stage::after { position: absolute; z-index: 0; left: 50%; top: 47%; border-radius: 50%; pointer-events: none; content: ""; transform: translate(-50%, -50%); }
.call-game__stage::before { width: min(46vw, 430px); aspect-ratio: 1; border: 1px solid rgba(201, 169, 97, .2); box-shadow: 0 0 80px rgba(201, 169, 97, .08), inset 0 0 70px rgba(201, 169, 97, .045); }
.call-game__stage::after { width: min(36vw, 330px); aspect-ratio: 1; border: 1px solid rgba(120, 101, 68, .08); }
.call-game__stars { position: absolute; z-index: 0; inset: 0; opacity: .33; background-image: radial-gradient(circle at 20% 31%, #fff 0 1px, transparent 1.4px), radial-gradient(circle at 73% 22%, #d6bc83 0 1px, transparent 1.4px), radial-gradient(circle at 82% 68%, #fff 0 1px, transparent 1.4px), radial-gradient(circle at 31% 77%, #b2bee1 0 1px, transparent 1.4px); background-size: 173px 141px, 211px 197px, 251px 227px, 293px 257px; }
.call-game__avatar { position: absolute; z-index: 1; inset: 0; cursor: grab; touch-action: pan-y; }
.call-game__avatar:active { cursor: grabbing; }
.call-game__avatar canvas { display: block; width: 100% !important; height: 100% !important; }
.call-game__avatar-fallback { position: absolute; z-index: 1; inset: 0; display: none; place-items: center; }
.call-game__avatar-fallback img { width: min(150px, 42%); aspect-ratio: 1; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgba(236, 200, 112, .28), 0 0 70px rgba(206, 167, 74, .2); }
.call-game__stage.is-avatar-fallback .call-game__avatar { display: none; }
.call-game__stage.is-avatar-fallback .call-game__avatar-fallback { display: grid; }
.call-game__model-loader { position: absolute; z-index: 2; left: 50%; top: 46%; display: grid; place-items: center; gap: 10px; color: #8e8778; font-size: 10px; transform: translate(-50%, -50%); }
.call-game__model-loader::before { width: 32px; height: 32px; border: 2px solid rgba(201, 169, 97, .12); border-top-color: var(--call-gold); border-radius: 50%; animation: call-spin .9s linear infinite; content: ""; }
.call-game__model-loader[hidden] { display: none; }
.call-game__drag-hint { position: absolute; z-index: 2; top: 15px; left: 50%; padding: 6px 10px; border: 1px solid rgba(255, 255, 255, .06); border-radius: 999px; background: rgba(5, 6, 9, .48); color: #77736b; font-size: 8px; letter-spacing: .04em; pointer-events: none; transform: translateX(-50%); }
.call-game__state { position: absolute; z-index: 3; left: 50%; bottom: 22px; display: flex; width: min(470px, calc(100% - 34px)); min-height: 66px; align-items: center; gap: 13px; padding: 12px 15px; border: 1px solid rgba(201, 169, 97, .24); border-radius: 17px; background: rgba(8, 9, 12, .78); box-shadow: 0 14px 34px rgba(0, 0, 0, .34); backdrop-filter: blur(15px); transform: translateX(-50%); }
.call-game__state b, .call-game__state small { display: block; }
.call-game__state b { font-size: 12px; }
.call-game__state small { margin-top: 3px; color: #89847b; font-size: 9px; }
.call-game__level { display: flex; width: 40px; height: 40px; flex: 0 0 auto; align-items: flex-end; justify-content: center; padding: 8px; border-radius: 50%; background: rgba(201, 169, 97, .1); }
.call-game__level i { width: 8px; height: 26%; border-radius: 999px; background: linear-gradient(#f1d887, #b17e24); transition: height .12s ease; }
.call-game__shell.is-speaking .call-game__level i { animation: call-level .52s ease-in-out infinite alternate; }

.call-game__transcript { display: flex; min-width: 0; min-height: 0; flex-direction: column; border-left: 1px solid rgba(255, 255, 255, .07); background: #0c0d11; }
.call-game__transcript-head { display: flex; min-height: 55px; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: 11px; }
.call-game__transcript-head small { max-width: 50%; overflow: hidden; color: #a0906e; font-size: 9px; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.call-game__feed { display: flex; min-height: 0; flex: 1; flex-direction: column; gap: 10px; overflow-y: auto; padding: 16px; scrollbar-color: rgba(201, 169, 97, .34) transparent; scrollbar-width: thin; }
.call-game__welcome { display: grid; min-height: 100%; place-content: center; gap: 12px; padding: 8px 3px; }
.call-game__welcome[hidden] { display: none; }
.call-game__welcome small { color: var(--call-gold-bright); font-size: 9px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.call-game__welcome strong { max-width: 340px; font-size: clamp(23px, 2.6vw, 34px); line-height: .98; letter-spacing: -.045em; }
.call-game__welcome p { max-width: 340px; margin: 0; color: #9a968e; font-size: 11px; line-height: 1.55; }
.call-game__consent { display: grid; max-width: 350px; grid-template-columns: 18px 1fr; gap: 9px; align-items: start; color: #aaa49a; font-size: 9px; line-height: 1.45; cursor: pointer; }
.call-game__consent input { width: 18px; height: 18px; margin: 0; accent-color: #c9a961; }
.call-game__accept { display: flex; min-height: 52px; align-items: center; justify-content: center; gap: 10px; margin-top: 6px; border: 1px solid rgba(73, 218, 131, .48); border-radius: 14px; background: linear-gradient(135deg, #47dc84, #218f55); box-shadow: 0 13px 35px rgba(46, 190, 106, .17); color: #06150d; font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.call-game__accept:disabled { opacity: .38; box-shadow: none; cursor: not-allowed; filter: saturate(.45); }
.call-game__accept svg { width: 18px; height: 18px; transform: rotate(-18deg); }
.call-game__fallback { min-height: 44px; border: 1px solid rgba(201, 169, 97, .18); border-radius: 12px; background: transparent; color: #aaa397; font: inherit; font-size: 9px; cursor: pointer; }
.call-game__error { padding: 9px 10px; border: 1px solid rgba(237, 96, 96, .24); border-radius: 11px; background: rgba(237, 96, 96, .07); color: #dda2a2 !important; font-size: 8px !important; }
.call-game__error[hidden] { display: none; }
.call-game__message { max-width: 89%; padding: 11px 13px; border-radius: 14px; font-size: 11px; line-height: 1.47; animation: call-message-in .26s ease both; }
.call-game__message small { display: block; margin-bottom: 4px; opacity: .55; font-size: 8px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.call-game__message--bot { align-self: flex-start; border: 1px solid rgba(201, 169, 97, .16); border-bottom-left-radius: 5px; background: #19181b; color: #ebe3d1; }
.call-game__message--user { align-self: flex-end; border-bottom-right-radius: 5px; background: linear-gradient(135deg, #d9bc6f, #a87929); color: #17130b; }
.call-game__choices { display: grid; gap: 7px; margin-top: auto; padding-top: 5px; animation: call-message-in .24s ease both; }
.call-game__choices[hidden] { display: none; }
.call-game__choices small { color: #76726b; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.call-game__choice { min-height: 43px; padding: 9px 11px; border: 1px solid rgba(201, 169, 97, .22); border-radius: 12px; background: rgba(201, 169, 97, .065); color: #e7dfcf; font: inherit; font-size: 9px; line-height: 1.25; text-align: left; cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.call-game__choice:hover, .call-game__choice:focus-visible { border-color: rgba(240, 217, 143, .54); background: rgba(201, 169, 97, .12); outline: none; transform: translateY(-1px); }
.call-game__thinking { align-self: flex-start; color: #a0906e; font-size: 9px; }
.call-game__thinking::after { animation: call-dots 1s steps(4, end) infinite; content: ""; }

.call-game__result { display: grid; gap: 11px; padding: 14px; border: 1px solid rgba(67, 211, 124, .26); border-radius: 16px; background: linear-gradient(145deg, rgba(52, 176, 103, .12), rgba(201, 169, 97, .045)); animation: call-result-in .35s cubic-bezier(.2, .8, .2, 1) both; }
.call-game__result[hidden] { display: none; }
.call-game__result > small { color: #52d88b; font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.call-game__result > strong { font-size: 16px; letter-spacing: -.025em; }
.call-game__result dl { display: grid; grid-template-columns: auto 1fr; gap: 7px 12px; margin: 0; font-size: 9px; }
.call-game__result dt { color: #716d66; }
.call-game__result dd { margin: 0; color: #ddd4c3; }
.call-game__restart { min-height: 41px; border: 1px solid rgba(201, 169, 97, .28); border-radius: 11px; background: rgba(201, 169, 97, .08); color: #ede4d2; font: inherit; font-size: 9px; font-weight: 700; cursor: pointer; }
.call-game__privacy { margin: 0; padding: 10px 15px; border-top: 1px solid rgba(255, 255, 255, .05); color: #66635e; font-size: 8px; line-height: 1.42; }

.call-game__controls { display: flex; min-height: 84px; align-items: center; justify-content: center; gap: 27px; padding: 12px 20px; border-top: 1px solid rgba(255, 255, 255, .07); background: #0a0b0e; }
.call-game__control { display: grid; min-width: 76px; place-items: center; gap: 4px; border: 0; background: transparent; color: #8c877e; font: inherit; cursor: pointer; }
.call-game__control span { display: grid; width: 30px; height: 30px; place-items: center; font-size: 19px; }
.call-game__control b { font-size: 8px; font-weight: 600; }
.call-game__control svg { width: 18px; height: 18px; }
.call-game__control[aria-pressed="true"] { color: #ef7474; }
.call-game__control:disabled { opacity: .28; cursor: not-allowed; }
.call-game__hangup { display: grid; width: 62px; height: 62px; place-items: center; border: 0; border-radius: 50%; background: #318f58; box-shadow: 0 9px 30px rgba(49, 143, 88, .27); color: #fff; cursor: pointer; transition: background .22s ease, box-shadow .22s ease, transform .16s ease; }
.call-game__hangup svg { width: 24px; height: 24px; transform: rotate(-18deg); }
.call-game__shell[data-call-state="active"] .call-game__hangup { background: #e64d4d; box-shadow: 0 9px 30px rgba(230, 77, 77, .32); }
.call-game__shell[data-call-state="active"] .call-game__hangup svg { transform: rotate(135deg); }
.call-game__hangup:hover { transform: scale(1.04); }
.call-game__caption { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 11px 2px 0; color: #74716b; font-size: 8px; }
.call-game__caption b { color: #b9ab8e; font-weight: 650; }

@keyframes call-spin { to { transform: rotate(360deg); } }
@keyframes call-level { from { height: 22%; } to { height: 88%; } }
@keyframes call-message-in { from { opacity: 0; transform: translateY(7px); } }
@keyframes call-result-in { from { opacity: 0; transform: translateY(9px) scale(.985); } }
@keyframes call-dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75%, 100% { content: "..."; } }

@media (max-width: 860px) {
  .module-detail--call .module-hero__intro { grid-template-columns: 1fr; gap: 14px; }
  .call-game__shell { height: 760px; border-radius: 22px; }
  .call-game__body { grid-template-columns: 1fr; grid-template-rows: 47% 53%; }
  .call-game__stage { min-height: 0; }
  .call-game__stage::before { width: min(82vw, 330px); }
  .call-game__stage::after { width: min(64vw, 255px); }
  .call-game__transcript { border-top: 1px solid rgba(255, 255, 255, .07); border-left: 0; }
  .call-game__state { bottom: 12px; }
}

@media (max-width: 520px) {
  .module-detail--call .page-hero { padding-top: 42px; }
  .module-detail--call .module-hero__intro h1 { font-size: clamp(39px, 12vw, 52px); }
  .call-game { width: calc(100% + 20px); margin-top: 23px; margin-left: -10px; }
  .call-game__shell { height: min(780px, calc(100svh - 74px)); min-height: 650px; border-radius: 18px; }
  .call-game__top { min-height: 58px; padding: 11px 13px; }
  .call-game__identity b { font-size: 12px; }
  .call-game__identity small { font-size: 8px; }
  .call-game__body { grid-template-rows: minmax(275px, 44%) minmax(0, 56%); }
  .call-game__drag-hint { top: 10px; }
  .call-game__state { min-height: 58px; padding: 9px 11px; }
  .call-game__state b { font-size: 10px; }
  .call-game__state small { font-size: 8px; }
  .call-game__level { width: 35px; height: 35px; }
  .call-game__transcript-head { min-height: 47px; padding: 10px 12px; font-size: 10px; }
  .call-game__feed { gap: 8px; padding: 11px 12px; }
  .call-game__welcome { gap: 9px; }
  .call-game__welcome strong { font-size: 25px; }
  .call-game__welcome p, .call-game__message { font-size: 10px; }
  .call-game__accept { min-height: 46px; }
  .call-game__choice { min-height: 38px; padding: 8px 10px; font-size: 8px; }
  .call-game__result { gap: 8px; padding: 11px; }
  .call-game__privacy { padding: 8px 12px; font-size: 7px; }
  .call-game__controls { min-height: 74px; gap: 15px; padding: 9px 10px max(9px, env(safe-area-inset-bottom)); }
  .call-game__control { min-width: 66px; }
  .call-game__hangup { width: 56px; height: 56px; }
  .call-game__caption { align-items: flex-start; flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .call-game__model-loader::before, .call-game__shell.is-speaking .call-game__level i, .call-game__message, .call-game__choices, .call-game__result { animation: none; }
}
