/* Use the walnut texture shared with the mobile shelves. Vary the cut across
   the three long boards that make up the desktop while keeping the grain aligned. */
.desk-cut-face { backface-visibility: visible; }
.desk-walnut-top, .display-board-top, .display-board-edge {
  --walnut-grain: url("../assets/room/walnut-shelf-edge.webp");
}
.desk-walnut-top {
  background:
    linear-gradient(0deg,#532e171a,#d89a5926),
    var(--walnut-grain) 83% top / 132% 32.5% no-repeat,
    var(--walnut-grain) 16% 48% / 118% 36% no-repeat,
    var(--walnut-grain) 42% bottom / 145% 35% no-repeat,
    #81563c !important;
}
.display-board-top {
  background:linear-gradient(0deg,#50351c26,transparent 42%),
    var(--walnut-grain) 28% center / cover, #81563c !important;
}
.display-board-edge {
  background:linear-gradient(#f7c88540,transparent 22%,#2b1d1a45),
    var(--walnut-grain) center 72% / 100% auto, #68412b !important;
}
.furniture-contact {
  box-shadow:0 0 1.2px .7px #281b126e,0 0 3px .5px #2e1b122e;
}
.desk-timber-leg {
  background-image:linear-gradient(88deg,transparent 35%,#e2ab7330 38% 43%,transparent 46% 73%,#4e333321 76%) !important;
}
.desk-lap-end {
  border-radius:1px;
  box-shadow:inset 0 1px #b68b63;
  background-image:repeating-linear-gradient(63deg,transparent 0 2px,#c3936833 2.5px 3px) !important;
}
.desk-case-frame {
  background-image:
    linear-gradient(43deg,transparent 47%,#583d2c 49% 55%,transparent 57%),
    linear-gradient(-43deg,transparent 47%,#583d2c 49% 55%,transparent 57%) !important;
  background-position:left top,right top !important;
  background-size:9px 7px !important;
  background-repeat:no-repeat !important;
}
.desk-matched-front {
  background:
    radial-gradient(ellipse 60% 86% at 0% 94%,transparent 48%,#66452f70 50% 53%,transparent 55% 64%,#c88d575c 66% 69%,transparent 71%),
    radial-gradient(ellipse 63% 69% at 78% 10%,transparent 45%,#bf855645 47% 52%,transparent 55% 70%,#6d483545 73% 76%,transparent 79%),
    linear-gradient(3deg,#936044,#aa7551 42%,#966749 76%,#a4704d) !important;
}
.desk-matched-front::after {
  content:'';
  position:absolute;
  inset:48% 0 auto;
  height:1.4px;
  background:#513a31;
  box-shadow:0 1px #c19267;
}
.desk-carved-pull {
  border-radius:1px 1px 6px 2px;
  background:linear-gradient(#c79b6f 0 21%,#946344 24% 54%,#674535 57%) !important;
}
.desk-pencil-front {
  border-block:1px solid #634734;
  background:linear-gradient(2deg,#91633f 0 32%,#a5734e 42% 64%,#ac7d56) !important;
}
.desk-pencil-front::after {
  content:'';
  position:absolute;
  right:4px;
  top:-3px;
  width:12px;
  height:6px;
  border-radius:0 0 50% 50%;
  background:#583d31;
}
.desk-lock-plate {
  display:grid;place-items:center;border:.45px solid #6a482c;border-radius:2px;
  background:linear-gradient(158deg,#d3aa6c 2%,#b68a4d 23%,#9d6d3d 45%,#c79b58 60%,#775336) !important;
  box-shadow:inset 0 .45px #f0cc8a,0 .55px #5a3b2a;
}
.desk-lock-plate::before,.desk-lock-plate::after {
  content:"";position:absolute;top:50%;width:1.25px;height:1.25px;
  transform:translateY(-50%);border-radius:50%;background:#5c422a;
  box-shadow:0 .3px #e9bf7c;
}
.desk-lock-plate::before {left:1.6px}
.desk-lock-plate::after {right:1.6px}
.desk-lock-plate i {
  width:3px;height:3.6px;background:#2f241c;
  clip-path:polygon(30% 0,70% 0,100% 37%,73% 61%,80% 100%,20% 100%,27% 61%,0 37%);
}
.night .desk-lock-plate { filter:brightness(.86);box-shadow:inset 0 .45px #e0b676,0 .55px #4c3627; }
.desk-file-label { display:grid; place-items:center; }
.desk-file-label span {
  box-sizing: border-box;
  width: 46px;
  padding: 1px 2px;
  text-align: center;
  border: 1.5px solid #c59953;
  box-shadow: 0 1px #343e39;
  border-radius: 2px;
  background: #f5e3b9;
  color: #343b39;
  font: 700 6px/1.25 ui-monospace,monospace;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.desk-screen-shell {
  border: 1.4px solid #263e40;
  border-radius: 6px;
  box-shadow: inset 1.6px 1.6px #b5c4a6,inset -2px -2px #466e6e;
}
.desk-display {
  border: 2.5px solid #294547;
  border-radius: 4px;
  color: #293f40;
}
.desk-display-type { position: absolute; inset: 5px auto 4px 7px; z-index: 1; }
.desk-display-type small {
  display: block;
  font: 700 4.5px/1.1 ui-monospace,monospace;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.desk-display-type strong {
  display:block;
  margin: 5px 0 0 -1px;
  font: bold 19px/.87 Georgia,serif;
  letter-spacing: -1.4px;
}
.desk-sun-print {
  position: absolute;
  top: 5px;
  right: 6px;
  bottom: 5px;
  width: 43px;
  overflow:hidden;
  background:#d2ceb0;
}
.desk-sun-print::before {
  content:'';
  position:absolute;
  width:30px;
  height:30px;
  left:7px;
  top:4px;
  border-radius:50%;
  background:#c66b46;
}
.desk-sun-print::after {
  content:'';
  position:absolute;
  inset:22px -13px -16px -15px;
  background:repeating-radial-gradient(ellipse at 32% 130%,#28555a 0 6px,#8aa69a 6.6px 8px);
  border-radius:60% 70% 0 0;
  transform: rotate(-13deg);
}
.desk-power-led { border-radius: 2px; }
.desk-keys { border:1px solid #735c4d; border-radius:3px; }
.desk-keys i {
  position:absolute;
  inset:4px 5px 7px;
  background:repeating-linear-gradient(0deg,transparent 0 3px,#a49b81 3px 4.5px),
    repeating-linear-gradient(90deg,#f6e7c2 0 4.5px,#a49b81 4.5px 6px);
}
.desk-keys b { position:absolute; bottom:3px; left:23px; width:30px; height:3px; background:#f6e7c2; }
.desk-notebook {
  border:1px solid #753e34;
  border-left:4px solid #733d37;
  border-radius:1px 3px 3px 1px;
}
.desk-notebook::before { content:''; position:absolute; top:8px; left:6px; width:21px; height:8px; background:#e8cc95; }
.desk-notebook::after { content:''; position:absolute; right:5px; top:0; bottom:0; width:2px; background:#6a3935; }
.desk-cup-handle {backface-visibility:visible;border:2.5px solid #d7b77f;border-radius:45%}
.desk-coffee {border:1.1px solid #f1deb4;background:radial-gradient(ellipse at 70% 27%,#b39065 0 9%,#6e4a32 17%,#49362c 68%,#7e5637)!important}
.desk-hinge {border:1.2px solid #684b35;border-radius:50%;background-image:linear-gradient(120deg,transparent 43%,#70523e 46% 53%,transparent 56%)!important}
.task-reflector {background:radial-gradient(circle,#e8d1a5 0 25%,#f3dfb2 28% 69%,#a8885d 96%)!important}
.night .task-reflector {background:radial-gradient(circle,#fff8db 0 25%,#ffe2a3 30%,#edbd7c 89%)!important}
.ply-edge {background-image:repeating-linear-gradient(0deg,transparent 0 1px,#73533766 1px 1.5px)!important}
.ply-back {
  background-image:repeating-radial-gradient(ellipse 70px 11px at 3px -4px,transparent 0 6px,#70483024 7px,transparent 8px 11px)!important;
  background-size:78px 58px!important;
}
.chair-upholstery {background-image:repeating-linear-gradient(26deg,transparent 0 1.5px,#ced4b835 2px,transparent 2.5px)!important}
.chair-rivet {border-radius:50%;box-shadow:inset 0 .5px #d9af77}

/* Raking window light breaks along the front bevel and reveals a small walnut key. */
.desk-walnut-top::before {
  content:"";position:absolute;inset:0;
  background:linear-gradient(111deg,#ffe0a92a 0 22%,#fff1c614 22.2% 43%,transparent 43.2%);
}
.desk-walnut-top::after {
  content:"";position:absolute;left:7%;top:74%;width:12px;height:6px;
  background:linear-gradient(13deg,#684937 30%,#815a42 32% 68%,#71503a 70%);
  clip-path:polygon(0 0,48% 31%,100% 0,100% 100%,48% 69%,0 100%);
}
.desk-bevel {box-shadow:inset 0 .8px #f5ce976e,inset 0 -.7px #7a4e36a3}
.desk-carved-pull {
  box-shadow:inset .8px .9px #efc690,inset -.8px -1.3px #523e32,0 .8px #c39065;
}
.night .desk-walnut-top::before {
  background:radial-gradient(ellipse 32% 65% at 15% 49%,#ffc27763,transparent 86%);
}
.night .desk-carved-pull {box-shadow:inset 0 .9px #d8ab74,inset -.8px -1.3px #49392f}
.ply-back,.chair-upholstery {backface-visibility:hidden}
.desk-matched-front::before {
  content:"";position:absolute;inset:0;opacity:var(--practical);
  background:radial-gradient(ellipse at 38% -25%,#ffde9fb3,transparent 82%);
}
.desk-file-label span {background:var(--lamp-ink);box-shadow:inset 0 1px #fff4c7,0 1px #343e39}

.desk-page-edge {
  background:repeating-linear-gradient(0deg,#f0dfb8 0 1px,#d5bf94 1.2px 1.6px)!important;
}
.desk-ribbon {
  clip-path:polygon(0 0,100% 0,100% 100%,50% 74%,0 100%);
}
.desk-lamp-spring {
  backface-visibility:visible;
  border-radius:1.3px;
  background:repeating-linear-gradient(154deg,#4a473d 0 1px,#c4ad83 1.2px 2px,#776d55 2.2px 3px)!important;
}

.pocket-player {border-radius:2px;box-shadow:inset 0 0 0 .7px #fef8e7}
.player-lcd {position:absolute;inset:3px 3px auto;height:12px;box-sizing:border-box;
  padding:1px 2px;border:.8px solid #585f53;background:#acb693;color:#29382e;
  font:bold 3.4px/1.35 monospace;box-shadow:inset 0 1px 1px #66745f}
.player-wheel {position:absolute;width:16px;height:16px;bottom:3px;left:5px;
  border-radius:50%;background:radial-gradient(circle,#dfdbc9 0 27%,#9e9e91 29% 32%,#faf7e6 34% 68%,#b8b6aa 70%)}
.player-wheel::after {content:'▶';position:absolute;bottom:1px;width:100%;text-align:center;color:#77786c;font:2.5px/1 sans-serif}

.player-polished-back {
  border-radius:2px;
  background:linear-gradient(115deg,#747d77,#cccfc5 29%,#a2aaa3 42%,#dadbcf 75%,#848e85)!important;
}
.player-metal-edge {
  background:linear-gradient(90deg,#949d97,#e0e1d4 46%,#9daba3 74%,#757f79)!important;
}
.player-jack {border-radius:50%;box-shadow:0 0 0 .45px #dce0d2}
.player-dock-lip {box-shadow:inset 0 -.6px #857d6f;border-radius:1px}
.player-lcd b,.player-lcd em {display:block;font-style:normal;line-height:1.2}
.player-lcd b {font-size:2.7px;border-bottom:.4px solid #69765d}
.player-lcd em {margin-top:.65px;background:#495b47;color:#c3ceae;text-indent:.8px}
.player-lcd::after {
  content:'';position:absolute;right:1.6px;top:1.5px;width:2.8px;height:1.2px;
  border:.35px solid #56624f;background:linear-gradient(90deg,#56624f 65%,transparent 65%);
}
.player-wheel::before {
  content:'MENU';position:absolute;inset:1.1px 0 auto;text-align:center;
  color:#65695f;font:700 1.8px/1 monospace;letter-spacing:.16px;
}
