/* Wombat Response Unit (inc/wru.php, assets/js/wru/) */
.wru { position: relative; max-width: 1200px; margin: 0 auto; }
.wru__stage { scroll-margin: 20px; }
.wru__loading { display: flex; align-items: center; justify-content: center; gap: 12px; height: min(calc(100svh - 40px), 720px); min-height: 420px; border-radius: var(--radius, 14px); background: var(--navy, #0e1e42); color: #fff; font: 600 1.1rem Sora, sans-serif; }
.wru__spin { width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .25); border-top-color: var(--yellow, #d8db3e); animation: wru-spin 1s linear infinite; }
@keyframes wru-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .wru__spin { animation: none; } }
.wru__nogl { padding: 32px; border-radius: var(--radius, 14px); background: var(--navy, #0e1e42); color: #dfe6f2; }
.wru__nogl h2 { color: #fff; margin-top: 0; }

.wru__stage { position: relative; height: min(calc(100svh - var(--wru-top, 100px)), 720px); min-height: 420px; border-radius: var(--radius, 14px); overflow: hidden; background: #bfe0f5; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.wru__stage:fullscreen { height: 100vh; border-radius: 0; }
.wru__cv { display: block; width: 100%; height: 100%; outline: none; }

/* HUD */
.wru__hud { position: absolute; inset: 0; pointer-events: none; }
.wru__bar { position: absolute; top: 10px; left: 10px; right: 180px; display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; }
.wru__stat { background: rgba(14, 30, 66, .82); color: #fff; border-radius: 10px; padding: 6px 12px; min-width: 74px; line-height: 1.15; }
.wru__stat span { display: block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: #aab6cc; }
.wru__stat b { font: 700 1.2rem Sora, sans-serif; font-variant-numeric: tabular-nums; }
.wru__stat.is-low b { color: var(--yellow, #d8db3e); }
.wru__ctl { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; pointer-events: auto; }
.wru__b { background: rgba(14, 30, 66, .82); color: #fff; border: 1px solid rgba(255, 255, 255, .35); border-radius: 8px; padding: 6px 10px; font: 600 .82rem Inter, sans-serif; cursor: pointer; }
.wru__b:disabled { opacity: .45; cursor: default; }
.wru__b[hidden] { display: none; }
.wru__map { position: absolute; top: 10px; right: 10px; width: 160px; height: 160px; border-radius: 10px; border: 2px solid rgba(255, 255, 255, .6); }
.wru__alerts { position: absolute; top: 180px; right: 10px; width: 240px; margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; pointer-events: auto; }
.wru__alerts li { background: rgba(255, 255, 255, .94); border-left: 6px solid var(--job, #2274b5); border-radius: 8px; padding: 6px 10px; display: grid; grid-template-columns: 1fr auto; gap: 0 8px; font-size: .85rem; box-shadow: 0 4px 12px rgba(14, 30, 66, .18); }
.wru__alerts li b { color: var(--navy, #0e1e42); }
.wru__alerts li span { grid-column: 1; color: #4a5568; }
.wru__alerts li em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font: 700 1rem Sora, sans-serif; font-style: normal; color: var(--navy, #0e1e42); font-variant-numeric: tabular-nums; }
.wru__alerts li.is-urgent em { color: var(--red, #d14938); }
.wru__alerts li.wru__none { display: block; border-left-color: #9aa4b5; color: #4a5568; }
.wru__remote { grid-column: 1 / span 2; margin-top: 4px; background: var(--blue, #2274b5); color: #fff; border: 0; border-radius: 6px; padding: 4px 8px; font: 600 .78rem Inter, sans-serif; cursor: pointer; }
.wru__toast { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); max-width: min(560px, 90%); margin: 0; background: rgba(14, 30, 66, .9); color: #fff; padding: 8px 16px; border-radius: 10px; font-weight: 600; text-align: center; opacity: 0; transition: opacity .3s; pointer-events: none; }
.wru__toast.is-on { opacity: 1; }

/* Touch controls */
.wru__touch { position: absolute; inset: auto 0 0 0; display: flex; justify-content: space-between; padding: 12px; pointer-events: none; }
.wru__touch[hidden], .wru__touch.is-off { display: none; }
.wru__touch > div { display: flex; gap: 10px; pointer-events: auto; }
.wru__touch button { width: 72px; height: 72px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); background: rgba(14, 30, 66, .6); color: #fff; font: 700 .85rem Sora, sans-serif; touch-action: none; -webkit-tap-highlight-color: transparent; }
.wru__touch button.is-go { background: rgba(63, 125, 32, .75); }
.wru__touch button.is-on { background: var(--yellow, #d8db3e); color: var(--navy, #0e1e42); }

/* Overlays: menu, pause, shop, end, jobs */
.wru__ov { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; padding: 16px; overflow-y: auto; }
.wru__ov:empty { display: none; }
.wru-card { display: flex; gap: 24px; align-items: flex-start; max-width: 760px; width: 100%; background: rgba(14, 30, 66, .94); color: #dfe6f2; border-radius: 16px; padding: 24px 28px; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); margin: auto; }
.wru-card h2 { color: #fff; margin: 0 0 10px; }
.wru-card h3 { color: #fff; margin: 0 0 4px; font-size: 1rem; }
.wru-card strong, .wru-card b { color: #fff; }
.wru-card__pic { width: 150px; height: auto; flex: none; }
.wru-card__list { padding-left: 18px; margin: 0 0 12px; }
.wru-card__fine { font-size: .86rem; color: #aab6cc; }
.wru-card__big { font: 700 2rem/1.1 Sora, sans-serif; color: #fff; margin: 0 0 8px; }
.wru-card__stats { padding-left: 18px; margin: 0 0 12px; }
.wru-card .btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.wru-card .btn--ghost-light { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .55); }
.wru-card--shop { display: block; max-width: 820px; }
.wru-shop__list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.wru-shop__list li { display: flex; gap: 16px; align-items: center; justify-content: space-between; background: rgba(255, 255, 255, .07); border-radius: 10px; padding: 10px 14px; }
.wru-shop__list li.is-owned { background: rgba(157, 194, 76, .18); }
.wru-shop__list p { margin: 0; font-size: .9rem; }
.wru-shop__fx { color: var(--yellow, #d8db3e); }
.wru-shop__own { color: var(--green, #9dc24c); font-weight: 700; white-space: nowrap; }
.wru-shop .btn:disabled { opacity: .45; }
.wru-save { margin: 0 0 14px; }
.wru-save label { display: block; font-weight: 600; color: #fff; margin-bottom: 6px; }
.wru-save span { display: flex; gap: 8px; flex-wrap: wrap; }
.wru-save span[hidden] { display: none; }
.wru-save input { width: 5.2em; font: 700 1.4rem/1 Sora, sans-serif; letter-spacing: .2em; text-transform: uppercase; text-align: center; padding: 8px; border-radius: 8px; border: 2px solid var(--yellow, #d8db3e); background: #fff; color: var(--navy, #0e1e42); }
.wru-save__msg { display: block; min-height: 1.3em; margin-top: 6px; color: var(--yellow, #d8db3e); font-weight: 600; }

.wru-job { width: 100%; max-width: 680px; background: #fff; color: #1d2330; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); margin: auto; }
.wru-job__head { display: flex; gap: 14px; align-items: center; padding: 14px 20px; background: var(--job, #2274b5); color: #fff; }
.wru-job__head h2 { color: #fff; margin: 0; font-size: 1.35rem; }
.wru-job__where { margin: 0; font-size: .85rem; opacity: .9; }
.wru-job__pic { width: 56px; height: 56px; object-fit: contain; background: rgba(255, 255, 255, .9); border-radius: 50%; padding: 2px; }
.wru-job__bar { height: 8px; background: #eef2f7; }
.wru-job__bar span { display: block; height: 100%; width: 100%; background: var(--yellow, #d8db3e); transition: width .1s linear; }
.wru-job__body { padding: 16px 20px 4px; }
.wru-job__body > p { margin: 0 0 12px; }
.wru-job__msg { min-height: 1.4em; margin: 0 20px 10px; font-weight: 600; color: #4a5568; }
.wru-job__msg.is-bad { color: var(--red, #d14938); }
.wru-job__result { margin: 0 20px 18px; padding: 12px 16px; border-radius: 10px; }
.wru-job__result.is-ok { background: #eef6e4; }
.wru-job__result.is-bad { background: #fbecea; }
.wru-job__result p { margin: 0 0 10px; }
.wru-mails, .wru-opts { display: grid; gap: 8px; }
.wru-mail, .wru-opt { text-align: left; background: #fbfcfe; border: 2px solid #d9e0ea; border-radius: 10px; padding: 10px 14px; font: inherit; color: inherit; cursor: pointer; }
.wru-mail:hover:not(:disabled), .wru-opt:hover:not(:disabled), .wru-mail:focus-visible, .wru-opt:focus-visible { border-color: var(--blue, #2274b5); }
.wru-mail__f { display: block; font-weight: 700; }
.wru-mail__f em { display: block; font-style: normal; font-weight: 400; font-size: .85rem; color: #4a5568; overflow-wrap: anywhere; }
.wru-mail__s { display: block; }
.is-right { border-color: #3f7d20 !important; background: #eef6e4 !important; }
.is-wrong { border-color: #b8382a !important; background: #fbecea !important; }
.is-shake { animation: wru-shake .35s; }
@keyframes wru-shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.wru-net { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 360px; margin: 0 auto 8px; }
.wru-pc { aspect-ratio: 1.3; border-radius: 10px; border: 2px solid #c9d2e3; background: #eef6e4; cursor: pointer; position: relative; }
.wru-pc span { position: absolute; inset: 22% 18% 34%; border-radius: 4px; background: #2274b5; }
.wru-pc::after { content: ""; position: absolute; left: 38%; right: 38%; bottom: 16%; height: 10%; background: #8a94a6; border-radius: 2px; }
.wru-pc.is-bad { background: #fbecea; border-color: #d14938; cursor: default; }
.wru-pc.is-bad span { background: #d14938; }
.wru-pc.is-safe { background: #e8eefb; border-color: #0e1e42; border-style: dashed; cursor: default; }
.wru-pc.is-safe span { background: #8a94a6; }
.wru-pc:disabled { opacity: 1; }
.wru-steps { margin: 0 0 10px; padding-left: 22px; min-height: 1em; color: #3f7d20; font-weight: 600; }
.wru-opt:disabled.is-right { opacity: .7; }
.wru-printer { position: relative; height: 220px; border-radius: 12px; background: #eef2f7; overflow: hidden; }
.wru-printer__box { position: absolute; left: 50%; top: 50%; width: 180px; height: 120px; transform: translate(-50%, -50%); background: #c9d2e3; border-radius: 12px; box-shadow: inset 0 -20px 0 #9aa4b5; }
.wru-scrap { position: absolute; width: 54px; height: 40px; background: #fff; border: 1px solid #9aa4b5; border-radius: 3px; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); cursor: pointer; background-image: repeating-linear-gradient(#fff 0 6px, #dfe6f2 6px 7px); }
.wru-scrap:focus-visible { outline: 3px solid var(--blue, #2274b5); }
.wru-mfa { max-width: 420px; margin: 0 auto; border: 2px solid #d9e0ea; border-radius: 14px; padding: 14px 18px; }
.wru-mfa__t { font: 700 1.1rem Sora, sans-serif; margin: 0 0 6px; }
.wru-mfa__b { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wru-mfa__b .wru-opt { text-align: center; font-weight: 700; }

/* Leaderboard under the game */
.wru__board { margin-top: 28px; background: #fff; border-radius: var(--radius, 14px); box-shadow: var(--shadow, 0 6px 24px rgba(14, 30, 66, .08)); padding: 20px 24px; border-top: 5px solid var(--yellow, #d8db3e); }
.wru__board h2 { margin: 0 0 12px; }
.wru__top10 { list-style: none; margin: 0 0 8px; padding: 0; }
.wru__top10 li { display: grid; grid-template-columns: 2.2em 4em 5em 1fr; align-items: center; padding: 8px 6px; border-bottom: 1px solid #eef2f7; }
.wru__top10 li.is-mine { background: #fbfbe3; font-weight: 700; }
.wru__top10 li.wru__empty { display: block; color: #6a7489; }
.wru__rk, .wru__wh { color: #6a7489; }
.wru__in { font: 700 1.05rem Sora, sans-serif; letter-spacing: .12em; color: var(--navy, #0e1e42); }
.wru__sc { font-weight: 700; text-align: right; padding-right: 16px; font-variant-numeric: tabular-nums; }
.wru__wh { font-size: .9rem; }
.wru__fine { color: #6a7489; font-size: .86rem; margin: 0; }

/* Intro page */
.wru-intro__steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.wru-intro__steps li { counter-increment: s; background: #fff; border-radius: 12px; padding: 16px 18px 16px 58px; position: relative; box-shadow: 0 4px 16px rgba(14, 30, 66, .07); }
.wru-intro__steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--yellow, #d8db3e); color: var(--navy, #0e1e42); font: 700 1rem/30px Sora, sans-serif; text-align: center; }
.wru-intro__cols { margin-bottom: 8px; }
.wru-intro__keys { padding-left: 18px; margin: 0; }
.wru-intro__keys li { margin-bottom: 6px; }
.wru-intro kbd { display: inline-block; min-width: 1.6em; padding: 1px 6px; border: 1px solid #c9d2e3; border-bottom-width: 3px; border-radius: 5px; background: #fff; font: 600 .85rem Inter, sans-serif; text-align: center; }
.wru-intro__h { margin-top: 36px; }
.wru-intro__jobs, .wru-intro__ups { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.wru-intro__job { background: #fff; border-radius: 12px; padding: 14px 16px; border-left: 6px solid var(--job); box-shadow: 0 4px 16px rgba(14, 30, 66, .07); }
.wru-intro__job h3, .wru-intro__up h3 { margin: 0 0 4px; font-size: 1.05rem; }
.wru-intro__job p, .wru-intro__up p { margin: 0; }
.wru-intro__up { background: var(--navy, #0e1e42); color: #dfe6f2; border-radius: 12px; padding: 14px 16px; }
.wru-intro__up h3 { color: #fff; }
.wru-intro__fx { margin-top: 6px !important; color: var(--yellow, #d8db3e); font-size: .9rem; }
.wru-intro__go { margin-top: 28px; text-align: center; }
.wru-playbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; max-width: 1200px; margin: 0 auto 12px; }
.wru-playbar h1 { margin: 0; font-size: 1.4rem; }

@media (max-width: 760px) {
  .wru__bar { right: 10px; top: 8px; gap: 6px; }
  .wru__stat { padding: 4px 8px; min-width: 0; }
  .wru__stat b { font-size: 1rem; }
  .wru__stat span { font-size: .62rem; }
  .wru__ctl { width: 100%; }
  .wru__b { padding: 4px 8px; font-size: .75rem; }
  .wru__map { top: var(--wru-hud, 96px); right: 8px; width: 88px; height: 88px; }
  .wru__alerts { top: var(--wru-hud, 96px); left: 8px; right: 104px; width: auto; }
  .wru__alerts li { font-size: .75rem; padding: 4px 8px; }
  .wru__alerts li:nth-child(n+3) { display: none; }
  .wru__touch button { width: 64px; height: 64px; }
  .wru__toast { bottom: 96px; font-size: .85rem; padding: 6px 12px; }
  .wru-card { flex-direction: column; align-items: center; padding: 18px; gap: 12px; }
  .wru-card__pic { width: 100px; }
  .wru-card__big { font-size: 1.6rem; }
  .wru-card .btn-row .btn { flex: 1 1 100%; text-align: center; }
  .wru-shop__list li { flex-direction: column; align-items: flex-start; }
  .wru-job__head { padding: 10px 14px; }
  .wru-job__pic { width: 44px; height: 44px; }
  .wru-job__body { padding: 12px 14px 2px; }
  .wru__top10 li { grid-template-columns: 1.8em 3.6em 4em 1fr; font-size: .9rem; }
  .wru__board { padding: 16px; }
}
.wru__stage[data-mode="menu"] .wru__alerts, .wru__stage[data-mode="over"] .wru__alerts, .wru__stage[data-mode="shop"] .wru__alerts, .wru__stage[data-mode="job"] .wru__alerts,
.wru__stage[data-mode="menu"] .wru__map, .wru__stage[data-mode="over"] .wru__map { display: none; }
.wru__stage[data-mode="paused"] .wru__alerts { display: none; }
@media (max-width: 380px) {
  .wru__stat { padding: 3px 6px; }
  .wru__stat b { font-size: .92rem; }
  .wru__touch { padding: 8px; }
  .wru__touch > div { gap: 6px; }
  .wru__touch button { width: 58px; height: 58px; font-size: .78rem; }
  .wru__toast { bottom: 80px; }
  .wru__map { width: 80px; height: 80px; }
  .wru__alerts { right: 96px; }
}
/* expanded mode: full screen without the Fullscreen API (iPhone), or when the browser refuses it */
html.wru-lock, body.wru-lock { overflow: hidden; height: 100%; }
.wru__stage.is-expanded { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; min-height: 0; z-index: 1000; border-radius: 0; background: var(--navy, #0e1e42); }
.wru__stage.is-expanded .wru__hud { inset: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
.wru__stage.is-expanded .wru__touch { padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); padding-left: calc(12px + env(safe-area-inset-left, 0px)); padding-right: calc(12px + env(safe-area-inset-right, 0px)); }
.wru__stage.is-expanded .wru__ov { padding: calc(16px + env(safe-area-inset-top, 0px)) calc(16px + env(safe-area-inset-right, 0px)) calc(16px + env(safe-area-inset-bottom, 0px)) calc(16px + env(safe-area-inset-left, 0px)); }
.wru__stage.is-expanded .wru__toast { margin-bottom: env(safe-area-inset-bottom, 0px); }
