/* The Magic Mailroom: "Best enjoyed in full screen. Hit F11". A red satin ribbon with stitched gold edges, swallow-tail
   ends, a little gold bell and a keycap that presses itself now and then. Sits on the desk under the envelope rack. */
.fsHint { position: fixed; z-index: 4; left: 50%; top: 0; transform: translateX(-50%); box-sizing: border-box;
  display: flex; align-items: center; gap: 10px; height: 46px; max-width: calc(100vw - 80px); margin: 0; padding: 0 7px 0 10px; color: #fff6c4;
  border-radius: 6px; background: linear-gradient(180deg, #ef4b50 0%, #d42a34 38%, #b31822 62%, #8f0f19 100%);
  box-shadow: 0 2px 0 #ffd45a inset, 0 -2px 0 #ffd45a inset, 0 6px 0 rgba(60, 6, 10, .55), 0 12px 26px rgba(0, 0, 0, .5); pointer-events: auto; }
.fsHint[hidden] { display: none; }
/* the stitching */
.fsHint::before { content: ''; position: absolute; inset: 5px 4px; border-top: 1.5px dashed rgba(255, 228, 150, .7); border-bottom: 1.5px dashed rgba(255, 228, 150, .7); pointer-events: none; }
/* a soft satin sheen */
.fsHint::after { content: ''; position: absolute; left: 6px; right: 6px; top: 7px; height: 9px; border-radius: 6px; background: linear-gradient(rgba(255, 255, 255, .28), rgba(255, 255, 255, 0)); pointer-events: none; }

.fsHintTail { position: absolute; z-index: -1; top: 9px; width: 32px; height: 44px; background: linear-gradient(180deg, #b8202b, #7c0c15);
  box-shadow: 0 2px 0 #e8962a inset, 0 -2px 0 #e8962a inset; }
.fsHintTail.l { left: -30px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 34% 50%); }
.fsHintTail.r { right: -30px; clip-path: polygon(0 0, 100% 0, 66% 50%, 100% 100%, 0 100%); }

.fsHintBell { flex: none; width: 30px; height: 30px; transform-origin: 50% 12%; filter: drop-shadow(0 2px 1px rgba(60, 6, 10, .6)); }
.fsHintBell svg { width: 100%; height: 100%; display: block; }

.fsHintWords { position: relative; margin: 0; display: flex; align-items: center; gap: 10px; min-width: 0; white-space: nowrap;
  font: 400 clamp(13px, 1.05vw, 16px)/1 'Russo One', sans-serif; letter-spacing: .05em; text-transform: uppercase; text-shadow: 0 2px 0 #6d0b12; }
.fsHintHit { display: inline-flex; align-items: center; gap: 7px; color: #ffd45a; }
.fsHint kbd { display: inline-block; min-width: 2.4em; padding: 5px 7px 4px; border-radius: 7px; box-sizing: border-box; text-align: center;
  font: 700 clamp(12px, .95vw, 14px)/1 'Chakra Petch', sans-serif; letter-spacing: .02em; color: #3a2418; text-shadow: 0 1px 0 rgba(255, 255, 255, .6);
  border: 1.5px solid #fff6b0; background: linear-gradient(180deg, #fffbd6 0%, #ffe14a 48%, #f6a623 100%); box-shadow: 0 3px 0 #8a4a00, 0 4px 6px rgba(0, 0, 0, .35); }

.fsHint button { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; margin: 0; }
.fsHintGo { gap: 6px; min-height: 30px; padding: 0 12px 0 10px; border-radius: 999px; border: 2px solid #ffd45a; color: #8a1a14; background: #fbf3e1;
  font: 700 12px/1 'Chakra Petch', sans-serif; letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 2px 0 #6d0b12; transition: transform .12s, filter .12s; }
.fsHintGo svg { width: 14px; height: 14px; }
.fsHintGo:hover { transform: translateY(-1px); filter: brightness(1.06); }
.fsHintGo:active { transform: translateY(1px); }
.fsHintX { width: 28px; height: 28px; padding: 0; border-radius: 50%; border: 0; color: #ffe3a0; background: rgba(60, 4, 10, .4); transition: background .12s; }
.fsHintX svg { width: 14px; height: 14px; }
.fsHintX:hover { background: rgba(60, 4, 10, .7); }
.fsHint button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* arrive with a bounce and a jingle; leave with a little dip */
.fsHint.in { animation: fsHintIn .7s cubic-bezier(.2, 1.4, .4, 1) both; }
.fsHint.in .fsHintBell { animation: fsHintJingle 1.1s .45s ease-in-out both, fsHintJingle 1.1s 9s ease-in-out infinite; }
.fsHint.in kbd { animation: fsHintKey 6s 1.6s ease-in-out infinite; }
.fsHint.out { animation: fsHintOut .25s ease-in both; pointer-events: none; }
@keyframes fsHintIn { 0% { opacity: 0; transform: translate(-50%, 26px) scale(.7) rotate(-3deg); } 60% { opacity: 1; transform: translate(-50%, -5px) scale(1.04) rotate(1deg); } 100% { transform: translateX(-50%); } }
@keyframes fsHintOut { to { opacity: 0; transform: translate(-50%, 14px) scale(.92); } }
@keyframes fsHintJingle { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(18deg); } 30% { transform: rotate(-15deg); } 45% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } 75% { transform: rotate(3deg); } }
@keyframes fsHintKey { 0%, 88%, 100% { transform: none; box-shadow: 0 3px 0 #8a4a00, 0 4px 6px rgba(0, 0, 0, .35); } 92% { transform: translateY(3px); box-shadow: 0 0 0 #8a4a00, 0 1px 2px rgba(0, 0, 0, .35); } }

/* a narrow window: the button keeps its icon and drops its words */
@media (max-width: 820px) { .fsHintGo span { display: none; } .fsHintGo { padding: 0 8px; } }
@media (max-width: 640px) { .fsHintBest { display: none; } .fsHintWords::before { content: 'Full screen:'; } }
@media (prefers-reduced-motion: reduce) { .fsHint.in, .fsHint.out, .fsHint.in .fsHintBell, .fsHint.in kbd { animation: none; } .fsHint.out { opacity: 0; } }
