/* ふりむき月見うさぎ DARUMA1025（このページだけで読む） */
html, body { margin: 0; height: 100%; background: #0e1534; color: #fff; font-family: system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif; overflow: hidden; -webkit-tap-highlight-color: transparent; }
#drmHost { position: fixed; inset: 0; }
.drm-nogl { padding: 24px; text-align: center; }
.drm { position: absolute; inset: 0; pointer-events: none; -webkit-user-select: none; user-select: none; }
.drm button, .drm input, .drm a, .drm-card { pointer-events: auto; }
.drm-chip { display: inline-block; padding: 4px 10px; border-radius: 999px; background: rgba(14, 18, 40, .6); font-size: 12px; font-weight: 800; white-space: nowrap; }

/* 鬼のことば */
.drm-say { position: absolute; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 54px); transform: translateX(-50%); max-width: calc(100% - 32px); box-sizing: border-box; padding: 8px 14px; border-radius: 18px; background: rgba(255, 255, 255, .92); color: #2a2440; font-size: 22px; font-weight: 900; letter-spacing: .02em; white-space: nowrap; overflow: hidden; opacity: 0; transition: opacity .2s; box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
.drm-say.is-on { opacity: 1; }
.drm-say span { color: #c9c2da; transition: color .08s; display: inline-block; }
.drm-say span.is-lit { color: #2a2440; }
.drm-say span.is-now { color: #d8344a; transform: translateY(-3px) scale(1.12); }
.drm-say .drm-pause { font-style: normal; color: #c9c2da; }
.drm-say .drm-pause.is-now { color: #d8344a; animation: drmBlink .4s steps(2) infinite; }
.drm-say.is-watch { background: #d8344a; }
.drm-say.is-watch span, .drm-say.is-watch .drm-pause { color: #ffd6de; }
@keyframes drmBlink { 50% { opacity: .2; } }
@media (max-width: 380px) { .drm-say { font-size: 18px; padding: 7px 10px; } }

/* 道のり */
.drm-track { position: absolute; left: 16px; right: 16px; top: calc(env(safe-area-inset-top, 0px) + 104px); height: 18px; }
.drm-track__in { position: absolute; left: 0; right: 26px; top: 7px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .22); }
.drm-track__goal { position: absolute; right: 0; top: -2px; font-style: normal; font-size: 18px; line-height: 1; }
.drm-dot { position: absolute; top: -4px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #a8b4ff; border: 2px solid #0e1534; transition: left .12s linear; }
.drm-dot.is-cpu { background: #8fd3b8; }
.drm-dot.is-me { background: #ffe066; width: 16px; height: 16px; top: -6px; margin-left: -8px; z-index: 2; }
.drm-dot.is-out { opacity: .35; }

/* 見られている */
.drm-eye { position: absolute; inset: 0; opacity: 0; transition: opacity .12s; box-shadow: inset 0 0 90px 30px rgba(216, 52, 74, .55); }
.drm-eye b { position: absolute; left: 50%; top: 34%; transform: translate(-50%, -50%) scale(.8); font-size: 30px; font-weight: 900; color: #fff; text-shadow: 0 3px 0 #d8344a, 0 0 18px rgba(216, 52, 74, .9); transition: transform .15s; }
.drm-eye.is-on { opacity: 1; }
.drm-eye.is-on b { transform: translate(-50%, -50%) scale(1); }

/* 知らせ */
.drm-toasts { position: absolute; left: 16px; right: 16px; top: calc(env(safe-area-inset-top, 0px) + 132px); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.drm-toast { max-width: 100%; box-sizing: border-box; padding: 6px 12px; border-radius: 12px; background: rgba(14, 18, 40, .78); font-size: 13px; font-weight: 700; text-align: center; transition: opacity .5s, transform .5s; }
.drm-toast small { display: block; font-weight: 600; opacity: .8; font-size: 11px; }
.drm-toast.is-out { background: rgba(216, 52, 74, .85); }
.drm-toast.is-gift { background: rgba(255, 160, 80, .9); color: #2a1a08; }
.drm-toast.is-bye { opacity: 0; transform: translateY(-8px); }
.drm-big { position: absolute; left: 16px; right: 16px; top: 42%; text-align: center; opacity: 0; transform: scale(.85); transition: opacity .2s, transform .2s; }
.drm-big.is-on { opacity: 1; transform: none; }
.drm-big b { display: block; font-size: 44px; font-weight: 900; text-shadow: 0 4px 0 rgba(0, 0, 0, .35); }
.drm-big small { display: block; margin-top: 4px; font-size: 14px; font-weight: 700; }
.drm-big.is-out b { color: #ff8ea0; }
.drm-pop { position: absolute; left: 50%; bottom: 210px; transform: translateX(-50%); font-size: 26px; font-weight: 900; color: #8ff0c0; opacity: 0; text-shadow: 0 3px 0 rgba(0, 0, 0, .35); }
.drm-pop.is-on { animation: drmPop 1s ease-out; }
@keyframes drmPop { 0% { opacity: 0; transform: translate(-50%, 10px) scale(.7); } 20% { opacity: 1; transform: translate(-50%, 0) scale(1.1); } 100% { opacity: 0; transform: translate(-50%, -30px); } }

/* 横のボタン */
.drm-side { position: absolute; right: 12px; bottom: calc(env(safe-area-inset-bottom, 0px) + 200px); display: flex; flex-direction: column; gap: 8px; }
.drm-sb { width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(14, 18, 40, .65); color: #fff; font-size: 19px; cursor: pointer; }
.drm-sb.is-on { background: #3fbf7f; }
.drm-sb.is-off { opacity: .45; }
.drm-sb[data-drm="gift"] { background: rgba(255, 160, 80, .9); }

/* すすむ */
.drm-ctl { position: absolute; left: 0; right: 0; bottom: calc(env(safe-area-inset-bottom, 0px) + 18px); display: none; flex-direction: column; align-items: center; }
.drm.is-play .drm-ctl { display: flex; }
.drm-go { width: 132px; height: 132px; border-radius: 50%; border: 5px solid rgba(255, 255, 255, .9); background: radial-gradient(circle at 40% 35%, #ff8fab, #d8344a); color: #fff; box-shadow: 0 8px 0 #8e1f30, 0 12px 26px rgba(0, 0, 0, .4); touch-action: none; cursor: pointer; transition: transform .06s, box-shadow .06s; -webkit-touch-callout: none; }
.drm-go b { display: block; font-size: 26px; font-weight: 900; }
.drm-go small { display: block; font-size: 12px; font-weight: 700; opacity: .9; }
.drm-go.is-down { transform: translateY(6px) scale(.97); box-shadow: 0 2px 0 #8e1f30, 0 6px 16px rgba(0, 0, 0, .4); background: radial-gradient(circle at 40% 35%, #ffb3c6, #e8546a); }
.drm.is-watch .drm-go { border-color: #ffe066; }
.drm-hint { margin: 8px 16px 0; font-size: 11px; font-weight: 700; opacity: .75; text-align: center; }

/* 重ねる札（メニュー・結果） */
.drm-ov { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 56px 16px 16px; box-sizing: border-box; background: rgba(8, 10, 28, .45); pointer-events: auto; }
.drm-ov[hidden] { display: none; }
.drm-card { width: 100%; max-width: 420px; max-height: 100%; overflow-y: auto; box-sizing: border-box; padding: 18px 16px; border-radius: 22px; background: rgba(22, 27, 62, .96); box-shadow: 0 12px 40px rgba(0, 0, 0, .5); text-align: center; -webkit-overflow-scrolling: touch; }
.drm-card h3 { margin: 2px 0 6px; font-size: 22px; font-weight: 900; }
.drm-logo { font-size: 30px !important; line-height: 1.15; color: #ffe9a8; text-shadow: 0 3px 0 #8e1f30; }
.drm-sub { margin: 6px 0; font-size: 13px; opacity: .85; line-height: 1.5; }
.drm-sub a { color: #ffe066; }
.drm-pv { margin: 10px 0 0; font-size: 11px; color: #ffb3c6; }
.drm-sec { margin: 12px 0 0; padding: 12px; border-radius: 16px; background: rgba(255, 255, 255, .07); text-align: left; }
.drm-sec > b { display: block; margin-bottom: 8px; font-size: 14px; }
.drm-opt { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 6px 0; }
.drm-opt > b { font-size: 12px; white-space: nowrap; opacity: .9; }
.drm-seg { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.drm-seg button { padding: 6px 9px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; }
.drm-seg button.is-on { background: #ffe066; color: #2a2440; }
.drm-btn { display: block; width: 100%; margin: 10px 0 0; padding: 12px; border: 0; border-radius: 14px; background: linear-gradient(#ff8fab, #d8344a); color: #fff; font-size: 16px; font-weight: 900; cursor: pointer; box-shadow: 0 4px 0 #8e1f30; }
.drm-btn:disabled { opacity: .45; }
.drm-btn.is-sub { background: rgba(255, 255, 255, .14); box-shadow: none; font-size: 14px; }
.drm-btn.is-share { background: linear-gradient(#ffe066, #f5b52e); color: #2a2440; box-shadow: 0 4px 0 #a8741a; }
.drm-row { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.drm-row .drm-btn { margin: 0; flex: 1; min-width: 0; }
.drm-code { width: 84px; min-width: 0; flex: 0 0 auto; padding: 10px 8px; border: 0; border-radius: 12px; background: #fff; color: #2a2440; font-size: 15px; font-weight: 800; text-align: center; text-transform: uppercase; }
.drm-link { display: inline-block; margin-top: 12px; padding: 4px 8px; border: 0; background: none; color: #c9d2ff; font-size: 13px; text-decoration: underline; cursor: pointer; }
.drm-codebig { display: inline-block; padding: 0 8px; border-radius: 8px; background: #ffe066; color: #2a2440; letter-spacing: .12em; }
.drm-who { margin: 10px 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.drm-who li { padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-size: 13px; font-weight: 700; }
.drm-who small { margin-left: 4px; opacity: .7; }
.drm-tut { margin: 10px 0 0; padding: 0; list-style: none; text-align: left; }
.drm-tut li { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .07); font-size: 13px; line-height: 1.5; }
.drm-tut i { font-style: normal; font-size: 24px; line-height: 1; }
.drm-tut b { color: #ffe066; }
.drm-tbl { width: 100%; margin: 8px 0; border-collapse: collapse; font-size: 13px; }
.drm-tbl td { padding: 6px 4px; border-bottom: 1px solid rgba(255, 255, 255, .08); text-align: left; }
.drm-tbl td:first-child { width: 28px; text-align: center; }
.drm-tbl td:last-child { text-align: right; white-space: nowrap; }
.drm-tbl td small { margin-left: 4px; padding: 0 4px; border-radius: 4px; background: rgba(255, 255, 255, .15); font-size: 10px; }
.drm-tbl tr.is-me td { background: rgba(255, 224, 102, .14); }
.drm-perfect { color: #8ff0c0; font-weight: 800; font-size: 11px; }
.drm-final { margin: 6px 0 0; font-size: 40px; font-weight: 900; color: #ffe066; }
.drm-final small { display: block; font-size: 15px; color: #fff; }
.drm-title { margin: 4px 0 8px; font-size: 15px; font-weight: 800; color: #ffd6e2; }
.drm-gifts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.drm-gift { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border: 0; border-radius: 14px; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; }
.drm-gift i { font-style: normal; font-size: 30px; }
.drm-gift b { font-size: 13px; }
.drm-gift small { font-size: 10px; opacity: .8; line-height: 1.3; }
.drm-gift em { margin-top: 3px; padding: 1px 8px; border-radius: 999px; background: #ffe066; color: #2a2440; font-style: normal; font-size: 11px; font-weight: 800; }
@media (max-width: 380px) { .drm-go { width: 116px; height: 116px; } .drm-opt { flex-wrap: wrap; } .drm-seg { justify-content: flex-start; } }
