.action-button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 18rem;
  background-color: #CCF;
  text-align: center;
  cursor: pointer; }

.completed-game {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column; }
  .completed-game__summary {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 0.5em;
    border-bottom: 1px solid #BBB;
    font-weight: bold; }
  .completed-game__scoreboard {
    position: relative;
    flex-grow: 1; }

.die {
  width: 18rem;
  height: 18rem; }
  .die--locked {
    fill: #400; }
    .die--locked .die__spot {
      fill: #900; }
  .die--unlocked {
    fill: #050; }
    .die--unlocked .die__spot {
      fill: #0C0; }
  .die--example {
    width: 10rem;
    height: 10rem;
    fill: #555; }
    .die--example .die__spot {
      fill: #AAA; }
  .die--example-scored {
    width: 10rem;
    height: 10rem;
    fill: #474; }
    .die--example-scored .die__spot {
      fill: #ADA; }
  .die--clickable {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent; }

.help__example {
  display: flex;
  align-items: center;
  margin-top: 0.5em; }
  .help__example .die {
    margin-right: 0.25em; }

.import-export__import-result--success {
  color: darkgreen; }

.import-export__import-result--error {
  color: darkred; }

.import-export__import-confirm {
  margin-right: 0.5em; }

.menu {
  flex-grow: 1;
  background-color: #EEE;
  display: flex;
  flex-direction: column; }
  .menu__item {
    padding: 1em;
    border-bottom: 1px solid #BBB;
    cursor: pointer; }
    .menu__item:hover {
      background-color: #FFF; }

.menu-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 2em;
  padding: 0.5em;
  font-weight: bold;
  background-color: #333;
  color: #FFF; }
  .menu-bar__button {
    fill: currentColor;
    height: 100%;
    cursor: pointer; }

.modal {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column; }
  .modal__header {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 2em;
    padding: 0.5em;
    font-weight: bold;
    background-color: #333;
    color: #FFF; }
  .modal__body {
    position: relative;
    flex-grow: 1;
    line-height: 1.4;
    background-color: #EEE;
    overflow-y: auto; }
    .modal__body--sections {
      padding: 1em 0.5em; }
  .modal__section {
    margin-bottom: 1em; }
    .modal__section:last-of-type {
      margin-bottom: 0; }
  .modal__section-header {
    margin-bottom: 0.5em;
    font-size: 1.1em;
    font-weight: bold; }
  .modal__section-content a {
    color: #060; }
  .modal__close {
    stroke: currentColor;
    height: 100%;
    cursor: pointer; }

.container {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: #000; }
  .container--desktop {
    max-width: 100rem;
    margin: auto;
    border-radius: 3vh;
    border: 0.6vh solid #000;
    overflow: hidden;
    box-shadow: 0 0 8px #555; }

.scoreboard-pane {
  position: relative;
  flex-shrink: 0;
  flex-grow: 1; }

.dice-pane {
  flex-shrink: 0;
  height: 21rem;
  display: flex;
  justify-content: space-evenly;
  padding: 1.5rem 0;
  background-color: #EEE;
  border-top: 1px solid #BBB; }

.action-pane {
  position: relative;
  padding: 0;
  min-height: 18rem; }
  .action-pane--tutorial {
    font-size: 2.2vh; }
    .action-pane--tutorial:before {
      content: 'TUTORIAL';
      position: absolute;
      bottom: 0;
      right: 0;
      font-size: 1.6vh;
      font-weight: bold;
      color: #999;
      padding: 0.2em; }

.scoreboard {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  background: #EEE url("paper.jpg") repeat; }
  .scoreboard__row {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #BBB; }
    .scoreboard__row:last-of-type {
      border-bottom: none; }
  .scoreboard__divider {
    height: 3px;
    border-bottom: 1px solid #BBB; }
  .scoreboard__label {
    flex-grow: 1;
    padding: 0 0.5em;
    cursor: pointer; }
  .scoreboard__bonus {
    font-family: Kalam, cursive;
    font-weight: bold;
    position: relative;
    top: 0.1em;
    padding-right: 0.5em;
    color: #00F;
    cursor: pointer; }
  .scoreboard__info {
    font-size: 0.8em;
    padding-right: 0.5em;
    color: #999;
    cursor: pointer; }
  .scoreboard__undo {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    padding-right: 0.25em;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    color: #CCC; }
  .scoreboard__undo-icon {
    fill: currentColor;
    width: 0.8em;
    height: 0.8em;
    cursor: pointer; }
  .scoreboard__value {
    align-self: stretch;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4em;
    border-left: 1px solid #BBB;
    font-family: Kalam, cursive;
    font-weight: bold;
    color: #00F; }
    .scoreboard__value--clickable {
      background-color: #AFA5;
      color: #060;
      cursor: pointer; }
      .scoreboard__value--clickable:hover {
        background-color: #EFE; }
  .scoreboard__value-text {
    position: relative;
    top: 0.1em; }

.stats__stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5em; }

.stats__high-score-game {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5em;
  cursor: pointer; }

* {
  box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  color: #333;
  background-color: #DDD;
  font-family: sans-serif;
  font-size: 2.8vh;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none; }

p {
  margin: 0 0 0.5em 0; }
  p:last-of-type {
    margin-bottom: 0; }

button {
  font-size: 1em; }
