#wake-play-study {
  --art: none;
}
#wake-play-study {
  container-type: inline-size;
  color: #202020;
  background: #fafafa;
  font-family:
    WantedLabel,
    -apple-system,
    "Apple SD Gothic Neo",
    sans-serif;
  font-weight: 500;
}
#wake-play-study * {
  box-sizing: border-box;
}
#wake-play-study main {
  max-width: 760px;
  padding: clamp(16px, 4cqw, 36px);
  margin: auto;
}
#wake-play-study header,
#wake-play-study footer {
  display: flex;
  align-items: center;
  gap: 14px;
}
#wake-play-study header {
  margin: 0 0 20px;
}
#wake-play-study h2 {
  font:
    900 clamp(28px, 5cqw, 42px)/1 WakeBlack,
    WantedLabel,
    sans-serif;
  letter-spacing: -0.09em;
  margin: 0;
}
#wake-play-study .level,
#wake-play-study .progress {
  font-size: 14px;
  color: #555;
}
#wake-play-study time {
  margin-left: auto;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}
#wake-play-study .desk {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(155px, 0.45fr);
  align-items: center;
  gap: clamp(20px, 4cqw, 38px);
}
#wake-play-study button {
  border: 0;
  margin: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  color: inherit;
  touch-action: manipulation;
}
#wake-play-study .board {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  aspect-ratio: 1;
  grid-template-rows: repeat(9, minmax(0, 1fr));
  border: 2px solid #292929;
  background: #fff;
}
#wake-play-study .cell {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  border-radius: 0;
  background: #fff;
  border-right: 1px solid #d8d8d8;
  border-bottom: 1px solid #d8d8d8;
  font:
    700 clamp(18px, 3.5cqw, 30px)/1 WantedLabel,
    sans-serif;
}
#wake-play-study .cell:nth-child(3n) {
  border-right: 2px solid #565656;
}
#wake-play-study .cell:nth-child(9n) {
  border-right: 0;
}
#wake-play-study .cell:nth-child(n + 19):nth-child(-n + 27),
#wake-play-study .cell:nth-child(n + 46):nth-child(-n + 54) {
  border-bottom: 2px solid #565656;
}
#wake-play-study .cell:nth-child(n + 73) {
  border-bottom: 0;
}
#wake-play-study .peer {
  background: #f0f0f0;
}
#wake-play-study .cell.entered {
  font-weight: 500;
}
#wake-play-study .cell[aria-pressed="true"] {
  background: #262626;
  color: white;
}
#wake-play-study .cell.bad {
  color: #b62529;
}
#wake-play-study .cell.bad[aria-pressed="true"] {
  color: #ffaaaa;
}
#wake-play-study .pencil {
  position: absolute;
  inset: 1px;
  display: grid;
  grid-template: repeat(3, 1fr) / repeat(3, 1fr);
  font:
    500 clamp(9px, 1.5cqw, 12px)/1 WantedLabel,
    sans-serif;
}
#wake-play-study .pencil i {
  align-self: center;
  font-style: normal;
}
#wake-play-study .keys {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}
#wake-play-study .keys button {
  background: #ececec;
  border-radius: 5px;
  min-height: 48px;
  font-size: 22px;
  font-weight: 700;
}
#wake-play-study .tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  margin-top: 14px;
}
#wake-play-study .tools button {
  min-height: 42px;
  border-radius: 4px;
  background: transparent;
  font-size: 14px;
}
#wake-play-study .tools button[aria-pressed="true"] {
  background: #262626;
  color: #fff;
}
#wake-play-study button:disabled {
  opacity: 0.35;
  cursor: default;
}
#wake-play-study footer {
  margin-top: 20px;
  justify-content: space-between;
}
#wake-play-study .player {
  display: flex;
  align-items: center;
  gap: 9px;
  background: none;
  min-height: 40px;
  font-size: 14px;
}
#wake-play-study .player i {
  width: 32px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, #272727 0 5%, transparent 6%),
    var(--art) center/40% 40% no-repeat,
    repeating-radial-gradient(circle, #262626 0 2px, #474747 2px 3px);
}
#wake-play-study .player b {
  font: 500 11px/1 sans-serif;
}
#wake-play-study [role="status"] {
  margin: 4px 0 0;
  font-size: 13px;
  min-height: 1.4em;
}
@container (max-width:570px) {
  #wake-play-study .desk {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  #wake-play-study .keys {
    grid-template-columns: repeat(9, minmax(0, 1fr));
    gap: 2px;
  }
  #wake-play-study .keys button {
    font-size: 18px;
    min-height: 44px;
  }
  #wake-play-study .tools {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 6px;
  }
  #wake-play-study footer {
    margin-top: 12px;
  }
}

#wake-play-study .lampbar {
  position: sticky;
  top: 0;
  z-index: 3;
  height: 88px;
  background: #fafafa;
  pointer-events: none;
}
#wake-play-study .pendant {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 25px;
  background: #858585;
}
#wake-play-study .pendant i {
  position: absolute;
  display: block;
}
#wake-play-study .pendant .cap {
  width: 8px;
  height: 7px;
  left: -3px;
  top: 20px;
  background: #858585;
  border-radius: 2px;
}
#wake-play-study .pendant .shade {
  width: 66px;
  height: 35px;
  top: 25px;
  left: -32px;
  border-radius: 35px 35px 5px 5px;
  background: repeating-linear-gradient(
    93deg,
    #262626 0 3px,
    #333 4px,
    #292929 6px
  );
}
#wake-play-study .pendant .bulb {
  width: 20px;
  height: 20px;
  top: 47px;
  left: -9px;
  background: #ddd;
  border-radius: 50%;
}
#wake-play-study .pendant .cord {
  width: 1px;
  height: 18px;
  top: 59px;
  left: 18px;
  background: #888;
}
#wake-play-study .cord:after {
  content: "";
  position: absolute;
  top: 16px;
  left: -3px;
  width: 7px;
  height: 12px;
  background: #353535;
  border-radius: 5px;
}
#wake-play-study main {
  max-width: 510px;
  padding: 12px clamp(10px, 3cqw, 22px) 18px;
}
#wake-play-study header {
  gap: clamp(4px, 1.4cqw, 12px);
  margin-bottom: 12px;
  align-items: center;
}
#wake-play-study h2 {
  font-size: clamp(25px, 5cqw, 36px);
  white-space: nowrap;
}
#wake-play-study .level,
#wake-play-study .mistakes {
  white-space: nowrap;
  font-size: clamp(12px, 2.5cqw, 15px);
}
#wake-play-study .mistakes b {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
#wake-play-study time {
  font-size: clamp(13px, 2.6cqw, 17px);
}
#wake-play-study .icon {
  width: 40px;
  height: 44px;
  display: grid;
  place-items: center;
  background: transparent;
}
#wake-play-study .icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#wake-play-study .sfx[aria-pressed="false"] .waves,
#wake-play-study .sfx[aria-pressed="true"] .slash,
#wake-play-study .player[aria-pressed="true"] .slash {
  display: none;
}
#wake-play-study .field {
  position: relative;
}
#wake-play-study .board[inert] {
  visibility: hidden;
}
#wake-play-study .tools {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 10px 0 7px;
}
#wake-play-study .keys {
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 3px;
}
#wake-play-study .keys button {
  min-height: 44px;
  font-size: clamp(17px, 3.4cqw, 22px);
}
#wake-play-study .keys button[aria-pressed="true"] {
  background: #262626;
  color: white;
}
#wake-play-study [inert] {
  opacity: 0.5;
}

#wake-play-study [hidden] {
  display: none !important;
}
#wake-play-study header {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  justify-items: center;
  gap: 0;
}
#wake-play-study header time {
  margin: 0;
}
#wake-play-study header h2 {
  font-size: clamp(21px, 4cqw, 32px);
}
#wake-play-study header .mistakes {
  font-size: clamp(11px, 2cqw, 14px);
}
#wake-play-study .tools button {
  min-height: 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  line-height: 1.2;
  font-size: clamp(11px, 2.7cqw, 14px);
  font-weight: 500;
}
#wake-play-study .tools button[aria-pressed="true"] {
  background: #eee;
  color: #181818;
}
#wake-play-study .tool-icon {
  position: relative;
  display: flex;
}
#wake-play-study .badge {
  position: absolute;
  top: -5px;
  left: 16px;
  font: 600 10px/14px system-ui;
  min-width: 14px;
  border-radius: 8px;
  background: #333;
  color: #fff;
}

#wake-play-study .keys button {
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: clamp(19px, 4cqw, 25px);
}
#wake-play-study .keys button[aria-pressed="true"] {
  background: transparent;
  color: #222;
  text-decoration: underline;
  text-underline-offset: 5px;
}
#wake-play-study .cell[aria-pressed="true"] {
  background: #fff;
  color: #202020;
  isolation: isolate;
  box-shadow: none;
}
#wake-play-study .cell[aria-pressed="true"]::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 3px;
  background: #dedede;
  z-index: -1;
  pointer-events: none;
}
#wake-play-study .cell:focus-visible {
  outline: 1px dashed #555;
  outline-offset: -5px;
}
#wake-play-study .pencil {
  inset: 3px;
}
#wake-play-study .cell.bad[aria-pressed="true"] {
  color: #ac2227;
}

#wake-play-study .cell .ink { position: absolute; width: 67%; height: 75%; pointer-events: none; }
