* {
  box-sizing: border-box;
}

body {
  max-width: 960px;
  margin: 0 auto;
  font-size: 100%;
  color: #333333;
}

section {
  margin: 10px 0;
  padding: 10px;
  border: 1px solid #aacccc;
}

header {
  display: flex;
  font-size: 90%;
}

header h1 {
  width: 350px;
  font-family: "yasasisagothic";
  color: #663300;
}

header h1 img {
  width: 100%;
}

header h1 span {
  display: inline-block;
}

header h1 .u {
  font-size: 150%;
  transform: rotate(-10deg);
}

header h1 .ta {
  font-size: 150%;
  transform: rotate(-10deg);
}

header h1 .ka {
  font-size: 150%;
  transform: rotate(-10deg);
}

header h1 .ze {
  font-size: 150%;
  transform: rotate(-10deg);
}

header h1 .ni {
  margin-left: 3px;
  margin-right: 3px;
  transform: translateY(-10%);
}

header h1 .na {
  margin-bottom: 3px;
  transform: translateY(-10%);
}

header h1 .ro {
  transform: translateY(-10%);
}

header h1 .u2 {
  margin-left: -2px;
  transform: translateY(-10%);
}

header h1 .ex {
  margin: -8px;
  font-size: 120%;
}

header div {
  flex-grow: 1;
  margin-left: 20px;
}

header div .mobile-link {
  text-align: right;
}

header .mobile-link {
  font-size: 75%;
  color: blue;
}

header .mobile-link:hover {
  color: #339933;
  cursor: pointer;
}

ul {
  list-style: none;
}

.global-nav {
  border-top: 1px solid #aacccc;
  border-bottom: 1px solid #aacccc;
  font-size: 78%;
  font-weight: bold;
  color: black;
}

.global-nav ul {
  display: flex;
}

.global-nav li {
  flex-grow: 1;
}

.global-nav a,
.global-nav span {
  padding: 5px;
}

.global-nav span {
  cursor: pointer;
}

.global-nav a,
.global-nav a:visited {
  color: black;
  text-decoration: none;
}

.global-nav a:hover,
.global-nav span:hover {
  color: #000000;
  background-color: #ddeeee;
}

.mobile-link:before {
  content: "◆"
}

section.game-intros {
  position: relative;
  font-size: 85%;
  width: calc(100% - 190px - 20px);
  float: left;
}

section.game-intros h2 {
  margin: 0 -5px;
  padding-left: 30px;
  padding-bottom: 5px;
  border-bottom: 2px solid #aacccc;
  font-size: 110%;
  color: #663300;
  background: url("../images/crown.png") no-repeat;
  background-size: auto 80%;
  background-position: 6px -2px;
}

section.game-intros .game-intro {
  position: relative; /* for balloon position */
  margin-top: 10px;
  line-height: 150%;
}

section.game-intros .game-intro h3 a,
section.game-intros .game-intro h3 a:visited{
  color: #fd6532;
}

section.game-intros .game-intro h3 .note {
  font-size: small;
}

section.game-intros .game-intro img.twitter-log {
  width: 20px;
  height: 20px;
  vertical-align: bottom;
}

section.game-intros .game-intro img.twitter-log:hover,
section.game-intros .game-intro img.twitter-log:active {
  opacity: 0.5;
}

section.game-intros .game-intro h3,
section.game-intros .game-intro dl,
section.game-intros .game-intro dt,
section.game-intros .game-intro dd {
  display: inline-block;
}

section.game-intros .game-intro h3 {
  margin: 0 0 0 1em;
}

section.game-intros .game-intro h3:before {
  content: attr(data-number);
  display: inline-block;
  margin-right: 8px;
  font-size: 80%;
  width: 1.1em;
  height: 1.1em;
  line-height: 120%;
  border: rgba(0, 204, 102, 0.3) solid 2px;
  border-radius: 6px;
  text-align: center;
  color: #006633;
}

section.game-intros .game-intro h3[data-number="10"]:before,
section.game-intros .game-intro h3[data-number="11"]:before,
section.game-intros .game-intro h3[data-number="12"]:before,
section.game-intros .game-intro h3[data-number="13"]:before,
section.game-intros .game-intro h3[data-number="14"]:before,
section.game-intros .game-intro h3[data-number="15"]:before {
  width: 1.4em;
  height: 1.4em;
}

section.game-intros .game-intro dl {
  font-size: 90%;
  margin-left: 2em;
}

section.game-intros .game-intro dt:after {
  content: "：";
}

section.game-intros .game-intro dt.duration {
  width: 0;
  height: 0;
  overflow: hidden;
}

section.game-intros .game-intro dd {
  margin: 0;
  margin-right: 1em;
}

section.game-intros .game-intro dd:after {
  content: "";
  display: block;
  clear: both;
}

section.game-intros .game-intro > dl dd {
  color: #0033cc;
}

section.game-intros .game-intro > dl dd:hover {
  color: #339933;
  cursor: pointer;
}

section.game-intros .game-intro > dl dd a {
  color: inherit;
  text-decoration: none;
}

section.game-intros .game-intro .info {
  display: flex;
  font-size: 95%;
}

section.game-intros .game-intro .additional-info {
  min-width: 120px;
  text-align: center;
}

section.game-intros .game-intro .additional-info .link-to-support-comment a {
  display: inline-block;
  color: inherit;
  transition: transform 0.1s;
  transform-origin: left bottom;
}

section.game-intros .game-intro .additional-info .link-to-support-comment a:hover,
section.game-intros .game-intro .additional-info .link-to-support-comment a:active {
  opacity: 0.5;
}

section.game-intros .game-intro .additional-info .link-to-support-comment i {
  font-size: larger;
  margin-right: 0.2em;
  transform-origin: left bottom;
  animation-name: shake;
  animation-delay: 10s;
  animation-duration: 10s;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

section.game-intros .game-intro .support-comment {
  z-index: 12;
  position: absolute;
  top: 45px;
  left: 48px;
  width: 282px;
  height: 171px;
  padding-top: 24px;
  padding-left: 92px;
  padding-right: 37px;
  background: url("../images/balloon.png") no-repeat;
  background-size: cover;
  text-align: left;
  transform: scale(0);
  transform-origin: 0;
}

section.game-intros .game-intro.show-comment .support-comment {
  transform: scale(1);
  transition: transform 0.3s;
  transform-origin: 0;
}

section.game-intros .game-intro.show-comment .support-comment {
  display: initial;
}

section.game-intros .game-intro .info p {
  font-size: 95%;
}

section.game-intros .game-intro .info p {
  margin: 0;
}

section.game-intros .game-intro .additional-info .players {
  font-size: 140%;
  color: #dd0000;
}

section.game-intros .game-intro .primary-info .description {
  line-height 170%;
  color: #660033;
}

section.game-intros .game-intro .primary-info dl {
  margin: 0;
}

section.game-intros .game-intro .primary-info li {
  color: #0033cc;
}

section.game-intros .game-intro .primary-info li:hover {
  color: #339933;
  cursor: pointer;
}

section.game-intros .game-intro .primary-info .keywords {
  margin: 0;
  padding: 0;
}

section.game-intros .game-intro .primary-info .keywords li {
  display: inline-block;
}

section.game-intros .game-intro .primary-info .keywords li.sillyworks {
  margin-left: 1em;
  font-size: smaller;
}

section.game-intros .game-intro .primary-info .keywords li.sillyworks:hover,
section.game-intros .game-intro .primary-info .keywords li.sillyworks:active {
  transform: scale(0.8) translateX(1em);
  transform-origin: left;
  transition: transform 0.5s;
}

section.game-intros #modal-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  opacity: 0.5;
  border-radius: 24px;
  filter: blur(12px);
}

section.sidebar {
  float: right;
  width: 190px;
  padding: 0;
  border: none;
  font-size: 100%;
}

section.sidebar div {
  margin-bottom: 10px;
  padding: 5px;
  border: 1px solid #aacccc;
  font-size: 90%;
}

section.sidebar h3,
section.sidebar h4 {
  margin: 5px 0;
  padding: 0 5px 5px;
  border-bottom: 2px solid #66cccc;
}

section.sidebar h3 {
  padding-left: 40px;
  color: #663300;
  font-size: 110%;
  background: url("../images/question.png") no-repeat 6px 0;
  background-size: 18px;
}

section.sidebar p,
section.sidebar ul {
  padding: 0 5px;
  line-height: 180%;
  font-size: 95%;
}

section.sidebar p:hover {
  background-color: #ffffdd;
}


section.sidebar a {
  color: inherit;
  text-decoration: none;
}

section.sidebar a:hover,
section.sidebar a:active {
  color: #339933;
}


section.sidebar .help-list {
  margin: -5px;
  margin-top: 0;
  font-size: 90%;
  text-align: right;
  color: #0033cc;
  background: linear-gradient(to bottom,  #dddddd, white, #dddddd);
}

section.sidebar .help-list a {
  text-decoration: none;
}

section.sidebar .ad {
  width: 190px;
  border: none;
}

section.sidebar .ad.following {
  position: fixed;
  top: 0;
  margin-top: 0;
  padding-top: 0;
}

section.sidebar .ad img {
  width: 100%;
}

footer {
  color: #333333;
}

footer:before {
  content: "";
  display: block;
  clear: both;
}

footer nav {
  color: #666666;
}

footer ul {
  display: flex;
  line-height: 150%;
  font-size: 75%;
}

footer li {
  flex-grow: 1;
}

footer a {
  color: #666666;
  text-decoration: none;
}

footer a:hover,
footer a:active {
  text-decoration: underline;
}

footer .copyright {
  font-size: 75%;
  text-align: center;
}

@keyframes shake {
  0% {
    transform: rotate(0);
  }

  1% {
    transform: rotate(-15deg);
  }

  2% {
    transform: rotate(15deg);
  }

  3% {
    transform: rotate(0);
  }

  100% {
    transform: rotate(0);
  }
}
