.wb {
  position: relative;
  container-type: inline-size;
  padding: clamp(1.05rem, 2.7vw, 2rem);
  width: 100%;
  color: #273f34;
  --wb-forest: #284b3c;
  --wb-ink: #273f34;
  --wb-line: #ded6c6;
  --wb-paper: #fbf8ef;
  font: 400 1rem/1.48 var(--body-font);
  text-align: left;
}
.wb, .wb * { box-sizing: border-box; }
.wb h2, .wb h3, .wb p { margin: 0; }
.wb h2, .wb h3 { font-family: var(--serif); color: var(--wb-ink); font-weight: 500; }
.wb button { appearance: none; -webkit-appearance: none; margin: 0; font: inherit; box-shadow: none; text-transform: none; letter-spacing: normal; cursor: pointer; }
.wb button:focus-visible, .wb input:focus-visible { outline: 3px solid #497759; outline-offset: 2px; }
.wb-defs { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.wb-heading h2 { font-size: clamp(1.65rem, 3.3vw, 2.35rem); line-height: 1.12; letter-spacing: -.045em; }
.wb-heading h2 span { color: #998a6b; }
.wb-heading p { color: #5b6053; font-size: 1rem; margin-top: .45rem; }
.wb-switcher { display: inline-flex; gap: .12rem; padding: .18rem; margin: 1rem 0 1.05rem; background: #eeece1; border: 1px solid #dad7c8; border-radius: .65rem; }
.wb-switcher button { min-height: 38px; border: 0; border-radius: .45rem; color: #425245; font-weight: 550; font-size: .89rem; background: transparent; padding: .35rem 1rem; }
.wb-switcher button[aria-pressed="true"] { color: #fffaf0; background: var(--wb-forest); }
.wb-switcher button:not([aria-pressed="true"]):hover { background: #e1dfd1; }
.wb-areahead { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.wb-areahead h3 { font-size: 1.23rem; line-height: 1.2; letter-spacing: -.025em; }
.wb-blockarea { border-radius: .8rem .8rem 0 0; padding: .85rem 1.2rem .35rem; border: 1px solid #e2d9c7; background: radial-gradient(ellipse at 45% 45%, #fffaf0 0, transparent 70%), #f4efe0; }
.wb-depth { display: flex; align-items: center; gap: .4rem; color: #425444; font-weight: 500; font-size: .89rem; min-height: 34px; cursor: pointer; white-space: nowrap; }
.wb-depth input { appearance: auto; accent-color: var(--wb-forest); width: 1.05rem; height: 1.05rem; min-width: 0; margin: 0; }
.wb-scroll { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #c2ab8a transparent; }
.wb-board { display: block; width: 100%; min-width: 34rem; max-width: 53rem; height: auto; margin: 0 auto; overflow: visible; user-select: none; -webkit-user-select: none; }
.wb-slot { cursor: pointer; touch-action: none; outline: none; }
.wb-focus { fill: transparent; stroke: transparent; stroke-width: 2; }
.wb-slot:focus-visible .wb-focus { stroke: #385e48; stroke-dasharray: 5 3; }
.wb-slot.wb-over .wb-focus { fill: #e8e6bd; fill-opacity: .2; stroke: #4f724e; }
.wb-pan { display: none; }
.wb-matarea {
  border-radius: 0 0 .8rem .8rem;
  border: 1px solid #bfc6ae;
  border-top: none;
  padding: .8rem 1.2rem .65rem;
  background-color: #d7ddc6;
  background-image: repeating-linear-gradient(0deg, transparent 0 2px, #65754d0b 2px 3px),
    repeating-linear-gradient(90deg, #f9faed17 0 1px, transparent 1px 3px);
}
.wb-count { font-size: .84rem; color: #40513c; }
.wb-mat { min-height: 6rem; display: grid; grid-template-columns: repeat(10,minmax(0,1fr)); gap: 3px; align-items: end; }
.wb-mat.wb-empty { display: grid; place-items: center; grid-template-columns: 1fr; text-align: center; color: #41503d; }
.wb-empty p { font-size: .94rem; }
.wb-piece { min-width: 0; width: 100%; padding: 0; display: block; border: 1.5px solid transparent; background: transparent; border-radius: .5rem; touch-action: none; user-select: none; -webkit-user-select: none; }
.wb-piece svg { display: block; width: clamp(3.305rem, calc(9.718cqw - .246rem), 5.151rem); height: auto; margin-inline: auto; pointer-events: none; }
.wb-piece[aria-pressed="true"] { border-color: #4e7152; background: #ffffff3d; }
.wb-ghost { width: 5.2rem; height: 6.6rem; transform: translate(-50%, -58%); pointer-events: none; position: absolute; z-index: 100; filter: drop-shadow(0 4px 3px #54422f35); }
.wb-ghost svg { width: 100%; height: 100%; }
.wb-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .65rem 1rem; margin-top: .9rem; }
.wb-foot .wb-message { flex: 1 1 16rem; color: #475647; font-size: .94rem; line-height: 1.42; }
.wb-actions { display: flex; flex-wrap: wrap; gap: .45rem; }
.wb-actions button, .wb-pan button { display: inline-flex; gap: .42rem; align-items: center; justify-content: center; min-height: 2.55rem; padding: .45rem .7rem; background: var(--wb-paper); color: var(--wb-forest); border: 1px solid #b9c1ab; border-radius: .48rem; font-size: .88rem; font-weight: 550; }
.wb-actions button:hover, .wb-pan button:hover { background: #eeeede; }
.wb-actions svg { fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; width: 1.05rem; height: 1.05rem; }
.wb-live { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (hover: hover) {
  .wb-piece:hover { background: #fff9; }
  .wb-slot:hover .wb-focus { stroke: #537252; stroke-width: 1.4; }
}
@container (max-width: 39rem) {
  .wb-switcher { display: flex; }
  .wb-switcher button { flex: 1; min-height: 42px; padding-inline: .4rem; }
  .wb-blockarea, .wb-matarea { padding-inline: .65rem; }
  .wb-pan { display: flex; align-items: center; justify-content: space-between; gap: .4rem; padding: .2rem 0 .3rem; }
  .wb-pan span { color: #5b5d50; font-size: .79rem; text-align: center; }
  .wb-pan button { min-height: 2.25rem; padding: .25rem .55rem; font-size: .82rem; }
  .wb-mat { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 0 .1rem; }
  .wb-piece svg { width: clamp(3.305rem, calc(9.718cqw - .139rem), 5.151rem); }
  .wb-foot .wb-message { flex-basis: 100%; }
  .wb-actions button { min-height: 44px; }
}

@container (min-width: 35.6rem) { .wb-pan { display: none; } }
