.g-page { max-width: 1120px; }
.setup { display: grid; gap: 10px; margin-bottom: 12px; }
.opt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.lbl { width: 64px; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.titlebar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0 8px; }
.titlebar b { font-family: var(--font-head); font-weight: 600; font-size: 1.2rem; }

.pics { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 720px) { .pics { grid-template-columns: 1fr; gap: 10px; } }
.pic { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); container-type: inline-size; cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none; background: #123; }
.pic:focus-visible { outline: 4px solid var(--focus); outline-offset: 3px; }
.pic svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.obs, .marks { position: absolute; inset: 0; pointer-events: none; }
.ob { position: absolute; transform: translate(-50%, -50%) var(--t, ); font-size: calc(var(--s) * 1cqw); line-height: 1; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.25)); }
.ring { position: absolute; width: calc(var(--r) * 1.7cqw + 18px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 4px solid #2fbf71; box-shadow: 0 0 0 2px #fff, 0 0 12px rgba(47, 191, 113, 0.8); animation: ringIn 0.35s cubic-bezier(.3, 1.6, .5, 1) both; }
.ring.friend { border-color: #4a7de8; box-shadow: 0 0 0 2px #fff, 0 0 12px rgba(74, 125, 232, 0.8); }
@keyframes ringIn { from { transform: translate(-50%, -50%) scale(0.2); opacity: 0; } }
.miss { position: absolute; width: 26px; height: 26px; transform: translate(-50%, -50%); animation: missOut 0.7s ease forwards; }
.miss::before, .miss::after { content: ""; position: absolute; left: 50%; top: 0; width: 4px; height: 100%; margin-left: -2px; border-radius: 2px; background: #e5484d; box-shadow: 0 0 0 1px #fff; transform: rotate(45deg); }
.miss::after { transform: rotate(-45deg); }
@keyframes missOut { 60% { opacity: 1; } to { opacity: 0; transform: translate(-50%, -50%) scale(1.3); } }
.hintglow { position: absolute; width: 22cqw; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(255, 230, 120, 0.55), rgba(255, 230, 120, 0) 70%); animation: hintP 2.6s ease forwards; }
@keyframes hintP { 0% { opacity: 0; } 20%, 70% { opacity: 1; } to { opacity: 0; } }
.cross { position: absolute; width: 34px; height: 34px; transform: translate(-50%, -50%); border-radius: 50%; border: 3px dashed #fff; box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.5); pointer-events: none; }
.cross[hidden] { display: none; }

.result { margin: 14px auto 0; max-width: 520px; padding: 18px; border-radius: 20px; text-align: center; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.result[hidden] { display: none; }
.result h2 { margin: 0 0 6px; }
.result p { margin: 0 0 12px; color: var(--muted); }
.result .stars { font-size: 2rem; margin: 0; color: inherit; }
.rules { margin-top: 18px; color: var(--muted); }
.rules li { margin: 4px 0; line-height: 1.5; }

html[data-saver="on"] .ring, html[data-saver="on"] .miss, html[data-saver="on"] .hintglow { animation-duration: 0.01s; }
html[data-saver="on"] .hintglow { animation: none; opacity: 1; }
