
.wr-app, .wr-app * { box-sizing: border-box; }
.wr-app { --wr-cut: 8px; --gs-ink: #fff7ed; --gs-muted: #fdba74; --gs-line: #5b3a1e; --gs-accent: #fb923c; --gs-accent-ink: #1c0f05;
  --gs-panel: #1b1230; --gs-bg: #0b0a24; --gs-chip: rgba(12, 8, 30, .92);
  position: relative; display: flex; flex-direction: column; color: #fff7ed; font: 16px/1.4 "Segoe UI", system-ui, Arial, sans-serif;
  overflow: clip; -webkit-tap-highlight-color: transparent; }
.wr-app.wr-embedded { height: clamp(480px, calc(100svh - 110px), 900px); border: 1px solid #5b3a1e; background: #0b0a24;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); }
.wr-app.gs-fs { background: #0b0a24; }
.wr-app .gs-stage, .wr-app .gs-main { min-height: 0; }
.wr-app.gs-wide .gs-stage { align-items: stretch; grid-template-rows: minmax(0, 1fr); }
.wr-app .gs-side { min-height: 0; overflow: auto; }
.wr-app .gs-main { display: flex; flex-direction: column; }
.wr-cut { clip-path: polygon(var(--wr-cut) 0, 100% 0, 100% calc(100% - var(--wr-cut)), calc(100% - var(--wr-cut)) 100%, 0 100%, 0 var(--wr-cut)); }
.wr-body { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; padding: 0 0 env(safe-area-inset-bottom, 0); }
.wr-hud { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.wr-chip-h { display: inline-flex; align-items: baseline; gap: 5px; padding: 4px 8px; background: rgba(27, 18, 48, .9); border: 1px solid rgba(251, 146, 60, .35); --wr-cut: 6px; }
.wr-chip-h small { font: 700 9px/1 monospace; letter-spacing: 1.3px; color: #fdba74; }
.wr-chip-h b { font: 800 14px/1 monospace; color: #fff; white-space: nowrap; }
.wr-stage { position: relative; flex: 1 1 auto; min-height: 0; --wr-cut: 12px; overflow: hidden auto; color: #fff7ed; border: 1px solid #5b3a1e; background: #0b0a24; }
.wr-stage.off { background: radial-gradient(ellipse at 50% 20%, #241a3c 0%, #14102a 60%, #0b0a24 100%); }
.wr-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.wr-stage.off .wr-canvas { display: none; }
.wr-main { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; padding: 10px; min-height: 100%; }
.wr-top { display: flex; align-items: center; gap: 8px; }
.wr-chip { border: 1px solid currentColor; background: rgba(12, 8, 30, .75); padding: 4px 12px; min-height: 30px; font: 800 13px system-ui, sans-serif; display: inline-flex; align-items: center; --wr-cut: 6px; }
.wr-worth { flex: 1; min-width: 0; font: 700 13px system-ui, sans-serif; color: #fed7aa; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wr-secs { font: 800 22px system-ui, sans-serif; font-variant-numeric: tabular-nums; min-width: 52px; text-align: right; color: #fdba74; text-shadow: 0 0 10px rgba(251, 146, 60, .7); }
.wr-secs.low { color: #fca5a5; text-shadow: 0 0 12px rgba(239, 68, 68, .8); }
.wr-def { background: rgba(12, 8, 30, .78); border: 1px solid rgba(251, 146, 60, .45); padding: 12px 14px; font: 600 clamp(16px, 2.3vw, 20px)/1.45 system-ui, sans-serif;
  min-height: 64px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); text-wrap: pretty; --wr-cut: 10px; }
.wr-def small { display: block; font: 800 11px system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #fb923c; margin-bottom: 4px; }
.wr-slots { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; min-height: 48px; padding: 4px 0; }
.wr-slot { width: clamp(24px, 6.4vw, 36px); height: clamp(34px, 8vw, 44px); display: inline-flex; align-items: center; justify-content: center;
  font: 800 clamp(17px, 4.2vw, 23px) ui-monospace, Consolas, monospace; text-transform: uppercase;
  background: linear-gradient(180deg, #57534e, #292524); border-bottom: 3px solid #78716c; color: #fafaf9; }
.wr-slot.typed { background: linear-gradient(180deg, #fdba74, #ea580c); color: #1c0f05; border-bottom-color: #9a3412; box-shadow: 0 0 12px rgba(251, 146, 60, .65); }
.wr-slot.given { background: linear-gradient(180deg, #fde68a, #f59e0b); color: #1c0f05; border-bottom-color: #b45309; }
.wr-slot.gap { width: 10px; background: none; border: 0; box-shadow: none; }
.wr-slot.over { background: #7f1d1d; color: #fecaca; }
.wr-slots.steel .wr-slot { background: linear-gradient(180deg, #e2e8f0, #94a3b8); color: #0f172a; border-bottom-color: #475569; box-shadow: 0 0 16px rgba(226, 232, 240, .7); transition: all .25s; }
.wr-sent { display: none; background: rgba(254, 215, 170, .12); border-left: 3px solid #fb923c; padding: 7px 10px; font: italic 500 15px/1.45 Georgia, serif; color: #ffedd5; }
.wr-sent.show { display: block; }
.wr-answer-row { display: flex; gap: 8px; }
.wr-input { flex: 1; min-width: 0; min-height: 46px; border: 2px solid rgba(251, 146, 60, .5); background: rgba(12, 8, 30, .82); color: #fff;
  padding: 9px 12px; font: 700 18px system-ui, sans-serif; letter-spacing: .03em; border-radius: 0; }
.wr-input:focus { outline: none; border-color: #fb923c; }
.wr-guesses { display: flex; flex-wrap: wrap; gap: 6px; }
.wr-guesses s { color: #fca5a5; background: rgba(248, 113, 113, .14); padding: 2px 7px; font-size: 13px; }
.wr-msg { min-height: 20px; font-size: 14px; color: #fed7aa; }
.wr-msg.bad { color: #fca5a5; } .wr-msg.good { color: #86efac; }
.wr-hints { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.wr-hint { min-height: 44px; border: 1px solid rgba(251, 146, 60, .4); background: rgba(12, 8, 30, .75); color: #fed7aa;
  font: 700 13px system-ui, sans-serif; cursor: pointer; padding: 4px 6px; line-height: 1.15; --wr-cut: 6px; }
.wr-hint small { display: block; font-weight: 600; font-size: 11px; color: #cbd5e1; }
.wr-hint:disabled { opacity: .35; cursor: default; }
.wr-keys { margin-top: auto; display: grid; gap: 6px; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.wr-krow { display: flex; gap: 5px; justify-content: center; }
.wr-key { flex: 1 1 0; max-width: 46px; min-width: 0; height: 48px; border: 0; background: rgba(255, 237, 213, .92); 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; --wr-cut: 6px; }
.wr-key:active { transform: translateY(1px); box-shadow: none; }
.wr-key.wide { max-width: none; flex: 4 1 0; text-transform: none; font-size: 14px; }
.wr-key.enter { max-width: none; flex: 1.8 1 0; background: linear-gradient(135deg, #fb923c, #ea580c); text-transform: none; font-size: 14px; }
.wr-key.del { max-width: 60px; flex: 1.4 1 0; background: rgba(253, 186, 116, .95); }
.wr-key:focus-visible, .wr-hint:focus-visible, .wr-go:focus-visible, .wr-alt:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.wr-stage.shake .wr-def, .wr-stage.shake .wr-slots { animation: wrShake .35s; }
@keyframes wrShake { 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
.wr-toast { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%); z-index: 3; pointer-events: none; padding: 8px 16px;
  font: 800 20px system-ui, sans-serif; background: rgba(12, 8, 30, .85); border: 1px solid rgba(251, 146, 60, .6); opacity: 0; transition: opacity .2s; text-align: center; max-width: 90%; }
.wr-toast.show { opacity: 1; }
.wr-toast small { display: block; font: 600 13px system-ui, sans-serif; color: #fed7aa; }
.wr-over { display: flex; align-items: center; justify-content: center; padding: 12px; }
.wr-card { background: linear-gradient(160deg, #3a1d0b, #120d24); border: 1px solid rgba(251, 146, 60, .45); padding: 16px 18px;
  max-width: 520px; width: 100%; color: #fff7ed; max-height: 100%; overflow: auto; box-shadow: 0 18px 50px rgba(0, 0, 0, .55); text-align: center; --wr-cut: 12px; }
.wr-kick { font: 700 12px system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #fb923c; }
.wr-title { font: 800 24px/1.25 system-ui, sans-serif; margin: 4px 0 8px; }
.wr-title.good { color: #bbf7d0; } .wr-title.bad { color: #fecaca; }
.wr-sub { font-size: 14px; color: #fed7aa; margin: 6px 0 10px; line-height: 1.45; }
.wr-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.wr-go { background: linear-gradient(135deg, #fb923c, #ea580c); color: #1c0f05; border: 0; padding: 11px 24px; min-height: 46px; font: 800 16px system-ui, sans-serif; cursor: pointer; --wr-cut: 8px; }
.wr-alt { background: rgba(254, 215, 170, .12); color: #fff7ed; border: 1px solid rgba(254, 215, 170, .35); padding: 9px 14px; min-height: 44px; font: 700 13px system-ui, sans-serif; cursor: pointer; --wr-cut: 6px; }
.wr-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; }
.wr-sum { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; margin: 8px 0; }
.wr-sum i { width: 22px; height: 22px; background: #ef4444; } .wr-sum i.ok { background: #22c55e; } .wr-sum i.half { background: #eab308; }
.wr-review { text-align: left; display: grid; gap: 6px; margin: 8px 0; }
.wr-rv { background: rgba(0, 0, 0, .28); padding: 8px 10px; font-size: 13.5px; line-height: 1.4; border-left: 3px solid #ef4444; }
.wr-rv.ok { border-left-color: #22c55e; }
.wr-rv b { font-size: 15px; color: #fde68a; } .wr-rv em { color: #fdba74; font-style: normal; font-size: 12px; }
.wr-rv q { display: block; font-style: italic; color: #ffedd5; margin-top: 2px; }
.wr-rv q mark { background: #fb923c; color: #1c0f05; padding: 0 3px; font-style: normal; }
@media (max-width: 760px) {
  .wr-main { padding: 8px; }
  .wr-krow { gap: 3px; }
}
@media (max-width: 420px) { .wr-app .gs-title { font-size: 13px; letter-spacing: .04em; } .wr-chip-h { padding: 3px 6px; gap: 4px; } .wr-chip-h small { font-size: 8px; letter-spacing: 1px; } .wr-chip-h b { font-size: 13px; } }
