/* 抽選会場：白い舞台に虹色。ビンゴの機械から番号が出て、自分の券を削る。スマホが先 */
:root {
  --bg: #ffffff; --bg2: #f6f4ff; --fg: #1b1530; --mut: #6d6787; --line: #e7e3f5; --red: #ff2d55; --gold: #ffb800; --line-green: #06c755;
  --rainbow: linear-gradient(90deg, #ff3b3b, #ff9f1c, #ffd60a, #2fd16b, #22c3ff, #6a5cff, #ff4fd8, #ff3b3b);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { touch-action: manipulation; -webkit-text-size-adjust: 100%; overscroll-behavior: none; }
button, .k-stage, .k-ticket { -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.k-spin, .k-coat, .k-scratch { touch-action: none; -webkit-touch-callout: none; }
/* 11/30 さとし「連打・スライド・回すたびに画面が動く」：遊んでいる間は、指を動かしても画面を動かさない（k.js の touchmove と対）。当選の中身（.k-won-in）は自分でスクロールする */
.k-over:not(.won):not(.lost), .k-stage.k-full, .k-stage.k-lock, .k-stage button, .k-stage [role=button] { touch-action: none; -webkit-touch-callout: none; }
.k-over, .k-stage.k-full { overscroll-behavior: contain; }
.k-over, .k-stage { -webkit-user-select: none; user-select: none; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif; min-height: 100%; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: 6px; background: var(--rainbow); background-size: 200% 100%; animation: rb-move 1.6s linear infinite; z-index: 6; }
#k { max-width: 560px; margin: 0 auto; padding: max(22px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 48px max(16px, env(safe-area-inset-left)); }
.k-wait { text-align: center; color: var(--mut); margin-top: 40vh; }
.rb { background: var(--rainbow); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: rb-move 1.2s linear infinite; }
.k-top { text-align: center; margin-bottom: 14px; }
.k-room { font-size: 12px; letter-spacing: .12em; color: var(--mut); padding: 0 96px; }   /* 右上の「音あり」と重ならない（11/24） */
.k-title { font-size: clamp(26px, 8vw, 38px); font-weight: 900; margin: 4px 0 2px; line-height: 1.2; text-wrap: balance; }
.k-prize { opacity: .9; white-space: pre-wrap; margin: 6px 0 0; }
.k-card { background: var(--bg); border: 2px solid var(--line); border-radius: 18px; padding: 16px; margin: 12px 0; }
.k-label { font-size: 12px; color: var(--mut); letter-spacing: .08em; font-weight: 700; }
.k-count { font-size: clamp(44px, 14vw, 66px); font-weight: 900; font-variant-numeric: tabular-nums; text-align: center; line-height: 1.1; margin: 4px 0; }
.k-center { text-align: center; }
.k-big { font-size: 18px; font-weight: 800; }
.k-sub { color: var(--mut); font-weight: 600; }
.k-kw { display: inline-block; background: var(--rainbow); background-size: 200% 100%; animation: rb-move 1.6s linear infinite; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); font-weight: 900; border-radius: 10px; padding: 2px 14px; margin: 0 4px; }
.k-row { display: flex; gap: 8px; }
.k-row input { flex: 1; min-width: 0; font: inherit; color: var(--fg); background: var(--bg2); border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.k-btn { font: inherit; font-weight: 800; border: 0; border-radius: 12px; padding: 10px 16px; background: var(--fg); color: #fff; cursor: pointer; white-space: nowrap; }
.k-btn.ghost { background: var(--bg); color: var(--fg); border: 2px solid var(--line); }
.k-link { font: inherit; font-size: 13px; color: var(--mut); background: none; border: 0; text-decoration: underline; cursor: pointer; padding: 8px; }
.k-me { margin-top: 10px; min-height: 1.6em; font-weight: 600; }
.k-sound { position: fixed; right: max(8px, env(safe-area-inset-right)); top: max(8px, env(safe-area-inset-top)); z-index: 7; width: 38px; height: 38px; padding: 0; display: grid; place-items: center;
  border: 1px solid rgba(27, 21, 48, .12); border-radius: 50%; background: rgba(255, 255, 255, .78); color: #1b1530; cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 3px 10px rgba(0, 0, 0, .14); -webkit-tap-highlight-color: transparent; }
.k-sound.off { color: #8d8aa0; }
.k-sound:focus-visible { outline: 2px solid #e9c75a; outline-offset: 2px; }
.k-note { white-space: pre-wrap; font-weight: 700; }
.k-foot { text-align: center; color: var(--mut); font-size: 12px; margin-top: 18px; }

/* 舞台 */
.k-stage { position: relative; text-align: center; padding: 22px 12px 18px; border-radius: 24px; overflow: hidden; min-height: 430px; background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--rainbow) border-box; background-size: 100% 100%, 200% 100%; border: 5px solid transparent; animation: rb-move 1.4s linear infinite; }
/* gチェック：虹は「確定」だけの色。ふだんの枠は紺、確定（虹の予告）が出た時だけ虹の枠 */
.k-stage { background: linear-gradient(var(--bg), var(--bg)) padding-box, linear-gradient(135deg, #2a2360, #14102e) border-box; animation: none; }
.k-stage.k-sure { background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--rainbow) border-box; background-size: 100% 100%, 200% 100%; animation: rb-move 1.4s linear infinite; }
.k-stage.short { min-height: 0; padding-bottom: 26px; }
.k-rays { position: absolute; left: 50%; top: 46%; width: 900px; height: 900px; margin: -450px 0 0 -450px; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(255, 59, 59, .13) 0 8deg, transparent 8deg 15deg, rgba(255, 214, 10, .16) 15deg 23deg, transparent 23deg 30deg, rgba(34, 195, 255, .13) 30deg 38deg, transparent 38deg 45deg, rgba(255, 79, 216, .13) 45deg 53deg, transparent 53deg 60deg); animation: k-spin 9s linear infinite; pointer-events: none; }
.k-stage.fast .k-rays { animation-duration: 1.6s; }
.k-stage > :not(.k-rays):not(.k-conf):not(.k-flash):not(.k-band):not(.k-cutin) { position: relative; }
.k-phase:empty { display: none; }
.k-phase { font-size: 14px; letter-spacing: .25em; font-weight: 900; }
.k-head { font-size: clamp(28px, 8.5vw, 42px); font-weight: 900; margin: 6px 0; line-height: 1.2; text-wrap: balance; }
.k-cap { min-height: 1.6em; }
.k-num { font-size: clamp(84px, 28vw, 130px); font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; animation: k-zoom .9s cubic-bezier(.2, 1.6, .4, 1) both, rb-move 1.2s linear infinite; position: absolute !important; left: 0; right: 0; top: 96px; filter: drop-shadow(0 0 14px #fff) drop-shadow(0 6px 0 rgba(27, 21, 48, .18)); }
.k-mwrap { position: relative; width: 300px; max-width: 100%; margin: 4px auto 0; }
.k-machine { display: block; width: 300px; height: 280px; max-width: 100%; }
/* 出てきた玉：機械の手前に飛び出して、番号を見せる */
.k-ball { --c: #ffb800; position: absolute; left: 50%; top: 50%; width: 132px; height: 132px; margin: -74px 0 0 -66px; border-radius: 50%; display: grid; place-items: center; font-size: 46px; font-weight: 900; color: var(--fg); font-variant-numeric: tabular-nums; background: radial-gradient(circle at 50% 50%, #fff 0 44%, transparent 45%), radial-gradient(circle at 32% 26%, #fff 0 8%, var(--c) 30%, var(--c) 100%); box-shadow: 0 0 0 5px #fff, 0 10px 30px rgba(27, 21, 48, .35), 0 0 40px var(--c); opacity: 0; pointer-events: none; }
.k-ball.hold { animation: k-ballin .6s cubic-bezier(.2, 1.5, .4, 1) both; }
.k-ball.hold.bump { animation: k-bump .5s cubic-bezier(.2, 1.8, .4, 1) both; opacity: 1; }
.k-ball.rbw { background: radial-gradient(circle at 50% 50%, #fff 0 44%, transparent 45%), conic-gradient(#ff3b3b, #ff9f1c, #ffd60a, #2fd16b, #22c3ff, #6a5cff, #ff4fd8, #ff3b3b); box-shadow: 0 0 0 5px #fff, 0 0 60px 18px rgba(255, 79, 216, .6), 0 0 90px 30px rgba(255, 214, 10, .5); }
.k-heat { font-size: clamp(30px, 10vw, 46px); font-weight: 900; line-height: 1.2; animation: k-zoom .35s cubic-bezier(.2, 1.6, .4, 1) both; text-shadow: 0 2px 0 #fff; }
.k-heat.rb { animation: k-zoom .35s cubic-bezier(.2, 1.6, .4, 1) both, rb-move .6s linear infinite; }
.k-spin { font: inherit; font-size: 24px; font-weight: 900; color: #fff; text-shadow: 0 2px 3px rgba(0, 0, 0, .35); border: 0; border-radius: 999px; padding: 16px 40px; cursor: pointer; background: var(--rainbow); background-size: 200% 100%; box-shadow: 0 7px 0 rgba(27, 21, 48, .85), 0 14px 26px rgba(27, 21, 48, .3); animation: rb-move 1.2s linear infinite, k-nudge .8s ease-in-out infinite; }
.k-spin:active { transform: translateY(5px); box-shadow: 0 2px 0 rgba(27, 21, 48, .85); }
.k-spin.small { font-size: 14px; padding: 9px 18px; box-shadow: 0 3px 0 rgba(27, 21, 48, .85); animation: rb-move 1.2s linear infinite; }
.k-stage .k-flash { z-index: 3; }
.k-ball.go { animation: k-ballpop 1.15s cubic-bezier(.2, 1.5, .4, 1) both; }
.k-ball.go.quick { animation-duration: .32s; }
.k-ball.mine { box-shadow: 0 0 0 6px #fff, 0 0 0 12px var(--red), 0 0 60px 20px rgba(255, 45, 85, .7); }
.k-board { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; max-height: 132px; overflow: auto; }
.k-board span { min-width: 44px; text-align: center; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .45); font-weight: 900; font-size: 14px; border-radius: 999px; padding: 4px 8px; font-variant-numeric: tabular-nums; animation: k-in .35s ease-out; }
.k-board span.me { outline: 3px solid var(--red); outline-offset: 2px; }
.k-dots { display: flex; justify-content: center; gap: 10px; margin: 18px 0 4px; }
.k-dots i { width: 14px; height: 14px; border-radius: 50%; animation: k-bounce .9s ease-in-out infinite; }
.k-dots i:nth-child(1) { background: #ff3b3b; } .k-dots i:nth-child(2) { background: #ffd60a; animation-delay: .15s; } .k-dots i:nth-child(3) { background: #22c3ff; animation-delay: .3s; }

/* 抽選券 */
.k-ticket { position: relative; margin: 14px 0 4px; border-radius: 18px; padding: 14px 16px 16px; text-align: center; background: linear-gradient(#fffdf3, #fff7d6); border: 3px dashed #e9c75a; box-shadow: 0 6px 18px rgba(27, 21, 48, .08); }
.k-ticket::before, .k-ticket::after { content: ""; position: absolute; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--bg); border: 3px dashed #e9c75a; }
.k-ticket::before { left: -14px; } .k-ticket::after { right: -14px; }
.k-ticket.live { border-style: solid; border-color: var(--red); animation: k-glow .7s ease-in-out infinite alternate; }
.k-tk-head { display: flex; justify-content: space-between; font-size: 12px; font-weight: 800; color: #9a7a12; letter-spacing: .1em; }
.k-tk-name { letter-spacing: 0; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k-tk-no { font-variant-numeric: tabular-nums; line-height: 1; margin: 6px 0 2px; }
.k-tk-no small { font-size: 18px; font-weight: 900; margin-right: 6px; color: #9a7a12; }
.k-tk-no b { font-size: clamp(54px, 17vw, 76px); font-weight: 900; letter-spacing: .04em; }
.k-tk-pct { font-weight: 800; color: #9a7a12; }
.k-tk-body { margin-top: 10px; }
.k-tk-wait { background: rgba(27, 21, 48, .06); border-radius: 12px; padding: 14px 10px; font-weight: 700; color: var(--mut); }
.k-call-me { font-size: 20px; font-weight: 900; margin-bottom: 8px; }
.k-scratch { position: relative; width: 300px; max-width: 100%; aspect-ratio: 300 / 110; margin: 0 auto 10px; border-radius: 14px; overflow: hidden; background: #fff; border: 2px solid #e9c75a; touch-action: none; }
.k-under { position: absolute; inset: 0; display: grid; place-items: center; }
.k-coat { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; transition: opacity .35s; }
.k-coat.gone { opacity: 0; pointer-events: none; }
.k-tk-res { font-size: clamp(40px, 13vw, 56px); font-weight: 900; line-height: 1.15; }
.k-tk-res.lose { color: #8d8aa0; }
.k-tk-roll { font-size: 13px; color: var(--mut); font-weight: 700; margin: 2px 0 8px; }
.k-line { display: block; margin: 12px auto 6px; max-width: 340px; background: var(--line-green); color: #fff; font-weight: 900; font-size: 18px; text-decoration: none; border-radius: 999px; padding: 15px 18px; box-shadow: 0 6px 0 #04903d, 0 12px 24px rgba(6, 199, 85, .4); animation: k-nudge 1s ease-in-out infinite; }

/* 当たりの演出（画面いっぱい） */
.k-over { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; overflow: hidden; text-align: center; padding: 20px; }
.k-over.black { background: #000; animation: k-shut .16s ease-in both; }
.k-over.kyuin { background: #0a0613; }
.k-over.kyuin .k-rays { top: 50%; background: repeating-conic-gradient(#ff3b3b 0 8deg, #ffd60a 8deg 16deg, #2fd16b 16deg 24deg, #22c3ff 24deg 32deg, #6a5cff 32deg 40deg, #ff4fd8 40deg 48deg); animation: k-spin .7s linear infinite, k-throb .21s ease-in-out infinite alternate; opacity: .9; width: 1600px; height: 1600px; margin: -800px 0 0 -800px; -webkit-mask: radial-gradient(circle, transparent 12%, #000 40%); mask: radial-gradient(circle, transparent 12%, #000 40%); }
.k-q { position: relative; font-size: clamp(110px, 40vw, 220px); font-weight: 900; line-height: 1; animation: k-throb .21s ease-in-out infinite alternate, rb-move .5s linear infinite; filter: drop-shadow(0 0 30px #fff); }
.k-over.won { background: #fff; animation: k-shake .6s cubic-bezier(.36, .07, .19, .97) both; }
.k-burst { position: absolute; left: 50%; top: 38%; width: 1500px; height: 1500px; margin: -750px 0 0 -750px; background: repeating-conic-gradient(#ffd60a 0 6deg, #fff 6deg 12deg, #ff9fd8 12deg 18deg, #fff 18deg 24deg, #8fe3ff 24deg 30deg, #fff 30deg 36deg); border-radius: 50%; animation: k-spin 5s linear infinite; pointer-events: none; opacity: .75; }
.k-won-in { position: relative; z-index: 4; max-width: 520px; width: 100%; }
.k-bang { font-size: clamp(96px, 34vw, 190px); font-weight: 900; line-height: 1; color: var(--red); letter-spacing: .04em; -webkit-text-stroke: 5px #fff; text-shadow: 0 8px 0 #ffd60a, 0 16px 0 #ff9f1c, 0 26px 40px rgba(255, 45, 85, .5); animation: k-slam .55s cubic-bezier(.2, 1.8, .4, 1) both; }
.k-ome { font-size: clamp(40px, 13vw, 72px); font-weight: 900; line-height: 1.2; margin-top: 18px; animation: k-zoom .6s .5s cubic-bezier(.2, 1.6, .4, 1) both, rb-move .8s linear infinite; filter: drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff) drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff); }
.k-won-no { font-size: 20px; font-weight: 900; margin: 10px 0 6px; background: #fff; display: inline-block; padding: 4px 16px; border-radius: 999px; animation: k-in .4s 1s both; }
.k-won-in .k-line, .k-won-in .k-note, .k-won-in .k-btn { animation: k-in .4s 1.3s both; }
.k-won-in .k-line { animation: k-in .4s 1.3s both, k-nudge 1s 1.8s ease-in-out infinite; }
.k-won-in .k-note { background: rgba(255, 255, 255, .9); border-radius: 12px; padding: 8px 12px; }
.k-won-in .k-btn { margin-top: 10px; }
.k-flash { position: absolute; inset: 0; background: #fff; animation: k-flash 1s ease-out forwards; pointer-events: none; z-index: 5; }
.k-conf { position: absolute; top: -16px; width: 10px; height: 16px; border-radius: 2px; pointer-events: none; animation: k-fall linear forwards; z-index: 3; }
.k-conf.star { width: auto; height: auto; background: none !important; font-size: 22px; }

/* 当選の前：暗い中で金の光がふくらみ、ひびが走る */
.k-over.dark { background: #000; }
.k-glow { position: absolute; left: 50%; top: 50%; width: 60vmax; height: 60vmax; margin: -30vmax 0 0 -30vmax; border-radius: 50%; background: radial-gradient(circle, #fff 0, #ffe066 12%, rgba(255, 150, 0, .6) 32%, transparent 62%); opacity: 0; transform: scale(.2); }
.k-glow.on { animation: k-glowbeat .55s ease-out both; }
.k-crks { position: absolute; left: 50%; top: 50%; }
.k-crks i { position: absolute; left: 0; top: 0; width: 5px; height: var(--h); margin-left: -2px; background: linear-gradient(#fff, #ffe066 40%, rgba(255, 180, 0, 0)); transform-origin: 50% 0; transform: rotate(var(--a)) scaleY(0); clip-path: polygon(0 0, 100% 0, 220% 22%, -80% 45%, 180% 70%, 0 100%); animation: k-crk .22s ease-out forwards; filter: drop-shadow(0 0 6px #ffd400); }
@keyframes k-glowbeat { 0% { opacity: 0; transform: scale(.2); } 30% { opacity: 1; transform: scale(var(--s)); } 100% { opacity: .35; transform: scale(calc(var(--s) * .8)); } }
@keyframes k-crk { to { transform: rotate(var(--a)) scaleY(1); } }
/* 抽選券の発行 */
.k-ticket-wrap.issue input { display: block; width: 100%; font: inherit; font-size: 18px; text-align: center; color: var(--fg); background: var(--bg2); border: 2px solid var(--line); border-radius: 12px; padding: 12px; margin: 10px 0 14px; }
.k-ticket-wrap.issue .k-spin { font-size: 22px; padding: 16px 30px; }
.k-ticket-wrap.issue .k-spin:disabled { opacity: .5; animation: none; }
.k-over.issue { background: #fff; }
.k-over.issue .k-rays { top: 50%; }
.k-is-head { font-size: clamp(34px, 11vw, 52px); margin-bottom: 4px; }
.k-slot { width: min(320px, 90%); height: 14px; margin: 0 auto; border-radius: 8px; background: #1b1530; box-shadow: inset 0 4px 6px rgba(0, 0, 0, .6); position: relative; z-index: 2; }
.k-is-ticket { width: min(300px, 86%); margin: -6px auto 12px; animation: k-print 1s cubic-bezier(.3, .9, .4, 1) both; transform-origin: top center; }
.k-is-no { font-size: 20px; font-weight: 900; color: #9a7a12; margin: 6px 0 4px; }
.k-is-num { display: flex; justify-content: center; gap: 10px; font-variant-numeric: tabular-nums; }
.k-is-num b { font-size: 76px; line-height: 1; font-weight: 900; opacity: 0; transform: scale(3); }
.k-is-num b.on { opacity: 1; transform: none; transition: transform .22s cubic-bezier(.2, 1.8, .4, 1), opacity .1s; }
.k-is-num.done b { color: var(--red); animation: k-pulse .4s ease-in-out infinite alternate; }
.k-over.issue .k-spin { margin-top: 14px; }
.k-line.gift { background: linear-gradient(#ff5a7a, #ff2d55); box-shadow: 0 6px 0 #b3002a, 0 12px 24px rgba(255, 45, 85, .4); }
@keyframes k-print { 0% { clip-path: inset(0 0 100% 0); transform: translateY(-20px); } 100% { clip-path: inset(0 0 0 0); transform: none; } }
/* パチスロ風の文字：太い字・金の塗り・赤い縁・ななめ */
.pachi { font-family: "Dela Gothic One", "Hiragino Sans", sans-serif; font-weight: 400; font-style: normal; display: inline-block; transform: skewX(-8deg); letter-spacing: .02em; color: #ffd400; background: linear-gradient(180deg, #fffbd0 0%, #ffe600 38%, #ff9500 62%, #ffe27a 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(2px 0 0 #8a0014) drop-shadow(-2px 0 0 #8a0014) drop-shadow(0 2px 0 #8a0014) drop-shadow(0 -2px 0 #8a0014) drop-shadow(0 5px 0 #3a0008) drop-shadow(0 0 12px rgba(255, 60, 0, .55)); }
.pachi.rainbow { background: var(--rainbow); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; animation: rb-move .6s linear infinite; filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff) drop-shadow(0 5px 0 #1b1530) drop-shadow(0 0 14px rgba(255, 79, 216, .6)); }
.k-cap.pachi, .k-head.pachi { display: block; }
.k-title { font-family: "Dela Gothic One", "Hiragino Sans", sans-serif; font-weight: 400; }
.k-num.pachi { animation: k-zoomS .9s cubic-bezier(.2, 1.6, .4, 1) both; }
.k-heat.pachi { font-size: clamp(40px, 13vw, 60px); animation: k-zoomS .35s cubic-bezier(.2, 1.6, .4, 1) both; text-shadow: none; }
.k-bang.pachi { -webkit-text-stroke: 0; text-shadow: none; color: #ff1f3d; background: linear-gradient(180deg, #ff8fa0 0%, #ff1f3d 45%, #b30020 100%); -webkit-background-clip: text; background-clip: text; filter: drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff) drop-shadow(0 8px 0 #ffd400) drop-shadow(0 14px 0 #a66b00) drop-shadow(0 0 30px rgba(255, 45, 85, .6)); animation: k-slamS .55s cubic-bezier(.2, 1.8, .4, 1) both; }
.k-ome.pachi { animation: k-zoomS .6s .5s cubic-bezier(.2, 1.6, .4, 1) both, rb-move .6s linear infinite; }
.k-q.pachi { animation: k-throbS .21s ease-in-out infinite alternate, rb-move .5s linear infinite; }
.k-tk-res.pachi { font-size: clamp(44px, 14vw, 62px); }
.k-combo.pachi { font-size: 24px; display: block; margin: 2px 0 8px; }
.k-spin.pachi { transform: none; -webkit-text-fill-color: #fff; color: #fff; filter: none; font-family: "Dela Gothic One", "Hiragino Sans", sans-serif; background: var(--rainbow); background-size: 200% 100%; -webkit-background-clip: border-box; background-clip: border-box; }
/* 帯：黒地に金のふち。赤・金・虹 */
.k-band.red { background: repeating-linear-gradient(135deg, #c40018 0 18px, #e8001f 18px 36px); }
.k-band.gold { background: repeating-linear-gradient(135deg, #e0a000 0 18px, #ffd23f 18px 36px); }
.k-band.green { background: repeating-linear-gradient(135deg, #0a8a3a 0 18px, #19b84f 18px 36px); }
/* 保留の玉（左上）：予告の段ごとに色が変わる */
.k-hold { position: absolute !important; left: 14px; top: 12px; z-index: 5; display: grid; justify-items: center; gap: 2px; }
.k-hold i { display: block; width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0 30%, #d9dce6 70%, #9ea3b3); box-shadow: 0 0 0 3px #fff, 0 3px 6px rgba(0, 0, 0, .3); }
.k-hold small { font: 900 10px/1 sans-serif; color: var(--fg); background: #fff; border-radius: 999px; padding: 2px 6px; }
.k-hold.blue i { background: radial-gradient(circle at 35% 30%, #fff 0 15%, #3b7bff 50%, #0a3fd0); box-shadow: 0 0 0 3px #fff, 0 0 14px #1f5bff; }
.k-hold.green i { background: radial-gradient(circle at 35% 30%, #fff 0 15%, #2fd16b 50%, #0a8a3a); box-shadow: 0 0 0 3px #fff, 0 0 14px #19b84f; }
.k-hold.red i { background: radial-gradient(circle at 35% 30%, #fff 0 15%, #ff3b3b 50%, #a0001a); box-shadow: 0 0 0 3px #fff, 0 0 18px #ff2d55; }
.k-hold.gold i { background: radial-gradient(circle at 35% 30%, #fffde0 0 15%, #ffd400 50%, #a66b00); box-shadow: 0 0 0 3px #fff, 0 0 22px 4px #ffc400; }
.k-hold.rainbow i { background: conic-gradient(#ff3b3b, #ff9f1c, #ffd60a, #2fd16b, #22c3ff, #6a5cff, #ff4fd8, #ff3b3b); box-shadow: 0 0 0 3px #fff, 0 0 26px 6px rgba(255, 79, 216, .7); }
.k-hold.chg i { animation: k-holdchg .5s cubic-bezier(.2, 1.8, .4, 1); }
@keyframes k-holdchg { 0% { transform: scale(.3) rotate(-180deg); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .k-hold.chg i { animation: none; } }
.k-band.rainbow { background: var(--rainbow); background-size: 200% 100%; }
.k-band { border-top: 5px solid #ffd400; border-bottom: 5px solid #ffd400; }
.k-band .pachi { font-size: clamp(38px, 12vw, 58px); padding: 0 6px; }
.k-band.red .pachi { background: linear-gradient(180deg, #fff 0%, #fff6b0 50%, #ffd400 100%); -webkit-background-clip: text; background-clip: text; }
/* 玉：出口（右下）から出て、手前に大きくなる。金か白 */
.k-ball.out { animation: k-out 1s cubic-bezier(.3, 0, .3, 1) both; }
.k-ball.out.gold { animation: k-out 1s cubic-bezier(.3, 0, .3, 1) both, k-pulse .5s 1s ease-in-out infinite alternate; }
@keyframes k-out { 0% { opacity: 1; transform: translate(90px, 120px) scale(.16); } 45% { opacity: 1; transform: translate(90px, 150px) scale(.2); } 100% { opacity: 1; transform: none; } }
.k-band.blue { background: repeating-linear-gradient(135deg, #0a3fd0 0 18px, #1f5bff 18px 36px); }
.k-ball.gold, .k-ball.white { margin-top: -84px; }
.k-ball.gold { background: radial-gradient(circle at 32% 26%, #fffde0 0 10%, #ffe14d 28%, #ffb800 58%, #a66b00 100%); box-shadow: 0 0 0 5px #fff, 0 0 50px 16px rgba(255, 196, 0, .85), 0 0 110px 40px rgba(255, 140, 0, .5); animation: k-ballin .6s cubic-bezier(.2, 1.5, .4, 1) both, k-pulse .5s .6s ease-in-out infinite alternate; }
.k-ball.white { background: radial-gradient(circle at 32% 26%, #fff 0 18%, #eef0f6 50%, #b9bdc9 100%); box-shadow: 0 0 0 5px #fff, 0 10px 30px rgba(27, 21, 48, .35); }
@keyframes k-zoomS { 0% { transform: skewX(-8deg) scale(2.6); opacity: 0; } 100% { transform: skewX(-8deg) scale(1); opacity: 1; } }
@keyframes k-slamS { 0% { transform: skewX(-8deg) scale(5) rotate(-14deg); opacity: 0; } 70% { transform: skewX(-8deg) scale(.9) rotate(2deg); opacity: 1; } 100% { transform: skewX(-8deg) scale(1) rotate(-4deg); } }
@keyframes k-throbS { from { transform: skewX(-8deg) scale(1); } to { transform: skewX(-8deg) scale(1.14); } }
@keyframes k-pulse { from { transform: scale(1); } to { transform: scale(1.08); } }
/* ゲームの部品：メーター・連打・帯・ひび・破片・粉・コイン */
.k-meter { width: min(300px, 86%); height: 22px; margin: 8px auto 4px; border-radius: 999px; background: #ece9f7; border: 3px solid var(--fg); overflow: hidden; }
.k-meter i { display: block; height: 100%; width: 0; background: var(--rainbow); background-size: 200% 100%; animation: rb-move .6s linear infinite; transition: width .08s linear; }
.k-combo { min-height: 30px; font-size: 22px; font-weight: 900; color: var(--red); font-style: italic; }
.k-combo.pop { animation: k-bump .18s ease-out both; }
.k-spin.hit { animation: rb-move 1.2s linear infinite, k-hit .12s ease-out; }
.k-ball { overflow: hidden; }
.k-ball.trem { animation: k-trem .08s linear infinite; opacity: 1; }
.k-crack { position: absolute; left: 50%; top: 50%; width: 3px; height: 74px; margin: -70px 0 0 -1px; background: linear-gradient(#1b1530, #1b1530 60%, transparent); transform-origin: 50% 70px; clip-path: polygon(0 0, 100% 0, 180% 30%, -40% 55%, 140% 80%, 0 100%); width: 6px; opacity: .8; }
.k-shard { position: absolute; left: 50%; top: 50%; width: 22px; height: 26px; margin: -20px 0 0 -11px; clip-path: polygon(50% 0, 100% 60%, 30% 100%, 0 40%); animation: k-shard .8s cubic-bezier(.1, .7, .3, 1) forwards; pointer-events: none; z-index: 3; }
.k-band { position: absolute !important; left: -10%; right: -10%; top: 38%; padding: 8px 0; color: #fff; font-size: clamp(30px, 10vw, 46px); font-weight: 900; font-style: italic; white-space: nowrap; text-shadow: 0 3px 0 rgba(0, 0, 0, .35); transform: rotate(-6deg); animation: k-band 1.1s cubic-bezier(.2, .8, .3, 1) both; z-index: 4; box-shadow: 0 6px 0 rgba(27, 21, 48, .8), 0 -6px 0 rgba(27, 21, 48, .8); overflow: hidden; pointer-events: none; }
.k-band.rbw { background: var(--rainbow); background-size: 200% 100%; }
.k-band span { display: inline-block; animation: k-bandtxt 1.1s linear both; }
.k-strobe { position: fixed; inset: 0; z-index: 15; pointer-events: none; background: var(--rainbow); background-size: 200% 100%; opacity: 0; will-change: opacity; animation: k-strobe 1s steps(8) both; }   /* 17回目（gemini「レース・ルーレット当たりで 0.3〜0.5 秒止まる」）：画面全体の重ね方（mix-blend）と虹の流れ（毎コマ描き直し）をやめ、点滅だけ */
.k-shake2 { animation: k-shake2 .6s cubic-bezier(.36, .07, .19, .97) both, rb-move 1.4s linear infinite; }
.k-shake { animation: k-shake .4s cubic-bezier(.36, .07, .19, .97) both, rb-move 1.4s linear infinite; }
.k-ticket.fly { animation: k-fly .7s cubic-bezier(.2, 1.5, .4, 1) both, k-glow .7s .7s ease-in-out infinite alternate; }
.k-ticket.sad { animation: k-sad .5s ease-in-out both; filter: grayscale(.5); }
.k-dust { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #c9ccd6; pointer-events: none; animation: k-dust .6s ease-out forwards; }
.k-scratch.leak { animation: k-leak .5s ease-in-out infinite alternate; border-color: var(--gold); }
.k-scratch.leak .k-under { background: radial-gradient(circle, #fff7c2, #ffe066); }
.k-conf.coin { background: none !important; width: auto; height: auto; font-size: 20px; color: #a66b00; }
.k-conf.coin::before { content: ""; position: absolute; inset: -5px -6px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6b0, #ffc400 55%, #c98a00); box-shadow: inset 0 0 0 2px #fff3a0; z-index: -1; }
.k-frame { position: absolute; inset: 8px; border: 8px solid transparent; border-radius: 26px; background: linear-gradient(120deg, #ffe27a, #b8860b, #fff3b0, #d4a017, #ffe27a) border-box; -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; background-size: 300% 100%; animation: rb-move 2s linear infinite; pointer-events: none; z-index: 4; }
.k-ribbon { display: inline-block; background: linear-gradient(#ffd60a, #ff9f1c); color: #5a3200; font-weight: 900; letter-spacing: .2em; padding: 4px 22px; border-radius: 999px; box-shadow: 0 4px 0 #b86b00; margin-bottom: 10px; animation: k-in .4s .3s both; }
@keyframes k-hit { from { transform: scale(.9) translateY(4px); } to { transform: none; } }
@keyframes k-trem { 0% { transform: translate(-3px, 1px) rotate(-2deg); } 50% { transform: translate(3px, -1px) rotate(2deg); } 100% { transform: translate(-2px, -2px) rotate(-1deg); } }
@keyframes k-shard { to { transform: translate(var(--x), var(--y)) rotate(540deg) scale(.4); opacity: 0; } }
@keyframes k-band { 0% { transform: translateX(-110%) rotate(-6deg); } 18%, 80% { transform: translateX(0) rotate(-6deg); } 100% { transform: translateX(110%) rotate(-6deg); } }
@keyframes k-bandtxt { from { transform: translateX(8%); } to { transform: translateX(-8%); } }
@keyframes k-strobe { 0%, 25%, 50%, 75% { opacity: .5; } 12%, 37%, 62%, 87%, 100% { opacity: 0; } }
@keyframes k-shake2 { 10%, 90% { transform: translate(-4px, 2px) rotate(-.5deg); } 20%, 80% { transform: translate(10px, -5px) rotate(1deg); } 30%, 50%, 70% { transform: translate(-16px, 6px) rotate(-1.2deg); } 40%, 60% { transform: translate(16px, -6px) rotate(1.2deg); } }
@keyframes k-fly { 0% { transform: translateY(-260px) scale(.2) rotate(-25deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes k-sad { 20%, 60% { transform: rotate(-2deg); } 40%, 80% { transform: rotate(2deg); } }
@keyframes k-dust { to { transform: translate(var(--x), 46px); opacity: 0; } }
@keyframes k-leak { from { box-shadow: 0 0 0 0 rgba(255, 196, 0, .6); } to { box-shadow: 0 0 34px 10px rgba(255, 196, 0, .9), 0 0 70px 20px rgba(255, 79, 216, .45); } }
@keyframes rb-move { to { background-position: 200% 0, 200% 0; } }
@keyframes k-spin { to { transform: rotate(360deg); } }
@keyframes k-zoom { 0% { transform: scale(2.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes k-slam { 0% { transform: scale(5) rotate(-14deg); opacity: 0; } 70% { transform: scale(.9) rotate(2deg); opacity: 1; } 100% { transform: scale(1) rotate(-4deg); } }
@keyframes k-ballpop { 0% { opacity: 0; transform: translateY(40px) scale(.15) rotate(-200deg); } 22% { opacity: 1; transform: translateY(0) scale(1.18) rotate(0); } 34%, 82% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: translateY(150px) scale(.3); } }
@keyframes k-ballin { 0% { opacity: 0; transform: translateY(60px) scale(.15) rotate(-260deg); } 60% { opacity: 1; transform: translateY(0) scale(1.2) rotate(0); } 100% { opacity: 1; transform: scale(1); } }
@keyframes k-bump { 0% { opacity: 1; transform: scale(1.5); } 100% { opacity: 1; transform: scale(1); } }
@keyframes k-throb { from { transform: scale(1); } to { transform: scale(1.14); } }
@keyframes k-shake { 10%, 90% { transform: translate(-3px, 0); } 20%, 80% { transform: translate(7px, -3px); } 30%, 50%, 70% { transform: translate(-12px, 4px); } 40%, 60% { transform: translate(12px, -4px); } }
@keyframes k-shut { from { transform: scaleY(0); opacity: .6; } to { transform: scaleY(1); opacity: 1; } }
@keyframes k-glow { from { box-shadow: 0 0 0 0 rgba(255, 45, 85, .5), 0 6px 18px rgba(27, 21, 48, .08); } to { box-shadow: 0 0 0 10px rgba(255, 45, 85, 0), 0 0 34px rgba(255, 45, 85, .55); } }
@keyframes k-bounce { 0%, 100% { transform: translateY(0); opacity: .6; } 50% { transform: translateY(-12px); opacity: 1; } }
@keyframes k-in { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes k-flash { from { opacity: 1; } to { opacity: 0; } }
@keyframes k-fall { to { transform: translateY(110vh) rotate(900deg); opacity: .4; } }
@keyframes k-nudge { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .k-rays, .k-burst, .k-dots i, .rb, .k-stage, body::before, .k-q, .k-line, .k-ticket.live { animation: none !important; } .k-conf { display: none; } }

[hidden] { display: none !important; }

/* ガラポン（立体）：絵と同じ色と形。8枚の板＋前と後ろの八角で、厚みのある箱を組む */
.k-m3d { position: relative; perspective: 900px; }
.k-rig { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateY(-24deg) rotateX(7deg); }
.k-rig > i, .k-drum > i { position: absolute; display: block; }
.k-drum { position: absolute; left: 150px; top: 118px; width: 0; height: 0; transform-style: preserve-3d; }
.k-side { left: -41px; top: -32px; width: 82px; height: 64px; background: linear-gradient(#ffe46a 0 9%, #8a0012 9% 12%, #e2102c 12% 50%, #9b0017 88%, #8a0012 88% 91%, #ffd400 91%); box-shadow: inset 0 0 0 1px rgba(0,0,0,.35); backface-visibility: hidden; }
.k-face { left: -106px; top: -106px; width: 212px; height: 212px; clip-path: polygon(29.3% 0, 70.7% 0, 100% 29.3%, 100% 70.7%, 70.7% 100%, 29.3% 100%, 0 70.7%, 0 29.3%);
  background: repeating-conic-gradient(from 22.5deg, rgba(255,212,0,.75) 0 1.2deg, transparent 1.2deg 45deg), radial-gradient(circle at 36% 30%, #ff6a7c 0, #d0001e 50%, #7a0012 86%, #ffd400 86.5%); }
.k-face.back { background: radial-gradient(circle, #9b0017 0 84%, #c79a00 84.5%); }
.k-face u { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff, #fff3a0 45%, #b8860b); }
.k-hub { left: -28px; top: -28px; width: 56px; height: 56px; border-radius: 50%; background: radial-gradient(circle at 36% 30%, #fffbe0, #ffc400 50%, #a66b00); border: 3px solid #fff; box-sizing: border-box; box-shadow: 0 3px 8px rgba(0,0,0,.4); }
.k-arm { left: -5px; top: -74px; width: 10px; height: 74px; border-radius: 5px; background: linear-gradient(90deg, #6a4a2a, #3a2a1a); }
.k-arm b { position: absolute; left: -9px; top: -13px; width: 28px; height: 28px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffb3c0, #ff2d55 55%, #a0102e); border: 3px solid #fff; box-sizing: border-box; box-shadow: 0 4px 8px rgba(0,0,0,.4); }
.k-leg { top: 118px; width: 16px; height: 140px; background: linear-gradient(90deg, #7a3a00, #5a2a00); border-radius: 4px; transform-origin: top center; }
.k-leg.l { left: 132px; transform: translateZ(-20px) rotate(18deg); } .k-leg.r { left: 152px; transform: translateZ(-20px) rotate(-18deg); }
.k-base { left: 30px; top: 250px; width: 240px; height: 22px; border-radius: 10px; background: linear-gradient(#ffd85a, #a66b00); box-shadow: 0 14px 22px rgba(90,42,0,.35); transform: translateZ(10px); }
.k-tray { left: 206px; top: 234px; width: 68px; height: 20px; border-radius: 50%; background: #fff3c0; border: 3px solid #a66b00; box-sizing: border-box; transform: translateZ(40px); }
.k-exit { left: 226px; top: 212px; width: 28px; height: 30px; border-radius: 6px; background: #3a2a1a; transform: translateZ(20px); }
.k-streak { left: 32px; top: 0; width: 236px; height: 236px; border-radius: 50%; border: 4px solid transparent; border-top-color: rgba(255,255,255,.85); border-right-color: rgba(255,255,255,.4); opacity: 0; transition: opacity .2s; animation: kStreak .35s linear infinite; transform: translateZ(40px); }
@keyframes kStreak { to { transform: translateZ(40px) rotate(360deg); } }
/* LINEログインで参加 */
.k-line.k-login { position: relative; z-index: 1; }
.k-logged { color: #04903d; font-weight: 900; font-size: 14px; margin: 6px 0; }
.k-tk-no.member b { font-size: clamp(22px, 8vw, 36px); white-space: nowrap; letter-spacing: 0; }
.k-is-num.member b { font-size: clamp(17px, 6vw, 25px); min-width: 0; width: auto; margin: 0; padding: 0; }
.k-is-num.member { gap: 1px; flex-wrap: nowrap; }
/* 参加枠 */
.k-slots { position: relative; margin: 12px auto; max-width: 460px; box-sizing: border-box; padding: 18px 16px 16px; border-radius: 20px; text-align: center; color: #fff; overflow: hidden;
  background: linear-gradient(150deg, #24170a, #0d0b16 55%, #24170a); border: 3px solid #e7b53c; box-shadow: 0 8px 22px rgba(60, 35, 0, .3); }
.k-slots::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(110deg, transparent 35%, rgba(255, 236, 160, .28) 50%, transparent 65%); animation: k-slots-shine 2.6s linear infinite; }
@keyframes k-slots-shine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.k-slots-num { display: flex; justify-content: center; align-items: baseline; gap: 6px; font-weight: 900; font-variant-numeric: tabular-nums; }
.k-slots-num b { font-size: clamp(46px, 16vw, 72px); line-height: 1; color: #ffd84d; }
.k-slots-num small, .k-slots-num span { font-size: 17px; }
.k-slots-bar { height: 16px; margin-top: 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.k-slots-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffb300, #fff3a0); transition: width .5s; }
.k-slots.half .k-slots-bar i { background: linear-gradient(90deg, #ff6a00, #ffd84d); }
.k-slots.few { border-color: #ff2d55; }
.k-slots.few .k-slots-num b { color: #ff4d6d; animation: k-pulse .4s ease-in-out infinite alternate; }
.k-slots.few .k-slots-bar i { background: #ff2d55; }
.k-slots-flag { font-size: 18px; color: #ff4d6d; margin-bottom: 4px; }
.k-slots.end { border-color: #777; }
.k-slots.end::after { display: none; }
.k-slots-end { font-size: 42px; color: #bbb; }
@media (prefers-reduced-motion: reduce) { .k-slots::after, .k-slots.few .k-slots-num b { animation: none !important; } }
/* 抽選券：本券＋ミシン目＋半券。左右の切り欠きで券の形に */
.k-ticket.has-card { padding: 12px; }
.k-mc { --ink: #fff7e0; --a: #b3001b; --b: #e3263f; --edge: #ffd76a; --cut: var(--bg, #fff);
  position: relative; width: 100%; max-width: 380px; aspect-ratio: 2.15; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 27%;
  filter: drop-shadow(0 8px 14px rgba(60, 0, 10, .3)); color: var(--ink); text-align: left; }
.k-mc.t1 { --ink: #3a2705; --a: #b9862b; --b: #f7dc86; --edge: #fff0b5; }
.k-mc.t2 { --ink: #fff; --a: #4a1a8c; --b: #0f8aa0; --edge: #ffe27a; }
.k-mc-main, .k-mc-stub { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--a), var(--b) 55%, var(--a));
  -webkit-mask: radial-gradient(circle at 0 50%, transparent 11px, #000 12px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 0, transparent 11px, #000 12px) right top / 50% 51% no-repeat, radial-gradient(circle at 100% 100%, transparent 11px, #000 12px) right bottom / 50% 51% no-repeat;
          mask: radial-gradient(circle at 0 50%, transparent 11px, #000 12px) left / 51% 100% no-repeat, radial-gradient(circle at 100% 0, transparent 11px, #000 12px) right top / 50% 51% no-repeat, radial-gradient(circle at 100% 100%, transparent 11px, #000 12px) right bottom / 50% 51% no-repeat; }
.k-mc-main { isolation: isolate; border-radius: 10px 0 0 10px; padding: 7% 7% 6% 9%; display: grid; align-content: space-between; gap: 2px; }
.k-mc-stub { border-radius: 0 10px 10px 0; display: grid; place-items: center; align-content: center; gap: 2px; padding: 6px 4px; text-align: center;
  -webkit-mask: radial-gradient(circle at 0 0, transparent 11px, #000 12px) left top / 50% 51% no-repeat, radial-gradient(circle at 0 100%, transparent 11px, #000 12px) left bottom / 50% 51% no-repeat, radial-gradient(circle at 100% 50%, transparent 11px, #000 12px) right / 51% 100% no-repeat;
          mask: radial-gradient(circle at 0 0, transparent 11px, #000 12px) left top / 50% 51% no-repeat, radial-gradient(circle at 0 100%, transparent 11px, #000 12px) left bottom / 50% 51% no-repeat, radial-gradient(circle at 100% 50%, transparent 11px, #000 12px) right / 51% 100% no-repeat; }
.k-mc-stub::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; border-left: 3px dotted var(--edge); opacity: .9; }
.k-mc-main::after { content: ""; position: absolute; inset: 6px 6px 6px 6px; border: 1.5px solid var(--edge); border-radius: 6px; opacity: .55; pointer-events: none; }
.k-mc-pattern { position: absolute; inset: 0; z-index: -2; opacity: .18;
  background: repeating-linear-gradient(45deg, transparent 0 7px, var(--edge) 7px 8px), repeating-linear-gradient(-45deg, transparent 0 7px, var(--edge) 7px 8px); }
.k-mc-foil { position: absolute; inset: -20%; z-index: -1; mix-blend-mode: screen; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .1) 40%, rgba(255, 240, 160, .45) 48%, rgba(255, 255, 255, .12) 56%, transparent 68%);
  animation: k-mc-foil 3.4s ease-in-out infinite alternate; }
@keyframes k-mc-foil { from { transform: translateX(-38%); } to { transform: translateX(38%); } }
.k-mc-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; min-width: 0; }
.k-mc-room { min-width: 0; font-size: 11px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .92; }
.k-mc-rank { flex: none; font-size: 10px; font-weight: 900; border: 1px solid currentColor; border-radius: 999px; padding: 0 6px; }
.k-mc-name { font: 400 clamp(30px, 11vw, 44px)/1 "Dela Gothic One", "Hiragino Sans", sans-serif; letter-spacing: .06em; color: var(--edge);
  text-shadow: 0 2px 0 rgba(0, 0, 0, .35); }
.k-mc.t1 .k-mc-name { color: #7a1200; text-shadow: 0 1px 0 #fff6c8; }
.k-mc-title { font-size: 11px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k-mc-no { display: flex; gap: .03em; font: 700 clamp(14px, 4.6vw, 18px)/1 ui-monospace, "SF Mono", Menlo, monospace; white-space: nowrap; letter-spacing: .02em; }
.k-mc-no b { font-weight: 700; transition: transform .2s cubic-bezier(.2, 1.8, .4, 1), opacity .1s; }
.k-mc-no b.wait { opacity: 0; transform: scale(2.6); }
.k-mc-stub small { font-size: 9px; font-weight: 700; opacity: .85; }
.k-mc-ticket { font: 400 clamp(20px, 7vw, 28px)/1 "Dela Gothic One", "Hiragino Sans", sans-serif; font-variant-numeric: tabular-nums; }
.k-mc-times { display: grid; place-items: center; width: 46px; height: 46px; margin: 4px 0 2px; border: 2px solid currentColor; border-radius: 50%; transform: rotate(-12deg); line-height: 1.05; }
.k-mc-times b { font-size: 13px; font-weight: 900; } .k-mc-times small { font-size: 8px; }
.k-mc.done { filter: drop-shadow(0 0 18px rgba(255, 216, 90, .95)); }

/* 抽選券パックの開封 */
.k-over.pack { display: grid; place-items: center; align-content: center; gap: 18px; overflow: hidden; background: radial-gradient(circle at 50% 45%, #33200d, #07060a 70%); color: #fff; }
.k-over.pack.dark > * { opacity: 0; }
.k-over.pack.lit { background: radial-gradient(circle at 50% 45%, #7a4a0a, #0a0710 72%); }
.k-pk-rays { position: absolute; left: 50%; top: 50%; width: 170vmax; height: 170vmax; margin: -85vmax 0 0 -85vmax; opacity: .14; pointer-events: none;
  background: repeating-conic-gradient(#ffd45a 0 7deg, transparent 7deg 16deg); animation: k-pk-turn 14s linear infinite; }
.k-pk-rays.hot { opacity: .36; animation-duration: 6s; }
@keyframes k-pk-turn { to { transform: rotate(360deg); } }
.k-pk-making { position: relative; display: grid; justify-items: center; gap: 14px; }
.k-pk-word { font-size: 46px; color: #ffd84d; animation: k-pulse .45s ease-in-out infinite alternate; }
.k-pk-dots { display: flex; gap: 8px; }
.k-pk-dots i { width: 10px; height: 10px; border-radius: 50%; background: #ffd84d; animation: k-pk-dot .7s infinite alternate; }
.k-pk-dots i:nth-child(2) { animation-delay: .2s; } .k-pk-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes k-pk-dot { to { transform: translateY(-9px); opacity: .4; } }
.k-pk-slot { position: relative; width: 230px; height: 122px; overflow: hidden; border-top: 12px solid #000; border-radius: 6px; }
.k-pk-slot i { position: absolute; left: 24px; right: 24px; height: 112px; border-radius: 12px; background: linear-gradient(135deg, #e7b53c, #fff0b5 45%, #a87518); animation: k-pk-print 2.5s linear both; }
@keyframes k-pk-print { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.k-pk-load { width: 230px; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.k-pk-load i { display: block; height: 100%; background: linear-gradient(90deg, #ff9f1c, #fff3a0); animation: k-pk-fill 2.5s cubic-bezier(.5, 0, .8, 1) both; }
@keyframes k-pk-fill { from { width: 0; } to { width: 100%; } }
.k-pk { --tear: 0; position: relative; width: min(66vw, 260px); cursor: pointer; touch-action: none; outline-offset: 6px; animation: k-pk-drop .5s cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes k-pk-drop { from { transform: translateY(-70vh) rotate(-14deg); } }
.k-pk-top { position: relative; z-index: 2; height: 54px; display: grid; place-items: center; background: linear-gradient(90deg, #8c5d12, #f9e29a 30%, #b98727 55%, #fff0b5 80%, #8c5d12);
  border-bottom: 2px dashed rgba(70, 40, 0, .65); color: #3a2705; font-size: 12px; font-weight: 900; transform-origin: 0 100%; transform: rotate(calc(var(--tear) * -7deg)); }
.k-pk-teeth { position: absolute; left: 0; right: 0; top: -7px; height: 8px; background: linear-gradient(135deg, transparent 50%, #d7ab48 50%) 0 0 / 8px 8px; }
.k-pk-body { position: relative; height: min(84vw, 330px); display: grid; align-content: center; justify-items: center; gap: 10px; overflow: hidden; color: #f7e3a0;
  background: repeating-radial-gradient(circle at 50% 38%, transparent 0 12px, rgba(231, 181, 60, .13) 12px 13px), linear-gradient(160deg, #24202c, #0d0b12); border: 3px solid #d7ab48; border-top: 0; border-radius: 0 0 8px 8px; }
.k-pk-sheen { position: absolute; inset: -20%; background: linear-gradient(110deg, transparent 38%, rgba(255, 255, 255, .28) 50%, transparent 62%); animation: k-mc-foil 1.6s ease-in-out infinite alternate; }
.k-pk-room { max-width: 90%; font-size: 15px; font-weight: 800; text-align: center; }
.k-pk-logo { font-size: 50px; line-height: 1.1; }
.k-pk-en { font-size: 10px; letter-spacing: .2em; }
.k-pk-one { font-size: 12px; border: 1px solid currentColor; padding: 2px 10px; border-radius: 999px; }
.k-pk.open { animation: none; }
.k-pk.open .k-pk-top { transition: transform .5s ease-in, opacity .5s; transform: translate(60%, -120px) rotate(28deg); opacity: 0; }
.k-pk.open .k-pk-body { animation: k-pk-burst .5s ease-in both; }
@keyframes k-pk-burst { 40% { transform: scale(1.06); } to { transform: translateY(40px) scale(.96); filter: brightness(2.4); } }
.k-pk-hint { position: relative; font-size: 18px; font-weight: 900; color: #ffd84d; }
.k-pk-out { position: relative; display: grid; justify-items: center; gap: 22px; width: 100%; box-sizing: border-box; padding: 0 16px; }
.k-pk-get { font-size: clamp(30px, 10vw, 44px); color: #ffd84d; white-space: nowrap; }
.k-pk-flip { width: 100%; max-width: 360px; perspective: 800px; }
.k-pk-flip .k-mc { animation: k-pk-flip .85s cubic-bezier(.2, .9, .3, 1.2) both; }
@keyframes k-pk-flip { from { transform: rotateY(180deg) scale(.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .k-mc-foil, .k-pk-rays, .k-pk-sheen, .k-pk, .k-pk-flip .k-mc, .k-pk-word, .k-pk-dots i { animation: none !important; } }
/* 連打ボーナス */
.k-up { font-family: "Dela Gothic One", "Hiragino Sans", sans-serif; position: absolute; z-index: 5; pointer-events: none; white-space: nowrap; color: hsl(var(--h), 100%, 52%); text-shadow: 0 2px 0 #000, 0 0 10px #fff; animation: k-up .9s cubic-bezier(.2, 1.6, .4, 1) forwards; }
@keyframes k-up { 0% { opacity: 0; transform: rotate(var(--r)) scale(3); } 18%, 70% { opacity: 1; transform: rotate(var(--r)); } 100% { opacity: 0; transform: rotate(var(--r)) translateY(-40px) scale(1.3); } }
.k-tk-up { margin: 10px 0 4px; font-size: 22px; color: #c8102e; text-align: center; }
.k-over.boost { display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle, #5a1a6a, #0a0710 72%); color: #fff; }
.k-bo-in { position: relative; z-index: 2; display: grid; justify-items: center; gap: 14px; width: 100%; box-sizing: border-box; padding: 0 24px; }
.k-bo-head { font-size: 18px; font-weight: 900; }
.k-bo-sum { font-size: 64px; color: #ffd84d; line-height: 1; }
.k-bo-in .k-meter { width: 100%; max-width: 320px; }
.k-bo-hit { width: 170px; height: 170px; border-radius: 50%; border: 6px solid #fff; font-size: 38px; color: #3a0000; background: radial-gradient(circle at 35% 30%, #fff, #ffd21f 45%, #ff7a00); box-shadow: 0 12px 0 #7a2a00; touch-action: none; }
.k-bo-hit.hit { animation: k-bo-hit .12s ease-out; }
@keyframes k-bo-hit { from { transform: scale(.86) translateY(8px); } }
.k-bo-msg { font-size: 22px; font-weight: 900; color: #ffd84d; min-height: 1.4em; text-align: center; }
/* 演出：3・2・1 */
.k-over.kx { padding: 0; background: #000; }
.k-over.kx iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.k-321 { position: relative; display: flex; justify-content: center; gap: 12px; padding: 46px 0 26px; }
.k-321 b { font-size: clamp(64px, 24vw, 110px); line-height: 1; animation: k-321 1.2s ease-in-out infinite; }
.k-321 b:nth-child(2) { animation-delay: .4s; } .k-321 b:nth-child(3) { animation-delay: .8s; }
@keyframes k-321 { 20% { transform: scale(1.3); } 45% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .k-321 b { animation: none; } }
/* プレゼントの受け取りページ（/k/<会場>/gift）：白地に、当たりだけ少し華やかに */
.kg-body::before { height: 4px; }
.kg-head { text-align: center; margin: 8px 0 16px; }
.kg-room { color: var(--mut); font-size: 13px; font-weight: 600; }
.kg-title { font-weight: 900; font-size: 20px; }
.kg-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px 18px; text-align: center; box-shadow: 0 6px 24px rgba(27, 21, 48, .06); }
.kg-card.win { border: 2px solid var(--gold); background: linear-gradient(#fffaf0, #fff 120px); }
.kg-gift { font-size: 56px; line-height: 1; margin-bottom: 6px; }
.kg-big { font-weight: 900; font-size: 22px; }
.kg-prize { display: inline-block; margin: 10px 0 4px; padding: 4px 14px; border-radius: 999px; background: var(--bg2); font-weight: 800; }
.kg-text { text-align: left; white-space: pre-wrap; overflow-wrap: anywhere; margin: 14px 0 4px; padding: 14px; border-radius: 12px; background: var(--bg2); font-weight: 600; }
.kg-text a { color: #2459d6; font-weight: 800; }
.kg-sub { color: var(--mut); font-weight: 600; margin: 10px 0 0; }
.kg-proof { display: flex; align-items: center; gap: 12px; justify-content: center; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.kg-stamp { border: 2px solid var(--red); color: var(--red); border-radius: 8px; padding: 2px 10px; font-weight: 900; transform: rotate(-8deg); }
.kg-proof-rows { text-align: left; font-size: 14px; }
.kg-proof-rows small { color: var(--mut); }
.kg-note { text-align: center; color: var(--mut); font-size: 13px; margin: 12px 0 0; }
.kg-back { display: block; text-align: center; margin-top: 18px; color: var(--mut); font-weight: 700; }
.kg-none .kg-big { font-size: 18px; }
/* 現金・PayPay の受け取り先（受け取りページ） */
.kg-pay { margin-top: 14px; color: #1b1530; background: #fff; border: 2px solid var(--gold); border-radius: 18px; padding: 18px; text-align: left; box-shadow: 0 6px 24px rgba(27, 21, 48, .06); }
.kg-pay-title { font-weight: 900; font-size: 18px; margin-bottom: 10px; text-align: center; }
.kg-pay-form { display: grid; gap: 10px; }
.kg-pay-field { display: grid; gap: 4px; font-size: 13px; font-weight: 700; color: var(--mut); }
.kg-pay-field input, .kg-pay-field select { font: inherit; font-size: 17px; color: #1b1530; padding: 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; width: 100%; box-sizing: border-box; }
.kg-pay-field input:focus, .kg-pay-field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(240, 180, 40, .25); }
.kg-pay-go { font: inherit; font-weight: 900; font-size: 17px; padding: 14px; border: 0; border-radius: 999px; background: linear-gradient(#ffcf3f, #f0a400); color: #3a2600; cursor: pointer; box-shadow: 0 4px 0 #b97c00; }
.kg-pay-go:disabled { opacity: .6; }
.kg-pay-err { color: var(--red); font-weight: 800; margin: 0; min-height: 1em; }
.kg-pay-err:empty { display: none; }
.kg-pay-note { color: var(--mut); font-size: 12px; margin: 0; }
.kg-pay-saved { text-align: center; font-size: 18px; font-weight: 900; padding: 10px; border-radius: 12px; background: var(--bg2); letter-spacing: .04em; overflow-wrap: anywhere; }
.kg-pay-fix { display: block; margin: 12px auto 0; font: inherit; font-weight: 700; padding: 6px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
/* 抽選券の「あなたの番号」：いちばん目に入るように、白い札に大きな黒い字（どのランクの色でも読める） */
.k-mc-mine { margin-top: 4px; display: grid; gap: 2px; justify-items: start; }
.k-mc-mine small { font-size: 10px; font-weight: 900; letter-spacing: .08em; opacity: .95; }
.k-mc-mine .k-mc-no { background: #fffdf4; color: #14101f; border-radius: 8px; padding: 6px 10px; box-shadow: 0 0 0 2px var(--edge), 0 3px 10px rgba(0, 0, 0, .25);
  font: 800 clamp(17px, 5.6vw, 23px)/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .04em; max-width: 100%; }
/* 番号の札を足した分、券を少し縦長に・「抽選券」の字を少し小さくして、抽選の名前も入るように */
.k-mc { aspect-ratio: 1.85; }
/* 11/26 実機（Android のアプリ内ブラウザ）で番号の札が下で切れた：字の高さが端末で違うため。
   券の高さは「横幅÷1.85」を最低にして、中身が多い端末では券の方が伸びる（cqw が使えない古い端末は中身の高さ） */
@supports (container-type: inline-size) {
  .k-mc { aspect-ratio: auto; container-type: inline-size; }
  .k-mc-main { min-height: calc(100cqw / 1.85); }
}
/* 文の途中（「MAX に！」だけ）で折り返さないように、まとまりごとに折る */
.k-nw { display: inline-block; }
.k-mc .k-mc-name { font-size: clamp(26px, 9vw, 38px); }

/* ===== 受け取りページ：当たった人は夜の金色（11/24 ドーパミンOS）。外れ・開けない時は今まで通り ===== */
body.kg-won { --bg: #0b0908; --bg2: rgba(255, 255, 255, .06); --fg: #fbf7ee; --mut: #cfc6b0; --line: rgba(255, 210, 63, .3); color-scheme: dark;
  background: radial-gradient(90% 45% at 50% 0%, rgba(233, 199, 102, .22), transparent 70%), linear-gradient(180deg, #1c1a16, #0b0908 60%); }
.kg-won .kg-card.win { position: relative; overflow: hidden; border: 2px solid transparent; background: linear-gradient(180deg, rgba(255, 210, 63, .16), rgba(255, 210, 63, 0) 45%) padding-box, linear-gradient(#16130e, #16130e) padding-box, linear-gradient(135deg, #f6e7a8, #c9a227 40%, #8a6a12 70%, #e9c766) border-box;
  box-shadow: 0 0 40px rgba(255, 190, 40, .35), 0 20px 40px rgba(0, 0, 0, .5); }
.kg-only { display: inline-block; font-size: 11.5px; font-weight: 900; letter-spacing: .12em; color: #1b1000; background: linear-gradient(90deg, #fff2a8, #ffd23f); border-radius: 99px; padding: 2px 12px; margin-bottom: 8px; }
.kg-won .kg-gift { position: relative; display: grid; place-items: center; width: 140px; height: 100px; margin: 0 auto 2px; font-size: 62px; }
.kg-gift > span { position: relative; }
.kg-rays { position: absolute; left: 50%; top: 50%; width: 260px; height: 260px; margin: -130px 0 0 -130px; border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(rgba(255, 210, 63, .38) 0 10deg, rgba(255, 210, 63, 0) 10deg 24deg); -webkit-mask: radial-gradient(closest-side, #000 20%, transparent 100%); mask: radial-gradient(closest-side, #000 20%, transparent 100%); }
.kg-winner { font-family: "Dela Gothic One", "Hiragino Sans", sans-serif; font-size: 40px; line-height: 1.1; letter-spacing: .1em; margin: 2px 0 4px;
  background: linear-gradient(180deg, #fff8d6, #ffd23f 50%, #ff8a00); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 14px rgba(255, 190, 40, .7)); }
.kg-won .kg-big { font-size: 22px; }
/* 当選おめでとう：さとし「派手にしよう」。金の太字・2行・開いた瞬間に弾んで出る */
.kg-cheer { display: grid; gap: 2px; margin: 4px 0 10px; font-family: "Dela Gothic One", "Hiragino Sans", sans-serif; font-weight: 400; line-height: 1.15; }
.kg-cheer span:first-child { font-size: 34px; color: #fff3c4; text-shadow: 0 3px 0 #b86b00, 0 0 18px rgba(255, 170, 20, .55); }
.kg-cheer span:last-child { font-size: 22px; color: #ffd23f; text-shadow: 0 0 12px rgba(255, 190, 40, .7); }
.kg-flash { position: fixed; inset: 0; pointer-events: none; z-index: 9; opacity: 0; background: radial-gradient(circle at 50% 35%, rgba(255, 242, 168, .9), rgba(255, 190, 40, .35) 40%, transparent 70%); }
.kg-won .kg-prize { font-size: 17px; color: #1b1000; background: linear-gradient(90deg, #fff2a8, #ffd23f); box-shadow: 0 0 20px rgba(255, 210, 63, .45); padding: 6px 16px; }
.kg-won .kg-text { color: #fbf8ef; }
.kg-won .kg-text a { color: #ffe48a; }
.kg-won .kg-proof-rows { color: #fbf8ef; }
.kg-won .kg-stamp { color: #ffd23f; border-color: #ffd23f; }
.kg-take { display: block; width: 100%; box-sizing: border-box; margin: 16px 0 4px; padding: 15px 16px; border: 0; border-radius: 14px; font: inherit; font-size: 16px; font-weight: 900; text-align: center; text-decoration: none; cursor: pointer;
  color: #2a1a00; background: linear-gradient(135deg, #fff2a8, #ffd23f 45%, #ff9f1c); box-shadow: 0 8px 24px rgba(255, 179, 0, .4); }
.kg-share { display: block; text-align: center; margin: 14px 0 0; padding: 12px 16px; border-radius: 14px; border: 2px solid #06c755; background: transparent; color: #3ddc84; font-weight: 900; text-decoration: none; }
.kg-conf { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 8; }
.kg-conf i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; opacity: 0; animation: kg-fall 2.4s ease-in both; }
@media (prefers-reduced-motion: no-preference) {
  .kg-rays { animation: kg-turn 9s linear infinite; }
  .kg-won .kg-gift > span { animation: kg-bob 1.8s ease-in-out infinite; }
  .kg-take { animation: kg-pulse 2.2s 1.5s ease-in-out infinite; }
  .kg-cheer span { display: block; animation: kg-cheer-in .7s cubic-bezier(.2, 1.7, .4, 1) both; }
  .kg-cheer span:first-child { animation-delay: .25s; }
  .kg-cheer span:last-child { animation-delay: .45s; }
  .kg-won .kg-winner { animation: kg-cheer-in .6s cubic-bezier(.2, 1.7, .4, 1) .1s both; }
  .kg-flash { animation: kg-flash 1.1s ease-out both; }
  @keyframes kg-cheer-in { 0% { transform: scale(2.2); opacity: 0; } 60% { opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
  @keyframes kg-flash { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }
  @keyframes kg-turn { to { transform: rotate(360deg); } }
  @keyframes kg-bob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-8px) rotate(4deg); } }
  @keyframes kg-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }
  @keyframes kg-fall { 0% { transform: translateY(0) rotate(0); opacity: 1; } 100% { transform: translateY(105vh) rotate(720deg); opacity: .9; } }
}

/* ===== 会場：いま参加している人数（数えた本物の数・10人から出す。20秒ごとに読み直す）。白に馴染むライブピル ===== */
.k-live { display: flex; align-items: center; justify-content: center; gap: 8px; width: fit-content; margin: 12px auto; padding: 7px 16px; border-radius: 999px;
  background: #fff; color: #1d1d1f; border: 1px solid rgba(255, 45, 85, .35); box-shadow: 0 4px 14px rgba(255, 45, 85, .12); }
.k-live i { width: 9px; height: 9px; border-radius: 50%; background: #ff2d55; box-shadow: 0 0 0 3px rgba(255, 45, 85, .18); }
.k-live small { font-size: 12px; font-weight: 800; color: #ff2d55; letter-spacing: .04em; }
.k-live b { font-size: 20px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.k-live span { font-size: 13px; font-weight: 800; }
/* 券を持った人が待つ間に：友だちに知らせる（LINE の緑の枠） */
.k-tell { display: block; text-align: center; margin: 12px 0 0; padding: 12px 14px; border-radius: 14px; border: 2px solid #06c755; color: #06a346; background: #fff; font-weight: 900; text-decoration: none; }
@media (prefers-color-scheme: dark) {
  .k-live { background: #1c1c1e; color: #f5f5f7; }
  .k-tell { background: transparent; color: #3ddc84; }
}
@media (prefers-reduced-motion: no-preference) {
  .k-live i { animation: k-live-blink 1.2s ease-in-out infinite; }
  .k-live b.up { animation: k-live-up .6s cubic-bezier(.2, 1.6, .4, 1); }
  @keyframes k-live-blink { 50% { opacity: .25; } }
  @keyframes k-live-up { from { transform: scale(1.5); } to { transform: scale(1); } }
}

/* 11/25 チャリ活のセールスレターの組み方（さとし「トミーのレターデザインを参考に。こう言うページデザイン全て」。見本は design-ref/charikatsu-sales-letter）
   当たった人のページ：白地に、レターの景品ポスター（クリーム→黄の地・光の筋・黒の枠と影・赤の極太字に白いふち・「＼ 青い小見出し ／」）。受け取りは赤の申込ボタン、シェアは LINE の緑 */
.kg-body { font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif; -webkit-font-smoothing: antialiased; }
body.kg-won { --bg: #fff; --bg2: #F4F8FC; --fg: #1E293B; --mut: #526273; --line: #CBD9E8; color-scheme: light; background: #fff; color: #1E293B; }
.kg-won .kg-head .kg-room { color: #526273; }
.kg-won .kg-head .kg-title { font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif; font-weight: 900; font-size: 24px; letter-spacing: -.02em; color: #212529; }
.kg-won .kg-card.win { border: 4px solid #111; border-radius: 16px; box-shadow: 6px 6px 0 #111;
  background: radial-gradient(circle at 12% 10%, rgba(255, 255, 255, .78) 0 18px, transparent 19px), radial-gradient(circle at 88% 8%, rgba(255, 255, 255, .7) 0 24px, transparent 25px),
    repeating-conic-gradient(from 0deg at 50% 18%, rgba(255, 255, 255, .42) 0deg 8deg, transparent 8deg 18deg), linear-gradient(180deg, #FFFBE2 0%, #FAE396 45%, #F2CF6C 100%); }
.kg-won .kg-only { background: none; border: 0; padding: 0; color: #0B3C7D; font-size: 14.5px; letter-spacing: .02em; text-shadow: 2px 2px 0 #fff, -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff; }
.kg-won .kg-only::before { content: "＼ "; color: #D69312; }
.kg-won .kg-only::after { content: " ／"; color: #D69312; }
.kg-rays { background: repeating-conic-gradient(rgba(255, 255, 255, .6) 0 10deg, rgba(255, 255, 255, 0) 10deg 24deg); }
.kg-won .kg-winner { font-family: "Noto Sans JP", "Hiragino Sans", sans-serif; font-weight: 900; font-size: 34px; letter-spacing: .04em; filter: none; background: none; color: #fff; -webkit-text-stroke: .8px #fff;
  text-shadow: 3px 3px 0 #051C42, -2px -2px 0 #051C42, 2px -2px 0 #051C42, -2px 2px 0 #051C42, 0 3px 0 #051C42; }
.kg-cheer { font-family: "Noto Sans JP", "Hiragino Sans", sans-serif; font-weight: 900; letter-spacing: -.02em; }
.kg-cheer span { color: #CC0C14; -webkit-text-stroke: .8px #CC0C14;
  text-shadow: 3px 3px 0 #fff, -3px -3px 0 #fff, 3px -3px 0 #fff, -3px 3px 0 #fff, 0 3px 0 #fff, 0 -3px 0 #fff, 3px 0 0 #fff, -3px 0 0 #fff, 5px 6px 0 rgba(0, 0, 0, .18); }
.kg-cheer span:first-child { font-size: 36px; }
.kg-cheer span:last-child { font-size: 26px; }
.kg-won .kg-prize { color: #fff; font-weight: 900; font-size: 17px; padding: 8px 16px; border-radius: 10px; border: 3px solid #111; box-shadow: 4px 4px 0 #111;
  background: radial-gradient(ellipse 72% 85% at 50% 50%, #2478DE 0%, #0D4B9C 65%, #072F6B 100%); text-shadow: 2px 2px 0 #051C42; }
.kg-won .kg-text { color: #1E293B; background: #fff; border: 2px solid #111; font-weight: 400; }
.kg-won .kg-text a { color: #0B418E; }
.kg-won .kg-proof { border-top-color: rgba(0, 0, 0, .25); }
.kg-won .kg-proof-rows { color: #1E293B; }
.kg-won .kg-stamp { color: #C21818; border-color: #C21818; background: #fff; }
.kg-won .kg-note, .kg-won .kg-back { color: #526273; }
.kg-take { color: #fff; border: 2px solid #6B060A; border-radius: 12px; font-weight: 900; font-size: 18px; text-shadow: 0 2px 3px rgba(0, 0, 0, .32);
  background: linear-gradient(180deg, #DE3030 0%, #B51218 52%, #85080D 100%); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .34), 0 6px 0 #560407, 0 10px 20px rgba(108, 8, 12, .3); }
.kg-won .kg-share { border-radius: 12px; color: #fff; background: #06C755; border-color: #06C755; box-shadow: 0 5px 0 #135C20; }
.kg-flash { background: radial-gradient(circle at 50% 35%, rgba(255, 255, 255, .95), rgba(255, 231, 110, .45) 40%, transparent 70%); }

/* 11/25 チャリ活のセールスレターの組み方：待合の見た目だけ（題は極太の墨、景品は黄のマーカー、残り時間は明朝の赤、箱はよくある質問の箱）。抽選の舞台・当選の瞬間（虹色・kwin.css）は抽選スレッドの物なので触らない */
body:not(.kg-body) { font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif; -webkit-font-smoothing: antialiased; }
.k-title.rb { font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif; font-weight: 900; background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #0F172A; animation: none; letter-spacing: -.01em; }
.k-prize { font-weight: 700; }
.k-top .k-prize { display: inline; padding: 0 2px; background: linear-gradient(transparent 62%, #FFE866 62%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.k-count.rb { font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif; font-weight: 900; background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #B51700; animation: none; }
.k-card { border: 1.5px solid #CBD9E8; border-radius: 12px; box-shadow: 0 5px 14px rgba(15, 42, 74, .07); }
.k-label { color: #1E293B; }
.k-kw { background: #C21818; animation: none; text-shadow: none; }

.k-friend { margin: 10px 0 6px; }
.k-friend .k-note { font-size: 12px; color: #555; margin-top: 4px; }

.k-friend .k-line { animation: none; font-size: 15px; padding: 11px 16px; box-shadow: 0 3px 0 #04903d; margin-top: 4px; }

/* 11/25 見出しの絵：画像生成（ChatGPT の画像＝image2.5、Codex から）の本物の絵。絵文字のプレゼントと WINNER の文字はやめた（さとし「ちゃんとして」）
   カードの上の端まで絵を出し、下に青い帯で「当選者だけのページ」。レターの黒い枠・影に合わせて、絵の下に黒い線 */
.kg-hero { position: relative; margin: -24px -18px 16px; border-radius: 14px 14px 0 0; overflow: hidden; background: #0b2a6b; }
.kg-hero img { display: block; width: 100%; height: auto; aspect-ratio: 900 / 672; object-fit: cover; }
.kg-hero img.own { object-fit: contain; background: #fff; }
.kg-prize { overflow-wrap: anywhere; }
.kg-hero.thanks { background: #e8f1fb; }
.kg-hero-tag { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); white-space: nowrap; padding: 6px 18px; border-radius: 999px; font-weight: 900; font-size: 14px; letter-spacing: .04em;
  color: #fff; background: linear-gradient(180deg, #2478DE, #0D4B9C 60%, #072F6B); border: 2px solid #F2CF6C; box-shadow: 0 4px 0 rgba(0, 0, 0, .35); }
.kg-hero.thanks .kg-hero-tag { background: #fff; color: #0B3C7D; border-color: #0B3C7D; box-shadow: 0 3px 0 rgba(11, 60, 125, .25); }
.kg-won .kg-card.win .kg-hero { margin: -24px -18px 18px; border-bottom: 4px solid #111; border-radius: 12px 12px 0 0; }
.kg-won .kg-card.win { background: #fff; }
.kg-won .kg-cheer { margin-top: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .kg-won .kg-hero img { animation: kg-hero-in 1s cubic-bezier(.2, .9, .3, 1) both; }
  @keyframes kg-hero-in { from { transform: scale(1.12); filter: brightness(1.6); } to { transform: scale(1); filter: none; } }
}
/* 当選おめでとう：ぼかしの光と赤い縁取りをやめ、レターの見出し（明朝の濃紺・金の線）で、くっきり */
.kg-won .kg-card.win .kg-cheer { gap: 4px; margin: 0 0 14px; font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif; font-weight: 900; letter-spacing: .02em; }
.kg-won .kg-card.win .kg-cheer span { color: #0B2F66; -webkit-text-stroke: 0; text-shadow: none; filter: none; }
.kg-won .kg-card.win .kg-cheer span:first-child { font-size: 31px; line-height: 1.2; }
.kg-won .kg-card.win .kg-cheer span:last-child { font-size: 19px; color: #B8860B; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.kg-won .kg-card.win .kg-cheer span:last-child::before, .kg-won .kg-card.win .kg-cheer span:last-child::after { content: ""; width: 34px; height: 2px; background: linear-gradient(90deg, transparent, #D4A017); }
.kg-won .kg-card.win .kg-cheer span:last-child::after { background: linear-gradient(90deg, #D4A017, transparent); }
/* Gemini（gemini-4-neon）のレビュー：虹色の線をやめる・押せない物をボタンに見せない・参加賞の紫とピンクをやめて青にそろえる・本文を細く・案内の箱は金の細い枠 */
.kg-body::before { animation: none; background: linear-gradient(90deg, #8A6D3B, #E5C158, #8A6D3B); }
.kg-body:not(.kg-won)::before { background: #1E40AF; }
body.kg-won { background: #F5F3EE; }
.kg-body:not(.kg-won) { background: #F4F7FA; }
.kg-hero-tag { border-radius: 4px; padding: 5px 16px; font-size: 12.5px; letter-spacing: .1em; box-shadow: none; }
.kg-won .kg-card.win .kg-hero-tag { background: rgba(11, 31, 77, .9); border: 1px solid #D4B46A; }
.kg-hero.thanks .kg-hero-tag { background: rgba(255, 255, 255, .94); border: 1px solid #1E40AF; color: #1E40AF; box-shadow: none; }
.kg-won .kg-card.win .kg-prize { display: block; margin: 6px -18px 4px; padding: 10px 16px; border: 0; border-radius: 0; box-shadow: none; text-shadow: none; background: #0B2559; color: #fff; font-size: 15px; letter-spacing: .06em; }
.kg-won .kg-card.win .kg-text { background: #FCFBF7; border: 1px solid #D4B46A; border-radius: 8px; padding: 18px; font-size: 14px; line-height: 1.85; color: #222; font-weight: 400; }
.kg-won .kg-share { border-radius: 10px; box-shadow: 0 4px 12px rgba(6, 199, 85, .25); }
.kg-card:not(.win) { border: 1px solid #CBD5E1; box-shadow: 0 4px 16px rgba(15, 35, 80, .08); overflow: hidden; }
.kg-card:not(.win) .kg-big { font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif; font-weight: 900; color: #0B2F66; font-size: 22px; }
.kg-card:not(.win) .kg-prize { background: #F0F5FA; border: 1px solid #D6E4F0; color: #0B2F66; border-radius: 4px; }
.kg-card:not(.win) .kg-text { background: #F0F5FA; border: 1px solid #D6E4F0; font-weight: 400; font-size: 14px; line-height: 1.85; color: #333; }
.kg-card:not(.win) .kg-stamp { color: #1E40AF; border-color: #1E40AF; }
/* 受け取り先の箱：レターの申込ボタン（赤）と、金の細い枠にそろえる */
.kg-won .kg-pay { border: 1px solid #D4B46A; border-radius: 12px; box-shadow: 0 4px 16px rgba(15, 35, 80, .08); }
.kg-won .kg-pay-title { font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif; color: #0B2F66; }
.kg-won .kg-pay-go { color: #fff; border: 2px solid #6B060A; border-radius: 12px; text-shadow: 0 2px 3px rgba(0, 0, 0, .32);
  background: linear-gradient(180deg, #DE3030 0%, #B51218 52%, #85080D 100%); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .34), 0 5px 0 #560407; }

/* ===== 11/25 ボタンをレターの申込ボタンにそろえる（さとし「全体的にボタンがまだAIぽいな 抽選系とかも」）=====
   虹色の丸いボタン・ピンクのボタン・金のボタンをやめる。押すボタンは2種類だけ：
   ・赤＝次へ進む／受け取る（レターの申込ボタン：赤のグラデ、濃い赤の枠、下に厚み）
   ・緑＝LINE を開く（LINE の緑、角は同じ 12px、下に濃い緑の厚み）
   抽選の舞台の演出（光・帯・券）はそのまま。ボタンだけ */
body::before { animation: none; background: #B51700; height: 4px; }
.k-spin, .k-spin.pachi, .k-line.gift, .kg-pay-go {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif; font-weight: 900; letter-spacing: .02em;
  color: #fff; -webkit-text-fill-color: #fff; text-shadow: 0 2px 3px rgba(0, 0, 0, .32);
  border: 2px solid #6B060A; border-radius: 12px;
  background: linear-gradient(180deg, #DE3030 0%, #B51218 52%, #85080D 100%); background-size: auto;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .34), 0 6px 0 #560407, 0 10px 20px rgba(108, 8, 12, .3); }
.k-spin { animation: k-nudge 1.2s ease-in-out infinite; min-width: min(300px, 86vw); padding: 15px 28px; font-size: 21px; }
/* もう一度見る（小さいボタン）は脇役：白地に墨の枠。赤は「次へ進む」だけに使う */
.k-spin.small { animation: none; min-width: 0; font-size: 14px; padding: 8px 16px; color: #1E293B; -webkit-text-fill-color: #1E293B; text-shadow: none; background: #fff; border: 1.5px solid #1E293B; border-radius: 10px; box-shadow: 0 3px 0 #1E293B; }
.k-spin.small:active { box-shadow: 0 1px 0 #1E293B; }
.k-spin:active, .k-line:active, .kg-take:active, .kg-pay-go:active { transform: translateY(4px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .34), 0 2px 0 #560407; }
.k-spin.hit { animation: k-hit .12s ease-out; }
.k-ticket-wrap.issue .k-spin { font-size: 20px; padding: 15px 26px; }
.k-line { border-radius: 12px; border: 2px solid #0A7F37; background: #06C755; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .3), 0 5px 0 #135C20, 0 10px 18px rgba(19, 92, 32, .22);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .25); font-size: 17px; animation: none; }
.k-line:active { box-shadow: 0 2px 0 #135C20; }
.k-won-in .k-line { animation: k-in .4s 1.3s both; }
.k-line.gift { font-size: 18px; }
.k-line.gift:active { box-shadow: inset 0 2px 0 rgba(255, 255, 255, .34), 0 2px 0 #560407; }
.k-friend .k-line { font-size: 15px; padding: 11px 16px; box-shadow: 0 3px 0 #135C20; }
.kg-pay-go { padding: 14px; font-size: 17px; }
.k-btn { border-radius: 10px; background: #1E293B; box-shadow: 0 3px 0 #0B1220; }
.k-btn.ghost { box-shadow: none; border: 1.5px solid #CBD9E8; color: #1E293B; font-size: 13px; padding: 6px 12px; }
.k-btn.k-wait { opacity: .6; }   /* 券が着くまで（押せば覚えておき、着いた瞬間に削る） */
.kg-pay-fix { border-radius: 8px; }
.kg-share { border-radius: 12px; }
.kg-won .kg-share { border: 2px solid #0A7F37; background: #06C755; color: #fff; box-shadow: 0 5px 0 #135C20; }
@media (prefers-reduced-motion: reduce) { .k-spin { animation: none; } }

/* ===== 11/25 字をそろえる（さとし「フォントがなんかバラバラで統一感ないね ページ全体的に」）=====
   決まり：読む字・数字・ボタンは全部 Noto Sans JP（400／700／900）。演出の大きな字（抽選券・当選！・熱い！など .pachi）だけ Dela Gothic One。
   明朝（Noto Serif JP）と等幅（番号）はやめる。受け取りページの本文がスマホの標準の字になっていたのも Noto Sans JP に */
html, body, body.kg-body, button, input, select, textarea { font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", sans-serif; }
.k-count.rb, .kg-won .kg-head .kg-title, .kg-won .kg-card.win .kg-cheer, .kg-card:not(.win) .kg-big, .kg-won .kg-pay-title, .kg-winner, .kg-cheer,
.box > h2, .k-title, .k-title.rb { font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", sans-serif; font-weight: 900; }
.k-count.rb { font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.k-mc-no, .k-mc-mine .k-mc-no { font-family: "Noto Sans JP", "Hiragino Sans", sans-serif; font-weight: 900; font-variant-numeric: tabular-nums; }

/* 連打ボタンは虹色のまま（さとし「連打ボタンは別に良かった。レインボーで」）。押した後の「もう一度見る」は白の小さいボタン */
.k-spin.mash:not(.small) { font-family: "Dela Gothic One", "Hiragino Sans", sans-serif; font-weight: 400; font-size: 24px; letter-spacing: .02em;
  border: 0; border-radius: 999px; padding: 16px 40px; min-width: 0; background: var(--rainbow); background-size: 200% 100%;
  box-shadow: 0 7px 0 rgba(27, 21, 48, .85), 0 14px 26px rgba(27, 21, 48, .3); text-shadow: 0 2px 3px rgba(0, 0, 0, .35);
  animation: rb-move 1.2s linear infinite, k-nudge .8s ease-in-out infinite; }
.k-spin.mash:not(.small):active { transform: translateY(5px); box-shadow: 0 2px 0 rgba(27, 21, 48, .85); }
.k-spin.mash.hit:not(.small) { animation: rb-move 1.2s linear infinite, k-hit .12s ease-out; }
@media (prefers-reduced-motion: reduce) { .k-spin.mash:not(.small) { animation: none; } }
/* 季節の企画の型（11/25）：上に型の画像の帯・上の線と見出しの下線を型の色に。ボタンはレターの赤と LINE の緑のまま */
body.k-season::before { animation: none; background: var(--season); }
.k-season-hero { display: block; width: calc(100% + 8px); max-width: none; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; margin: 0 -4px 14px; border-radius: 14px; box-shadow: 0 6px 18px rgba(15, 23, 42, .14); }
body.k-season .k-top .k-prize { background: linear-gradient(transparent 62%, var(--season-soft) 62%); }
body.k-season .k-title.rb { text-decoration-line: underline; text-decoration-color: var(--season); text-decoration-thickness: 3px; text-underline-offset: 8px; }

/* 11/25 当選の画面で、当たった人への文が長いと下が切れて「とじる」も押せなかった（トミーさんからの報告）。
   演出の光・花火・紙吹雪は画面いっぱいのまま（はみ出しは隠す）、文とボタンの箱だけを縦にスクロールできるようにする。
   受け取りページに全文が出る形（gift）では、この画面に文は出さず「プレゼントを受け取る」ボタンだけ（k.js）。
   gemini-4-neon のレビュー：行の高さを minmax(0,1fr) で決めて古い iPhone でも max-height を効かせる／下の余白は safe-area に足す／運営プレビューの黒い帯に隠れない／長い URL を折り返す／「とじる」を押しやすく */
.k-over.won { grid-template-rows: minmax(0, 1fr); grid-template-columns: minmax(0, 1fr); }
.k-over.won .k-won-in { box-sizing: border-box; width: 100%; min-height: 0; max-height: 100%; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch; touch-action: pan-y; justify-self: center; padding: calc(8px + env(safe-area-inset-top)) 2px calc(24px + env(safe-area-inset-bottom)); }
body.k-pv .k-over.won .k-won-in { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
.k-over.won .k-won-in > .k-link { display: inline-block; margin-top: 10px; padding: 10px 28px; border-radius: 999px; background: rgba(255, 255, 255, .88); color: #334155; font-weight: 700; text-decoration: none; box-shadow: 0 2px 8px rgba(15, 23, 42, .15); }

/* 11/25 チケット画面の当選・ハズレの文（トミーさんから）：受け取りページを使う形（gift）ではここに文を出さずボタンだけ（k.js）。
   文を出す形（url・line・none）は、長文でも読みやすく：左揃え・ふつうの太さ・行間を広く・白い箱。当選の演出の画面の文も同じ見た目に */
.k-tk-body .k-note, .k-over.won .k-won-in .k-note { text-align: left; font-weight: 400; font-size: 14.5px; line-height: 1.8; color: #1E293B; background: #fff;
  border: 1px solid #E6E0D4; border-radius: 10px; padding: 14px; margin: 12px 0; white-space: pre-wrap; overflow-wrap: anywhere; -webkit-user-select: text; user-select: text; }
body.k-pv #k { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }

/* ===== 11/25 抽選会場を参加したくなる形に（さとし「景品が見れたり・ルールや仕組み・カウントダウン激しく・レインボー」）=====
   gemini-4-neon（high）の案：チラシ×パチンコの高揚感。虹は「文字に使わない・ぼかさない・細い帯と枠だけ・黒で締める」。字は Noto Sans JP */
/* 一番上の電飾の虹の帯 */
body::before { height: 7px; background: linear-gradient(90deg, #FF0033, #FF8800, #FFEE00, #00CC44, #0088FF, #8800FF, #FF0033); background-size: 200% 100%;
  border-bottom: 1.5px solid #1A1A1A; animation: rb-move 3.5s linear infinite; }
.kg-body::before { animation: none; }
/* 今回の景品：レターの景品ポスター */
.k-poster { position: relative; margin: 12px 0 4px; border: 3px solid #1A1A1A; border-radius: 12px; overflow: hidden; text-align: center; padding: 14px 14px 16px;
  background: linear-gradient(180deg, #FFFDF0 0%, #FFF199 55%, #FFE047 100%); box-shadow: 0 5px 0 #1A1A1A; }
.k-poster::before { content: ""; position: absolute; inset: -40%; pointer-events: none; background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .45) 0deg 10deg, rgba(255, 255, 255, 0) 10deg 22.5deg); }
.k-poster > * { position: relative; }
.k-poster-k { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 6px; font-weight: 900; font-size: 14px; color: #0B3C9D; letter-spacing: .06em; }
.k-poster-k::before, .k-poster-k::after { content: ""; width: 2.5px; height: 14px; border-radius: 2px; background: #CFA342; }
.k-poster-k::before { transform: rotate(-24deg); }
.k-poster-k::after { transform: rotate(24deg); }
.k-top .k-poster .k-prize { display: block; margin: 0; padding: 0; background: none; font-weight: 900; font-size: clamp(19px, 5.6vw, 23px); line-height: 1.4; color: #CC0000; overflow-wrap: anywhere; white-space: pre-wrap;
  text-shadow: -2px -2px 0 #fff, 0 -2px 0 #fff, 2px -2px 0 #fff, -2px 0 0 #fff, 2px 0 0 #fff, -2px 2px 0 #fff, 0 2px 0 #fff, 2px 2px 0 #fff, 0 4px 0 rgba(26, 26, 26, .18); }
/* 締め切りのカウントダウン：黒いタイル・秒は赤で毎秒跳ねる・残り10分で赤・残り1分で震える */
.k-cd { position: relative; margin: 12px 0; padding: 12px 8px 10px; border: 3px solid #1A1A1A; border-radius: 12px; background: #fff; box-shadow: 0 4px 0 #1A1A1A; text-align: center; }
.k-cd-label { margin: 0 0 8px; font-weight: 900; font-size: 13px; color: #1A1A1A; letter-spacing: .08em; }
.k-cd-grid { display: flex; align-items: center; justify-content: center; gap: 4px; }
.k-cd-tile { position: relative; flex: 0 1 86px; min-width: 0; padding: 8px 0 6px; border-radius: 8px; border: 2px solid #1A1A1A;
  background: linear-gradient(180deg, #333 0%, #141414 52%, #000 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 3px 0 #1A1A1A; }
.k-cd-tile::after { content: ""; position: absolute; left: 0; right: 0; top: 46%; height: 1px; background: rgba(0, 0, 0, .55); pointer-events: none; }
.k-cd-num { display: block; font-weight: 900; font-size: clamp(28px, 9vw, 36px); line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.k-cd-unit { display: block; margin-top: 4px; font-weight: 800; font-size: 10px; line-height: 1; color: #FFD93D; }
.k-cd-tile.sec { background: linear-gradient(180deg, #E52424 0%, #B00000 55%, #800000 100%); }
.k-cd-tile.sec .k-cd-unit { color: #fff; }
.k-cd-colon { font-weight: 900; font-size: 24px; color: #1A1A1A; line-height: 1; padding-bottom: 12px; animation: k-cd-blink 1s steps(2, start) infinite; }
.k-cd-when { margin: 8px 0 0; font-size: 12px; font-weight: 700; color: #555; }
.k-cd-tile.sec.tick { animation: k-cd-pop .95s cubic-bezier(.22, 1, .36, 1); }
.k-cd[data-urgency="warn"] { border-color: #CC0000; background: #FFF5F5; box-shadow: 0 4px 0 #CC0000; }
.k-cd[data-urgency="warn"] .k-cd-label { color: #CC0000; }
.k-cd[data-urgency="warn"] .k-cd-tile.sec.tick { animation: k-cd-pop2 .95s cubic-bezier(.22, 1, .36, 1); }
.k-cd[data-urgency="critical"] { animation: k-cd-vibe 1s linear infinite, k-cd-flash .5s steps(2, start) infinite; }
.k-cd[data-urgency="critical"] .k-cd-label { color: #CC0000; font-size: 14px; }
.k-cd[data-urgency="critical"] .k-cd-tile { background: linear-gradient(180deg, #E50000 0%, #990000 100%); }
.k-cd[data-urgency="critical"] .k-cd-num { color: #FFF200; }
.k-cd[data-urgency="critical"] .k-cd-tile.sec { background: linear-gradient(180deg, #1A1A1A 0%, #000 100%); }
.k-cd[data-urgency="critical"] .k-cd-tile.sec .k-cd-num { color: #FFE600; }
.k-cd[data-urgency="critical"] .k-cd-tile.sec { transform: scale(1.08); }
@keyframes k-cd-blink { 0% { opacity: 1; } 100% { opacity: .25; } }
@keyframes k-cd-pop { 0% { transform: scale(1); } 18% { transform: scale(1.1, 1.14) translateY(-4px); } 42% { transform: scale(.97, .96) translateY(1px); } 65%, 100% { transform: scale(1); } }
@keyframes k-cd-pop2 { 0% { transform: scale(1); } 15% { transform: scale(1.16, 1.2) translateY(-6px); } 38% { transform: scale(.94, .92) translateY(2px); } 60% { transform: scale(1.03) translateY(-1px); } 100% { transform: scale(1); } }
@keyframes k-cd-vibe { 0%, 28%, 100% { transform: translate(0, 0); } 4% { transform: translate(-2.5px, 1.5px); } 8% { transform: translate(2.5px, -1.5px); } 12% { transform: translate(-2px, -1px); } 16% { transform: translate(2px, 1.5px); } 20% { transform: translate(-1.5px, 0); } 24% { transform: translate(1px, -1px); } }
@keyframes k-cd-flash { 0%, 100% { background-color: #FFF4F4; border-color: #D40000; } 50% { background-color: #FFE566; border-color: #1A1A1A; } }
/* 目標人数：あと2割から、バーが流れる虹（パチンコの確変） */
#k .k-goal.near .k-goal-bar i { background: linear-gradient(180deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, 0) 48%),
  repeating-linear-gradient(-45deg, #FF0033 0 14px, #FF9900 14px 28px, #FFE600 28px 42px, #00C853 42px 56px, #0088FF 56px 70px, #9900FF 70px 84px);
  background-size: 100% 100%, 118px 118px; animation: k-gauge-rb 1.2s linear infinite; }
@keyframes k-gauge-rb { 0% { background-position: 0 0, 0 0; } 100% { background-position: 0 0, 118px 0; } }
/* 抽選券をもらう：表面を虹の光の筋が横切る */
.k-ticket-wrap.issue .k-spin:not(.mash) { position: relative; overflow: hidden; }
.k-ticket-wrap.issue .k-spin:not(.mash)::after { content: ""; position: absolute; top: -20%; left: -80%; width: 45%; height: 140%; transform: skewX(-25deg); pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 230, 0, .35) 30%, rgba(255, 255, 255, .7) 50%, rgba(0, 220, 255, .35) 70%, rgba(255, 255, 255, 0) 100%); animation: k-holo 3.6s ease-in-out infinite; }
@keyframes k-holo { 0%, 72% { left: -80%; } 100% { left: 140%; } }
/* 抽選のルール・仕組み */
.k-rules { margin: 16px 0 20px; border: 2px solid #1A1A1A; border-radius: 10px; background: #FAF9F4; overflow: hidden; text-align: left; }
.k-rules-h { margin: 0; padding: 8px 12px; background: #1A1A1A; color: #fff; font-weight: 800; font-size: 13px; text-align: center; letter-spacing: .08em; }
.k-rule-list { margin: 0; padding: 12px 14px; list-style: none; display: grid; gap: 10px; }
.k-rule { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 8px; align-items: start; font-size: 13.5px; line-height: 1.6; color: #1A1A1A; padding-bottom: 10px; border-bottom: 1px dashed #CCC; }
.k-rule:last-child { padding-bottom: 0; border-bottom: 0; }
.k-rule-k { padding: 2px 0; text-align: center; font-weight: 800; font-size: 11px; color: #fff; background: #B81414; border-radius: 4px; }
.k-rule-v { font-weight: 700; overflow-wrap: anywhere; }
#k { overflow-x: clip; }
@media (prefers-reduced-motion: reduce) {
  body::before, .k-cd-colon, .k-cd-tile.sec.tick, .k-cd[data-urgency] .k-cd-tile.sec.tick, .k-cd[data-urgency="critical"], #k .k-goal.near .k-goal-bar i, .k-ticket-wrap.issue .k-spin::after { animation: none !important; }
  .k-cd[data-urgency="critical"] { background: #FFE566; border-color: #CC0000; }
}
/* 320幅：ボタンが箱からはみ出さない・部屋の名前が折り返さない */
.k-spin:not(.small) { min-width: min(300px, 100%); max-width: 100%; }
@media (max-width: 360px) { .k-room { padding: 0 72px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }
.k-card.k-cond { border: 2px solid #1A1A1A; box-shadow: 0 3px 0 #1A1A1A; padding: 12px 14px; }

/* 抽選の流れの図解（11/25 さとし「図解とかいける？」）：4つの絵と番号と矢印。スマホは2列、広い画面は4列 */
.k-flow { list-style: none; margin: 0; padding: 14px 12px 4px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; counter-reset: none; }
.k-flow-step { position: relative; text-align: center; min-width: 0; }
.k-flow-pic { position: relative; margin: 0 auto 6px; width: 100%; max-width: 132px; aspect-ratio: 1; border: 2px solid #1A1A1A; border-radius: 12px; background: #fff; box-shadow: 0 3px 0 #1A1A1A; overflow: hidden; }
.k-flow-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.k-flow-no { position: absolute; left: -2px; top: -2px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 0 0 10px 0; background: #B81414; color: #fff; font-weight: 900; font-size: 15px; border: 2px solid #1A1A1A; }
.k-flow-t { font-weight: 900; font-size: 14px; line-height: 1.35; color: #1A1A1A; overflow-wrap: anywhere; text-wrap: balance; word-break: auto-phrase; }
.k-flow-s { font-size: 12px; font-weight: 700; color: #555; line-height: 1.4; overflow-wrap: anywhere; text-wrap: balance; word-break: auto-phrase; }
/* 矢印：右へ（1→2・3→4）と、次の行へ（2→3） */
.k-flow-step:nth-child(odd)::after { content: ""; position: absolute; right: -14px; top: calc(min(132px, 100%) / 2 - 8px); width: 0; height: 0; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 10px solid #B81414; }
@media (min-width: 560px) {
  .k-flow { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .k-flow-step:not(:last-child)::after { content: ""; position: absolute; right: -14px; top: 54px; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 10px solid #B81414; }
}
.k-flow { padding-bottom: 14px; border-bottom: 1px dashed #CCC; margin-bottom: 2px; }
.k-flow-step:nth-child(odd)::after { border-top-width: 6px; border-bottom-width: 6px; border-left-width: 8px; right: -12px; }
/* ガラポンが回っている間：「抽選中」と流れる帯（止まって見えないように。長さは見せない＝結果を先に知らせない） */
.k-busy { display: grid; justify-items: center; gap: 6px; margin: 10px auto 0; max-width: 220px; }
.k-busy[hidden] { display: none; }
.k-busy-t { font-weight: 900; font-size: 15px; letter-spacing: .12em; color: var(--fg, #16232E); }
.k-busy-t::after { content: "…"; display: inline-block; width: 1.2em; text-align: left; }
.k-busy-bar { display: block; width: 100%; height: 6px; border-radius: 999px; background: linear-gradient(90deg, transparent 0 20%, #CC0C14 35%, #ffd23f 50%, #CC0C14 65%, transparent 80% 100%), rgba(127, 127, 127, .22); background-size: 250% 100%, 100% 100%; }
@media (prefers-reduced-motion: no-preference) {
  .k-busy-bar { animation: k-busy-run 1s linear infinite; }
  .k-busy-t::after { animation: k-busy-dots 1.2s steps(4) infinite; }
  @keyframes k-busy-run { from { background-position: 125% 0, 0 0; } to { background-position: -125% 0, 0 0; } }
  @keyframes k-busy-dots { 0% { clip-path: inset(0 100% 0 0); } 100% { clip-path: inset(0 -10% 0 0); } }
}
/* ===== 11/25 表示の検査（tests/qa_layout.mjs）で見つけた崩れ ===== */
/* 文字を大きくする設定でも、抽選券の字が券の外で切れない：はみ出す時だけ k.js（kFitTicket）が --fit を下げて、中身をまとめて縮める */
.k-mc-main > :not(.k-mc-pattern):not(.k-mc-foil), .k-mc-stub > * { zoom: var(--fit, 1); }
/* 運営が入れる文（抽選の名前・景品・当たった人／外れた人への文）に、長い URL や区切りの無い英数字があると、
   会場のページが横に何倍にも広がって横スクロールになっていた（景品の欄に URL を貼った時など）。どこでも折り返す */
.k-title, .k-prize, .k-room, .k-note, .k-sub, .k-big, #k p, .kg-card h1, .kg-card h2, .kg-card p, .kg-card div, .kg-prize { overflow-wrap: anywhere; }
.kg-prize { max-width: 100%; box-sizing: border-box; white-space: normal; }
/* 運営プレビューの帯（下に固定）の分だけ、会場の下をあける（いちばん下のボタンや文が帯の下に隠れないように） */
body.k-pv #k { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
.k-won-in > * { zoom: var(--fit, 1); }
/* 11/26 最終チェック（本番の実画面）：題と景品が「抽／選」「当選／確率」と言葉の途中で折れていた。
   言葉のまとまりで折る（対応していない端末は今までどおり）。題は行の長さをそろえる */
.k-title, .k-top .k-poster .k-prize, .k-poster-k { word-break: auto-phrase; text-wrap: balance; }
/* 11/26 題と景品：単語の間の <wbr> だけで折る（iPhone Safari 用）。長い英数字は枠からはみ出さないよう最後の手段で折る */
.k-words { word-break: keep-all; overflow-wrap: anywhere; }
/* 「抽選券をもらって参加」は見出し。ボタンと同じ太枠・影だと押せる物に見える（11/26 Fable） */
.k-card.k-cond { border: 0; box-shadow: none; background: transparent; padding: 4px 0 0; }
/* 当選の画面の大きさを測る一瞬だけ、動きの形（transform）を外す（k.js kFitWon）。animation は止めない＝流れ直さない */
.k-measure, .k-measure * { transform: none !important; transition: none !important; }
/* ただし「当選」の字は、脈打つ動きの一番大きい形（斜め・1.08倍）で測る。細い形で測ると、動き出した時にはみ出す（11/26 文字を大きくした iPhone・Mac の調べ） */
.k-measure .k-bang.kw-drop { transform: skewX(-8deg) scale(1.08) !important; }
.k-measure .k-bang.pachi:not(.kw-drop) { transform: skewX(-8deg) rotate(-4deg) !important; }

/* 抽選の辻褄 3回目（Fable 採点 11/26） */
.k-band.thin { top: 6%; padding: 2px 0; border-width: 3px; opacity: .92; pointer-events: none; }
.k-band.thin .pachi { font-size: clamp(20px, 6.5vw, 30px); }
.k-heat.pachi.k-guide { font-size: clamp(22px, 7vw, 32px); line-height: 1.25; }
.k-heat.pachi.gold-t { color: #ffb800; }
.k-heat.pachi .k-sub { font-size: clamp(14px, 4.2vw, 18px); font-family: "Noto Sans JP", sans-serif; font-weight: 800; color: #5a4a7a; background: none; -webkit-text-fill-color: currentColor; margin-top: 4px; }

/* 辻褄 4回目（Fable 90点の残り） */
.k-band.thin { top: 19%; }
.k-cap.k-top { position: absolute !important; left: 0; right: 0; top: 14px; z-index: 6; }
/* 左上の保留の玉（k-hold・幅およそ50px）に、上の大きな文字がかからないように左右をあける（11/26 文字1.3倍の iPhone で「何色が」と「保留」が重なった） */
.k-cap.k-top { padding-left: 56px; padding-right: 56px; box-sizing: border-box; }
.k-sub.k-pill { display: inline-block; background: rgba(255, 255, 255, .94); color: #3a2a5a; -webkit-text-fill-color: #3a2a5a; border-radius: 999px; padding: 4px 12px; font-size: clamp(13px, 3.8vw, 16px); }
.k-peek { position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: 38px 0 0 34px; border-radius: 50%; z-index: 3; background: radial-gradient(circle at 32% 26%, #fffde0 0 10%, #ffe14d 30%, #ffb800 60%, #a66b00 100%); box-shadow: 0 0 0 3px #fff, 0 0 24px 6px rgba(255, 196, 0, .8); animation: k-trem .08s linear infinite; }
.k-stage.fx-swing .k-hold { left: auto; right: 14px; }
.k-heat.pachi .k-sub.k-pill { display: inline-block; background: rgba(255, 255, 255, .95); -webkit-background-clip: border-box; background-clip: border-box; color: #3a2a5a; -webkit-text-fill-color: #3a2a5a; text-shadow: none; border-radius: 999px; padding: 4px 12px; font-size: clamp(13px, 3.8vw, 16px); }

/* 辻褄 5回目 */
.k-cap.k-top.k-heat.pachi { font-size: clamp(20px, 6.2vw, 28px); line-height: 1.15; }
.k-band.thin .pachi { font-size: clamp(15px, 4.6vw, 21px); }
.k-band.thin { padding: 0; border-width: 2px; }
.k-stage.fx-whack .k-band.thin { top: 4%; }   /* 叩きは指示が下帯にもあるので、帯は上端へ（モグラの頭を隠さない） */

/* 辻褄 6回目 */
.k-busy-t { white-space: pre-line; }
.k-stage.fx-biri .k-band.thin { top: 4%; }
.k-busy.two { max-width: 320px; }
.k-busy.two .k-busy-t { font-size: clamp(11px, 3.4vw, 13px); line-height: 1.4; letter-spacing: .02em; }
.k-busy.two .k-busy-t::after { display: none; }

/* 辻褄 8回目：2行の下帯は1行目を元の大きさ、ルールの説明だけ小さく */
.k-busy.two .k-busy-t { font-size: 15px; letter-spacing: .06em; }
.k-busy-s { display: block; font-size: clamp(11px, 3.3vw, 13px); font-weight: 700; letter-spacing: .02em; margin-top: 2px; }
.k-nobr { display: inline-block; white-space: nowrap; }
/* ガラポン：出口で光る玉（まだ色は分からない）→ 金か白に変わる */
.k-ball.mystery { margin-top: -84px; background: radial-gradient(circle at 32% 26%, #fff 0 30%, #f2f2ff 60%, #c9c9e6 100%); box-shadow: 0 0 0 5px #fff, 0 0 40px 14px rgba(255, 255, 255, .95), 0 0 70px 26px rgba(255, 214, 10, .45); filter: brightness(1.25); }

/* ガラポンの結果の札と「抽選券を削って…」を重ねない（別の行に） */
.k-heat.pachi.k-guide .k-sub.k-pill { display: table; margin: 0 auto 8px; }
/* 逆転（復活）：外れの後の暗転 → 虹の光（11/26 トミーさん「1回外れたと思わせて実は当たり」） */
.k-stage > .k-revive { position: absolute !important; inset: 0; z-index: 6; background: #000; pointer-events: none; animation: k-rv-in .18s ease-out both; }
.k-stage > .k-revive.go { background: var(--rainbow); background-size: 200% 100%; animation: rb-move .3s linear infinite, k-rv-out 1.2s ease-out forwards; }
@keyframes k-rv-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes k-rv-out { 0% { opacity: 1; filter: brightness(1.6); } 100% { opacity: 0; filter: brightness(1); } }
@media (prefers-reduced-motion: reduce) { .k-stage > .k-revive.go { animation: k-rv-out .8s ease-out forwards; } }
.k-stage > .k-rv-word { position: absolute !important; left: 0; right: 0; top: 38%; z-index: 7; text-align: center; font-size: clamp(44px, 14vw, 64px); line-height: 1; color: #fff; -webkit-text-stroke: 3px #7A0010; paint-order: stroke fill; text-shadow: 0 4px 0 #7A0010, 0 0 24px rgba(255, 220, 0, .9); pointer-events: none; animation: k-rv-pop .35s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes k-rv-pop { from { transform: scale(2.2); opacity: 0; } to { transform: scale(1); opacity: 1; } }
/* 逆転の後の早回しの間は、盤面の口上と下の帯を出さない（最後に「大逆転！！」だけ） */
.k-stage.rv .kf-call, .k-stage.rv .k-busy { visibility: hidden; }
/* 逆転の後のゲーム：本人がさわるので盤面の指示は出したまま、下の説明の帯だけ出さない */
.k-stage.rvg .k-busy { visibility: hidden; }
/* 4回目（gemini 本番採点）：連打のたびに舞台が跳ねて、ためた分だけ光る・押す前のルール・外れの玉 */
.k-mwrap.tapk { animation: k-tapk .14s ease-out; }
@keyframes k-tapk { 0% { transform: scale(1.035) translateY(3px); } 100% { transform: none; } }
.k-mwrap::after { content: ""; position: absolute; inset: -4px; border-radius: 18px; pointer-events: none; z-index: 7; opacity: var(--pw, 0); box-shadow: 0 0 34px 10px rgba(255, 170, 0, .85), inset 0 0 46px 8px rgba(255, 110, 0, .55); transition: opacity .2s; }
@media (prefers-reduced-motion: reduce) { .k-mwrap.tapk { animation: none; } }
.k-sub.k-rule { display: block !important; text-align: center; font-weight: 900; color: #b8000f; line-height: 1.5; }
.k-ball.mystery { font-size: 64px; color: #b07a00; text-shadow: 0 2px 0 #fff; }
.k-ball.white { background: radial-gradient(circle at 32% 26%, #fff 0 12%, #d9dce6 45%, #8f95a6 100%); box-shadow: 0 0 0 4px #6d7385, 0 10px 24px rgba(27, 21, 48, .35); scale: .82; }
.k-band.thin { top: 4%; }
.k-stage.fx-biri .k-band.thin, .k-stage.fx-taru .k-band.thin { opacity: .7; }

/* 受け取りページの「オプチャOSでできること」（オプチャOS の抽選だけ・11/26）：レターの紺×金。開く前でも分野の一言は読める */
.kg-os { margin: 18px 0 0; background: #fff; border: 1px solid #D4B46A; border-radius: 14px; padding: 22px clamp(12px, 4vw, 18px) 18px; color: #1E293B; box-shadow: 0 4px 16px rgba(15, 35, 80, .08); }
.kg-os:empty { display: none; }
.kg-os-eye { text-align: center; font-size: 12.5px; font-weight: 900; letter-spacing: .08em; color: #B8860B; }
.kg-os-title { margin: 4px 0 10px; text-align: center; font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif; font-weight: 900; font-size: clamp(19px, 6vw, 24px); line-height: 1.3; color: #0B2F66; text-wrap: balance; }
.kg-os-lead { margin: 0 0 14px; font-size: 14px; line-height: 1.85; color: #333; }
.kg-os-count { margin: 0 0 6px; text-align: center; font-size: 14px; font-weight: 800; color: #0B2F66; }
.kg-os-count b { font-size: 24px; line-height: 1; margin: 0 2px; color: #B8860B; font-variant-numeric: tabular-nums; }
.kg-os-how { margin: 8px 0 10px; text-align: center; font-size: 12.5px; color: #526273; }
.kg-os-list { display: grid; gap: 8px; }
.kg-os-cat { border: 1px solid #CBD9E8; border-radius: 10px; background: #FCFBF7; overflow: hidden; }
.kg-os-cat[open] { border-color: #D4B46A; }
.kg-os-cat summary { list-style: none; display: grid; grid-template-columns: auto 1fr auto 22px; grid-template-areas: "no name n arr" "sub sub sub sub"; align-items: center; column-gap: 8px; row-gap: 4px; padding: 12px 10px 12px 12px; cursor: pointer; }
.kg-os-cat summary::-webkit-details-marker { display: none; }
.kg-os-no { grid-area: no; font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif; font-weight: 900; font-size: 18px; color: #B8860B; }
.kg-os-name { grid-area: name; min-width: 0; font-size: 15px; line-height: 1.4; color: #0B2F66; word-break: keep-all; overflow-wrap: anywhere; }
.kg-os-sub { grid-area: sub; font-size: 13px; line-height: 1.6; color: #3E4C5A; text-wrap: pretty; }
.kg-os-n { grid-area: n; white-space: nowrap; text-align: center; font-size: 11.5px; font-weight: 900; color: #0B2F66; background: #EAF0F8; border-radius: 999px; padding: 1px 8px; }
.kg-os-n::after { content: "個"; font-weight: 700; margin-left: 1px; }
.kg-os-cat summary::after { grid-area: arr; content: ""; width: 22px; height: 22px; border-radius: 50%; background: #F3E7C6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M7 9l4 4 4-4' fill='none' stroke='%23B8860B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/22px no-repeat; transition: transform .2s; }
.kg-os-cat[open] summary::after { transform: rotate(180deg); }
.kg-os-shut { display: block; margin: 0 auto 12px; font: inherit; font-size: 12.5px; font-weight: 700; color: #526273; background: none; border: 0; padding: 6px 14px; cursor: pointer; }
.kg-os-shut::after { content: " ∧"; }
.kg-os-cat ul { margin: 0; padding: 4px 14px 8px 32px; border-top: 1px dashed #D4B46A; }
.kg-os-cat li { font-size: 13.5px; line-height: 1.75; margin: 8px 0 0; overflow-wrap: anywhere; }
.kg-os-cat li::marker { color: #B8860B; }
.kg-os-upd { margin: 12px 0 0; text-align: center; font-size: 12px; color: #526273; }
.kg-os-jump { display: block; width: 100%; max-width: 320px; min-height: 48px; margin: 14px auto 0; font: inherit; font-size: 15px; font-weight: 800; color: #fff; background: #0B2559; border: 0; border-radius: 999px; padding: 10px 18px; cursor: pointer; box-shadow: 0 3px 0 #061738; }

/* 「復活！！」「大逆転！！」は白抜き（虹の上で沈まない。gemini 3回目） */
.k-stage > .k-rv-word { -webkit-text-fill-color: #fff; }
.k-stage > .k-rv-word.win { top: 30%; font-size: clamp(40px, 12vw, 58px); }
/* 5回目（gemini 本番採点）：帯の間は上の文を隠す・保留の玉をモグラ／くす玉と重ねない・ルールの余白 */
.k-stage.banding .kf-call { visibility: hidden; }
.k-stage.fx-swing .k-hold { left: 14px; right: auto; }
.k-stage.fx-whack .k-hold { left: auto; right: 14px; }
.k-sub.k-rule { margin: 4px 0 6px; }
/* モグラのフリーズ：舞台のまわりも止める */
.k-stage.kfreeze *, .k-stage.kfreeze::before, .k-stage.kfreeze::after { animation-play-state: paused !important; }
.k-stage.kfreeze .k-rays { filter: grayscale(1); }
/* 6回目（gemini 本番採点）：「？」の玉がその場で色に変わる */
.k-ball.reveal { animation: k-qflip .45s cubic-bezier(.2, 1.6, .4, 1) both; opacity: 1; }
.k-ball.reveal.gold { animation: k-qflip .45s cubic-bezier(.2, 1.6, .4, 1) both, k-pulse .5s .45s ease-in-out infinite alternate; }
@keyframes k-qflip { 0% { transform: rotateY(90deg) scale(1.15); filter: brightness(2.2); } 100% { transform: none; filter: none; } }

/* 当選◯名（当選人数で決める抽選。確率の数字の代わり。さとし 11/26） */
.k-poster-n { margin: 6px 0 0; text-align: center; font-weight: 900; color: #1E293B; font-size: 15px; }
.k-poster-n b { font-size: 26px; line-height: 1; margin: 0 3px; color: #CC0000; font-variant-numeric: tabular-nums; }
/* 8回目（gemini 本番採点）：細い帯の間、上の文は消さずに帯の下へよける（空のコマを作らない） */
.k-stage.banding .kf-call { visibility: visible; translate: 0 58px; transition: translate .15s; }
/* 9回目（gemini 本番採点）：細い帯の間は上の文を隠す（帯は 0.85 秒に短く）・白い光で字が飛ばないように・ガラポンの結果の文に黒い板 */
.k-stage.banding .kf-call { visibility: hidden; translate: none; }
.k-band.thin { animation-duration: .85s; }
@keyframes k-flash { from { opacity: .5; } to { opacity: 0; } }
.k-flash { animation-duration: .6s; }
.k-cap.k-top.rainbow, .k-cap.k-top:not(.gold-t):not(.k-guide) { text-shadow: 0 2px 0 #1b0d04; }
.k-stage.fx-garapon .k-cap.k-top { filter: drop-shadow(0 2px 0 #1b0d04) drop-shadow(0 0 2px #1b0d04) drop-shadow(0 0 6px rgba(27, 13, 4, .8)); }

/* 11/27 さとし「当選後のページも何これ」：当選の瞬間（ポップな当選画面）から来て、急に地味な紙の案内になっていた。
   景品をレターの景品ポスター（クリーム→黄・光の筋・黒の枠・赤の極太に白ふち・「＼ あなたの景品 ／」）にし、カードの端から端まで。
   紺の帯が右だけ短かった（max-width:100% で負の余白が効かない）のも直す。紙吹雪は1回だけ・短く、本文を長くふさがない */
.kg-won .kg-card.win .kg-prize { position: relative; display: block; max-width: none; width: auto; margin: 4px -18px 16px; padding: 14px 16px 16px; border: 0; border-top: 4px solid #111; border-bottom: 4px solid #111; border-radius: 0;
  background: repeating-conic-gradient(from 0deg at 50% 120%, rgba(255, 255, 255, .45) 0deg 6deg, transparent 6deg 14deg), linear-gradient(180deg, #FFFBE2 0%, #FAE396 55%, #F2CF6C 100%);
  color: #CC0C14; font-family: "Noto Sans JP", "Hiragino Sans", sans-serif; font-weight: 900; font-size: 22px; line-height: 1.35; letter-spacing: .01em; box-shadow: none;
  text-shadow: 2px 2px 0 #fff, -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff, 0 2px 0 #fff, 0 -2px 0 #fff, 2px 0 0 #fff, -2px 0 0 #fff, 3px 4px 0 rgba(0, 0, 0, .16); }
.kg-won .kg-card.win .kg-prize::before { content: "＼ あなたの景品 ／"; display: block; margin-bottom: 4px; font-size: 13px; letter-spacing: .08em; color: #0B3C7D; text-shadow: 2px 2px 0 #fff, -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff; }
.kg-won .kg-card.win .kg-cheer { margin-bottom: 10px; }
.kg-won .kg-card.win .kg-cheer span:first-child { font-size: 33px; color: #0B2F66; }
.kg-won .kg-take { display: block; margin-top: 16px; }
.kg-won .kg-proof { border-top: 1px dashed rgba(0, 0, 0, .2); }
.kg-won .kg-stamp { font-size: 17px; padding: 3px 12px; border-width: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .kg-won .kg-card.win .kg-prize { animation: kg-prize-in .7s cubic-bezier(.2, 1.4, .4, 1) .45s both; }
  .kg-won .kg-stamp { animation: kg-stamp-in .45s cubic-bezier(.2, 1.6, .4, 1) 1.1s both; }
  @keyframes kg-prize-in { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
  @keyframes kg-stamp-in { from { transform: rotate(-8deg) scale(2.4); opacity: 0; } to { transform: rotate(-8deg) scale(1); opacity: 1; } }
}
.kg-prize .kg-pw { display: inline-block; max-width: 100%; }
.kg-prize .kg-pw + .kg-pw { margin-left: .3em; }
.kg-won .kg-card.win .kg-prize { text-wrap: balance; word-break: auto-phrase; }

/* 11/27 当選ページの「オプチャOS」紹介：gemini neon high の文（体験→悩みと変化3つ→実例→行動1つ）。悩みは吹き出し、変化は本文。実例の数字は黄のマーカー */
.kg-os-title { font-size: clamp(20px, 6.2vw, 25px); margin-bottom: 12px; }
.kg-os-h { margin: 20px 0 10px; text-align: center; font-family: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif; font-weight: 900; font-size: 17px; line-height: 1.5; color: #B51700; text-wrap: balance; word-break: auto-phrase; }
.kg-os-pains { display: grid; gap: 10px; }
.kg-os-pain { background: #F4F8FC; border: 1px solid #CBD9E8; border-radius: 12px; padding: 12px 14px; text-align: left; }
.kg-os-pain b { display: block; font-size: 14.5px; color: #0B2F66; margin-bottom: 4px; }
.kg-os-pain p { margin: 0; font-size: 13.5px; line-height: 1.8; color: #333; }
.kg-os-proof { display: block; margin-bottom: 6px; padding: 0 2px; font-weight: 900; color: #1E293B; background: linear-gradient(transparent 58%, #FFE866 58%); }
.kg-os-open { display: block; width: 100%; min-height: 54px; margin: 16px auto 0; font: inherit; font-size: 17px; font-weight: 900; color: #fff; border: 2px solid #6B060A; border-radius: 12px; cursor: pointer; text-shadow: 0 2px 3px rgba(0, 0, 0, .32);
  background: linear-gradient(180deg, #DE3030 0%, #B51218 52%, #85080D 100%); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .34), 0 5px 0 #560407; }
.kg-os-open:active { transform: translateY(3px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .34), 0 2px 0 #560407; }
.kg-os-more { margin-top: 16px; }
.kg-os-title { text-wrap: balance; word-break: auto-phrase; }
.kg-os-proof { display: inline; margin: 0; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.kg-os-pain b { text-wrap: balance; word-break: auto-phrase; }
/* 10回目（gemini 本番採点）：上の文を一瞬でも空にしない＝細い帯は上の文の下を通す。ふだんの上の文にも濃い板（明るい背景で読める）。ガラポン外れの白い玉は止めずに沈む */
.k-stage.banding .kf-call { visibility: visible; translate: none; }
.k-band.thin { top: 17%; }
.kf-call:not(.win):not(:empty)::before { content: ""; position: absolute; left: 50%; top: -4px; bottom: -4px; width: min(92%, 22em); translate: -50% 0; z-index: -1; border-radius: 999px; background: rgba(14, 6, 30, .55); }
.k-ball.reveal.white { animation: k-qflip .45s cubic-bezier(.2, 1.6, .4, 1) both, k-sigh 1.6s .5s ease-in-out both; }
@keyframes k-sigh { 0% { transform: none; filter: none; } 35% { transform: translateY(-6px) rotate(-6deg); } 100% { transform: translateY(14px) rotate(10deg) scale(.9); filter: grayscale(.6) brightness(.85); } }
.kf-call { padding: 0 58px; }
.kf-call:not(.win):not(:empty)::before { width: calc(100% - 104px); }
/* 当選者だけの購入の期限（11/27 さとし「48時間限定とか」） */
.kg-clock { margin: 6px 0 0; text-align: center; font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.kg-clock b { color: #B51218; font-size: 20px; }
.kg-clock.out { color: #5E6C84; }
.kg-take span { display: inline-block; }
.kg-tk-off { font-size: 1.15em; }
/* 会場の「抽選のルール・仕組み」の下：攻略本へ */
.k-guide-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0 0; padding: 12px 14px; border: 2px solid var(--fg); border-radius: 12px; background: linear-gradient(135deg, #fff4c2, #ffe0ec); color: var(--fg); text-decoration: none; box-shadow: 0 4px 0 var(--fg); }
.k-guide-t { display: grid; min-width: 0; text-align: left; }
.k-guide-t b { font-weight: 900; font-size: 16px; }
.k-guide-t small { color: var(--mut); font-weight: 700; font-size: 12px; }
.k-guide-ar { flex: none; font-size: 28px; font-weight: 900; line-height: 1; }
.k-guide-link:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.k-guide-link .k-guide-t { flex: 1; }
.k-guide-dots { flex: none; display: grid; grid-template-columns: repeat(5, 8px); gap: 3px; }
.k-guide-dots i { width: 8px; height: 22px; border-radius: 3px; transform: skewX(-8deg); }
.k-guide-dots .blue { background: #1f5bff; } .k-guide-dots .green { background: #19b84f; } .k-guide-dots .red { background: #e8001f; } .k-guide-dots .gold { background: #ffd23f; } .k-guide-dots .rainbow { background: var(--rainbow); }
/* ②「絶対に押すなよ」ボタン */
.k-dare { margin: 12px 0; padding: 16px 14px; border: 3px solid #111; border-radius: 18px; background: repeating-linear-gradient(135deg, #ffd400 0 16px, #111 16px 32px); text-align: center; position: relative; }
.k-dare > * { position: relative; }
.k-dare::before { content: ""; position: absolute; inset: 8px; border-radius: 12px; background: #fff; }
.k-dare-h { margin: 0; font-weight: 900; font-size: 16px; }
.k-dare-left { font-family: "Dela Gothic One", "Noto Sans JP", sans-serif; font-weight: 400; font-size: 30px; margin: 0 6px; font-variant-numeric: tabular-nums; }
.k-dare-who { margin: 2px 0 10px; font-weight: 900; font-size: 18px; text-wrap: balance; overflow-wrap: anywhere; }
.k-dare-btn { display: block; width: min(calc(100% - 16px), 300px); margin: 6px auto 8px; padding: 22px 12px; border: 0; border-radius: 999px; background: radial-gradient(circle at 50% 30%, #ff4d5e, #c40018 70%); color: #fff; font: 400 clamp(22px, 7vw, 28px) "Dela Gothic One", "Noto Sans JP", sans-serif; box-shadow: 0 8px 0 #7a000f, 0 0 0 4px #fff, 0 0 0 7px #c40018; cursor: pointer; touch-action: manipulation; }
.k-dare-btn:active { transform: translateY(5px); box-shadow: 0 3px 0 #7a000f, 0 0 0 4px #fff, 0 0 0 7px #c40018; }
.k-dare-btn.armed { animation: k-dare-shake .25s linear infinite; }
.k-dare-btn:disabled, .k-dare-btn.locked { background: #e5e5e5; color: #8a8a8a; box-shadow: 0 4px 0 #bdbdbd, 0 0 0 3px #fff, 0 0 0 5px #cfcfcf; cursor: default; }
.k-dare-sub { margin: 0; color: #444; font-size: 12px; font-weight: 700; text-wrap: balance; }
.k-dare-broken::before { background: #fff1f2; }
.k-dare-kept::before { background: #fffbe6; }
@keyframes k-dare-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-3px) rotate(-1deg); } 75% { transform: translateX(3px) rotate(1deg); } }
@media (prefers-reduced-motion: reduce) { .k-dare-btn.armed { animation: none; } }
.k-dare-flip { position: fixed; inset: 0; z-index: 60; display: grid; place-content: center; gap: 6px; text-align: center; color: #fff; background: rgba(10, 10, 10, .82); animation: k-dare-in .25s ease-out both; padding: 16px; }
.k-dare-flip.broken { background: radial-gradient(circle, rgba(200, 0, 24, .92), rgba(40, 0, 6, .94)); }
.k-dare-flip.kept { background: radial-gradient(circle, rgba(224, 160, 0, .94), rgba(60, 40, 0, .94)); }
.k-dare-flip-h { margin: 0; font: 400 clamp(36px, 12vw, 64px)/1.1 "Dela Gothic One", "Noto Sans JP", sans-serif; text-shadow: 0 4px 0 rgba(0, 0, 0, .4); animation: k-dare-pop .5s cubic-bezier(.2, 1.6, .4, 1) both; }
.k-dare-flip-s { margin: 0; font-weight: 900; font-size: 18px; overflow-wrap: anywhere; }
@keyframes k-dare-in { from { opacity: 0; } }
@keyframes k-dare-pop { from { transform: scale(.4); } }
@media (prefers-reduced-motion: reduce) { .k-dare-flip, .k-dare-flip-h { animation: none; } }
/* ①主催権リレー（受け取りページ） */
.kg-relay { margin: 14px 0; padding: 18px 16px; border-radius: 18px; background: linear-gradient(135deg, #1b1033, #3a1250); color: #fff; text-align: center; box-shadow: 0 0 0 3px #ffd23f, 0 8px 24px rgba(58, 18, 80, .35); }
.kg-relay-tag { display: inline-block; margin: 0 0 6px; padding: 3px 12px; border-radius: 999px; background: #ffd23f; color: #3a2600; font-weight: 900; font-size: 13px; letter-spacing: .1em; }
.kg-relay-h { margin: 0 0 6px; font: 400 clamp(22px, 7vw, 28px)/1.3 "Dela Gothic One", "Noto Sans JP", sans-serif; text-wrap: balance; }
.kg-relay-sub { margin: 0 0 10px; color: #e9dcff; font-size: 13px; font-weight: 700; text-wrap: balance; }
.kg-relay-title { margin: 6px 0; font-weight: 900; font-size: 18px; overflow-wrap: anywhere; }
.kg-relay-time { margin: 0 0 10px; font-weight: 800; font-size: 14px; }
.kg-relay-clock { font-family: "Dela Gothic One", "Noto Sans JP", sans-serif; font-weight: 400; font-size: 24px; color: #ffd23f; font-variant-numeric: tabular-nums; }
.kg-relay-f { display: grid; gap: 4px; margin: 0 0 10px; text-align: left; font-size: 13px; font-weight: 800; }
.kg-relay-in { width: 100%; box-sizing: border-box; font: 700 16px "Noto Sans JP", sans-serif; padding: 10px 12px; border: 2px solid #ffd23f; border-radius: 12px; background: #fff; color: #1b1033; }
.kg-relay-btn, .kg-relay-go { display: block; width: 100%; box-sizing: border-box; margin: 6px 0 0; padding: 14px 12px; border: 0; border-radius: 999px; background: linear-gradient(180deg, #ffe066, #ffb800); color: #3a2600; font-weight: 900; font-size: 17px; text-decoration: none; box-shadow: 0 5px 0 #a87400; cursor: pointer; }
.kg-relay-btn:disabled { opacity: .6; }
.kg-relay-share { display: block; margin: 10px 0 0; padding: 10px 12px; border: 2px solid rgba(255, 255, 255, .7); border-radius: 999px; color: #fff; font-weight: 800; font-size: 14px; text-decoration: none; }
.kg-relay-err { margin: 6px 0 0; color: #ffb4b4; font-weight: 800; font-size: 13px; min-height: 1em; }
.kg-nb { display: inline-block; }
/* 主催権リレーで作られた会場：だれが作ったか */
.k-relay-from { margin: 10px 0; padding: 10px 12px; border-radius: 14px; background: linear-gradient(135deg, #1b1033, #3a1250); color: #fff; text-align: center; font-weight: 800; font-size: 14px; box-shadow: 0 0 0 2px #ffd23f; text-wrap: balance; }
.k-relay-from b { color: #ffd23f; }
.kg-relay-warn { margin: 2px 0 6px; color: #ffd23f; font-size: 13px; font-weight: 700; text-wrap: balance; }
.k-dare-tag { margin: 0; color: #c40018; font-weight: 900; font-size: 13px; letter-spacing: .08em; }
.k-dare-stamp { display: inline-block; margin: 0 0 4px; padding: 4px 14px; border: 3px solid currentColor; border-radius: 10px; font: 400 22px/1.2 "Dela Gothic One", "Noto Sans JP", sans-serif; transform: rotate(-4deg); }
.k-dare-broken .k-dare-stamp { color: #c40018; }
.k-dare-kept .k-dare-stamp { color: #b07800; }
.k-dare-hint { margin: 0 0 6px; color: #c40018; font-weight: 900; font-size: 13px; }
.k-dare-bar { display: block; height: 6px; margin: 0 auto 6px; width: min(100%, 300px); border-radius: 3px; background: #c40018; transform-origin: left; animation: k-dare-bar 3s linear both; }
@keyframes k-dare-bar { to { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .k-dare-bar { animation: none; } }
.kg-relay-fx { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.kg-relay-chip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 9px 6px; border: 2px solid rgba(255, 210, 63, .5); border-radius: 12px; background: rgba(255, 255, 255, .08); color: #fff; font: 800 14px "Noto Sans JP", sans-serif; cursor: pointer; }
.kg-relay-chip.on { background: #ffd23f; border-color: #ffd23f; color: #3a2600; box-shadow: 0 3px 0 #a87400; }
.kg-relay-stamp { display: table; margin: 4px auto 6px; padding: 4px 16px; border: 3px solid #ffd23f; border-radius: 12px; color: #ffd23f; font: 400 26px/1.2 "Dela Gothic One", "Noto Sans JP", sans-serif; transform: rotate(-4deg); animation: k-dare-pop .5s cubic-bezier(.2, 1.6, .4, 1) both; }
.kg-relay-secs { margin: 4px 0 12px; font-weight: 900; font-size: 16px; }
.kg-relay-secs b { font: 400 44px/1 "Dela Gothic One", "Noto Sans JP", sans-serif; color: #ffd23f; margin-right: 4px; }
.kg-relay.made { background: radial-gradient(circle at 50% 0%, #6a2a8a, #1b1033 70%); }
@media (prefers-reduced-motion: reduce) { .kg-relay-stamp { animation: none; } }
.k-dare .k-nobr { max-width: 100%; }
.k-dare-who br + .k-nobr { margin-top: 2px; }
.k-dare-btn.armed { background: #111; color: #ffd400; box-shadow: 0 8px 0 #000, 0 0 0 4px #ff2d3f, 0 0 16px 6px rgba(255, 45, 63, .75); animation: k-dare-shake .25s linear infinite, k-dare-blink .5s steps(1) infinite; }
@keyframes k-dare-blink { 50% { box-shadow: 0 8px 0 #000, 0 0 0 4px #ffd400, 0 0 22px 10px rgba(255, 45, 63, .9); } }
.k-dare-kept { background: repeating-linear-gradient(135deg, #ffd23f 0 16px, #e0a000 16px 32px); box-shadow: 0 0 18px rgba(255, 196, 0, .7); }
@media (max-width: 360px) { .k-dare-who { font-size: 16px; } .k-dare::before { inset: 6px; } .k-dare { padding: 14px 10px; } }
@media (prefers-reduced-motion: reduce) { .k-dare-btn.armed { animation: none; } }
.k-dare-track { display: block; height: 8px; margin: 0 auto 6px; width: min(calc(100% - 16px), 300px); border-radius: 4px; background: #d9d9d9; overflow: hidden; }
.k-dare-track > .k-dare-bar { width: 100%; height: 100%; margin: 0; border-radius: 0; }
.k-rule-v { min-width: 0; flex: 1; }
.k-rule-v .k-nobr, .k-dare .k-nobr { max-width: 100%; white-space: normal; }   /* 320px：入りきらない時だけ中で折り返す（はみ出して切れない） */
.k-peek.back { animation: k-peek-back .45s ease-in forwards; }
@keyframes k-peek-back { to { transform: translate(-26px, -30px) scale(.4); opacity: 0; box-shadow: none; } }
/* 11回目：もぐらの保留の玉も左上に（右上の「4D 傾きオン」・COMBO・音のボタンと重ならない） */
.k-stage.fx-whack .k-hold { left: 14px; right: auto; }
.k-stage.banding .k-busy { visibility: hidden; }
/* 12回目：ガラポンの上の文は濃い板の上に（赤い本体のてっぺんと重なって読めない） */
.k-stage.fx-garapon .k-cap.k-top:not(:empty) { width: fit-content; max-width: 92%; margin-inline: auto; padding: 2px 18px; border-radius: 999px; background: rgba(14, 6, 30, .72); box-shadow: 0 0 0 2px rgba(255, 212, 0, .55); filter: none; position: relative; z-index: 5; }
/* 13回目：ガラポンの上の文は白／金の字＋太いふち（黒い字に見えて読めない） */
.k-stage.fx-garapon .k-cap.k-top:not(:empty) { -webkit-text-fill-color: #fff; color: #fff; background-clip: border-box; -webkit-background-clip: border-box; background-image: none; background-color: rgba(14, 6, 30, .8); -webkit-text-stroke: 0; text-shadow: 0 2px 0 #000, 0 0 8px rgba(0, 0, 0, .8); font-size: clamp(20px, 6vw, 28px); padding: 4px 22px; animation: none; }
.k-stage.fx-garapon .k-cap.k-top.kgold:not(:empty) { -webkit-text-fill-color: #ffd400; color: #ffd400; }
/* 13回目：帯は盤の下を通る（.low）。止まっていても主役が見える */
.k-band.low { z-index: 7; }
.k-stage.banding-any .k-busy { visibility: hidden; }
.k-godray { position: absolute; left: 50%; top: 50%; width: 360px; height: 360px; margin: -180px 0 0 -180px; margin-top: -264px; z-index: 0; pointer-events: none; border-radius: 50%; background: repeating-conic-gradient(rgba(255, 220, 90, .55) 0 8deg, transparent 8deg 22deg); -webkit-mask: radial-gradient(circle, #000 20%, transparent 68%); mask: radial-gradient(circle, #000 20%, transparent 68%); animation: k-godray 2.8s linear forwards; }
@keyframes k-godray { 0% { opacity: 0; transform: rotate(0) scale(.5); } 15% { opacity: 1; transform: rotate(30deg) scale(1.05); } 100% { opacity: 0; transform: rotate(160deg) scale(1.2); } }
/* 14回目：ガラポンの最後は自分で「ストップ！」。押す前は本体に寄って溜める */
.k-stopbtn { position: absolute; left: 50%; bottom: 18%; translate: -50% 0; z-index: 9; min-width: 170px; min-height: 58px; font: 400 24px/1 "Dela Gothic One", "Hiragino Sans", sans-serif; color: #fff; border: 4px solid #fff; border-radius: 999px; cursor: pointer; touch-action: manipulation;
  background: linear-gradient(180deg, #ff5a4f, #c2121a); box-shadow: 0 6px 0 #6b060a, 0 0 26px rgba(255, 90, 79, .85); animation: k-stoppulse .32s ease-in-out infinite alternate; }
.k-stopbtn { display: grid; justify-items: center; gap: 5px; padding: 8px 22px 10px; }
.k-stophint { font: 800 12px/1 "Noto Sans JP", "Hiragino Sans", sans-serif; letter-spacing: .06em; color: #fff3b0; white-space: nowrap; }
.k-stopbtn:active { translate: -50% 4px; box-shadow: 0 2px 0 #6b060a; }
@keyframes k-stoppulse { to { scale: 1.08; } }
.k-stage.kcharge .k-drum { transition: scale .8s cubic-bezier(.2, .9, .3, 1); scale: 1.14; }
.k-tapfx { position: absolute; inset: 0; z-index: 8; pointer-events: none; background: radial-gradient(circle at 50% 55%, rgba(255, 255, 255, .7), rgba(255, 212, 0, .35) 35%, transparent 65%); animation: k-tapfx .45s ease-out forwards; }
@keyframes k-tapfx { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .k-stopbtn { animation: none; } .k-stage.kcharge .k-drum { scale: 1; } }
.k-stage > .k-stopbtn, .k-stage > .k-tapfx { position: absolute !important; }

/* ===== 当選の見出し（kg-glory）：紺の夜に金の光が回る、画面いっぱいの「当選」（さとし 11/27「人生上がり感」） ===== */
.kg-glory { position: relative; overflow: hidden; margin: 0 -18px; padding: 22px 12px 20px; text-align: center; isolation: isolate;
  background: radial-gradient(120% 90% at 50% 38%, #1d3f8f 0%, #0b1d4d 45%, #050b22 100%); border-bottom: 4px solid #111; }
.kg-gl-rays { position: absolute; inset: -60%; z-index: -1; background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255, 214, 92, .22) 0deg 7deg, transparent 7deg 20deg); }
.kg-gl-sparks { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.kg-gl-sparks i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #fff6c8; box-shadow: 0 0 10px 3px rgba(255, 215, 90, .9); opacity: 0; }
.kg-gl-rib { display: inline-block; padding: 4px 18px; border-radius: 4px; font-weight: 900; font-size: 13px; letter-spacing: .28em; color: #1b1000;
  background: linear-gradient(90deg, #b8860b, #ffe9a0 30%, #ffd23f 50%, #ffe9a0 70%, #b8860b); box-shadow: 0 2px 0 #6b4b00; }
.kg-gl-big { margin: 6px 0 2px; font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif; font-weight: 900; font-size: clamp(52px, 17vw, 80px); line-height: 1.1; letter-spacing: .02em; overflow-wrap: anywhere; /* 文字を大きくした時も切れない：17vw×1.3 で375px幅に収まり、それでも足りなければ折り返す */
  background: linear-gradient(180deg, #fffbe6 0%, #ffe680 30%, #ffc21a 52%, #e8a800 70%, #fff1b8 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 #6b4b00) drop-shadow(0 0 18px rgba(255, 196, 40, .65)); }
.kg-gl-line { font-weight: 900; font-size: clamp(20px, 6.2vw, 26px); color: #fff; text-shadow: 0 2px 0 #000, 0 0 14px rgba(255, 210, 80, .6); }
.kg-gl-sub { display: inline-block; margin-top: 10px; padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: 13.5px; color: #ffe9a0; background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 214, 92, .6); }
.kg-gl-sub b { font-size: 18px; color: #fff; margin: 0 .1em; font-variant-numeric: tabular-nums; }
.kg-won .kg-card.win .kg-hero { margin-bottom: 0; }
.kg-won .kg-card.win .kg-glory + .kg-prize { margin-top: 0; border-top: 0; }
@media (prefers-reduced-motion: no-preference) {
  .kg-gl-rays { animation: kg-gl-spin 18s linear infinite; }
  .kg-gl-sparks i { animation: kg-gl-twinkle 2.2s ease-in-out infinite; }
  .kg-gl-big { animation: kg-gl-slam .75s cubic-bezier(.2, 1.6, .4, 1) .15s both; }
  .kg-gl-line { animation: kg-in-up .5s ease-out .6s both; }
  .kg-gl-sub { animation: kg-in-up .5s ease-out .85s both; }
  .kg-gl-rib { animation: kg-in-up .45s ease-out both; }
  @keyframes kg-gl-spin { to { transform: rotate(360deg); } }
  @keyframes kg-gl-twinkle { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(1.3); } }
  @keyframes kg-gl-slam { 0% { transform: scale(2.6); opacity: 0; } 55% { opacity: 1; } 100% { transform: scale(1); opacity: 1; } }
  @keyframes kg-in-up { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
}
/* 購入期限：会場の締め切りと同じ大きな札 */
.kg-cd { margin: 12px 0 6px; }
.kg-cd .k-cd-label { font-size: 15px; }
.kg-cd .k-cd-num { font-size: clamp(34px, 11vw, 44px); }
.kg-cd .k-cd-tile { flex-basis: 96px; background: linear-gradient(180deg, #2b2b2b 0%, #111 100%); }
.kg-cd .k-cd-tile.sec { background: linear-gradient(180deg, #E52424 0%, #B00000 55%, #800000 100%); }
/* 教育パート（11/27 gemini の文）：仕掛けの分解（番号つき）・これまで→これから・自分ごとの問い・3つの手順 */
.kg-os-steps { counter-reset: st; list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; text-align: left; }
.kg-os-steps li { counter-increment: st; position: relative; padding: 10px 12px 10px 46px; border-radius: 12px; background: #F4F8FC; border: 1px solid #CBD9E8; }
.kg-os-steps li::before { content: counter(st); position: absolute; left: 10px; top: 10px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 14px; color: #fff; background: #0B2F66; }
.kg-os-steps b { display: block; font-size: 14.5px; color: #0B2F66; }
.kg-os-steps p { margin: 2px 0 0; font-size: 13.5px; line-height: 1.75; color: #B51700; font-weight: 700; }
.kg-os-shift { display: grid; gap: 10px; }
.kg-os-vs { display: grid; grid-template-columns: 1fr; border-radius: 12px; overflow: hidden; border: 1px solid #CBD9E8; text-align: left; }
.kg-os-vs p { margin: 0; padding: 9px 12px; font-size: 13.5px; line-height: 1.65; }
.kg-os-vs small { display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 4px; font-size: 11px; font-weight: 900; vertical-align: 1px; }
.kg-os-vs .old { background: #F2F2F2; color: #666; }
.kg-os-vs .old small { background: #999; color: #fff; }
.kg-os-vs .new { background: #FFF8DC; color: #1E293B; font-weight: 800; }
.kg-os-vs .new small { background: #B51700; color: #fff; }
.kg-os-ask { margin: 18px 0 0; padding: 14px; border-radius: 12px; background: #0B2F66; color: #fff; font-weight: 800; font-size: 15px; line-height: 1.75; text-align: center; text-wrap: balance; word-break: auto-phrase; }
.kg-os-how3 { display: grid; gap: 8px; text-align: left; }
.kg-os-how3 > div { display: grid; grid-template-columns: 34px 1fr; column-gap: 10px; align-items: start; padding: 10px 12px; border-radius: 12px; border: 2px solid #111; background: #fff; box-shadow: 3px 3px 0 #111; }
.kg-os-how3 .kg-os-n3 { grid-row: span 2; grid-column: 1; width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; font-weight: 900; font-size: 18px; color: #1b1000; background: linear-gradient(180deg, #ffe680, #ffc21a); }
.kg-os-how3 b { grid-column: 2; font-size: 15.5px; color: #111; }
.kg-os-how3 p { grid-column: 2; margin: 2px 0 0; font-size: 13.5px; line-height: 1.7; color: #333; }
.kg-os-cta { margin-top: 16px; text-align: center; font-weight: 700; }
.kg-take-again { margin-top: 14px; }
.kg-os-open.sub { min-height: 44px; font-size: 14.5px; color: #0B2F66; background: #fff; border: 2px solid #0B2F66; box-shadow: none; text-shadow: none; }
.kg-won .kg-share { color: #06A045; background: #fff; border: 2px solid #06C755; box-shadow: none; }
.kg-os-vs .old { color: #444; }
.kg-os-after { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: #FFF8DC; border: 1px dashed #D4A017; font-size: 13.5px; line-height: 1.7; font-weight: 700; color: #5a3d00; text-align: left; }
/* 見出し：箱の絵から「大当たり」まで1枚につなぐ（黒い太線を外す。gemini 11/27「3段のパッチワーク」） */
.kg-won .kg-card.win .kg-hero { border-bottom: 0; }
.kg-won .kg-card.win .kg-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: linear-gradient(transparent, #0b1d4d); pointer-events: none; }
.kg-glory { border-bottom: 2px solid #D4A017; }
.kg-gl-sub { font-size: 13px; }
/* 320px：赤いボタンを1行に */
@media (max-width: 360px) { .kg-take { font-size: 16px; padding-left: 8px; padding-right: 8px; letter-spacing: -.02em; } }
.kg-hero-tag { z-index: 1; }
.kg-gl-line { font-size: clamp(17px, 5.3vw, 22px); text-wrap: balance; word-break: auto-phrase; }
.kg-gl-sub { text-wrap: balance; word-break: auto-phrase; max-width: 100%; box-sizing: border-box; }
@media (max-width: 360px) { .kg-gl-sub { font-size: 12px; padding: 6px 10px; } .kg-gl-sub b { font-size: 16px; } }
/* Fable 2回目：孤立した1〜2字の行を減らす・タイマーをもっと大きく・脇役の導線は小さく */
.kg-os p, .kg-os li, .kg-text, .kg-os-lead { text-wrap: pretty; }
.kg-os-h, .kg-os-title { text-wrap: balance; word-break: auto-phrase; }
.kg-cd .k-cd-num { font-size: clamp(40px, 13vw, 54px); }
.kg-cd .k-cd-tile { padding: 10px 0 8px; }
.kg-won .kg-share { display: inline-block; width: auto; margin: 16px auto 0; padding: 8px 16px; font-size: 13.5px; border-width: 1.5px; }
.kg-won > .kg-share { display: table; }
.kg-won .kg-share, .kg-share { display: block; width: fit-content; margin-left: auto; margin-right: auto; }
@media (max-width: 360px) { .kg-os-vs p { font-size: 12.5px; padding: 8px 10px; } .kg-os-vs small { margin-right: 6px; } }
/* gemini 3回目：下は購入ボタンだけが主役（詳しく見る・シェアは文字のリンク）・小さいタイマー・比べ文のラベルは上に */
.kg-mini-clock { margin: 14px 0 0; text-align: center; font-size: 14px; font-weight: 800; color: #B51218; font-variant-numeric: tabular-nums; }
.kg-mini-clock b { font-size: 20px; }
.kg-mini-clock + .kg-take-again { margin-top: 6px; }
.kg-os-open.link { min-height: 0; margin-top: 12px; padding: 6px; font-size: 14px; font-weight: 700; color: #0B2F66; background: none; border: 0; box-shadow: none; text-shadow: none; text-decoration: underline; }
.kg-won .kg-share, .kg-share { padding: 6px 10px; border: 0; background: none; box-shadow: none; font-size: 13.5px; font-weight: 700; color: #06A045; text-decoration: underline; }
.kg-os-bridge { margin-top: 16px; font-weight: 700; color: #0B2F66; }
.kg-os-vs small { display: block; width: fit-content; margin: 0 0 3px; }
.kg-os-core { margin: 4px 0 6px; padding: 14px 12px; border-top: 3px double #D4A017; border-bottom: 3px double #D4A017; text-align: center; font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif; font-weight: 900; font-size: clamp(16px, 4.8vw, 19px); line-height: 1.7; color: #0B2F66; text-wrap: balance; word-break: auto-phrase; }
.kg-os-proof { white-space: nowrap; }
/* gemini 4回目：箱の絵を低くして最初の画面に割引まで入れる・説明の注記・重い枠を軽く */
.kg-won .kg-card.win .kg-hero img { aspect-ratio: 900 / 470; object-position: 50% 40%; }
.kg-buy-note { margin: 6px 0 0; text-align: center; font-size: 12px; color: #5E6C84; }
.kg-os-how3 > div { border: 1px solid #CBD9E8; box-shadow: none; background: #F8FBFF; }
.kg-os-steps p { font-weight: 500; color: #8A1C10; }
.kg-os p, .kg-os li, .kg-os-after, .kg-os-lead { word-break: auto-phrase; text-wrap: pretty; }
/* gemini 5回目：チラシ風の黒い太枠をやめ、細い金の枠と柔らかい影・継ぎ目を消す・長音で行を始めない・下のタイマーも箱に */
.kg-won .kg-card.win { border: 1.5px solid #D4A017; box-shadow: 0 10px 30px rgba(11, 29, 77, .18); }
.kg-won .kg-card.win .kg-hero::after { height: 55%; background: linear-gradient(rgba(11, 29, 77, 0), #0b1d4d 92%); }
.kg-glory { background: linear-gradient(#0b1d4d, rgba(11, 29, 77, 0) 30%), radial-gradient(120% 90% at 50% 38%, #1d3f8f 0%, #0b1d4d 45%, #050b22 100%); }
.kg-os p, .kg-os li, .kg-os-lead, .kg-os-after, .kg-os-how3 p { line-break: strict; }
.kg-mini-clock { display: block; width: fit-content; margin: 14px auto 0; padding: 6px 14px; border-radius: 10px; background: #111; color: #fff; font-size: 13px; }
.kg-mini-clock b { display: inline-block; margin-left: 4px; padding: 2px 8px; border-radius: 6px; background: linear-gradient(180deg, #E52424, #800000); color: #fff; font-size: 22px; }
.kg-won .kg-card.win .kg-prize { border-top: 0; border-bottom: 1.5px solid #D4A017; }
.kg-glory { border-bottom: 0; margin-top: -1px; }
.kg-nw { white-space: nowrap; }
.kg-text, .kg-won .kg-card.win .kg-text { text-wrap: pretty; word-break: auto-phrase; line-break: strict; }
/* gemini 6回目 */
.kg-won .kg-card.win .kg-hero-tag { display: none; }   /* 箱のリボンにかぶる。下の金の帯が同じことを言う */
.kg-gl-rib { letter-spacing: .08em; font-size: 13.5px; }
.kg-read-first { margin: 8px 0 0; text-align: center; font-size: 12.5px; font-weight: 700; color: #0B2F66; }
.kg-cd-again { margin-top: 16px; }
.kg-cd { border-width: 2px; box-shadow: 0 3px 0 #1A1A1A; }
.kg-os-shift { gap: 0; border: 1px solid #CBD9E8; border-radius: 12px; overflow: hidden; }
.kg-os-shift .kg-os-vs { border: 0; border-radius: 0; }
.kg-os-shift .kg-os-vs + .kg-os-vs { border-top: 1px solid #CBD9E8; }
.kg-os .kg-proof { margin-top: 12px; }
.kg-os-bridge { text-wrap: pretty; word-break: auto-phrase; }
/* gemini 7回目 */
.kg-buy-note { color: #334155; font-weight: 700; }
.kg-shot { margin: 16px 0 0; padding: 10px 12px; border-radius: 10px; background: #FFF1F1; border: 2px solid #CC0C14; color: #B51218; font-weight: 900; font-size: 14.5px; text-align: center; }
.kg-os-shift { gap: 8px; border: 0; border-radius: 0; overflow: visible; }
.kg-os-shift .kg-os-vs { border: 1px solid #CBD9E8; border-radius: 12px; }
.kg-os-shift .kg-os-vs + .kg-os-vs { border-top: 1px solid #CBD9E8; }
.kg-cd { border-width: 1.5px; box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
@media (max-width: 360px) { .kg-os-ask { font-size: 14px; padding: 12px 10px; } .kg-gl-line { font-size: 16px; } }
/* gemini 8回目 */
.kg-won .kg-card.win .kg-hero::after { height: 70%; background: linear-gradient(rgba(11, 29, 77, 0) 0%, rgba(11, 29, 77, .65) 60%, #0b1d4d 100%); }
.kg-glory { background: linear-gradient(#0b1d4d 0%, rgba(11, 29, 77, 0) 45%), radial-gradient(120% 90% at 50% 45%, #1d3f8f 0%, #0b1d4d 50%, #050b22 100%); }
.kg-gl-rays { -webkit-mask-image: linear-gradient(transparent 0%, #000 35%); mask-image: linear-gradient(transparent 0%, #000 35%); }
button.kg-read-first { display: block; width: 100%; margin: 8px 0 0; padding: 4px; border: 0; background: none; font: inherit; font-size: 12.5px; font-weight: 700; color: #0B2F66; text-decoration: underline; cursor: pointer; }
.kg-shot { background: #FFF9E0; border: 1px solid #E0B83A; color: #6B4B00; }
.kg-won .kg-share, .kg-share { margin-top: 28px; color: #5E6C84; font-weight: 600; }
/* gemini 9回目 */
.kg-shot { border: 0; border-left: 4px solid #E0B83A; border-radius: 4px; background: #FFF9E0; text-align: left; font-size: 14px; }
.kg-won .kg-card.win .kg-hero img { aspect-ratio: 900 / 380; }   /* Gemini 9回目：箱を少し低くして大きいタイマーを早く見せる */
.kg-share-note { margin-top: 4px; font-weight: 500; font-size: 11.5px; }
.kg-os-bridge { font-weight: 700; }

/* gemini 10回目：割引額を独立して大きく・仕掛けの本文は黒字で全幅 */
.kg-off-big { margin: 14px 0 4px; padding: 12px 10px; border-radius: 12px; text-align: center; background: linear-gradient(180deg, #FFF8DC, #FFE9A0); border: 1px solid #E0B83A; }
.kg-off-big span { display: block; font-weight: 800; font-size: 13.5px; color: #6B4B00; letter-spacing: .06em; }
.kg-off-big b { display: block; font-weight: 900; font-size: clamp(30px, 10vw, 40px); line-height: 1.2; color: #C40C14; font-variant-numeric: tabular-nums; }
.kg-os-steps li { padding: 10px 12px; }
.kg-os-steps b { padding-left: 34px; min-height: 26px; line-height: 26px; }
.kg-os-steps p { color: #222; font-weight: 500; }
.kg-os-steps p { text-wrap: pretty; word-break: auto-phrase; line-break: strict; }
/* gemini 11回目：カタカナや助詞の途中で割らない・320px の注意文と見出しを少し小さく */
.kg-won .kg-card p, .kg-won .kg-buy-note, .kg-won .kg-os p { word-break: auto-phrase; line-break: strict; }
.kg-os-bridge { margin-top: 18px; }
@media (max-width: 360px) { .kg-won .kg-buy-note { font-size: 11.5px; } .kg-gl-line { font-size: 15px; padding: 0 6px; } }
/* gemini 12回目 */
.kg-ph { display: inline-block; }
.kg-text .kg-howto { display: block; margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: #F3F6FA; white-space: pre-line; }
.kg-proof-prize { font-size: 12px; font-weight: 700; color: #334155; margin-top: 2px; }
@media (max-width: 360px) { .kg-gl-sub { padding: 5px 10px; font-size: 12.5px; } .kg-gl-sub b { font-size: 16px; } .kg-gl-line { font-size: 14.5px; } .kg-glory { padding-left: 12px; padding-right: 12px; } }
/* gemini 13回目：証拠の箱・特典の長い名前 */
.kg-os-proofbox { margin: 10px 0 4px; padding: 14px 12px; border-radius: 12px; text-align: center; background: linear-gradient(180deg, #FFFBEA, #FFF1C2); border: 2px solid #E0B83A; }
.kg-os-proofbox small { display: block; font-size: 13px; font-weight: 700; color: #6B4B00; }
.kg-os-proofbox b { display: block; font-size: clamp(30px, 10vw, 40px); font-weight: 900; line-height: 1.25; color: #C40C14; }
.kg-os-proofbox p { margin: 4px 0 0; font-size: 14px; font-weight: 700; color: #222; word-break: auto-phrase; }
.kg-os-bridge + .kg-os-bridge { margin-top: 6px; }
.kg-off-big b.long { font-size: clamp(22px, 7vw, 28px); word-break: auto-phrase; }
.kg-proof + .kg-read-first { margin-top: 14px; }
.kg-prize .kg-pw.hot { font-size: 1.3em; }   /* 1年無料版：「1年間無料」だけ大きく（gemini 15回目） */
.kg-proof .kg-stamp { white-space: nowrap; flex-shrink: 0; }
.kg-os-bridge2 { margin-top: 14px; color: #222; font-weight: 500; } .kg-os-bridge2 + .kg-os-bridge2 { margin-top: 6px; } .kg-os-bridge2 b { font-weight: 800; }
.kg-os-bridge2 { text-wrap: pretty; word-break: auto-phrase; }
.kg-proof-prize small { margin-right: .35em; }
.kg-won .kg-text, button.kg-read-first { word-break: auto-phrase; line-break: strict; text-wrap: pretty; }
/* gemini 18回目：景品名は運営が変える文なので札の下に積む・理由へのリンクと抽選券の間をあける */
.kg-proof-prize small { display: block; margin: 0; }
.kg-proof-prize { word-break: auto-phrase; text-wrap: pretty; }
.kg-proof + .kg-read-first { margin-top: 20px; }
/* 15回目：ガラポンのストップ＝玉が金と白に交互に光る（金の瞬間をねらう）・押した時の判定 */
/* 11/29 さとし「むずい」：金に光る時間を長く（0.25秒 → 0.75秒）、切り替わりをゆっくりに（1周 0.5秒 → 1.1秒） */
.k-ball.mystery.cyc { animation: k-cyc 1.1s steps(1) infinite; }
@keyframes k-cyc { 0% { background: radial-gradient(circle at 32% 26%, #fffbe0 0 22%, #ffd400 60%, #c98a00 100%); box-shadow: 0 0 0 5px #fff6c0, 0 0 44px 18px rgba(255, 214, 10, .95); color: #fff; } 68% { background: radial-gradient(circle at 32% 26%, #fff 0 30%, #f2f2ff 60%, #c9c9e6 100%); box-shadow: 0 0 0 5px #fff, 0 0 30px 10px rgba(255, 255, 255, .8); color: #b07a00; } }
.k-judge { position: absolute; left: 50%; top: 50%; z-index: 10; translate: -50% -190px; white-space: nowrap; pointer-events: none; font: 400 24px/1 "Dela Gothic One", "Hiragino Sans", sans-serif; color: #c9d3e0; -webkit-text-stroke: 1px #1b2340; text-shadow: 0 3px 0 #1b2340; animation: k-judge .9s cubic-bezier(.2, 1.6, .4, 1) both; }
.k-judge.ok { color: #ffd400; font-size: 30px; text-shadow: 0 3px 0 #7a3a00, 0 0 18px rgba(255, 212, 0, .9); }
@keyframes k-judge { 0% { scale: .3; opacity: 0; } 25% { scale: 1.2; opacity: 1; } 45% { scale: 1; } 80% { opacity: 1; } 100% { opacity: 0; translate: -50% -210px; } }
.k-stopbtn.lock { animation: none; scale: 1.1; filter: brightness(1.25); pointer-events: none; box-shadow: 0 2px 0 #6b060a, 0 0 0 4px #fff, 0 0 34px #ffd400; }
/* 18回目：ストップが出た直後の押し（連打の続き）はボタンが弾むだけ */
.k-stopbtn.nudge { animation: k-nudge .22s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes k-nudge { 0% { scale: .9; } 100% { scale: 1; } }
/* 19回目：舞台の盤の外を押した時の小さな光の輪 */
.k-stage > .k-tapr { position: absolute !important; width: 0; height: 0; z-index: 12; pointer-events: none; }
.k-tapr::before { content: ""; position: absolute; left: -15px; top: -15px; width: 30px; height: 30px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .95); box-shadow: 0 0 12px rgba(255, 210, 60, .9); animation: k-tapr .38s ease-out forwards; }
@keyframes k-tapr { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
/* 21回目：画面のどこを押しても光の輪（いちばん前・押した所に） */
.k-tapr.fx { position: fixed !important; width: 0; height: 0; z-index: 99; pointer-events: none; }
.k-stage.kfreeze .k-tapr::before { animation-play-state: running !important; }
/* 11/27 もぐら叩きの全画面（さとし「スタートしたら全画面・アプリっぽく」）：舞台を画面いっぱいに固定。盤の大きさは k.js の fit() が画面に合わせる */
.k-stage.k-full { position: fixed !important; inset: 0; z-index: 14; margin: 0; border-radius: 0; min-height: 0; display: flex; flex-direction: column; justify-content: flex-start; padding: max(50px, calc(env(safe-area-inset-top) + 42px)) 10px max(10px, env(safe-area-inset-bottom)); overflow: hidden; animation: k-fullin .28s cubic-bezier(.2, .9, .3, 1) both; }
.k-stage.k-full.k-sure { animation: k-fullin .28s cubic-bezier(.2, .9, .3, 1) both, rb-move 1.4s linear infinite; }
@keyframes k-fullin { from { opacity: 0; } to { opacity: 1; } }
body.k-fullon { overflow: hidden; overscroll-behavior: none; }
body.k-fullon .k-sound { z-index: 16; }
/* 外れの発表（全画面）：暗く沈んで「ハズレ」 */
.k-over.lost { background: radial-gradient(ellipse at 50% 35%, #2b3350, #0b0f1c 75%); color: #fff; animation: k-lostin .35s ease-out both; }
@keyframes k-lostin { from { opacity: 0; } to { opacity: 1; } }
.k-lost-in { display: grid; justify-items: center; gap: 14px; max-width: 360px; width: 100%; }
.k-lost-big { font: 400 clamp(64px, 22vw, 110px)/1 "Dela Gothic One", "Hiragino Sans", sans-serif; color: #cfd6ff; text-shadow: 0 6px 0 #1b2140, 0 0 30px rgba(120, 140, 255, .45); animation: k-lostdrop .6s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes k-lostdrop { from { transform: translateY(-40px) scale(1.2); opacity: 0; } to { transform: none; opacity: 1; } }
.k-lost-sub { margin: 0; font: 800 18px/1.4 "Noto Sans JP", sans-serif; color: #e6e9ff; }
.k-over.lost .k-sub, .k-over.lost .k-note { color: #c9d0f0; }
.k-over.lost .k-link { color: #fff; }
@media (prefers-reduced-motion: reduce) { .k-stage.k-full, .k-over.lost, .k-lost-big { animation: none; } }
@media (max-width: 360px) { .kg-gl-sub { white-space: nowrap; padding: 5px 8px; font-size: 11.5px; } .kg-gl-sub b { font-size: 15px; } }   /* 320px で「514人の中から…」を1行に（gチェック23回目） */
.kg-card .kg-read-first { margin-top: 18px; }
/* gチェック25回目：割引額の枠も「大当たり」の熱を続ける（金の縁・光沢・当選者限定の札） */
.kg-off-big { position: relative; padding: 18px 10px 12px; border: 2px solid transparent; background: linear-gradient(180deg, #FFFBEA, #FFE9A0) padding-box, linear-gradient(135deg, #8a5a00, #ffe9a0 30%, #d4a017 55%, #fff6c8 75%, #8a5a00) border-box; box-shadow: 0 4px 14px rgba(201, 138, 0, .35); }
.kg-off-big::before { content: '当選者限定'; position: absolute; top: -11px; left: 50%; translate: -50% 0; padding: 2px 12px; border-radius: 999px; font-size: 11.5px; font-weight: 900; letter-spacing: .12em; color: #fff; background: #C40C14; white-space: nowrap; }
/* gチェック26回目：道具の説明は枠なし（金の枠の割引額と並ばないように） */
.kg-won .kg-card.win > .kg-text { border: 0; background: transparent; padding: 6px 4px 0; box-shadow: none; }
.kg-os-bridge2:only-of-type, .kg-os-bridge2 { font-weight: 800; }
.kg-won .kg-os h3.kg-os-h { font-weight: 900; font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif; }   /* 明朝は字によって太さが違って見える（gチェック28回目）→ ゴシックでそろえる */   /* 赤い小見出しの太さをそろえる（gチェック27回目） */
.kg-proof-cap { margin: 18px 0 -6px; text-align: center; font-size: 12.5px; font-weight: 800; color: #6B4B00; letter-spacing: .08em; }
.kg-proof.boxed { border: 1px solid #D6DEE8; border-radius: 10px; padding: 10px 12px; background: #fff; }   /* 1年無料版：スクショする抽選券を枠で（gチェック30回目） */
.k-result-link { display: grid; gap: 2px; margin: 0 12px 12px; padding: 10px 12px; border: 1.5px solid #1A1A1A; border-radius: 10px; background: #fff; color: #1A1A1A; text-decoration: none; text-align: center; }
.k-result-link b { font-size: 14px; }
.k-result-link small { font-size: 12px; color: #5e5a73; }
/* 期待度メーター：5段（青・緑・赤・金・虹）。来た段まで光る。今の段は大きく脈打つ */
.k-hm { position: relative; z-index: 16; width: min(100%, 420px); margin: 16px auto 0; padding: 6px 10px 6px; border-radius: 12px; background: #111; box-sizing: border-box; pointer-events: none; }
.k-hm[hidden] { display: none; }
/* 1本のゲージ：左から右へ背が高くなる階段（押せる箱に見せない）。段のすき間は細く、全体を1つの枠で囲む */
.k-mt-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; align-items: end; height: 42px; padding: 3px; border-radius: 8px; background: #000; }
.k-mt-seg { display: grid; place-items: center; height: 100%; border-radius: 2px; background: #2b2b30; box-shadow: inset 0 0 0 1px #5a5a62; color: #b9a96a; font-size: 12px; font-weight: 900; white-space: nowrap; overflow: hidden; transition: filter .2s, opacity .2s; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.k-mt-seg:nth-child(1) { height: 38%; } .k-mt-seg:nth-child(2) { height: 52%; } .k-mt-seg:nth-child(3) { height: 66%; } .k-mt-seg:nth-child(4) { height: 80%; } .k-mt-seg:nth-child(5) { height: 100%; border-radius: 2px 6px 6px 2px; }
/* ゴール（当たり）は、来る前から金と虹のふちをうっすら */
.k-mt-seg:nth-child(5):not(.lit) { background: linear-gradient(#2b2b30, #2b2b30) padding-box, var(--rainbow) border-box; border: 1px solid transparent; filter: saturate(.5); color: #f3e4a6; box-shadow: none; }
.k-mt-seg:first-child { border-radius: 6px 2px 2px 6px; }
.k-mt-seg b { font-weight: 900; letter-spacing: .08em; }
.k-mt-seg.lit.blue { background: #1f5bff; } .k-mt-seg.lit.green { background: #19b84f; } .k-mt-seg.lit.red { background: #e8001f; }
.k-mt-seg.lit.gold { background: linear-gradient(115deg, #6b3f00 0%, #b07400 22%, #ffd84a 40%, #fff8d6 47%, #ffd84a 54%, #c98a00 72%, #6b3f00 100%); box-shadow: inset 0 0 0 1px #ffe9a0, inset 0 -3px 0 rgba(90, 50, 0, .6); }
.k-mt-seg.lit.rainbow { background: var(--rainbow); background-size: 200% 100%; animation: rb-move .6s linear infinite; color: #fff; text-shadow: 0 1px 0 #000, 0 0 3px #000; }
/* 通った段は暗く・今の段だけ光らせる */
.k-mt-seg.lit:not(.now) { opacity: .6; filter: saturate(.75); box-shadow: none; }
.k-mt-seg.now { filter: brightness(1.2); box-shadow: 0 0 0 3px #fff, 0 0 16px 6px rgba(255, 255, 255, .7); animation: k-mt-pulse .5s ease-in-out infinite alternate; }
.k-mt-seg.lit.rainbow.now { animation: rb-move .6s linear infinite, k-mt-pulse .5s ease-in-out infinite alternate; }
@keyframes k-mt-pulse { to { filter: brightness(1.4); } }
@media (max-width: 360px) { .k-mt-row { height: 38px; } .k-mt-seg { font-size: 11px; } }
@media (prefers-reduced-motion: reduce) { .k-mt-seg.now, .k-mt-seg.lit.rainbow { animation: none; } }
/* 全画面のゲーム：画面の上、左の玉と右の音ボタンの間（下は帯が走り、ホームバーとも重なるので置かない） */
.k-stage.k-full + .k-hm { position: fixed; left: 12px; right: 62px; top: calc(env(safe-area-inset-top) + 8px); width: auto; margin: 0; padding: 4px 6px; z-index: 16; opacity: 1; }
.k-stage.k-full + .k-hm .k-mt-row { height: 34px; }
/* もぐら叩きは左上の玉を出さない（メーターと同じ色が二重になる）。その分メーターを広く */
.k-stage.k-full .k-hold { display: none; }
@media (max-width: 360px) { .k-stage.k-full + .k-hm { left: 10px; right: 54px; padding: 2px 3px; } .k-stage.k-full + .k-hm .k-mt-row { padding: 2px; } }
/* 全画面のゲーム：帯も上（「出てきたら叩け！」の下）を通す */
.k-stage.k-full .k-band.thin { top: 13%; }

/* 金の帯の文字：金の地に溶けないよう、ふちを濃く（gチェック 93点） */
.k-band.gold .pachi { filter: drop-shadow(2.5px 0 0 #1f0d00) drop-shadow(-2.5px 0 0 #1f0d00) drop-shadow(0 2.5px 0 #1f0d00) drop-shadow(0 -2.5px 0 #1f0d00) drop-shadow(0 4px 0 #000); }

/* もぐら叩き：上のメーターと舞台のすき間を広く（gチェック 96点） */
.k-stage.k-full.fx-whack { padding-top: max(66px, calc(env(safe-area-inset-top) + 58px)); }
/* 11/27 押した人の名前を入れる欄・ガマン成功はご褒美らしく虹のふち */
.k-dare-name-row { display: grid; gap: 4px; width: min(calc(100% - 16px), 300px); margin: 0 auto 6px; text-align: left; }
.k-dare-name-l { font-size: 12px; font-weight: 900; color: #444; }
.k-dare-name { width: 100%; box-sizing: border-box; min-height: 44px; padding: 8px 12px; border: 2px solid #111; border-radius: 10px; font: 700 16px "Noto Sans JP", sans-serif; background: #fff; color: #111; }
.k-dare-kept { background: var(--rainbow, linear-gradient(90deg, #ff3b3b, #ffd60a, #2fd16b, #22c3ff, #6a5cff, #ff4fd8)); }
.k-dare-kept .k-dare-stamp { font-size: 26px; }
.k-dare-broken { background: repeating-linear-gradient(135deg, #ffd400 0 16px, #111 16px 32px); }
.k-dare-broken::before { background: #fff; }
.k-dare-broken .k-dare-stamp { color: #111; background: #ffd400; }
.k-dare-flip.broken { color: #ffd400; }
/* 「押さないで？」の女の子と吹き出し */
.k-dare-chara { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 6px auto 8px; max-width: 320px; }
.k-dare-girl { flex: none; width: 108px; height: 108px; object-fit: contain; border-radius: 50%; background: #fff0f6; box-shadow: 0 0 0 3px #ff7eb6; }
.k-dare-bub { position: relative; margin: 0; padding: 10px 14px; border-radius: 16px; background: #ff7eb6; color: #fff; font-weight: 900; font-size: 15px; line-height: 1.4; text-align: left; text-wrap: balance; }
.k-dare-girl + .k-dare-bub::before { content: ""; position: absolute; left: -8px; top: 50%; margin-top: -8px; border: 8px solid transparent; border-left: 0; border-right-color: #ff7eb6; }
.k-dare-chara-happy .k-dare-bub { background: #ff9f1c; }
.k-dare-chara-happy .k-dare-girl { box-shadow: 0 0 0 3px #ffb000; background: #fff7e0; }
.k-dare-chara-happy .k-dare-girl + .k-dare-bub::before { border-right-color: #ff9f1c; }
@media (max-width: 340px) { .k-dare-girl { width: 84px; height: 84px; } .k-dare-bub { font-size: 14px; } }
.k-dare-flip.broken { background: radial-gradient(circle, #3a2e00, #0d0a00); }
.k-dare-flip .k-dare-chara { margin: 8px auto; flex-direction: column; max-width: min(320px, calc(100vw - 32px)); }
.k-dare-flip .k-dare-girl + .k-dare-bub::before { left: 50%; top: -8px; margin: 0 0 0 -8px; border: 8px solid transparent; border-top: 0; border-bottom-color: #ff7eb6; }
.k-dare-flip .k-dare-chara-happy .k-dare-girl + .k-dare-bub::before { border-bottom-color: #ff9f1c; border-right-color: transparent; }
.k-dare-flip .k-dare-bub { text-align: center; }
.k-dare-flip .k-dare-girl { width: 140px; height: 140px; }
/* 絵が入った：丸く切らず、明るい四角に上半身（暗い所でも髪のふちが浮かない） */
.k-dare-girl { width: 120px; height: 120px; border-radius: 16px; object-fit: cover; object-position: 50% 8%; background: #fff4f9; box-shadow: 0 0 0 3px #ff7eb6; }
.k-dare-flip .k-dare-girl { width: 160px; height: 160px; background: #fff4f9; }
@media (max-width: 340px) { .k-dare-girl { width: 88px; height: 88px; } .k-dare-bub { font-size: 14px; padding: 8px 10px; } }
/* 押す所＝女の子が持つ「？」の豪華なブラックボックス */
.k-dare-box.k-dare-btn { position: relative; display: block; width: min(calc(100% - 16px), 300px); margin: 4px auto 8px; padding: 0; border-radius: 20px; overflow: hidden; background: radial-gradient(circle at 50% 35%, #fff0f7, #ffd6ea 70%); color: #ffd400; box-shadow: 0 6px 0 #6b4a00, 0 0 0 3px #ffd400, 0 0 0 6px #111; }
.k-dare-box.k-dare-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #6b4a00, 0 0 0 3px #ffd400, 0 0 0 6px #111; }
.k-dare-boxgirl { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.k-dare-q { display: grid; place-items: center; width: 62%; aspect-ratio: 1; margin: 22px auto 64px; border-radius: 14px; background: linear-gradient(145deg, #2b2b2b, #050505 60%, #1a1a1a); border: 4px solid #d4a017; box-shadow: inset 0 0 0 3px #111, inset 0 0 0 5px #ffd400, 0 10px 24px rgba(0, 0, 0, .45); font: 400 96px/1 "Dela Gothic One", "Noto Sans JP", sans-serif; color: #ffd400; text-shadow: 0 0 12px rgba(255, 212, 0, .8); }
.k-dare-lab { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 8px 14px; background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, .85) 40%); color: #ffd400; font: 400 clamp(22px, 7vw, 28px)/1.1 "Dela Gothic One", "Noto Sans JP", sans-serif; text-shadow: 0 2px 0 #000; }
.k-dare-box.k-dare-btn.armed { background: radial-gradient(circle at 50% 35%, #fff0f7, #ffb3d6 70%); box-shadow: 0 6px 0 #000, 0 0 0 3px #ff2d3f, 0 0 0 6px #111, 0 0 18px 6px rgba(255, 45, 63, .7); color: #ffd400; animation: k-dare-shake .25s linear infinite; }
.k-dare-box.k-dare-btn.locked, .k-dare-box.k-dare-btn:disabled { background: #eee; color: #ccc; box-shadow: 0 4px 0 #bdbdbd, 0 0 0 3px #ddd, 0 0 0 5px #cfcfcf; }
.k-dare-box.locked .k-dare-boxgirl { filter: grayscale(.7) brightness(1.05); }
.k-dare-bub-down { display: block; width: fit-content; max-width: min(calc(100% - 16px), 300px); margin: 4px auto 12px; text-align: center; }
.k-dare-bub-down::before { content: ""; position: absolute; left: 50%; bottom: -8px; margin-left: -8px; border: 8px solid transparent; border-bottom: 0; border-top-color: #ff7eb6; }
@media (prefers-reduced-motion: reduce) { .k-dare-box.k-dare-btn.armed { animation: none; } }
/* 押した人＝犯人の札（指名手配の紙ふう・笑い） */
.k-culprit { position: relative; width: fit-content; min-width: 180px; max-width: min(calc(100% - 16px), 280px); margin: 6px auto 10px; padding: 10px 16px 12px; border-radius: 6px; background: #fff7e0; color: #3b2a00; border: 3px solid #3b2a00; box-shadow: 4px 4px 0 #3b2a00; transform: rotate(-2deg); text-align: center; }
.k-culprit-h { margin: 0 0 6px; font: 400 20px/1.2 "Dela Gothic One", "Noto Sans JP", sans-serif; color: #c40018; letter-spacing: .04em; }
.k-culprit-face { position: relative; display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 6px; border-radius: 50%; overflow: hidden; background: #3b2a00; color: #ffd400; font: 400 44px/1 "Dela Gothic One", sans-serif; border: 3px solid #3b2a00; }
.k-culprit-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.k-culprit-n { margin: 0; font-weight: 900; font-size: 18px; overflow-wrap: anywhere; }
.k-dare-flip .k-culprit { color: #3b2a00; }
/* 箱が絵の下の方にあるので、文字は絵に重ねず下の帯に */
.k-dare-lab { position: static; display: block; background: #111; padding: 10px 8px 12px; }
/* 吹き出しは中身の幅に（右の余白を詰める） */
.k-dare-chara .k-dare-bub { flex: 0 1 auto; width: fit-content; }
/* 11/27 320px 幅で「連打して抽選す／る」と折り返していた：ボタンの字は1行に収める（狭い画面は字を小さく） */
@media (max-width: 360px) { .k-spin { padding-left: 16px; padding-right: 16px; letter-spacing: 0; } }
.k-spin.k-fit { white-space: nowrap; }   /* 字の大きさは k.js の fitSpin が、1行に収まるまで小さくする */
/* 11/27 採点（全画面）：白い余白をなくす（暗いステージで画面いっぱい）・下の文と上下の指示の重なりをなくす・4D の札を消す */
.k-stage.k-full { background: radial-gradient(120% 80% at 50% 40%, #241450 0%, #0b0620 70%) !important; padding-left: 0; padding-right: 0; animation: k-fullin .28s cubic-bezier(.2, .9, .3, 1) both; }
.k-stage.k-full > .k-rays, .k-stage.k-full .k-cap, .k-stage.k-full .k-busy, .k-stage.k-full .kf-4d { display: none !important; }
.k-stage.k-full .kf { border-radius: 0; }
.k-stage.k-full .k-hold small { color: #fff; }
.k-stage.k-full::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 30; border-radius: 0; box-shadow: inset 0 0 0 0 transparent; transition: box-shadow .2s; }
.k-stage.k-full.hg-blue::after { box-shadow: inset 0 0 0 6px #3b7bff, inset 0 0 50px rgba(59, 123, 255, .7); }
.k-stage.k-full.hg-green::after { box-shadow: inset 0 0 0 6px #2fd16b, inset 0 0 50px rgba(47, 209, 107, .7); }
.k-stage.k-full.hg-red::after { box-shadow: inset 0 0 0 8px #ff2d55, inset 0 0 70px rgba(255, 45, 85, .8); animation: k-hgblink .16s steps(2) 6; }
.k-stage.k-full.hg-gold::after { box-shadow: inset 0 0 0 9px #ffd400, inset 0 0 90px rgba(255, 196, 0, .9); animation: k-hgblink .14s steps(2) 10; }
.k-stage.k-full.hg-rainbow::after { box-shadow: inset 0 0 0 10px #ff4fd8, inset 0 0 100px rgba(255, 79, 216, .8); animation: k-hgrb .3s linear infinite; }
@keyframes k-hgblink { 50% { opacity: .35; } }
@keyframes k-hgrb { 0% { filter: hue-rotate(0deg); } 100% { filter: hue-rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .k-stage.k-full::after { animation: none !important; } }
/* 11/27 全画面の当選：盤の光からそのまま白く光って当選画面へ（暗転なし）。「閉じる」は番号と受け取るボタンが出そろってから */
.k-over.whiteout { background: #fff; animation: k-wo .2s ease-out both; }
@keyframes k-wo { from { opacity: 0; } to { opacity: 1; } }
.k-over.won .k-link { animation: k-closein .4s ease-out 2.6s both; }
@keyframes k-closein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .k-over.won .k-link { animation: none; } }
/* 11/27 外れの全画面：後ろのページが透けない（幕は最初から不透明・中身だけふわっと）＋静かな雨＋演出ごとの余韻 */
.k-over.lost { animation: none; overflow: hidden; }
.k-over.lost .k-lost-in { position: relative; z-index: 1; animation: k-lostin .35s ease-out both; }
.k-lost-rain { position: absolute; inset: -20% 0 0; z-index: 0; pointer-events: none; opacity: .5; background: repeating-linear-gradient(104deg, transparent 0 22px, rgba(170, 190, 255, .28) 22px 23px, transparent 23px 47px); background-size: 100% 160px; animation: k-rain .5s linear infinite; }
@keyframes k-rain { from { transform: translateY(-160px); } to { transform: translateY(0); } }
.k-lost-memo { width: 150px; height: 88px; }
.k-lost-memo svg { width: 100%; height: 100%; }
.k-lost-memo .sink { animation: k-sink 1.6s cubic-bezier(.5, 0, .7, 1) .3s both; }
@keyframes k-sink { 0% { transform: translateY(0); } 20% { transform: translateY(-6px); } 100% { transform: translateY(40px); } }
.k-lost-memo .cut { animation: k-cut 1.2s ease-out .4s both; transform-origin: 92px 44px; }
@keyframes k-cut { 0% { opacity: 1; } 40% { opacity: 1; transform: none; } 100% { opacity: .15; transform: translateY(18px) rotate(35deg); } }
@media (prefers-reduced-motion: reduce) { .k-lost-rain, .k-lost-memo .sink, .k-lost-memo .cut, .k-over.lost .k-lost-in { animation: none; } }
/* 11/27 採点2回目：全画面の激アツ以上は、テープでなく真ん中に1回だけ大きく */
.k-cutin { position: fixed; left: 0; right: 0; top: 34%; z-index: 31; display: flex; justify-content: center; pointer-events: none; animation: k-cutin 1.05s cubic-bezier(.2, .9, .3, 1) both; }
.k-cutin .pachi { font-size: clamp(44px, 15vw, 72px); font-weight: 900; font-style: italic; letter-spacing: .02em; padding: 6px 18px; white-space: nowrap; color: #fff; -webkit-text-stroke: 2px #2a0010; text-shadow: 0 0 18px rgba(255, 45, 85, .9), 0 4px 0 #6b0018; }
.k-cutin.gold .pachi { background: linear-gradient(180deg, #fffbe0 0%, #ffe14d 45%, #c98a00 100%); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke: 2px #4a2a00; text-shadow: none; filter: drop-shadow(0 0 14px rgba(255, 200, 0, .9)) drop-shadow(0 4px 0 #6b3d00); }
.k-cutin.rainbow .pachi { background: var(--rainbow); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-stroke: 2px #1b0030; text-shadow: none; filter: drop-shadow(0 0 16px rgba(255, 79, 216, .9)); }
@keyframes k-cutin { 0% { opacity: 0; transform: scale(2.4); } 14% { opacity: 1; transform: scale(.94); } 22% { transform: scale(1.04); } 30%, 80% { transform: scale(1); opacity: 1; } 100% { opacity: 0; transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .k-cutin { animation-duration: .01s; animation-delay: 0s; animation: none; } }
/* 毎日ガチャ：ジャックポットの額・天井 */
.k-gacha { margin: 10px 0; padding: 12px; border-radius: 18px; background: radial-gradient(circle at 50% 0%, #3b0a5c, #12001f 70%); color: #fff; text-align: center; box-shadow: 0 0 0 3px #ffd400, 0 6px 0 #6b4a00; }
.k-gc-tag { margin: 0 0 6px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; font-weight: 900; font-size: 13px; color: #ffd400; }
.k-gc-day { color: #fff; opacity: .85; }
.k-jp { padding: 8px 6px 10px; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.k-jp-h { margin: 0; font: 400 clamp(26px, 9vw, 40px)/1 "Dela Gothic One", "Noto Sans JP", sans-serif; background: linear-gradient(180deg, #fff6c2, #ffd400 50%, #c98a00); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: .04em; }
.k-jp-yen { margin: 4px 0 0; display: flex; align-items: baseline; justify-content: center; gap: 6px; flex-wrap: wrap; }
.k-jp-yen b { font: 400 clamp(32px, 11vw, 52px)/1.1 "Dela Gothic One", "Noto Sans JP", sans-serif; color: #ffd400; text-shadow: 0 0 14px rgba(255, 212, 0, .6); font-variant-numeric: tabular-nums; }
.k-jp-yen small { font-weight: 900; font-size: 15px; }
.k-jp-sub { margin: 4px 0 0; font-size: 12px; font-weight: 700; opacity: .9; text-wrap: balance; }
.k-gc-ceil { margin: 10px 0 0; font-weight: 900; font-size: 14px; text-wrap: balance; }
.k-gc-ceil b { font: 400 26px/1 "Dela Gothic One", "Noto Sans JP", sans-serif; color: #ff7eb6; margin: 0 2px; }
.k-gc-ceil .k-nobr:last-child { display: block; font-size: 12px; font-weight: 700; opacity: .85; }
.k-gc-note { margin: 8px 0 0; font-size: 12px; opacity: .8; }
/* 予想リーグ：問いと選択肢（予想した後は、みんなの予想の数を棒で）・リーグの順位 */
.k-pred, .k-league { margin: 10px 0; padding: 12px; border-radius: 18px; background: #0d1b3e; color: #fff; text-align: center; box-shadow: 0 0 0 3px #3b7bff, 0 6px 0 #071029; }
.k-pred.hit { box-shadow: 0 0 0 3px #ffd400, 0 6px 0 #6b4a00, 0 0 24px rgba(255, 212, 0, .6); }
.k-pred-tag, .k-lg-tag { margin: 0 0 6px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; font-weight: 900; font-size: 13px; color: #7fb2ff; }
.k-pred-lock, .k-lg-sub { color: #fff; opacity: .8; font-weight: 700; }
.k-pred-q { margin: 0 0 10px; font: 400 clamp(20px, 6vw, 26px)/1.3 "Dela Gothic One", "Noto Sans JP", sans-serif; text-wrap: balance; }
.k-pred-cs { display: grid; gap: 8px; }
.k-pred-c { position: relative; overflow: hidden; display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 12px; border: 2px solid #3b7bff; border-radius: 12px; background: #13275a; color: #fff; font: 900 16px "Noto Sans JP", sans-serif; text-align: left; cursor: pointer; }
.k-pred-c:disabled { cursor: default; }
.k-pred-c:not(:disabled):active { transform: translateY(2px); }
.k-pred-bar { position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); background: rgba(59, 123, 255, .35); transition: width .6s ease-out; }
.k-pred-c > :not(.k-pred-bar) { position: relative; }
.k-pred-l { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.k-pred-n { font-variant-numeric: tabular-nums; font-size: 14px; }
.k-pred-you, .k-pred-ok { flex: none; font-size: 11px; border-radius: 999px; padding: 1px 8px; }
.k-pred-you { background: #ff4f9a; }
.k-pred-ok { background: #ffd400; color: #111; }
.k-pred-c.mine { border-color: #ff4f9a; }
.k-pred-c.ans { border-color: #ffd400; background: #3a2e00; }
.k-pred-c.ans .k-pred-bar { background: rgba(255, 212, 0, .35); }
.k-pred-c.off { opacity: .55; }
.k-pred-note { margin: 10px 0 0; font-size: 13px; font-weight: 700; opacity: .92; text-wrap: balance; }
.k-pred.hit .k-pred-note { color: #ffd400; font-size: 16px; }
.k-lg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; text-align: left; }
.k-lg-list li { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, .06); font-size: 14px; }
.k-lg-list li.me { background: rgba(255, 79, 154, .25); box-shadow: inset 0 0 0 2px #ff4f9a; }
.k-lg-r { flex: none; width: 3em; color: #ffd400; font-variant-numeric: tabular-nums; }
.k-lg-n { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 700; }
.k-lg-h { flex: none; font-weight: 900; font-variant-numeric: tabular-nums; }
.k-lg-me { margin: 8px 0 0; font-weight: 900; color: #ff9fc6; }

/* 11/28 全画面を1タップの演出すべてに広げた：縦にのびない盤（ルーレット・PK・玉落とし・タル・ブロック・わっか）は画面のまん中に置く。空いた上下は光の層（gl.js）が埋める */
.k-stage.k-full:not(.fx-whack):not(.fx-amida) { justify-content: center; padding-top: max(56px, calc(env(safe-area-inset-top) + 48px)); }

/* 11/29 さとし「ハズレが見にくい」「全体的に色見にくい」：外れの全画面は、暗い地に暗い字で沈んでいた → 字は白〜水色ではっきり、ふちは濃い紺、地はまん中だけ明るく。雨は薄く */
.k-over.lost { background: radial-gradient(ellipse 90% 60% at 50% 34%, #4a5fb8 0%, #26306a 45%, #10142e 100%); }
.k-over.lost .k-lost-big.pachi { color: #fff; background: linear-gradient(180deg, #ffffff 0%, #e8f0ff 45%, #a9c4ff 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; text-shadow: none; filter: drop-shadow(3px 0 0 #0b1030) drop-shadow(-3px 0 0 #0b1030) drop-shadow(0 3px 0 #0b1030) drop-shadow(0 -3px 0 #0b1030) drop-shadow(0 7px 0 #060818) drop-shadow(0 0 22px rgba(140, 180, 255, .55)); }
.k-over.lost .k-lost-sub { font-size: 21px; color: #fff; text-shadow: 0 2px 0 #0b1030; }
.k-over.lost .k-sub, .k-over.lost .k-note { color: #fff; font-weight: 700; }
.k-over.lost .k-link { font-size: 15px; font-weight: 800; padding: 10px 18px; }
.k-lost-rain { opacity: .28; }
/* 全画面の舞台：地を少し明るくして、盤との境目が見えるように（まっ黒に近い紫で、盤の暗い色と溶けていた） */
.k-stage.k-full { background: radial-gradient(120% 80% at 50% 42%, #3b2a8a 0%, #1c1250 55%, #0d0828 100%) !important; }
/* ===== 11/29 全画面を抽選券の見た目にそろえる（さとし「全体的にこのデザインにして。AI臭いのあるなら治して」）=====
   決まり：白地・赤い券に金のふち・クリーム色に金の点線の半券・押す物は墨のふちと硬い影・読む字は Noto Sans JP 900（補足も 700 以上）。
   演出の大きな見出しだけ Dela Gothic One。冷たい青灰色・紺・紫・薄い枠の角丸カードは使わない */
:root { --bg2: #fff8e1; --fg: #17110a; --mut: #6b6048; --line: #e6d9ae; --tk-ink: #17110a; --tk-red: #CC0000; --tk-gold: #e9c75a; --tk-warm: #5c5340; --tk-note: #857a5e; }
/* 会場：上の段取り（券をもらう→回す→削る→受け取る）は半券の点線の札 */
.k-steps li { font-weight: 900; }
.k-steps li:not(.now):not(.done) span { color: #a8976a; background: #fffdf3; border: 1.5px dashed #cdb35a; }
.k-room { color: var(--tk-warm); font-weight: 700; }
/* いま参加中：ピンクの丸い札をやめて、墨のふちの札に */
.k-live { background: #fff; border: 1.5px solid var(--tk-ink); box-shadow: 0 3px 0 var(--tk-ink); color: #17110a; }
.k-live small { color: var(--tk-red); font-weight: 900; }
/* 抽選券をもらう所：薄い枠の角丸カードをやめて、切り取る前の半券（クリーム色・金の点線・左右の切り欠き） */
.k-ticket-wrap.issue > .k-card { position: relative; background: linear-gradient(#fffdf3, #fff7d6); border: 3px dashed var(--tk-gold); border-radius: 18px; box-shadow: none; }
.k-ticket-wrap.issue > .k-card::before, .k-ticket-wrap.issue > .k-card::after { content: ""; position: absolute; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: #fff; border: 3px dashed var(--tk-gold); }
.k-ticket-wrap.issue > .k-card::before { left: -13px; clip-path: inset(0 0 0 50%); }
.k-ticket-wrap.issue > .k-card::after { right: -13px; clip-path: inset(0 50% 0 0); }
.k-card { border-color: var(--line); }
.k-sub, .k-note, .k-label { font-weight: 700; }
.k-foot { color: var(--tk-note); font-weight: 700; }
.k-flow-s, .k-result-link small, .k-guide-t small { color: var(--tk-warm); font-weight: 700; }
/* 攻略本へ：ピンクと紫のぼかしをやめて、黄色の札（墨のふち・硬い影） */
a.k-guide-link { margin: 12px 12px 14px; background: #ffd60a; border: 2px solid var(--tk-ink); border-radius: 12px; box-shadow: 0 4px 0 var(--tk-ink); color: #17110a; }
a.k-guide-link:active { transform: translateY(4px); box-shadow: none; }
a.k-guide-link .k-guide-t small { color: #5a4300; }
a.k-result-link { border: 2px solid var(--tk-ink); border-radius: 12px; box-shadow: 0 4px 0 var(--tk-ink); background: #fff; color: #17110a; }
a.k-result-link:active { transform: translateY(4px); box-shadow: none; }
.k-btn.ghost { border: 1.5px solid var(--tk-ink); box-shadow: 0 3px 0 var(--tk-ink); }
.k-row input { background: #fff; border: 1.5px solid var(--tk-ink); border-radius: 10px; font-weight: 700; }

/* 受け取りページ・参加賞のページ：白地。上の線は赤と金 */
body.kg-body, body.kg-body.kg-won, .kg-body:not(.kg-won) { background: #fff; }
.kg-body::before, .kg-body:not(.kg-won)::before { height: 6px; background: linear-gradient(90deg, #b3001b, #e3263f 45%, #ffd76a 50%, #e3263f 55%, #b3001b); }
.kg-body .kg-head .kg-room, .kg-won .kg-head .kg-room { color: var(--tk-warm); font-weight: 700; }
.kg-body .kg-head .kg-title, .kg-won .kg-head .kg-title { font-family: "Noto Sans JP", "Hiragino Sans", sans-serif; font-weight: 900; color: #17110a; letter-spacing: 0; }
.kg-body .kg-note, .kg-won .kg-note, .kg-body .kg-buy-note { color: var(--tk-note); font-weight: 700; }
.kg-body .kg-back, .kg-won .kg-back { display: block; width: fit-content; margin: 18px auto 0; padding: 10px 20px; border: 1.5px solid var(--tk-ink); border-radius: 10px; box-shadow: 0 3px 0 var(--tk-ink); background: #fff; color: #17110a; font-weight: 900; text-decoration: none; }
.kg-body .kg-back:active { transform: translateY(3px); box-shadow: none; }
/* 参加賞：青い事務的なカードをやめて、クリーム色の半券 */
.kg-card:not(.win) { background: linear-gradient(#fffdf3, #fff7d6); border: 3px dashed var(--tk-gold); border-radius: 18px; box-shadow: none; overflow: visible; }
.kg-card:not(.win) .kg-hero { border-radius: 14px 14px 0 0; }
.kg-hero.thanks { background: #fff7d6; border-bottom: 3px solid #ffd76a; }
.kg-hero.thanks .kg-hero-tag { padding: 6px 16px; border-radius: 6px; border: 2px solid #ffd76a; background: linear-gradient(135deg, #b3001b, #e3263f); color: #fff; font-weight: 900; letter-spacing: .12em; box-shadow: 0 3px 0 #7a0012; }
.kg-card:not(.win) .kg-big { font-family: "Noto Sans JP", "Hiragino Sans", sans-serif; font-weight: 900; color: #17110a; text-wrap: balance; }
.kg-card:not(.win) .kg-prize { background: #ffd60a; border: 1.5px solid var(--tk-ink); border-radius: 6px; box-shadow: 0 2px 0 var(--tk-ink); color: #17110a; font-weight: 900; }
.kg-card:not(.win) .kg-text { background: #fff; border: 1.5px solid var(--tk-ink); border-radius: 10px; color: #2b2416; font-weight: 700; }
.kg-text .kg-howto { background: #fff7d6; border: 1.5px dashed #cdb35a; color: #2b2416; font-weight: 700; }
.kg-card:not(.win) .kg-proof { border-top: 2px dashed #cdb35a; }
.kg-card:not(.win) .kg-stamp { color: var(--tk-red); border-color: var(--tk-red); background: #fff; }
.kg-proof-rows small { color: var(--tk-warm); font-weight: 700; }
/* 当たった人の受け取りページ：景品の帯は赤い券、本文と抽選券は半券の色 */
.kg-won .kg-only { color: #7a0012; }
.kg-won .kg-card.win > .kg-text { color: #2b2416; font-weight: 700; }
.kg-won .kg-card.win .kg-prize::before { color: #7a0012; }
.k-poster-k { color: #7a0012; }
.kg-won .kg-text a { color: var(--tk-red); font-weight: 900; }
.kg-proof-cap { color: #7a0012; font-weight: 900; }
.kg-proof.boxed { position: relative; border: 3px dashed var(--tk-gold); border-radius: 12px; background: linear-gradient(#fffdf3, #fff7d6); }
.kg-won .kg-proof-rows { color: #17110a; }
.kg-won .kg-share, a.kg-share.kg-share { border: 2px solid var(--tk-ink); border-radius: 12px; background: #06c755; color: #fff; box-shadow: 0 4px 0 var(--tk-ink); text-decoration: none; font-weight: 900; }
.kg-won .kg-pay { border: 3px dashed var(--tk-gold); border-radius: 14px; background: linear-gradient(#fffdf3, #fff7d6); box-shadow: none; }
.kg-won .kg-pay-title { font-family: "Noto Sans JP", "Hiragino Sans", sans-serif; font-weight: 900; color: #17110a; }
.kg-pay-field { color: var(--tk-warm); }
.kg-pay-field input, .kg-pay-field select { border: 1.5px solid var(--tk-ink); border-radius: 10px; font-weight: 700; }
.kg-pay-note { color: var(--tk-note); font-weight: 700; }
.kg-pay-fix { border: 1.5px solid var(--tk-ink); box-shadow: 0 2px 0 var(--tk-ink); font-weight: 900; }
/* 当選者ページの下（オプチャOSの案内）：紺と明朝と青灰色の箱をやめる。箱は白に墨のふち、中の札は半券の色 */
.kg-os { border: 2px solid var(--tk-ink); border-radius: 14px; box-shadow: 0 5px 0 var(--tk-ink); color: #17110a; }
.kg-os-eye { color: #7a0012; }
.kg-os-title, .kg-os-h, .kg-os-no { font-family: "Noto Sans JP", "Hiragino Sans", sans-serif; font-weight: 900; }
.kg-os-title { color: #17110a; }
.kg-os-h { color: var(--tk-red); }
.kg-os-lead, .kg-os p, .kg-os li { font-weight: 700; color: #2b2416; }
.kg-os-count, .kg-os-name, .kg-os-pain b, .kg-os-steps b { color: #17110a; }
.kg-os-count b, .kg-os-no { color: var(--tk-red); }
.kg-os-how, .kg-os-upd, .kg-os-shut, .kg-os-sub { color: var(--tk-warm); font-weight: 700; }
.kg-os-cat { border: 1.5px solid var(--tk-ink); background: #fff; }
.kg-os-cat[open] { border-color: var(--tk-ink); box-shadow: 0 3px 0 var(--tk-ink); }
.kg-os-n { color: #17110a; background: #ffd60a; border-radius: 4px; }
.kg-os-cat ul { border-top: 2px dashed #cdb35a; }
.kg-os-cat li::marker { color: var(--tk-red); }
.kg-os-pain, .kg-os-steps li { background: linear-gradient(#fffdf3, #fff7d6); border: 2px dashed #cdb35a; }
.kg-os-steps li::before { background: var(--tk-ink); border-radius: 4px; }
.kg-os-steps p { color: var(--tk-red); }
.kg-os-vs { border: 1.5px solid var(--tk-ink); }
.kg-os-vs .old { background: #f1e7c6; color: #5c5340; }
.kg-os-vs .old small { background: #857a5e; }
.kg-os-vs .new { background: #fff; color: #17110a; font-weight: 900; }
.kg-os-vs .new small { background: var(--tk-red); }
.kg-os-ask { background: linear-gradient(135deg, #b3001b, #e3263f); border: 3px solid #ffd76a; box-shadow: 0 0 0 2px #7a0012; font-weight: 900; }
.kg-os-jump { background: var(--tk-ink); border-radius: 12px; box-shadow: 0 4px 0 #000; font-weight: 900; }
.kg-os-open.sub { color: #17110a; border: 2px solid var(--tk-ink); box-shadow: 0 4px 0 var(--tk-ink); }
.kg-os-how3 > div { border: 2px solid var(--tk-ink); box-shadow: 0 4px 0 var(--tk-ink); }
.kg-os-how3 .kg-os-n3 { border: 1.5px solid var(--tk-ink); background: #ffd60a; }
.kg-os-how3 p { color: #2b2416; }
/* 主催権リレー：紫の箱をやめて、赤い抽選券に金のふち（再抽選券と同じ） */
.kg-relay { position: relative; overflow: hidden; border-radius: 18px; border: 3px solid #ffd76a; background: linear-gradient(135deg, #b3001b, #e3263f); box-shadow: 0 0 0 2px #7a0012, 0 8px 20px rgba(122, 0, 18, .25); }
.kg-relay > * { position: relative; }
.kg-relay-tag { border-radius: 4px; background: #ffd76a; color: #7a0012; }
.kg-relay-h { text-shadow: 0 3px 0 #7a0012; }
.kg-relay-sub { color: #ffe9a8; }
.kg-relay-in { border: 2px solid var(--tk-ink); border-radius: 10px; color: #17110a; }
.kg-relay-btn, .kg-relay-go { border: 2px solid var(--tk-ink); color: #3a1500; background: linear-gradient(180deg, #fff7b8, #ffd60a 52%, #ffb40f); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .7), 0 5px 0 var(--tk-ink); }
.kg-relay-btn:active, .kg-relay-go:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--tk-ink); }
.kg-relay-share { border: 2px solid #ffd76a; border-radius: 10px; }
.kg-relay-err { color: #ffe45c; }
.kg-relay-chip { border: 2px solid #7a0012; border-radius: 10px; background: #fffdf3; color: #17110a; font-weight: 900; box-shadow: 0 3px 0 #7a0012; }
.kg-relay-chip.on { background: #ffd60a; border-color: var(--tk-ink); color: #17110a; box-shadow: 0 1px 0 var(--tk-ink), inset 0 2px 0 rgba(0, 0, 0, .12); transform: translateY(2px); }
.kg-relay.made { background: linear-gradient(135deg, #b3001b, #e3263f); }
.kg-relay-warn { color: #ffe45c; font-weight: 900; }
.kg-read-first, button.kg-read-first { color: #17110a; font-weight: 900; }
/* 当たった人のカード：再抽選券と同じ金のふち（外に濃い赤の細い線）。青い影はやめる */
.kg-won .kg-card.win { border: 3px solid #ffd76a; box-shadow: 0 0 0 2px #7a0012, 0 8px 20px rgba(122, 0, 18, .18); }
.kg-ph, .kg-nw, .kg-won .kg-proof-rows .kg-ph { color: #17110a; font-weight: 900; }
/* 舞台のふちは墨（紫がかった紺をやめる）。外れの字は温かい灰 */
.k-stage { background: linear-gradient(var(--bg), var(--bg)) padding-box, linear-gradient(135deg, #1E293B, #17110a) border-box; }
.k-tk-res.lose { color: #857a5e; }
/* 予想リーグ：紺と青の箱をやめて、アンケートと同じ半券（クリーム色・金の点線）。選ぶ物は白い札に墨のふちと硬い影 */
.k-pred, .k-league { position: relative; padding: 14px 12px 16px; border-radius: 18px; border: 3px dashed var(--tk-gold); background: linear-gradient(#fffdf3, #fff7d6); color: #17110a; box-shadow: none; }
.k-pred.hit { border: 3px solid #ffd76a; box-shadow: 0 0 0 2px #7a0012, 0 0 24px rgba(255, 212, 0, .6); }
.k-pred-tag, .k-lg-tag { color: var(--tk-red); }
.k-pred-lock, .k-lg-sub { color: var(--tk-warm); opacity: 1; }
.k-pred-q { font: 900 clamp(19px, 5.8vw, 24px)/1.35 "Noto Sans JP", "Hiragino Sans", sans-serif; }
.k-pred-cs { gap: 11px; padding-bottom: 3px; }
.k-pred-c { border: 1.5px solid var(--tk-ink); border-radius: 10px; background: #fff; color: #17110a; box-shadow: 0 3px 0 var(--tk-ink); }
.k-pred-c:not(:disabled):active { transform: translateY(3px); box-shadow: none; }
.k-pred-bar { background: repeating-linear-gradient(135deg, #f6edcf 0 6px, #efe3b8 6px 12px); }
.k-pred-you { background: var(--tk-red); color: #fff; border-radius: 3px; }
.k-pred-ok { background: var(--tk-ink); color: #ffe45c; border-radius: 3px; }
.k-pred-c.mine { border-color: var(--tk-ink); background: #ffd60a; box-shadow: 0 1px 0 var(--tk-ink), inset 0 2px 0 rgba(0, 0, 0, .12); transform: translateY(2px); }
.k-pred-c.mine .k-pred-bar { background: rgba(255, 255, 255, .45); }
.k-pred-c.ans { border: 2px solid var(--tk-red); background: #fff; }
.k-pred-c.ans .k-pred-bar { background: #ffe45c; }
.k-pred-note { color: var(--tk-warm); opacity: 1; }
.k-pred.hit .k-pred-note { color: var(--tk-red); font-weight: 900; }
.k-lg-list li { background: #fff; border: 1.5px solid var(--tk-ink); border-radius: 8px; font-weight: 900; color: #17110a; }
/* 毎日ガチャ：紫の夜をやめて、赤い券に金のふち */
.k-gacha { border-radius: 18px; border: 3px solid #ffd76a; background: radial-gradient(circle at 50% 0%, #e3263f, #8f0015 75%); box-shadow: 0 0 0 2px #7a0012, 0 8px 20px rgba(122, 0, 18, .25); }
.k-gc-tag { color: #ffe45c; }
.k-jp { background: rgba(0, 0, 0, .28); border: 1.5px solid rgba(255, 215, 106, .6); }
.k-gc-ceil b { color: #ffe45c; }
.k-gc-note, .k-jp-sub { font-weight: 700; opacity: 1; color: #ffe9a8; }
/* 友だちに知らせる：細い緑の枠をやめて、LINE の緑の押せる札 */
.k-tell { border: 2px solid var(--tk-ink); border-radius: 12px; background: #06c755; color: #fff; box-shadow: 0 4px 0 var(--tk-ink); }
.k-tell:active { transform: translateY(4px); box-shadow: none; }
.k-me { font-weight: 700; }
.k-lg-list li.me { background: #ffd60a; box-shadow: 0 2px 0 var(--tk-ink); }
.k-lg-r { color: var(--tk-red); font-weight: 900; }
.k-lg-n { font-weight: 900; }
.k-lg-me { color: var(--tk-red); }
.k-tk-wait { background: #f1e7c6; color: #5c5340; font-weight: 900; border: 2px dashed #cdb35a; }
.kg-card:not(.win) .kg-big { word-break: auto-phrase; }
@media (max-width: 340px) { .kg-card:not(.win) .kg-big { font-size: 17px; } }
@media (max-width: 340px) { a.k-guide-link { margin: 12px 8px 14px; padding: 12px 8px; gap: 6px; } a.k-guide-link .k-guide-t small { font-size: 11px; letter-spacing: -.02em; } }

/* ===== 11/29 gチェック1回目（58点）の直し ===== */
/* 影はぼかさない（硬い影だけ）。赤い券・当選者カード・主催権リレー・毎日ガチャ */
.kg-won .kg-card.win, .kg-relay, .k-gacha { box-shadow: 0 0 0 2px #7a0012, 0 6px 0 #7a0012; }
.k-spin, .k-spin.pachi, .k-line.gift, .kg-pay-go, .kg-take, .kg-os-open:not(.sub) { box-shadow: inset 0 2px 0 rgba(255, 255, 255, .34), 0 5px 0 #560407; }
/* 音のボタン：白丸のぼかし影をやめて、墨のふちと硬い影 */
.k-sound { border: 1.5px solid var(--tk-ink); border-radius: 10px; background: #fff; color: #17110a; box-shadow: 0 3px 0 var(--tk-ink); }
.k-sound.off { color: #a8976a; }
/* まだの段取り：薄い点線の丸をやめて、ベージュの札 */
.k-steps li:not(.now):not(.done) span { color: #857a5e; background: #f1e7c6; border: 1.5px solid #cdb35a; }
.k-foot, .kg-body .kg-note, .kg-won .kg-note, .kg-body .kg-buy-note { color: #5c5340; }
.k-meter { background: #f1e7c6; }
.k-tk-res.lose { color: #17110a; }
.k-ticket.sad { filter: none; }
/* ガラポンの「？」の玉：光で白く飛ばないように、濃い赤の字 */
.k-ball.mystery { color: #7a0012; text-shadow: 0 2px 0 #fff, 0 0 6px #fff; filter: none; }
/* 期待度メーターのまだ光っていない段：青灰色をやめる */
.k-mt-seg { background: #2a241a; box-shadow: inset 0 0 0 1px #5c5340; }
.k-mt-seg:nth-child(5):not(.lit) { background: linear-gradient(#2a241a, #2a241a) padding-box, linear-gradient(90deg, #ffd76a, #e3263f) border-box; }
/* 参加賞：絵の青を赤と金に寄せる（絵を作り直すまでの色替え）。カードの中のカードをやめて、点線の区切りだけ */
.kg-hero.thanks img:not(.own) { filter: hue-rotate(148deg) saturate(1.15); }
.kg-card:not(.win) .kg-text { border: 0; background: transparent; padding: 4px 2px 0; }
.kg-text .kg-howto { border: 2px dashed #cdb35a; background: #fff; }
.kg-won .kg-text .kg-howto { background: #fffdf3; }
/* 当選者ページの見出し：紺の夜をやめて、深い赤に金の光 */
.kg-won .kg-card.win .kg-hero { background: #5a000e; }
.kg-won .kg-card.win .kg-hero::after { background: linear-gradient(rgba(90, 0, 14, 0), #5a000e 92%); }
.kg-glory { background: linear-gradient(#5a000e, rgba(90, 0, 14, 0) 30%), radial-gradient(120% 90% at 50% 38%, #c2122b 0%, #7a0012 45%, #3a0008 100%); }
.kg-won .kg-card.win .kg-hero-tag { background: rgba(58, 0, 8, .9); border: 1px solid #ffd76a; }
/* 有効期限の箱・抽選券の箱：細い枠をやめる */
.kg-cd { border: 2px solid var(--tk-ink); box-shadow: 0 4px 0 var(--tk-ink); }
/* 当選者ページの案内：箱を並べるのをやめて、番号つきの行を点線で区切る */
.kg-os-pain, .kg-os-steps li { background: none; border: 0; border-bottom: 2px dashed #cdb35a; border-radius: 0; }
.kg-os-steps li { padding-left: 40px; }
.kg-os-steps li::before { left: 2px; background: var(--tk-red); border-radius: 50%; }
.kg-os-how3 > div { border: 0; border-bottom: 2px dashed #cdb35a; border-radius: 0; box-shadow: none; background: none; padding-left: 2px; padding-right: 2px; }
.kg-os-how3 .kg-os-n3 { border: 0; border-radius: 50%; background: var(--tk-red); color: #fff; }
.kg-os-cat { border: 2px solid var(--tk-ink); }
/* 予想リーグ：札を太いふちに */
.k-pred-c, .k-lg-list li { border-width: 2px; }
.k-pred-c { box-shadow: 0 4px 0 var(--tk-ink); }
/* 320px：番号・金額・景品の名前を1〜2字で折らない */
.kg-proof-rows b { white-space: nowrap; }
.kg-proof-rows > div:not(.kg-proof-prize) small { display: block; }
.kg-text, .kg-text .kg-howto, .k-rule-v, .k-foot, .k-goal-sub, .kg-os p { word-break: auto-phrase; line-break: strict; text-wrap: pretty; }
@media (max-width: 340px) { .kg-text, .kg-text .kg-howto { font-size: 13px; } .kg-text .kg-howto { padding: 9px 8px; } .k-rule-v { font-size: 13px; } .k-lg-list li { font-size: 12.5px; gap: 5px; padding: 6px 7px; } .k-lg-r { width: 2.4em; } }
.k-lg-n { overflow-wrap: normal; white-space: nowrap; }
.kg-os-steps li { padding: 10px 2px 12px; }
.kg-os-steps li::before { left: 2px; top: 10px; }
.kg-os-steps p { color: #2b2416; font-weight: 700; }
/* 11/29 さとし「ゲームの暗い色いやだ」：全画面の舞台・上のゲージ・外れの画面を、会場の抽選券の色（白・クリーム・赤・金・墨のふち）に。外れは暗くせず「明るい水色に冷やす」 */
.k-stage.k-full { background: radial-gradient(120% 80% at 50% 42%, #fffdf6 0%, #fff1cf 55%, #ffd98a 100%) !important; }
.k-stage.k-full .k-hold small { color: #1b1530; }
.k-hm { background: #fff; border: 2px solid #1b1530; box-shadow: 0 3px 0 #1b1530; }
.k-mt-row { background: #fff6e0; }
.k-mt-seg { background: #efe2bd; box-shadow: inset 0 0 0 1px #c9b47a; color: #8a6a20; }
.k-mt-seg:nth-child(5):not(.lit) { background: linear-gradient(#fff3c4, #fff3c4) padding-box, var(--rainbow) border-box; color: #8a6a20; filter: none; }
.k-mt-seg.now { box-shadow: 0 0 0 3px #1b1530, 0 0 14px 4px rgba(255, 196, 0, .8); }
.k-over.lost { background: radial-gradient(ellipse 90% 60% at 50% 34%, #ffffff 0%, #e8f3ff 50%, #bcd9ff 100%); color: #1b1530; }
.k-over.lost .k-lost-big.pachi { background: linear-gradient(180deg, #8cc4ff 0%, #3d8bff 50%, #1f5fd6 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff) drop-shadow(0 5px 0 #1b1530); }
.k-over.lost .k-lost-sub { color: #1b1530; text-shadow: none; }
.k-over.lost .k-sub, .k-over.lost .k-note { color: #3a4a6a; }
.k-over.lost .k-link { color: #1b1530; }
.k-lost-rain { background: repeating-linear-gradient(104deg, transparent 0 22px, rgba(61, 139, 255, .22) 22px 23px, transparent 23px 47px); background-size: 100% 160px; }

/* ===== 開けないで？の訴求を強く（さとし 11/29） ===== */
.k-dare-prize { display: grid; gap: 2px; margin: 8px 0 12px; padding: 12px 10px 13px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #b3001b, #e3263f); border: 3px solid #ffd76a; box-shadow: 0 0 0 2px #7a0012, 0 5px 0 #17110a; text-align: center; }
.k-dare-prize small { font-size: 13px; font-weight: 900; letter-spacing: .08em; color: #fff3a6; }
.k-dare-prize b { font: 400 clamp(24px, 7.6vw, 32px)/1.2 "Dela Gothic One", "Hiragino Sans", sans-serif; color: #fff3a6; text-shadow: 0 3px 0 #7a0012; overflow-wrap: anywhere; }
.k-dare-prize > span { font-size: 14px; font-weight: 900; text-wrap: balance; }
.k-dare-live { display: inline-flex; align-items: center; gap: 6px; margin: 0 auto 8px; padding: 5px 14px; border-radius: 999px; font-size: 14px; font-weight: 900; color: #17110a; background: #ffd60a; border: 2px solid #17110a; box-shadow: 0 3px 0 #17110a; }
.k-dare-live b { font-size: 18px; color: #c8001e; font-variant-numeric: tabular-nums; }
.k-dare-live i { width: 9px; height: 9px; border-radius: 50%; background: #e3263f; box-shadow: 0 0 0 3px rgba(227, 38, 63, .25); }
.k-dare.last .k-dare-left { color: #e3263f; }
.k-dare.last .k-dare-tag::after { content: "　ラスト1分！"; }
@media (prefers-reduced-motion: no-preference) {
  .k-dare-live i { animation: k-dare-dot 1s ease-in-out infinite; }
  .k-dare-btn.k-dare-box:not(.locked):not(.armed) .k-dare-boxgirl { animation: k-dare-rattle 3.2s ease-in-out infinite; transform-origin: 50% 80%; }
  .k-dare-btn.k-dare-box:not(.locked):not(.armed) { animation: k-dare-leak 3.2s ease-in-out infinite; }
  .k-dare.last .k-dare-left { display: inline-block; animation: k-dare-shake .3s linear infinite; }
}
@keyframes k-dare-dot { 50% { transform: scale(.6); opacity: .5; } }
@keyframes k-dare-rattle { 0%, 82%, 100% { transform: none; } 85% { transform: rotate(-2deg) translateY(-2px); } 88% { transform: rotate(2deg); } 91% { transform: rotate(-1.5deg) translateY(-1px); } 94% { transform: rotate(1deg); } }
@keyframes k-dare-leak { 0%, 80%, 100% { filter: none; } 87% { filter: drop-shadow(0 0 14px rgba(255, 214, 10, .95)) brightness(1.08); } }
/* ===== 受け取りページ・参加賞・PayPay を抽選券の見た目に（さとし 11/29 資料の書き込み「デザインかえよ」「もっと派手な画像、演出に」「AI感ある。文字ばかりでみにくい」） =====
   紺の箱の絵・明朝・青い参加賞をやめ、会場と同じ赤い券・金のふち・クリーム色の半券・墨のふちと硬い影にそろえる */
html body.kg-body, html body.kg-body.kg-won { background: #fff; color: #17110a; }
html body.kg-body::before { background: linear-gradient(90deg, #b3001b, #e3263f 40%, #ffd76a 50%, #e3263f 60%, #b3001b); }
html body.kg-body .kg-head .kg-room { color: #857a5e; font-weight: 700; }
html body.kg-body .kg-head .kg-title { font-family: "Noto Sans JP", "Hiragino Sans", sans-serif; font-weight: 900; font-size: 22px; color: #17110a; letter-spacing: 0; }
html body.kg-body .kg-card, html body.kg-body.kg-won .kg-card.win { position: relative; overflow: hidden; border: 3px solid #17110a; border-radius: 18px; background: #fff; box-shadow: 0 5px 0 #17110a; padding: 24px 18px; }
/* 舞台：白地に赤と金の光が回り、赤い券が落ちてきて判が押される */
.kg-stage { position: relative; margin: -24px -18px 16px; height: 270px; overflow: hidden; isolation: isolate; border-bottom: 3px solid #17110a; background: radial-gradient(circle at 50% 46%, #fff 0 22%, #fff7d6 60%, #ffe9a0 100%); }
.kg-stage.lose { background: radial-gradient(circle at 50% 46%, #fff 0 30%, #fffdf3 65%, #fff1c2 100%); }
.kg-st-rays { position: absolute; inset: -70%; z-index: -1; background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(227, 38, 63, .16) 0 8deg, rgba(255, 215, 106, .32) 8deg 16deg, transparent 16deg 24deg); }
.kg-stage.lose .kg-st-rays { background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(233, 199, 90, .26) 0 9deg, transparent 9deg 22deg); }
.kg-st-tk { position: absolute; left: 50%; top: 38px; width: min(300px, 82%); height: 150px; margin-left: calc(min(300px, 82%) / -2); display: grid; grid-template-columns: 1fr 76px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #b3001b, #e3263f); border: 3px solid #ffd76a; box-shadow: 0 0 0 2px #7a0012, 0 10px 0 rgba(23, 17, 10, .18); transform: rotate(-4deg); }
.kg-st-tk::before, .kg-st-tk::after { content: ""; position: absolute; right: 64px; width: 22px; height: 22px; border-radius: 50%; background: #fff7d6; border: 3px solid #ffd76a; }
.kg-st-tk::before { top: -14px; } .kg-st-tk::after { bottom: -14px; }
.kg-st-main { display: grid; align-content: center; justify-items: start; gap: 2px; padding: 10px 6px 10px 16px; text-align: left; min-width: 0; }
.kg-st-main small { font-size: 11px; font-weight: 900; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.kg-st-main b { font: 400 40px/1.05 "Dela Gothic One", "Hiragino Sans", sans-serif; letter-spacing: .06em; color: #fff3a6; text-shadow: 0 3px 0 #7a0012; }
.kg-st-main span { font-size: 12px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.kg-st-main code { margin-top: 4px; font: 900 13px/1 ui-monospace, Menlo, monospace; color: #17110a; background: #fff; border-radius: 4px; padding: 4px 6px; letter-spacing: .04em; }
.kg-st-stub { display: grid; align-content: center; justify-items: center; border-left: 3px dashed #ffd76a; color: #fff; }
.kg-st-stub small { font-size: 11px; font-weight: 900; }
.kg-st-stub b { font: 400 28px/1 "Dela Gothic One", "Hiragino Sans", sans-serif; color: #fff3a6; text-shadow: 0 2px 0 #7a0012; }
.kg-st-stamp { position: absolute; left: 50%; top: 92px; width: 118px; height: 118px; margin-left: -10px; display: grid; place-items: center; border-radius: 50%; font: 400 34px/1 "Dela Gothic One", "Hiragino Sans", sans-serif; color: #c8001e; background: rgba(255, 255, 255, .92); border: 5px solid #c8001e; box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 6px #c8001e, 0 6px 0 rgba(23, 17, 10, .2); transform: rotate(-14deg); letter-spacing: .02em; }
.kg-stage.lose .kg-st-stamp { font-size: 25px; color: #b38200; border-color: #d4a017; box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 6px #d4a017, 0 6px 0 rgba(23, 17, 10, .15); }
.kg-st-tag { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); white-space: nowrap; padding: 5px 16px; border-radius: 999px; font-size: 13px; font-weight: 900; letter-spacing: .08em; color: #fff; background: #17110a; }
.kg-stage.lose .kg-st-tag { color: #17110a; background: #ffd60a; border: 2px solid #17110a; }
.kg-st-fx { position: absolute; left: 50%; top: 150px; width: 0; height: 0; pointer-events: none; }
.kg-st-fx i { position: absolute; left: -4px; top: -4px; width: 8px; height: 30px; border-radius: 4px; background: linear-gradient(#ffd60a, #e3263f); opacity: 0; transform: rotate(var(--a)) translateY(-30px); }
@media (prefers-reduced-motion: no-preference) {
  .kg-st-rays { animation: kg-gl-spin 22s linear infinite; }
  .kg-st-tk { animation: kg-st-drop .7s cubic-bezier(.2, 1.4, .4, 1) both; }
  .kg-st-stamp { animation: kg-st-slam .38s cubic-bezier(.3, 1.6, .5, 1) .75s both; }
  .kg-stage.win { animation: kg-st-shake .35s linear .95s; }
  .kg-stage.win .kg-st-fx i { animation: kg-st-burst .8s ease-out .95s both; }
  .kg-stage.lose .kg-st-stamp { animation-duration: .5s; }
  .kg-st-tag { animation: kg-in-up .4s ease-out 1.2s both; }
  @keyframes kg-st-drop { 0% { transform: translateY(-260px) rotate(12deg); } 100% { transform: rotate(-4deg); } }
  @keyframes kg-st-slam { 0% { transform: scale(3) rotate(-30deg); opacity: 0; } 70% { opacity: 1; } 100% { transform: scale(1) rotate(-14deg); opacity: 1; } }
  @keyframes kg-st-shake { 0%, 100% { transform: none; } 25% { transform: translate(-6px, 3px); } 50% { transform: translate(5px, -3px); } 75% { transform: translate(-3px, 1px); } }
  @keyframes kg-st-burst { 0% { opacity: 1; transform: rotate(var(--a)) translateY(-40px) scaleY(.4); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-150px) scaleY(1); } }
}
/* 当選の見出し：紺をやめ、白地に赤と金 */
html body.kg-body .kg-glory { margin: -16px -18px 0; padding: 14px 12px 16px; background: #fff; border: 0; }
html body.kg-body .kg-gl-rays { display: none; }
html body.kg-body .kg-gl-sparks i { background: #ffd60a; box-shadow: 0 0 8px 2px rgba(255, 190, 40, .7); }
html body.kg-body .kg-gl-rib { color: #fff; background: #17110a; border: 0; border-radius: 4px; font-size: 13px; letter-spacing: .1em; box-shadow: none; text-shadow: none; }
html body.kg-body .kg-gl-big { font-family: "Dela Gothic One", "Hiragino Sans", sans-serif; font-weight: 400; font-size: clamp(50px, 16vw, 72px); letter-spacing: .04em; color: #e3263f; background: none; -webkit-text-fill-color: #e3263f; -webkit-text-stroke: 0; filter: none; text-shadow: 0 4px 0 #7a0012, 0 0 0 #000, 3px 3px 0 #ffd76a, -3px -3px 0 #ffd76a, 3px -3px 0 #ffd76a, -3px 3px 0 #ffd76a; }
html body.kg-body .kg-gl-sub { color: #17110a; background: #fff7d6; border: 2px dashed #e9c75a; font-weight: 900; }
html body.kg-body .kg-gl-sub b { color: #c8001e; }
/* 景品：赤い券の帯に金の字 */
html body.kg-body .kg-card .kg-prize, html body.kg-body.kg-won .kg-card.win .kg-prize { display: block; margin: 12px 0 6px; padding: 12px 14px; border-radius: 12px; border: 3px solid #ffd76a; box-shadow: 0 0 0 2px #7a0012, 0 5px 0 #17110a; background: linear-gradient(135deg, #b3001b, #e3263f); color: #fff3a6; font-family: "Noto Sans JP", "Hiragino Sans", sans-serif; font-weight: 900; font-size: 19px; line-height: 1.4; text-shadow: 0 2px 0 #7a0012; }
html body.kg-body .kg-card:not(.win) .kg-prize { color: #17110a; background: #ffd60a; border: 2px solid #17110a; box-shadow: 0 4px 0 #17110a; text-shadow: none; }
html body.kg-body .kg-card:not(.win) .kg-big { font-family: "Noto Sans JP", "Hiragino Sans", sans-serif; font-weight: 900; color: #17110a; font-size: 22px; }
/* 運営の文：クリーム色の半券。受け取り方は白い枠 */
html body.kg-body .kg-card .kg-text, html body.kg-body.kg-won .kg-card.win .kg-text { color: #2b2416; background: linear-gradient(#fffdf3, #fff7d6); border: 3px dashed #e9c75a; border-radius: 14px; font-weight: 700; font-size: 14.5px; line-height: 1.85; padding: 16px; }
html body.kg-body .kg-text .kg-howto { background: #fff; border: 2px solid #17110a; border-radius: 10px; box-shadow: 0 3px 0 #17110a; color: #17110a; font-weight: 700; }
html body.kg-body .kg-text a { color: #c8001e; }
html body.kg-body .kg-card .kg-stamp { color: #c8001e; border-color: #c8001e; background: #fff; }
html body.kg-body .kg-card:not(.win) .kg-stamp { color: #b38200; border-color: #d4a017; }
html body.kg-body .kg-proof-rows, html body.kg-body.kg-won .kg-proof-rows { color: #17110a; }
html body.kg-body .kg-note, html body.kg-body .kg-back, html body.kg-body .kg-sub { color: #857a5e; }
/* 現金・PayPay の受け取り：クリーム色の半券に赤い札、入れる所は墨のふち、送るボタンは赤い申込ボタン */
html body.kg-body .kg-pay, html body.kg-body.kg-won .kg-pay { position: relative; margin-top: 18px; padding: 0 16px 18px; border-radius: 18px; border: 3px dashed #e9c75a; background: linear-gradient(#fffdf3, #fff7d6); box-shadow: none; color: #17110a; }
html body.kg-body .kg-pay-title, html body.kg-body.kg-won .kg-pay-title { margin: 0 -16px 14px; padding: 10px 12px 9px; border-radius: 15px 15px 0 0; font-family: "Noto Sans JP", "Hiragino Sans", sans-serif; font-weight: 900; font-size: 17px; letter-spacing: .04em; color: #fff; background: linear-gradient(135deg, #b3001b, #e3263f); border-bottom: 3px solid #ffd76a; text-shadow: 0 2px 0 #7a0012; }
html body.kg-body .kg-pay-field { color: #5c5340; font-weight: 900; }
html body.kg-body .kg-pay-field input, html body.kg-body .kg-pay-field select { border: 2px solid #17110a; border-radius: 10px; background: #fff; color: #17110a; font-weight: 700; box-shadow: inset 0 2px 0 rgba(23, 17, 10, .08); }
html body.kg-body .kg-pay-field input:focus, html body.kg-body .kg-pay-field select:focus { border-color: #e3263f; box-shadow: 0 0 0 3px rgba(255, 214, 10, .6); }
html body.kg-body .kg-pay-go, html body.kg-body.kg-won .kg-pay-go { margin-top: 4px; padding: 15px; font-size: 18px; font-weight: 900; color: #fff; border: 2px solid #17110a; border-radius: 999px; background: linear-gradient(180deg, #ff4a5f, #e3263f 50%, #b3001b); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), 0 5px 0 #17110a; text-shadow: 0 2px 0 #7a0012; }
html body.kg-body .kg-pay-go:active { transform: translateY(4px); box-shadow: 0 1px 0 #17110a; }
html body.kg-body .kg-pay-saved { color: #17110a; background: #fff; border: 2px solid #17110a; box-shadow: 0 3px 0 #17110a; }
html body.kg-body .kg-pay-note { color: #857a5e; font-weight: 700; }
html body.kg-body .kg-pay-fix { border: 2px solid #17110a; box-shadow: 0 3px 0 #17110a; font-weight: 900; }
@media (max-width: 340px) { .kg-stage { height: 250px; } .kg-st-main b { font-size: 32px; } .kg-st-stamp { width: 100px; height: 100px; font-size: 28px; } .kg-stage.lose .kg-st-stamp { font-size: 21px; } }
html body.kg-body.kg-won .kg-card.win .kg-prize::before { color: #ffd76a; text-shadow: none; font-size: 12.5px; }
.kg-st-tk { grid-template-columns: 1fr 84px; }
.kg-st-tk::before, .kg-st-tk::after { right: 72px; }
.kg-st-stub b { font-size: 24px; letter-spacing: 0; white-space: nowrap; }
.kg-st-stamp { top: 104px; margin-left: -48px; }
.kg-st-tag { left: 0; right: 0; margin: 0 auto; width: fit-content; transform: none; }
/* 11/29 表示の検査（32件：長い抽選名・大きい文字・320px で、券の字と判・番号・下の札が重なった）：
   舞台は高さを決めず、券は流れの中に置いて中身の分だけ伸びる。判は半券の中（番号の下）に押す。大きい字は1行で切る */
html body.kg-body .kg-stage { height: auto; min-height: 0; display: grid; justify-items: center; padding: 34px 0 58px; }
html body.kg-body .kg-st-tk { position: relative; left: auto; top: auto; margin: 0; height: auto; min-height: 150px; width: min(310px, 86%); grid-template-columns: minmax(0, 1fr) 84px; }
html body.kg-body .kg-st-main { padding: 12px 8px 12px 14px; }
html body.kg-body .kg-st-main b { font-size: clamp(26px, 9.5vw, 38px); white-space: nowrap; max-width: 100%; overflow: hidden; }
html body.kg-body .kg-st-main code { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; box-sizing: border-box; }
html body.kg-body .kg-st-stub { align-content: start; gap: 2px; padding: 12px 0 10px; }
html body.kg-body .kg-st-stamp { position: static; margin: 8px 0 0; width: 68px; height: 68px; font-size: 21px; border-width: 4px; box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 4px #c8001e, 0 4px 0 rgba(23, 17, 10, .2); }
html body.kg-body .kg-stage.lose .kg-st-stamp { font-size: 14px; letter-spacing: 0; box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 4px #d4a017, 0 4px 0 rgba(23, 17, 10, .15); }
html body.kg-body .kg-st-fx { top: 50%; }
html body.kg-body .kg-st-tag { bottom: 14px; max-width: calc(100% - 24px); }
html body.kg-body .kg-st-tk { transform: none; }
@media (prefers-reduced-motion: no-preference) { html body.kg-body .kg-st-tk { animation-name: kg-st-drop2; } @keyframes kg-st-drop2 { 0% { transform: translateY(-260px) rotate(12deg); } 100% { transform: none; } } }
/* 11/29 ガラポンのストップ：押した後は、金と白がだんだん遅くなって止まる（k.js の slip）。色は k-cyc と同じ */
.k-ball.mystery.cg { background: radial-gradient(circle at 32% 26%, #fffbe0 0 22%, #ffd400 60%, #c98a00 100%); box-shadow: 0 0 0 5px #fff6c0, 0 0 44px 18px rgba(255, 214, 10, .95); color: #fff; text-shadow: 0 2px 0 #7a3a00; }
.k-ball.mystery.cw { background: radial-gradient(circle at 32% 26%, #fff 0 30%, #f2f2ff 60%, #c9c9e6 100%); box-shadow: 0 0 0 5px #fff, 0 0 30px 10px rgba(255, 255, 255, .8); color: #b07a00; }

/* 11/30 さとし「いきなり画面上に白玉になる。ガラポンの出口から出るとかもなく」
   光る「？」は箱の中へ引っこむ（kin）→ 玉は出口から小さく出て、受け皿にコロンと落ちて弾む → 受け皿の上で止まる → 手前に大きく寄る（drop）。
   --tx・--ty は、玉のいつもの位置から受け皿までのずれ（k.js が受け皿の位置を見て入れる） */
.k-ball.mystery.kin { animation: k-ballkin .36s ease-in both; }
@keyframes k-ballkin { to { transform: scale(.08); opacity: 0; } }
.k-ball.drop { --tx: 78px; --ty: 126px; opacity: 1; animation: k-balldrop 2.15s linear both; }
.k-ball.drop.gold { animation: k-balldrop 2.15s linear both, k-pulse .5s 2.15s ease-in-out infinite alternate; }
.k-ball.drop.white { animation: k-balldrop 2.15s linear both, k-sigh 1.6s 2.25s ease-in-out forwards; }   /* forwards：待っている間に k-sigh の最初の形（動きなし）が勝つと、出口からの動きが消える */
@keyframes k-balldrop {
  0% { opacity: 0; transform: translate(var(--tx), calc(var(--ty) - 36px)) scale(.14); animation-timing-function: ease-in; }
  6% { opacity: 1; transform: translate(var(--tx), calc(var(--ty) - 34px)) scale(.3); animation-timing-function: ease-in; }
  22% { opacity: 1; transform: translate(var(--tx), calc(var(--ty) - 14px)) scale(.3); animation-timing-function: ease-out; }
  31% { transform: translate(calc(var(--tx) + 3px), calc(var(--ty) - 30px)) scale(.3); animation-timing-function: ease-in; }
  40% { transform: translate(calc(var(--tx) + 5px), calc(var(--ty) - 14px)) scale(.3); animation-timing-function: ease-out; }
  45% { transform: translate(calc(var(--tx) + 6px), calc(var(--ty) - 20px)) scale(.3); animation-timing-function: ease-in; }
  50% { transform: translate(calc(var(--tx) + 6px), calc(var(--ty) - 14px)) scale(.3); }
  70% { opacity: 1; transform: translate(calc(var(--tx) + 6px), calc(var(--ty) - 14px)) scale(.3); animation-timing-function: cubic-bezier(.3, 0, .2, 1); }
  100% { opacity: 1; transform: none; }
}
/* 参加賞を公式LINE のキーワードで受け取る（src/line_hook.ts）：ボタンの下の一言 */
.k-lose-how { text-wrap: balance; margin: 2px auto 0; max-width: 340px; font-weight: 700; font-size: 13px; line-height: 1.6; color: var(--tk-note, #857a5e); text-align: center; }

/* ===== 11/30 全体チェックの直し ===== */
/* 締め切りまで100時間以上：「日」の札が増えて4枚になるので、字を少し小さくして 320px でも札に収める */
.k-cd.k-cd-long .k-cd-num { font-size: clamp(22px, 7.4vw, 34px); }
.k-cd.k-cd-long .k-cd-grid { gap: 3px; }
/* 受け取りページの「大当たり」：320px で左右の枠にぶつかって左が切れた（16vw の下げ止め 50px が大きすぎた） */
html body.kg-body .kg-gl-big { font-size: clamp(38px, 13.5vw, 72px); max-width: 100%; }
/* オプチャ名・題・景品が、語の途中や最後の1字で折れた（「サロ／ン」「1／年無料」）：行の長さをそろえて、1字だけの行を作らない */
.k-room, .k-title, .k-prize { text-wrap: balance; }

/* ===== 12/2 演出クオリティ強化：全画面サイズ固定・タップ安定・パチスロ級斜めカットイン ===== */
.k-stage.k-full .kf { zoom: 1 !important; }
.k-stage.k-full .kf, .k-stage.k-full .kf * { touch-action: none; }
/* 非全画面の舞台：下の案内帯（.k-busy）が出入りしても舞台の高さが変わらないよう下端に固定枠を確保 */
.k-stage:not(.short):not(.k-full) { padding-bottom: 58px; }
.k-stage:not(.short):not(.k-full) > .k-busy { position: absolute; left: 12px; right: 12px; bottom: 10px; margin: 0 auto; z-index: 6; pointer-events: none; }
/* 全画面の縁オーラを強化 */
.k-stage.k-full.hg-red::after { box-shadow: inset 0 0 0 9px #ff2442, inset 0 0 85px rgba(255, 36, 66, .88); }
.k-stage.k-full.hg-gold::after { box-shadow: inset 0 0 0 11px #ffd400, inset 0 0 110px rgba(255, 196, 0, .95); }
.k-stage.k-full.hg-rainbow::after { box-shadow: inset 0 0 0 12px #ff4fd8, inset 0 0 120px rgba(255, 79, 216, .9); }
/* 斜めスラッシュ・カットイン（赤・金・虹）：画面外へ横はみ出しゼロ＆高コントラスト＋スピード線＋斜め閃光 */
.k-stage > .k-cutin, .k-cutin { position: fixed !important; left: 0; right: 0; top: 30%; z-index: 31; display: flex; justify-content: center; align-items: center; overflow: hidden; padding: 26px 0; pointer-events: none; animation: k-cutin-wrap 1.15s cubic-bezier(.16, .94, .26, 1) both; }
.k-cutin-bar { position: relative; width: 112%; margin: 0 -6%; padding: 10px 18px; display: flex; justify-content: center; align-items: center; overflow: hidden; transform: rotate(-4.5deg); border-top: 4px solid #17110a; border-bottom: 4px solid #17110a; box-shadow: inset 0 3px 0 rgba(255, 255, 255, .65), inset 0 -3px 0 rgba(0, 0, 0, .35), 0 10px 28px rgba(0, 0, 0, .42); background: linear-gradient(100deg, #7a0014 0%, #e00828 32%, #ff4136 52%, #b8001c 80%, #5e000e 100%); animation: k-cutin-slash 1.15s cubic-bezier(.16, .94, .26, 1) both; }
.k-cutin.gold .k-cutin-bar { border-color: #17110a; background: linear-gradient(100deg, #784200 0%, #e09600 24%, #fff199 50%, #ffbe0b 72%, #8a4b00 100%); box-shadow: inset 0 3px 0 #fffbe0, inset 0 -3px 0 #6b3800, 0 0 32px rgba(255, 206, 20, .85), 0 10px 28px rgba(0, 0, 0, .42); }
.k-cutin.rainbow .k-cutin-bar { background: var(--rainbow); background-size: 200% 100%; animation: k-cutin-slash 1.15s cubic-bezier(.16, .94, .26, 1) both, rb-move .5s linear infinite; box-shadow: inset 0 3px 0 #fff, inset 0 -3px 0 rgba(23, 17, 10, .45), 0 0 38px rgba(255, 79, 216, .85), 0 10px 30px rgba(0, 0, 0, .45); }
.k-cutin-lines { position: absolute; inset: 0; pointer-events: none; opacity: .35; background: repeating-linear-gradient(0deg, transparent 0 4px, rgba(255, 255, 255, .8) 4px 6px, transparent 6px 14px); animation: k-cutin-speed .24s linear infinite; }
.k-cutin-shine { position: absolute; top: -40%; bottom: -40%; left: -30%; width: 32%; pointer-events: none; background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, .92) 48%, rgba(255, 248, 190, .85) 56%, transparent 100%); transform: skewX(-24deg); animation: k-cutin-glint .65s .12s cubic-bezier(.2, .8, .3, 1) both; }
.k-cutin .pachi { position: relative; z-index: 2; font-size: clamp(30px, 10vw, 56px); line-height: 1.05; max-width: 88vw; overflow: hidden; text-overflow: ellipsis; padding: 4px 12px; white-space: nowrap; background: none; color: #fffef0; -webkit-background-clip: border-box; background-clip: border-box; -webkit-text-fill-color: #fffef0; -webkit-text-stroke: 6px #17110a; paint-order: stroke fill; text-shadow: 0 5px 0 #17110a, 0 0 18px rgba(255, 236, 110, .95); filter: none; animation: k-cutin-txt 1.15s cubic-bezier(.16, .94, .26, 1) both; }
.k-cutin.gold .pachi { color: #fffbe0; -webkit-text-fill-color: #fffbe0; -webkit-text-stroke: 6px #3a1600; text-shadow: 0 5px 0 #17110a, 0 0 22px rgba(255, 245, 160, 1); }
.k-cutin.rainbow .pachi { color: #ffffff; -webkit-text-fill-color: #ffffff; -webkit-text-stroke: 6px #17110a; text-shadow: 0 5px 0 #17110a, 0 0 24px rgba(255, 255, 255, 1), 0 0 38px rgba(255, 79, 216, .95); }
@keyframes k-cutin-wrap { 0% { opacity: 0; } 10%, 82% { opacity: 1; } 100% { opacity: 0; } }
@keyframes k-cutin-slash { 0% { transform: translateX(100%) rotate(-4.5deg) scaleY(.4); } 16% { transform: translateX(-2%) rotate(-4.5deg) scaleY(1.1); } 24%, 82% { transform: translateX(0) rotate(-4.5deg) scaleY(1); } 100% { transform: translateX(-100%) rotate(-4.5deg) scaleY(.65); } }
@keyframes k-cutin-txt { 0% { transform: skewX(-8deg) scale(1.32); opacity: 0; } 18% { transform: skewX(-8deg) scale(.95); opacity: 1; } 26%, 82% { transform: skewX(-8deg) scale(1); opacity: 1; } 100% { transform: skewX(-8deg) scale(1.08); opacity: 0; } }
@keyframes k-cutin-glint { from { left: -35%; } to { left: 130%; } }
@keyframes k-cutin-speed { from { transform: translateX(0); } to { transform: translateX(-24px); } }
@media (prefers-reduced-motion: reduce) { .k-cutin, .k-cutin-bar, .k-cutin-lines, .k-cutin-shine, .k-cutin .pachi { animation: none !important; } }

/* ===== 12/6 カスタムメイン画像（レター用ヘッダー1枚絵）対応：画像をフル幅主役にし、下のUIをプロ品質の清潔な器に ===== */
body.k-has-hero { background: #f8f7f4; color: #18181b; }
body.k-has-hero::before { display: none; }
body.k-has-hero #k { max-width: 520px; padding: 0 0 48px; background: #ffffff; min-height: 100dvh; box-shadow: 0 0 48px rgba(0, 0, 0, .06); }
body.k-has-hero #k > :not(.k-top):not(.k-sound) { margin-left: 16px; margin-right: 16px; }
body.k-has-hero .k-top { margin-bottom: 10px; }
body.k-has-hero .k-top > :not(.k-hero-wrap) { margin-left: 16px; margin-right: 16px; }
.k-hero-wrap { position: relative; width: 100%; overflow: hidden; background: #111; line-height: 0; }
.k-hero-img { display: block; width: 100%; height: auto; object-fit: cover; }
body.k-has-hero .k-room { margin-top: 14px; padding: 0 16px; font-size: 11px; letter-spacing: .12em; color: #71717a; }
body.k-has-hero .k-title { font-size: clamp(20px, 5.8vw, 26px); margin: 4px 16px 8px; background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #18181b; animation: none; }
body.k-has-hero .k-steps { margin: 8px 16px 12px; }
/* 主役画像がある時は、下の景品・カウントダウン・参加カードから重い黒太枠（3px solid #1A1A1A）を外してスッキリ統一 */
body.k-has-hero .k-poster { margin: 10px 16px 6px; border: 1.5px solid #e6c670; border-radius: 16px; background: linear-gradient(180deg, #fffdf7 0%, #fff7df 100%); box-shadow: 0 6px 20px rgba(176, 132, 24, .10); padding: 14px 16px; }
body.k-has-hero .k-poster::before { opacity: .35; }
body.k-has-hero .k-poster-k { font-size: 12px; color: #9a6b0e; }
body.k-has-hero .k-top .k-poster .k-prize { font-size: clamp(17px, 4.8vw, 20px); color: #18181b; text-shadow: none; }
body.k-has-hero .k-live { margin: 10px auto 12px; border: 1px solid #fecdd3; background: #fff1f2; color: #9f1239; box-shadow: none; padding: 6px 16px; border-radius: 999px; }
body.k-has-hero .k-live small { color: #e11d48; }
body.k-has-hero .k-cd { margin: 10px 16px 12px; border: 1px solid #e4e4e7; border-radius: 16px; background: #fafafa; box-shadow: 0 4px 14px rgba(0, 0, 0, .04); padding: 14px 12px 12px; }
body.k-has-hero .k-cd-label { font-size: 12px; color: #52525b; }
body.k-has-hero .k-cd-tile { border: 0; border-radius: 10px; background: #18181b; box-shadow: 0 4px 10px rgba(0, 0, 0, .14); }
body.k-has-hero .k-cd-tile.sec { background: linear-gradient(180deg, #e11d48 0%, #be123c 100%); }
body.k-has-hero .k-cd-colon { color: #71717a; }
body.k-has-hero .k-card.k-cond { margin-top: 6px; margin-bottom: 2px; }
body.k-has-hero .k-kw { background: #18181b; animation: none; border-radius: 6px; padding: 2px 10px; font-size: .92em; }
body.k-has-hero .k-ticket-wrap .k-card { border: 1px solid #e4e4e7; border-radius: 20px; background: #ffffff; box-shadow: 0 10px 28px rgba(0, 0, 0, .06); padding: 18px 16px; }
body.k-has-hero .k-ticket-wrap.issue > .k-card::before, body.k-has-hero .k-ticket-wrap.issue > .k-card::after { display: none; }
body.k-has-hero .k-line { border: 0; border-radius: 999px; background: linear-gradient(180deg, #0ad65e 0%, #05a847 100%); box-shadow: 0 8px 22px rgba(6, 199, 85, .34); padding: 16px 20px; font-size: 17px; }
body.k-has-hero .k-line:active { transform: translateY(2px); box-shadow: 0 4px 12px rgba(6, 199, 85, .28); }
/* 折りたたみルール：ボタンをファーストビューの主役にしたまま、気になる人だけワンタップで図解を見られる */
.k-rules-fold { margin: 16px 16px 20px; border: 1px solid #e4e4e7; border-radius: 14px; background: #fafafa; overflow: hidden; }
.k-rules-fold > summary { padding: 13px 16px; font-size: 13px; font-weight: 800; color: #3f3f46; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.k-rules-fold > summary::-webkit-details-marker { display: none; }
.k-rules-fold > summary::after { content: "＋"; font-size: 15px; font-weight: 900; color: #71717a; }
.k-rules-fold[open] > summary::after { content: "−"; }
.k-rules-fold .k-rules { margin: 0; border: 0; border-top: 1px solid #e4e4e7; border-radius: 0; background: #ffffff; }
.k-rules-fold .k-rules-h { display: none; }
.k-rules-fold .k-flow-pic { border: 1px solid #e4e4e7; box-shadow: 0 3px 10px rgba(0, 0, 0, .06); }
.k-rules-fold .k-flow-no { border: 0; background: #18181b; }
