/* ClearCalc clickable prototype */
.proto { margin-top: 56px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.proto-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.proto-head .kicker { margin: 0; }
.proto-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: color-mix(in srgb, var(--text) 6%, transparent); }
.proto-tabs button { font: 600 14px var(--font-body); padding: 7px 14px; border-radius: 999px; border: 0; background: none; color: var(--text); cursor: pointer; }
.proto-tabs button[aria-selected="true"] { background: #1586aa; color: #fff; }
.proto-status { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.proto-frame { position: relative; max-height: min(680px, 72vh); overflow-y: auto; border-radius: 10px; border: 1px solid var(--line); background: #fff; overscroll-behavior: contain; }
.proto-stage { position: relative; width: 100%; cursor: default; }
.proto-stage img { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; }
.proto-spot { position: absolute; padding: 0; border: 2px solid #1586aa; border-radius: 6px; background: rgba(21, 134, 170, .12); cursor: pointer; animation: proto-pulse 1.6s ease-out infinite; }
.proto-spot:hover { background: rgba(21, 134, 170, .22); }
.proto-spot:focus-visible { outline: 3px solid #f5a623; outline-offset: 2px; }
.proto-spot.flash { animation: proto-flash .5s ease-out 2, proto-pulse 1.6s ease-out 1s infinite; }
@keyframes proto-pulse { 0% { box-shadow: 0 0 0 0 rgba(21, 134, 170, .55); } 100% { box-shadow: 0 0 0 14px rgba(21, 134, 170, 0); } }
@keyframes proto-flash { 50% { background: rgba(245, 166, 35, .45); border-color: #f5a623; } }
.proto-tip { position: absolute; z-index: 2; max-width: min(320px, 46%); padding: 10px 14px; border-radius: 10px; background: #1d2a33; color: #fff; font: 500 14px/1.45 var(--font-body); box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .4); pointer-events: none; }
.proto-tip::before { content: ""; position: absolute; top: -7px; left: 18px; border: 7px solid transparent; border-top: 0; border-bottom-color: #1d2a33; }
.proto-tip.flip::before { left: auto; right: 18px; }
.proto-end { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .55); backdrop-filter: blur(1px); }
.proto-end > div { max-width: 360px; padding: 22px 24px; border-radius: 14px; background: #fff; border: 1px solid #dfe5e9; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .3); text-align: center; color: #22303a; }
.proto-end p { margin: 0 0 16px; font-size: 16px; }
.proto-end button { font: 600 14px var(--font-body); margin: 0 4px; padding: 9px 16px; border-radius: 999px; border: 1px solid #1586aa; background: #fff; color: #1586aa; cursor: pointer; }
.proto-end button[data-other] { background: #1586aa; color: #fff; }
.proto-hint { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
@media (max-width: 600px) { .proto { padding: 12px; } .proto-tip { font-size: 12px; padding: 8px 10px; max-width: 60%; } }
@media (prefers-reduced-motion: reduce) { .proto-spot, .proto-spot.flash { animation: none; } }
.proto [hidden] { display: none !important; }
/* keep the success banner readable behind the end card */
.proto-end { align-items: start; padding-top: 22%; background: none; backdrop-filter: none; pointer-events: none; }
.proto-end > div { pointer-events: auto; }
