*,
:before,
::before,
:after,
::after {
  box-sizing: border-box;
}

* {
  border: 0;
  border-radius: 0;
  margin: 0;
  outline: 0;
  padding: 0;
}

a,
blockquote,
button,
code,
div,
figcaption,
h1,
h2,
h3,
input[type=email],
input[type=text],
input[type=password],
li,
ol,
option,
p,
pre,
select,
span,
strong,
sub,
sup,
td,
textarea,
th,
ul {
  color: var(--color-font);
}

a,
blockquote,
body,
br,
button,
code,
div,
figure,
figcaption,
h1,
h2,
h3,
html,
iframe,
img,
input,
li,
ol,
option,
p,
pre,
select,
span,
strong,
sub,
sup,
table,
tbody,
td,
th,
thead,
tr,
ul {
  -webkit-appearance: none;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  font-size: 100%;
  vertical-align: baseline;
}

html,
body {
  overflow: hidden;
}

body {
  font-family: BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDGothic", meiryo, sans-serif;
  font-size: 0;
  line-height: 1;
  -webkit-text-size-adjust: 100%;
}

a {
  background: transparent;
  font-size: 0;
  margin: 0;
  padding: 0;
  text-decoration: none;
  vertical-align: baseline;
}

p a {
  font-size: 100%;
  font-weight: bold;
}

strong {
  font-size: 100%;
  vertical-align: baseline;
}

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

img {
  font-size: 0;
  max-width: 100%;
}

svg {
  border: 0;
  stroke-width: 0;
}

ol,
ul {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

td,
th {
  text-align: left;
  white-space: nowrap;
  word-break: break-all;
}

th {
  font-weight: bold;
}

blockquote {
  quotes: none;
}

blockquote::after,
blockquote::before {
  content: "";
}

pre code {
  font-family: ui-monospace, "SFMono-Regular", "SF Mono", Consolas, Menlo, "Liberation Mono", monospace;
}

input {
  background-color: transparent;
}

input[type=file],
input[type=checkbox] {
  display: none;
}

textarea {
  overflow-y: scroll;
  overscroll-behavior-y: none;
  scrollbar-width: none;
  background-color: transparent;
  resize: vertical;
  text-rendering: optimizeLegibility;
  width: 100%;
  overflow-anchor: none;
}

button {
  cursor: pointer;
  background-color: transparent;
  font-family: inherit;
}

::-webkit-scrollbar {
  display: none;
}

::-webkit-calendar-picker-indicator {
  display: none;
}

::-webkit-resizer {
  display: none;
}

iframe {
  display: block;
  max-width: 100%;
}

:root {
  --color-font: #f4f4f4;
  --color-group-header-font: #9a9a9a;
  --color-muted: #646464;
  --color-icon: #adadad;
  --color-panel-background: #363636;
  --color-panel-header-background: #323232;
  --color-application-menu-border: #393939;
  --color-body-background: #3a3a3a;
  --color-item-selected: #393939;
  --color-accent: #d9b06a;
}

.Logo {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 28px;
}
.Logo-Text {
  color: var(--color-font);
  font-family: "Rubik Iso", BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDGothic", meiryo, sans-serif;
  font-size: 22px;
  line-height: 2;
  cursor: pointer;
  user-select: none;
}

.ApplicationMenu {
  position: fixed;
  top: 56px;
  left: 0;
  bottom: 0;
  z-index: 35;
  display: none;
  flex-direction: column;
  width: 300px;
  background: var(--color-panel-background);
  border-radius: 0 8px 0 0;
  overflow-y: scroll;
  overscroll-behavior-y: none;
  scrollbar-width: none;
}
.ApplicationMenu[data-open] {
  display: flex;
}
.ApplicationMenu-Section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 0;
}
.ApplicationMenu-Section + .ApplicationMenu-Section {
  border-top: 1px solid var(--color-application-menu-border);
}
.ApplicationMenu-Link {
  padding: 0 24px;
}
.ApplicationMenu-Link-Name {
  display: block;
  font-size: 15px;
  line-height: 23px;
  color: var(--color-font);
  text-decoration: none;
}
.ApplicationMenu-Link-Description {
  font-size: 12px;
  line-height: 20px;
  color: var(--color-group-header-font);
}

.PanelControl {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 56px;
  padding: 0 32px;
}
.PanelControl-Item {
  display: flex;
  align-items: center;
  font-size: 13px;
  line-height: 21px;
  color: var(--color-muted);
  cursor: pointer;
  user-select: none;
}
.PanelControl-Item[data-open] {
  color: var(--color-font);
}

.PanelColumn {
  position: absolute;
  left: 0;
  top: 56px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.Panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: max-content;
  max-height: calc(100vh - 56px);
  background: var(--color-panel-background);
  border-radius: 12px 8px 8px 8px;
  overflow: hidden;
}
.Panel[data-panel]:not([data-open]) {
  display: none;
}
.Panel[data-float] {
  position: fixed;
}
.Panel[data-edge-left] {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.Panel[data-edge-right] {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.Panel[data-edge-top] {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.Panel[data-edge-bottom] {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.Panel-Header {
  flex-shrink: 0;
  height: 32px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: grab;
  user-select: none;
}
.Panel-Header:active {
  cursor: grabbing;
}
.Panel-CloseIcon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-icon);
  cursor: pointer;
}
.Panel-CloseIcon svg {
  visibility: hidden;
}
.Panel-CloseIcon:hover svg {
  visibility: visible;
}
.Panel-Title {
  display: flex;
  align-items: center;
  height: 32px;
  background: var(--color-panel-header-background);
  font-size: 11px;
  line-height: 1.5;
  color: var(--color-font);
  border-bottom-right-radius: 12px;
}
.Panel-Title[data-end] {
  padding: 0 16px;
}
.Panel > .ScenarioList,
.Panel > .MoveList {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: scroll;
  overscroll-behavior-y: none;
  scrollbar-width: none;
}
.Panel-Handle {
  position: absolute;
  z-index: 1;
}
.Panel-Handle[data-direction=n] {
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  cursor: ns-resize;
}
.Panel-Handle[data-direction=s] {
  bottom: 0;
  left: 0;
  right: 0;
  height: 6px;
  cursor: ns-resize;
}
.Panel-Handle[data-direction=e] {
  top: 0;
  right: 0;
  bottom: 0;
  width: 6px;
  cursor: ew-resize;
}
.Panel-Handle[data-direction=w] {
  top: 0;
  left: 0;
  bottom: 0;
  width: 6px;
  cursor: ew-resize;
}
.Panel-Handle[data-direction=ne] {
  top: 0;
  right: 0;
  width: 12px;
  height: 12px;
  cursor: nesw-resize;
  z-index: 2;
}
.Panel-Handle[data-direction=nw] {
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  cursor: nwse-resize;
  z-index: 2;
}
.Panel-Handle[data-direction=se] {
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  cursor: nwse-resize;
  z-index: 2;
}
.Panel-Handle[data-direction=sw] {
  bottom: 0;
  left: 0;
  width: 12px;
  height: 12px;
  cursor: nesw-resize;
  z-index: 2;
}

.Root[data-fixed] .Panel {
  position: fixed;
  top: 56px;
  right: 0;
  left: auto;
}
.Root[data-fixed] .Panel-Header {
  cursor: default;
}

.ScenarioList {
  display: flex;
  flex-direction: column;
  width: 260px;
  padding: 8px 0 4px;
}
.ScenarioList-Item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 20px;
  cursor: pointer;
  user-select: none;
}
.ScenarioList-Item[data-selected] {
  background: var(--color-item-selected);
}
.ScenarioList-Item-Name {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-font);
  letter-spacing: 0.08em;
}
.ScenarioList-Item-Tag {
  font-size: 11px;
  line-height: 24px;
  color: var(--color-group-header-font);
  letter-spacing: 0.2em;
}
.ScenarioList-Summary {
  padding: 10px 20px 12px;
  font-size: 12px;
  line-height: 21px;
  color: var(--color-group-header-font);
}

.ScenarioList-Item[data-selected] .ScenarioList-Item-Name {
  color: var(--color-accent);
}

.MoveList {
  display: flex;
  flex-direction: column;
  width: 200px;
  padding: 8px 0;
}
.MoveList-Row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 4px 20px;
  cursor: pointer;
  user-select: none;
}
.MoveList-Row[data-selected] {
  background: var(--color-item-selected);
}
.MoveList-Row[data-selected] .MoveList-Row-Label {
  color: var(--color-accent);
}
.MoveList-Row-Number {
  flex-shrink: 0;
  width: 22px;
  text-align: right;
  font-size: 11px;
  line-height: 22px;
  color: var(--color-muted);
}
.MoveList-Row-Label {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", serif;
  font-size: 13px;
  line-height: 22px;
  color: var(--color-font);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.Transport {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--color-panel-background);
  transform: translateX(-50%);
}
.Transport-Button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 32px;
  padding: 0 8px;
  border-radius: 6px;
  color: var(--color-icon);
  font-family: BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDGothic", meiryo, sans-serif;
  font-size: 12px;
  cursor: pointer;
  user-select: none;
}
.Transport-Button:disabled {
  opacity: 0.3;
  cursor: default;
}
.Transport-Button[data-variant=play] {
  min-width: 82px;
  color: var(--color-font);
  background: var(--color-item-selected);
}
.Transport-Button[data-variant=speed] {
  min-width: 44px;
  color: var(--color-group-header-font);
}
.Transport-Icon {
  display: flex;
  align-items: center;
}
.Transport-Label {
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.08em;
}
.Transport-Count {
  padding-left: 4px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--color-muted);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.Root {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: var(--color-body-background);
  color: var(--color-font);
  font-family: BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDGothic", meiryo, sans-serif;
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
}

.Board {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.Board-Canvas {
  display: block;
  flex-shrink: 0;
}