/* office-games.css: the frame and pieces of the five office games (office-games.js), and the card that offers a game
   at an office door in the town. The site's idiom: square corners, black borders, hard offset shadows, the pixel font
   for labels. Sentences you have to read are in a plain system face. */
#og { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: center; justify-content: center; padding: 12px; background: rgba(8, 14, 10, 0.86); font-family: "Pixelify Sans", monospace; color: #0f0f0f; }
#og[hidden] { display: none; }
#og-box { width: min(720px, 100%); max-height: 100%; display: flex; flex-direction: column; background: #f4f1ea; border: 4px solid #0f0f0f; box-shadow: 8px 8px 0 #29BA74; }
#og-head { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: #0f0f0f; color: #fdfdfd; }
#og-title { flex: 1; margin: 0; font-size: 20px; font-weight: 400; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#og-lives { display: flex; gap: 4px; }
#og-lives b { width: 20px; height: 20px; display: block; }
#og-lives svg { width: 100%; height: 100%; fill: #ffbc00; shape-rendering: crispEdges; }
#og-lives b.gone svg { fill: #4a4a4a; }
#og-score, #og-combo { font-size: 20px; line-height: 1; white-space: nowrap; }
#og-combo { color: #ffbc00; min-width: 26px; }
#og-close { width: 34px; height: 34px; border: 2px solid #fdfdfd; background: #0f0f0f; color: #fdfdfd; font: inherit; font-size: 20px; line-height: 1; cursor: pointer; }
#og-close:hover, #og-close:focus-visible { background: #e23b3b; outline: 0; }
#og-bar { height: 8px; background: #d8d0bc; }
#og-bar i { display: block; height: 100%; width: 100%; background: #29BA74; }
#og-bar.boss i { background: #e23b3b; }
#og-stage { position: relative; flex: 1; min-height: 340px; overflow: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
#og-stage.good { animation: og-good 0.25s steps(2); }
#og-stage.bad { animation: og-bad 0.3s steps(3); }
@keyframes og-good { 0% { background: #c9f3d8; } 100% { background: transparent; } }
@keyframes og-bad { 0% { background: #ffc9bd; transform: translateX(-4px); } 50% { transform: translateX(4px); } 100% { background: transparent; transform: none; } }
#og-foot { padding: 6px 10px 10px; text-align: right; }
#og-skip { border: 0; background: none; font: inherit; font-size: 20px; color: #197A56; text-decoration: underline; cursor: pointer; padding: 6px; }
#og-skip[hidden] { display: none; }

.og-card { margin: auto; max-width: 560px; text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.og-card h3 { margin: 0; font-size: 30px; font-weight: 400; line-height: 1; }
.og-how, .og-story, .og-keys, .og-result, .og-lead { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 17px; line-height: 1.4; }
.og-keys { font-size: 14px; color: #5c5a52; }
.og-story { text-align: left; align-self: stretch; padding-left: 12px; border-left: 4px solid #29BA74; }
.og-result { font-weight: 600; }
.og-lead { font-size: 15px; color: #3a3a3a; text-align: center; }
.og-red { color: #c0291f; font-weight: 600; }
.og-reslabel { margin: 0; font-size: 20px; line-height: 1.1; color: #5c5a52; }
.og-resnum { position: relative; font-size: 90px; line-height: 1; margin-top: 12px; padding: 4px 18px 10px; color: #0f0f0f; font-variant-numeric: tabular-nums; }
.og-resnum.landed { animation: og-land 0.28s steps(4); }
.og-resnum.best { color: #0f0f0f; background: #ffd23f; border: 4px solid #0f0f0f; box-shadow: 6px 6px 0 #0f0f0f; }
.og-newbest { position: absolute; right: -70px; top: -14px; font-size: 20px; line-height: 1; padding: 5px 8px 6px; background: #29ba74; color: #0f0f0f; border: 3px solid #0f0f0f; transform: rotate(8deg); animation: og-land 0.3s steps(4); }
.og-resnote { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 17px; line-height: 1.35; }
.og-card { position: relative; }
.og-conf { position: absolute; top: 34%; width: 8px; height: 8px; pointer-events: none; opacity: 0; animation: og-conf 1.3s cubic-bezier(.2,.7,.4,1) forwards; }
@keyframes og-land { 0% { transform: scale(1.5); } 100% { transform: scale(1); } }
@keyframes og-conf { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 60% { opacity: 1; transform: translate(var(--dx), var(--dy)) rotate(200deg); } 100% { opacity: 0; transform: translate(var(--dx), calc(var(--dy) + 260px)) rotate(420deg); } }
@media (max-width: 640px) { .og-resnum { font-size: 60px; } .og-newbest { right: -10px; font-size: 10px; } }
.og-row { display: flex; gap: 10px; justify-content: center; }
.og-row.wrap { flex-wrap: wrap; }
.og-btn { font: inherit; font-size: 20px; line-height: 1.1; padding: 10px 14px; min-height: 46px; border: 3px solid #0f0f0f; background: #29BA74; color: #0f0f0f; box-shadow: 4px 4px 0 #0f0f0f; cursor: pointer; touch-action: manipulation; }
.og-btn:hover, .og-btn:focus-visible { background: #ffbc00; outline: 0; }
.og-btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 #0f0f0f; }
.og-btn.quiet { background: #fdfdfd; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 15px; text-align: left; }
.og-btn.bad { background: #ff9d8a; }
.og-btn:disabled { opacity: 0.35; cursor: default; }

.og-paper { align-self: center; width: min(460px, 100%); display: flex; flex-direction: column; gap: 6px; padding: 12px; background: #fdfdfd; border: 3px solid #0f0f0f; box-shadow: 5px 5px 0 #b9b2a2; }
.og-paper.boss { box-shadow: 5px 5px 0 #e23b3b; }
.og-paper-head { margin: 0 0 2px; font-size: 20px; line-height: 1; display: flex; justify-content: space-between; gap: 8px; }
.og-paper-head span { font-size: 10px; color: #197A56; align-self: center; text-align: right; }
.og-line, .og-doc { display: flex; align-items: center; gap: 8px; padding: 8px; border: 2px solid #0f0f0f; background: #f4f1ea; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 16px; text-align: left; }
.og-line { cursor: pointer; touch-action: manipulation; }
.og-line b { font-family: "Pixelify Sans", monospace; font-weight: 400; font-size: 10px; color: #8a8578; }
.og-line span, .og-doc span { flex: 1; }
.og-line i, .og-doc i { font-style: normal; font-weight: 600; }
.og-line.gold { background: #ffe9a8; }
.og-line.struck { background: #ffd0c6; }
.og-line.struck span, .og-line.struck i { text-decoration: line-through; text-decoration-color: #e23b3b; text-decoration-thickness: 3px; }
.og-doc i { color: #197A56; }
.og-doc.wrong i { color: #c0291f; }
.og-fuse { height: 6px; background: #d8d0bc; }
.og-fuse i { display: block; height: 100%; background: #ffbc00; }
.og-slide { align-self: center; width: min(420px, 100%); min-height: 120px; display: flex; align-items: center; justify-content: center; padding: 16px; background: #fdfdfd; border: 3px solid #0f0f0f; box-shadow: 5px 5px 0 #b9b2a2; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 20px; font-weight: 600; text-align: center; touch-action: pan-y; }
.og-slide.boss { background: #0f0f0f; color: #fdfdfd; box-shadow: 5px 5px 0 #e23b3b; font-size: 26px; }
.og-pyramid { align-self: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.og-slot { padding: 8px 10px; border: 3px dashed #8a8578; color: #8a8578; font-size: 20px; line-height: 1; text-align: center; }
.og-slot:nth-child(1) { width: 200px; } .og-slot:nth-child(2) { width: 280px; } .og-slot:nth-child(3) { width: 360px; max-width: 100%; }
.og-slot.full { border-style: solid; border-color: #0f0f0f; background: #c9f3d8; color: #0f0f0f; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 15px; font-weight: 600; }
.og-lanes { display: flex; flex-direction: column; gap: 8px; }
.og-lane { display: flex; align-items: center; gap: 8px; padding: 8px; min-height: 46px; border: 3px solid #0f0f0f; background: #fdfdfd; font: inherit; font-size: 20px; line-height: 1; text-align: left; cursor: pointer; touch-action: manipulation; }
.og-lane b { font-weight: 400; font-size: 10px; color: #8a8578; }
.og-lane span { width: 110px; }
.og-lane em { flex: 1; height: 16px; background: #d8d0bc; border: 2px solid #0f0f0f; position: relative; }
.og-lane em::after { content: ""; position: absolute; left: 50%; top: -4px; bottom: -4px; width: 2px; background: #0f0f0f; }
.og-lane em i { display: block; height: 100%; background: #29BA74; }
.og-lane.mid em i { background: #ffbc00; } .og-lane.low em i { background: #e23b3b; }
.og-lane u { text-decoration: none; font-size: 10px; color: #c0291f; min-width: 74px; text-align: right; }
.og-lane.blocked { background: #ffd0c6; }
.og-fuses { display: flex; gap: 8px; min-height: 52px; }
.og-bomb { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 6px 8px; border: 3px solid #0f0f0f; background: #ffe9a8; font: inherit; font-size: 20px; line-height: 1; cursor: pointer; touch-action: manipulation; }
.og-bomb em { height: 6px; background: #d8d0bc; } .og-bomb em i { display: block; height: 100%; background: #e2742b; }
.og-bomb.low { background: #ff9d8a; }
.og-btn.slab { flex: 1; } .og-btn.slab.s0 { background: #8fd3ea; } .og-btn.slab.s1 { background: #ffbc00; } .og-btn.slab.s2 { background: #c9a6f0; }

/* the card at an office door in the town */
#door { position: fixed; z-index: 20; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: #fdfdfd; border: 3px solid #0f0f0f; box-shadow: 5px 5px 0 #29BA74; font-family: "Pixelify Sans", monospace; max-width: calc(100% - 20px); }
#door[hidden] { display: none; }
#door img { height: 26px; width: auto; max-width: 80px; object-fit: contain; }
#door .og-btn { font-size: 20px; padding: 8px 10px; min-height: 44px; white-space: nowrap; }
#door .og-btn.quiet { font-family: "Pixelify Sans", monospace; font-size: 20px; }
#door .medal { font-size: 10px; padding: 3px 5px; border: 2px solid currentColor; }
.plate.played { box-shadow: 2px 2px 0 #197a56, 0 0 0 2px #29ba74; }   /* a green edge on the name plate of every place he has played */
@media (max-width: 520px) {
  #og-title { font-size: 10px; white-space: normal; }
  #og-score, #og-combo { font-size: 10px; }
  .og-btn { font-size: 20px; padding: 10px; }
  #door { flex-wrap: wrap; justify-content: center; }
  .og-lane span { width: 84px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { #og-stage.good, #og-stage.bad { animation: none; } }

/* ---- the seven games of the second plan (one verb each) ---- */
.og-canvas { align-self: center; width: auto; height: min(56vh, 420px); max-width: 100%; border: 3px solid #0f0f0f; background: #0f0f0f; touch-action: none; cursor: pointer; image-rendering: auto; }
.og-joke { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.35; font-style: italic; transition: opacity 0.4s; }
.og-price { font-size: 30px; line-height: 1; text-align: center; padding: 6px 0; }
.og-price.gone { color: #c0291f; text-decoration: line-through; }
.og-fuse.sweat i { background: #e2742b; width: 0; }
.og-fuse.goal { height: 12px; border: 2px solid #0f0f0f; } .og-fuse.goal i { background: #29BA74; width: 0; }
.og-hold { align-self: center; width: min(460px, 100%); padding: 22px 10px; border: 3px dashed #0f0f0f; text-align: center; font-size: 20px; line-height: 1; user-select: none; -webkit-user-select: none; touch-action: none; }
.og-hold.on { background: #ffbc00; border-style: solid; }
#og-stage { user-select: none; -webkit-user-select: none; }
.og-atlys { display: flex; gap: 12px; align-items: center; }
.og-atlys-side { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.og-stamp-btn { width: 130px; height: 130px; flex: 0 0 auto; border: 4px solid #0f0f0f; border-radius: 0; background: #fdfdfd; color: #197A56; font: inherit; font-size: 20px; line-height: 1; box-shadow: 5px 5px 0 #0f0f0f; transform: rotate(-6deg); cursor: pointer; touch-action: manipulation; }
.og-stamp-btn.hit { animation: og-stamp 0.12s steps(2); }
@keyframes og-stamp { 0% { transform: rotate(-6deg) translate(3px, 3px); box-shadow: 1px 1px 0 #0f0f0f; } 100% { transform: rotate(-6deg); } }
.og-btn.gold { background: #ffd23f; font-size: 20px; padding: 6px 8px; min-height: 36px; }
.og-btn[hidden] { display: none; }
.og-shop { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.og-up { display: flex; align-items: center; gap: 8px; padding: 6px 8px; min-height: 46px; border: 2px solid #0f0f0f; background: #fdfdfd; font: inherit; font-size: 20px; line-height: 1; text-align: left; cursor: pointer; touch-action: manipulation; }
.og-up b { font-weight: 400; font-size: 10px; color: #8a8578; }
.og-up span { flex: 1; } .og-up span i { display: block; font-style: normal; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 12px; line-height: 1.2; color: #5c5a52; }
.og-up em { font-style: normal; color: #197A56; white-space: nowrap; }
.og-up:disabled { opacity: 0.45; cursor: default; }
.og-up:not(:disabled) { background: #c9f3d8; }
.og-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
.og-bar4 { display: flex; align-items: center; gap: 8px; font-size: 20px; line-height: 1; }
.og-bar4 span { width: 104px; }
.og-bar4 em { flex: 1; height: 14px; border: 2px solid #0f0f0f; background: #d8d0bc; } .og-bar4 em i { display: block; height: 100%; background: #29BA74; }
.og-bar4.edge em i { background: #e23b3b; }
.og-swipe { align-self: center; width: min(440px, 100%); min-height: 150px; display: flex; flex-direction: column; gap: 8px; padding: 14px; background: #fdfdfd; border: 4px solid #0f0f0f; box-shadow: 6px 6px 0 #b9b2a2; touch-action: pan-y; }
.og-swipe b { font-weight: 400; font-size: 20px; line-height: 1; color: #197A56; }
.og-swipe p { flex: 1; margin: 0; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 18px; line-height: 1.35; }
@media (max-width: 520px) {
  .og-shop { grid-template-columns: 1fr; } .og-bars { grid-template-columns: 1fr; }
  .og-stamp-btn { width: 96px; height: 96px; font-size: 10px; }
  .og-up, .og-bar4 { font-size: 10px; } .og-bar4 span { width: 70px; }
  .og-price { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { .og-stamp-btn.hit { animation: none; } .og-joke { transition: none; } }

/* ---- full screen, a line of context, and the door card centred (he asked for all three) ---- */
#og { padding: 0; }
#og-box { width: 100%; height: 100%; max-height: none; border: 0; box-shadow: none; }
#og-head { padding: 10px 14px; padding-top: max(10px, env(safe-area-inset-top)); }
#og-stage { min-height: 0; padding: 14px; align-items: center; justify-content: center; }
#og-stage > * { flex: 0 0 auto; }
#og-foot { padding-bottom: max(10px, env(safe-area-inset-bottom)); }
.og-canvas { height: auto; }
.og-card { max-width: 640px; }
.og-card h3 { font-size: 40px; }
.og-context { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 18px; line-height: 1.4; font-style: italic; color: #197A56; }
.og-how { font-size: 19px; }
.og-paper, .og-swipe, .og-hold { width: min(620px, 100%); }
.og-atlys, .og-shop, .og-bars, .og-lanes { width: min(760px, 100%); }
.og-swipe { min-height: 190px; } .og-swipe p { font-size: 22px; }
.og-stamp-btn { width: 170px; height: 170px; font-size: 30px; }
#door { align-items: center; justify-content: center; text-align: center; }
#door .og-btn, #door .og-btn.quiet { display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1; padding: 10px 14px; }
@media (max-width: 520px) {
  .og-card h3 { font-size: 30px; } .og-swipe p { font-size: 18px; }
  .og-stamp-btn { width: 104px; height: 104px; font-size: 10px; }
  #door { left: 10px; right: 10px; transform: none; max-width: none; }
  #door .og-btn { flex: 1 1 100%; }
}
.og-pivot { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%) rotate(-8deg); z-index: 6; padding: 10px 26px 14px; background: #e23b3b; color: #fdfdfd; border: 4px solid #0f0f0f; box-shadow: 6px 6px 0 #0f0f0f; font-size: 60px; line-height: 1; pointer-events: none; }
.og-hand { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: min(760px, 100%); }
.og-cardbtn { display: flex; flex-direction: column; gap: 4px; min-height: 104px; padding: 8px; border: 3px solid #0f0f0f; background: #fdfdfd; box-shadow: 4px 4px 0 #b9b2a2; font: inherit; text-align: left; cursor: pointer; touch-action: manipulation; }
.og-cardbtn b { font-weight: 400; font-size: 10px; color: #8a8578; }
.og-cardbtn span { flex: 1; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 16px; font-weight: 600; line-height: 1.2; }
.og-cardbtn em { font-style: normal; font-size: 30px; line-height: 1; }
.og-cardbtn i { font-style: normal; font-size: 10px; text-transform: uppercase; }
.og-cardbtn.customers { border-top: 10px solid #8fd3ea; } .og-cardbtn.money { border-top: 10px solid #ffd23f; } .og-cardbtn.product { border-top: 10px solid #8ff0b0; } .og-cardbtn.people { border-top: 10px solid #ff8fa3; }
.og-cardbtn.on { background: #ffe9a8; box-shadow: 4px 4px 0 #0f0f0f; transform: translateY(-4px); }
.og-cardbtn:disabled { opacity: 0.6; cursor: default; }
@media (max-width: 520px) { .og-hand { grid-template-columns: repeat(2, 1fr); } .og-cardbtn { min-height: 84px; } .og-cardbtn em { font-size: 20px; } .og-cardbtn span { font-size: 14px; } }
#og-sound { border: 2px solid #fdfdfd; background: #0f0f0f; color: #fdfdfd; font: inherit; font-size: 10px; line-height: 1; padding: 6px 8px; height: 34px; cursor: pointer; white-space: nowrap; }
#og-sound[aria-pressed="false"] { color: #8a8578; border-color: #8a8578; }
#og-sound:hover, #og-sound:focus-visible { background: #29BA74; color: #0f0f0f; outline: 0; }
/* the quiz, and the buttons under the basketball court */
.og-question { align-self: center; width: min(820px, 100%); padding: 18px 20px; background: #fdfdfd; border: 4px solid #0f0f0f; box-shadow: 6px 6px 0 #b9b2a2; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 26px; font-weight: 600; line-height: 1.3; text-align: center; }
.og-answers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: min(820px, 100%); }
.og-answer { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px; border: 3px solid #0f0f0f; background: #fdfdfd; box-shadow: 4px 4px 0 #0f0f0f; font: inherit; text-align: left; cursor: pointer; touch-action: manipulation; }
.og-answer b { font-weight: 400; font-size: 20px; color: #197A56; }
.og-answer span { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 20px; line-height: 1.25; }
.og-answer:hover, .og-answer:focus-visible { background: #ffe9a8; outline: 0; }
.og-answer.right { background: #8ff0b0; } .og-answer.wrong { background: #ff9d8a; }
.og-pad { display: flex; gap: 10px; justify-content: center; width: min(820px, 100%); }
.og-pad .og-btn { flex: 1; user-select: none; -webkit-user-select: none; touch-action: none; }
@media (max-width: 520px) { .og-answers { grid-template-columns: 1fr; } .og-question { font-size: 19px; padding: 12px; } .og-answer span { font-size: 16px; } .og-answer { min-height: 50px; } .og-pad .og-btn { font-size: 10px; padding: 14px 4px; } }
@media (min-width: 900px) and (hover: hover) { .og-pad { display: none; } }   /* a laptop has a keyboard: the court gets the room */
.og-question + .og-fuse { align-self: center; width: min(820px, 100%); height: 10px; border: 2px solid #0f0f0f; }

.og-pad7 { flex-wrap: wrap; } .og-pad7 .og-btn { flex: 1 1 20%; }
/* Ollvy: Runway is a page of its own, shown in a frame that fills the stage */
.og-frame { flex: 1; align-self: stretch; width: 100%; min-height: 0; height: 100%; border: 3px solid #0f0f0f; background: #ead4aa; }
/* BenchCraft is full screen: the site, the frame's header and its footer all go */
#og.og-full { padding: 0; background: #1d1626; } #og.og-full #og-box { width: 100%; height: 100%; max-height: none; border: 0; box-shadow: none; } #og.og-full #og-head, #og.og-full #og-bar, #og.og-full #og-foot { display: none; } #og.og-full .og-frame { border: 0; background: #1d1626; } #og.og-full #og-stage { flex: 1; }
#og-stage:has(.og-frame) { padding: 0; align-items: stretch; justify-content: stretch; } #og-stage:has(.og-frame) .og-goaltip { display: none; }
/* the one line that says what to do: on the card before a game, and again over the game as it starts */
.og-goal { margin: 0; font-size: 30px; line-height: 1.15; color: #0f0f0f; } .og-more { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 15px; max-width: 560px; } .og-more summary { cursor: pointer; color: #197A56; text-decoration: underline; margin-bottom: 6px; } .og-more p { margin: 6px 0; text-align: left; }
.og-goaltip { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 7; max-width: calc(100% - 24px); padding: 10px 16px; background: #fdfdfd; color: #0f0f0f; border: 4px solid #0f0f0f; box-shadow: 5px 5px 0 #ffbc00; font-size: 20px; line-height: 1.2; text-align: center; pointer-events: none; }
@media (max-width: 520px) { .og-goal { font-size: 20px; } .og-goaltip { font-size: 10px; } }

/* Lowball: the options under the picture, and the card at the end of a run */
.lb-opts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.lb-opt { font: inherit; font-size: 10px; padding: 6px 8px; border: 2px solid #0f0f0f; background: #fdfdfd; color: #0f0f0f; cursor: pointer; } .lb-opt.on { background: #8ff0b0; } .lb-opt:focus-visible { outline: 3px solid #ffbc00; }
.lb-card { position: absolute; inset: 0; z-index: 8; margin: auto; width: min(720px, calc(100% - 20px)); height: max-content; max-height: calc(100% - 20px); overflow: auto; display: flex; flex-direction: column; gap: 10px; align-items: center; padding: 18px; background: #fdfdfd; color: #0f0f0f; border: 4px solid #0f0f0f; box-shadow: 8px 8px 0 #ffbc00; text-align: center; }
.lb-card p { margin: 0; } .lb-big { font-size: 30px; line-height: 1.1; } .lb-big b, .lb-flap b { font-weight: 400; color: #197A56; } .lb-flap { font-size: 20px; padding: 6px 12px; background: #1b2733; color: #fdfdfd; } .lb-flap b { color: #ffd23f; }
.lb-promo { font-size: 20px; padding: 6px 12px; background: #ffd23f; border: 3px solid #0f0f0f; } .lb-miss { font-size: 20px; }
.lb-stats, .lb-foot { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 14px; line-height: 1.35; color: #3a3a3a; } .lb-foot { font-style: italic; }
.lb-final { font-size: 20px; } .lb-again { font-size: 30px !important; padding: 14px 22px !important; }
@media (max-width: 520px) { .lb-big { font-size: 20px; } .lb-flap, .lb-promo, .lb-miss, .lb-final { font-size: 10px; } .lb-again { font-size: 20px !important; } }

/* the pixel font's joined f-i is the wrong shape: no ligatures anywhere in the games or their cards */
#og, #door, #tip, #nudge, #swim, #hint, .plate { font-variant-ligatures: none; font-feature-settings: "liga" 0, "clig" 0; }

/* the Controls button in the header, and what it shows */
#og-ctl { border: 2px solid #fdfdfd; background: #0f0f0f; color: #fdfdfd; font: inherit; font-size: 10px; line-height: 1; padding: 6px 8px; height: 34px; cursor: pointer; white-space: nowrap; }
#og-ctl:hover, #og-ctl:focus-visible { background: #29BA74; color: #0f0f0f; outline: 0; }
#og.og-full #og-ctl { display: none; }
.og-ctlpanel { position: absolute; inset: 0; z-index: 12; display: flex; align-items: center; justify-content: center; background: rgba(15, 15, 15, 0.72); padding: 14px; }
.og-ctlcard { background: #fdfdfd; border: 4px solid #0f0f0f; box-shadow: 6px 6px 0 #ffbc00; padding: 18px 22px; display: flex; flex-direction: column; gap: 14px; align-items: center; max-width: min(560px, 100%); max-height: 100%; overflow: auto; }
.og-ctlcard h3 { margin: 0; font-size: 30px; font-weight: 400; line-height: 1; }
.og-ctl { display: grid; gap: 8px; text-align: left; margin: 0 auto; }
.og-ctlrow { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.25; }
.og-ctlrow b { font-weight: 700; }
.og-card > .og-ctl { margin: 4px auto; }
.og-card > .og-ctl .og-ctlrow { grid-template-columns: 112px 1fr; }
.og-ctlrow kbd { font-family: "Pixelify Sans", monospace; font-size: 10px; text-align: center; padding: 7px 6px; border: 2px solid #0f0f0f; background: #f3ead2; box-shadow: 2px 2px 0 #0f0f0f; white-space: nowrap; }
