/* site.css — the desktop, the long client window and its tab pages. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: var(--ui); color: var(--ink); background: #2B4F81; min-height: 100vh; padding-bottom: var(--taskbar-h); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- desktop ---------- */
.wallpaper { position: fixed; inset: 0; z-index: -1; }
.wp { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s linear; }
.era-0 .wp-0, .era-1 .wp-1, .era-2 .wp-2, .era-3 .wp-3, .era-4 .wp-4, .era-5 .wp-5, .era-6 .wp-6 { opacity: 1; }
/* Era I — Genesis: night blue with the block-zero headline set into it */
.wp-0 { background: radial-gradient(120% 80% at 20% 0%, #3E6BA8 0%, #234677 45%, #142B4E 100%); }
.wp-0::after { content: "0100000000000000000000000000000000000000000000000000000000000000000000003BA3EDFD7A7B12B27AC72C3E67768F617FC81BC3888A51323A9FB8AA4B1E5E4A29AB5F49FFFF001D1DAC2B7C0101000000010000000000000000000000000000000000000000000000000000000000000000FFFFFFFF4D04FFFF001D0104455468652054696D65732030332F4A616E2F32303039204368616E63656C6C6F72206F6E206272696E6B206F66207365636F6E64206261696C6F757420666F722062616E6B73FFFFFFFF0100F2052A01000000434104678AFDB0FE5548271967F1A67130B7105CD6A828E03909A67962E0EA1F61DEB649F6BC3F4CEF38C4F35504E51EC112DE5C384DF7BA0B8D578A4C702B6BF11D5FAC000000000100000000000000000000000000000000000000000000000000000000000000000000003BA3EDFD7A7B12B27AC72C3E67768F617FC81BC3888A51323A9FB8AA4B1E5E4A29AB5F49FFFF001D1DAC2B7C0101000000010000000000000000000000000000000000000000000000000000000000000000FFFFFFFF4D04FFFF001D0104455468652054696D65732030332F4A616E2F32303039204368616E63656C6C6F72206F6E206272696E6B206F66207365636F6E64206261696C6F757420666F722062616E6B73FFFFFFFF0100F2052A01000000434104678AFDB0FE5548271967F1A67130B7105CD6A828E03909A67962E0EA1F61DEB649F6BC3F4CEF38C4F35504E51EC112DE5C384DF7BA0B8D578A4C702B6BF11D5FAC000000000100000000000000000000000000000000000000000000000000000000000000000000003BA3EDFD7A7B12B27AC72C3E67768F617FC81BC3888A51323A9FB8AA4B1E5E4A29AB5F49FFFF001D1DAC2B7C0101000000010000000000000000000000000000000000000000000000000000000000000000FFFFFFFF4D04FFFF001D0104455468652054696D65732030332F4A616E2F32303039204368616E63656C6C6F72206F6E206272696E6B206F66207365636F6E64206261696C6F757420666F722062616E6B73FFFFFFFF0100F2052A01000000434104678AFDB0FE5548271967F1A67130B7105CD6A828E03909A67962E0EA1F61DEB649F6BC3F4CEF38C4F35504E51EC112DE5C384DF7BA0B8D578A4C702B6BF11D5FAC00000000"; position: absolute; inset: 0; padding: 18px 22px; overflow: hidden; font: 15px/1.9 "Lucida Console", "Courier New", monospace; letter-spacing: .28em; color: rgba(255, 255, 255, .055); word-break: break-all; }
/* Era II — The Faucet: water */
.wp-1 { background: repeating-radial-gradient(circle at 80% 20%, rgba(255, 255, 255, .06) 0 2px, transparent 3px 26px), linear-gradient(170deg, #2E8FBF, #145E8C 55%, #0B3C61); }
/* Era III — Pizza Day: tiled checkered tablecloth */
.wp-2 { background: repeating-conic-gradient(#B83A22 0 25%, #E9DFC8 0 50%) 0 0 / 64px 64px; }
.wp-2::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, transparent 30%, rgba(40, 10, 0, .45)); }
/* Era IV — GPU Revolution: circuit board */
.wp-3 { background: linear-gradient(90deg, rgba(160, 230, 150, .12) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(rgba(160, 230, 150, .12) 1px, transparent 1px) 0 0 / 28px 28px, radial-gradient(circle, #D9B85A 2px, transparent 2.6px) 14px 14px / 56px 56px, linear-gradient(160deg, #1F5E2E, #0E3A1B); }
/* Era V — Industrial Mining: rack rows */
.wp-4 { background: radial-gradient(circle, #6BE36B 1.3px, transparent 1.8px) 10px 9px / 22px 18px, repeating-linear-gradient(#4A4E5A 0 16px, #2F323B 16px 18px), #2F323B; }
/* Era VI — Digital Gold */
.wp-5 { background: linear-gradient(115deg, rgba(255, 255, 255, .18) 0 12%, transparent 12% 30%, rgba(255, 255, 255, .1) 30% 34%, transparent 34%), linear-gradient(160deg, #F3CF63, #C9921C 55%, #7A5208); }
/* Era VII — The Satoshi Era: the whitepaper's first lines, on night slate */
.wp-6 { background: radial-gradient(110% 80% at 80% 10%, #2A3442, #151B24 60%, #0D1117); }
.wp-6::after { content: "Bitcoin: A Peer-to-Peer Electronic Cash System · A purely peer-to-peer version of electronic cash would allow online payments to be sent directly from one party to another without going through a financial institution. · Bitcoin: A Peer-to-Peer Electronic Cash System · A purely peer-to-peer version of electronic cash would allow online payments to be sent directly from one party to another without going through a financial institution. · Bitcoin: A Peer-to-Peer Electronic Cash System · A purely peer-to-peer version of electronic cash would allow online payments to be sent directly from one party to another without going through a financial institution. · Bitcoin: A Peer-to-Peer Electronic Cash System · A purely peer-to-peer version of electronic cash would allow online payments to be sent directly from one party to another without going through a financial institution. · Bitcoin: A Peer-to-Peer Electronic Cash System · A purely peer-to-peer version of electronic cash would allow online payments to be sent directly from one party to another without going through a financial institution. · Bitcoin: A Peer-to-Peer Electronic Cash System · A purely peer-to-peer version of electronic cash would allow online payments to be sent directly from one party to another without going through a financial institution. · "; position: absolute; inset: 0; padding: 22px 26px; overflow: hidden; font: 600 22px/1.75 Georgia, "Times New Roman", serif; color: rgba(255, 255, 255, .06); }

.desk-icons { position: fixed; top: 18px; left: 14px; display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; z-index: 0; }
.desk-icon { display: grid; justify-items: center; gap: 4px; width: 84px; padding: 4px 2px; background: none; border: 1px solid transparent; color: #fff; font: var(--ui); text-shadow: 1px 1px 1px #000, 0 0 2px #000; cursor: default; }
.desk-icon svg { width: 40px; height: 40px; filter: drop-shadow(1px 2px 1px rgba(0, 0, 0, .45)); transition: transform .12s var(--ease-zoom); }
.desk-icon span { padding: 0 2px; line-height: 1.25; }
.desk-icon:hover svg { transform: translateY(-2px); }
.desk-icon:hover span { background: rgba(49, 106, 197, .35); }
.desk-icon:active span, .desk-icon:focus-visible span { background: #316AC5; text-shadow: none; }
.desk-icon:active svg { filter: drop-shadow(1px 2px 1px rgba(0, 0, 0, .45)) sepia(.4) hue-rotate(180deg) saturate(2.4) brightness(.8); }

/* ---------- the client window ---------- */
.app { width: min(1080px, calc(100vw - 240px)); margin: 22px auto 0; }
.chrome { position: sticky; top: 0; z-index: 40; margin: 0 -4px; padding: 0 4px; background: var(--face); }
.chrome .titlebar { margin: 0 -4px; }
.app.is-max { width: 100%; margin-top: 0; border-radius: 0; }
.app.is-max .titlebar { border-radius: 0; }

.wallet { display: grid; grid-template-columns: auto minmax(0, 440px) auto minmax(0, 1fr); align-items: center; gap: 8px 10px; padding: 6px 10px 10px; }
.wallet .row { display: contents; }
.wallet .lbl { grid-column: 1; }
.lbl { white-space: nowrap; }
.addr { width: 100%; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.wallet .addr { grid-column: 2; }
.wallet [data-act="copy"] { grid-column: 3; justify-self: start; }
.balance { width: 160px; grid-column: 2; }
.meme { grid-column: 3 / -1; justify-self: end; color: #33333F; text-align: right; }
.meme b { color: #000; }

.tabs { position: sticky; top: var(--chrome-h, 61px); z-index: 35; margin: 0 -3px; }
.pages { background: #FCFCFE; border: 1px solid var(--edge); border-top: 0; margin: 0 2px 10px; box-shadow: inset 0 0 0 1px #fff; }
.page { padding: 0 14px 26px; scroll-margin-top: calc(var(--chrome-h, 61px) + var(--tabs-h, 32px)); }
.page + .page { border-top: 1px solid #DCDBE4; }

/* wizard header band — every tab page starts like a 2009 setup wizard */
.wiz { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 -14px 14px; padding: 14px 18px 13px; background: #fff; border-bottom: 1px solid #D5D4DE; box-shadow: 0 1px 0 #fff; }
.wiz h1, .wiz h2 { font: 700 clamp(20px, 2.1vw, 25px)/1.15 "Trebuchet MS", "Lucida Grande", Tahoma, sans-serif; letter-spacing: -.01em; margin-bottom: 4px; }
.wiz p { color: #33333F; max-width: 68ch; }
.wiz .slogan { margin-top: 5px; font-weight: 700; color: #000; }
.wiz-ico { width: 64px; height: 64px; flex: none; filter: drop-shadow(1px 2px 2px rgba(0, 0, 0, .25)); }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.facts .row { display: grid; gap: 3px; }
.facts .field { width: 100%; min-height: 34px; font: 700 18px/1.2 "Trebuchet MS", "Lucida Grande", Tahoma, sans-serif; letter-spacing: -.01em; }
.halving-bar { display: flex; flex-wrap: wrap; align-items: end; gap: 8px 10px; margin-bottom: 12px; }
.halving-bar .row { display: grid; gap: 3px; }
.halving-bar .cd { min-width: 150px; }
.halving-bar .cta { display: flex; gap: 8px; margin-left: auto; }

.infobar { display: flex; align-items: flex-start; gap: 8px; padding: 6px 10px; background: #FFFFE1; border: 1px solid #ACA899; border-bottom: 0; color: #000; }
.infobar svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.tx-wrap { min-height: 190px; max-height: 330px; }
.tx td { white-space: nowrap; }
.tx td.desc, .tx th.desc { width: 100%; white-space: normal; }
.tx .debit { color: #000; }
.tx .credit { color: #000; }
.tx tr.is-new td { animation: row-in .6s steps(4, end); }
@keyframes row-in { from { background: #FFF3C4; } }

/* ---------- taskbar ---------- */
.taskbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; align-items: center; gap: 6px; height: var(--taskbar-h); padding: 0 6px 0 0; background: linear-gradient(#F4F4F8, #DADAE4 12%, #CBCBD8 55%, #B7B7C7); border-top: 1px solid #fff; box-shadow: 0 -1px 0 #8E8EA2; }
.task-start { display: flex; align-items: center; gap: 6px; height: 100%; padding: 0 16px 0 10px; border: 0; border-radius: 0 10px 10px 0; background: linear-gradient(#FFE38A, #F2B51C 45%, #C98A06); color: #3A2600; font: italic 700 16px/1 "Trebuchet MS", Tahoma, sans-serif; text-shadow: 0 1px 0 rgba(255, 255, 255, .5); box-shadow: inset 0 1px 0 #FFF2C4, 2px 0 3px rgba(0, 0, 0, .25); cursor: default; }
.task-start svg { width: 20px; height: 20px; transition: transform .2s var(--ease-zoom); }
.task-start:hover { background: linear-gradient(#FFEDAA, #F7C33E 45%, #D99A10); }
.task-start:hover svg { transform: rotate(-12deg) scale(1.08); }
.task-start:active { background: linear-gradient(#C98A06, #E3A514 55%, #F2C33A); box-shadow: inset 0 2px 4px rgba(60, 30, 0, .45); }
.task-btns { display: flex; gap: 4px; flex: 1 1 auto; min-width: 0; }
.task-btn { display: flex; align-items: center; gap: 6px; max-width: 220px; min-width: 0; height: 26px; padding: 0 10px; border: 1px solid #8E8EA2; border-radius: 3px; background: linear-gradient(#FFFFFF, #E6E6EE 60%, #D4D4DF); font: var(--ui); color: #000; cursor: default; }
.task-btn svg { width: 16px; height: 16px; flex: none; }
.task-btn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-btn[hidden] { display: none; }
body.app-hidden .desk-icons { display: grid; }
.task-btn:hover { background: linear-gradient(#FFFFFF, #F3F3F8 60%, #E4E4EC); box-shadow: inset 0 0 0 1px #FFE7B0, inset 0 -2px 0 var(--hot); }
.task-btn.is-active, .task-btn:active { background: linear-gradient(#C3C3D2, #D3D3DE 50%, #E1E1E9); box-shadow: inset 1px 1px 3px rgba(0, 0, 0, .35); font-weight: 700; }
.tray { display: flex; align-items: center; gap: 2px; height: 100%; padding: 0 8px 0 10px; background: linear-gradient(#ECECF2, #D9D9E3 50%, #C8C8D6); border-left: 1px solid #9C9CB0; box-shadow: inset 1px 0 0 #fff; }
.tray-btn { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 1px solid transparent; border-radius: 3px; background: none; cursor: default; }
.tray-btn svg { width: 16px; height: 16px; transition: transform .15s var(--ease-zoom); }
.tray-btn:hover { border-color: #A9A9BA; background: #fff; }
.tray-btn:hover svg { transform: scale(1.15); }
.tray-btn:active { background: var(--hi); }
.clock { padding: 0 4px 0 8px; font-variant-numeric: tabular-nums; }
.sound-off .tray-btn .waves { display: none; }
body:not(.sound-off) .tray-btn .mute { display: none; }

/* ---------- mobile: the window is maximised ---------- */
@media (max-width: 1279px) { .desk-icons { display: none; } .app { width: min(1080px, calc(100vw - 32px)); } }
@media (max-width: 720px) {
  :root { --ui: 15px/1.4 Tahoma, Verdana, "DejaVu Sans", "Segoe UI", sans-serif; --taskbar-h: 0px; }
  body { padding-bottom: 0; }
  .taskbar { display: none; }
  .app { width: 100%; margin: 0; border-radius: 0; border-left: 0; border-right: 0; padding: 0 2px; box-shadow: none; }
  .chrome .titlebar { border-radius: 0; border-left: 0; border-right: 0; }
  .titlebar .title small { display: none; }
  .capbtn { width: 38px; height: 38px; }
  .chrome .titlebar { height: 46px; }
  .tx tr.empty a { display: inline-block; padding: 11px 0; }
  .balloon .x { width: 34px; height: 34px; top: 2px; right: 2px; font-size: 15px; }
  input[type="range"].track { height: 44px; }
  .capbtns [data-act="maximize"] { display: none; }
  .menu-title { padding: 6px 12px; }
  .toolbar { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
  .tool { min-height: 46px; border-color: #C9C9D6; background: linear-gradient(#FFFFFF, #EFEFF4); }
  .wallet { grid-template-columns: auto minmax(0, 1fr); padding: 6px 8px 10px; }
  .wallet .row:first-child .lbl, .wallet .addr { grid-column: 1 / -1; }
  .wallet .addr { font-size: 13px; min-height: 40px; }
  .wallet [data-act="copy"] { grid-column: 1 / -1; justify-self: stretch; min-height: 42px; }
  .balance { grid-column: 2; width: 100%; min-height: 40px; }
  .meme { grid-column: 1 / -1; justify-self: start; text-align: left; }
  .tabs { padding: 6px 4px 0; }
  .tab { padding: 8px 12px 7px; }
  .tab[aria-current="true"] { padding: 10px 14px 8px; }
  .pages { margin: 0 0 8px; }
  .page { padding: 0 10px 24px; }
  .wiz { margin: 0 -10px 12px; padding: 12px; }
  .wiz-ico { width: 48px; height: 48px; align-self: flex-start; }
  .facts { grid-template-columns: 1fr 1fr; }
  .field, .btn { min-height: 40px; }
  .halving-bar .cta { margin-left: 0; width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .halving-bar .row { flex: 1 1 100%; }
  .halving-bar > .btn { width: 100%; }
  .btn.big { white-space: normal; }
  /* the list view reflows: description + amount on top, status and date below */
  .tx thead { display: none; }
  .tx tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 7px 8px; border-bottom: 1px solid #ECECF1; }
  .tx td { padding: 0; white-space: normal; }
  .tx td.desc { grid-column: 1; grid-row: 1; font-weight: 700; }
  .tx td.amt { grid-column: 2; grid-row: 1; padding-left: 10px; }
  .tx td.st, .tx td.dt { grid-row: 2; color: #55555F; font-size: 13px; }
  .tx td.st { grid-column: 1; }
  .tx td.dt { grid-column: 2; text-align: right; }
  .tx td.na { display: none; }
  .tx tr.empty { display: block; }
  .statusbar { bottom: 0; height: 30px; }
  .balloon { bottom: 44px; }
  .balloon::after { right: 26px; }
  .statusbar [data-live="status-conn"], .statusbar [data-live="status-tx"], .statusbar .grip { display: none; }
  .statusbar > span { padding: 0 8px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
