/* Scene 2: Is that badge real? Loaded after scene.css. */

/* Mock browser */
.browser { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--bg); }
.browser-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.dots { display: flex; gap: 5px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.lock { width: 30px; height: 26px; border-radius: 8px; border: 2px solid var(--accent); background: var(--surface); cursor: pointer; display: grid; place-items: center; animation: pulse 1.6s ease-in-out infinite; }
.lock svg { width: 15px; height: 15px; fill: var(--green); stroke: var(--green); }
.lock.active { animation: none; border-color: var(--green); }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 var(--accent-soft); } 50% { box-shadow: 0 0 0 6px var(--accent-soft); } }
@media (prefers-reduced-motion: reduce) { .lock { animation: none; } }
.url { font: .88rem ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.url b { color: var(--text); font-weight: 600; }
.browser-body { padding: 22px; }
.fake-site-title { font-weight: 700; font-size: 1.1rem; margin-bottom: 12px; }
.fake-form { display: grid; gap: 8px; max-width: 260px; }
.fake-form span { font-size: .85rem; color: var(--muted); }
.fake-form i { display: block; height: 30px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }

/* Badge cards */
.badge-card { margin-top: 16px; border: 2px solid var(--green); border-radius: 14px; padding: 14px 16px; background: var(--surface); animation: rise .35s ease-out; }
.badge-card.bad { border-color: var(--accent); }
.badge-head { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.url-inline { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: none; letter-spacing: 0; }
.checks-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks-list li { display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: start; }
.checks-list b { margin-right: 6px; }
.checks-list small { display: block; color: var(--muted); font-size: .82rem; }
.mark { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .9rem; }
.ok .mark { background: var(--green-soft); color: var(--green); }
.bad .mark { background: var(--accent-soft); color: var(--accent); }
/* Act 3: door */
.door-scene { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: center; margin-top: 8px; }
@media (max-width: 560px) { .door-scene { grid-template-columns: 1fr; } }
.door { position: relative; height: 200px; border-radius: 90px 90px 8px 8px; background: var(--box); border: 3px solid var(--box-lid); display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding: 14px; }
.door-label { font-size: .72rem; color: #5a4320; text-align: center; font-weight: 600; }
.note { position: absolute; top: 60px; background: #fff7c2; color: #5a4320; font-size: .78rem; padding: 6px 8px; border-radius: 4px; box-shadow: 0 2px 6px rgba(0,0,0,.15); transform: rotate(-3deg); animation: rise .35s ease-out; }
.note code { background: none; padding: 0; }
.office-says { font-style: italic; margin-bottom: 4px; }
.office-says .yes { font-style: normal; font-weight: 700; color: var(--green); }
.office-says .no { font-style: normal; font-weight: 700; color: var(--accent); }
.office .btn-small { margin-right: 8px; }

input[type="range"] { width: 100%; accent-color: var(--accent); margin: 6px 0 10px; }
.timeline { position: relative; height: 16px; border-radius: 8px; background: var(--surface-2); overflow: hidden; }
.seg { position: absolute; top: 0; bottom: 0; }
.seg.valid { background: var(--green-soft); }
.seg.down { background: var(--accent); opacity: .55; }
.renew-mark { position: absolute; top: 0; bottom: 0; width: 3px; background: var(--green); }
.cursor { position: absolute; top: -2px; bottom: -2px; width: 2px; background: var(--text); }
.tl-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); margin: 8px 0 16px; }
.lg { display: inline-block; width: 12px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.lg.valid { background: var(--green-soft); }
.lg.renew { background: var(--green); width: 3px; }
.lg.down { background: var(--accent); opacity: .55; }
.status-row { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
@media (max-width: 560px) { .status-row { grid-template-columns: 1fr; } }
.mini-browser { display: flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 999px; background: var(--green-soft); font: .85rem ui-monospace, SFMono-Regular, Menlo, monospace; transition: background .2s; }
.mini-browser.down { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.stats { margin: 12px 0 0; font-size: .9rem; color: var(--muted); }

.checks-list li > span:last-child { min-width: 0; overflow-wrap: anywhere; }
/* Part two */
.part-break { margin: 36px 0 18px; }
.part-break h2 { font-size: 1.6rem; }
.chain { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 0; }
.chain li { position: relative; display: grid; gap: 2px; background: var(--bg); border: 2px solid var(--green); border-radius: 12px; padding: 12px 14px; margin-left: 0; animation: rise .35s ease-out; }
.chain li + li { margin-top: 22px; margin-left: 22px; }
.chain li + li::before { content: "stamps ↓"; position: absolute; top: -20px; left: 8px; font-size: .72rem; color: var(--muted); }
.chain li span { color: var(--muted); font-size: .9rem; }
.chain li code { justify-self: start; font-size: .75rem; }
.handshake { margin-top: 14px; display: grid; gap: 8px; }
.hs-row { display: grid; grid-template-columns: 150px 1fr; gap: 10px; align-items: center; background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: .92rem; }
@media (max-width: 560px) { .hs-row { grid-template-columns: 1fr; } }
.hs-row.ok { border-color: var(--green); }
.hs-row.bad { border-color: var(--accent); }
.hs-who { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.risk { margin: 6px 0 12px; }
.cancelled { margin-top: 14px; display: grid; gap: 2px; background: var(--accent-soft); border-radius: 10px; padding: 10px 12px; font-size: .9rem; animation: rise .35s ease-out; }
.cancelled span { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82rem; }
.jump { margin: 4px 0 0; font-size: .95rem; }
.jump a { color: var(--green); font-weight: 600; }

/* Go a level deeper: twins and the stamp inventory */
.twins { display: grid; grid-template-columns: repeat(20, 1fr); gap: 4px; margin: 14px 0 8px; min-height: 20px; }
@media (max-width: 560px) { .twins { grid-template-columns: repeat(10, 1fr); } }
.twin { aspect-ratio: 1; border-radius: 50%; animation: popin .3s ease-out; }
.twin.waiting { background: var(--border); }
.twin.badged { background: var(--green); }
.inventory { width: 100%; border-collapse: collapse; margin: 14px 0 10px; font-size: .88rem; }
.inventory th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--border); }
.inventory td { padding: 7px 8px; border-bottom: 1px dashed var(--border); vertical-align: middle; }
.inventory td:first-child { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; overflow-wrap: anywhere; }
.inventory .old { font-size: .72rem; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 1px 8px; margin-left: 4px; }
.inventory .bar { display: inline-block; height: 8px; border-radius: 4px; background: var(--green); vertical-align: middle; margin-right: 6px; max-width: 70%; }
.inventory tr.found .bar { background: var(--accent); }

/* Go a level deeper: the front door (load balancer) */
.visitors { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; font-size: .92rem; animation: rise .35s ease-out; }
.visitors li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; border-left: 4px solid var(--border); padding: 6px 10px; background: var(--bg); border-radius: 6px; }
.visitors li small { color: var(--muted); }
.visitors li span { margin-left: auto; font-weight: 600; }
.visitors li.ok { border-color: var(--green); }
.visitors li.ok span { color: var(--green); }
.visitors li.bad { border-color: var(--accent); }
.visitors li.bad span { color: var(--accent); }
