/* UORealms door player (BBS door games, 6 Nov 2026): the bar above the terminal and the 80x25 terminal itself.
   Its own copy of the DOS player's bar look (isolated modules: nothing shared with dos-games/player). */
@font-face { font-family: "UOR VGA"; src: url("vendor/font/Web437_IBM_VGA_8x16.woff") format("woff"); font-display: block; }
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; overflow: hidden; }

.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: #232a48; color: #f3ead2; border: 1px solid rgba(255,236,190,.3); }
.uor-btn:disabled { opacity: .45; cursor: default; }
.uor-btn:focus-visible { outline: 2px solid #e3c56a; outline-offset: 2px; }
.uor-btn.uor-fav { background: #232a48; color: #f3ead2; border: 1px solid rgba(255,236,190,.3); }
.uor-btn.uor-fav[aria-pressed="true"] { background: #3a3420; color: #f6dd92; border-color: rgba(227,197,106,.7); }
.gk-hidden { display: none !important; }

/* The terminal: always 80 columns by 25 rows, scaled to fit the frame (door-player.js sets --door-scale) */
#door { position: relative; flex: 1 1 auto; min-height: 0; width: 100%; overflow: hidden; background: #000; display: flex; align-items: center; justify-content: center; }
#door-screen { flex: 0 0 auto; transform-origin: center center; transform: scale(var(--door-scale, 1)); }
#door-screen .xterm { padding: 0 10px 0 0; }   /* a lane for the scroll bar so it never covers column 80 */
/* scroll back (call out 654): a slim scroll bar in our gold, only once there are lines to scroll back to */
#door-screen .xterm-viewport { overflow-y: auto !important; background: #000 !important; scrollbar-width: thin; scrollbar-color: rgba(227,197,106,.55) transparent; }
#door-screen .xterm-viewport::-webkit-scrollbar { width: 8px; }
#door-screen .xterm-viewport::-webkit-scrollbar-track { background: transparent; }
#door-screen .xterm-viewport::-webkit-scrollbar-thumb { background: rgba(227,197,106,.55); border-radius: 4px; }
#door-screen .xterm-viewport::-webkit-scrollbar-thumb:hover { background: rgba(227,197,106,.8); }
#door:fullscreen, #door:-webkit-full-screen { background: #000; }

/* Messages over the terminal: connecting, ended, offline */
.door-note { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(0,0,0,.72); z-index: 5; }
.door-note[hidden] { display: none; }
.door-note-box { max-width: 760px; padding: 24px 30px; border-radius: 16px; text-align: center; color: #f3ead2; font-size: 16px; line-height: 1.5; text-wrap: pretty;   /* wider, and no word left alone on a line (call out 658) */
  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); }
.door-note-box p { margin: 0 0 16px; }
.door-note-box p:last-child { margin-bottom: 0; }
.door-note-box .door-report { font-size: 14px; color: #d6dcf0; }
.door-note-box .door-report a { color: #e3c56a; font-weight: 700; }
.door-spin { display: none; }   /* marker only: the box closes when the game starts */
.door-spin.door-queue-art { display: block; width: 420px; max-width: 100%; aspect-ratio: 2 / 1; margin: 0 auto 14px; background: url('queue-torch.webp') no-repeat center / contain; }
/* the waiting line's sweep (Jason, 20 Nov): a thin gold glow moving side to side along the bottom of the box, so the line shows it is working */
.door-note-box:has(.door-queue-art) { position: relative; overflow: hidden; }
.door-note-box:has(.door-queue-art)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, transparent, rgba(227,197,106,.95), transparent) no-repeat, rgba(227,197,106,.12);
  background-size: 30% 100%, 100% 100%; animation: door-queue-sweep 2.4s ease-in-out infinite alternate; }
@keyframes door-queue-sweep { from { background-position: -30% 0, 0 0; } to { background-position: 130% 0, 0 0; } }
/* Still playing? (Jason, 20 Nov 2026; mockups/play-paused): play time paused for no input, until the next key. The waiting line's box
   with the explorer picture on the left */
.door-note-box.door-paused { display: flex; align-items: center; gap: 26px; text-align: left; max-width: 760px; }
.door-note-box.door-paused img { width: 150px; height: auto; flex: none; }
.door-note-box.door-paused h2 { margin: 0 0 12px; font-size: 22px; font-weight: 700; color: #f3ead2; }
.door-note-box.door-paused p { margin: 0 0 14px; }
.door-note-box.door-paused p:last-child { margin: 0; }
@media (max-width: 560px) { .door-note-box.door-paused { flex-direction: column; text-align: center; gap: 14px; } .door-note-box.door-paused img { width: 110px; } }
/* Session Ended (Jason, 20 Nov 2026; mockups/session-ended): signed out for being idle, so the game closed. The waiting line's box
   with the picture on top, the words and Sign In */
.door-note-box.door-ended { max-width: 560px; padding: 24px 32px 26px; text-align: center; }
.door-note-box.door-ended img { display: block; width: 300px; max-width: 100%; height: auto; margin: 0 auto 14px; }
.door-note-box.door-ended h2 { margin: 0 0 10px; font-size: 22px; font-weight: 700; color: #f3ead2; }
.door-note-box.door-ended p { margin: 0 0 18px; }
.door-note-box.door-ended .uor-btn { padding: 0 18px; }

/* "Don't forget to rate the game" (call outs 1104 and 1108): at the top of the game window while it opens, 8 seconds, then fades; only when the member can rate this game */
.door-rate-banner { position: absolute; top: 14px; 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; white-space: nowrap; box-shadow: 0 8px 24px rgba(0, 0, 0, .6); pointer-events: none; transition: opacity .6s ease; }
.door-rate-banner.is-going { opacity: 0; }
