
.rx-app, .rx-app * { box-sizing: border-box; }
.rx-app { --rx-cut: 8px; --gs-ink: #fef3c7; --gs-muted: #c9b27a; --gs-line: #4a3a2a; --gs-accent: #f59e0b; --gs-accent-ink: #1c1003;
  --gs-panel: #1a1428; --gs-bg: #070b1f; --gs-chip: rgba(10, 8, 20, .92);
  position: relative; display: flex; flex-direction: column; color: #fef3c7; font: 16px/1.4 "Segoe UI", system-ui, Arial, sans-serif;
  overflow: clip; -webkit-tap-highlight-color: transparent; }
.rx-app.rx-embedded { height: clamp(480px, calc(100svh - 110px), 900px); border: 1px solid #4a3a2a; background: #070b1f;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); }
.rx-app.gs-fs { background: #070b1f; }
.rx-app .gs-stage, .rx-app .gs-main { min-height: 0; }
.rx-app.gs-wide .gs-stage { align-items: stretch; grid-template-rows: minmax(0, 1fr); }
.rx-app .gs-side { min-height: 0; overflow: auto; }
.rx-app .gs-main { display: flex; flex-direction: column; }
.rx-cut { clip-path: polygon(var(--rx-cut) 0, 100% 0, 100% calc(100% - var(--rx-cut)), calc(100% - var(--rx-cut)) 100%, 0 100%, 0 var(--rx-cut)); }
.rx-body { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; padding: 0 0 env(safe-area-inset-bottom, 0); }
.rx-hud { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.rx-chip { display: inline-flex; align-items: baseline; gap: 5px; padding: 4px 8px; background: rgba(26, 20, 40, .9); border: 1px solid rgba(251, 191, 36, .3); --rx-cut: 6px; }
.rx-chip small { font: 700 9px/1 monospace; letter-spacing: 1.3px; color: #c9b27a; }
.rx-chip b { font: 800 14px/1 monospace; color: #fff; white-space: nowrap; }
#rxSpC b { color: #fde047; }
.rx-chip.hit { animation: rxHit .5s ease; }
@keyframes rxHit { 0%, 100% { transform: none; } 30% { transform: scale(1.18); } 60% { transform: scale(.95); } }
.rx-stage { position: relative; flex: 1 1 auto; min-height: 0; --rx-cut: 12px; overflow: hidden auto; color: #fef3c7; border: 1px solid #4a3a2a;
  background: linear-gradient(180deg, #070b1f 0%, #141a3a 45%, #3b2a4a 72%, #7c4a2d 100%); }
.rx-stage.off { background: radial-gradient(ellipse at 50% 20%, #1c1830 0%, #10101f 60%, #070b1f 100%); }
.rx-sky { position: absolute; inset: 0; pointer-events: none; }
.rx-stage.off .rx-sky, .rx-stage.off .rx-sphinx { display: none; }
.rx-stars i { position: absolute; width: 2px; height: 2px; background: #fff; opacity: .7; animation: rxTwinkle 3s ease-in-out infinite; }
@keyframes rxTwinkle { 50% { opacity: .15; } }
.rx-moon { position: absolute; right: 8%; top: 7%; width: 46px; height: 46px; border-radius: 50%; background: #fef9c3; box-shadow: 0 0 30px 8px rgba(254, 249, 195, .25); }
.rx-sphinx { position: absolute; left: 0; right: 0; bottom: 0; height: 46%; pointer-events: none; opacity: .9; }
.rx-sphinx svg { width: 100%; height: 100%; }
.rx-dune { fill: #4a2f1f; } .rx-body-s { fill: #1c1410; } .rx-head { fill: #261a12; }
.rx-eye { fill: #fbbf24; filter: drop-shadow(0 0 4px #f59e0b); animation: rxGlow 2.6s ease-in-out infinite; }
@keyframes rxGlow { 50% { fill: #fde68a; filter: drop-shadow(0 0 9px #fbbf24); } }
.rx-stage.rx-pleased .rx-eye { fill: #86efac; filter: drop-shadow(0 0 10px #22c55e); }
.rx-stage.rx-angry .rx-eye { fill: #f87171; filter: drop-shadow(0 0 10px #ef4444); }
.rx-main { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; padding: 10px; min-height: 100%; }
.rx-top { display: flex; align-items: center; gap: 8px; }
.rx-bandchip { border: 1px solid currentColor; background: rgba(10, 8, 20, .75); padding: 4px 12px; min-height: 30px; font: 800 13px system-ui, sans-serif; display: inline-flex; align-items: center; --rx-cut: 6px; }
.rx-worth { flex: 1; min-width: 0; font: 700 13px system-ui, sans-serif; color: #fde68a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rx-riddle { background: linear-gradient(160deg, rgba(254, 243, 199, .96), rgba(253, 230, 138, .92)); color: #3b2108; padding: 12px 16px;
  font: 600 clamp(16px, 2.2vw, 19px)/1.5 Georgia, 'Times New Roman', serif; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); min-height: 70px; --rx-cut: 10px; }
.rx-riddle small { display: block; font: 800 11px system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #92400e; margin-bottom: 4px; }
.rx-riddle mark, .rx-trick mark { background: #f59e0b; color: #1c1003; padding: 0 3px; }
.rx-clues { display: grid; gap: 6px; }
.rx-clues:empty { display: none; }
.rx-letters { font: 800 20px ui-monospace, Consolas, monospace; letter-spacing: .08em; color: #fde68a; text-align: center; }
.rx-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.rx-choice { min-height: 44px; border: 1px solid rgba(253, 230, 138, .45); background: rgba(10, 8, 20, .75); color: #fef3c7;
  font: 700 15px system-ui, sans-serif; cursor: pointer; padding: 6px 8px; --rx-cut: 6px; }
.rx-choice.tried { opacity: .35; text-decoration: line-through; }
.rx-hints { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.rx-hint { min-height: 44px; border: 1px solid rgba(253, 230, 138, .35); background: rgba(10, 8, 20, .72); color: #fde68a;
  font: 700 13px system-ui, sans-serif; cursor: pointer; padding: 4px 6px; line-height: 1.15; --rx-cut: 6px; }
.rx-hint small { display: block; font-weight: 600; font-size: 11px; color: #cbd5e1; }
.rx-hint:disabled { opacity: .35; cursor: default; }
.rx-answer-row { display: flex; gap: 8px; }
.rx-input { flex: 1; min-width: 0; min-height: 46px; border: 2px solid rgba(253, 230, 138, .5); background: rgba(10, 8, 20, .82); color: #fff;
  padding: 10px 12px; font: 700 18px system-ui, sans-serif; letter-spacing: .03em; border-radius: 0; }
.rx-input:focus { outline: none; border-color: #fbbf24; }
.rx-guesses { display: flex; flex-wrap: wrap; gap: 6px; }
.rx-guesses s { color: #fca5a5; background: rgba(248, 113, 113, .14); padding: 2px 7px; font-size: 13px; }
.rx-msg { min-height: 20px; font-size: 14px; color: #fde68a; }
.rx-msg.bad { color: #fca5a5; } .rx-msg.good { color: #86efac; }
.rx-keys { margin-top: auto; display: grid; gap: 6px; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.rx-krow { display: flex; gap: 5px; justify-content: center; }
.rx-key { flex: 1 1 0; max-width: 46px; min-width: 0; height: 48px; border: 0; background: rgba(254, 243, 199, .9); color: #2a1606;
  font: 800 17px system-ui, sans-serif; cursor: pointer; box-shadow: 0 2px 0 rgba(0, 0, 0, .35); text-transform: uppercase; padding: 0; --rx-cut: 6px; }
.rx-key:active { transform: translateY(1px); box-shadow: none; }
.rx-key.wide { max-width: none; flex: 4 1 0; text-transform: none; font-size: 14px; }
.rx-key.enter { max-width: none; flex: 1.8 1 0; background: linear-gradient(135deg, #facc15, #f97316); text-transform: none; font-size: 14px; }
.rx-key.del { max-width: 60px; flex: 1.4 1 0; background: rgba(253, 186, 116, .95); }
.rx-key:focus-visible, .rx-hint:focus-visible, .rx-choice:focus-visible, .rx-go:focus-visible, .rx-alt:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.rx-stage.shake .rx-riddle { animation: rxShake .35s; }
@keyframes rxShake { 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
.rx-over { display: flex; align-items: center; justify-content: center; padding: 12px; }
.rx-card { background: linear-gradient(160deg, #3b2a14, #120d1f); border: 1px solid rgba(251, 191, 36, .45); padding: 16px 18px;
  max-width: 480px; width: 100%; color: #fef3c7; max-height: 100%; overflow: auto; box-shadow: 0 18px 50px rgba(0, 0, 0, .55); text-align: center; --rx-cut: 12px; }
.rx-kick { font: 700 12px system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #fbbf24; }
.rx-title { font: 800 24px/1.25 Georgia, serif; margin: 4px 0 8px; }
.rx-title.good { color: #bbf7d0; } .rx-title.bad { color: #fecaca; }
.rx-sub { font-size: 14px; color: #fde68a; margin: 6px 0 10px; line-height: 1.45; }
.rx-trick, .rx-word { text-align: left; background: rgba(0, 0, 0, .3); padding: 9px 11px; margin: 8px 0; font-size: 14px; line-height: 1.45; --rx-cut: 8px; }
.rx-word b { color: #fde68a; font-size: 16px; } .rx-word em { color: #fcd34d; font-style: normal; font-size: 12px; }
.rx-word q { display: block; margin-top: 4px; font-style: italic; color: #fef3c7; }
.rx-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.rx-go { background: linear-gradient(135deg, #facc15, #f97316); color: #1c1003; border: 0; padding: 11px 24px; min-height: 46px; font: 800 16px system-ui, sans-serif; cursor: pointer; --rx-cut: 8px; }
.rx-alt { background: rgba(253, 230, 138, .14); color: #fef3c7; border: 1px solid rgba(253, 230, 138, .35); padding: 9px 14px; min-height: 44px; font: 700 14px system-ui, sans-serif; cursor: pointer; --rx-cut: 6px; }
.rx-bandtag { display: inline-block; margin-left: 8px; font: 800 14px system-ui, sans-serif; padding: 2px 9px; background: rgba(255, 255, 255, .08); color: var(--b); vertical-align: 4px; }
.rx-sum { display: flex; gap: 5px; justify-content: center; margin: 8px 0; }
.rx-sum i { width: 26px; height: 26px; background: #ef4444; } .rx-sum i.ok { background: #22c55e; }
@media (max-width: 760px) {
  .rx-main { padding: 8px; }
  .rx-hints { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rx-krow { gap: 3px; }
}
@media (max-width: 420px) { .rx-app .gs-title { font-size: 13px; letter-spacing: .04em; } .rx-chip { padding: 3px 6px; gap: 4px; } .rx-chip small { font-size: 8px; letter-spacing: 1px; } .rx-chip b { font-size: 13px; } }
