/* Office Desktop: the page sits inside an old CRT monitor on an office desk */
body.hat-theme-office {
  --hat-bg: #e3ddd2; --hat-surface: #c9c3cf; --hat-ink: #111018; --hat-muted: #3e3a48; --hat-heading: #111018;
  --hat-accent: #7b4dff; --hat-accent-ink: #fff; --hat-link: #3b1fd1;
  --hat-btn: #c9c3cf; --hat-btn-ink: #000; --hat-btn-radius: 0;
  --hat-btn-shadow: inset -1px -1px 0 #1e1b24, inset 1px 1px 0 #fff, inset -2px -2px 0 #5a5463, inset 2px 2px 0 #e9e5ee;
  --hat-btn-alt: #fffaf0; --hat-btn-alt-ink: #000;
  --hat-stage: #fffaf0; --hat-radius: 0; --hat-pill: 0;
  --hat-display: "Pixelify Sans", "Courier New", monospace; --hat-body: "IBM Plex Mono", ui-monospace, monospace;
  --hat-title-color: #111018; --hat-title-shadow: none; --hat-logo: #3b1fd1; --hat-logo-shadow: 2px 2px 0 #fff;
  --hat-panel-shadow: inset -1px -1px 0 #1e1b24, inset 1px 1px 0 #fff, inset -2px -2px 0 #5a5463, inset 2px 2px 0 #e9e5ee, 6px 6px 0 rgba(0, 0, 0, .25);
  --hat-frame-shadow: inset -2px -2px 0 #fff, inset 2px 2px 0 #5a5463, 0 0 0 3px #c9c3cf, 0 0 0 4px #1e1b24, 6px 6px 0 4px rgba(0, 0, 0, .25);
  --hat-kicker-bg: #ffd23f; --hat-kicker-ink: #000; --hat-ticker-bg: #111; --hat-ticker-ink: #7dff9a;
  --hat-nav: #111018; --hat-price: #3b1fd1; --hat-footer-ink: #111018;
}
.hat-theme-office .hat-btn .elementor-button:active { box-shadow: inset 1px 1px 0 #1e1b24, inset -1px -1px 0 #fff, inset 2px 2px 0 #5a5463; transform: none; }
.hat-theme-office .hat-btn .elementor-button:hover { transform: none; filter: none; outline: 1px dotted #000; outline-offset: -6px; }
body.hat-on.hat-theme-office .hat-kicker .elementor-heading-title { box-shadow: 2px 2px 0 #000; }
.hat-theme-office .hat-ticker { font-family: "VT323", monospace; font-size: 20px; text-shadow: 0 0 6px rgba(125, 255, 154, .6); }
.hat-theme-office .hat-nav .elementor-icon-list-text { text-decoration: underline; text-underline-offset: 3px; }

/* the office: wall, skirting, desk (drawn by office.js into the background) */
.hat-theme-office .hat-scene .wall { inset: 0; background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .018) 0 2px, transparent 2px 9px), radial-gradient(70% 60% at 85% 10%, rgba(255, 250, 235, .7), transparent 70%), linear-gradient(#e7e2d8, #dcd6ca); }
.hat-theme-office .hat-scene .skirt { left: 0; right: 0; bottom: 16vh; height: 3.5vh; background: linear-gradient(#f4f1ea, #d6d0c3); }
.hat-theme-office .hat-scene .desk { left: 0; right: 0; bottom: 0; height: 16vh; background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .035) 0 1px, transparent 1px 60px), linear-gradient(#9a9ea6, #7d828b); box-shadow: 0 -6px 0 #686d75; }
.hat-theme-office .hat-scene .plug { right: 9vw; bottom: 22vh; width: 30px; height: 44px; border-radius: 4px; background: #f4f1ea; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }

/* the monitor: add the class hat-monitor to the container that holds the page */
.hat-theme-office .hat-monitor {
  position: relative; overflow: visible !important;
  background: radial-gradient(130% 120% at 50% 40%, #3aa6a0 0%, #2b8a86 60%, #1d6c6a 100%) !important;
  border-radius: 22px / 18px; box-shadow: inset 0 0 70px rgba(0, 0, 0, .45), inset 0 0 0 3px #1a1820;
  margin: 70px auto 150px !important; max-width: calc(100% - 140px);
}
.hat-theme-office .hat-monitor::before { content: ""; position: absolute; inset: -34px -34px -60px; border-radius: 34px; z-index: -1; background: linear-gradient(160deg, #f1e9d6, #e0d5bc 55%, #cfc3a6); box-shadow: inset 0 3px 0 #fffaf0, inset 0 -6px 0 #b8ab8c, 0 30px 50px rgba(80, 40, 60, .35); }
.hat-theme-office .hat-monitor::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 30; border-radius: inherit; background: repeating-linear-gradient(rgba(0, 0, 0, .06) 0 1px, transparent 1px 3px), radial-gradient(120% 90% at 30% 0%, rgba(255, 255, 255, .14), transparent 45%); }
.hat-theme-office .hat-monitor.hat-boot { animation: hat-boot .9s ease-out; }
@keyframes hat-boot { 0% { transform: scaleY(.008) scaleX(.6); filter: brightness(4); } 45% { transform: scaleY(.02) scaleX(1); filter: brightness(3); } 100% { transform: none; filter: none; } }
.hat-monitor .hat-wintitle { display: flex; align-items: center; gap: 8px; width: 100%; box-sizing: border-box; padding: 5px 6px 5px 8px; background: linear-gradient(90deg, #5b2bd6, #b05ad9 55%, #ec6fae); color: #fff; font: 700 14px/1 "Pixelify Sans", monospace; letter-spacing: .06em; order: -10; }
.hat-monitor .hat-wintitle .ic { width: 16px; height: 16px; background: conic-gradient(#ffd23f 0 25%, #ff6fae 0 50%, #7bdcff 0 75%, #9dff7a 0); box-shadow: 0 0 0 1px #000; flex: none; }
.hat-monitor .hat-wintitle .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hat-monitor .hat-wintitle .bt { display: flex; gap: 3px; }
.hat-monitor .hat-wintitle .bt i { font-style: normal; width: 18px; height: 16px; display: grid; place-items: center; font: 700 12px/1 system-ui, sans-serif; color: #000; background: #c9c3cf; box-shadow: inset -1px -1px 0 #1e1b24, inset 1px 1px 0 #fff, inset -2px -2px 0 #5a5463; }
.hat-monitor .hat-status { display: flex; justify-content: space-between; width: 100%; box-sizing: border-box; padding: 4px 8px; font: 700 12px/1.4 "Pixelify Sans", monospace; color: #222; background: #c9c3cf; box-shadow: inset 1px 1px 0 #5a5463, inset -1px -1px 0 #fff; order: 999; }
.hat-monitor .hat-badge { position: absolute; left: 50%; bottom: -46px; transform: translateX(-50%); font: 700 13px/1 "Pixelify Sans", monospace; letter-spacing: .2em; color: #9a8d70; text-shadow: 0 1px 0 #fffaf0; white-space: nowrap; }
.hat-monitor .hat-led { position: absolute; right: 26px; bottom: -40px; width: 10px; height: 10px; border-radius: 50%; background: #3dff7a; box-shadow: 0 0 8px #3dff7a; animation: hat-blink 3s ease-in-out infinite; }
.hat-monitor .hat-vents { position: absolute; left: 26px; bottom: -42px; width: 90px; height: 14px; background: repeating-linear-gradient(90deg, #b8ab8c 0 4px, transparent 4px 9px); opacity: .8; }
.hat-monitor .hat-stand { position: absolute; left: 50%; bottom: -150px; width: 340px; max-width: 80%; height: 90px; transform: translateX(-50%); pointer-events: none; }
.hat-monitor .hat-stand::before { content: ""; position: absolute; left: 50%; top: 0; width: 140px; height: 44px; margin-left: -70px; background: linear-gradient(#d9ceb3, #c3b697); clip-path: polygon(15% 0, 85% 0, 100% 100%, 0 100%); }
.hat-monitor .hat-stand::after { content: ""; position: absolute; left: 0; right: 0; top: 40px; height: 26px; border-radius: 10px 10px 14px 14px; background: linear-gradient(#e6dcc3, #c9bc9d); box-shadow: inset 0 2px 0 #fffaf0, 0 10px 18px rgba(80, 40, 60, .3); }
@keyframes hat-blink { 50% { opacity: .2; } }
/* desk decorations placed by office.js */
.hat-monitor .hat-deco { position: absolute; pointer-events: none; z-index: 2; }
.hat-monitor .hat-cat { left: -205px; top: 40px; width: 160px; transform: rotate(-2deg); filter: drop-shadow(0 10px 12px rgba(40, 30, 20, .3)); }
.hat-monitor .hat-clock { right: -170px; top: 20px; width: 110px; height: 110px; filter: drop-shadow(0 6px 8px rgba(40, 30, 20, .25)); }
.hat-monitor .hat-mug { right: -150px; bottom: -150px; width: 120px; height: 154px; }
.hat-mug .steam path { fill: none; stroke: rgba(255, 255, 255, .9); stroke-width: 5; stroke-linecap: round; filter: blur(2.5px); animation: hat-steam 3.6s ease-in-out infinite; opacity: 0; }
.hat-mug .steam path:nth-child(2) { animation-delay: -1.2s; } .hat-mug .steam path:nth-child(3) { animation-delay: -2.4s; }
@keyframes hat-steam { 0% { transform: translateY(14px) scaleY(.6); opacity: 0; } 25% { opacity: .85; } 70% { opacity: .4; } 100% { transform: translateY(-26px) scaleY(1.15) translateX(4px); opacity: 0; } }
/* post-it notes: text widgets with the class hat-note */
.hat-note:not(:has(> .elementor-widget-container)), .hat-note > .elementor-widget-container { width: 140px; min-height: 110px; padding: 16px 12px 10px; box-sizing: border-box; font: 600 20px/1.15 "Caveat", cursive; color: #3a2f2a; background: var(--hat-note-bg, #fff58a); box-shadow: 0 8px 14px rgba(60, 30, 40, .25); transform: rotate(var(--r, -4deg)); transform-origin: 50% 0; animation: hat-flutter 5s ease-in-out infinite; position: relative; }
.hat-note p { margin: 0; color: inherit !important; font: inherit; }
.hat-note:not(:has(> .elementor-widget-container))::before, .hat-note > .elementor-widget-container::before { content: ""; position: absolute; left: 50%; top: -8px; width: 56px; height: 18px; margin-left: -28px; background: rgba(255, 255, 255, .55); transform: rotate(-3deg); }
@keyframes hat-flutter { 0%, 100% { transform: rotate(var(--r, -4deg)); } 50% { transform: rotate(calc(var(--r, -4deg) + 1.5deg)) translateY(1px); } }
.hat-monitor .hat-note { position: absolute !important; z-index: 3; width: auto !important; }
.hat-monitor .hat-note.hat-n1 { left: -150px; bottom: 150px; --r: -4deg; }
.hat-monitor .hat-note.hat-n2 { right: -140px; bottom: 210px; --r: 5deg; --hat-note-bg: #ffb3d1; }
.hat-monitor .hat-note.hat-n3 { left: -140px; top: 240px; --r: 3deg; --hat-note-bg: #b8f2c9; }
/* window content */
body.hat-on.hat-theme-office .hat-term .elementor-heading-title { display: block; font: 400 20px/1.1 "VT323", monospace !important; color: #7dff9a !important; background: #0d0f0c; padding: 8px 10px; box-shadow: inset 2px 2px 0 #5a5463, inset -1px -1px 0 #fff; text-shadow: 0 0 6px rgba(125, 255, 154, .6); white-space: nowrap; overflow: hidden; }
.hat-theme-office .hat-term .elementor-heading-title::after { content: ""; display: inline-block; width: 10px; height: 18px; margin-left: 3px; vertical-align: -3px; background: #7dff9a; box-shadow: 0 0 6px #7dff9a; animation: hat-caret 1s steps(1) infinite; }
@keyframes hat-caret { 50% { opacity: 0; } }
.hat-cursor { position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none; transform: translate(-100px, -100px); filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, .35)); }
.hat-cursor .ring { position: absolute; left: -10px; top: -10px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; opacity: 0; }
.hat-cursor.click .ring { animation: hat-ring .45s ease-out; }
@keyframes hat-ring { 0% { transform: scale(.3); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }

@media (max-width: 1460px) {
  .hat-monitor .hat-cat { left: -150px; width: 120px; }
  .hat-monitor .hat-clock { right: -128px; width: 96px; height: 96px; }
  .hat-monitor .hat-mug { right: -122px; width: 100px; height: 128px; }
  .hat-monitor .hat-note.hat-n1 { left: -118px; } .hat-monitor .hat-note.hat-n2 { right: -110px; } .hat-monitor .hat-note.hat-n3 { left: -112px; }
}
@media (max-width: 1100px) {
  .hat-theme-office .hat-monitor { max-width: calc(100% - 40px); margin: 190px auto 140px !important; }
  .hat-monitor .hat-cat { left: 4px; top: -175px; width: 118px; }
  .hat-monitor .hat-clock { display: none; }
  .hat-monitor .hat-mug { right: auto; left: 44%; bottom: auto; top: -128px; width: 76px; height: 98px; }
  .hat-monitor .hat-note.hat-n1 { left: auto; right: 4px; top: -150px; bottom: auto; }
  .hat-monitor .hat-note.hat-n2, .hat-monitor .hat-note.hat-n3 { display: none; }
}
@media (max-width: 767px) {
  .hat-theme-office .hat-monitor { max-width: calc(100% - 24px); margin: 170px auto 120px !important; border-radius: 14px / 12px; }
  .hat-theme-office .hat-monitor::before { inset: -12px -12px -40px; border-radius: 22px; }
  .hat-monitor .hat-badge { bottom: -31px; font-size: 11px; } .hat-monitor .hat-led { bottom: -26px; right: 16px; } .hat-monitor .hat-vents { bottom: -28px; left: 16px; width: 60px; }
  .hat-monitor .hat-stand { bottom: -112px; height: 70px; }
  .hat-note:not(:has(> .elementor-widget-container)), .hat-note > .elementor-widget-container { width: 104px; min-height: 80px; font-size: 16px; padding: 12px 8px 6px; }
  .hat-monitor .hat-note.hat-n1 { top: -128px; }
  .hat-monitor .hat-cat { top: -160px; width: 104px; }
  .hat-monitor .hat-mug { top: -112px; width: 66px; height: 86px; }
}
