* {
  box-sizing: border-box;
  margin: 0;
}

body {
  background: #14161a;
  color: #e8ebf0;
  font-family: system-ui, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
}

header {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 12px;
}

h1 {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

main {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

canvas {
  background: #1b1e24;
  border: 1px solid #2a2e36;
  border-radius: 8px;
  max-width: 100%;
  height: auto;
}

#panel {
  width: 240px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #1b1e24;
  border: 1px solid #2a2e36;
  border-radius: 8px;
  padding: 16px;
}

#die-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.die {
  width: 72px;
  height: 72px;
  background: #e8ebf0;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
}

.pip {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pip.blank {
  color: #9aa2ae;
  font-size: 1.6rem;
  font-weight: 700;
  background: none;
}

[hidden] {
  display: none !important;
}

#mobile-note {
  display: none;
  text-align: center;
  padding: 48px 24px;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #c3cad4;
}

#mobile-note p:first-child {
  font-size: 3rem;
}

@media (max-width: 720px) {
  main {
    display: none;
  }

  #mobile-note {
    display: block;
  }
}

#message {
  min-height: 3.2em;
}

#scores {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: #9aa2ae;
}

#scores div {
  display: flex;
  align-items: center;
  gap: 6px;
}

#faces h2 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9aa2ae;
  margin-bottom: 8px;
}

#face-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.face-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 46px;
  height: 30px;
  background: #e8ebf0;
  border-radius: 6px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

#controls {
  display: flex;
  gap: 8px;
}

#controls jelly-button {
  flex: 1;
}
