:root { --teal: #008080; --silver: #c0c0c0; --white: #fff; --black: #000; --blue: #000080; }
* { box-sizing: border-box; }
html, body { margin: 0; min-width: 320px; background: var(--teal); color: black; font: 14px "MS Sans Serif", Tahoma, Arial, sans-serif; }
.desktop { display: grid; min-height: 100svh; padding: 24px; place-items: center; }
.window { width: min(540px, 100%); padding: 3px; background: var(--silver); border: 2px solid white; border-right-color: #404040; border-bottom-color: #404040; box-shadow: 1px 1px 0 black; }
.titlebar { display: flex; align-items: center; gap: 8px; min-height: 25px; padding: 2px 3px; color: white; background: var(--blue); }
.titlebar h1 { flex: 1; min-width: 0; margin: 0; font-size: 1rem; }
.app-icon { width: 16px; height: 16px; image-rendering: pixelated; }
.window-controls { display: flex; gap: 3px; }
button { min-width: 96px; padding: 6px 20px; border: 2px solid white; border-right-color: #404040; border-bottom-color: #404040; background: var(--silver); color: black; font: inherit; font-weight: bold; cursor: pointer; }
button:hover { background: #d5d5d5; }
button:active { border-color: #404040 white white #404040; }
button:focus-visible { outline: 2px dotted black; outline-offset: -5px; }
.window-controls button { display: grid; place-items: center; min-width: 0; width: 21px; height: 20px; padding: 0; font-size: .9rem; line-height: 1; }
.window-body { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 20px; padding: 32px 28px 28px; }
.beer-icon { width: 64px; height: 64px; image-rendering: pixelated; }
.message p { margin: 0 0 16px; line-height: 1.45; }
.message .lead { margin-bottom: 8px; font-weight: bold; }
.message button { margin-top: 10px; outline: 1px solid black; outline-offset: -4px; }
.message button:focus-visible { outline: 2px dotted black; }
.statusbar { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding-top: 3px; font-size: .8rem; }
.statusbar span { padding: 3px 5px; border: 1px solid #808080; border-right-color: white; border-bottom-color: white; }
.statusbar span:last-child { text-align: right; }
[hidden] { display: none !important; }
.window.maximised { width: 100%; min-height: calc(100svh - 48px); display: flex; flex-direction: column; }
.window.maximised .window-body { flex: 1; }
#celebration { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; image-rendering: pixelated; }
.desktop:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
::selection { color: white; background: var(--blue); }
@media (max-width: 520px) {
  .desktop { padding: 24px 16px; }
  .window-body { grid-template-columns: 64px 1fr; gap: 16px; padding: 28px 18px 32px; }
  .beer-icon { width: 64px; height: 64px; }
  .message { font-size: .92rem; }
  .window-controls button { width: 18px; }
  .titlebar h1 { font-size: .85rem; }
  .app-icon { display: none; }
}
