/* Cabinet interiors */
.qp-cabinet {
  --qp-accent: #8ddfd7;
  --qp-ink: #f8f4eb;
  --qp-soft: #c4bfca;
  color: var(--qp-ink);
  background: #15131b;
  padding: clamp(16px, 3.6vw, 32px);
  font-family: var(--sans, system-ui, sans-serif);
}
.qp-cabinet button { cursor: pointer; font-family: inherit; }
.qp-cabinet button:disabled { cursor: default; }
.qp-cabinet button:focus-visible, .qp-cabinet:focus-visible {
  outline: 3px solid #ffe097;
  outline-offset: 2px;
}
.qp-cabinet [hidden] { display: none !important; }
.qp-readout {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  border-block: 1px solid #ffffff30;
  margin: 0 0 16px;
  padding: 10px 0;
}
.qp-readout > span { display: grid; gap: 2px; padding: 0 14px; color: var(--qp-soft); font-size: 10px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.qp-readout > span:first-child { padding-left: 0; }
.qp-readout > span + span { border-left: 1px solid #ffffff2b; }
.qp-readout b { font: 700 clamp(24px, 3vw, 33px)/1.05 var(--display, system-ui); letter-spacing: 0; color: var(--qp-accent); }
.qp-cabinet .qp-intro, .qp-cabinet .qp-status { margin: 0 0 15px; color: #d6d2d9; font-size: 14px; line-height: 1.45; }
.qp-cabinet .qp-status { color: var(--qp-accent); font-size: 13px; }
.qp-cabinet .qp-below { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.qp-below .qp-status { margin: 0; }

/* A hydraulic blueprint with illuminated water and physically joined pipes. */
.qp-water { background: radial-gradient(ellipse at 80% 60%, #19312f 0%, transparent 62%), #121c21; }
.qp-pipe-station {
  max-width: 390px;
  margin: 12px auto 0;
  padding: 8px 15px 16px;
  border: 1px solid #5e868866;
  background-color: #122529;
  background-image: radial-gradient(#9bb5ac55 .8px, transparent .8px);
  background-size: 12px 12px;
}
.qp-water-rail { display: flex; justify-content: space-between; margin-bottom: 7px; color: #9beae1; font: 700 10px/1.3 var(--sans, system-ui); letter-spacing: .12em; text-transform: uppercase; }
.qp-water-rail span:last-child { color: #ffcf78; }
.qp-water-grid { display: grid; grid-template-columns: repeat(var(--qp-size), minmax(0, 1fr)); border: 1px solid #466467; }
.qp-pipe {
  position: relative; display: grid; place-items: center;
  min-width: 0; width: 100%; aspect-ratio: 1; padding: 0; border-radius: 0;
  background: linear-gradient(135deg,#26383b,#17282d); border: 1px solid #405155;
}
.qp-pipe svg { display: block; width: 100%; height: 100%; overflow: visible; }
.qp-pipe svg path { fill: none; stroke-linejoin: round; }
.qp-pipe-rim { stroke: #0e1a20; stroke-width: 28; }
.qp-pipe-core { stroke: #697983; stroke-width: 16; }
.qp-pipe-valve { fill: #414f56; stroke: #253943; stroke-width: 2; }
.qp-pipe[data-wet="true"] { background: linear-gradient(135deg,#264f50,#1a3439); }
.qp-pipe[data-wet="true"] .qp-pipe-core { stroke: #80e4d7; }
.qp-pipe[data-wet="true"] .qp-pipe-valve { fill: #dafff9; stroke: #3a8e87; }
.qp-pipe:hover { border-color: #c5ece3; }
.qp-pipe:focus-visible { z-index: 2; }
.qp-inlet::before, .qp-outlet::after { content: ""; position: absolute; top: calc(50% - 6px); width: 13px; height: 12px; background: #87e2d5; clip-path: polygon(0 22%,55% 22%,55% 0,100% 50%,55% 100%,55% 78%,0 78%); }
.qp-inlet::before { left: -15px; }
.qp-outlet::after { right: -15px; background: #ffcc75; }

/* Garden plots, a forecast and individually selectable seed packets. */
.qp-harvest { --qp-accent: #e7ce85; background: linear-gradient(160deg,#20251c,#18191b 68%); }
.qp-forecast { display: flex; align-items: center; gap: 14px; padding: 10px 14px; margin-bottom: 14px; background: #283228; border: 1px solid #72816775; border-radius: 5px; }
.qp-forecast > strong { color: #f2ce80; font: 34px/1 Georgia,serif; }
.qp-forecast h3 { margin: 0; font: 700 24px/1.1 var(--display,system-ui); color: #fff4d8; }
.qp-forecast p, .qp-forecast > span { margin: 3px 0 0; font-size: 12px; color: #d4dbca; }
.qp-forecast > span { margin: 0 0 0 auto; border-left: 1px solid #7a8e7166; padding-left: 14px; }
.qp-forecast > span b { display: block; color: #fae8b3; }
.qp-seeds, .qp-field-actions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
.qp-seeds button, .qp-field-actions button { display: flex; flex-direction: column; justify-content: center; gap: 2px; border: 1px solid #75826868; border-radius: 4px; background: #222820; padding: 8px; color: #f4efd7; text-align: left; font-size: 13px; line-height: 1.24; min-height: 46px; }
.qp-cabinet button small { font-size: 10px; color: #d6d3c6; line-height: 1.35; }
.qp-seeds button[aria-pressed="true"] { background: #51472a; border-color: #e3c977; box-shadow: inset 3px 0 #e3c977; }
.qp-field-actions button { background: #303325; font-weight: 700; }
.qp-field-actions button:disabled { opacity: .5; }
.qp-seeds button:hover, .qp-field-actions button:not(:disabled):hover { border-color: #e7d58a; }
.qp-plots { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; margin: 10px 0; }
.qp-plot {
  position: relative; display: flex; flex-direction: column; align-items: stretch; justify-content: end;
  min-height: 110px; padding: 7px 8px; overflow: hidden;
  background: linear-gradient(0deg, #27271a 8%, #343424 60%, #323c2c);
  border: 1px solid #687358; border-radius: 4px; text-align: left; color: #fff2cd;
}
.qp-plot.ready { border-color: #e0b55f; }
.qp-plot.empty { background: linear-gradient(0deg,#25241e 0%,#333226); border-style: dashed; }
.qp-plot.empty:hover { background: #43422a; border-color: #f0d17e; }
.qp-plot-label { position: relative; display: grid; gap: 2px; background: #211f18d9; padding: 4px; border-radius: 2px; }
.qp-plot-label strong { font: 700 20px/1 var(--display,system-ui); color: #fff0c9; }
.qp-plot-label small, .qp-plot-label > span { color: #d2d0be; font-size: 10px; line-height: 1.3; }
.qp-sprouts, .qp-fallow { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(160deg,transparent 0 14px,#b59d6522 15px 17px,transparent 18px 25px); }
.qp-sprouts { display: flex; justify-content: space-around; align-items: start; padding: 8px 6px 0; color: #9fc383; }
.qp-sprouts.gold { color: #d1b576; }
.qp-sprouts.coral { color: #e2aa72; }
.qp-sprouts i { position: relative; display: block; margin-top: 6px; width: 2px; height: calc(22px * var(--qp-height)); background: currentColor; transform: rotate(-5deg); }
.qp-sprouts i:nth-child(even) { transform: rotate(9deg); margin-top: 2px; }
.qp-sprouts i::before, .qp-sprouts i::after { content:""; position: absolute; top: 0; height: 10px; width: 5px; left: -4px; background: currentColor; transform: rotate(-35deg); border-radius: 0 80% 0 80%; }
.qp-sprouts i::after { left: 1px; top: 3px; transform: rotate(40deg); }
.qp-sprouts.ripe i { color: #f0ca6b; }
.qp-market { color: #d2cbb9; font-size: 12px; line-height: 1.48; margin: 14px 0 5px; }
.qp-market b { color: #f0cf85; margin-right: 4px; }
.qp-harvest .qp-status { margin-bottom: 0; }

/* A letterpress desk with an answer line, individual keys and clue card. */
.qp-word { --qp-accent: #eed29a; background: radial-gradient(ellipse at 65% 0%,#383043,transparent 63%),#211b29; }
.qp-clue { margin: 10px 0 19px; padding: 16px 20px; background: #ece1c9; border: 1px solid #f3dab4; border-radius: 4px; box-shadow: 0 3px 0 #978361; color: #32291e; }
.qp-clue > span { font: 700 10px/1.3 var(--sans,system-ui); text-transform: uppercase; letter-spacing: .1em; color: #715630; }
.qp-clue h3 { color: #32291e; margin: 5px 0 0; font: 600 clamp(21px, 3vw, 30px)/1.18 Georgia,serif; }
.qp-answer, .qp-rack { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.qp-answer { margin: 14px 0 10px; gap: clamp(2px,.65vw,6px); }
.qp-word .qp-slot { flex: 0 1 41px; min-width: 0; min-height: 39px; max-width: calc((100% - 56px) / 9); display: grid; place-items: center; border: 0; border-bottom: 2px solid #b69864; border-radius: 2px 2px 0 0; padding: 0; background: #302736; color: #fff3d4; font: 700 clamp(18px,3vw,25px)/1 var(--display,system-ui); }
.qp-word .qp-slot.filled { background: #44364d; }
.qp-word .qp-slot.given { color: #f8cb7f; border-bottom-color: #f9d080; }
.qp-rack { padding: 12px; margin: 12px 0; border: 1px solid #7a687d6b; border-bottom: 5px solid #49384a; border-radius: 4px; background: #2c2331; }
.qp-rack button { width: clamp(39px,5.5vw,49px); min-height: 44px; background: #e8d9b8; color: #302a24; border: 1px solid #eedec2; border-bottom: 3px solid #9d8053; border-radius: 4px; font: 700 25px/1 var(--display,system-ui); }
.qp-rack button:not(:disabled):hover { background: #ffe7b2; }
.qp-rack button:disabled { background: #392f3d; color: #8d7e8e; border-color: #58475d; }
.qp-word-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 16px; }
.qp-word-actions button:not(.btn) { background: #332a39; color: #f5e8db; border: 1px solid #7d6c7e; border-radius: 4px; min-height: 41px; padding: 7px 11px; font-size: 12px; }
.qp-word-actions button small { margin-left: 4px; color: #e0c596; }
.qp-word-actions .btn:disabled { opacity: .56; }
.qp-word-footer { color: #c1b5c4; font-size: 11px; margin: 13px 0 0; }
@media (max-width: 550px) {
  .qp-cabinet { padding: 15px; }
  .qp-cabinet .qp-intro { font-size: 12px; }
  .qp-plots { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .qp-plot { min-height: 86px; }
  .qp-seeds button, .qp-field-actions button { padding: 7px 5px; }
  .qp-below { align-items: flex-start; flex-direction: column; }
  .qp-rack { gap: 5px; padding: 8px; }
  .qp-word .qp-slot { max-width: calc((100% - 25px) / 9); }
}
