/* Round Bonus */

div#roundbonuswrapper {
  left: 1568px;
  top: 5px;
}

div#roundbonuswrapper div.roundbonus {
  width: 89px;
  height: 101px;
  background-size: 100%;
}
div#roundbonuswrapper div.roundbonus1 {
  -webkit-transform: rotate(285deg);
  transform: rotate(285deg);
  left: 11px;
  top: 89px;
}
div#roundbonuswrapper div.roundbonus2 {
  -webkit-transform: rotate(315deg);
  transform: rotate(315deg);
  left: 42px;
  top: 35px;
}
div#roundbonuswrapper div.roundbonus3 {
  -webkit-transform: rotate(345deg);
  transform: rotate(345deg);
  left: 96px;
  top: 3px;
}
div#roundbonuswrapper div.roundbonus4 {
  -webkit-transform: rotate(15deg);
  transform: rotate(15deg);
  left: 158px;
  top: 3px;
}
div#roundbonuswrapper div.roundbonus5 {
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
  left: 212px;
  top: 35px;
}
div#roundbonuswrapper div.roundbonus6 {
  -webkit-transform: rotate(75deg);
  transform: rotate(75deg);
  left: 243px;
  top: 89px;
}

/* Final Scorings */

div#finalwrapper {
  left: 1568px;
  top: 182px;
}

div#finalwrapper div.final1 { left: 36px; top: 2px; }
div#finalwrapper div.final2 { left: 210px; top: 2px; }

div#finalwrapper div.finalrank {
  width: 32px;
  text-align: center;
}
div#finalwrapper div.finalrank11 {
  left: 1px;
  top: 0px;
}
div#finalwrapper div.finalrank12 {
  left: 1px;
  top: 23px;
}
div#finalwrapper div.finalrank13 {
  left: 1px;
  top: 46px;
}
div#finalwrapper div.finalrank14 {
  left: 1px;
  top: 69px;
}
div#finalwrapper div.finalrank21 {
  left: 173px;
  top: 0px;
}
div#finalwrapper div.finalrank22 {
  left: 173px;
  top: 23px;
}
div#finalwrapper div.finalrank23 {
  left: 173px;
  top: 46px;
}
div#finalwrapper div.finalrank24 {
  left: 173px;
  top: 69px;
}

/* Notice */

div#noticewrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  left: 1568px;
  top: 281px;
  width: 320px;
  height: 67px;
  border: 1px solid white;
  padding: 10px;
  text-align: center;
  text-overflow: clip;
  overflow-y: auto;
  scrollbar-width: none; /* Firefox 전용 */
  -ms-overflow-style: none; /* IE/Edge 전용 */
}
@keyframes blink {
  0% { background-color: white; }
  12.5% { background-color: black; }
  100% { background-color: black; }
}
div#noticewrapper.blink {
   animation: blink 8s linear infinite;
}
div#noticewrapper::-webkit-scrollbar { /* Webkit 브라우저용 (Chrome, Safari 등) */
  display: none;
}
div#noticewrapper > p {
  margin: 0;
}

/* Turn Summary */

div#turnsummarywrapper {
  left: 1568px;
  top: 375px;
  width: 320px;
  height: 383px;
  border: 1px solid white;
  padding: 10px;
  text-align: left;
  text-overflow: clip;
  overflow-y: auto;
  scrollbar-width: none; /* Firefox 전용 */
  -ms-overflow-style: none; /* IE/Edge 전용 */
}
div#turnsummarywrapper::-webkit-scrollbar { /* Webkit 브라우저용 (Chrome, Safari 등) */
  display: none;
}

div#turnsummarywrapper > div.oneaction {
  position: relative;
  width: 320px;
  font-size: 20px;
  text-align: left;
  line-height: 28px;
  display: inline-flex; 
  align-items: center;
  gap: 5px;
}
div#turnsummarywrapper > div.oneaction > div.action > div.text {
  text-align: center;
  line-height: 19px;
}
div#turnsummarywrapper > div.oneaction:not(.rightaligned) > img.icon {
  transform: none;
}
div#turnsummarywrapper > div.oneaction:not(.rightaligned) > img.gaintech {
  width: 44px;
  height: 30px;
}
div#turnsummarywrapper > div.oneaction.rightaligned {
  display: block;
  align-items: default;
  text-align: right;
}
div#turnsummarywrapper > div.oneaction:hover {
  background-color: gray;
}

div#turnsummarywrapper > div.oneaction > div {
  display: inline-block;
  position: relative;
  background-size: 100%;
}
div#turnsummarywrapper > div.oneaction > div.fleet {
  width: 40px;
  height: 40px;
}
div#turnsummarywrapper > div.oneaction > div.fleet.TFMars {
  background-image: url('shiplogo_tfmars.png');
}
div#turnsummarywrapper > div.oneaction > div.fleet.Eclipse {
  background-image: url('shiplogo_eclipse.png');
}
div#turnsummarywrapper > div.oneaction > div.fleet.Rebellion {
  background-image: url('shiplogo_rebellion.png');
}
div#turnsummarywrapper > div.oneaction > div.fleet.Twilight {
  background-image: url('shiplogo_twilight.png');
}

div#turnsummarywrapper > div.oneaction > div.gaiaformer {
  width: 37px;
  height: 30px;
}
div#turnsummarywrapper > div.oneaction.rightaligned > div.gaiaformer {
  transform: translateY(8px);
}
div#turnsummarywrapper > div.oneaction > div.M {
  width: 30px;
  height: 34px;
  background-image: url('M.png');
}
div#turnsummarywrapper > div.oneaction > div.TS {
  width: 33px;
  height: 40px;
  background-image: url('TS.png');
}
div#turnsummarywrapper > div.oneaction > div.PI {
  width: 47px;
  height: 43px;
  background-image: url('PI.png');
}
div#turnsummarywrapper > div.oneaction > div.RL {
  width: 34px;
  height: 36px;
  background-image: url('RL.png');
}
div#turnsummarywrapper > div.oneaction > div.A {
  width: 38px;
  height: 40px;
  background-image: url('A.png');
}
div#turnsummarywrapper > div.oneaction > div.boosterwrapper {
  width: 117px;
  height: 40px;
  overflow: hidden;
}
div#turnsummarywrapper > div.oneaction > div.boosterwrapper > img {
  transform: rotate(-90deg) translateX(-40px);
  transform-origin: top left;
  width: 40px;
  height: 117px;
}
div#turnsummarywrapper > div.oneaction > div.artifact {
  width: 80px;
  height: 62px;
}
div#turnsummarywrapper > div.oneaction > div.fed {
  width: 50px;
  height: 61px;
}
div#turnsummarywrapper > div.oneaction > div.basetech {
  width: 66px;
  height: 50px;
}
div#turnsummarywrapper > div.oneaction > div.advtech {
  width: 56px;
  height: 44px;
}
div#turnsummarywrapper > div.oneaction > div.lostplanet {
  width: 50px;
  height: 50px;
}

/* Leech */

div#leechwrapper {
  left: 1568px;
  top: 375px;
  width: 320px;
  height: 383px;
  border: 1px solid white;
  background-color: black;
  padding: 10px;
  text-align: left;
  text-overflow: clip;
  overflow-y: auto;
  scrollbar-width: none; /* Firefox 전용 */
  -ms-overflow-style: none; /* IE/Edge 전용 */
}
div#leechwrapper:not(.activated) {
  display: none;
}

div#leechwrapper > div.leechoption {
  position: relative;
  width: 300px;
  height: 26px;
  padding: 10px;
  margin: 0px 0px 11px -1px;
  font-size: 20px;
  text-align: left;
  line-height: 28px;
  border: 1px solid white;
}
div#leechwrapper > div.leechoption:hover { background-color: gray; }
div#leechwrapper > div.leechoption.activated { background-color: gray; }

/* Income */

div#incomewrapper {
  left: 1568px;
  top: 375px;
  width: 320px;
  height: 383px;
  border: 1px solid white;
  background-color: black;
  padding: 10px;
  text-align: left;
  text-overflow: clip;
  overflow-y: auto;
  scrollbar-width: none; /* Firefox 전용 */
  -ms-overflow-style: none; /* IE/Edge 전용 */
}
div#incomewrapper:not(.activated) {
  display: none;
}

div#incomewrapper > div.incomeoption {
  position: relative;
  width: 300px;
  height: 26px;
  padding: 10px;
  margin: 0px 0px 11px -1px;
  font-size: 20px;
  text-align: left;
  line-height: 28px;
  border: 1px solid white;
}
div#incomewrapper > div.incomeoption:hover { background-color: gray; }
div#incomewrapper > div.incomeoption.activated { background-color: gray; }

/* Tinkering Tile */

div#tinkeringtilewrapper {
  left: 1568px;
  top: 375px;
  width: 320px;
  height: 383px;
  border: 1px solid white;
  background-color: black;
  padding: 10px;
  text-align: left;
  text-overflow: clip;
  overflow-y: auto;
  scrollbar-width: none; /* Firefox 전용 */
  -ms-overflow-style: none; /* IE/Edge 전용 */
  display: flex;
  justify-content: left;
  align-items: top;
  gap: 10px;
}
div#tinkeringtilewrapper:not(.activated) {
  display: none;
}
div.tinkeringtileoption {
  position: relative;
  width: 100px;
  height: 89px;
  background-size: 100%;
  clip-path: path("M0 0 H60 A45 45 0 0 1 100 45 V63 L74 89 H0 Z");
}
div#tinkeringtilewrapper > div.tinkeringtileoption:hover {
  background-color: rgba(255, 255, 255, 0.5);
  background-blend-mode: lighten;
}

/* Token2resource */

div#token2resourcewrapper {
  left: 1568px;
  top: 375px;
  width: 320px;
  height: 383px;
  border: 1px solid white;
  background-color: black;
  padding: 10px;
  text-align: left;
  text-overflow: clip;
}
div#token2resourcewrapper:not(.activated) { display: none; }

div#token2resourcewrapper > div.token2credit {
  top: 10px;
  left: 10px;
  width: 114px;
  height: 48px;
  background-color: #b200ff;
}
div#token2resourcewrapper > div.token2credit:hover { background-color: #d37cff; }
div#token2resourcewrapper > div.token2credit > div.text {
  left: 12px;
  top: 13px;
}
div#token2resourcewrapper > div.token2credit > div.powertoken {
  left: 26px;
  top: 14px;
}
div#token2resourcewrapper > div.token2credit > div.credit {
  left: 82px;
  top: 14px;
}

div#token2resourcewrapper > div.token2ore {
  top: 68px;
  left: 10px;
  width: 114px;
  height: 48px;
  background-color: #b200ff;
}
div#token2resourcewrapper > div.token2ore:hover { background-color: #d37cff; }
div#token2resourcewrapper > div.token2ore > div.text {
  left: 12px;
  top: 13px;
}
div#token2resourcewrapper > div.token2ore > div.powertoken {
  left: 26px;
  top: 14px;
}
div#token2resourcewrapper > div.token2ore > div.ore {
  left: 82px;
  top: 14px;
}

div#token2resourcewrapper > div.token2knowledge {
  top: 126px;
  left: 10px;
  width: 114px;
  height: 48px;
  background-color: #b200ff;
}
div#token2resourcewrapper > div.token2knowledge:hover { background-color: #d37cff; }
div#token2resourcewrapper > div.token2knowledge > div.text {
  left: 12px;
  top: 13px;
}
div#token2resourcewrapper > div.token2knowledge > div.powertoken {
  left: 26px;
  top: 14px;
}
div#token2resourcewrapper > div.token2knowledge > div.knowledge {
  left: 82px;
  top: 14px;
}

div#token2resourcewrapper > div.token2qic {
  top: 184px;
  left: 10px;
  width: 114px;
  height: 48px;
  background-color: #b200ff;
}
div#token2resourcewrapper > div.token2qic:hover { background-color: #d37cff; }
div#token2resourcewrapper > div.token2qic > div.text {
  left: 12px;
  top: 13px;
}
div#token2resourcewrapper > div.token2qic > div.powertoken {
  left: 26px;
  top: 14px;
}
div#token2resourcewrapper > div.token2qic > div.qic {
  left: 82px;
  top: 14px;
}

/* Fed Check */

div#fedcheckwrapper {
  left: 1568px;
  top: 375px;
  width: 320px;
  height: 383px;
  border: 1px solid white;
  background-color: black;
  padding: 10px;
  text-align: left;
  text-overflow: clip;
}
div#fedcheckwrapper:not(.activated) { display: none; }

div#fedcheckwrapper > div {
  position: relative;
  width: 300px;
  padding: 10px;
  margin: 0px 0px 11px -1px;
  font-size: 20px;
  text-align: left;
  line-height: 28px;
  border: 1px solid white;
}
div#fedcheckwrapper > div:hover { background-color: gray; }
div#fedcheckwrapper > div.activated { background-color: gray; }
div#fedcheckwrapper > div#fedchecklegal { height: 26px; }
div#fedcheckwrapper > div#fedcheckillegal { height: 54px; }

/* login */

div#loginwrapper {
  left: 1568px;
  top: 375px;
  width: 320px;
  height: 383px;
  border: 1px solid white;
  padding: 10px;
  text-align: left;
  text-overflow: clip;
  overflow-y: auto;
}

div#loginwrapper > div.text {
  position: relative;
}

div#loginwrapper > div.text > input {
  position: relative;
  width: 314px;
  height: 24px;
  margin-bottom: 10px;
  font-size: 20px;
}

div#loginwrapper > button#loginbutton {
  width: 100px;
  height: 32px;
  font-size: 22px;
}

div#loginwrapper > button#watchbutton {
  width: 100px;
  height: 32px;
  font-size: 22px;
}

div#loginwrapper > div.text > select {
  position: relative;
  width: 320px;
  height: 30px;
  margin-bottom: 10px;
  font-size: 20px;
}






/* Turn Buttons */

div#resetturnbutton {
  left: 1568px;
  top: 786px;
  width: 166px;
  height: 80px;
  border: 1px solid white;
  display: flex;
  justify-content: center;
  align-items: center;
}
div#resetturnbutton:not(.activated) { display: none; }
div#resetturnbutton:hover { background-color: gray; }

div#endturnbutton {
  left: 1741px;
  top: 786px;
  width: 167px;
  height: 80px;
  border: 1px solid white;
  display: flex;
  justify-content: center;
  align-items: center;
}
div#endturnbutton:not(.activated) { display: none; }
div#endturnbutton:hover { background-color: gray; }

/* Final Score Button */

div#detailedscorebuttonwrapper {
  left: 1568px;
  top: 786px;
}
div#detailedscorebuttonwrapper:not(.activated) { display: none; }

div#detailedscorebuttonwrapper > div#detailedscorebutton {
  width: 340px;
  height: 80px;
  border: 1px solid white;
  display: flex;
  justify-content: center;
  align-items: center;
}
div#detailedscorebuttonwrapper > div#detailedscorebutton.activated { background-color: gray; }
div#detailedscorebuttonwrapper > div#detailedscorebutton:hover { background-color: gray; }

/* Log Switch Button */

div#logswitchbutton {
  left: 1679px;
  top: 113px;
  width: 120px;
  height: 60px;
  border: 1px solid white;
  border-top-left-radius: 61px;
  border-top-right-radius: 61px;
}
div#logswitchbutton.enabled {
  background-color: gray;
}
div#logswitchbutton:hover {
  background-color: gray;
}
div#logswitchbutton > div.text {
  font-size: 14px;
  width: 100%;
  bottom: 4px;
}


/* Log */

div#gamelogwrapper {
  left: 1568px;
  top: 375px;
  width: 320px;
  height: 383px;
  background-color: black;
  border: 1px solid white;
  padding: 10px;
  text-align: left;
  text-overflow: clip;
  overflow-y: auto;
  scrollbar-width: none; /* Firefox 전용 */
  -ms-overflow-style: none; /* IE/Edge 전용 */
}
div#gamelogwrapper::-webkit-scrollbar { /* Webkit 브라우저용 (Chrome, Safari 등) */
  display: none;
}

div#gamelogwrapper > div.dummy {
  position: relative;
  width: 320px;
  height: 30px;
  display: inline-flex;
}

div#gamelogwrapper > div.oneaction {
  position: relative;
  width: 320px;
  font-size: 20px;
  text-align: left;
  line-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 5px;
}
div#gamelogwrapper > div.oneaction > div.action > div.text {
  text-align: center;
  line-height: 19px;
}
div#gamelogwrapper > div.oneaction:not(.rightaligned) > img.icon {
  transform: none;
}
div#gamelogwrapper > div.oneaction:not(.rightaligned) > img.gaintech {
  width: 44px;
  height: 30px;
}
div#gamelogwrapper > div.oneaction.rightaligned {
  display: block;
  align-items: default;
  text-align: right;
}
div#gamelogwrapper > div.oneaction:hover {
  background-color: gray;
}

div#gamelogwrapper > div.oneaction > div {
  display: inline-block;
  position: relative;
  background-size: 100%;
}
div#gamelogwrapper > div.oneaction > div.fleet {
  width: 40px;
  height: 40px;
}
div#gamelogwrapper > div.oneaction > div.fleet.TFMars {
  background-image: url('shiplogo_tfmars.png');
}
div#gamelogwrapper > div.oneaction > div.fleet.Eclipse {
  background-image: url('shiplogo_eclipse.png');
}
div#gamelogwrapper > div.oneaction > div.fleet.Rebellion {
  background-image: url('shiplogo_rebellion.png');
}
div#gamelogwrapper > div.oneaction > div.fleet.Twilight {
  background-image: url('shiplogo_twilight.png');
}

div#gamelogwrapper > div.oneaction > div.gaiaformer {
  width: 37px;
  height: 30px;
}
div#gamelogwrapper > div.oneaction.rightaligned > div.gaiaformer {
  transform: translateY(8px);
}
div#gamelogwrapper > div.oneaction > div.M {
  width: 30px;
  height: 34px;
  background-image: url('M.png');
}
div#gamelogwrapper > div.oneaction > div.TS {
  width: 33px;
  height: 40px;
  background-image: url('TS.png');
}
div#gamelogwrapper > div.oneaction > div.PI {
  width: 47px;
  height: 43px;
  background-image: url('PI.png');
}
div#gamelogwrapper > div.oneaction > div.RL {
  width: 34px;
  height: 36px;
  background-image: url('RL.png');
}
div#gamelogwrapper > div.oneaction > div.A {
  width: 38px;
  height: 40px;
  background-image: url('A.png');
}
div#gamelogwrapper > div.oneaction > div.boosterwrapper {
  width: 117px;
  height: 40px;
  overflow: hidden;
}
div#gamelogwrapper > div.oneaction > div.boosterwrapper > img {
  transform: rotate(-90deg) translateX(-40px);
  transform-origin: top left;
  width: 40px;
  height: 117px;
}
div#gamelogwrapper > div.oneaction > div.artifact {
  width: 80px;
  height: 62px;
}
div#gamelogwrapper > div.oneaction > div.fed {
  width: 50px;
  height: 61px;
}
div#gamelogwrapper > div.oneaction > div.basetech {
  width: 66px;
  height: 50px;
}
div#gamelogwrapper > div.oneaction > div.advtech {
  width: 56px;
  height: 44px;
}
div#gamelogwrapper > div.oneaction > div.lostplanet {
  width: 50px;
  height: 50px;
}
div#gamelogwrapper > div.oneaction > div.tinkeringtile {
  width: 50px;
  height: 44px;
}


/* Taklons묘수button */

div.Taklons묘수button {
  left: 176px;
  top: 10px;
  width: 40px;
  height: 40px;
  background-color: black;
  border: 1px solid white;
  z-index: 0.5;
  display: flex;
  justify-content: center;
  align-items: center;
}
div.Taklons묘수button.activated {
  background-color: rgba(255, 255, 255, 0.5) !important;
  background-blend-mode: lighten;
}

div.Taklons묘수button > img {
  width: 25px;
  height: 25px;
}

/* VP Counter */

div#vpcounterwrapper {
  left: 432px;
  top: 70px;
  z-index: 1;
}

div#vpcounterwrapper > div.vpcounter > img.icon {
  position: relative;
  transform: translate(0px, 0px);
}

div#vpcounterwrapper > div.vpcounter {
  width: 108px;
  height: 20px;
  display: flex;
  justify-content: left;
  align-items: center;
  gap: 4px;
}
div#vpcounterwrapper > div.vpcounter0 { top: 0px; }
div#vpcounterwrapper > div.vpcounter1 { top: 35px; }
div#vpcounterwrapper > div.vpcounter2 { top: 70px; }
div#vpcounterwrapper > div.vpcounter3 { top: 105px; }

div#vpcounterwrapper > div.vpcounter > div.text {
  position: relative;
}

/* Sound */

div#soundeffectbutton {
  top: 5px;
  left: 1568px;
  width: 30px;
  height: 30px;
  border: 1px solid white;
  border-radius: 16px;
  background-image: url('soundeffect.png');
  background-size: 65%;
}

div#soundeffectbutton:hover { background-color: gray; }

div#soundeffectbutton.muted { background-image: url('soundeffect_muted.png'); }

/* Rule Board Button */

div#ruleboardbutton {
  top: 5px;
  left: 1606px;
  width: 30px;
  height: 30px;
  border: 1px solid white;
  border-radius: 16px;
  background-image: url('book.png');
  background-size: 65%;
}

div#ruleboardbutton:hover { background-color: gray; }

div#ruleboardbutton.opened { background-color: gray; }
