/* UORealms Commodore player: the DOS player's Save / Load bar above the game window (its own copy: isolated modules), the
   EmulatorJS game area under it, and the game's controls under that. */
html, body { margin: 0; height: 100%; background: #000; }
body { display: flex; flex-direction: column; font-family: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif; }
.game-area { position: relative; flex: 1 1 auto; min-height: 0; width: 100%; }
#game-screen { position: absolute; inset: 0; }
.loading-spinner { position: absolute; top: 50%; left: 50%; width: 220px; height: 220px; transform: translate(-50%, -50%); background: url('/game-experience-review/assets/uorealms-logo.png') no-repeat center / contain; z-index: 10; animation: uor-spin 9s linear infinite; }
@keyframes uor-spin { from { transform: translate(-50%, -50%) rotate(0); } to { transform: translate(-50%, -50%) rotate(360deg); } }
/* while the UORealms logo spins, EmulatorJS's own loading words stay hidden, as the DOS games show only the logo */
.game-area:has([data-loader]) .ejs_loading_text { visibility: hidden; }
/* "Don't forget to rate the game" under the loading logo (call out 1104), only while the logo shows */
.uor-rate-hint { position: absolute; top: calc(50% + 130px); left: 50%; z-index: 30; margin: 0; padding: 9px 18px; transform: translateX(-50%); border: 1px solid rgba(227, 197, 106, .55); border-radius: 10px; background: rgba(10, 14, 32, .92); color: #f3dc8a; font-size: 17px; font-weight: 700; letter-spacing: .02em; text-align: center; white-space: nowrap; box-shadow: 0 8px 24px rgba(0, 0, 0, .6); pointer-events: none; transition: opacity .6s ease; }
.uor-rate-hint.is-playing { top: 14px; }
.uor-rate-hint.is-going { opacity: 0; }

.uor-bar { position: relative; flex: 0 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 12px; background: linear-gradient(180deg, #1a2140, #0e1328); border-bottom: 1px solid rgba(227,197,106,.35); color: #d6dcf0; font-size: 14px; z-index: 20; }
.uor-status { flex: 1 1 260px; min-width: 0; color: #d6dcf0; }
.uor-status a { color: #e3c56a; font-weight: 700; }
.uor-btn { font: inherit; font-weight: 700; font-size: 14px; min-height: 34px; padding: 0 14px; border-radius: 9px; border: 0; cursor: pointer; background: linear-gradient(180deg, #f0d27a, #c8a84b); color: #1d1404; }
.uor-btn.ghost { background: rgba(255,255,255,.06); color: #f3ead2; border: 1px solid rgba(255,236,190,.3); }
.uor-btn.small { min-height: 28px; padding: 0 10px; font-size: 13px; }
.uor-btn:disabled { opacity: .45; cursor: default; }
.uor-btn:focus-visible { outline: 2px solid #e3c56a; outline-offset: 2px; }
.uor-list { position: absolute; right: 12px; top: calc(100% + 6px); width: min(420px, calc(100vw - 24px)); max-height: 60vh; overflow: auto; padding: 10px; border-radius: 12px; background: #141a30; border: 1px solid rgba(255,236,190,.25); box-shadow: 0 20px 40px rgba(0,0,0,.6); color: #f3ead2; }
.uor-list[hidden] { display: none; }
.uor-row { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-bottom: 1px solid rgba(255,255,255,.06); }
.uor-row:last-child { border-bottom: 0; }
.uor-name { flex: 1 1 auto; min-width: 0; color: #f3ead2; }
.uor-btn.uor-fav { background: rgba(255,255,255,.06); color: #f3ead2; border: 1px solid rgba(255,236,190,.3); }
.uor-btn.uor-fav[aria-pressed="true"] { background: rgba(227,197,106,.16); color: #f6dd92; border-color: rgba(227,197,106,.7); }
.uor-note { flex: 1 1 100%; display: flex; gap: 8px; align-items: center; }
.uor-note[hidden] { display: none; }
.uor-note input { flex: 1; min-width: 0; min-height: 32px; padding: 0 10px; border-radius: 8px; border: 1px solid rgba(255,236,190,.3); background: #0b1022; color: #f3ead2; font: inherit; font-size: 14px; }
.uor-save-note { display: block; margin-top: 2px; color: #f6dd92; font-weight: 600; }
.uor-ask { width: min(440px, calc(100vw - 32px)); padding: 24px 24px 20px; border-radius: 18px; text-align: center; color: #f3ead2; font-family: inherit;
  background: linear-gradient(180deg, rgba(30,36,74,.97), rgba(14,18,40,.98)); border: 1px solid rgba(227,197,106,.35); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.uor-ask::backdrop { background: rgba(4,6,16,.6); }
.uor-ask-text { margin: 0 0 20px; font-size: 16px; line-height: 1.55; }
.uor-ask-actions { display: flex; justify-content: center; gap: 10px; }
.uor-ask-actions .uor-btn { min-width: 110px; min-height: 38px; }
.uor-ask .uor-ask-yes.danger { background: linear-gradient(180deg, #e8806a, #b94a36); color: #fff; }
.uor-paused { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(0,0,0,.72); }
.uor-paused[hidden] { display: none; }
.uor-paused-box { display: flex; align-items: center; gap: 26px; max-width: 760px; padding: 24px 30px; border-radius: 16px; text-align: left; color: #f3ead2; font-size: 16px; line-height: 1.5; text-wrap: pretty;
  background: linear-gradient(180deg, rgba(30,36,74,.97), rgba(14,18,40,.98)); border: 1px solid rgba(227,197,106,.35); box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.uor-paused-box img { width: 150px; height: auto; flex: none; }
.uor-paused-box h2 { margin: 0 0 12px; font-size: 22px; font-weight: 700; color: #f3ead2; }
.uor-paused-box p { margin: 0 0 14px; }
.uor-paused-box p:last-child { margin: 0; }
@media (max-width: 560px) { .uor-paused-box { flex-direction: column; text-align: center; gap: 14px; } .uor-paused-box img { width: 110px; } }

/* under the game window (call outs 1087, 1112, 1113): the game's controls, its items spread edge to edge in lined up columns,
   and for a game on several disks the disk buttons (solid, the one in the drive in gold) */
.uor-foot { flex: 0 0 auto; display: flex; flex-direction: column; gap: 8px; padding: 9px 12px; background: linear-gradient(180deg, #0e1328, #1a2140);
  border-top: 1px solid rgba(227,197,106,.35); }
.uor-disks { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 13px; }
.uor-disk { font: inherit; font-size: 12.5px; font-weight: 700; min-height: 26px; padding: 0 11px; border-radius: 7px; border: 1px solid #5a5f78;
  background: #222a48; color: #f3ead2; cursor: pointer; }
.uor-disk:hover, .uor-disk:focus-visible { border-color: #e3c56a; }
.uor-tape-what { margin-left: 8px; }
.uor-disk[aria-pressed="true"] { border-color: #c8a84b; background: linear-gradient(180deg, #f0d27a, #c8a84b); color: #1d1404; }
.uor-legend { --uor-cols: 1; display: grid; grid-template-columns: repeat(var(--uor-cols), auto); justify-content: space-between; align-items: center;
  gap: 6px 16px; width: 0; min-width: 100%; overflow: hidden; color: #aeb6cf; font-size: 13px; line-height: 1; }
.uor-legend-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.uor-legend-what { color: #c3cae0; font-weight: 600; }
.uor-legend-keys { display: inline-flex; align-items: center; gap: 4px; }
.uor-legend-join { color: #8f98b4; }
.uor-legend kbd { display: inline-flex; align-items: center; min-height: 22px; padding: 0 7px; border-radius: 6px; border: 1px solid rgba(255,236,190,.3);
  border-bottom-width: 2px; background: rgba(255,255,255,.07); color: #f3ead2; font-family: inherit; font-size: 12.5px; font-weight: 700; }
/* narrower screens: the status line on its own row, the buttons under it, the full width */
@media (max-width: 1100px) {
  .uor-status { flex-basis: 100%; }
  .uor-bar > .uor-btn { flex: 1 1 auto; }
}
