/* EVENT PLAY LP: デジタル射的の再現画面。値は apps/display/src/styles.css の shooting 表示に合わせている */
:root { --g-ink: #08101f; --g-sun: #ffd45a; --g-coral: #ff6b6b; --g-aqua: #31e6c4; --g-paper: #fffdf6; }
/* ゲーム画面（デジタル射的）。大きさはすべて画面幅に対する割合（cqw）で指定する */
.scr {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; container-type: inline-size;
  border-radius: 3px; cursor: crosshair; user-select: none; -webkit-user-select: none; touch-action: manipulation;
  background:
    radial-gradient(circle at 15% 14%, rgba(49, 230, 196, .13), transparent 22%),
    radial-gradient(ellipse at 50% 120%, #1b2440 0%, transparent 60%),
    #0b1426;
  font-family: var(--jp);
}
.scr-decor, .scr-decor i { position: absolute; pointer-events: none; }
.scr-decor { inset: 0; }
.glow { left: 50%; top: 48%; width: 70cqw; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(49, 230, 196, .2), transparent 65%); translate: -50% -50%; animation: breathe 3.8s ease-in-out infinite; }
.orbit { left: 50%; top: 49%; border-radius: 50%; border: 1px solid rgba(255,255,255,.09); translate: -50% -50%; }
.orbit-1 { width: 64cqw; aspect-ratio: 1; border-style: dashed; animation: spin 34s linear infinite; }
.orbit-2 { width: 43cqw; aspect-ratio: 1; border-color: rgba(49, 230, 196, .16); animation: spin 22s linear infinite reverse; }
.blob { width: 44cqw; aspect-ratio: 1; border-radius: 50%; filter: blur(3cqw); opacity: .5; }
.blob-a { left: -8cqw; bottom: -24cqw; background: radial-gradient(circle, #24d7b6, transparent 68%); }
.blob-b { right: -7cqw; bottom: -18cqw; background: radial-gradient(circle, #6d5dfc, transparent 68%); }
.star { width: .45cqw; aspect-ratio: 1; border-radius: 50%; background: var(--g-sun); box-shadow: 0 0 1cqw rgba(255, 212, 90, .6); animation: drift 4s ease-in-out infinite; }
.scr-brand { position: absolute; left: 3.2cqw; top: 3cqw; width: 3.6cqw; border-radius: .8cqw; box-shadow: 0 0 0 .15cqw rgba(255,255,255,.12); }
.scr-title { position: absolute; left: 16.5cqw; top: 3.9cqw; display: flex; align-items: center; gap: .9cqw; color: #dce6f4; font-size: 1.45cqw; font-weight: 900; letter-spacing: .02em; }
.scr-title span { font-family: var(--en); font-size: .5em; letter-spacing: .16em; color: var(--g-aqua); border: 1px solid rgba(255,255,255,.14); border-radius: 99px; padding: .5em .8em; background: rgba(5, 10, 20, .4); }
.scr-score { position: absolute; left: 50%; top: 2.4cqw; min-width: 16cqw; padding: .6cqw 2cqw .75cqw; border: .14cqw solid var(--g-ink); border-radius: 99px; background: var(--g-sun); color: var(--g-ink); box-shadow: 0 .4cqw 0 var(--g-ink), 0 1cqw 2.2cqw rgba(0,0,0,.35); text-align: center; font-family: var(--en); font-weight: 600; font-size: 1.6cqw; line-height: 1; transform: translateX(-50%) rotate(-1deg); }
.scr-score small { display: block; font-size: .5em; letter-spacing: .24em; margin-bottom: .3cqw; }
.scr-score b { font-size: 2em; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.scr-time { position: absolute; right: 5cqw; top: 3.2cqw; min-width: 10cqw; padding: .8cqw 1.4cqw; border: 1px solid rgba(255,255,255,.14); border-radius: 1.1cqw; background: rgba(5, 10, 20, .55); color: #fff; text-align: center; font-family: var(--en); font-weight: 600; font-size: 1.3cqw; line-height: 1; }
.scr-time small { position: absolute; left: 1cqw; top: -.45cqw; padding: 0 .45cqw; background: #0b1426; color: #8fa1bb; font-size: .5em; letter-spacing: .2em; }
.scr-time b { font-size: 1.9em; font-variant-numeric: tabular-nums; }
.scr-hits { position: absolute; left: 3.2cqw; bottom: 3.6cqw; padding: .5cqw 1.3cqw .7cqw; border: .16cqw solid rgba(255,255,255,.16); border-radius: 1cqw; background: rgba(5, 10, 20, .55); color: #fff; font-family: var(--en); font-weight: 600; line-height: 1; text-align: center; }
.scr-hits small { display: block; font-size: .7cqw; letter-spacing: .18em; color: #9c93c0; margin-bottom: .3cqw; }
.scr-hits b { font-size: 2.4cqw; font-variant-numeric: tabular-nums; }

.tgt, .xhair, .fb-val, .fb-miss { position: absolute; translate: -50% -50%; pointer-events: none; }
.splash { position: absolute; translate: -50% -50%; pointer-events: auto; touch-action: manipulation; }
.tgt {
  width: 18cqw; aspect-ratio: 1; border-radius: 50%; z-index: 3; overflow: hidden;
  border: .45cqw solid var(--g-ink);
  background: repeating-radial-gradient(circle, #ff4f5e 0 11%, var(--g-paper) 11.5% 23%, #ff4f5e 23.5% 36%, var(--g-paper) 36.5% 50%, #ff4f5e 50.5% 65%, var(--g-paper) 65.5% 81%, #ff4f5e 81.5% 100%);
  box-shadow: 0 .5cqw 0 var(--g-ink), 0 1.6cqw 3cqw rgba(0,0,0,.6), 0 0 1.6cqw rgba(255, 79, 94, .33);
}
.tgt::before { content: ""; position: absolute; inset: 6%; border: .12cqw solid rgba(8,16,31,.33); border-radius: 50%; box-shadow: inset 0 0 0 .12cqw rgba(255,255,255,.5); }
.tgt::after { content: ""; position: absolute; inset: 43%; border: .16cqw solid var(--g-ink); border-radius: 50%; background: var(--g-sun); box-shadow: 0 0 0 .16cqw var(--g-paper); }
.tgt.is-enter { animation: target-enter .32s cubic-bezier(.16, 1.55, .4, 1); }
.splash { z-index: 5; width: 18cqw; aspect-ratio: 1; border-radius: 50%; border: .35cqw solid #8e7bff; box-shadow: 0 0 0 .18cqw rgba(255,253,246,.53), 0 0 2cqw rgba(142,123,255,.67); opacity: 0; }
.splash.is-miss { border-color: #9aa6bd; box-shadow: 0 0 0 .18cqw rgba(255,253,246,.3); }
.splash.is-on { animation: paint-pop .42s cubic-bezier(.1, 1.4, .3, 1) forwards; }
.xhair {
  z-index: 6; width: 7.4cqw; aspect-ratio: 1; border-radius: 50%;
  border: .22cqw dashed var(--g-aqua);
  box-shadow: 0 0 0 .22cqw rgba(8,16,31,.8), 0 0 1.8cqw rgba(49,230,196,.6);
}
.xhair::before { content: ""; position: absolute; inset: 14%; border: .14cqw solid #7ff0da; border-radius: 50%; }
.xhair::after { content: ""; position: absolute; inset: 43%; border: .14cqw solid var(--g-ink); border-radius: 50%; background: var(--g-coral); box-shadow: 0 0 0 .2cqw var(--g-paper), 0 0 .9cqw var(--g-coral); }
.xhair i, .xhair b { position: absolute; left: 50%; top: 50%; translate: -50% -50%; }
.xhair i { width: 156%; height: .2cqw; background: linear-gradient(90deg, var(--g-aqua) 0 34%, transparent 34% 66%, var(--g-aqua) 66%); }
.xhair b { width: .2cqw; height: 156%; background: linear-gradient(var(--g-aqua) 0 34%, transparent 34% 66%, var(--g-aqua) 66%); }
.xhair span { position: absolute; right: -2cqw; bottom: -1.9cqw; color: #fff; font-family: var(--en); font-size: .8cqw; font-weight: 600; letter-spacing: .1em; }

.fb { position: absolute; inset: 0; z-index: 8; display: grid; place-items: center; pointer-events: none; opacity: 0; }
.fb span { position: relative; color: var(--g-paper); font-family: var(--en); font-size: 9cqw; font-weight: 600; font-style: italic; letter-spacing: -.04em; -webkit-text-stroke: .35cqw var(--g-ink); paint-order: stroke fill; text-shadow: .5cqw .55cqw 0 var(--g-ink); }
.fb span::before { content: ""; position: absolute; left: 50%; top: 50%; width: 34cqw; aspect-ratio: 1; z-index: -1; translate: -50% -50%; background: repeating-conic-gradient(from 0deg, var(--g-coral) 0 8deg, var(--g-sun) 8deg 16deg); clip-path: polygon(50% 0%,57% 35%,75% 7%,70% 39%,100% 25%,74% 45%,100% 51%,72% 56%,91% 83%,65% 66%,67% 100%,55% 71%,40% 100%,43% 68%,10% 89%,34% 61%,0 58%,31% 50%,0 30%,35% 41%); animation: spin 8s linear infinite; }
.fb.is-on { animation: hit-pop .34s cubic-bezier(.16, 1.5, .44, 1) forwards; }
.fb-val { left: 50%; top: 66%; z-index: 9; padding: .5cqw 1.6cqw; border: .2cqw solid var(--g-ink); border-radius: 99px; background: var(--g-sun); color: var(--g-ink); box-shadow: 0 .4cqw 0 var(--g-ink); font-family: var(--en); font-size: 2.6cqw; font-weight: 600; opacity: 0; rotate: -3deg; }
.fb-val.is-on { animation: score-rise .42s ease-out forwards; }
.fb-miss { left: 50%; top: 53%; z-index: 9; color: var(--g-paper); font-family: var(--en); font-size: 5.4cqw; font-weight: 600; font-style: italic; letter-spacing: -.02em; -webkit-text-stroke: .25cqw var(--g-ink); paint-order: stroke fill; text-shadow: .4cqw .45cqw 0 var(--g-ink); opacity: 0; rotate: -4deg; white-space: nowrap; }
.fb-miss.is-on { animation: hit-pop .34s cubic-bezier(.16, 1.5, .44, 1) forwards; }

/* スマホ: タップで傾き操作を始める案内。操作を始めたら消す */
.scr-start { display: none; position: absolute; left: 50%; bottom: 6%; z-index: 11; translate: -50% 0; pointer-events: none; }
.scr-start span { display: block; padding: 5px 12px; border-radius: 99px; background: rgba(8, 16, 31, .86); border: 1px solid rgba(49, 230, 196, .6); color: #fff; font-size: 11px; font-weight: 700; line-height: 1.5; letter-spacing: .04em; text-align: center; white-space: nowrap; box-shadow: 0 0 0 0 rgba(49, 230, 196, .5); animation: invite 1.8s ease-out infinite; }
.stage.is-touch .scr-start { display: block; }
.stage.is-gyro .scr-start { display: none; }
@keyframes invite { 0% { box-shadow: 0 0 0 0 rgba(49, 230, 196, .5); } 100% { box-shadow: 0 0 0 12px rgba(49, 230, 196, 0); } }

.result { position: absolute; inset: 0; z-index: 12; display: grid; place-items: center; background: rgba(8, 16, 31, .78); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s linear .3s; }
.result.is-on { opacity: 1; visibility: visible; transition: opacity .3s; }
.result-card { min-width: 32cqw; padding: 2.4cqw 3.6cqw 2.6cqw; border: .3cqw solid var(--g-ink); border-radius: 2cqw; background: var(--g-paper); color: var(--g-ink); text-align: center; box-shadow: 0 .8cqw 0 var(--g-ink); font-family: var(--en); line-height: 1.1; }
.result-label { font-size: 1cqw; letter-spacing: .3em; font-weight: 600; color: #8a8e86; }
.result-game { font-family: var(--jp); font-size: 1.6cqw; font-weight: 900; margin: .5cqw 0 1.2cqw; }
.result-rank { display: inline-grid; place-items: center; width: 6cqw; aspect-ratio: 1; border: .3cqw solid var(--g-ink); border-radius: 1.2cqw; background: var(--g-sun); font-size: 3.8cqw; font-weight: 600; }
.result-score { margin-top: 1.2cqw; font-size: 1.6cqw; font-weight: 600; }
.result-score b { font-size: 3.4em; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.result-hits { margin-top: .6cqw; font-size: 1.2cqw; font-weight: 600; letter-spacing: .14em; color: #6a6f78; }
.result-hits b { color: var(--g-ink); }

@keyframes target-enter { from { opacity: 0; transform: scale(.2) rotate(-18deg); } 70% { transform: scale(1.12) rotate(3deg); } to { opacity: 1; transform: scale(1); } }
@keyframes paint-pop { from { opacity: 0; transform: scale(.15) rotate(-35deg); } 58% { opacity: .95; transform: scale(1.25) rotate(8deg); } to { opacity: 0; transform: scale(1.55) rotate(15deg); } }
@keyframes hit-pop { 0% { opacity: 0; transform: scale(.35) rotate(-8deg); } 30% { opacity: 1; } 72% { transform: scale(1.12) rotate(2deg); } 100% { opacity: 1; transform: scale(1) rotate(-1deg); } }
@keyframes score-rise { from { opacity: 0; transform: translateY(80%) scale(.65); } to { opacity: 1; transform: none; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes breathe { 50% { opacity: .6; scale: 1.06; } }
@keyframes drift { 50% { transform: translateY(-1cqw); opacity: .5; } }
@keyframes press { from { opacity: .9; transform: scale(.8); } to { opacity: 0; transform: scale(1.35); } }

