/* 一步一杯 v2 · 线上小游戏(ogames-ui.js)——全部 og- 前缀,画在奶油色卡片里(墨色字),宽约 340px */

.og {
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  color: var(--ink); text-align: center;
  font-family: var(--body);
  -webkit-user-select: none; user-select: none;
  -webkit-touch-callout: none;
}
.og b { font-weight: 800; }
.og-body { display: flex; flex-direction: column; gap: 10px; }
.og .btn.sky { background: var(--sky); color: #fff; }
.og .btn:disabled { opacity: .4; pointer-events: none; }

/* ---------- 顶栏:轮到谁 / 等谁 / 结果横幅 ---------- */
.og-head { min-height: 46px; display: flex; align-items: center; justify-content: center; }
.og-turn {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  padding: 5px 16px 5px 5px; border-radius: 999px;
  background: var(--cream2); box-shadow: inset 0 0 0 2px var(--cream3);
  font-size: 17px; line-height: 1.2;
  animation: og-pop .32s cubic-bezier(.3, 1.5, .5, 1) both;
}
.og-turn-t { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 轮到自己:琥珀色 + 呼吸光圈,一眼就知道该你了 */
.og-turn.me {
  background: var(--amber); color: #2b1700;
  box-shadow: 0 3px 0 #a8741c, 0 0 0 0 rgba(242, 181, 58, .6);
  animation: og-pop .32s cubic-bezier(.3, 1.5, .5, 1) both, og-glow 1.6s ease-out .4s infinite;
}
@keyframes og-glow {
  0% { box-shadow: 0 3px 0 #a8741c, 0 0 0 0 rgba(242, 181, 58, .65); }
  70%, 100% { box-shadow: 0 3px 0 #a8741c, 0 0 0 12px rgba(242, 181, 58, 0); }
}
.og-turn.wait { padding-left: 8px; }
.og-toks { display: inline-flex; flex: none; }
.og-toks .tok + .tok { margin-left: -8px; }
.og-banner {
  display: inline-flex; align-items: center; justify-content: center; max-width: 100%;
  padding: 9px 18px; border-radius: 18px;
  background: var(--red); color: #fff;
  font-size: 19px; font-weight: 800; line-height: 1.3; text-wrap: balance;
  box-shadow: 0 3px 0 rgba(42, 26, 15, .22);
  animation: og-pop .4s cubic-bezier(.3, 1.6, .5, 1) both;
}
.og-banner.good { background: var(--green); color: #052611; }
.og-banner.warn { background: var(--amber); color: #2b1700; }
.og-foot { font-size: 14px; line-height: 1.5; color: var(--ink2); }
.og-foot:empty { display: none; }
.og-foot small { font-size: 13px; opacity: .85; }
.og-act { min-height: 56px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.og-big { min-height: 64px; font-size: 25px; border-radius: 20px; letter-spacing: 2px; }
.og-note { font-size: 15px; line-height: 1.5; color: var(--ink2); animation: og-fadein .25s both; }
.og-note b { color: var(--ink); }
.og-next {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 17px; color: var(--ink2);
  animation: og-pop .3s ease-out both;
}
.og-next b { color: var(--ink); }

/* ---------- 掉线:跳过 / 代操作 ---------- */
.og-skip { display: flex; flex-direction: column; gap: 6px; }
.og-skip:empty { display: none; }
.og-skiprow {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 6px 6px 8px; border-radius: 14px;
  background: #fbe3c4; box-shadow: inset 0 0 0 2px #f0c58a;
  font-size: 14px; text-align: left;
  animation: og-in .3s ease-out both;
}
.og-skt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.og-skipbtn {
  flex: none; min-height: 40px; padding: 0 14px; border-radius: 12px;
  background: var(--ink); color: var(--cream); font-size: 15px; font-weight: 800;
}
.og-skipbtn:disabled { opacity: .4; }

/* ---------- 通用特效 ---------- */
@keyframes og-pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes og-in { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes og-fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes og-fadeout { 0%, 40% { opacity: 1; } 100% { opacity: 0; } }
@keyframes og-shake {
  0%, 100% { transform: none; }
  15% { transform: translate(-7px, 2px) rotate(-1.5deg); }
  30% { transform: translate(7px, -2px) rotate(1.5deg); }
  45% { transform: translate(-5px, 1px) rotate(-1deg); }
  60% { transform: translate(5px, -1px) rotate(1deg); }
  80% { transform: translate(-2px, 0); }
}
.og-shake { animation: og-shake .5s linear; }
.og-flash {
  position: absolute; inset: -6px; z-index: 5; border-radius: 22px; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, #fffbe8 0%, #ffd36b 30%, rgba(255, 138, 42, .75) 55%, rgba(229, 83, 75, 0) 78%);
  animation: og-flash .9s ease-out forwards;
}
@keyframes og-flash {
  0% { opacity: 0; transform: scale(.4); }
  12% { opacity: 1; transform: scale(1.04); }
  100% { opacity: 0; transform: scale(1.15); }
}
.og-boom {
  position: absolute; left: 50%; top: 50%; z-index: 6; pointer-events: none;
  font-size: 104px; line-height: 1;
  transform: translate(-50%, -50%);
  animation: og-boom 1.1s cubic-bezier(.2, 1.4, .4, 1) forwards;
}
@keyframes og-boom {
  0% { transform: translate(-50%, -50%) scale(.2) rotate(-20deg); opacity: 0; }
  25% { transform: translate(-50%, -50%) scale(1.25) rotate(6deg); opacity: 1; }
  70% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.1); opacity: 0; }
}
@keyframes og-land {
  0% { transform: scale(1.25); }
  55% { transform: scale(.92); }
  100% { transform: none; }
}
.og-land { animation: og-land .35s ease-out; }
@keyframes og-blink { 50% { opacity: .15; } }
@keyframes og-throb { 50% { transform: scale(1.04); } }

/* ---------- 参加者一排小头像 ---------- */
.og-progress { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; min-height: 30px; }
.og-progress:empty { display: none; }
.og-pdot { position: relative; display: inline-flex; border-radius: 50%; opacity: .5; transition: opacity .3s, transform .3s; }
.og-pdot.done { opacity: 1; }
.og-pdot.me { box-shadow: 0 0 0 2px var(--cream), 0 0 0 4px var(--amber); }
.og-pdot.done::after {
  content: "✓"; position: absolute; right: -4px; bottom: -4px;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--green); color: #052611; font-size: 10px; font-weight: 900; line-height: 15px;
}
.og-pdot.off { filter: grayscale(1); }
.og-pdot.off::before {
  content: "📵"; position: absolute; left: -5px; top: -6px; font-size: 12px; line-height: 1;
}
.og-pdot.out { opacity: .25; filter: grayscale(1); }

/* ---------- 结果排名 ---------- */
.og-rank { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.og-rank li {
  display: flex; align-items: center; gap: 8px;
  min-height: 38px; padding: 3px 10px 3px 6px; border-radius: 12px;
  background: var(--cream2); font-size: 15px; text-align: left;
  animation: og-in .3s ease-out both; animation-delay: calc(var(--i) * 70ms);
}
.og-rank .n { width: 16px; flex: none; text-align: center; font-weight: 800; color: var(--ink2); }
.og-rank .nm { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; font-weight: 700; }
.og-rank .nm > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.og-rank .tm { flex: none; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; font-variant-numeric: tabular-nums; }
.og-rank .tm b { font-size: 17px; }
.og-rank .tm small { font-size: 11px; color: var(--ink2); }
.og-rank li.best { background: #dcf1e1; box-shadow: inset 0 0 0 2px var(--green); }
.og-rank li.worst { background: #fbd9d4; box-shadow: inset 0 0 0 2px var(--red); }
.og-badge {
  flex: none; padding: 1px 7px; border-radius: 999px;
  background: var(--red); color: #fff; font-size: 12px; font-weight: 800; line-height: 1.6; white-space: nowrap;
}
.og-badge.good { background: var(--green); color: #052611; }

/* ---------- 插画(public/img/games/<id>.webp,加载失败自动移除,露出表情兜底) ---------- */
.og-art { display: block; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }
.og-art + .og-fb, .og-art + .og-dots { display: none; }
.og-art.lg { width: 88px; height: 88px; animation: og-throb 1.6s ease-in-out infinite; }
.og-art.sm { width: 54px; height: 54px; flex: none; }
.og-art.tg { width: 104px; height: 104px; margin: 0 auto; }

/* ---------- 选人 ---------- */
.og-picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(66px, 1fr)); gap: 6px; }
.og-pk {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  min-height: 64px; padding: 7px 3px 6px; border-radius: 16px;
  background: #fff8ea; box-shadow: inset 0 0 0 2px var(--cream3), 0 3px 0 var(--cream3);
  font-weight: 800; font-size: 14px; color: var(--ink);
  transition: transform .08s;
  animation: og-pop .3s ease-out both;
}
.og-pk span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.og-pk:active { transform: translateY(2px) scale(.97); }
.og-pk:disabled { opacity: .45; }

/* ======================= 💣 剪线 ======================= */
.og-bomb-box {
  position: relative; padding: 12px 10px 10px; border-radius: 22px;
  background: linear-gradient(#40352f, #2b231f);
  box-shadow: 0 5px 0 #17110e, inset 0 2px 0 rgba(255, 255, 255, .09);
  transition: filter .5s;
}
.og-bomb-box.blown { filter: saturate(.55) brightness(.75) sepia(.25); }
.og-bomb-top { position: relative; display: flex; justify-content: center; gap: 5px; height: 54px; margin: 0 14px 10px; }
.og-stick {
  flex: 1; max-width: 48px; border-radius: 10px;
  background: linear-gradient(90deg, #95261f, #e5534b 32%, #f58b80 48%, #cf4038 72%, #8a221c);
  box-shadow: inset 0 -7px 0 rgba(0, 0, 0, .2), inset 0 6px 0 rgba(255, 255, 255, .12);
}
.og-tape {
  position: absolute; left: 50%; top: 50%; width: min(232px, 100%); height: 16px;
  transform: translate(-50%, -50%);
  border-radius: 3px; background: #1f1a17; box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
}
.og-led {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 7px;
  padding: 3px 12px; border-radius: 9px;
  background: #120c0a; border: 3px solid #5a4c43;
  color: #ff5b4d; font: 700 18px/1.25 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: 1px; white-space: nowrap;
  text-shadow: 0 0 8px rgba(255, 70, 60, .85);
}
.og-led::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: #ff5b4d; box-shadow: 0 0 6px #ff5b4d;
  animation: og-blink 1s steps(2) infinite;
}
.blown .og-led { color: #ffd36b; text-shadow: 0 0 10px rgba(255, 200, 80, .9); }
.og-panel {
  position: relative; padding: 0 2px; border-radius: 15px;
  background: #4d413a; box-shadow: inset 0 3px 9px rgba(0, 0, 0, .5);
  transition: box-shadow .3s;
}
.og-panel::before, .og-panel::after {
  content: ""; position: absolute; left: 8px; right: 8px; height: 10px; border-radius: 5px;
  background: linear-gradient(#e0b764, #8d6a2e);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .4);
}
.og-panel::before { top: 9px; }
.og-panel::after { bottom: 9px; }
/* 轮到我剪:接线板亮一圈 */
.og-panels.og-mine .og-panel { box-shadow: inset 0 3px 9px rgba(0, 0, 0, .5), 0 0 0 3px var(--amber); animation: og-mine 1.4s ease-in-out infinite; }
@keyframes og-mine { 50% { box-shadow: inset 0 3px 9px rgba(0, 0, 0, .5), 0 0 0 3px rgba(242, 181, 58, .35); } }
.og-panels { display: flex; flex-direction: column; gap: 8px; }
.og-wires { position: relative; z-index: 1; display: flex; justify-content: center; height: 182px; }
.og-panels.two .og-wires { height: 100px; }
.og-wire { position: relative; flex: 0 0 calc(100% / var(--per)); min-width: 0; height: 100%; cursor: pointer; }
.og-panels.og-busy .og-wire { cursor: default; pointer-events: none; }
.og-wire:disabled { cursor: default; }
.og-wire svg {
  position: absolute; left: 0; top: 14px; width: 100%; height: calc(100% - 28px);
  overflow: visible; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .38));
  transition: transform .12s;
}
.og-wire:not(:disabled):active svg, .og-wire.og-aim svg { transform: scaleY(1.04); }
.og-wire.og-aim path { stroke: #fff6d8; }
.og-wire path {
  fill: none; stroke: var(--wc); stroke-width: 9px; stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  transform-box: fill-box;
  transition: transform .45s cubic-bezier(.25, 1.5, .5, 1), stroke .3s, opacity .4s;
}
.og-wire .og-w1 { transform-origin: 50% 0; }
.og-wire .og-w2 { transform-origin: 50% 100%; }
.og-wire.cut .og-w1 { transform: scaleY(.76) rotate(-6deg); }
.og-wire.cut .og-w2 { transform: scaleY(.76) rotate(6deg); }
.og-wire.done:not(.fuse) path { opacity: .55; }
.og-screw {
  position: absolute; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff4c9, #d2a752 50%, #7a5820);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .55);
}
.og-screw.t { top: 7px; }
.og-screw.b { bottom: 7px; }
.og-wire.cut:not(.done)::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(#fff8d0, #ffbf3a 38%, rgba(255, 140, 40, 0) 70%);
  animation: og-spark .5s ease-out forwards;
}
@keyframes og-spark { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.7); opacity: 0; } }
.og-wtag {
  position: absolute; left: 50%; top: 42%; z-index: 2; pointer-events: none;
  padding: 1px 7px; border-radius: 999px;
  background: var(--green); color: #052611; font-size: 13px; line-height: 1.5; white-space: nowrap;
  transform: translateX(-50%); opacity: 0;
}
.og-wire.safe .og-wtag { animation: og-float 1.1s ease-out forwards; }
@keyframes og-float {
  0% { opacity: 0; transform: translate(-50%, 6px) scale(.7); }
  20% { opacity: 1; transform: translate(-50%, 0) scale(1); }
  75% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -26px); }
}
.og-wire.fuse path { stroke: #ffd65c; animation: og-burn .25s steps(2) 6; }
.og-wire.fuse::after {
  content: "🔥"; position: absolute; left: 50%; top: 50%; z-index: 2; font-size: 26px; line-height: 1;
  transform: translate(-50%, -60%); pointer-events: none;
}
@keyframes og-burn { 50% { stroke: #ff6a2a; } }

/* ======================= 🔢 数字炸弹 ======================= */
.og-is-number .og-body { gap: 8px; }
.og-range {
  display: flex; align-items: baseline; justify-content: center; gap: 14px;
  font: 40px/1 var(--title); letter-spacing: 1px;
}
.og-range span { font-size: 26px; color: var(--ink2); }
.og-range b { font-weight: 400; min-width: 2ch; }
.og-range b.hot { color: var(--red); animation: og-land .45s ease-out; }
.og-track { position: relative; height: 10px; margin: -2px 12px 0; border-radius: 5px; background: var(--cream3); overflow: hidden; }
.og-track i {
  position: absolute; top: 0; bottom: 0; left: 0; width: 100%; border-radius: 5px;
  background: linear-gradient(90deg, var(--amber), var(--red));
  transition: left .5s ease, width .5s ease;
}
.og-input {
  display: flex; align-items: center; justify-content: center; gap: 2px;
  height: 52px; border-radius: 16px;
  background: #fffaf0; box-shadow: inset 0 0 0 2px var(--cream3);
  font: 36px/1 var(--title); letter-spacing: 3px;
  transition: background .25s, box-shadow .25s;
}
.og-input b { font-weight: 400; animation: og-pop .2s ease-out; }
.og-input span { font-size: 26px; letter-spacing: 1px; }
.og-input .ph { color: var(--cream3); font-size: 36px; }
.og-caret { width: 3px; height: 32px; border-radius: 2px; background: var(--ink); animation: og-blink 1s steps(2) infinite; }
.og-input.ok { background: #e0f3e4; box-shadow: inset 0 0 0 2px var(--green); color: #1d6a35; }
.og-input.boom { background: #fbd9d4; box-shadow: inset 0 0 0 3px var(--red); color: var(--red); }
.og-only-t, .og-waiting { font-family: var(--body); font-weight: 800; }
.og-only-t { color: var(--red); }
.og-waiting { font-size: 19px !important; color: var(--ink2); letter-spacing: 0 !important; }
.og-ell::after { content: "……"; display: inline-block; animation: og-blink 1.2s steps(2) infinite; }
.og-hint { min-height: 21px; font-size: 14px; line-height: 1.5; color: var(--ink2); }
.og-hint.err { color: var(--red); font-weight: 700; }
.og-pad { min-height: 196px; display: flex; flex-direction: column; justify-content: center; transition: opacity .3s; }
.og-pad.og-off { opacity: .4; pointer-events: none; }
.og-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.og-key {
  min-height: 44px; border-radius: 14px;
  background: var(--cream2); color: var(--ink);
  font-size: 24px; font-weight: 800;
  box-shadow: 0 3px 0 var(--cream3);
  transition: transform .06s;
}
.og-key:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--cream3); }
.og-key.del { font-size: 22px; color: var(--ink2); }
.og-key.go { background: var(--ink); color: var(--cream); font-size: 20px; box-shadow: 0 3px 0 #000; }
.og-key.go:active { box-shadow: 0 1px 0 #000; }
.og-forced { animation: og-pop .35s ease-out both; }
.og-only { animation: og-throb 1s ease-in-out infinite; }
.og-hist { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }
.og-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px 4px 4px; border-radius: 999px;
  background: var(--cream2); font-size: 18px; line-height: 1;
}
.og-chip b { font-family: var(--title); font-weight: 400; font-size: 22px; }
.og-chip i { font-style: normal; font-size: 13px; color: var(--green); }
.og-chip.new { background: #fff8ea; box-shadow: inset 0 0 0 2px var(--amber); animation: og-pop .3s ease-out both; }
.og-wait-big { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--ink2); }
.og-wait-big .og-dots { font-size: 44px; animation: og-throb 1.4s ease-in-out infinite; }

/* ======================= 🎲 比点数 ======================= */
.og-dice { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 8px; }
.og-dcell {
  position: relative; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  padding: 8px 4px 10px; border-radius: 16px;
  background: var(--cream2);
  transition: opacity .35s, background .35s, box-shadow .35s;
}
.og-dname { display: flex; align-items: center; gap: 5px; max-width: 100%; font-size: 14px; font-weight: 700; line-height: 1.2; }
.og-dname span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.og-die { width: var(--ds); height: var(--ds); }
.og-die svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 3px 0 rgba(42, 26, 15, .25)); }
.og-dcell.rolling .og-die { animation: og-roll .32s linear infinite; animation-delay: calc(var(--d) * -70ms); }
@keyframes og-roll {
  0% { transform: rotate(0) translateY(0); }
  25% { transform: rotate(-16deg) translateY(-7px); }
  50% { transform: rotate(9deg) translateY(1px); }
  75% { transform: rotate(-7deg) translateY(-4px); }
  100% { transform: rotate(0) translateY(0); }
}
.og-dtag {
  position: absolute; top: -7px; right: 6px;
  padding: 1px 8px; border-radius: 999px;
  background: var(--red); color: #fff; font-size: 12px; line-height: 1.6;
  box-shadow: 0 2px 0 rgba(42, 26, 15, .25);
  opacity: 0; transform: scale(.5); transition: opacity .25s, transform .3s cubic-bezier(.3, 1.6, .5, 1);
}
.og-dcell.lose { background: #fbd9d4; box-shadow: inset 0 0 0 3px var(--red); }
.og-dcell.lose .og-die { animation: og-shake .5s linear; }
.og-dcell.lose .og-dtag { opacity: 1; transform: none; }
.og-dcell.safe { opacity: .45; }
.og-dcell.out { opacity: .3; filter: grayscale(1); }
.og-dice.tie .og-dcell { background: #fff0c9; box-shadow: inset 0 0 0 2px var(--amber); }

/* ======================= ⏱️ 盲掐十秒 ======================= */
.og-main { display: flex; flex-direction: column; gap: 10px; }
.og-clock {
  padding: 16px 10px 12px; border-radius: 22px;
  background: var(--ink); color: var(--cream);
  box-shadow: 0 5px 0 rgba(42, 26, 15, .3);
}
.og-clock-v { font: 66px/1.05 var(--title); letter-spacing: 2px; font-variant-numeric: tabular-nums; }
.og-clock-sub { margin-top: 6px; font-size: 14px; color: var(--dim); }
.og-clock.run .og-clock-v { color: #fff; }
.og-clock.hide .og-clock-v { color: var(--amber); animation: og-breathe 1.2s ease-in-out infinite; }
.og-clock.shown .og-clock-v { color: var(--amber); }
.og-clock.shown .og-clock-sub { color: var(--cream); font-weight: 700; }
@keyframes og-breathe { 50% { opacity: .55; transform: scale(.96); } }
.og-is-timer .og-act { min-height: 64px; }

/* ======================= 🎡 命运转盘 ======================= */
.og-wheel-wrap { position: relative; width: min(100%, 262px); aspect-ratio: 1; margin: 12px auto 2px; }
.og-wheel-wrap::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 6px 0 rgba(42, 26, 15, .28);
}
.og-wheel { position: relative; width: 100%; height: 100%; border-radius: 50%; will-change: transform; }
.og-wheel svg { display: block; width: 100%; height: 100%; }
.og-wheel.og-windup { animation: og-windup .5s ease-in-out infinite alternate; }
@keyframes og-windup { from { transform: rotate(-6deg); } to { transform: rotate(4deg); } }
.og-seg path { stroke: var(--cream); stroke-width: 2; stroke-linejoin: round; }
.og-seg { transition: opacity .4s; }
.og-seg text {
  fill: #fff; font-family: var(--body); font-weight: 800;
  text-anchor: middle; dominant-baseline: central;
  stroke: rgba(42, 26, 15, .55); stroke-width: 3px; paint-order: stroke; stroke-linejoin: round;
}
.og-bulbs circle { fill: var(--cream); }
.og-wheel.done .og-seg:not(.win) { opacity: .32; }
.og-wheel.done .og-seg.win path { stroke: #fff; stroke-width: 4; }
.og-pointer {
  position: absolute; left: 50%; top: -16px; z-index: 2;
  width: 36px; height: 48px; margin-left: -18px;
  transform-origin: 50% 13px;
  filter: drop-shadow(0 2px 0 rgba(42, 26, 15, .35));
}
.og-pointer.og-bob { animation: og-bob .5s ease-out; }
@keyframes og-bob { 30% { transform: translateY(-6px); } 60% { transform: translateY(2px); } }

/* ======================= ✋ 拍案而起 ======================= */
.og-vs { display: flex; align-items: center; justify-content: center; gap: 6px; }
.og-fighter {
  flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 4px 7px; border-radius: 18px; background: var(--cream2);
  transition: background .3s, box-shadow .3s, opacity .3s;
}
.og-fighter.me { box-shadow: inset 0 0 0 3px var(--amber); }
.og-fighter.lose { background: #fbd9d4; box-shadow: inset 0 0 0 3px var(--red); animation: og-shake .5s linear; }
.og-fighter.win { background: #dcf1e1; box-shadow: inset 0 0 0 3px var(--green); }
.og-ftok { height: 56px; display: grid; place-items: center; }
.og-ftok.q {
  width: 56px; border-radius: 50%; background: var(--cream3); color: var(--ink2);
  font: 30px/56px var(--title); animation: og-throb 1.4s ease-in-out infinite;
}
.og-fname { max-width: 100%; font-weight: 800; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.og-fst { min-height: 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; font-size: 13px; color: var(--ink2); }
.og-fst b { font-size: 15px; }
.og-fst b.good { color: #1d6a35; }
.og-fst b.bad { color: var(--red); }
.og-vs-x { flex: none; font: 26px/1 var(--title); color: var(--red); text-shadow: 0 2px 0 rgba(42, 26, 15, .2); }
.og-pad2 {
  position: relative; display: grid; place-items: center;
  min-height: 132px; border-radius: 22px;
  background: var(--ink); color: var(--cream);
  box-shadow: 0 5px 0 rgba(42, 26, 15, .3);
  touch-action: none;
  transition: background .12s;
}
.og-pad2.idle { min-height: 84px; background: var(--cream2); color: var(--ink); box-shadow: inset 0 0 0 2px var(--cream3); }
.og-pad2.wait { background: #3a2a1d; }
.og-pad2.wait b { color: var(--amber); animation: og-breathe 1.2s ease-in-out infinite; }
.og-pad2.fire { background: var(--red); color: #fff; animation: og-fire .25s ease-out; }
@keyframes og-fire { from { transform: scale(1.06); box-shadow: 0 0 0 10px rgba(229, 83, 75, .4); } }
.og-pad2.early { background: #7a1d18; color: #ffd6d0; }
.og-pad2.hit { background: #1d6a35; color: #e7ffe9; }
.og-pad2.done { background: var(--ink); }
.og-sig { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px; }
.og-sig b { font: 52px/1.05 var(--title); font-weight: 400; letter-spacing: 3px; }
.og-sig small { font-size: 14px; opacity: .85; }
.og-sig.sm b { font: 800 19px/1.3 var(--body); letter-spacing: 0; }
.og-sig.row { flex-direction: row; gap: 10px; text-align: left; padding: 8px 12px; }
.og-sig.row > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.og-sig.row small { font-size: 13px; }
.og-pad2.fire b { font-size: 72px; }

/* ======================= 🃏 比大小 ======================= */
.og-hl { display: flex; flex-direction: column; gap: 9px; }
.og-hl-hist { display: flex; justify-content: center; gap: 5px; min-height: 48px; align-items: center; }
.og-hl-empty { font-size: 13px; color: var(--ink2); opacity: .7; }
.og-mini { position: relative; animation: og-pop .3s ease-out both; }
.og-mini > i {
  position: absolute; right: -5px; bottom: -5px; width: 17px; height: 17px; border-radius: 50%;
  font: 900 11px/17px var(--body); font-style: normal; color: #fff; background: var(--green);
}
.og-mini.bad > i { background: var(--red); }
.og-hl-main { display: flex; align-items: center; justify-content: center; gap: 12px; }
.og-hl-slot { width: 80px; height: 112px; perspective: 600px; }
.og-hl-mid { width: 64px; display: grid; place-items: center; }
.og-hl-mid b { font: 40px/1 var(--title); font-weight: 400; color: var(--ink2); }
.og-hl-mid b.g { font: 800 18px/1.2 var(--body); color: var(--ink); }
.og-hl-mid b.ok { color: #1d6a35; font-size: 48px; }
.og-hl-mid b.bad { color: var(--red); font-size: 48px; }
.og-card {
  position: relative; width: 100%; height: 100%;
  display: grid; place-items: center;
  border-radius: 12px; background: #fffdf7; color: var(--ink);
  box-shadow: 0 4px 0 rgba(42, 26, 15, .25), inset 0 0 0 2px var(--cream3);
}
.og-card > b { position: absolute; left: 7px; top: 5px; font: 800 18px/1 var(--body); }
.og-card > b.br { left: auto; top: auto; right: 7px; bottom: 5px; transform: rotate(180deg); }
.og-card > i { font-style: normal; font-size: 40px; line-height: 1; }
.og-card.red { color: #d8362f; }
.og-card.back {
  background: repeating-linear-gradient(45deg, #8a2c25 0 7px, #a5352d 7px 14px);
  box-shadow: 0 4px 0 rgba(42, 26, 15, .25), inset 0 0 0 4px #fffdf7, inset 0 0 0 6px #c99257;
}
.og-card.back > i { width: 30px; height: 30px; border-radius: 50%; background: #f2b53a; box-shadow: 0 0 0 4px #fffdf7; }
.og-card.flip { animation: og-flipin .5s cubic-bezier(.3, 1.3, .5, 1) both; }
@keyframes og-flipin {
  0% { transform: rotateY(90deg) scale(.9); }
  100% { transform: none; }
}
.og-card.peek { opacity: .75; }
.og-card.sm { width: 32px; height: 44px; border-radius: 6px; box-shadow: 0 2px 0 rgba(42, 26, 15, .2), inset 0 0 0 1.5px var(--cream3); }
.og-card.sm > b { left: 4px; top: 3px; font-size: 12px; }
.og-card.sm > b.br { display: none; }
.og-card.sm > i { font-size: 16px; margin-top: 10px; }
.og-hl-info { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.og-pot { display: inline-flex; align-items: baseline; gap: 6px; font-size: 15px; color: var(--ink2); }
.og-pot b { font: 32px/1 var(--title); font-weight: 400; color: #b45a12; display: inline-block; }
.og-dots5 { display: inline-flex; gap: 4px; margin-left: 4px; align-self: center; }
.og-dots5 i { width: 10px; height: 10px; border-radius: 50%; background: var(--cream3); transition: background .3s; }
.og-dots5 i.on { background: var(--amber); box-shadow: 0 0 0 2px #fff3d1; }
.og-odds { font-size: 13px; color: var(--ink2); min-height: 20px; }
.og-odds:empty { display: none; }
.og-odds b { color: var(--ink); }
.og-hl-btns { display: flex; gap: 10px; }
.og-hl-btns .btn { flex: 1; min-height: 60px; font-size: 24px; border-radius: 18px; }
.og-stopb { min-height: 48px; font-size: 17px; }

/* ======================= 👆 狂点五秒 ======================= */
.og-arena { position: relative; width: 216px; height: 216px; margin: 2px auto 0; }
.og-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); pointer-events: none; }
.og-ring circle { fill: none; stroke-width: 6; }
.og-ring .bg { stroke: var(--cream3); }
.og-ring .fg { stroke: var(--red); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; }
.og-arena.idle .og-ring .fg, .og-arena.watch .og-ring .fg { stroke: var(--cream3); }
.og-arena.sent .og-ring .fg { stroke: var(--green); stroke-dashoffset: 0 !important; }
.og-target {
  position: absolute; inset: 14px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 38% 32%, #ffd77a, var(--amber) 55%, #c98a14);
  color: #2b1700;
  box-shadow: 0 7px 0 #a8741c, inset 0 -6px 0 rgba(0, 0, 0, .12);
  touch-action: none; cursor: pointer;
}
.og-target b { font: 64px/1 var(--title); font-weight: 400; font-variant-numeric: tabular-nums; }
.og-target small { font-size: 14px; font-weight: 800; min-height: 20px; }
.og-arena.idle .og-target, .og-arena.watch .og-target, .og-arena.sent .og-target { box-shadow: 0 7px 0 #b29a74; background: var(--cream2); color: var(--ink2); cursor: default; }
.og-arena.watch .og-target b, .og-arena.sent .og-target b { filter: saturate(.6); }
.og-arena.count .og-target { background: radial-gradient(circle at 38% 32%, #fff2cc, #f5d27a 60%, #d9a43a); }
.og-arena.tap .og-target { background: radial-gradient(circle at 38% 32%, #ff9a8f, var(--red) 55%, #a8302a); color: #fff; box-shadow: 0 7px 0 #8a221c, inset 0 -6px 0 rgba(0, 0, 0, .15); }
.og-target.og-bump { animation: og-bump .12s ease-out; }
@keyframes og-bump { 0% { transform: scale(.94) translateY(4px); } 100% { transform: none; } }

/* ---------- 窄屏 / 矮屏 ---------- */
@media (max-width: 360px) {
  .og-wires { height: 168px; }
  .og-clock-v { font-size: 58px; }
  .og-arena { width: 196px; height: 196px; }
}

/* ---------- 减少动态效果 ---------- */
@media (prefers-reduced-motion: reduce) {
  .og-art.lg, .og-shake, .og-dcell.lose .og-die, .og-dcell.rolling .og-die, .og-land, .og-range b.hot, .og-fighter.lose,
  .og-clock.hide .og-clock-v, .og-only, .og-pointer.og-bob, .og-wire.cut::before, .og-wheel.og-windup,
  .og-panels.og-mine .og-panel, .og-ftok.q, .og-wait-big .og-dots, .og-pad2.wait b, .og-target.og-bump { animation: none; }
  .og-turn, .og-turn.me, .og-banner, .og-next, .og-forced, .og-rank li, .og-pk, .og-skiprow, .og-chip.new, .og-mini, .og-card.flip { animation: og-fadein .2s both; }
  .og-flash { animation: og-fadeout .8s ease-out forwards; transform: none; }
  .og-boom { animation: og-fadeout 1.3s ease-in forwards; }
  .og-wire path { transition: none; }
}

/* 命运转盘：已经安全的人 */
.og-safe { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; font-size: 13.5px; color: #6b5440; }
.og-safe-h { font-weight: 800; }
.og-safe-p { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }

/* 5 人及以上：倒数第二喝 1 口 */
.og-rank li.worst2 { background: #fdebd0; box-shadow: inset 0 0 0 2px #f2b53a; }

/* 猜拳大会 */
.og-rps-stage { min-height: 96px; display: flex; align-items: center; justify-content: center; margin: 4px 0 10px; }
.og-rps-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.og-rps-b { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 4px 10px; border-radius: 18px; background: #fffaf0;
  border: 3px solid #dcc8a2; box-shadow: 0 4px 0 rgba(42, 26, 15, .25); color: #2a1a0f; }
.og-rps-b b { font-size: 46px; line-height: 1.1; }
.og-rps-b span { font-size: 15px; font-weight: 800; }
.og-rps-b:not(:disabled):active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(42, 26, 15, .25); }
.og-rps-hands { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.og-rps-h { width: 76px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px; border-radius: 16px; background: #fffaf0;
  border: 2px solid #dcc8a2; font-size: 12.5px; font-weight: 700; color: #2a1a0f; }
.og-rps-h b { font-size: 34px; line-height: 1; }
.og-rps-h span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.og-rps-h.safe { border-color: #55c271; background: #e4f6e8; }
.og-rps-h.lose { border-color: #e5534b; background: #fbd9d4; }
.og-rps-hands.pop .og-rps-h { animation: rpspop .45s cubic-bezier(.2, .9, .3, 1.4) backwards; }
.og-rps-hands.pop .og-rps-h:nth-child(2) { animation-delay: .05s; }
.og-rps-hands.pop .og-rps-h:nth-child(3) { animation-delay: .1s; }
.og-rps-hands.pop .og-rps-h:nth-child(4) { animation-delay: .15s; }
@keyframes rpspop { from { transform: scale(.4); opacity: 0; } }

/* ---------- 🤫 大话骰 ---------- */
.og-lr-bid { min-height: 62px; display: flex; align-items: center; justify-content: center; }
.og-lr-now {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 7px; border-radius: 18px; background: var(--cream2); font-size: 16px;
}
.og-lr-now > b { font: 800 36px/1 var(--body); font-variant-numeric: tabular-nums; }
.og-lr-now .w { color: var(--ink2); font-weight: 700; white-space: nowrap; }
.og-lr-now.empty { text-align: left; }
.og-lr-now.empty > span { display: flex; flex-direction: column; gap: 2px; font-weight: 800; }
.og-lr-now.empty small { font-weight: 500; color: var(--ink2); font-size: 12.5px; }
.og-lr-d { display: inline-block; width: 46px; height: 46px; flex: none; }
.og-lr-d svg { width: 100%; height: 100%; display: block; }
.og-lr-d.lg { width: 44px; height: 44px; }
.og-lr-lab { font-size: 13px; color: var(--ink2); font-weight: 700; margin-bottom: 6px; }
.og-lr-row { display: flex; justify-content: center; gap: 7px; }
.og-lr-d.wild { filter: drop-shadow(0 0 4px rgba(242, 181, 58, .95)); }
.og-lr-shake .og-lr-d { animation: og-lr-roll .6s cubic-bezier(.3, 1.4, .5, 1) both; }
.og-lr-shake .og-lr-d:nth-child(2) { animation-delay: .06s; }
.og-lr-shake .og-lr-d:nth-child(3) { animation-delay: .12s; }
.og-lr-shake .og-lr-d:nth-child(4) { animation-delay: .18s; }
.og-lr-shake .og-lr-d:nth-child(5) { animation-delay: .24s; }
@keyframes og-lr-roll { from { transform: translateY(-18px) rotate(-40deg); opacity: 0; } }
.og-lr-pick { display: flex; flex-direction: column; gap: 10px; }
.og-lr-q { display: grid; grid-template-columns: 58px 1fr 58px; align-items: center; gap: 8px; }
.og-lr-q > span { font-size: 18px; font-weight: 800; }
.og-lr-q > span b { font-size: 34px; font-variant-numeric: tabular-nums; }
.og-lr-q .og-key { min-height: 48px; }
.og-lr-q .og-key:disabled { opacity: .3; }
.og-lr-faces { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.og-lr-f { aspect-ratio: 1; padding: 5px; border-radius: 14px; background: var(--cream2); transition: transform .08s, opacity .15s; }
.og-lr-f svg { width: 100%; height: 100%; display: block; }
.og-lr-f.on { background: #ffe7ad; box-shadow: inset 0 0 0 3px var(--amber); transform: translateY(-2px); }
.og-lr-f:disabled { opacity: .28; }
.og-lr-btns { display: flex; gap: 8px; }
.og-lr-btns .btn { flex: 1; min-height: 54px; font-size: 19px; }
.og-lr-btns .btn.red { flex: 0 0 34%; }
.og-lr-hist .og-chip b { font: 800 15px/1 var(--body); }
.og-lr-reveal { display: flex; flex-direction: column; gap: 5px; }
.og-lr-pr { display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 12px; background: var(--cream2); }
.og-lr-pr.hide { visibility: hidden; }
.og-lr-pr.new { animation: og-pop .3s ease-out both; }
.og-lr-pr .nm { width: 3.8em; flex: none; text-align: left; font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.og-lr-row.sm { gap: 3px; flex: 1; justify-content: flex-start; }
.og-lr-row.sm .og-lr-d { width: 28px; height: 28px; }
.og-lr-d.dim { opacity: .28; }
.og-lr-d.hit { filter: drop-shadow(0 0 3px rgba(242, 181, 58, .95)); }
.og-lr-pr .k { min-width: 1.2em; font-size: 19px; text-align: right; }
.og-lr-tally { margin-top: 6px; font-size: 16px; font-weight: 700; }
.og-lr-tally b { font-size: 24px; }
.og-lr-tally.held { color: #1d6a35; }
.og-lr-tally.bust { color: var(--red); }

/* ---------- ⚖️ 少数派 ---------- */
.og-mn-card { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 16px; background: var(--cream2); text-align: left; }
.og-mn-card > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.og-mn-card small { font-size: 12.5px; color: var(--ink2); font-weight: 700; }
.og-mn-card b { font-size: 21px; line-height: 1.3; }
.og-mn-stage { display: flex; flex-direction: column; gap: 10px; }
.og-mn-opts { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
.og-mn-opt {
  min-height: 112px; padding: 12px 8px; border-radius: 20px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-size: 20px; font-weight: 800; line-height: 1.3; color: #fff; word-break: break-word;
  box-shadow: 0 5px 0 rgba(0, 0, 0, .25); transition: transform .1s, opacity .2s;
}
.og-mn-opt.a { background: var(--teal); }
.og-mn-opt.b { background: var(--pink); }
.og-mn-opt:active { transform: translateY(3px); box-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.og-mn-opt small { font-size: 12px; font-weight: 700; opacity: .92; }
.og-mn-opt:disabled { pointer-events: none; }
.og-mn-opts.picked .og-mn-opt:not(.on) { opacity: .32; }
.og-mn-opt.on { box-shadow: 0 0 0 4px var(--amber), 0 5px 0 rgba(0, 0, 0, .25); }
.og-mn-vs { font: italic 900 16px var(--body); color: var(--ink2); }
.og-mn-reveal { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.og-mn-col { border-radius: 16px; padding: 8px; background: var(--cream2); box-shadow: inset 0 0 0 2px var(--cream3); animation: og-pop .3s ease-out both; }
.og-mn-col.b { animation-delay: .12s; }
.og-mn-col.lose { background: #fbd9d4; box-shadow: inset 0 0 0 3px var(--red); }
.og-mn-lab { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-weight: 800; font-size: 15px; margin-bottom: 6px; text-align: left; }
.og-mn-lab b { font-size: 26px; font-variant-numeric: tabular-nums; }
.og-mn-col.a .og-mn-lab span { color: #0f7f74; }
.og-mn-col.b .og-mn-lab span { color: #a8336f; }
.og-mn-toks { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; min-height: 48px; }
.og-mn-toks > span { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 50px; }
.og-mn-toks small { font-size: 11px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.og-mn-toks em { color: var(--ink2); font-size: 13px; font-style: normal; align-self: center; }
/* 2 人局读心的亮牌:上面一行是出题方选的边,下面一行是猜方猜的边,喝的那行标红 */
.og-mn-read { display: flex; flex-direction: column; gap: 8px; }
.og-mn-rd {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 8px; border-radius: 16px; text-align: left;
  background: var(--cream2); box-shadow: inset 0 0 0 2px var(--cream3);
  animation: og-pop .3s ease-out both;
}
.og-mn-rd + .og-mn-rd { animation-delay: .14s; }
.og-mn-rd > span { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.og-mn-rd b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.og-mn-rd small { font-size: 12px; font-weight: 700; color: var(--ink2); }
.og-mn-rd em {
  flex: none; max-width: 48%; padding: 4px 11px; border-radius: 999px; background: var(--cream);
  font-style: normal; font-weight: 800; font-size: 15px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.og-mn-rd.a em { color: #0f7f74; }
.og-mn-rd.b em { color: #a8336f; }
.og-mn-rd.lose { background: #fbd9d4; box-shadow: inset 0 0 0 3px var(--red); }

/* ---------- 🎨 颜色陷阱 ---------- */
.og-cl-card {
  min-height: 172px; border-radius: 22px; padding: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: #241710; color: var(--cream); box-shadow: inset 0 0 0 3px #3a281c;
}
.og-cl-card.idle, .og-cl-card.watch { background: var(--cream2); color: var(--ink); box-shadow: none; }
.og-cl-w { font: 900 78px/1 var(--body); min-height: 84px; display: flex; align-items: center; justify-content: center; letter-spacing: 4px; }
.og-cl-card.sent .og-cl-w { font-size: 54px; color: var(--amber2); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.og-cl-sub { font-size: 14px; opacity: .85; }
.og-cl-w.og-cl-in { animation: og-cl-in .16s ease-out; }
@keyframes og-cl-in { from { transform: scale(.55); opacity: 0; } }
.og-cl-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.og-cl-b {
  min-height: 66px; border-radius: 18px; background: var(--cream2); color: var(--ink);
  font: 900 30px var(--body); box-shadow: 0 4px 0 var(--cream3); touch-action: manipulation;
}
.og-cl-b:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--cream3); }
.og-cl-b.ok { animation: og-cl-ok .3s; }
.og-cl-b.no { animation: og-cl-no .3s; }
@keyframes og-cl-ok { 40% { background: #bfe8cb; } }
@keyframes og-cl-no { 40% { background: #f6c0b8; } }

/* ---------- 🫧 眼力估数 ---------- */
.og-ey-field {
  position: relative; border-radius: 20px; background: var(--cream2); min-height: 150px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.og-ey-field.count, .og-ey-field.show, .og-ey-field.done { background: #241710; aspect-ratio: 1000 / 720; min-height: 0; }
.og-ey-field.input, .og-ey-field.sent { background: #241710; min-height: 76px; }
.og-ey-svg { display: block; width: 100%; height: 100%; }
.og-ey-cd { font: 900 64px/1 var(--body); color: var(--amber2); }
.og-ey-cd.q { font-size: 44px; color: var(--cream3); }
.og-ey-bar { position: absolute; left: 0; bottom: 0; width: 100%; height: 6px; background: var(--amber); transform-origin: left; animation: og-ey-bar linear forwards; }
@keyframes og-ey-bar { to { transform: scaleX(0); } }
.og-ey-ans {
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%);
  padding: 4px 14px; border-radius: 999px; background: rgba(0, 0, 0, .66); color: #fff; font-size: 15px; white-space: nowrap;
}
.og-ey-ans b { font-size: 22px; color: var(--amber2); }
.og-ey-in span b { font-weight: 800; }

@media (prefers-reduced-motion: reduce) {
  .og-lr-shake .og-lr-d, .og-lr-pr.new, .og-mn-col, .og-mn-rd, .og-cl-w.og-cl-in, .og-cl-b.ok, .og-cl-b.no { animation: none; }
}

/* ---------- 👉 谁最可能 ---------- */
.og-wh-card { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 16px; background: var(--cream2); text-align: left; }
.og-wh-card > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.og-wh-card small { font-size: 12.5px; color: var(--ink2); font-weight: 700; }
.og-wh-card b { font-size: 20px; line-height: 1.35; }
.og-wh-card.spicy { background: #fde3dc; box-shadow: inset 0 0 0 2px var(--red); }
.og-wh-stage { display: flex; flex-direction: column; gap: 10px; }
.og-wh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.og-wh-p {
  display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0;
  padding: 10px 4px 8px; border-radius: 16px; background: var(--cream2); box-shadow: 0 3px 0 var(--cream3);
  transition: transform .08s, opacity .2s;
}
.og-wh-p span { font-size: 14px; font-weight: 800; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.og-wh-p:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--cream3); }
.og-wh-p:disabled { pointer-events: none; }
.og-wh-grid.picked .og-wh-p:not(.on) { opacity: .32; }
.og-wh-p.on { background: #ffe7ad; box-shadow: inset 0 0 0 3px var(--amber); }
.og-wh-tally { display: flex; flex-direction: column; gap: 6px; }
.og-wh-row {
  display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 14px; background: var(--cream2); text-align: left;
  animation: og-pop .35s ease-out both; animation-delay: calc(var(--i) * .22s);
}
.og-wh-row.worst { background: #fbd9d4; box-shadow: inset 0 0 0 2px var(--red); }
.og-wh-row.worst2 { background: #fde6cf; box-shadow: inset 0 0 0 2px #e8964a; }
.og-wh-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.og-wh-mid .nm { font-weight: 800; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.og-wh-mid .og-badge { font-style: normal; }
.og-wh-bar { height: 8px; border-radius: 4px; background: rgba(42, 26, 15, .1); overflow: hidden; }
.og-wh-bar i { display: block; height: 100%; border-radius: 4px; background: var(--violet); animation: og-wh-grow .6s ease-out both; animation-delay: calc(var(--i) * .22s + .15s); }
@keyframes og-wh-grow { from { width: 0; } }
.og-wh-by { display: flex; flex-wrap: wrap; gap: 2px; min-height: 18px; }
.og-wh-row .k { flex: none; font-size: 26px; font-variant-numeric: tabular-nums; }
.og-wh-row .k small { font-size: 12px; }
@media (prefers-reduced-motion: reduce) { .og-wh-row, .og-wh-bar i { animation: none; } }

/* ---------- 🎈 吹气球 ---------- */
.og-bl-stage { position: relative; height: 230px; display: flex; align-items: flex-end; justify-content: center; overflow: visible; }
.og-bl-ball {
  --s: .45;
  width: 168px; height: 226px; transform-origin: 50% 82%;
  transform: scale(var(--s)); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1);
}
.og-bl-wob { position: relative; width: 100%; height: 100%; transform-origin: 50% 85%; animation: og-bl-wob 2.6s ease-in-out infinite; }
.og-bl-ball.tense .og-bl-wob { animation-duration: 1.1s; }
.og-bl-ball.crit .og-bl-wob { animation: og-bl-wob-hard .42s ease-in-out infinite; }
@keyframes og-bl-wob { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
@keyframes og-bl-wob-hard { 0%, 100% { transform: rotate(-3deg) scale(1); } 50% { transform: rotate(3deg) scale(1.02, .985); } }
.og-bl-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.og-bl-svg.og-bl-puff { animation: og-bl-puff .28s ease-out; }
@keyframes og-bl-puff { 40% { transform: scale(1.06, .96); } }
.og-bl-st { position: absolute; width: 16px; height: 4px; border-radius: 2px; background: var(--amber); opacity: 0; transition: opacity .2s; }
.og-bl-st.s1 { left: -14px; top: 30%; transform: rotate(-20deg); }
.og-bl-st.s2 { right: -14px; top: 30%; transform: rotate(20deg); }
.og-bl-st.s3 { left: -10px; top: 52%; transform: rotate(8deg); }
.og-bl-st.s4 { right: -10px; top: 52%; transform: rotate(-8deg); }
.og-bl-ball.crit .og-bl-st { opacity: 1; animation: og-bl-flick .35s ease-in-out infinite alternate; }
@keyframes og-bl-flick { to { opacity: .25; } }
.og-bl-tip {
  position: absolute; left: 50%; top: 6px; transform: translateX(-50%); max-width: 92%;
  padding: 4px 12px; border-radius: 999px; background: rgba(42, 26, 15, .82); color: var(--cream);
  font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.og-bl-tip.on { opacity: 1; animation: og-pop .3s ease-out; }
.og-bl-stage.popped .og-bl-ball { transform: none; }
.og-bl-burst { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.og-bl-burst b { font-size: 92px; animation: og-boom 1.1s cubic-bezier(.2, 1.4, .4, 1) both; font-weight: 400; }
.og-bl-shred {
  position: absolute; left: 50%; top: 50%; width: 18px; height: 10px; margin: -5px 0 0 -9px; border-radius: 3px 8px 3px 8px;
  background: #d8302f; transform: rotate(var(--a)) translateY(0);
  animation: og-bl-shred .9s cubic-bezier(.2, .8, .3, 1) var(--d) forwards;
}
@keyframes og-bl-shred { to { transform: rotate(var(--a)) translateY(-104px) rotate(160deg); opacity: .15; } }
.og-bl-cnt { font-size: 15px; color: var(--ink2); }
.og-bl-cnt b { font-size: 24px; color: var(--ink); font-variant-numeric: tabular-nums; }
.og-bl-ctl { display: flex; flex-direction: column; gap: 10px; }
.og-bl-pump {
  min-height: 84px; border-radius: 24px; background: var(--red); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  box-shadow: 0 6px 0 #9a1222; touch-action: manipulation; transition: transform .06s;
}
.og-bl-pump b { font: 900 30px/1.1 var(--body); letter-spacing: 6px; }
.og-bl-pump small { font-size: 13px; opacity: .9; }
.og-bl-pump:active, .og-bl-pump.og-bl-press { transform: translateY(4px) scale(.98, .94); box-shadow: 0 2px 0 #9a1222; }
.og-bl-pump:disabled { opacity: .4; pointer-events: none; }
.og-bl-row { display: flex; align-items: center; gap: 10px; }
.og-bl-dots { display: inline-flex; gap: 6px; flex: none; }
.og-bl-dots i { width: 14px; height: 14px; border-radius: 50%; background: var(--cream2); box-shadow: inset 0 0 0 2px var(--cream3); }
.og-bl-dots i.on { background: var(--red); box-shadow: none; animation: og-pop .25s ease-out both; }
/* 2 人局:前两下是「必须打」的,还没打到就描一圈红边 */
.og-bl-dots i.need:not(.on) { box-shadow: inset 0 0 0 2px var(--red); opacity: .55; }
.og-bl-pass { flex: 1; min-height: 50px; font-size: 17px; }
.og-bl-hist .og-chip b { font: 800 15px/1 var(--body); }

/* ---------- 🧮 平均数陷阱 ---------- */
.og-av-top { display: flex; flex-direction: column; gap: 2px; }
.og-av-top b { font-size: 19px; }
.og-av-top small { font-size: 13.5px; color: var(--ink2); }
.og-av-in span b { font-weight: 800; }
.og-av-line { --rows: 1; position: relative; padding: 0 14px; margin: 4px 0 6px; }
.og-av-toks { position: relative; height: calc(var(--rows) * 40px + 4px); }
.og-av-tok {
  position: absolute; bottom: calc(var(--r) * 40px); transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0; line-height: 1;
  animation: og-pop .35s ease-out both; animation-delay: calc(var(--r) * .08s);
}
.og-av-tok small { font-size: 11px; font-weight: 800; margin-top: 1px; font-variant-numeric: tabular-nums; }
.og-av-tok.lose small { color: var(--red); }
.og-av-tok.best small { color: #1d6a35; }
.og-av-track { position: relative; height: 58px; border-top: 3px solid var(--ink); }
.og-av-track > i { position: absolute; top: 3px; transform: translateX(-50%); font-style: normal; font-size: 11px; color: var(--ink2); }
.og-av-mk { position: absolute; top: calc(-1 * (var(--rows) * 40px + 6px)); bottom: 0; width: 0; transform: translateX(-50%); }
.og-av-mk::before { content: ""; position: absolute; top: 0; bottom: 18px; left: -1px; border-left: 2px dashed var(--ink2); }
.og-av-mk.tgt::before { bottom: 38px; border-left: 3px solid var(--amber); left: -1.5px; }
.og-av-mk em {
  position: absolute; bottom: 0; left: 0; transform: translateX(-50%); white-space: nowrap;
  font-style: normal; font-size: 11.5px; font-weight: 800; padding: 1px 6px; border-radius: 999px; background: var(--cream2); color: var(--ink2);
}
.og-av-mk.tgt em { bottom: 20px; background: var(--amber); color: #2b1700; }

@media (prefers-reduced-motion: reduce) {
  .og-bl-wob, .og-bl-ball.crit .og-bl-wob, .og-bl-svg.og-bl-puff, .og-bl-st, .og-bl-burst b, .og-bl-shred, .og-bl-dots i.on, .og-av-tok { animation: none; }
  .og-bl-ball { transition: none; }
}

/* ---------- 🤫 大话骰:三同加成 ---------- */
.og-lr-tip { margin-top: 6px; font-size: 13px; font-weight: 800; color: #b45a12; }
.og-lr-plus { font-style: normal; font-size: 11px; font-weight: 900; color: #fff; background: var(--amber); border-radius: 999px; padding: 1px 5px; margin-right: 3px; vertical-align: 2px; }

/* ---------- 🧧 抢红包 ---------- */
.og-hb-stage { min-height: 150px; display: flex; flex-direction: column; justify-content: center; }
.og-hb-pile { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.og-hb-pile > b { font-size: 18px; }
.og-hb-pile small { font-size: 12.5px; color: var(--ink2); }
.og-hb-pile.shake .og-art, .og-hb-pile.shake .og-fb { animation: og-hb-jiggle .25s linear infinite; }
@keyframes og-hb-jiggle { 25% { transform: rotate(-4deg) translateY(-2px); } 75% { transform: rotate(4deg) translateY(1px); } }
.og-hb-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.og-hb-env {
  position: relative; aspect-ratio: 3 / 4; border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: linear-gradient(180deg, #e8473b, #c22b23); color: #ffd98a;
  box-shadow: inset 0 0 0 2px #f2b53a66, 0 3px 0 #8c1a14;
  animation: og-hb-drop .45s cubic-bezier(.3, 1.4, .5, 1) both; animation-delay: var(--d, 0ms);
  transition: transform .08s;
}
.og-hb-env::before { content: ""; position: absolute; left: 50%; top: 30%; width: 34%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: #f2b53a; box-shadow: inset 0 0 0 2px #c98a14; }
.og-hb-env .og-hb-e { position: relative; font-size: 0; }
.og-hb-env:active { transform: scale(.94); }
.og-hb-env.tapped { transform: scale(.92); filter: brightness(1.15); }
.og-hb-env.took { background: var(--cream2); color: var(--ink); box-shadow: inset 0 0 0 2px var(--cream3); animation: none; }
.og-hb-env.took::before { display: none; }
.og-hb-env.took b { font-size: 17px; font-weight: 900; font-variant-numeric: tabular-nums; }
.og-hb-env.took b small { font-size: 10px; margin-left: 1px; }
.og-hb-env.mine { background: #fff1c9; box-shadow: inset 0 0 0 3px var(--amber); }
.og-hb-env.bomb { background: #fbd9d4; box-shadow: inset 0 0 0 3px var(--red); }
.og-hb-env.og-hb-flip { animation: og-hb-flip .35s ease-out; }
/* 超时自动派发的红包:角标标一下,免得以为是自己抢到的 */
.og-hb-env.auto { box-shadow: inset 0 0 0 2px var(--cream3), 0 0 0 2px #bfa88c66; }
.og-hb-env .og-hb-auto {
  position: absolute; left: 50%; bottom: 3px; transform: translateX(-50%);
  padding: 0 4px; border-radius: 999px; background: rgba(42, 26, 15, .14);
  font-size: 8.5px; font-style: normal; font-weight: 800; line-height: 1.6; color: var(--ink2); white-space: nowrap;
}
@keyframes og-hb-drop { from { transform: translateY(-60px) rotate(-8deg); opacity: 0; } }
@keyframes og-hb-flip { from { transform: rotateY(90deg); } }
.og-hb-stage.done .og-hb-grid { opacity: .85; }
.og-hb-mine { min-height: 0; }
.og-hb-tot { font-size: 15px; font-weight: 700; color: var(--ink2); }
.og-hb-tot b { font-size: 24px; color: var(--ink); font-variant-numeric: tabular-nums; }
.og-hb-tot.bomb { color: var(--red); }
/* 开抢倒计时:到点服务器把没人抢的红包自动派发掉(HB_TIMEOUT),最后 3 秒变红跳一下 */
.og-hb-left {
  align-self: center; padding: 3px 12px; border-radius: 999px;
  background: var(--cream2); box-shadow: inset 0 0 0 2px var(--cream3);
  font-size: 12.5px; font-weight: 700; color: var(--ink2); white-space: nowrap;
}
.og-hb-left[hidden] { display: none; }
.og-hb-left b { font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }
.og-hb-left.hot { background: #ffdcd9; box-shadow: inset 0 0 0 2px #f0a9a4; color: #8e2f29; animation: og-hb-left-beat .6s ease-in-out infinite; }
.og-hb-left.hot b { color: var(--red); }
@keyframes og-hb-left-beat { 50% { transform: scale(1.05); } }

/* ---------- 🥔 烫手山芋 ---------- */
.og-pt-stage { display: flex; flex-direction: column; align-items: center; gap: 8px; --sp: .6s; --heat: 0; }
.og-pt-box { position: relative; width: 150px; height: 150px; }
/* 引线越烧越久:后面的光晕越来越红、越来越大(不显示还剩多久) */
.og-pt-glow {
  position: absolute; inset: 8px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 170, 60, calc(.18 + var(--heat) * .4)) 0%, rgba(229, 83, 75, calc(var(--heat) * .35)) 45%, transparent 70%);
  transform: scale(calc(.9 + var(--heat) * .35)); transition: transform .3s;
}
.og-pt-box.hot .og-pt-glow { animation: og-pt-pulse calc(var(--sp) * 2) ease-in-out infinite; }
.og-pt-box.hotter .og-pt-glow { background: radial-gradient(circle, rgba(255, 120, 60, .6) 0%, rgba(229, 83, 75, .45) 45%, transparent 70%); }
@keyframes og-pt-pulse { 50% { opacity: .55; } }
.og-pt-pot { position: absolute; inset: 18px; display: flex; align-items: center; justify-content: center; font-size: 72px; animation: og-pt-jit var(--sp) linear infinite; }
.og-pt-pot .og-art.pt { width: 100%; height: 100%; }
/* 引线头上的火花:几颗小火星往外迸,越烧越大 */
.og-pt-spark { position: absolute; top: -2px; right: 30px; width: 26px; height: 26px; z-index: 1; transform: scale(calc(.8 + var(--heat) * .9)); }
.og-pt-spark b { position: absolute; inset: 7px; border-radius: 50%; background: radial-gradient(circle, #fffbe6 0%, #ffd34d 45%, rgba(255, 120, 40, 0) 75%); animation: og-blink .25s steps(2) infinite; }
.og-pt-spark i { position: absolute; left: 11px; top: 11px; width: 4px; height: 4px; border-radius: 50%; background: #ffcd5c; animation: og-pt-fly .5s ease-out infinite; }
.og-pt-spark i:nth-child(1) { --dx: -12px; --dy: -14px; }
.og-pt-spark i:nth-child(2) { --dx: 13px; --dy: -11px; animation-delay: .12s; }
.og-pt-spark i:nth-child(3) { --dx: -9px; --dy: 10px; animation-delay: .25s; background: #ff8a2a; }
.og-pt-spark i:nth-child(4) { --dx: 12px; --dy: 9px; animation-delay: .37s; background: #ff8a2a; }
@keyframes og-pt-fly { from { transform: translate(0, 0); opacity: 1; } to { transform: translate(var(--dx), var(--dy)); opacity: 0; } }
.og-pt-burn { font-size: 13px; color: var(--ink2); font-weight: 700; }
.og-pt-burn b { font-size: 16px; color: var(--red); font-variant-numeric: tabular-nums; }
/* 2 人局:刚接到手的 POTATO_LOCK 毫秒里甩不出去 —— 倒计时 +「烫过头」的进度(--p 由 ogames-ui.js 写) */
.og-pt-lock {
  --p: 0;
  align-self: center; padding: 4px 14px; border-radius: 999px;
  background: linear-gradient(to right, rgba(229, 83, 75, .3) 0 calc(var(--p) * 100%), #ffdcd9 calc(var(--p) * 100%) 100%);
  box-shadow: inset 0 0 0 2px #f0a9a4; color: #8e2f29;
  font-size: 12.5px; font-weight: 700; white-space: nowrap;
  animation: og-pop .25s ease-out both;
}
.og-pt-lock[hidden] { display: none; }
.og-pt-lock b { font-size: 15px; color: var(--red); font-variant-numeric: tabular-nums; }
.og-pt-pot.og-pt-toss { animation: og-pt-toss .45s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes og-pt-jit { 25% { transform: translate(-2px, 1px) rotate(-3deg); } 75% { transform: translate(2px, -1px) rotate(3deg); } }
@keyframes og-pt-toss { 0% { transform: translateY(0) rotate(0); } 45% { transform: translateY(-46px) rotate(200deg) scale(.8); } 100% { transform: translateY(0) rotate(360deg); } }
.og-pt-box.boom .og-pt-pot { animation: none; }
.og-pt-box.boom .og-pt-spark, .og-pt-box.boom .og-pt-glow { display: none; }
.og-pt-bang { font-size: 84px; animation: og-pop .3s ease-out both; }
.og-pt-who { display: flex; align-items: center; gap: 10px; text-align: left; min-height: 44px; }
.og-pt-who > span { display: flex; flex-direction: column; font-size: 18px; line-height: 1.25; }
.og-pt-who small { font-size: 12.5px; color: var(--ink2); }
.og-pt-who em { font-style: normal; white-space: nowrap; }
.og-pt-chain { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; min-height: 0; }
.og-pt-chain .og-chip { gap: 3px; padding: 3px 7px 3px 3px; }
.og-pt-chain .og-chip i { color: var(--ink2); font-size: 13px; }
.og-pt-to { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
/* 只剩一个人可传（一对一，或者别人都掉线了）：按钮别按网格缩在左边，居中放大一点 */
.og-pt-to.one { grid-template-columns: minmax(140px, 240px); justify-content: center; }
.og-pt-to.one .og-pt-t { padding: 13px 10px 11px; }
.og-pt-t {
  display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; padding: 9px 4px 7px;
  border-radius: 16px; background: #ffe7ad; box-shadow: 0 3px 0 #d9a648; transition: transform .08s, opacity .2s;
}
.og-pt-t span { font-size: 14px; font-weight: 800; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.og-pt-t small { font-size: 10.5px; color: var(--ink2); }
.og-pt-t:active { transform: translateY(2px); box-shadow: 0 1px 0 #d9a648; }
.og-pt-t:disabled { opacity: .35; pointer-events: none; }
.og-pt-t.back { background: var(--cream2); box-shadow: none; }
.og-turn.me.hot { background: var(--red); color: #fff; box-shadow: 0 3px 0 #9c2b25; }
.og-is-potato .og-pdot { opacity: 1; }
.og-pdot.hot { box-shadow: 0 0 0 2px var(--cream), 0 0 0 4px var(--red); transform: scale(1.12); }
.og-is-potato .og-pdot.hot::after { display: none; }


/* ---------- 🐎 赛马下注 ---------- */
.og-rc-stage { display: flex; flex-direction: column; gap: 9px; }
.og-rc-gate { display: flex; align-items: center; justify-content: center; min-height: 58px; }
.og-art.rc { width: 88px; height: 58px; animation: og-rc-bob 1.9s ease-in-out infinite; }
.og-rc-gate .og-fb { font-size: 40px; }
@keyframes og-rc-bob { 50% { transform: translateY(-5px) rotate(-2.5deg); } }

/* 下注:四匹马一列,点一匹选中 */
.og-rc-pick { display: flex; flex-direction: column; gap: 6px; }
.og-rc-h {
  position: relative; display: flex; align-items: center; gap: 9px;
  min-height: 44px; padding: 4px 36px 4px 8px; border-radius: 14px;
  background: #fff8ea; box-shadow: inset 0 0 0 2px var(--cream3), 0 3px 0 var(--cream3);
  color: var(--ink); text-align: left;
  transition: transform .08s, box-shadow .15s, opacity .2s;
  /* 入场动画只动 transform：og-in 里的 opacity 会盖掉下面 .dim 的半透明 */
  animation: og-rc-in .3s ease-out both;
}
@keyframes og-rc-in { from { transform: translateY(8px); } }
.og-rc-h:nth-child(2) { animation-delay: .05s; }
.og-rc-h:nth-child(3) { animation-delay: .1s; }
.og-rc-h:nth-child(4) { animation-delay: .15s; }
.og-rc-sw { width: 15px; height: 25px; flex: none; border-radius: 5px; background: var(--hc); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .2); }
.og-rc-em { font-size: 23px; line-height: 1; flex: none; transform: scaleX(-1); } /* 🐎 本来朝左,翻过来朝终点 */
.og-rc-h b { flex: 1; min-width: 0; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.og-rc-h small { flex: none; font-size: 12.5px; color: var(--ink2); }
.og-rc-ck {
  position: absolute; right: 9px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
  background: var(--green); color: #052611; font: 900 13px/22px var(--body); font-style: normal; text-align: center;
  opacity: 0; transform: scale(.5); transition: opacity .18s, transform .18s;
}
.og-rc-h.on, .og-rc-h.mine { background: #fff; box-shadow: 0 0 0 3px var(--hc), 0 3px 0 var(--cream3); }
.og-rc-h.on .og-rc-ck, .og-rc-h.mine .og-rc-ck { opacity: 1; transform: none; }
.og-rc-h.dim { opacity: .4; }
.og-rc-h:not(:disabled):active { transform: translateY(2px); }
.og-rc-h:disabled { pointer-events: none; }

/* 押几口 */
.og-rc-bets { display: flex; gap: 7px; margin-bottom: 9px; }
.og-rc-b {
  flex: 1; min-height: 44px; border-radius: 13px;
  background: var(--cream2); box-shadow: inset 0 0 0 2px var(--cream3);
  color: var(--ink); font: 800 15px/1 var(--body); transition: transform .08s;
}
.og-rc-b.on { background: var(--amber); color: #2b1700; box-shadow: 0 3px 0 #a8741c; }
.og-rc-b:active { transform: translateY(2px); }

/* 下注倒计时 */
.og-rc-left {
  align-self: center; padding: 3px 12px; border-radius: 999px;
  background: var(--cream2); box-shadow: inset 0 0 0 2px var(--cream3);
  font-size: 12.5px; font-weight: 700; color: var(--ink2); white-space: nowrap;
}
.og-rc-left[hidden] { display: none; }
.og-rc-left b { font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }
.og-rc-left.hot { background: #ffdcd9; box-shadow: inset 0 0 0 2px #f0a9a4; color: #8e2f29; animation: og-hb-left-beat .6s ease-in-out infinite; }
.og-rc-left.hot b { color: var(--red); }

/* 跑道:四条道,马从左跑到右。进度是服务器下发的(gs.prog),界面只在两格之间插值,所以各机一模一样 */
.og-rc-track {
  display: flex; flex-direction: column; gap: 5px;
  padding: 9px 8px; border-radius: 18px;
  background: linear-gradient(#7a512e, #4b2f19);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .1), 0 4px 0 #2b1a0e;
}
.og-rc-lane {
  position: relative; display: flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 34px 0 5px; border-radius: 11px;
  background: rgba(0, 0, 0, .18); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
  transition: box-shadow .25s, background .25s;
}
.og-rc-lane.mine { background: rgba(242, 181, 58, .16); box-shadow: inset 0 0 0 2px var(--amber); }
.og-rc-lane.win { background: rgba(242, 181, 58, .3); box-shadow: inset 0 0 0 2px var(--amber2); }
.og-rc-tag { display: flex; align-items: center; gap: 5px; width: 60px; flex: none; }
.og-rc-tag .og-rc-sw { width: 9px; height: 19px; border-radius: 3px; }
.og-rc-tag em { font: 800 12.5px/1 var(--body); font-style: normal; color: var(--cream2); white-space: nowrap; }
.og-rc-lane.win .og-rc-tag em { color: var(--amber2); }
/* 跑道本体:右边贴一条格子旗 */
.og-rc-path { position: relative; flex: 1; min-width: 0; height: 100%; }
.og-rc-path::after {
  content: ""; position: absolute; right: -9px; top: 5px; bottom: 5px; width: 6px; border-radius: 2px;
  background: repeating-conic-gradient(#fdf6e6 0 25%, #3a2415 0 50%) 0 0 / 6px 6px;
}
/* 进度条本体:马身后那一条填充 */
.og-rc-fill {
  /* right 留半个马身:scaleX(1) 时填充正好停在马肚子底下 */
  position: absolute; left: 0; top: 7px; bottom: 7px; right: 15px; border-radius: 7px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .1), var(--hc));
  opacity: .75; transform: scaleX(0); transform-origin: left center; will-change: transform;
}
/* 封盘线:领头的马跑过这条线就不许再加注了 */
.og-rc-cut {
  position: absolute; top: 2px; bottom: 2px; width: 2px; margin-left: -1px;
  background: repeating-linear-gradient(180deg, rgba(255, 240, 210, .85) 0 3px, transparent 3px 6px);
}
.og-rc-run {
  position: absolute; left: 0; top: 50%; margin-top: -14px;
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 28px; border-radius: 999px;
  background: var(--hc); box-shadow: 0 2px 0 rgba(0, 0, 0, .35), inset 0 2px 0 rgba(255, 255, 255, .3);
  will-change: transform;
}
.og-rc-run b { font-size: 18px; line-height: 1; transform: scaleX(-1); }
.og-rc-lane.go .og-rc-run b { animation: og-rc-gallop .24s linear infinite; }
@keyframes og-rc-gallop { 50% { transform: scaleX(-1) translateY(-3px) rotate(-5deg); } }
.og-rc-dust { position: absolute; left: -9px; bottom: 2px; width: 11px; height: 8px; border-radius: 999px; background: rgba(255, 240, 210, .55); opacity: 0; }
.og-rc-lane.go .og-rc-dust { animation: og-rc-dust .42s linear infinite; }
@keyframes og-rc-dust { from { transform: translateX(0) scale(.5); opacity: .75; } to { transform: translateX(-15px) scale(1.3); opacity: 0; } }
/* 冲线名次 */
.og-rc-no {
  position: absolute; right: 2px; top: 50%; width: 17px; height: 17px; margin-top: -8.5px;
  border-radius: 50%; background: rgba(255, 255, 255, .16); color: var(--cream2);
  font: 800 11px/17px var(--body); font-style: normal; text-align: center;
  opacity: 0; transition: opacity .2s;
}
.og-rc-lane.in .og-rc-no { opacity: 1; }
.og-rc-lane.in .og-rc-no { animation: og-pop .3s ease-out both; }
.og-rc-lane.win .og-rc-no { background: none; font-size: 14px; }

/* 开跑:顶上一行倒计时 + 封盘状态 */
.og-rc-hd {
  display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
  padding: 5px 8px; border-radius: 13px; background: var(--cream2); box-shadow: inset 0 0 0 2px var(--cream3);
}
.og-rc-cd { font: 800 14px/1.4 var(--body); color: var(--ink); }
.og-rc-cdt { font-style: normal; }
.og-rc-cd b { font-size: 19px; color: var(--red); font-variant-numeric: tabular-nums; }
.og-rc-st {
  padding: 2px 9px; border-radius: 999px; background: #e8f6ea; color: #1d6b33;
  font: 800 12.5px/1.6 var(--body); white-space: nowrap;
}
.og-rc-st.lock { background: #ffdcd9; color: #8e2f29; animation: og-pop .3s ease-out both; }

/* 开跑:加注按钮(两行字:做什么 + 现在几口) */
.og-rc-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; line-height: 1.25; }
.og-rc-add b { font-size: 17px; }
.og-rc-add small { font-size: 12px; font-weight: 700; opacity: .85; }
.og-rc-add:disabled { opacity: .55; }
.og-rc-add.lock { background: var(--cream3); color: var(--ink2); box-shadow: none; }

/* 开跑:注码榜(谁押了几口是公开的,押的哪匹马不公开) */
.og-rc-pot { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; }
.og-rc-pc {
  display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px 2px 3px; border-radius: 999px;
  background: var(--cream2); box-shadow: inset 0 0 0 2px var(--cream3);
  font-size: 11.5px; font-weight: 700; color: var(--ink2);
}
.og-rc-pc b { font-size: 14px; color: var(--ink); font-variant-numeric: tabular-nums; }
.og-rc-pc.me { background: #fff; box-shadow: inset 0 0 0 2px var(--amber); }
.og-rc-pc.up { animation: og-rc-up .5s ease-out; }
@keyframes og-rc-up {
  0% { transform: scale(1); }
  35% { transform: scale(1.16); box-shadow: inset 0 0 0 2px var(--red); }
  100% { transform: scale(1); }
}

/* 结果:冲线顺序 */
.og-rc-order { display: flex; flex-direction: column; gap: 4px; margin-bottom: 9px; }
.og-rc-o {
  display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 2px 10px 2px 5px;
  border-radius: 11px; background: var(--cream2); font-size: 14px; text-align: left;
  animation: og-in .3s ease-out both; animation-delay: calc(var(--i) * 90ms);
}
.og-rc-o.win { background: #fdf0cf; box-shadow: inset 0 0 0 2px var(--amber); }
.og-rc-ono { width: 20px; flex: none; text-align: center; font-weight: 800; color: var(--ink2); }
.og-rc-o.win .og-rc-ono { font-size: 15px; }
.og-rc-o .og-rc-sw { width: 10px; height: 20px; border-radius: 3px; }
.og-rc-o b { flex: 1; min-width: 0; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.og-rc-o small { flex: none; font-size: 12px; color: var(--ink2); }

@media (max-width: 360px) {
  .og-rc-tag { width: 50px; }
  .og-rc-cd { font-size: 13px; }
  .og-rc-st { font-size: 11.5px; }
  .og-rc-pc { font-size: 11px; padding-right: 6px; }
  .og-rc-tag em { font-size: 11.5px; }
  .og-rc-b { font-size: 14px; }
  .og-rc-h { padding-right: 32px; }
}


@media (prefers-reduced-motion: reduce) {
  .og-hb-env, .og-hb-env.og-hb-flip, .og-hb-pile.shake .og-art, .og-hb-pile.shake .og-fb, .og-pt-pot, .og-pt-pot.og-pt-toss,
  .og-pt-spark b, .og-pt-spark i, .og-pt-box.hot .og-pt-glow, .og-hb-left.hot, .og-pt-lock,
  .og-art.rc, .og-rc-h, .og-rc-left.hot, .og-rc-lane.go .og-rc-run b, .og-rc-lane.go .og-rc-dust,
  .og-rc-pc.up, .og-rc-st.lock { animation: none; }
  .og-rc-o, .og-rc-lane.in .og-rc-no { animation: og-fadein .2s both; }
}

/* ====================================================================
   小游戏库的勾选列表(大厅设置 + 对局浮层共用;html 在 settings-ui.js 的 gameLibHTML)
   —— 底子在 app.css 的 .gl / .gl-g(原来是三列小格子),这里改成一行一个:
      图标 + 名字 + 一句话简介,完整规则收在右边的「规则」里点开才看。
      21 个游戏在 375px 上三列挤不下简介,一行一个也好按。
      ogames.css 比 app.css 后加载,同名选择器这边说了算;要改回去就删这一段。
   ==================================================================== */
/* --gl-row = 一行(没展开规则时)的高度:右边的「规则」和对勾都按它定位,
   这样简介折成两行、或者规则展开把这一行撑高的时候,两个标记还钉在第一行那个位置上 */
.gl { display: flex; flex-direction: column; gap: 6px; --gl-row: 57px; }
.gl-r { position: relative; }
/* 一整行都是「选不选它」的按钮;右边留出「规则」和对勾的位置 */
.gl .gl-g {
  width: 100%; flex-direction: row; align-items: center; gap: 10px;
  text-align: left; padding: 7px 76px 7px 9px; border-radius: 14px; min-height: var(--gl-row);
}
.gl .gl-i { width: 34px; height: 34px; font-size: 24px; flex: none; }
.gl-tx { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.gl .gl-g b { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 14.5px; white-space: nowrap; }
.gl .gl-g small { font-size: 11.5px; line-height: 1.4; white-space: normal; }
/* 没选中的也要看得清简介(原来的 .42 太淡了,挑的时候反而看不见) */
.gl .gl-g:not(.on) { opacity: .66; }
/* 「手机」/「嘴上」的小标;.gl-min(人数不够)复用它的位置,只换颜色 */
.gl-tag {
  flex: none; padding: 0 5px; border-radius: 999px; background: var(--panel3); color: var(--dim);
  font-size: 9.5px; font-style: normal; font-weight: 800; line-height: 17px; letter-spacing: .2px;
}
/* 选中的对勾:行布局里挪到最右边、竖着居中(原来在格子的右上角) */
.gl .gl-g.on::after { top: calc(var(--gl-row) / 2); right: 9px; transform: translateY(-50%); }

/* 完整规则:原生 <details>,点一下展开那一条。
   用原生是因为对局浮层的点击处理在 play.js,那边只认 button —— 原生折叠不需要任何 JS。
   summary 绝对定位到这一行的右边(贴着对勾左侧),展开出来的那段话在按钮下面占整行宽。 */
.gl-doc > summary {
  position: absolute; top: calc(var(--gl-row) / 2); right: 29px; transform: translateY(-50%);
  display: flex; align-items: center; gap: 1px; padding: 4px 6px; border-radius: 10px;
  background: var(--panel3); color: var(--dim); font-size: 11px; font-weight: 800;
  cursor: pointer; list-style: none;
}
.gl-doc > summary::-webkit-details-marker { display: none; }
.gl-doc > summary::after { content: "⌄"; font-size: 10px; line-height: 1; margin-top: -3px; transition: transform .15s; }
.gl-doc[open] > summary { background: var(--amber); color: #2b1700; }
.gl-doc[open] > summary::after { transform: rotate(180deg); margin-top: 1px; }
.gl-doc > p {
  margin: 4px 0 2px; padding: 9px 11px; border-radius: 12px;
  background: var(--panel); color: var(--dim); font-size: 12.5px; line-height: 1.65;
  -webkit-user-select: text; user-select: text;
}
/* 赛道长度旁边的 ♾️ 无限地图开关(不是第五个格数:开着也要能选每段多长) */
.st-lenrow { display: flex; align-items: stretch; gap: 8px; }
.st-lenrow .st-seg { flex: 1; min-width: 0; }
.st-lenrow + .st-note { margin-top: 8px; line-height: 1.55; }
.st-inf {
  flex: none; width: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  border-radius: 14px; background: var(--panel2); border: 2px solid transparent; color: var(--dim);
  transition: background .15s, border-color .15s, color .15s;
}
.st-inf b { font-size: 19px; line-height: 1.1; filter: grayscale(1); }
.st-inf small { font-size: 11px; font-weight: 800; }
.st-inf.on { border-color: var(--violet); background: rgba(138, 108, 240, .18); color: var(--text); }
.st-inf.on b { filter: none; }
.st-inf[disabled]:not(.on) { opacity: .5; }

/* 人数不够的那几个(data.js 的 min):这局抽不到,灰掉 + 写清楚几个人才有 */
.gl .gl-g.gl-off {
  opacity: .34; filter: saturate(.5);
  background: var(--panel); border-color: transparent; cursor: not-allowed;
}
.gl .gl-g.gl-off .gl-i { filter: grayscale(1); }
.gl .gl-g.gl-off.on::after { background: var(--line); color: var(--dim); }
.gl .gl-g.gl-off small { color: var(--dim); }
.gl .gl-g .gl-min { background: rgba(23, 15, 10, .72); color: var(--cream3); }
/* 对局里的浮层是奶油色底(.sheet) */
.sheet .gl .gl-g.gl-off { background: var(--cream2); }
.sheet .gl .gl-g.gl-off small { color: var(--ink2); }
.sheet .gl-tag, .sheet .gl .gl-g .gl-min { background: rgba(42, 26, 15, .12); color: var(--ink2); }
.sheet .gl-doc > summary { background: rgba(42, 26, 15, .1); color: var(--ink2); }
.sheet .gl-doc > p { background: var(--cream2); color: var(--ink2); }
.sheet .st-inf { background: var(--cream2); color: var(--ink2); }
.sheet .st-inf.on { background: #e6defc; color: var(--ink); }
@media (max-width: 360px) {
  .gl .gl-g { padding-right: 68px; }
  .gl-doc > summary { right: 26px; padding: 4px 4px; }
  .st-inf { width: 50px; }
  .st-inf small { font-size: 10px; }
}
