/***************/
/* MEYER RESET */
/***************/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  line-height: 1;
}

ol, ul, dl {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

*, *:before, *:after {
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

/**************/
/* BASE RULES */
/**************/
html {
  font-size: 18px;
  padding: 50px 0;
}

body {
  font-family: "Spoqa Han Sans", "Source Sans Pro", "Apple SD Gothic Neo", "Nanum Barun Gothic", "Nanum Gothic", "Verdana", "Arial", "Dotum", sans-serif;
  color: #343a40;
  line-height: 1.6;
}

/**********/
/* LAYOUT */
/**********/

.wrapper {
  position: relative;
  margin: 0 auto;
  box-sizing: border-box;
  width: 500px;
}

.hand {
  position: absolute;
  top: 150px;
  left: 100px;
  z-index: 20;
}

.hand > li {
  display: none;
  position: relative;
  border: 5px solid #333;
  border-radius: 50%;
  width: 300px;
  height: 300px;
  background-color: #333;
}

.hand > li.on {
  display: block;
}

.hand > li img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
}

.roulette {
  position: relative;
  top: 50px;
  z-index: 10;
  border-radius: 50%;
  width: 500px;
  height: 500px;
  background-color: #000;
}

.roulette > li {
  position: absolute;
  border: 5px solid #000;
  border-radius: 50%;
  box-sizing: border-box;
  width: 15%;
  height: 15%;
  text-align: center;
  line-height: 62px;
  font-size: 40px;
  font-weight: bold;
  background-color: #00cc00;
  color: #fff;
}

.roulette > li:nth-child(odd) {
  background-color: #cc3333;
  color: #fff;
}

.roulette.on > li {
  background-color: #cc3333;
  color: #fff;
}

.roulette.on > li:nth-child(odd) {
  background-color: #00cc00;
  color: #fff;
}

.roulette > li.on {
  border: 5px solid #ffff00;
  box-shadow: 0 0 20px #ffff66;
  background-color: #ffffcc;
  color: #000;
}

.roulette.on > li:nth-child(odd).on {
  border: 5px solid #ffff00;
  box-shadow: 0 0 20px #ffff66;
  background-color: #ffffcc;
  color: #000;
}

.roulette > li:nth-child(1) {
  top: 2.5%;
  right: 42.5%;
  transform: rotate(180deg);
}

.roulette > li:nth-child(2) {
  top: 7.5%;
  right: 22.5%;
  transform: rotate(210deg);
}

.roulette > li:nth-child(3) {
  top: 22.5%;
  right: 7.5%;
  transform: rotate(240deg);
}

.roulette > li:nth-child(4) {
  top: 42.5%;
  right: 2.5%;
  transform: rotate(270deg);
}

.roulette > li:nth-child(5) {
  bottom: 22.5%;
  right: 7.5%;
  transform: rotate(300deg);
}

.roulette > li:nth-child(6) {
  bottom: 7.5%;
  right: 22.5%;
  transform: rotate(330deg);
}

.roulette > li:nth-child(7) {
  bottom: 2.5%;
  right: 42.5%;
}

.roulette > li:nth-child(8) {
  bottom: 7.5%;
  left: 22.5%;
  transform: rotate(30deg);
}

.roulette > li:nth-child(9) {
  bottom: 22.5%;
  left: 7.5%;
  transform: rotate(60deg);
}

.roulette > li:nth-child(10) {
  bottom: 42.5%;
  left: 2.5%;
  transform: rotate(90deg);
}

.roulette > li:nth-child(11) {
  top: 22.5%;
  left: 7.5%;
  transform: rotate(120deg);
}

.roulette > li:nth-child(12) {
  top: 7.5%;
  left: 22.5%;
  transform: rotate(150deg);
}

.btnControl {
  margin-top: 130px;
  text-align: center;
  font-size: 0;
}
.btnControl button {
  display: inline-block;
  vertical-align: middle;
  margin: 10px;
  border: 5px solid #000;
  border-radius: 50%;
  padding: 0;
  width: 100px;
  height: 100px;
  text-indent: -9999px;
  line-height: 0;
  outline: none;
  cursor: pointer;
  opacity: .5;
}

.btnControl button:nth-child(1) {
  background: #ccc url(../images/scissors.png) no-repeat center center / 70px auto;
}
.btnControl button:nth-child(2) {
  background: #ccc url(../images/rock.png) no-repeat center center / 70px auto;
}
.btnControl button:nth-child(3) {
  background: #ccc url(../images/paper.png) no-repeat center center / 70px auto;
}

.btnControl.on button:nth-child(1) {
  background-color: #00cc00;
  opacity: 1;
}

.btnControl.on button:nth-child(2) {
  background-color: #ffcc00;
  opacity: 1;
}

.btnControl.on button:nth-child(3) {
  background-color: #cc3333;
  opacity: 1;
}

.btnControl .btnStart {
  border: 5px solid #000;
  border-radius: 50%;
  width: 100px;
  height: 100px;
  font-size: 30px;
  text-indent: 0;
  line-height: 95px;
  background-color: #333;
  outline: none;
  cursor: pointer;
  color: #fff;
  opacity: 1;
}

.btnControl.on .btnStart {
  opacity: .5;
}

.msgArea > div {
  position: absolute;
  border: 2px solid #fff;
  box-sizing: border-box;
  width: 300px;
  height: 300px;
  background-color: #333;
}

.msgArea > div:nth-child(1) {
  top: 0;
  left: -50px;
  border-radius: 100% 5% 0 5%;
}

.msgArea > div:nth-child(2) {
  top: 0;
  right: -50px;
  border-radius: 5% 100% 5% 0;
}

.msgArea > div:nth-child(3) {
  top: 300px;
  right: -50px;
  border-radius: 0 5% 100% 5%;
}

.msgArea > div:nth-child(4) {
  top: 300px;
  left: -50px;
  border-radius: 5% 0 5% 100%;
}

.msgArea > div:nth-child(1).on {
  background-color: #cc3333;
}
.msgArea > div:nth-child(2).on {
  background-color: #cc3333;
}
.msgArea > div:nth-child(3).on {
  background-color: #ffcc00;
}
.msgArea > div:nth-child(4).on {
  background-color: #00cc00;
}

.msgArea > div span {
  position: absolute;
  font-size: 20px;
  font-weight: bold;
  color: #fff;
}

.msgArea > div:nth-child(1) span {
  top: 27.5%;
  left: 25%;
  transform: rotate(315deg);
}

.msgArea > div:nth-child(2) span {
  top: 27.5%;
  right: 25%;
  transform: rotate(45deg);
}

.msgArea > div:nth-child(3) span {
  bottom: 27.5%;
  right: 25%;
  transform: rotate(135deg);
}

.msgArea > div:nth-child(4) span {
  bottom: 27.5%;
  left: 25%;
  transform: rotate(225deg);
}

.msgArea > div.on {
  display: block;
}

.goldArea {
  margin: 40px auto 0;
  border: 5px dotted #ccc;
  padding: 10px;
  width: 494px;
}

.goldArea > span {
  display: inline-block;
  margin: 4px;
  border: 5px solid #ffcc00;
  border-radius: 50%;
  box-sizing: border-box;
  width: 50px;
  height: 50px;
  line-height: 40px;
  text-align: center;
  font-size: 12px;
  background-color: #ffcc66;
  color: #ffff99;
}