/* the World (D197, docs/79): the open world's scene — the canvas, the region's name as it comes up, the box of words
   (Platinum's), the meeting screen, the way out when the Vetti is home. */
.rl { position: absolute; inset: 0; overflow: hidden; background: #163a6e; color: #10121c; }
.rl-canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; image-rendering: crisp-edges; outline: none; cursor: pointer; }
.rl .wd-hint { position: absolute; left: 10px; bottom: 8px; z-index: 3; }
.rl-notice { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); z-index: 6; }

/* the region's name, put up as it is walked into */
.rl-banner { position: absolute; left: 16px; top: 14px; z-index: 4; display: none; flex-direction: column; gap: 2px; padding: 8px 18px 9px; background: linear-gradient(180deg, rgba(14, 18, 40, .9), rgba(28, 22, 60, .9)); border: 2px solid #e8c25a; border-radius: 4px; box-shadow: 0 0 0 2px #241a08, 0 6px 20px rgba(0, 0, 0, .45); color: #fff6d8; pointer-events: none; }
.rl-banner b { font: 400 22px/1.05 var(--nx-font-display, 'Anton', sans-serif); letter-spacing: .06em; text-transform: uppercase; text-shadow: 0 2px 0 #241a08; }
.rl-banner small { font: 600 11px var(--nx-font-console, monospace); letter-spacing: .08em; color: #e8c25a; }
.rl-banner.is-up { display: flex; animation: rl-banner 3.6s ease forwards; }
@keyframes rl-banner { 0% { opacity: 0; transform: translateY(-12px); } 10%, 78% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px); } }

/* the box of words: white, a thick dark rim with a coloured one inside it, the words typed out, ▼ when they're all there */
.rl-box { position: absolute; left: 50%; bottom: 34px; z-index: 5; width: min(760px, calc(100% - 32px)); transform: translateX(-50%); padding: 14px 22px 16px; background: #fbfbf6; border: 4px solid #2a3048; border-radius: 10px; box-shadow: inset 0 0 0 3px #7ab0e0, 0 8px 24px rgba(0, 0, 0, .4); font: 600 17px/1.45 var(--nx-font-console, monospace); color: #1c2030; cursor: pointer; user-select: none; }
.rl-box[hidden] { display: none; }
.rl-box-who { display: inline-block; margin: -26px 0 6px -6px; padding: 2px 10px; background: #2a3048; color: #fff; border-radius: 6px; font-size: 13px; letter-spacing: .04em; }
.rl-box-who[hidden] { display: none; }
/* D208: one of the Hollow's people's regard for you, in the Almanac's hearts, beside their name */
.rl-regard { margin-left: 4px; color: #ff9aae; letter-spacing: 1px; }
.rl-regard i { margin-left: 6px; font-style: normal; font-weight: 400; color: #c9d3ee; letter-spacing: .02em; }
.rl-box p { margin: 0; min-height: 2.9em; white-space: pre-wrap; }
.rl-box-more { position: absolute; right: 16px; bottom: 8px; font-style: normal; color: #d84040; opacity: 0; }
.rl-box.is-done .rl-box-more { opacity: 1; animation: rl-more .7s steps(2) infinite; }
@keyframes rl-more { 50% { transform: translateY(3px); } }

/* the meeting: a screen of its own — the wild one up on the right, the Vetti and its roshi down on the left, the box and the menu */
.rl-meet { position: absolute; inset: 0; z-index: 7; display: grid; grid-template-rows: 1fr auto; background: #000; }
.rl-meet[hidden] { display: none; }
.rl-meet-stage { position: relative; min-height: 0; overflow: hidden; }
.rl-meet-field { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.rl-meet.is-in .rl-meet-field { animation: rl-meet-in .9s steps(9) both; }
@keyframes rl-meet-in { 0% { filter: brightness(4); clip-path: inset(48% 0 48% 0); } 30% { filter: brightness(1.8); } 60% { clip-path: inset(0 0 0 0); } 100% { filter: none; } }
.rl-meet-hud { position: absolute; z-index: 2; display: flex; flex-direction: column; gap: 3px; padding: 8px 14px 9px; background: #fbfbf6; border: 3px solid #2a3048; border-radius: 8px; box-shadow: inset 0 0 0 2px #e8c25a, 0 4px 12px rgba(0, 0, 0, .35); font: 600 14px var(--nx-font-console, monospace); color: #1c2030; min-width: 190px; }
.rl-meet-hud small { color: #5a6078; font-size: 12px; }
.rl-meet-wild { left: 5%; top: 6%; }
.rl-meet-mine { right: 5%; bottom: 8%; }
.rl-hearts { color: #e0407a; letter-spacing: .1em; font-size: 15px; }
.rl-bar { display: block; height: 7px; background: #d8dce8; border: 1px solid #2a3048; border-radius: 4px; overflow: hidden; }
.rl-bar i { display: block; height: 100%; background: linear-gradient(90deg, #f0b030, #e05a30); transition: width .4s; }
.rl-meet-box { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: stretch; padding: 12px 16px 14px; background: #2a3048; border-top: 4px solid #7ab0e0; min-height: 104px; }
.rl-meet-box p { margin: 0; padding: 10px 16px; background: #fbfbf6; border-radius: 8px; font: 600 16px/1.45 var(--nx-font-console, monospace); color: #1c2030; }
.rl-meet-menu { display: grid; grid-template-columns: repeat(2, minmax(92px, 1fr)); gap: 6px; }
.rl-meet-menu button { padding: 8px 14px; background: #fbfbf6; color: #1c2030; border: 3px solid #5a6078; border-radius: 8px; font: 700 14px var(--nx-font-console, monospace); letter-spacing: .08em; text-transform: uppercase; text-align: left; cursor: pointer; }
.rl-meet-menu button.is-focus, .rl-meet-menu button:hover:not(:disabled) { border-color: #e05a30; box-shadow: inset 4px 0 0 #e05a30; }
.rl-meet-menu button:disabled { opacity: .42; cursor: default; }
.rl-meet-menu button[hidden] { display: none; }
/* D221: a lost fight gone badly — the box goes red, and the two things that can be done are all there is */
.rl-meet.is-peril #rl-meet-text { color: #a8141c; font-weight: 700; }
.rl-meet.is-peril .rl-meet-menu button { border-color: #a8141c; }
.rl-meet.is-peril .rl-meet-menu button.is-focus, .rl-meet.is-peril .rl-meet-menu button:hover { background: #ffe9e6; }
.rl-meet-menu.is-waiting { opacity: .6; pointer-events: none; }
.rl-meet.is-closing .rl-meet-menu { opacity: .35; }
.rl-meet.is-closing .rl-meet-box p::after { content: ' ▼'; color: #d84040; }
/* D198: the fight on the grid — the screen is the fight's; the pad (a d-pad, Nip, Use, Hand) where the menu was */
.rl-meet.is-fighting .rl-meet-hud { display: none; }
.rl-meet.is-fighting .rl-meet-field { cursor: pointer; }
.rl-fight-pad { display: grid; grid-template-columns: auto auto; gap: 12px; align-items: center; }
.rl-fight-pad[hidden] { display: none; }
.rl-dpad { display: grid; grid-template-columns: repeat(3, 36px); grid-template-rows: repeat(3, 30px); gap: 3px; }
.rl-dpad [data-fk="up"] { grid-column: 2; grid-row: 1; } .rl-dpad [data-fk="left"] { grid-column: 1; grid-row: 2; }
.rl-dpad [data-fk="right"] { grid-column: 3; grid-row: 2; } .rl-dpad [data-fk="down"] { grid-column: 2; grid-row: 3; }
.rl-fkeys { display: grid; gap: 4px; }
.rl-fight-pad button { padding: 4px 10px; background: #fbfbf6; color: #1c2030; border: 3px solid #5a6078; border-radius: 8px; font: 700 13px var(--nx-font-console, monospace); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; }
.rl-fight-pad button:hover, .rl-fight-pad button.is-down { border-color: #e05a30; box-shadow: inset 4px 0 0 #e05a30; }
.rl-fight-pad kbd { font-size: 10px; opacity: .65; margin-left: 4px; }
@media (max-width: 700px) { .rl-meet-box { grid-template-columns: 1fr; } .rl-meet-menu { grid-template-columns: repeat(3, 1fr); } .rl-fight-pad { justify-content: space-between; } .rl-fight-pad kbd { display: none; } }

/* home: the way out */
.rl-out { position: absolute; left: 50%; top: 50%; z-index: 6; transform: translate(-50%, -50%); width: min(460px, calc(100% - 32px)); padding: 18px 22px; background: rgba(12, 14, 34, .92); border: 2px solid #e8c25a; border-radius: 8px; color: #fff6d8; font: 14px/1.5 var(--nx-font-body, sans-serif); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.rl-out[hidden] { display: none; }
.rl-out p { margin: 0 0 10px; } .rl-out label { display: block; margin: 0 0 12px; } .rl-out select { margin-left: 6px; }
.rl.is-meeting .wd-hint { display: none; }
.wd.is-realm .wd-chat { display: none; } /* the box under the world says things by the hand to the roshi of the Plot: not out here */

/* D199: a choice in the box of words (which stone to hum to) */
.rl-box-choices { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rl-box-choices[hidden] { display: none; }
.rl-box-choices button { padding: 5px 12px; background: #fff; color: #1c2030; border: 2px solid #9aa0b8; border-radius: 6px; font: 700 14px var(--nx-font-console, monospace); cursor: pointer; }
.rl-box-choices button.is-focus, .rl-box-choices button:hover { border-color: #e05a30; box-shadow: inset 4px 0 0 #e05a30; }
.rl-box.is-asking .rl-box-more { display: none; }
/* D206: the topics, Morrowind's way — a long list scrolls; a topic mentioned in what is said is marked, and asks it */
.rl-box-choices.is-topics { max-height: 8.6em; overflow-y: auto; }
.rl-topic { color: #2a58b8; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; font-weight: 700; }
.rl-topic:hover { color: #e05a30; }
/* the map: the island from above (as the view lies), fog over what hasn't been walked */
.rl-mapbtn { position: absolute; right: 12px; top: 12px; z-index: 4; padding: 5px 12px; background: rgba(12, 14, 34, .82); color: #fff6d8; border: 2px solid #e8c25a; border-radius: 6px; font: 700 13px var(--nx-font-console, monospace); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.rl-mapbtn kbd { font-size: 10px; opacity: .7; margin-left: 4px; }
.rl.is-meeting .rl-mapbtn { display: none; }
.rl-map { position: absolute; inset: 0; z-index: 8; display: grid; place-items: center; background: rgba(6, 8, 20, .78); }
.rl-map[hidden] { display: none; }
.rl-map-frame { display: flex; flex-direction: column; gap: 8px; width: min(1000px, calc(100% - 24px)); padding: 10px 10px 12px; background: #e9dcb4; border: 4px solid #6a4a24; border-radius: 8px; box-shadow: inset 0 0 0 2px #c8a868, 0 10px 30px rgba(0, 0, 0, .55); }
.rl-map-canvas { width: 100%; height: auto; aspect-ratio: 2 / 1; image-rendering: pixelated; image-rendering: crisp-edges; background: #1d4f8f; cursor: crosshair; }
.rl-map-key { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; font: 600 13px var(--nx-font-console, monospace); color: #3a2a14; }
.rl-map-key b { font: 400 18px var(--nx-font-display, 'Anton', sans-serif); letter-spacing: .06em; text-transform: uppercase; }
.rl-map-key .dim { color: #6a5434; }
.rl-k { display: inline-block; width: 9px; height: 9px; margin: 0 4px 0 0; vertical-align: -1px; border: 1px solid #1c1408; }
.rl-k-me { background: #e0303a; border-radius: 50%; } .rl-k-pad { background: #9a5ae0; transform: rotate(45deg); } .rl-k-gate { background: #e8c25a; }
/* a pad's hum: the view goes white and comes back somewhere else */
.rl.is-humming .rl-canvas { animation: rl-hum .8s ease-out; }
@keyframes rl-hum { 0% { filter: brightness(3.2) saturate(0) blur(2px); } 100% { filter: none; } }

/* D201: the Hollow walked together — the town's name and who is about up top, the kits beside it, the waves and bows
   down the left, a word for a guest; the box of words and the canvas are the World's */
.tw-top { position: absolute; left: 12px; top: 10px; right: 12px; z-index: 4; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; pointer-events: none; }
.tw-top > b { padding: 4px 12px; background: rgba(12, 14, 34, .82); border: 2px solid #e8c25a; border-radius: 6px; color: #fff6d8; font: 400 18px/1.1 var(--nx-font-display, 'Anton', sans-serif); letter-spacing: .06em; text-transform: uppercase; }
.tw-top > .dim { padding: 3px 9px; background: rgba(12, 14, 34, .7); border-radius: 5px; color: #cfe8ff; font: 600 12px var(--nx-font-console, monospace); }
.tw-kits { display: flex; gap: 6px; margin-left: auto; pointer-events: auto; }
.tw-emotes { position: absolute; left: 10px; bottom: 34px; z-index: 4; display: flex; flex-wrap: wrap; gap: 4px; max-width: min(420px, calc(100% - 20px)); }
.tw-emotes button { padding: 3px 9px; background: rgba(12, 14, 34, .82); color: #fff6d8; border: 1px solid #7ab0e0; border-radius: 5px; font: 700 12px var(--nx-font-console, monospace); cursor: pointer; }
.tw-emotes button:hover, .tw-emotes button:focus-visible { background: #2a3048; border-color: #e8c25a; }
.tw-guest { position: absolute; left: 50%; top: 56px; z-index: 4; transform: translateX(-50%); margin: 0; width: min(560px, calc(100% - 32px)); padding: 10px 16px; background: rgba(12, 14, 34, .9); border: 2px solid #e8c25a; border-radius: 8px; color: #fff6d8; font: 14px/1.5 var(--nx-font-body, sans-serif); }
.tw-guest a:not(.nx-btn) { color: #ffe9a8; }
.tw .tw-fest { position: absolute; left: 12px; top: 50px; z-index: 4; margin: 0; max-width: min(520px, calc(100% - 24px)); padding: 12px 12px 6px; font-size: 12.5px; line-height: 1.35; opacity: .94; }
.tw .tw-fest + .tw-fest { top: auto; margin-top: 4px; position: relative; }
.tw-placelist { margin: 6px 0 10px; padding-left: 18px; columns: 2; column-gap: 24px; }
.tw-placelist li { break-inside: avoid; margin: 2px 0; }
@media (max-width: 700px) { .tw-kits { margin-left: 0; } .tw-emotes { bottom: 52px; } .tw-placelist { columns: 1; } }
/* D205: the licences, in the Out here kit */
.rl-licences { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 3px; font-size: 12px; } .rl-licences li.is-held b { color: var(--nx-acid-text, #cef41b); }
