:root {
  color-scheme: light;
  --paper: #000;
  --ink: #181714;
  --frame: #a7a08f;
  --shadow: rgba(18, 17, 14, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
}

.tb-page {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.tb-stage {
  position: relative;
  width: min(100vw, 80.07vh, 80.07dvh, 720px);
  background: #d5d1c8;
  border: 1px solid var(--frame);
  box-shadow: 0 18px 50px var(--shadow);
  touch-action: none;
  user-select: none;
}

#tb-canvas {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: auto;
  touch-action: none;
  user-select: none;
}

.tb-toggle {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(24, 23, 20, 0.44);
  border-radius: 50%;
  background: rgba(246, 241, 231, 0.82);
  box-shadow: 0 3px 10px rgba(18, 17, 14, 0.18);
  cursor: pointer;
}

.tb-toggle span {
  position: absolute;
  left: 14px;
  top: 10px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid var(--ink);
}

.tb-toggle.is-playing span {
  left: 11px;
  top: 10px;
  width: 14px;
  height: 16px;
  border: 0;
  background:
    linear-gradient(to right, var(--ink) 0 5px, transparent 5px 9px, var(--ink) 9px 14px);
}
