/* Multi Task: web edition */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: #bcbcbc; font-family: Arial, Helvetica, sans-serif; color: #fff;
  -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  overscroll-behavior: none; touch-action: none; }
body { position: fixed; inset: 0; overflow: hidden; }
[hidden] { display: none !important; }

#app { position: fixed; inset: 0; overflow: hidden; background: #bcbcbc; }
#c { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
/* Phone held upright: turn the whole game sideways (the original is landscape-only). */
body.forced #app {
  inset: auto; top: 0; left: 0; width: var(--app-h, 100vh); height: var(--app-w, 100vw);
  transform-origin: 0 0; transform: translateX(var(--app-w, 100vw)) rotate(90deg);
}

/* Highscores / achievements: Unity GUI.Box look */
#overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.25); z-index: 5; }
.ov-box { min-width: 55%; max-width: 80%; max-height: 90%; overflow: hidden; background: rgba(0,0,0,.4); border: 1px solid rgba(0,0,0,.8);
  border-radius: 6px; padding: 14px 22px; text-align: center; }
.ov-box h2 { font-size: 22px; font-weight: bold; margin-bottom: 10px; letter-spacing: 1px; }
.ov-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 6px 0; font-size: 16px; border-top: 1px solid rgba(255,255,255,.15); text-align: left; }
.ov-row small { display: block; font-size: 12px; opacity: .75; }
.ov-row b { font-size: 18px; }
.ov-row:not(.ok) { opacity: .6; }
.ov-row.ok, .ov-row:has(b:not(:empty)) { opacity: 1; }
.ov-box p { margin-top: 10px; font-size: 13px; opacity: .8; }

.toast { position: absolute; left: 50%; bottom: 16px; transform: translate(-50%, 20px); max-width: 80%; background: rgba(0,0,0,.75);
  color: #fff; padding: 10px 16px; border-radius: 6px; font-size: 14px; text-align: center; opacity: 0; transition: .3s; pointer-events: none; z-index: 9; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Desktop / tablet */
.desktop { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; background: #bcbcbc; color: #222;
  user-select: text; -webkit-user-select: text; overflow: auto; }
.d-card { width: 100%; max-width: 460px; background: #fff; border-radius: 10px; overflow: hidden; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.2); }
.d-band { display: flex; height: 56px; }
.d-band i { flex: 1; }
.d-body { padding: 26px 28px 30px; display: flex; flex-direction: column; align-items: center; }
.d-body h1 { font-size: 30px; letter-spacing: 1px; color: #5a5a5a; }
.d-body p { margin-top: 12px; font-size: 14px; line-height: 1.55; color: #555; }
.qr { margin-top: 20px; line-height: 0; }
.qr svg { width: 200px; height: 200px; }
.d-url { margin-top: 12px; font-size: 14px; font-weight: bold; color: #5c76ae; word-break: break-all; }
.d-more { margin-top: 16px; font-size: 13px; color: #777; }
