/* ==========================================================================
   FijyOS 5 programs (D-032): the parts inside pages. Photos (Explorer and
   Viewer), Music, About, posts, tiles, Videos, Favourites, Downloads, Links,
   Guestbook, sign-in, Arcade and FF. Touch-sized: 44px targets.
   Taken from the 4.x os.css; window, taskbar and Start menu parts are gone.
   ========================================================================== */

/* window parts */
.doc { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 14px 18px; background: var(--win); color: var(--win-text); box-shadow: var(--sunken); }
.pane { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 10px 12px; }
.view { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 10px; background: var(--win); color: var(--win-text); box-shadow: var(--sunken); }
.view.flush { padding: 2px; }
.doc a, .view a { color: var(--link); }
.toolbar { flex: none; display: flex; align-items: center; gap: 2px; flex-wrap: wrap; padding: 2px 2px 3px; margin-bottom: 2px; border-bottom: 1px solid var(--face-sh); box-shadow: 0 1px 0 var(--face-hi); }
.tbtn { display: inline-flex; align-items: center; gap: 5px; min-height: 24px; padding: 2px 7px; color: var(--text); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; }
.tbtn:visited { color: var(--text); }
.tbtn:hover { box-shadow: var(--raised-soft); }
.tbtn:active, .tbtn[aria-pressed="true"], .tbtn.on { box-shadow: var(--sunken-soft); }
.tbtn.on, .tbtn[aria-pressed="true"] { background: repeating-conic-gradient(var(--face) 0 25%, var(--face-lt) 0 50%) 0 0 / 2px 2px; }
.tbtn[disabled] { color: var(--face-sh); cursor: default; box-shadow: none; }
.tbtn[disabled] img { opacity: .45; filter: grayscale(1); }
.tbtn img { width: 16px; height: 16px; }
.tsep { width: 2px; height: 20px; margin: 0 3px; border-left: 1px solid var(--face-sh); border-right: 1px solid var(--face-hi); }
.tlabel { margin: 0 2px 0 8px; }
.push { margin-left: auto; }
.toolbar select { width: auto; min-width: 120px; }
.up-ico { width: 0; height: 0; border: 5px solid transparent; border-bottom: 7px solid currentColor; border-top: 0; margin: 0 3px; }
.tbtn[disabled] .up-ico { border-bottom-color: var(--face-sh); }
.arr { width: 0; height: 0; border: 5px solid transparent; }
.arr.l { border-right: 6px solid currentColor; border-left: 0; }
.arr.r { border-left: 6px solid currentColor; border-right: 0; }
.tbtn[disabled] .arr { opacity: .4; }
.addr { flex: none; display: flex; align-items: center; gap: 6px; padding: 1px 2px 4px; }
.addr-l { color: var(--text-dim); }
.addr-f { flex: 1; min-width: 0; display: flex; align-items: center; gap: 2px; min-height: 22px; padding: 1px 4px; background: var(--win); color: var(--win-text); box-shadow: var(--sunken); overflow-x: auto; white-space: nowrap; }
.addr-f .sep { color: var(--text-faint); padding: 0 2px; }
.crumb { display: inline-flex; align-items: center; gap: 4px; padding: 0 2px; color: inherit; background: none; border: 0; font: inherit; cursor: pointer; }
.crumb:hover span { text-decoration: underline; }
.statusbar { flex: none; display: flex; gap: 2px; margin-top: 2px; padding-right: 16px; }
.statusbar > span { flex: 1 1 0; min-width: 0; min-height: 20px; padding: 1px 6px; font-size: var(--fs-0); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: var(--sunken-soft); }
.statusbar > span:first-child { flex-grow: 2; }
.sb-nav a { margin-left: 8px; color: var(--link); }
.menubar { flex: none; display: flex; gap: 2px; padding: 0 0 3px; }
.menubar span { padding: 1px 6px; }
.pad { padding: 8px; }

/* dialog parts */
.dlg { padding: 12px 14px; }
.dlg-row { display: flex; gap: 14px; align-items: flex-start; }
.dlg-row > .px, .logon-row > .px { flex: none; image-rendering: pixelated; }
.dlg-btns { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.dlg-foot { flex: none; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 8px 6px 4px; }


/* Music */
.player { padding: 8px; }
.lcd { display: flex; align-items: center; gap: 8px; padding: 4px 8px; color: #7dff7d; background: #000; box-shadow: var(--sunken); font-family: var(--f-term); font-size: 19px; line-height: 1.1; }
.lcd .marquee { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; }
.lcd-time { flex: none; }
html[data-fx="on"] .player.playing .marquee span { display: inline-block; padding-left: 100%; animation: marquee 14s linear infinite; }
@keyframes marquee { to { transform: translateX(-100%); } }
.eq { display: flex; align-items: flex-end; gap: 1px; height: 14px; }
.eq i { display: block; width: 3px; height: 3px; background: #7dff7d; }
html[data-fx="on"] .player.playing .eq i { animation: eq .5s steps(4) infinite alternate; }
.eq i:nth-child(2) { animation-delay: -.2s !important; } .eq i:nth-child(3) { animation-delay: -.35s !important; } .eq i:nth-child(4) { animation-delay: -.1s !important; }
@keyframes eq { to { height: 14px; } }
.player-controls { display: flex; align-items: center; gap: 4px; margin: 8px 0; }
.player-controls input { flex: 1; }
.playlist { list-style: none; margin: 0; padding: 2px; max-height: 150px; overflow: auto; }
.playlist button { width: 100%; padding: 1px 4px; color: inherit; text-align: left; font: inherit; background: none; border: 0; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.playlist li.on button { background: var(--sel); color: var(--sel-text); }


/* About */
.about { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 8px; }
.about-pic { flex: none; width: 180px; margin: 0; padding: 4px; text-align: center; color: var(--text); background: var(--face); box-shadow: var(--raised); }
.about-pic img { display: block; width: 100%; height: auto; box-shadow: var(--sunken-soft); }
.about-mark { display: grid; place-items: center; aspect-ratio: 1; background: var(--desk); box-shadow: var(--sunken-soft); }
.about-mark .ff-mark { width: 46%; color: #fff; }
.about-pic figcaption { padding: 4px 0 1px; font-size: var(--fs-0); }
.lede { font-size: var(--fs-2); color: var(--text-dim); }

/* lists of posts */
.post { padding: 10px 0 8px; border-bottom: 1px dotted var(--face-sh); }
.post:last-child { border-bottom: 0; }
.post-d { margin: 0; color: var(--text-faint); font-size: var(--fs-0); }
.post h2 { margin: 2px 0 6px; font-size: var(--fs-3); }
.post h2 a { color: inherit; }
.doc .prose h2:first-of-type { margin-top: 2px; }

/* tiles (art, games, favourites, shared albums) */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 12px 6px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px; color: inherit; text-align: center; text-decoration: none; }
.tile:visited { color: inherit; }
.tile-img { display: grid; place-items: center; width: 116px; height: 116px; padding: 3px; background: var(--win); box-shadow: var(--sunken-soft); }
.tile-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.tile-img > .px { image-rendering: pixelated; }
.tile-img.flat { width: auto; height: 56px; padding: 0; background: none; box-shadow: none; }
.icons-view .tile-img.flat img:not(.px) { width: 96px; height: 72px; object-fit: cover; box-shadow: var(--sunken-soft); padding: 2px; background: var(--win); }
.tile-t { font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; padding: 0 2px; }
.tile-m { color: var(--text-faint); font-size: var(--fs-0); }
.tile:hover .tile-t { text-decoration: underline; }
.tile:focus-visible { outline: 0; }
.tile:focus-visible .tile-t { background: var(--sel); color: var(--sel-text); outline: 1px dotted var(--win-text); }
.view-h { margin: 4px 0 10px; padding-bottom: 3px; font-size: var(--fs-2); border-bottom: 1px solid var(--face-lt); }

/* Photos: Explorer */
.explorer { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.ex-body { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 3px; }
.ex-body.no-tree { grid-template-columns: minmax(0, 1fr); }
.ex-body.no-tree .ex-tree { display: none; }
.ex-tree { overflow: auto; padding: 4px 2px; }
.ex-tree ul { list-style: none; margin: 0; padding: 0; }
.tn { display: flex; align-items: center; gap: 4px; width: 100%; padding: 1px 4px 1px calc(4px + var(--depth, 0) * 14px); color: inherit; text-align: left; white-space: nowrap; font: inherit; background: none; border: 0; cursor: pointer; }
.tn img { flex: none; }
.tn span { overflow: hidden; text-overflow: ellipsis; padding: 0 2px; }
.tn.sel span { background: var(--sel); color: var(--sel-text); }
.tn:focus-visible { outline: 0; }
.tn:focus-visible span { outline: 1px dotted var(--win-text); }
.ex-view { overflow: auto; padding: 6px; position: relative; }
.grid-it { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px 4px; align-content: start; }
.it { position: relative; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 3px; color: inherit; font: inherit; background: none; border: 0; cursor: default; -webkit-tap-highlight-color: transparent; }
.it-img { display: grid; place-items: center; width: 106px; height: 106px; background: var(--win-alt); border: 1px solid var(--face-lt); overflow: hidden; }
.it-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.it-img.fold { position: relative; background: none; border: 0; }
.it-img.fold > .px { width: 76px; height: 76px; image-rendering: pixelated; }
.fold-peek { position: absolute; left: 50%; top: 56%; width: 46px !important; height: 34px !important; object-fit: cover !important; transform: translate(-50%, -50%) rotate(-3deg); border: 2px solid #fff; box-shadow: 1px 1px 0 rgba(0, 0, 0, .45); }
.it-t { max-width: 100%; padding: 0 2px; font-size: var(--fs-0); line-height: 1.25; overflow: hidden; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.it-m { font-size: 11px; color: var(--text-faint); }
.it.sel .it-t { background: var(--sel); color: var(--sel-text); }
.it.sel .it-img:not(.fold) { outline: 2px solid var(--sel); outline-offset: -1px; }
.it:focus-visible { outline: 0; }
.it:focus-visible .it-t { outline: 1px dotted var(--win-text); }
.it-vid { position: absolute; top: 42px; left: 50%; display: grid; place-items: center; width: 28px; height: 28px; transform: translateX(-50%); color: #fff; font-size: 12px; background: rgba(0, 0, 0, .6); border-radius: 50%; }
.it-flag { position: absolute; top: 4px; right: 6px; padding: 0 3px; font-size: 10px; color: var(--text-dim); background: var(--face); border: 1px solid var(--face-sh); }
.it-flag.private { color: var(--bad); }
.it-flag.shared { color: var(--info); }
.more-row { padding: 14px; text-align: center; }

/* Photo Viewer: the photo is never filtered */
.pv { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.pv-body { flex: 1 1 auto; min-height: 0; display: flex; gap: 3px; }
.pv-stage { position: relative; flex: 1; min-width: 0; background: #262626; box-shadow: var(--sunken); }
.pv-stage:fullscreen { background: #000; }
.pv-media { position: absolute; inset: 2px; display: grid; place-items: center; overflow: hidden; }
.pv-media img, .pv-media video, .stage-clean img { max-width: 100%; max-height: 100%; object-fit: contain; filter: none !important; mix-blend-mode: normal !important; image-rendering: auto; }
.pv-media.zoomed { display: block; overflow: auto; cursor: grab; }
.pv-media.zoomed:active { cursor: grabbing; }
.pv-media.zoomed img { max-width: none; max-height: none; }
.pv-wait { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 4px 10px; color: #ddd; background: rgba(0, 0, 0, .55); }
.pv-note { padding: 20px; color: #ddd; text-align: center; }
.pv-info { flex: none; width: 260px; overflow: auto; padding: 8px; font-size: var(--fs-0); }
.pv-info dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 0; }
.pv-info dt { color: var(--text-faint); }
.pv-info dd { margin: 0; overflow-wrap: anywhere; }
.tz { display: block; font-size: 11px; color: var(--text-faint); }
.pv-gps { display: flex; gap: 6px; align-items: flex-start; margin: 10px 0 0; color: var(--bad); }

/* single piece of art */
.split { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 3px; }
.stage-clean { display: grid; place-items: center; overflow: auto; padding: 8px; background: #262626; box-shadow: var(--sunken); }
.doc.side { overflow: auto; }
.figure { margin: 14px 0; }
.figure img, .figure video { display: block; max-width: 100%; height: auto; }
figcaption { font-size: var(--fs-0); color: var(--text-faint); }

/* Videos */
.vid-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px 14px; margin-bottom: 18px; }
.vid h3 { margin: 6px 0 2px; font-size: var(--fs-1); }
.vid-frame { position: relative; aspect-ratio: 16 / 9; padding: 2px; background: #000; box-shadow: var(--sunken-soft); }
.vid-frame img, .vid-frame video, .vid-frame iframe { display: block; width: 100%; height: 100%; object-fit: cover; border: 0; }
.vid-frame video { object-fit: contain; }
.vid-noposter { display: grid; place-items: center; height: 100%; }
.vid-play { position: absolute; inset: 0; display: grid; place-items: center; background: none; border: 0; cursor: pointer; }
.vid-play span { display: grid; place-items: center; width: 50px; height: 34px; color: var(--text); font-size: 14px; background: var(--face); box-shadow: var(--raised); }
.vid-play:hover span { background: var(--face-lt); }
.vid-play:focus-visible span { outline: 1px dotted var(--text); outline-offset: -5px; }
.vid-note { margin: 2px 0 0; font-size: 11px; color: var(--text-faint); }

/* Favourites */
.rank { list-style: none; margin: 0; padding: 0; }
.rank li { display: grid; grid-template-columns: 34px 76px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px dotted var(--face-sh); }
.rank-n { font-size: 22px; font-weight: 700; color: var(--text-faint); text-align: right; }
.rank li:first-child .rank-n { color: var(--title-2); }
.rank-img img { width: 76px; height: 76px; object-fit: cover; padding: 2px; background: var(--win); box-shadow: var(--sunken-soft); }
.rank h3 { margin: 0 0 2px; }
.stars { color: #d79a00; letter-spacing: 1px; }

/* Downloads, Links, Guestbook */
.file-n { display: flex; align-items: center; gap: 6px; }
.shortcuts { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px; }
.shortcuts a { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; column-gap: 8px; padding: 6px; color: inherit; text-decoration: none; }
.shortcuts a:hover { background: var(--win-alt); }
.shortcuts a:hover .sc-t { text-decoration: underline; }
.sc-ico { grid-row: span 2; display: grid; place-items: center; }
.sc-ico img { max-width: 32px; max-height: 32px; }
.sc-t { font-weight: 700; overflow-wrap: anywhere; }
.sc-u { font-size: 11px; color: var(--text-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gb { min-height: 120px; padding: 6px 12px; }
.gb-entry { padding: 8px 0; border-bottom: 1px dotted var(--face-sh); }
.gb-entry:last-child { border-bottom: 0; }
.gb-h { margin: 0 0 3px; }
.gb-m { margin: 0; overflow-wrap: anywhere; }
.gb-reply { margin: 6px 0 0 14px; padding-left: 8px; color: var(--text-dim); border-left: 2px solid var(--face-sh); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Log on */
.logon { display: flex; flex-direction: column; flex: 1; }
.logon-banner { flex: none; display: flex; align-items: center; gap: 12px; height: 62px; padding: 0 16px; color: var(--title-text); font-size: 18px; background: linear-gradient(90deg, var(--title-1), var(--title-2)); }
.logon-banner .ff-mark { width: 28px; height: auto; color: #fff; }
.logon-row { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.logon-row h2 { margin: 0 0 2px; }
.logon-row p { margin: 4px 0 0; }
.lf { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 8px; margin-bottom: 8px; }
.lf label { margin: 0; }
.logon-form { margin-bottom: 8px; }
.narrow-form { max-width: 380px; }

/* Arcade */
.carts { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 14px; }
.cart { display: flex; flex-direction: column; padding: 10px 10px 8px; color: #eee; text-decoration: none; background: #3a3a3c; border-radius: 6px 6px 2px 2px; box-shadow: inset -2px -2px 0 #1f1f20, inset 2px 2px 0 #5d5d60; }
.cart:visited { color: #eee; }
.cart::before { content: ""; display: block; height: 6px; margin: -4px 18px 8px; background: repeating-linear-gradient(90deg, #2a2a2c 0 4px, #4a4a4d 4px 8px); }
.cart-label { display: flex; flex-direction: column; justify-content: flex-end; min-height: 98px; padding: 8px; color: #fff; background: linear-gradient(160deg, var(--title-1), var(--title-2)); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .22); }
.cart-kind { font-family: var(--f-term); font-size: 16px; opacity: .85; }
.cart-t { font-size: var(--fs-2); font-weight: 700; line-height: 1.2; }
.cart-d { min-height: 2.6em; margin: 8px 2px; color: #d6d6d6; font-size: var(--fs-0); }
.cart-f { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.cart-f .faint { color: #b6b6b6; }
.cart:hover .cart-t { text-decoration: underline; }
.cart:focus-visible { outline: 2px dotted var(--sel); outline-offset: 2px; }
.machine { flex: 1 1 auto; min-height: 0; overflow: auto; padding: 8px; }
.machine-screen { position: relative; display: grid; place-items: center; aspect-ratio: var(--ar, 4 / 3); max-height: 60vh; margin: 0 auto; overflow: hidden; background: #000; box-shadow: var(--sunken); }
.machine-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.machine-screen:fullscreen { max-height: none; }
/* (6.18.0) where a page cannot go full screen (an iPhone), the game fills the window instead */
.machine-screen.is-fill { position: fixed; inset: 0; z-index: 2147483000; width: 100vw; height: 100vh; height: 100dvh; max-height: none; aspect-ratio: auto; margin: 0; border-radius: 0; box-shadow: none; }
.machine-unfill { position: absolute; top: max(4px, env(safe-area-inset-top)); right: max(6px, env(safe-area-inset-right)); left: auto; z-index: 2; min-height: 40px; padding: 0 16px; color: #f3ead8; font: 600 13px/1 var(--f-ui, sans-serif); background: rgba(18, 11, 7, .72); border: 1px solid rgba(232, 200, 140, .4); border-radius: 20px; opacity: .8; }
/* (6.22.1) no turning: the game lays itself out for an upright phone. Lifted to the top of the page while it plays. */
body > .machine-screen.is-fill { z-index: 2147483000; }
/* (6.27.0) the game keeps clear of the notch, the island and the home bar: the frame inside the screen stands inside
   the safe area (a game in a frame cannot see these itself), and the strips outside it stay black */
.machine-screen.is-fill { background: #000; }
/* (6.27.0, fixed) a frame is a replaced element: "width: auto" between left and right leaves it at its own 300 × 150,
   so its size is given outright */
.machine-screen.is-fill iframe { top: env(safe-area-inset-top, 0px); left: env(safe-area-inset-left, 0px); right: auto; bottom: auto;
  width: calc(100% - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)); height: calc(100% - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); }
.machine-screen.is-fill { background-image: none !important; }
html.arcade-fill, html.arcade-fill body { overflow: hidden; }
html.arcade-fill .shell-main { z-index: 9000; } /* above the phone's bar of sections while the game fills the window */
.coin .coin-cover { width: 128px; height: 128px; }
.coin { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #fff; font: 700 var(--fs-2) var(--f-ui); background: none; border: 0; cursor: pointer; }
.coin small { font-weight: 400; color: #aaa; }
.coin .px { width: 64px; height: 64px; image-rendering: pixelated; }
.coin:focus-visible { outline: 1px dotted #fff; outline-offset: 6px; }
.machine-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0; }




/* ==========================================================================
   Music: "what I listen to" (public/music.php, data from stats.fm)
   ========================================================================== */
.mu-bar .mu-ext { margin-left: auto; }
.doc.music { padding: 14px 16px 18px; }
.music h3 { margin: 16px 0 8px; font-size: var(--fs-2); }
.mu-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mu-head h2 { margin: 0; }
.mu-avatar { width: 64px; height: 64px; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 2px var(--win), 0 0 0 3px var(--face-sh); }
.mu-stats { display: flex; gap: 6px; margin: 0 0 0 auto; }
.mu-stats div { min-width: 74px; padding: 4px 10px; text-align: center; background: var(--lcd, #0b0f14); color: var(--acc-b, #12b8a0); box-shadow: var(--sunken); }
.mu-stats dt { font-size: var(--fs-0); color: #9aa3ad; }
.mu-stats dd { margin: 0; font-family: var(--f-term); font-size: 22px; line-height: 1.1; text-shadow: 0 0 calc(10px * var(--glow-a)) currentColor; }
.mu-now { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; padding: 6px 10px; background: var(--win-alt); box-shadow: var(--sunken-soft); }
.mu-now img { width: 40px; height: 40px; object-fit: cover; }
html[data-fx="on"] .mu-now .eq i { animation: eq .5s steps(4) infinite alternate; }
.mu-artists { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px 10px; margin: 0; padding: 0; list-style: none; }
.mu-artists li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; min-width: 0; }
.mu-pic { position: relative; width: 88px; height: 88px; border-radius: 50%; background: var(--face-lt); box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.mu-pic img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.mu-rank { position: absolute; left: -2px; top: -2px; min-width: 24px; height: 24px; padding: 0 5px; border-radius: 12px; background: var(--title-2); color: var(--title-text, #fff); font-size: 12px; line-height: 24px; box-shadow: 0 0 0 2px var(--win); }
.mu-artists li:first-child .mu-rank { background: var(--acc-a); color: #111; }
.mu-name { font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mu-trend { font-size: 10px; } .mu-trend.up { color: var(--ok); } .mu-trend.down { color: var(--bad); }
.mu-trend.new { padding: 0 4px; border-radius: 3px; background: var(--acc-c); color: #fff; font-weight: 700; text-transform: uppercase; }
.mu-cols { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0 24px; }
.mu-tracks { margin: 0; padding: 0; list-style: none; }
.mu-tracks li { display: grid; grid-template-columns: 22px 40px 1fr auto; align-items: center; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--win-alt); }
.mu-tracks img, .mu-blank { width: 40px; height: 40px; object-fit: cover; background: var(--face-lt); }
.mu-num { text-align: right; color: var(--text-dim); }
.mu-tt { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mu-albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.mu-albums li { min-width: 0; }
.mu-cover { display: block; aspect-ratio: 1; background: var(--face-lt); box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.mu-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mu-al { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-0); }
.mu-genres { display: flex; flex-wrap: wrap; gap: 4px; }
.chip { display: inline-block; padding: 1px 8px; border-radius: 10px; background: var(--win-alt); box-shadow: inset 0 0 0 1px var(--face-sh); font-size: var(--fs-0); }
@media (max-width: 700px) { .mu-cols { grid-template-columns: 1fr; } .mu-stats { margin-left: 0; } .mu-stats div { min-width: 0; flex: 1; } .mu-pic { width: 72px; height: 72px; } }

/* Music in the dashboard (admin/music.php): the whole stats.fm profile */
.mu-dash .mu-now { margin: 0 0 12px; }
.mu-totals { margin: 0 0 14px; }
.mu-card { margin-bottom: 14px; }
.mu-two { align-items: start; }
.mu-side { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.mu-recent li { grid-template-columns: 36px 1fr auto; }
.mu-recent img, .mu-recent .mu-blank { width: 36px; height: 36px; }
.mu-tracks .num { text-align: right; white-space: nowrap; }
.mu-dash .mu-tracks .num > span { display: block; }
.lcd-row.mu-totals { grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); }
@media (max-width: 560px) {
  .lcd-row.mu-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mu-totals .lcd-read.big { grid-column: span 2; }
  .mu-totals .lcd-read .v { font-size: calc(var(--fs) * 1.9); }
  .mu-totals .lcd-read.big .v { font-size: calc(var(--fs) * 2.8); }
  .mu-dash .mu-artists { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 6px; }
  .mu-dash .mu-pic { width: 64px; height: 64px; }
  .mu-dash .mu-name { font-size: var(--fs-0); }
  .mu-dash .mu-tracks li { grid-template-columns: 22px 40px minmax(0, 1fr); }
  .mu-dash .mu-recent li { grid-template-columns: 36px minmax(0, 1fr); }
  .mu-dash .mu-tracks .num { grid-column: -2; text-align: left; margin-top: -4px; }
  .mu-dash .mu-tracks .num > span { display: inline; }
  .mu-dash .mu-tracks .num > span + span::before { content: " · "; }
  .mu-dash .mu-albums { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.mu-settings { margin: 4px 0 18px; }
.mu-settings summary { cursor: pointer; min-height: 32px; display: flex; align-items: center; }
html[data-theme="hall"] .mu-tracks li { border-bottom-color: rgba(232, 200, 140, .08); }
html[data-theme="hall"] .mu-pic, html[data-theme="hall"] .mu-cover, html[data-theme="hall"] .mu-tracks img, html[data-theme="hall"] .mu-blank { background: rgba(8, 5, 3, .4); }
html[data-theme="hall"] .mu-rank { background: rgba(18, 12, 8, .9); color: #f3e3bd; box-shadow: inset 0 0 0 1px rgba(232, 200, 140, .35); }
html[data-theme="hall"] .mu-artists li:first-child .mu-rank { background: #d9b46a; color: #1a120a; }
html[data-theme="hall"] .mu-now { background: rgba(8, 5, 3, .45); box-shadow: inset 0 0 0 1px rgba(232, 200, 140, .12); }
html[data-theme="hall"] .chip { background: rgba(8, 5, 3, .4); box-shadow: inset 0 0 0 1px rgba(232, 200, 140, .2); color: #efe2c8; }


/* ==========================================================================
   5.0 adjustments: pages are sheets now, not windows, so the boxes inside
   them lose their old bevels and get touch-sized controls.
   ========================================================================== */
.doc, .view, .pane { overflow: visible; padding: 0; background: none; color: inherit; box-shadow: none; }
.view.flush { padding: 0; }
.toolbar { gap: 6px; padding: 0 0 10px; margin-bottom: 10px; border-bottom: 1px solid var(--line); box-shadow: none; }
.tbtn { min-height: 44px; padding: 6px 12px; gap: 8px; border-radius: var(--radius-sm); color: var(--surface-text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; }
.tbtn:visited { color: var(--surface-text); }
.tbtn:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 55%, var(--line)); }
.tbtn:active { box-shadow: var(--pressed); }
.tbtn.on, .tbtn[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 16%, var(--surface-2)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent); }
.tbtn[disabled] { opacity: .45; color: var(--surface-text); box-shadow: inset 0 0 0 1px var(--line); }
.tbtn .px { --ico-ink: currentColor; }
.tsep { width: 1px; height: 28px; margin: 0 2px; border: 0; background: var(--line); }
.toolbar select { min-height: 44px; }
.addr { gap: 8px; padding: 0 0 10px; }
.addr-l { display: none; }
.addr-f { min-height: 40px; padding: 4px 10px; border-radius: var(--radius-sm); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.crumb { min-height: 32px; padding: 0 4px; }
.statusbar { gap: 8px; margin-top: 10px; padding: 0; color: var(--muted); }
.statusbar > span { min-height: 0; padding: 0; box-shadow: none; }
.statusbar > span:empty { display: none; }
.dlg-btns { gap: 8px; margin-top: 16px; }
.dlg-foot { padding: 12px 0 0; }
.pad { padding: 12px; }
.sunken { border-radius: var(--radius-sm); }

/* Photos inside a page: a fixed-height browser */
.explorer { height: calc(100dvh - var(--bar-h) - var(--safe-t) - 210px); min-height: 420px; }
.ex-body { gap: 10px; grid-template-columns: 240px minmax(0, 1fr); }
.ex-tree, .ex-view { border-radius: var(--radius); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.tn { min-height: 40px; padding: 4px 8px 4px calc(8px + var(--depth, 0) * 14px); border-radius: var(--radius-sm); }
.tn span { padding: 0; }
.tn.sel { background: color-mix(in srgb, var(--accent) 18%, transparent); }
.tn.sel span { background: none; color: inherit; font-weight: 600; }
.grid-it { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px 8px; }
.it { cursor: pointer; border-radius: var(--radius); }
.it-img { width: 100%; height: auto; aspect-ratio: 1; border: 0; border-radius: var(--radius-sm); background: var(--surface); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.it-img img { width: 100%; height: 100%; object-fit: cover; max-width: none; max-height: none; }
.it-img.fold { background: none; box-shadow: none; }
.it-img.fold > .px { --s: 84px !important; }
.it.sel .it-t { background: none; color: inherit; font-weight: 700; }
.it.sel .it-img:not(.fold) { outline: 3px solid var(--accent); outline-offset: 2px; }
.it-t { font-size: var(--fs-0); }
.it-flag { border-radius: 6px; border: 0; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }

/* Photo Viewer: a full-screen sheet. The photo itself is never filtered. */
.pv { height: 100%; }
.pv .toolbar { padding: 8px 12px; margin: 0; border-color: #2a2a2a; background: #141414; }
.pv .tbtn { color: #eee; background: #262626; box-shadow: none; }
.pv .tbtn[aria-pressed="true"] { background: #3a3a3a; }
.pv-body { gap: 0; }
.pv-stage { background: #0d0d0d; box-shadow: none; }
.pv-media { inset: 0; }
.pv-info { width: 300px; border-radius: 0; background: #161616; color: #ddd; box-shadow: none; padding: 14px; }
.pv-info dt { color: #9a9a9a; }
.pv .statusbar { margin: 0; padding: 8px 14px calc(8px + var(--safe-b)); background: #141414; color: #aaa; }

.tile { gap: 6px; padding: 8px; border-radius: var(--radius); }
.tile:hover { background: var(--surface-2); }
.tile-img { width: 100%; height: auto; aspect-ratio: 1; border-radius: var(--radius-sm); background: var(--surface-2); box-shadow: none; padding: 0; overflow: hidden; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; max-width: none; max-height: none; }
.tile-img.flat { aspect-ratio: auto; height: 64px; background: none; }
.tile-img.flat img { width: auto; height: 100%; object-fit: contain; }
.tile:focus-visible .tile-t { background: none; color: inherit; outline: 0; text-decoration: underline; }
.view-h { border-color: var(--line); }
.thumb { padding: 0; box-shadow: none; }
.about-pic { padding: 0; background: none; box-shadow: none; }
.about-pic img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-mark { border-radius: var(--radius); background: var(--accent); }
.rank-img img, .vid-frame, .stage-clean { border-radius: var(--radius-sm); }
.rank-img img { padding: 0; box-shadow: none; }
.vid-frame { overflow: hidden; padding: 0; }
.vid-play span { width: 64px; height: 64px; border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff; box-shadow: none; font-size: 22px; }
.shortcuts a { min-height: 56px; border-radius: var(--radius-sm); }
.shortcuts a:hover { background: var(--surface-2); }
.post, .gb-entry, .rank li { border-color: var(--line); border-bottom-style: solid; }
.lcd, .mu-stats div { border-radius: var(--radius-sm); }
.player .lcd { box-shadow: none; }
.cart { border-radius: var(--radius); }
.machine-screen { border-radius: var(--radius-sm); }
.split { gap: 16px; }
.stage-clean { background: #1b1b1b; box-shadow: none; }

/* sign in */
.logon { max-width: 460px; }
.logon-banner { display: none; }
.logon-row { gap: 14px; }
.logon-row .px { --ico-ink: var(--accent); }
.lf { display: block; margin-bottom: 14px; }
.lf label { margin-bottom: 6px; font-weight: 600; }
.logon .dlg-btns { justify-content: flex-start; }
.logon .btn[type="submit"] { min-width: 140px; }

/* ---------- phones ---------- */
@media (max-width: 759px) {
  .explorer { height: calc(100dvh - var(--bar-h) - var(--safe-t) - var(--dock-h) - 150px); min-height: 360px; }
  .ex-body { grid-template-columns: minmax(0, 1fr); }
  .ex-body:not(.no-tree) .ex-view { display: none; }
  .explorer .toolbar .tbtn span:not(.up-ico):not(.arr) { display: none; }
  .explorer .toolbar .tbtn { min-width: 44px; justify-content: center; }
  .explorer .toolbar select { flex: 1 1 120px; }
  .tlabel { display: none; }
  .grid-it { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
  .pv-body { flex-direction: column; }
  .pv-info { width: auto; max-height: 40%; }
  .pv .toolbar { overflow-x: auto; flex-wrap: nowrap; }
  .pv .toolbar .tbtn:has(.px) span:not(.arr), .pv .toolbar .tbtn:has(.arr) span:not(.arr) { display: none; }
  .pv .toolbar .tbtn { min-width: 44px; justify-content: center; flex: none; }
  .pv .toolbar [data-pv-full] { display: none; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .stage-clean { min-height: 50vh; }
  .about { flex-direction: column; align-items: stretch; }
  .about-pic { width: 160px; margin: 0 auto; }
  .rank li { grid-template-columns: 26px 56px minmax(0, 1fr); gap: 8px; }
  .rank-img img { width: 56px; height: 56px; }
  .tiles { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
}

/* sign in (front card) */
.logon { text-align: center; }
.logon-mark { width: 72px; height: 72px; margin: 0 auto 12px; }
.logon-h { margin: 0; font-size: var(--fs-5); }
.logon-sub { margin: 0 0 18px; }
.logon .flash { text-align: left; }
.logon-form { text-align: left; }
.logon-go { width: 100%; margin-top: 6px; }
.logon-note { margin-top: 16px; }
/* 6.6.0: the guest's way in, on the sign-in card at the doors */
.logon-guest { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; margin-top: 14px; padding: 0 16px; border-radius: 12px; text-decoration: none; color: inherit; box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 22%, transparent); transition: background .2s, box-shadow .2s; }
.logon-guest:hover { background: color-mix(in srgb, currentColor 8%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 45%, transparent); }
.logon-guest span:first-child { opacity: .75; }
/* on a narrow phone the words run on as one centred line or two, not as columns */
@media (max-width: 480px) { .logon-guest { display: block; padding: 12px 14px; text-align: center; line-height: 1.35; } }

/* ── 6.8.0: the second step at the doors, and a flare on every key ──
   One ordinary box is typed into; with scripts on (fijy.js adds .live) it is laid invisibly over a row of
   cells that light up digit by digit. Without scripts the box is simply a box. */
.code-box { position: relative; margin: 8px 0 18px; }
.code-cells { display: none; }
.code-box.live input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; min-height: 0; opacity: 0; cursor: text; }
.code-box.live .code-cells { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.code-cells span { position: relative; display: grid; place-items: center; height: 60px; border-radius: 12px; font: 600 26px/1 var(--f-display, inherit); font-variant-numeric: tabular-nums; color: var(--surface-text, inherit); background: var(--field-bg, rgba(0, 0, 0, .18)); box-shadow: inset 0 0 0 1px var(--field-line, rgba(128, 128, 128, .45)); transition: box-shadow .18s, background .18s; }
.code-cells span.next { box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.code-cells span.next::after { content: ""; width: 2px; height: 26px; background: var(--accent); animation: code-caret 1s steps(2) infinite; }
.code-cells span.on { background: color-mix(in srgb, var(--accent) 13%, var(--field-bg, transparent)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 75%, transparent), 0 0 20px -5px var(--accent); text-shadow: 0 0 14px color-mix(in srgb, var(--accent) 85%, transparent); }
.code-cells span.pop { animation: code-pop .36s cubic-bezier(.2, 1.5, .4, 1); }
.code-cells span.pop::before { content: ""; position: absolute; inset: -2px; border-radius: inherit; box-shadow: 0 0 0 2px var(--accent); pointer-events: none; animation: code-ring .55s ease-out forwards; }
.code-box.more .code-cells span:last-child::after { content: "+"; position: absolute; right: 5px; top: 4px; font-size: 12px; opacity: .7; }
.code-box.sent .code-cells span.on { animation: code-sent .9s ease-in-out infinite; animation-delay: calc(var(--i) * 70ms); }
.code-box.wrong .code-cells { animation: code-shake .5s; }
.code-box.wrong .code-cells span { box-shadow: inset 0 0 0 2px var(--bad); }
.logon input.tap { animation: key-glow .34s ease-out; }
.logon.tap .logon-mark { animation: mark-beat .34s ease-out; }
@keyframes code-caret { 50% { opacity: 0; } }
@keyframes code-pop { 0% { transform: scale(.8) translateY(5px); } 60% { transform: scale(1.09); } 100% { transform: none; } }
@keyframes code-ring { to { inset: -13px; opacity: 0; } }
@keyframes code-sent { 50% { box-shadow: inset 0 0 0 1px var(--holo, var(--accent)), 0 0 24px -2px var(--holo, var(--accent)); } }
@keyframes code-shake { 20% { transform: translateX(-9px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
@keyframes key-glow { 0% { box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 8px color-mix(in srgb, var(--accent) 30%, transparent), 0 0 30px -2px var(--accent); } }
@keyframes mark-beat { 30% { transform: scale(1.06); filter: brightness(1.25) drop-shadow(0 0 14px color-mix(in srgb, var(--accent) 70%, transparent)); } }
@media (prefers-reduced-motion: reduce) { .code-cells span, .code-box.wrong .code-cells, .logon input.tap, .logon.tap .logon-mark { animation: none !important; } }
@media (max-width: 420px) { .code-box.live .code-cells { gap: 5px; } .code-cells span { height: 52px; font-size: 22px; } }

/* ── The games room (6.19.0, D-054) ─────────────────────────────────────────────────────────────────────────────
   Walnut, brass, red velvet and a green lamp: the arcade as a room of its own, the same in either theme. One game
   on the stage, the rest on a shelf. No blur anywhere: wood and cloth are painted with gradients. */
.view.arcade.gr { --gr-brass: #d2b072; --gr-brass-hi: #f6e3ad; --gr-brass-lo: #8a672f; --gr-cream: #f3ead8; --gr-dim: #b9a98c; --gr-velvet: #8e1b2b; --gr-velvet-hi: #c8344a; --gr-wood: #2a1a10; --gr-wood-lo: #130b07; --gr-green: #9ec3a6;
  padding: 0; background: none; box-shadow: none; color: var(--gr-cream); overflow: visible; }
.gr-stage { position: relative; isolation: isolate; overflow: hidden; padding: clamp(34px, 4.2vw, 58px) clamp(46px, 7vw, 108px) clamp(22px, 3vw, 40px); border-radius: 22px;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(255, 214, 140, .20), transparent 60%),
    repeating-linear-gradient(92deg, rgba(255, 220, 160, .035) 0 2px, transparent 2px 7px, rgba(0, 0, 0, .08) 7px 9px, transparent 9px 19px),
    linear-gradient(180deg, #3a2416 0%, var(--gr-wood) 38%, var(--gr-wood-lo) 100%);
  box-shadow: inset 0 0 0 1px rgba(210, 176, 114, .5), inset 0 0 0 7px #170e09, inset 0 0 0 8px rgba(210, 176, 114, .22), inset 0 -60px 80px -40px rgba(0, 0, 0, .7), 0 34px 80px -34px rgba(0, 0, 0, .9); }
/* the velvet: a pelmet across the top with a scalloped hem, a curtain down each side */
.gr-pelmet { position: absolute; z-index: 2; inset: 8px 8px auto; height: clamp(22px, 2.6vw, 34px); border-radius: 14px 14px 0 0;
  background: repeating-linear-gradient(90deg, #6d1220 0 9px, #a82639 9px 20px, #84182a 20px 31px, #5b0e1a 31px 38px); box-shadow: 0 6px 14px rgba(0, 0, 0, .55), inset 0 -3px 0 rgba(210, 176, 114, .75), inset 0 -4px 0 rgba(0, 0, 0, .35); }
.gr-pelmet::after { content: ""; position: absolute; inset: 100% 0 auto; height: 12px; background: radial-gradient(circle at 19px 0, #84182a 0 11px, transparent 12px) 0 0 / 38px 12px repeat-x; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .5)); }
.gr-drape { position: absolute; z-index: 1; top: 8px; bottom: 8px; width: clamp(26px, 5.2vw, 78px);
  background: repeating-linear-gradient(90deg, #4f0c17 0 6px, #9c2235 6px 15px, #c8344a 15px 18px, #7a1524 18px 27px, #3f0912 27px 32px); box-shadow: inset 0 -90px 70px -50px rgba(0, 0, 0, .75), inset 0 40px 40px -30px rgba(0, 0, 0, .5); }
.gr-drape.l { left: 8px; border-radius: 14px 0 46% 14px / 14px 0 9% 14px; box-shadow: inset 0 -90px 70px -50px rgba(0, 0, 0, .75), inset 0 40px 40px -30px rgba(0, 0, 0, .5), 10px 0 24px -6px rgba(0, 0, 0, .7); }
.gr-drape.r { right: 8px; border-radius: 0 14px 14px 46% / 0 14px 14px 9%; box-shadow: inset 0 -90px 70px -50px rgba(0, 0, 0, .75), inset 0 40px 40px -30px rgba(0, 0, 0, .5), -10px 0 24px -6px rgba(0, 0, 0, .7); }
.gr-marquee { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 44px); align-items: center; color: var(--gr-cream); text-decoration: none; }
.gr-marquee:visited { color: var(--gr-cream); }
.gr-art { position: relative; display: block; aspect-ratio: 1280 / 572; overflow: hidden; border-radius: 14px; background: #0b0705;
  box-shadow: 0 0 0 1px rgba(246, 227, 173, .55), 0 0 0 6px #120a06, 0 0 0 7px rgba(210, 176, 114, .3), 0 26px 60px -22px #000; transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .5s ease; }
.gr-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.gr-art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 70% at 50% 0, rgba(255, 224, 160, .16), transparent 60%), linear-gradient(180deg, transparent 60%, rgba(11, 7, 5, .55)); pointer-events: none; }
.gr-art.is-plain { display: grid; place-items: center; background: radial-gradient(circle at 50% 30%, #3b2717, #130b07 72%); }
.gr-copy { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.gr-eyebrow { color: var(--gr-brass); font: 600 var(--fs-0) var(--f-ui); letter-spacing: .16em; text-transform: uppercase; }
.gr-title { font: 500 clamp(2rem, 3.6vw, 3.3rem) / 1.02 var(--f-display); letter-spacing: -.01em; color: #fff6e2; text-shadow: 0 2px 22px rgba(255, 196, 110, .28); text-wrap: balance; }
.gr-desc { color: #dccfb6; font-size: var(--fs-1); line-height: 1.55; max-width: 46ch; }
.gr-go { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 8px; }
.gr-play, .gr-put { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 34px; border: 0; border-radius: 999px; color: #23150b; font: 700 var(--fs-2) var(--f-ui); letter-spacing: .01em; cursor: pointer;
  background: linear-gradient(180deg, var(--gr-brass-hi), var(--gr-brass) 48%, #a47d3c); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -2px 0 rgba(90, 60, 20, .5), 0 10px 26px -8px rgba(255, 190, 90, .5), 0 2px 0 #5c4118; transition: transform .2s ease, box-shadow .2s ease; }
.gr-meta { color: var(--gr-dim); font-size: var(--fs-0); }
.gr-meta b { color: var(--gr-brass-hi); font-weight: 600; }
.gr-marquee:hover .gr-art, .gr-marquee:focus-visible .gr-art { transform: translateY(-3px) scale(1.012); box-shadow: 0 0 0 1px rgba(246, 227, 173, .9), 0 0 0 6px #120a06, 0 0 0 7px rgba(210, 176, 114, .5), 0 34px 70px -22px #000, 0 0 60px -10px rgba(255, 196, 110, .35); }
.gr-marquee:hover .gr-play, .gr-marquee:focus-visible .gr-play, .gr-put:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -2px 0 rgba(90, 60, 20, .5), 0 14px 34px -8px rgba(255, 190, 90, .7), 0 2px 0 #5c4118; }
.gr-marquee:focus-visible { outline: 2px solid var(--gr-brass-hi); outline-offset: 8px; border-radius: 14px; }
.gr-empty { min-height: 300px; display: grid; place-items: center; text-align: center; }
.gr-none { position: relative; z-index: 3; } .gr-none h2 { margin: 10px 0 4px; font: 500 var(--fs-4) var(--f-display); color: #fff6e2; } .gr-none p { margin: 0; color: var(--gr-dim); }

/* the shelf: a plank with a brass lip, a cabinet for each game */
.gr-shelf { position: relative; margin-top: 22px; padding: 18px clamp(14px, 2vw, 24px) 26px; border-radius: 18px;
  background: repeating-linear-gradient(91deg, rgba(255, 220, 160, .03) 0 2px, transparent 2px 9px, rgba(0, 0, 0, .07) 9px 11px, transparent 11px 23px), linear-gradient(180deg, #24160d, #160d08);
  box-shadow: inset 0 0 0 1px rgba(210, 176, 114, .22), inset 0 -10px 0 #0e0805, inset 0 -11px 0 rgba(210, 176, 114, .4), 0 22px 50px -30px #000; }
.gr-shelf-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0 2px 14px; }
.gr-shelf-h h2 { margin: 0; font: 500 var(--fs-3) var(--f-display); color: #fff6e2; }
.gr-shelf-h p { margin: 0; color: var(--gr-dim); font-size: var(--fs-0); }
.gr-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.gr-cab { position: relative; display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 12px 12px 12px; border-radius: 14px; color: var(--gr-cream); text-decoration: none; text-align: left;
  background: linear-gradient(180deg, #3a2516, #20130b); box-shadow: inset 0 0 0 1px rgba(210, 176, 114, .3), inset 0 1px 0 rgba(255, 230, 180, .12), 0 14px 26px -16px #000; transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease; }
.gr-cab:visited { color: var(--gr-cream); }
.gr-cab-top { display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: 9px; background: radial-gradient(circle at 50% 28%, #4a3220, #120a06 76%); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .6), inset 0 0 24px rgba(0, 0, 0, .6); overflow: hidden; }
.gr-cover { width: 62%; height: auto; max-height: 92%; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .6)); }
.gr-letter { display: grid; place-items: center; width: 64px; height: 64px; aspect-ratio: 1; border-radius: 50%; color: #2a190e; font: 600 34px/1 var(--f-display); background: radial-gradient(circle at 35% 30%, var(--gr-brass-hi), var(--gr-brass) 55%, var(--gr-brass-lo)); box-shadow: inset 0 0 0 2px rgba(60, 40, 14, .5), inset 0 0 0 5px rgba(246, 227, 173, .35), 0 6px 14px rgba(0, 0, 0, .6); filter: none; }
.gr-art .gr-letter { width: 120px; height: 120px; font-size: 64px; }
.gr-cab-t { font: 600 var(--fs-2) var(--f-display); color: #fff6e2; line-height: 1.2; }
.gr-cab-d { color: #cdbfa5; font-size: var(--fs-0); line-height: 1.45; min-height: 2.9em; }
.gr-cab-f { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px; margin-top: auto; padding-top: 4px; font-size: var(--fs-0); }
.gr-dim { color: var(--gr-dim); }
.gr-cab:is(a):hover, .gr-cab:is(a):focus-visible { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgba(246, 227, 173, .75), inset 0 1px 0 rgba(255, 230, 180, .2), 0 22px 34px -16px #000, 0 0 40px -12px rgba(255, 196, 110, .4); outline: 0; }
.gr-cab.is-stage { box-shadow: inset 0 0 0 1px rgba(246, 227, 173, .7), inset 0 1px 0 rgba(255, 230, 180, .16), 0 14px 26px -16px #000; }
.gr-cab.is-stage::after { content: "on the stage"; position: absolute; top: 18px; left: 18px; padding: 2px 8px; border-radius: 999px; color: #23150b; font: 700 10px/1.6 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; background: var(--gr-brass); }
.gr-cab.is-away { background: linear-gradient(180deg, #2a1c12, #19100a); box-shadow: inset 0 0 0 1px rgba(210, 176, 114, .16); }
.gr-cab.is-away .gr-cab-top { opacity: .75; }
.gr-put { min-height: 36px; padding: 0 16px; font-size: var(--fs-0); width: 100%; }
.gr .pill.draft { color: #23150b; background: var(--gr-brass); border-color: transparent; }
.gr + .statusbar { margin-top: 14px; }

/* one game: back link, the cabinet with its name plate, what it is, the rest of the shelf */
.gr-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 0 2px 12px; }
.gr-back { color: var(--gr-brass-hi); font-weight: 600; text-decoration: none; }
.gr-back:hover { text-decoration: underline; }
.gr-bar-r { display: flex; flex-wrap: wrap; gap: 6px; }
.gr-one .machine { padding: 0; overflow: visible; }
.gr-cabinet { position: relative; padding: clamp(12px, 1.6vw, 20px); border-radius: 22px;
  background: radial-gradient(120% 80% at 50% -10%, rgba(255, 214, 140, .16), transparent 60%), repeating-linear-gradient(92deg, rgba(255, 220, 160, .035) 0 2px, transparent 2px 7px, rgba(0, 0, 0, .08) 7px 9px, transparent 9px 19px), linear-gradient(180deg, #3a2416, var(--gr-wood) 40%, var(--gr-wood-lo));
  box-shadow: inset 0 0 0 1px rgba(210, 176, 114, .5), inset 0 0 0 7px #170e09, inset 0 0 0 8px rgba(210, 176, 114, .22), 0 34px 80px -34px rgba(0, 0, 0, .9); }
.gr-plate { display: flex; justify-content: center; margin: 2px 0 12px; }
.gr-plate-t { padding: 6px 26px; border-radius: 8px; color: #2a190e; font: 600 var(--fs-2) var(--f-display); letter-spacing: .04em; background: linear-gradient(180deg, var(--gr-brass-hi), var(--gr-brass) 55%, #a47d3c); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 0 0 1px rgba(90, 60, 20, .55), 0 3px 8px rgba(0, 0, 0, .55); }
.gr-one .machine-screen { max-height: min(68vh, 760px); border-radius: 12px; background-color: #000; background-size: cover; background-position: center; box-shadow: 0 0 0 1px rgba(246, 227, 173, .5), 0 0 0 6px #0f0805, 0 0 0 7px rgba(210, 176, 114, .28), inset 0 0 80px rgba(0, 0, 0, .8); }
.gr-one .machine-screen::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 46%, rgba(11, 7, 5, .35), rgba(11, 7, 5, .82) 78%); pointer-events: none; }
.gr-one .machine-screen iframe { z-index: 1; }
.gr-one .coin { position: relative; z-index: 1; gap: 8px; padding: 18px 30px 20px; border-radius: 22px; color: #fff6e2; font: 600 var(--fs-3) var(--f-display); background: rgba(18, 11, 7, .78); box-shadow: 0 0 0 1px rgba(246, 227, 173, .5), 0 22px 50px -18px #000; transition: transform .25s ease, box-shadow .25s ease; }
.gr-one .coin:hover, .gr-one .coin:focus-visible { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(246, 227, 173, .95), 0 26px 60px -18px #000, 0 0 60px -8px rgba(255, 196, 110, .5); outline: 0; }
.gr-one .coin small { color: var(--gr-dim); font: 400 var(--fs-0) var(--f-ui); }
.gr-one .coin .coin-cover { width: 112px; height: 112px; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .6)); }
.gr-one .machine-panel { margin: 12px 2px 0; color: var(--gr-dim); }
.gr-one .machine-panel .faint { color: var(--gr-dim); }
.gr-one .machine-info { margin-top: 18px; padding: 16px clamp(14px, 2vw, 22px); border-radius: 16px; color: #e6dac2; background: linear-gradient(180deg, #24160d, #170e08); box-shadow: inset 0 0 0 1px rgba(210, 176, 114, .2); }
.gr-one .machine-info .prose { color: inherit; } .gr-one .machine-info strong { color: #fff6e2; }
.gr-one .machine-info fieldset { margin: 14px 0 0; padding: 10px 14px; border: 1px solid rgba(210, 176, 114, .28); border-radius: 12px; }
.gr-one .machine-info legend { padding: 0 8px; color: var(--gr-brass); font: 600 var(--fs-0) var(--f-ui); letter-spacing: .12em; text-transform: uppercase; }
.gr-shelf-sm .gr-row { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.gr-shelf-sm .gr-cab-top { aspect-ratio: 16 / 8; }
@media (max-width: 760px) {
  .gr-stage { padding: 44px 18px 20px; border-radius: 18px; }
  .gr-drape { width: 14px; border-radius: 12px !important; }
  .gr-marquee { grid-template-columns: 1fr; gap: 16px; }
  .gr-row { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
  .gr-play { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .gr-art, .gr-cab, .gr-play, .gr-put, .gr-one .coin { transition: none; } }
/* (6.22.0) the cabinet's own limits must not hold the screen back once it is asked to fill the window or the whole
   screen (since 6.19.0 they did: a filled game stopped at two thirds of the height) */
.gr-one .machine-screen.is-fill, .gr-one .machine-screen:fullscreen { max-height: none; border-radius: 0; box-shadow: none; background-image: none !important; }
.gr-one .machine-screen.is-fill::before, .gr-one .machine-screen:fullscreen::before { display: none; }
/* while a game fills the window nothing of the site may sit on top of it: the page's own bars step aside */
html.arcade-fill .top, html.arcade-fill .tabs-row, html.arcade-fill .tabbar, html.arcade-fill .rail, html.arcade-fill .agent-btn { visibility: hidden; }
html.arcade-fill .sheet { z-index: 9001; }
