@charset "UTF-8";
.hide {
  display: none !important;
}
.fadeout {
  opacity: 0 !important;
}
input,
textarea {
  font-size: 100%;
  font-family: Menlo, Consolas, Courier, monospace;
}
button {
  font-size: 100%;
}
button,
input[type="submit"],
input[type="reset"],
input[type="button"] {
  font-family: Verdana, sans-serif;
  padding: 1px 1em;
  border: solid 1px;
  border-radius: 4px;
  background: #ddd;
  color: #000;
  -webkit-appearance: none;
}
input::placeholder {
  color: #999;
  opacity: 1;
}
select {
  border: solid 1px;
  border-radius: 4px;
  font-size: 100%;
  padding: 1px;
  background: #ddd;
  color: #000;
}
body {
  -webkit-text-size-adjust: 100%;
  margin-top: 0;
}
#loaddata {
  display: none;
}
[role="button"] * {
  pointer-events: none;
}
@-moz-keyframes blink {
  100% {
    opacity: 0.7;
  }
}
@-webkit-keyframes blink {
  100% {
    opacity: 0.7;
  }
}
@-o-keyframes blink {
  100% {
    opacity: 0.7;
  }
}
@keyframes blink {
  100% {
    opacity: 0.7;
  }
}
@-moz-keyframes blink-text {
  100% {
    opacity: 0.2;
  }
}
@-webkit-keyframes blink-text {
  100% {
    opacity: 0.2;
  }
}
@-o-keyframes blink-text {
  100% {
    opacity: 0.2;
  }
}
@keyframes blink-text {
  100% {
    opacity: 0.2;
  }
}
#navi {
  display: none;
  font-size: 12px;
  font-family: Verdana, sans-serif;
  padding: 0;
  text-align: right;
}
#navi li + li:before {
  content: ' | ';
}
#navi li {
  display: inline-block;
}
#navi li a {
  color: inherit;
  text-decoration: none;
}
#loading-screen {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
}
#loading-screen.hide {
  display: none;
}
.loading-bg {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background-image: url("../img/game_character_select-assets/title_bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  animation: bg-diagonal-move 20s ease-in-out infinite;
}
.loading-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  z-index: 1;
}
.loading-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}
.loading-character img {
  width: 400px;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5));
  animation: character-float 3s ease-in-out infinite;
}
.loading-text {
  font-size: 36px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 4px 8px rgba(0,0,0,0.8);
  letter-spacing: 2px;
}
.loading-dots {
  display: flex;
  gap: 15px;
}
.loading-dots .dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.5);
  animation: dot-bounce 1.4s ease-in-out infinite;
}
.loading-dots .dot:nth-child(1) {
  animation-delay: 0s;
}
.loading-dots .dot:nth-child(2) {
  animation-delay: 0.2s;
}
.loading-dots .dot:nth-child(3) {
  animation-delay: 0.4s;
}
@media (max-width: 900px) {
  .loading-character img {
    width: 300px;
  }
  .loading-text {
    font-size: 28px;
  }
}
@media (max-width: 600px) {
  .loading-content {
    gap: 30px;
  }
  .loading-character img {
    width: 250px;
  }
  .loading-text {
    font-size: 24px;
  }
  .loading-dots .dot {
    width: 12px;
    height: 12px;
  }
}
@-moz-keyframes character-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}
@-webkit-keyframes character-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}
@-o-keyframes character-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}
@keyframes character-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}
@-moz-keyframes dot-bounce {
  0%, 80%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  40% {
    transform: scale(1.3);
    opacity: 0.7;
  }
}
@-webkit-keyframes dot-bounce {
  0%, 80%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  40% {
    transform: scale(1.3);
    opacity: 0.7;
  }
}
@-o-keyframes dot-bounce {
  0%, 80%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  40% {
    transform: scale(1.3);
    opacity: 0.7;
  }
}
@keyframes dot-bounce {
  0%, 80%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  40% {
    transform: scale(1.3);
    opacity: 0.7;
  }
}
@-moz-keyframes bg-diagonal-move {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(3%, -3%);
  }
  50% {
    transform: translate(0, -5%);
  }
  75% {
    transform: translate(-3%, -3%);
  }
  100% {
    transform: translate(0, 0);
  }
}
@-webkit-keyframes bg-diagonal-move {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(3%, -3%);
  }
  50% {
    transform: translate(0, -5%);
  }
  75% {
    transform: translate(-3%, -3%);
  }
  100% {
    transform: translate(0, 0);
  }
}
@-o-keyframes bg-diagonal-move {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(3%, -3%);
  }
  50% {
    transform: translate(0, -5%);
  }
  75% {
    transform: translate(-3%, -3%);
  }
  100% {
    transform: translate(0, 0);
  }
}
@keyframes bg-diagonal-move {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(3%, -3%);
  }
  50% {
    transform: translate(0, -5%);
  }
  75% {
    transform: translate(-3%, -3%);
  }
  100% {
    transform: translate(0, 0);
  }
}
#board .game-viewport #match-start-screen {
  position: absolute;
  inset: 0;
  width: 1370px;
  height: 770px;
  z-index: 1200;
  pointer-events: auto;
  opacity: 0;
  transition: opacity 1000ms linear;
  will-change: opacity;
}
#board .game-viewport #match-start-screen.is-visible {
  opacity: 1;
}
#board .game-viewport #match-start-screen.hide {
  display: none;
}
#board .game-viewport #match-start-screen .match-start-dimmer {
  position: absolute;
  inset: 0;
  background: transparent;
}
#board .game-viewport #match-start-screen .match-start-panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, calc(-50% - 24px));
  width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
#board .game-viewport #match-start-screen .match-start-title {
  grid-area: title;
  text-align: center;
  font-family: "HGP行書体", /*"Weibei SC", "YuKyokasho",*/ STKaiti, serif;
  font-size: 84px;
  font-weight: 900;
  letter-spacing: 0.22em;
  line-height: 1;
  color: #ffd86a;
  background: linear-gradient(180deg, #fff7c2 0%, #ffd86a 28%, #c98b1f 72%, #fff1a0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.6));
}
@supports (-webkit-background-clip: text) or (background-clip: text) {
  #board .game-viewport #match-start-screen .match-start-title {
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}
#board .game-viewport #match-start-screen .match-start-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: ". duimian ." "shangjia title xiajia" ". main .";
  column-gap: 42px;
  row-gap: 1px;
  align-items: center;
  justify-items: center;
  margin-top: 0;
}
#board .game-viewport #match-start-screen .match-start-player {
  width: 198px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
#board .game-viewport #match-start-screen .match-start-player--duimian {
  grid-area: duimian;
  transform: translateY(56px);
}
#board .game-viewport #match-start-screen .match-start-player--shangjia {
  grid-area: shangjia;
}
#board .game-viewport #match-start-screen .match-start-player--xiajia {
  grid-area: xiajia;
}
#board .game-viewport #match-start-screen .match-start-player--main {
  grid-area: main;
  transform: translateY(-56px);
}
#board .game-viewport #match-start-screen .match-start-icon {
  width: 198px;
  height: auto;
  display: block;
  border-radius: 0;
  box-shadow: none;
}
#board .game-viewport #match-start-screen .match-start-name {
  box-sizing: border-box;
  width: 198px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
  line-height: 1.15;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 4px 8px;
  background: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.82) 15%, rgba(0,0,0,0.88) 50%, rgba(0,0,0,0.82) 85%, transparent 100%);
}
#board .game-viewport #match-start-screen .match-start-wind {
  box-sizing: border-box;
  width: 198px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 900;
  color: #fff;
  background: linear-gradient(135deg, #2f80ff 0%, #0b2a7a 60%, #2f80ff 100%);
  border: 2px solid rgba(170,210,255,0.55);
  box-shadow: 0 10px 18px rgba(0,0,0,0.35);
}
#board .game-viewport #match-start-screen .match-start-wind.is-east {
  background: linear-gradient(135deg, #d73a3a 0%, #8b0000 60%, #d73a3a 100%);
  border-color: rgba(255,220,220,0.55);
}
body.match-start .players-display,
body.match-start .third-timer-hud,
body.match-start .third-audio-settings {
  visibility: hidden;
}
body.match-start #board .board > .player {
  display: none;
}
#title-screen {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 900;
}
#title-screen.hide {
  display: none;
}
#intro-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #000;
  will-change: opacity;
  display: flex;
  justify-content: center;
  align-items: center;
}
#intro-layer.hide {
  display: none;
}
#intro-ok-dialog {
  position: absolute;
  z-index: 3;
  background: #fff;
  color: #40c4b7;
  padding: 24px 32px;
  border-radius: 12px;
  border: 2px solid #40c4b7;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}
#intro-ok-dialog.hide {
  display: none;
}
.intro-ok-message {
  margin: 0 0 16px 0;
  font-size: 1rem;
  color: #40c4b7;
}
#intro-ok-btn {
  max-width: 120px;
  padding: 8px 24px;
  background: #ff2fb4;
  color: #fff;
  border-radius: 8px;
  font-size: 1rem;
  border: none;
}
#intro-ok-btn:hover {
  background: #e62aa3;
}
#intro-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
#title-screen.is-intro .title-content {
  visibility: hidden;
  pointer-events: none;
}
#title-screen.is-intro-wait .title-screen-bg,
#title-screen.is-intro-wait .title-content {
  visibility: hidden;
}
.title-screen-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../img/game_title-assets/title_img.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}
.title-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  width: 100%;
  max-width: 1200px;
  padding: 40px 20px;
  transform: scale(var(--title-scale, 1));
  transform-origin: center center;
  will-change: transform;
}
.title-logo {
  text-align: center;
  animation: logo-float 3s ease-in-out infinite;
}
.title-logo img {
  width: 100%;
  max-width: 800px;
  height: auto;
  filter: drop-shadow(0 calc(10px * var(--title-shadow-mul, 1)) calc(30px * var(--title-shadow-mul, 1)) rgba(0,0,0,0.5));
}
.title-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: 100%;
  max-width: 600px;
}
.game-button {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s;
  position: relative;
  width: 100%;
  max-width: 500px;
}
.game-button img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 calc(8px * var(--title-shadow-mul, 1)) calc(20px * var(--title-shadow-mul, 1)) rgba(0,0,0,0.4));
  transition: all 0.3s;
}
.game-button:hover {
  transform: translateY(-5px) scale(1.05);
}
.game-button:hover img {
  filter: drop-shadow(0 calc(12px * var(--title-shadow-mul, 1)) calc(30px * var(--title-shadow-mul, 1)) rgba(0,0,0,0.6)) brightness(1.1);
}
.game-button:active {
  transform: translateY(-2px) scale(1.02);
}
@media (max-width: 1200px) {
  .title-logo img {
    max-width: 600px;
  }
  .title-buttons {
    max-width: 450px;
  }
  .game-button {
    max-width: 400px;
  }
}
@media (max-width: 900px) {
  .title-content {
    gap: 40px;
    padding: 30px 20px;
  }
  .title-logo img {
    max-width: 500px;
  }
  .title-buttons {
    max-width: 400px;
    gap: 20px;
  }
  .game-button {
    max-width: 350px;
  }
}
@media (max-width: 600px) {
  .title-content {
    gap: 30px;
    padding: 20px 15px;
  }
  .title-logo img {
    max-width: 350px;
  }
  .title-buttons {
    max-width: 300px;
    gap: 15px;
  }
  .game-button {
    max-width: 280px;
  }
}
@-moz-keyframes logo-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}
@-webkit-keyframes logo-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}
@-o-keyframes logo-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}
@keyframes logo-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}
#game-mode-select-screen {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 900;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  --gms-top-reserve: clamp(78px, 14vh, 110px);
  --gms-bottom-reserve: clamp(96px, 20vh, 160px);
  padding-top: var(--gms-top-reserve);
  padding-bottom: var(--gms-bottom-reserve);
}
#game-mode-select-screen.hide {
  display: none;
}
.game-mode-select-bg {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  z-index: 1;
  background-image: url("../img/game_select_mode/game_select_mode-assets/select_mode_bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: menu-bg-diagonal-move 20s ease-in-out infinite;
}
.game-mode-select-midashi {
  position: fixed;
  top: 24px;
  left: 0;
  z-index: 3;
  width: 30vw;
  height: auto;
  filter: drop-shadow(0 6px 15px rgba(0,0,0,0.35));
}
.game-mode-select-content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: calc(100vh - var(--gms-top-reserve) - var(--gms-bottom-reserve));
}
.game-mode-select-cards {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 26px;
  width: 92vw;
  padding: 0 20px;
}
.game-mode-card {
  -webkit-appearance: none;
  appearance: none;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: transform 0.25s, filter 0.25s;
}
.game-mode-card img {
  display: block;
  width: auto;
  height: auto;
  max-width: clamp(260px, 24vw, 360px);
  max-height: calc(100vh - var(--gms-top-reserve) - var(--gms-bottom-reserve) - 40px);
  filter: drop-shadow(0 12px 22px rgba(0,0,0,0.25));
  transition: filter 0.25s;
}
.game-mode-card:hover {
  transform: translateY(-6px) scale(1.03);
}
.game-mode-card:hover img {
  filter: drop-shadow(0 16px 28px rgba(0,0,0,0.32)) brightness(1.06);
}
.game-mode-card:active {
  transform: translateY(-2px) scale(1.01);
}
.game-mode-select-back {
  position: fixed;
  left: 50%;
  bottom: clamp(16px, 4vh, 44px);
  transform: translateX(-50%);
  z-index: 3;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.25s, filter 0.25s;
}
.game-mode-select-back img {
  height: clamp(44px, 9vh, 78px);
  width: auto;
  display: block;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.25));
  transition: filter 0.25s;
}
.game-mode-select-back:hover {
  transform: translateX(-50%) translateY(-5px) scale(1.05);
}
.game-mode-select-back:hover img {
  filter: drop-shadow(0 12px 30px rgba(0,0,0,0.35)) brightness(1.06);
}
.game-mode-select-back:active {
  transform: translateX(-50%) translateY(-2px) scale(1.02);
}
@media (max-width: 900px) {
  #game-mode-select-screen {
    --gms-top-reserve: clamp(70px, 14vh, 96px);
    --gms-bottom-reserve: clamp(86px, 20vh, 140px);
  }
  .game-mode-select-midashi {
    width: 40vw;
    max-width: 200px;
  }
  .game-mode-select-cards {
    gap: 18px;
  }
  .game-mode-card img {
    max-width: clamp(240px, 38vw, 320px);
    max-height: calc(100vh - var(--gms-top-reserve) - var(--gms-bottom-reserve) - 40px);
  }
}
@media (max-width: 600px) {
  #game-mode-select-screen {
    --gms-top-reserve: clamp(64px, 14vh, 90px);
    --gms-bottom-reserve: clamp(78px, 20vh, 120px);
  }
  .game-mode-select-midashi {
    width: 45vw;
    max-width: 170px;
  }
  .game-mode-select-cards {
    flex-direction: column;
    gap: 16px;
  }
  .game-mode-card img {
    max-width: 86vw;
    max-height: calc(100vh - var(--gms-top-reserve) - var(--gms-bottom-reserve) - 40px);
  }
}
@media (max-height: 700px) {
  .game-mode-select-midashi {
    top: 16px;
    max-width: 240px;
  }
}
@media (max-height: 560px) {
  .game-mode-select-midashi {
    top: 12px;
    max-width: 200px;
  }
}
@media (max-height: 460px) {
  .game-mode-select-midashi {
    top: 10px;
    max-width: 170px;
  }
}
#menu-screen {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 900;
  overflow-y: auto;
  overflow-x: hidden;
}
#menu-screen.hide {
  display: none;
}
.menu-screen-bg {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background-image: url("../img/game_menu/game_menu_assets/menu_bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  animation: menu-bg-diagonal-move 20s ease-in-out infinite;
}
.menu-screen-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.12);
  z-index: 1;
}
.menu-midashi {
  position: fixed;
  top: 24px;
  left: 0;
  z-index: 3;
  width: 30vw;
  height: auto;
  filter: drop-shadow(0 6px 15px rgba(0,0,0,0.8));
}
.menu-cards {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 26px;
  width: 92vw;
  padding: 0 20px;
  flex-wrap: nowrap;
}
@media (max-width: 1100px) {
  .menu-cards {
    flex-wrap: wrap;
    gap: 18px;
  }
  .menu-card img {
    width: 42vw;
  }
}
.menu-card {
  -webkit-appearance: none;
  appearance: none;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  cursor: pointer;
  outline: none;
  box-shadow: none;
  transition: transform 0.15s ease;
}
.menu-card img {
  display: block;
  width: 20vw;
  height: auto;
}
.menu-card:hover {
  transform: translateY(-2px);
}
.menu-card:active {
  transform: translateY(0);
}
.menu-back {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 3;
  -webkit-appearance: none;
  appearance: none;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  outline: none;
  box-shadow: none;
  transition: all 0.3s;
  width: auto;
}
.menu-back img {
  display: block;
  height: 78px;
  width: auto;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.4));
  transition: all 0.3s;
}
.menu-back:hover {
  transform: translateX(-50%) translateY(-5px) scale(1.05);
}
.menu-back:hover img {
  filter: drop-shadow(0 12px 30px rgba(0,0,0,0.6)) brightness(1.1);
}
.menu-back:active {
  transform: translateX(-50%) translateY(-2px) scale(1.02);
}
@media (max-width: 1200px) {
  .menu-back img {
    height: 63px;
  }
}
@media (max-width: 900px) {
  .menu-midashi {
    width: 40vw;
  }
  .menu-back img {
    height: 55px;
  }
}
@media (max-width: 600px) {
  .menu-midashi {
    width: 45vw;
  }
  .menu-back img {
    height: 44px;
  }
}
.menu-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 50px;
  width: 100%;
  max-width: 1200px;
  padding: 40px 20px 80px;
}
.menu-player-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 30px;
  background: rgba(0,0,0,0.6);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  border: 3px solid rgba(255,215,0,0.4);
}
.menu-player-info .player-avatar {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid rgba(255,215,0,0.8);
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
  background: #fff;
}
.menu-player-info .player-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.menu-player-info .player-name {
  font-size: 32px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 4px 8px rgba(0,0,0,0.8);
  letter-spacing: 2px;
  padding: 15px 30px;
  background: linear-gradient(135deg, rgba(220,20,60,0.8) 0%, rgba(139,0,0,0.8) 100%);
  border-radius: 10px;
  border: 2px solid rgba(255,215,0,0.5);
}
.menu-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.menu-header img {
  max-width: 520px;
  width: 60vw;
  height: auto;
  filter: drop-shadow(0 6px 15px rgba(0,0,0,0.8));
}
.menu-buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  align-items: center;
}
.menu-option {
  padding: 0;
  background: transparent;
  box-shadow: none;
  clip-path: none;
  letter-spacing: 0;
  text-shadow: none;
}
.menu-option img {
  max-width: 320px;
  width: 46vw;
  max-height: 140px;
  height: auto;
  object-fit: contain;
}
.menu-option::before {
  display: none;
}
.menu-option::after {
  display: none;
}
.menu-option:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: none;
}
.menu-option:active {
  transform: translateY(-1px) scale(1.01);
}
.menu-option.back-to-title {
  padding: 25px 50px;
  font-size: 28px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  clip-path: polygon(5% 0, 95% 0, 100% 50%, 95% 100%, 5% 100%, 0 50%);
  letter-spacing: 4px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  background: linear-gradient(135deg, #dc143c 0%, #8b0000 50%, #dc143c 100%);
  background-size: 200% 200%;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.menu-option.back-to-title img {
  max-width: 240px;
  width: 34vw;
  max-height: 80px;
}
.menu-option.back-to-title span {
  position: relative;
  z-index: 2;
}
.menu-option.back-to-title::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.3s;
  clip-path: polygon(5% 0, 95% 0, 100% 50%, 95% 100%, 5% 100%, 0 50%);
  background: linear-gradient(135deg, rgba(255,215,0,0.3) 0%, transparent 50%, rgba(255,215,0,0.3) 100%);
}
.menu-option.back-to-title::after {
  content: '';
  position: absolute;
  inset: -3px;
  background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
  clip-path: polygon(5% 0, 95% 0, 100% 50%, 95% 100%, 5% 100%, 0 50%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
}
.menu-option.back-to-title:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 12px 35px rgba(220,20,60,0.5);
  background-position: 100% 50%;
}
.menu-option.back-to-title:hover::before {
  opacity: 1;
}
.menu-option.back-to-title:hover::after {
  opacity: 1;
  animation: border-glow 1.5s ease-in-out infinite;
}
.menu-option.back-to-title:active {
  transform: translateY(-2px) scale(1.02);
}
.menu-option.back-to-title.back-to-title {
  background: linear-gradient(135deg, #ffd700 0%, #ffa500 50%, #ffd700 100%);
  color: #333;
}
.menu-option.back-to-title.back-to-title::before {
  background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, transparent 50%, rgba(255,255,255,0.4) 100%);
}
@media (max-width: 900px) {
  .menu-content {
    flex-direction: column;
    gap: 40px;
    padding: 30px 20px;
  }
  .menu-player-info {
    padding: 25px;
  }
  .menu-player-info .player-avatar {
    width: 200px;
    height: 200px;
    border-width: 4px;
  }
  .menu-player-info .player-name {
    font-size: 28px;
    padding: 12px 25px;
  }
  .menu-header {
    font-size: 40px;
    letter-spacing: 6px;
  }
  .menu-option {
    font-size: 24px;
    padding: 20px 40px;
  }
}
@media (max-width: 600px) {
  .menu-content {
    flex-direction: column;
    gap: 30px;
    padding: 20px 15px;
    max-width: 400px;
  }
  .menu-player-info {
    padding: 15px;
  }
  .menu-player-info .player-avatar {
    width: 120px;
    height: 120px;
    border-width: 3px;
  }
  .menu-player-info .player-name {
    font-size: 20px;
    padding: 8px 15px;
  }
  .menu-header {
    font-size: 36px;
    letter-spacing: 4px;
  }
  .menu-option {
    font-size: 20px;
    padding: 18px 35px;
    gap: 20px;
  }
}
@-moz-keyframes border-glow {
  0%, 100% {
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(255,215,0,0.8));
  }
  50% {
    opacity: 0.7;
    filter: drop-shadow(0 0 20px #ffd700);
  }
}
@-webkit-keyframes border-glow {
  0%, 100% {
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(255,215,0,0.8));
  }
  50% {
    opacity: 0.7;
    filter: drop-shadow(0 0 20px #ffd700);
  }
}
@-o-keyframes border-glow {
  0%, 100% {
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(255,215,0,0.8));
  }
  50% {
    opacity: 0.7;
    filter: drop-shadow(0 0 20px #ffd700);
  }
}
@keyframes border-glow {
  0%, 100% {
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(255,215,0,0.8));
  }
  50% {
    opacity: 0.7;
    filter: drop-shadow(0 0 20px #ffd700);
  }
}
@-moz-keyframes menu-bg-diagonal-move {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(3%, -3%);
  }
  50% {
    transform: translate(0, -5%);
  }
  75% {
    transform: translate(-3%, -3%);
  }
  100% {
    transform: translate(0, 0);
  }
}
@-webkit-keyframes menu-bg-diagonal-move {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(3%, -3%);
  }
  50% {
    transform: translate(0, -5%);
  }
  75% {
    transform: translate(-3%, -3%);
  }
  100% {
    transform: translate(0, 0);
  }
}
@-o-keyframes menu-bg-diagonal-move {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(3%, -3%);
  }
  50% {
    transform: translate(0, -5%);
  }
  75% {
    transform: translate(-3%, -3%);
  }
  100% {
    transform: translate(0, 0);
  }
}
@keyframes menu-bg-diagonal-move {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(3%, -3%);
  }
  50% {
    transform: translate(0, -5%);
  }
  75% {
    transform: translate(-3%, -3%);
  }
  100% {
    transform: translate(0, 0);
  }
}
.subscreen-screen {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: block;
  --subscreen-card-width: 48vw;
  --subscreen-card-height: 70vh;
  --subscreen-card-font: clamp(14px, 1.1vw, 22px);
}
.subscreen-screen.hide {
  display: none;
}
.subscreen-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 900;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.subscreen-bg.profile-bg {
  background-image: url("../img/game_menu/game_menu_profile_assets/profile_bg.webp");
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  animation: menu-bg-diagonal-move 20s ease-in-out infinite;
}
.subscreen-bg.profile-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  pointer-events: none;
}
.subscreen-bg.ranking-bg {
  background-image: url("../img/game_menu/game_menu_assets/menu_bg.webp");
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  animation: menu-bg-diagonal-move 20s ease-in-out infinite;
}
.subscreen-bg.howto-bg {
  background-image: url("../img/game_menu/game_menu_how_to_use_assets/how_to_use_bg.webp");
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  animation: menu-bg-diagonal-move 20s ease-in-out infinite;
}
.subscreen-bg.howto-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  pointer-events: none;
}
.subscreen-bg.settings-bg {
  background-image: url("../img/game_menu/game_menu_assets/menu_bg.webp");
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  animation: menu-bg-diagonal-move 20s ease-in-out infinite;
}
.subscreen-bg.settings-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  pointer-events: none;
}
.subscreen-content {
  position: fixed;
  inset: 0;
  z-index: 910;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 40px;
}
.subscreen-content.hide {
  display: none;
}
.subscreen-title {
  width: 30vw;
  height: auto;
  margin-bottom: 20px;
}
.subscreen-back {
  margin-top: auto;
  margin-bottom: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s;
}
.subscreen-back img {
  height: 56px;
  width: auto;
  display: block;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.4));
  transition: all 0.3s;
}
.subscreen-back:hover {
  transform: translateY(-5px) scale(1.05);
}
.subscreen-back:hover img {
  filter: drop-shadow(0 12px 30px rgba(0,0,0,0.6)) brightness(1.1);
}
.subscreen-back:active {
  transform: translateY(-2px) scale(1.02);
}
.corner-midashi {
  position: fixed;
  top: 24px;
  left: 0;
  z-index: 920;
  width: 30vw;
  height: auto;
  filter: drop-shadow(0 6px 15px rgba(0,0,0,0.8));
}
.profile-content {
  padding-top: 110px;
}
.profile-card {
  font-size: var(--subscreen-card-font);
  line-height: 1.35;
  background: rgba(245,245,245,0.96);
  border: 3px solid #40c4b7;
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.25);
  width: var(--subscreen-card-width);
  height: var(--subscreen-card-height);
  padding: 2px 22px 18px 22px;
  overflow: auto;
}
.profile-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px 4px;
}
.profile-label {
  color: #40c4b7;
  font-weight: 800;
}
.profile-pill {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 999px;
  padding: 7px 14px;
  font-weight: 700;
  color: #333;
}
.profile-avatar-block {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 0 20px;
  margin-bottom: 8px;
}
.profile-avatar-wrapper {
  width: 50%;
}
.profile-avatar-block .profile-avatar-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
.profile-avatar-change-btn {
  position: absolute;
  bottom: 20px;
  right: 4px;
}
.profile-avatar-change-btn img {
  height: 36px;
}
.profile-change {
  -webkit-appearance: none;
  appearance: none;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.profile-change img {
  height: 40px;
  width: auto;
}
.profile-change-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: #40c4b7;
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.02em;
  line-height: 1;
  box-shadow: 0 3px 0 rgba(0,0,0,0.12);
  transition: transform 80ms ease, filter 120ms ease;
}
.profile-change-text:active {
  transform: translateY(1px);
  filter: brightness(0.98);
}
.profile-change-text-label {
  display: inline-flex;
  align-items: center;
}
.profile-change-text-label:after {
  content: '→';
  margin-left: 8px;
}
.profile-divider {
  border-top: 1px solid rgba(0,0,0,0.15);
  margin: 2px 0;
}
.profile-rank {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  font-weight: 800;
  color: #333;
  font-size: 15px;
}
.profile-ranking-error {
  color: #b00020;
  font-weight: 800;
  font-size: 0.85em;
}
.profile-ranking-error-details summary {
  cursor: pointer;
  color: rgba(0,0,0,0.7);
  font-weight: 800;
  font-size: 0.85em;
}
.profile-ranking-error-details pre {
  margin: 8px 0 0;
  padding: 8px 10px;
  background: rgba(0,0,0,0.06);
  border-radius: 10px;
  max-height: 140px;
  overflow: auto;
  white-space: pre-wrap;
  font-size: 0.78em;
}
.profile-rank-suffix {
  margin-left: 2px;
}
.profile-row-spacer {
  width: 1px;
  height: 1px;
}
.profile-ranking-history-content {
  padding-top: 110px;
}
.profile-ranking-history-card {
  font-size: var(--subscreen-card-font);
  line-height: 1.35;
  background: rgba(245,245,245,0.96);
  border: 3px solid #40c4b7;
  border-radius: 18px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.25);
  width: var(--subscreen-card-width);
  height: var(--subscreen-card-height);
  padding: 16px 18px 12px 18px;
  overflow: auto;
  --prh-content-width: min(100%, clamp(340px, 50%, 560px));
}
.profile-ranking-history-title {
  width: var(--prh-content-width);
  margin: 0 auto 10px;
  font-size: 1.05em;
  font-weight: 900;
  color: #333;
  text-align: left;
}
.profile-ranking-history-error {
  color: #b00020;
  font-weight: 900;
  width: var(--prh-content-width);
  margin: 8px auto 0;
}
.profile-ranking-history-error-details {
  width: var(--prh-content-width);
  margin: 0 auto;
}
.profile-ranking-history-error-details summary {
  cursor: pointer;
  color: rgba(0,0,0,0.7);
  font-weight: 800;
  font-size: 0.9em;
}
.profile-ranking-history-error-details pre {
  margin: 8px 0 0;
  padding: 8px 10px;
  background: rgba(0,0,0,0.06);
  border-radius: 10px;
  max-height: 160px;
  overflow: auto;
  white-space: pre-wrap;
  font-size: 0.78em;
}
.profile-ranking-history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 0 6px;
  width: var(--prh-content-width);
  margin: 0 auto;
}
.prh-row {
  display: grid;
  grid-template-columns: 96px 1fr 96px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.96);
  box-shadow: 0 10px 26px rgba(0,0,0,0.1);
  width: 100%;
}
.prh-row:nth-child(even) {
  background: rgba(240,255,253,0.96);
}
.prh-cell {
  font-weight: 900;
  color: #333;
}
.prh-cell.is-muted {
  color: rgba(0,0,0,0.45);
  font-weight: 800;
}
.prh-ym {
  color: #1b6b63;
}
.prh-rank {
  text-align: center;
}
.prh-score {
  text-align: right;
}
.profile-ranking-history-more {
  appearance: none;
  border: 2px solid rgba(64,196,183,0.65);
  background: rgba(64,196,183,0.14);
  color: #1b6b63;
  font-weight: 900;
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0,0,0,0.18);
  margin: 8px auto 2px;
  display: block;
}
.profile-section {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: start;
  gap: 14px;
  padding: 12px 4px;
}
.profile-section-label {
  color: #40c4b7;
  font-weight: 900;
}
.profile-metrics {
  list-style: none;
  margin: 0;
  padding: 0;
  color: #333;
  font-weight: 700;
}
.profile-metrics li {
  margin: 2px 0;
}
@media (max-width: 900px) {
  .profile-row {
    grid-template-columns: 96px 1fr auto;
  }
  .profile-section {
    grid-template-columns: 96px 1fr;
  }
}
@media (max-width: 600px) {
  .subscreen-screen {
    --subscreen-card-width: 86vw;
  }
  .profile-card {
    padding: 14px 14px;
  }
}
.menu-ranking-content {
  padding-top: clamp(90px, 13vw, 170px);
}
.menu-ranking-body {
  background: transparent;
  border-radius: 0;
  padding: 0;
  width: 92vw;
  max-height: 66vh;
  overflow: auto;
}
.menu-ranking-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 14px;
  margin: 8px auto 12px;
  width: fit-content;
  max-width: 92vw;
  background: rgba(255,255,255,0.96);
  border: 2px solid #40c4b7;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}
.menu-ranking-filter-label {
  color: #40c4b7;
  font-weight: 900;
  text-shadow: none;
}
#menu-ranking-ym {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: none;
  background-color: #ff2fb4;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2010%206%22%3E%3Cpath%20fill%3D%22white%22%20d%3D%22M0%200l5%206%205-6z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
  color: #fff;
  font-weight: 900;
  padding: 8px 14px;
  padding-right: 38px;
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}
#menu-ranking-ym:focus-visible {
  box-shadow: 0 0 0 3px rgba(64,196,183,0.35), 0 6px 18px rgba(0,0,0,0.18);
}
.menu-ranking-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 8px 0 20px;
}
.menu-ranking-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 3px solid #ff2fb4;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}
.menu-ranking-card:nth-child(even) {
  background: rgba(255,230,244,0.9);
}
.menu-ranking-rank {
  display: flex;
  align-items: center;
  justify-content: center;
}
.rank-badge {
  position: relative;
  width: 72px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #111;
}
.rank-badge::before {
  content: '';
  position: absolute;
  inset: 0;
  background: transparent;
  border: none;
}
.rank-badge::after {
  content: '';
  position: absolute;
  opacity: 0;
}
.rank-badge .rank-num {
  position: relative;
  font-size: 22px;
  line-height: 1;
}
.rank-badge.rank-1::before,
.rank-badge.rank-2::before,
.rank-badge.rank-3::before {
  border-radius: 0;
  border: 3px solid #0b0b22;
  clip-path: polygon(8% 92%, 8% 44%, 18% 44%, 25% 10%, 36% 44%, 50% 4%, 64% 44%, 75% 10%, 82% 44%, 92% 44%, 92% 92%, 8% 92%);
  box-shadow: 0 6px 14px rgba(0,0,0,0.18);
}
.rank-badge.rank-1::before {
  background: linear-gradient(180deg, #fff1a0 0%, #ffb400 100%);
}
.rank-badge.rank-2::before {
  background: linear-gradient(180deg, #f1f4fa 0%, #aab6c8 100%);
}
.rank-badge.rank-3::before {
  background: linear-gradient(180deg, #ffcaa0 0%, #ff7a00 100%);
}
.rank-badge.rank-1::after,
.rank-badge.rank-2::after,
.rank-badge.rank-3::after {
  content: none;
}
.rank-badge.rank-1 .rank-num,
.rank-badge.rank-2 .rank-num,
.rank-badge.rank-3 .rank-num {
  transform: translateY(6px);
  color: #0b0b22;
}
.rank-badge:not(.rank-1):not(.rank-2):not(.rank-3)::before {
  left: 18%;
  right: 18%;
  top: 40%;
  bottom: 40%;
  border-radius: 999px;
  background: rgba(200,200,200,0.55);
  border: none;
}
.menu-ranking-cols {
  display: grid;
  grid-template-columns: 1.5fr 0.75fr 0.75fr;
  gap: 10px;
}
.menu-ranking-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.menu-ranking-label {
  font-size: 12px;
  color: rgba(0,0,0,0.45);
  font-weight: 800;
}
.menu-ranking-value {
  font-size: 28px;
  font-weight: 900;
  color: #0b0b22;
}
.menu-ranking-name {
  font-size: 22px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 10px;
}
.menu-ranking-col {
  min-width: 0;
}
.menu-ranking-name2 {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.menu-ranking-name-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.1;
  min-width: 0;
}
.menu-ranking-name-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.menu-ranking-avatar {
  width: 72px;
  height: 72px;
  border-radius: 11px;
  object-fit: cover;
  display: block;
  flex: 0 0 auto;
}
@media (max-width: 900px) {
  .menu-ranking-card {
    grid-template-columns: 90px 1fr;
    padding: 14px 14px;
  }
  .menu-ranking-cols {
    grid-template-columns: 1fr;
  }
  .menu-ranking-value {
    font-size: 24px;
  }
  .menu-ranking-name {
    font-size: 20px;
  }
}
.menu-ranking-table {
  width: 100%;
  border-collapse: collapse;
}
.menu-ranking-table th,
.menu-ranking-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
.menu-ranking-table th {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.98);
}
.menu-ranking-error {
  color: #b00020;
  font-weight: 700;
  margin-bottom: 10px;
}
.menu-ranking-empty {
  color: rgba(0,0,0,0.65);
  font-weight: 700;
  margin-bottom: 10px;
}
.menu-ranking-dummy-note {
  color: rgba(0,0,0,0.55);
  font-weight: 700;
  margin-bottom: 10px;
}
.menu-ranking-error-details {
  margin-bottom: 10px;
}
.menu-ranking-error-details summary {
  cursor: pointer;
  color: rgba(0,0,0,0.7);
  font-weight: 700;
}
.menu-ranking-error-details pre {
  margin: 8px 0 0;
  padding: 10px 12px;
  background: rgba(0,0,0,0.06);
  border-radius: 10px;
  max-height: 160px;
  overflow: auto;
  white-space: pre-wrap;
  font-size: 12px;
}
.howto-content {
  padding-top: 110px;
}
.howto-body {
  font-size: var(--subscreen-card-font);
  line-height: 1.35;
  width: var(--subscreen-card-width);
  height: var(--subscreen-card-height);
  display: grid;
  grid-template-columns: 150px 1fr;
  grid-template-rows: 1fr;
  background: rgba(255,255,255,0.96);
  border: 3px solid #40c4b7;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(0,0,0,0.25);
  container-type: inline-size;
}
.howto-tabs {
  min-height: 0;
}
.howto-panels {
  min-height: 0;
  min-width: 0;
  height: 100%;
  overflow: auto;
}
.howto-panel {
  height: auto;
  overflow: visible;
}
.howto-tabs {
  background: #40c4b7;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding: 22px 14px;
  color: #fff;
}
.howto-tab {
  -webkit-appearance: none;
  appearance: none;
  border: none;
  background: transparent;
  color: #fff;
  font-weight: 500;
  font-size: 1.05em;
  text-align: left;
  padding: 10px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.howto-tab.is-active {
  background: rgba(0,0,0,0.18);
}
.howto-tab:hover {
  background: rgba(0,0,0,0.12);
}
.howto-panel {
  padding: 18px 22px;
  color: #0b0b22;
  font-weight: 400;
}
.howto-panel dl {
  display: grid;
  grid-template-columns: 12em 1fr;
  gap: 0.45em 1.2em;
}
.howto-panel dl dt {
  font-weight: 500;
  color: #40c4b7;
}
.howto-panel dl dt::after {
  content: '：';
  color: rgba(0,0,0,0.35);
}
.howto-panel dl dt.no-colon::after {
  content: '';
}
.howto-panel dl dt.no-wrap {
  white-space: nowrap;
}
.howto-panel dl dd {
  margin: 0;
}
.howto-panel ul {
  margin: 6px 0 12px 20px;
}
.howto-panel h4 {
  margin: 10px 0 6px;
  font-size: 1.05em;
  font-weight: 500;
  color: #ff2fb4;
}
.howto-panel .howto-license {
  margin: 14px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.08);
  text-align: right;
  font-size: 0.85em;
  color: rgba(0,0,0,0.55);
}
.howto-panel .howto-license-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.howto-panel .howto-license-link:hover {
  color: rgba(0,0,0,0.75);
}
.yaku-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.yaku-columns h4 {
  margin: 8px 0;
}
@media (max-width: 900px) {
  .howto-body {
    grid-template-columns: 140px 1fr;
  }
  .howto-panel dl {
    grid-template-columns: 11em 1fr;
  }
}
@media (max-width: 600px) {
  .howto-body {
    grid-template-columns: 120px 1fr;
  }
  .howto-panel {
    padding: 16px 14px;
  }
}
.settings-content {
  padding-top: 110px;
  padding-bottom: 120px;
}
.settings-card {
  font-size: var(--subscreen-card-font);
  line-height: 1.35;
  width: var(--subscreen-card-width);
  height: var(--subscreen-card-height);
  display: grid;
  grid-template-columns: 170px 1fr;
  background: rgba(255,255,255,0.96);
  border: 3px solid #40c4b7;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(0,0,0,0.25);
}
.settings-tabs {
  background: #40c4b7;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding: 22px 14px;
  color: #fff;
}
.settings-tab {
  -webkit-appearance: none;
  appearance: none;
  border: none;
  background: transparent;
  color: #fff;
  font-weight: 500;
  font-size: 1.05em;
  padding: 10px 6px;
  border-radius: 999px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
}
.settings-tab.is-active {
  background: rgba(0,0,0,0.18);
}
.settings-tab:hover {
  background: rgba(0,0,0,0.12);
}
.settings-panel {
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 0;
  container-type: inline-size;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}
.settings-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #0b0b22;
  font-weight: 400;
}
.settings-contact-title {
  margin: 0 0 4px;
  font-size: 1.15em;
  font-weight: 400;
  color: #ff2fb4;
}
.settings-contact-text {
  margin: 0;
  color: #333;
  font-weight: 400;
}
.settings-contact-actions {
  margin: 6px 0 0;
}
.settings-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: #40c4b7;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(0,0,0,0.18);
  transition: transform 80ms ease, filter 120ms ease;
}
.settings-contact-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}
.settings-contact-btn:active {
  transform: translateY(0px);
  filter: brightness(0.98);
}
.settings-contact-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(64,196,183,0.35), 0 10px 26px rgba(0,0,0,0.18);
}
.settings-contact-note {
  margin: 10px 0 0;
  font-size: 0.9em;
  color: rgba(0,0,0,0.65);
  font-weight: 400;
}
.settings-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0,0,0,0.12);
}
.settings-row.has-preview {
  grid-template-columns: 120px 1fr 46px;
}
.settings-sound-preview {
  appearance: none;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  cursor: pointer;
  color: #40c4b7;
  background: rgba(64,196,183,0.14);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease, color 0.15s ease;
  padding: 0;
  line-height: 0;
}
.settings-sound-preview svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex: 0 0 auto;
}
.settings-sound-preview:hover {
  transform: translateY(-2px) scale(1.05);
  filter: brightness(1.05);
}
.settings-sound-preview.is-playing {
  color: #ff2fb4;
  background: rgba(255,47,180,0.14);
}
.settings-label {
  color: #40c4b7;
  font-weight: 500;
}
.settings-label-sub {
  font-size: 0.85em;
  white-space: nowrap;
}
.settings-label-nowrap {
  white-space: nowrap;
}
.settings-row input[type="range"] {
  width: 36cqw;
  accent-color: #40c4b7;
}
.settings-countstop {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.9em;
  color: #333;
}
.settings-countstop-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}
.settings-countstop-item input[type="radio"] {
  accent-color: #40c4b7;
}
.settings-reset-default {
  align-self: flex-start;
  margin-top: 10px;
  background: transparent;
  border: none;
  padding: 0;
  color: #1e9e95;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  transition: color 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
}
.settings-reset-default:hover {
  color: #ff2fb4;
  opacity: 0.95;
  transform: translateY(-1px);
}
.settings-reset-default:active {
  transform: translateY(0px);
  opacity: 0.85;
}
.settings-bottom-actions {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 930;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
}
.settings-bottom-actions button {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s;
}
.settings-bottom-actions img {
  height: 56px;
  width: auto;
  display: block;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.4));
  transition: all 0.3s;
}
.settings-bottom-actions button:hover {
  transform: translateY(-5px) scale(1.05);
}
.settings-bottom-actions button:hover img {
  filter: drop-shadow(0 12px 30px rgba(0,0,0,0.6)) brightness(1.1);
}
.settings-bottom-actions button:active {
  transform: translateY(-2px) scale(1.02);
}
@media (max-width: 900px) {
  .settings-card {
    grid-template-columns: 140px 1fr;
  }
}
@media (max-width: 600px) {
  .settings-card {
    grid-template-columns: 120px 1fr;
  }
  .settings-panel {
    padding: 16px 14px;
  }
}
#nickname-screen,
#third-streamcode-screen {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 900;
}
#nickname-screen.hide,
#third-streamcode-screen.hide {
  display: none;
}
.nickname-screen-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../img/game_character_select-assets/title_bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}
.nickname-screen-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 1;
}
.nickname-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: 100%;
  max-width: 600px;
  padding: 40px 20px;
}
.nickname-prompt {
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  text-align: center;
  margin: 0 0 10px 0;
  text-shadow: 0 4px 8px rgba(0,0,0,0.5);
  letter-spacing: 1px;
}
.nickname-note {
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  text-align: center;
  margin: 0 0 10px 0;
  text-shadow: 0 4px 8px rgba(0,0,0,0.5);
  letter-spacing: 1px;
}
#nickname-form,
#third-streamcode-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: 100%;
}
#nickname-input,
#third-streamcode-input {
  width: 100%;
  max-width: 500px;
  padding: 20px 30px;
  font-size: 20px;
  border: none;
  border-radius: 50px;
  background: #fff;
  color: #333;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  transition: all 0.3s;
  outline: none;
}
#nickname-input::placeholder,
#third-streamcode-input::placeholder {
  color: #aaa;
}
#nickname-input:focus,
#third-streamcode-input:focus {
  box-shadow: 0 8px 30px rgba(64,224,208,0.5);
  transform: translateY(-2px);
}
.third-env-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  font-weight: bold;
  text-align: center;
  text-shadow: 0 4px 8px rgba(0,0,0,0.5);
}
.third-env-label {
  font-size: 14px;
}
#third-env {
  border-radius: 8px;
  padding: 6px 10px;
  border: none;
}
#third-streamcode-submit[disabled] {
  cursor: default;
}
#third-streamcode-submit[disabled] img {
  filter: grayscale(1) brightness(0.8) drop-shadow(0 6px 15px rgba(0,0,0,0.35));
  opacity: 0.75;
}
#third-streamcode-submit[disabled]:hover,
#third-streamcode-submit[disabled]:active {
  transform: none;
}
#third-streamcode-submit[disabled]:hover img,
#third-streamcode-submit[disabled]:active img {
  filter: grayscale(1) brightness(0.8) drop-shadow(0 6px 15px rgba(0,0,0,0.35));
  opacity: 0.75;
}
.button-group {
  display: flex;
  gap: 30px;
  justify-content: center;
  align-items: center;
  width: 100%;
}
#nickname-screen .btn-back {
  display: none;
}
#nickname-screen.is-from-profile .btn-back {
  display: inline-block;
}
.btn-back,
.btn-submit {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s;
  position: relative;
}
.btn-back img,
.btn-submit img {
  width: 150px;
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 15px rgba(0,0,0,0.4));
  transition: all 0.3s;
}
.btn-back:hover,
.btn-submit:hover {
  transform: translateY(-5px) scale(1.05);
}
.btn-back:hover img,
.btn-submit:hover img {
  filter: drop-shadow(0 10px 25px rgba(0,0,0,0.6)) brightness(1.1);
}
.btn-back:active,
.btn-submit:active {
  transform: translateY(-2px) scale(1.02);
}
@media (max-width: 900px) {
  .nickname-prompt {
    font-size: 20px;
  }
  .nickname-note {
    font-size: 12px;
  }
  #nickname-input,
  #third-streamcode-input {
    max-width: 400px;
    padding: 16px 25px;
    font-size: 18px;
  }
  .btn-back img,
  .btn-submit img {
    width: 130px;
  }
}
@media (max-width: 600px) {
  .nickname-content {
    padding: 30px 15px;
    gap: 25px;
  }
  .nickname-prompt {
    font-size: 18px;
  }
  .nickname-note {
    font-size: 10px;
  }
  #nickname-input,
  #third-streamcode-input {
    max-width: 300px;
    padding: 14px 20px;
    font-size: 16px;
  }
  .button-group {
    gap: 20px;
  }
  .btn-back img,
  .btn-submit img {
    width: 110px;
  }
}
#start-screen,
#self-character-screen {
  display: block;
  min-height: 100vh;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 900;
  overflow-x: auto;
  overflow-y: auto;
}
#start-screen.hide,
#self-character-screen.hide {
  display: none;
}
#start-screen .hide,
#self-character-screen .hide {
  display: none !important;
}
.character-select-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../img/game_character_select-assets/title_bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}
.character-select-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  z-index: 1;
}
.character-select-screen {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}
.character-select-content {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 400px 1fr;
  grid-template-rows: 1fr auto;
  gap: 0 60px;
  min-width: 1000px;
  width: auto;
  padding: 0 50px 0px 0;
  align-items: stretch;
  min-height: 100vh;
  margin: 0 auto;
  left: var(--cs-offset-x, 0px);
  transform: scale(var(--cs-scale, 1));
  transform-origin: top left;
  will-change: transform;
}
.left-panel-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--cs-left-bg-width-px, 400px);
  height: 100%;
  background: #40c4b7;
  z-index: 2;
  pointer-events: none;
  transform: none;
}
.left-panel-bg::before {
  content: '';
  position: absolute;
  top: 0;
  right: -100px;
  width: 0;
  border-left: 100px solid #40c4b7;
  border-top: 100vh solid transparent;
  z-index: 1;
  pointer-events: none;
}
.left-panel-bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: -224px;
  width: 0;
  height: 0;
  border-bottom: 50vh solid #2a8a80;
  border-right: 175px solid transparent;
  z-index: 0;
  pointer-events: none;
}
.left-panel {
  grid-column: 1;
  grid-row: 1/-1;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 3;
  background: transparent;
  overflow: visible;
  height: 100vh;
  align-self: start;
}
.left-panel::before {
  content: none;
}
.left-panel::after {
  content: none;
}
.left-panel .panel-header {
  position: relative;
  margin-bottom: 0;
  z-index: 10;
}
.left-panel .panel-header img {
  max-width: 380px;
  height: auto;
  filter: drop-shadow(0 5px 15px rgba(0,0,0,0.3));
}
.left-panel .opponent-selected-count {
  margin: 10px 0 0;
  padding: 0 25px;
  color: rgba(255,255,255,0.95);
  font-size: 18px;
  font-weight: 800;
  text-shadow: 0 2px 4px rgba(0,0,0,0.25);
  letter-spacing: 0.5px;
}
.left-panel .preview-row {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px 40px;
}
.left-panel .character-preview {
  position: relative;
  background: transparent;
  padding: 0;
  margin: 0;
  z-index: 1;
  width: 100%;
}
.left-panel .character-preview img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 25px rgba(0,0,0,0.4));
  object-fit: contain;
}
.right-panel {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 35px;
  align-items: center;
  width: 100%;
  padding-top: 40px;
  position: relative;
  z-index: 2;
}
.character-select-screen .character-info {
  background: transparent;
  padding: 0;
  display: none;
  flex-direction: column;
  gap: 0;
  position: absolute;
  z-index: 60;
  top: 120px;
  left: 430px;
  width: 420px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  pointer-events: auto;
}
.character-select-screen .character-info.is-open {
  display: flex;
}
.character-select-screen .character-info .character-name {
  font-size: 34px;
  font-weight: 900;
  color: #fff;
  margin: 0;
  padding: 18px 50px 18px 25px;
  background: #e91e8c;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  letter-spacing: 1px;
  text-align: left;
  position: relative;
}
.character-select-screen .character-info .character-name .character-info-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.18);
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s ease, background 0.15s ease;
}
.character-select-screen .character-info .character-name .character-info-close::before,
.character-select-screen .character-info .character-name .character-info-close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background: rgba(255,255,255,0.95);
  transform-origin: center;
}
.character-select-screen .character-info .character-name .character-info-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.character-select-screen .character-info .character-name .character-info-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.character-select-screen .character-info .character-name .character-info-close:hover {
  transform: scale(1.06);
  background: rgba(0,0,0,0.24);
}
.character-select-screen .character-info .character-name .character-info-close:active {
  transform: scale(0.96);
}
.character-select-screen .character-info .character-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  padding: 20px 25px;
  position: relative;
  min-height: 420px;
  max-height: 520px;
  overflow-y: auto;
}
.character-select-screen .character-info .character-details .character-age {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  padding: 0;
  margin: 0;
  text-align: left;
}
.character-select-screen .character-info .character-details .character-description {
  font-size: 17px;
  color: #666;
  line-height: 1.7;
  margin: 0;
  text-align: left;
  white-space: pre-line;
}
.character-select-screen .character-info .start-button {
  align-self: stretch;
  margin: 0;
  background: #fff;
  border: none;
  padding: 14px 25px 20px;
}
.character-select-screen .character-info .start-button img {
  max-width: 320px;
}
.character-select-screen .info-bubble {
  display: flex;
  justify-content: flex-end;
  align-self: flex-end;
  margin-bottom: 10px;
  width: 100%;
  max-width: 800px;
}
.character-select-screen .info-bubble img {
  max-width: 280px;
  height: auto;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.4));
}
.character-select-screen .character-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  width: 100%;
  max-width: 800px;
}
.character-select-screen .character-card {
  position: relative;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}
.character-select-screen .character-card:nth-child(n+5):nth-child(-n+8) {
  transform: translateX(30px);
}
.character-select-screen .character-card input {
  display: none;
}
.character-select-screen .character-card label {
  display: block;
  cursor: pointer;
  position: relative;
}
.character-select-screen .character-card label img {
  width: 100%;
  height: auto;
  display: block;
  transition: all 0.3s;
}
.character-select-screen .character-card:hover label img {
  transform: translateY(-5px) scale(1.05);
  filter: brightness(1.1);
}
.character-select-screen .character-card.selected label img {
  filter: drop-shadow(0 0 15px rgba(255,215,0,0.8)) brightness(1.1);
  transform: scale(1.05);
}
.character-select-screen .character-card.is-self {
  cursor: not-allowed;
  opacity: 0.45;
  filter: grayscale(1);
  pointer-events: none;
}
.character-select-screen .character-card .selected-order-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid #45cfc4;
  box-shadow: 0 6px 14px rgba(0,0,0,0.18);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 6;
}
.character-select-screen .character-card .selected-order-badge .selected-order-number {
  font-size: 18px;
  font-weight: 900;
  color: #1e9e95;
  text-shadow: 0 1px 0 rgba(255,255,255,0.65);
  line-height: 1;
}
.character-select-screen .character-card .selected-order-badge .selected-order-remove {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: none;
  background: #e91e8c;
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.character-select-screen .character-card .selected-order-badge .selected-order-remove::before,
.character-select-screen .character-card .selected-order-badge .selected-order-remove::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 2px;
  background: #fff;
  transform-origin: center;
}
.character-select-screen .character-card .selected-order-badge .selected-order-remove::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.character-select-screen .character-card .selected-order-badge .selected-order-remove::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.character-select-screen .character-card .selected-order-badge .selected-order-remove:hover {
  transform: scale(1.06);
  filter: brightness(1.08);
}
.character-select-screen .character-card .selected-order-badge .selected-order-remove:active {
  transform: scale(0.96);
}
.button-group-character {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  padding: 10px 0 100px 0;
  gap: 15px;
}
#start-screen .button-group-character {
  padding-bottom: 50px;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 18px;
}
#self-character-screen .self-character-back-to-profile {
  display: none;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  margin-top: 16px;
  align-self: center;
  transition: all 0.3s;
}
#self-character-screen .self-character-back-to-profile img {
  height: 56px;
  width: auto;
  display: block;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.4));
  transition: all 0.3s;
}
#self-character-screen .self-character-back-to-profile:hover {
  transform: translateY(-5px) scale(1.05);
}
#self-character-screen .self-character-back-to-profile:hover img {
  filter: drop-shadow(0 12px 30px rgba(0,0,0,0.6)) brightness(1.1);
}
#self-character-screen .self-character-back-to-profile:active {
  transform: translateY(-2px) scale(1.02);
}
#self-character-screen.is-from-profile .info-bubble {
  visibility: hidden;
  pointer-events: none;
}
#self-character-screen.is-from-profile .self-character-back-to-profile {
  display: block;
}
.start-button {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s;
  position: relative;
}
.start-button img {
  width: 100%;
  max-width: 400px;
  height: auto;
  filter: drop-shadow(0 12px 30px rgba(220,20,60,0.6));
  transition: all 0.3s;
  animation: button-float 3s ease-in-out infinite;
}
.start-button:hover img {
  transform: translateY(-8px) scale(1.08);
  filter: drop-shadow(0 15px 45px rgba(220,20,60,0.8)) brightness(1.15);
}
.start-button:active img {
  transform: translateY(-3px) scale(1.03);
}
.start-button:disabled {
  cursor: not-allowed;
}
.start-button:disabled img {
  filter: grayscale(0.9) brightness(0.7) drop-shadow(0 10px 20px rgba(0,0,0,0.35));
  animation: none;
  transform: none;
}
.start-button:disabled:hover img {
  transform: none;
}
@-moz-keyframes button-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
@-webkit-keyframes button-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
@-o-keyframes button-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
@keyframes button-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
body.title {
  color: #333;
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', sans-serif;
  position: relative;
  overflow: hidden;
}
body.title::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background-image: url("../img/game_character_select-assets/title_bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
  animation: bg-diagonal-move 20s ease-in-out infinite;
}
body.title::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  z-index: -1;
  pointer-events: none;
}
#title {
  display: none !important;
  margin: 40px auto;
  width: 640px;
  padding: 4px;
  border-radius: 5px;
  background: #fff;
  color: #000;
  text-align: center;
  font-family: Century, serif;
}
#title h1 {
  margin: 0px;
  height: 150px;
}
#title h1 img {
  width: 600px;
}
#title .version {
  display: none;
  font-family: Georgia, serif;
  font-size: 24px;
}
#title .loading {
  display: none !important;
  margin: 8px auto;
  color: #666;
  font-family: Verdana, sans-serif;
  font-size: 16px;
  animation: blink-text 2s infinite;
}
#title .start {
  margin: 8px auto;
  font-family: Century, serif;
  width: 120px;
  padding: 4px;
  border-radius: 4px;
  font-size: 16px;
  color: #fff;
  background: #00f;
  cursor: pointer;
}
#title .start:hover,
#title .start:focus {
  background: #ccc;
  outline: none;
}
#title .login {
  margin: 8px auto;
}
#title .login form {
  margin: 0.5em;
}
#title .login input[type="submit"] {
  cursor: pointer;
}
#title .login form.local input[name="name"] {
  width: 8em;
}
#title .login form.local input[type="submit"] {
  border: none;
  color: #fff;
  background: #00f;
}
#title .login img {
  width: 1.2em;
  vertical-align: middle;
}
#title .login form:not(.local) input[type="submit"] {
  width: 120px;
  border: none;
  background: none;
  text-align: left;
  padding: 0;
}
#start-screen {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 200;
  background: repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,0.05) 35px, rgba(255,255,255,0.05) 70px), repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(0,0,0,0.03) 35px, rgba(0,0,0,0.03) 70px), linear-gradient(135deg, #a8edea 0%, #fed6e3 50%, #f093fb 100%);
}
#start-screen .start-container {
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(245,245,255,0.95) 100%);
  border: 4px solid #40e0d0;
  border-radius: 30px;
  padding: 50px;
  box-shadow: 0 20px 80px rgba(64,224,208,0.4), 0 10px 30px rgba(255,105,180,0.3), inset 0 -5px 20px rgba(64,224,208,0.1);
  max-width: 800px;
  width: 90%;
  margin: 0 auto;
  position: relative;
}
#start-screen .start-container::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 15px;
  right: 15px;
  bottom: 15px;
  border: 2px solid rgba(255,105,180,0.3);
  border-radius: 25px;
  pointer-events: none;
}
#start-screen .start-container h1 {
  text-align: center;
  margin: 0 0 40px 0;
  font-size: 42px;
  font-weight: bold;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  letter-spacing: 6px;
  animation: gentle-float 3s ease-in-out infinite;
}
#start-screen #player-form .form-group {
  margin-bottom: 35px;
}
#start-screen #player-form .form-group label {
  display: block;
  margin-bottom: 12px;
  font-weight: 700;
  color: #667eea;
  font-size: 16px;
  text-shadow: none;
}
#start-screen #player-form .form-group input[type="text"] {
  width: 100%;
  padding: 14px 18px;
  border: 3px solid #40e0d0;
  border-radius: 15px;
  font-size: 16px;
  background: #fff;
  color: #333;
  transition: all 0.3s;
  box-sizing: border-box;
}
#start-screen #player-form .form-group input[type="text"]:focus {
  outline: none;
  border-color: #ff69b4;
  background: #fffef8;
  box-shadow: 0 0 20px rgba(255,105,180,0.3);
  transform: translateY(-2px);
}
#start-screen #player-form .form-group .avatar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 25px;
  background: linear-gradient(135deg, rgba(64,224,208,0.1) 0%, rgba(255,105,180,0.1) 100%);
  border-radius: 20px;
  border: 3px solid rgba(64,224,208,0.5);
  box-shadow: inset 0 2px 10px rgba(64,224,208,0.1), 0 4px 15px rgba(255,105,180,0.2);
  max-width: 100%;
}
#start-screen #player-form .form-group .avatar-grid .avatar-item {
  position: relative;
  cursor: pointer;
}
#start-screen #player-form .form-group .avatar-grid .avatar-item input[type="radio"] {
  position: absolute;
  opacity: 0;
}
#start-screen #player-form .form-group .avatar-grid .avatar-item .avatar-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px;
  border: 3px solid rgba(64,224,208,0.4);
  border-radius: 20px;
  transition: all 0.3s;
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(245,245,255,0.9) 100%);
  min-height: 150px;
}
#start-screen #player-form .form-group .avatar-grid .avatar-item .avatar-icon img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 15px;
  transition: all 0.3s;
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}
#start-screen #player-form .form-group .avatar-grid .avatar-item .avatar-icon:hover {
  transform: translateY(-8px) scale(1.05);
  border-color: #ff69b4;
  box-shadow: 0 10px 30px rgba(255,105,180,0.4), 0 0 20px rgba(64,224,208,0.3);
  background: linear-gradient(135deg, #fff 0%, #fffaff 100%);
}
#start-screen #player-form .form-group .avatar-grid .avatar-item.selected .avatar-icon {
  border-color: #ff69b4;
  border-width: 4px;
  background: linear-gradient(135deg, #ffe6fa 0%, #e6f0ff 100%);
  box-shadow: 0 0 25px rgba(255,105,180,0.6), 0 10px 35px rgba(64,224,208,0.4), inset 0 0 15px rgba(255,215,0,0.1);
  transform: translateY(-8px) scale(1.08);
}
#start-screen #player-form .form-group .avatar-grid .avatar-item.selected .avatar-icon img {
  border: 3px solid #ff69b4;
  box-shadow: 0 0 15px rgba(255,105,180,0.5), 0 6px 20px rgba(0,0,0,0.2);
}
#start-screen #player-form .form-group .game-mode {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
#start-screen #player-form .form-group .game-mode label {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  border: 3px solid rgba(64,224,208,0.4);
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s;
  background: rgba(255,255,255,0.7);
}
#start-screen #player-form .form-group .game-mode label input[type="radio"] {
  margin-right: 12px;
  width: 22px;
  height: 22px;
  cursor: pointer;
  accent-color: #ff69b4;
}
#start-screen #player-form .form-group .game-mode label span {
  font-size: 16px;
  color: #667eea;
  font-weight: 600;
}
#start-screen #player-form .form-group .game-mode label:hover {
  border-color: #ff69b4;
  background: rgba(255,240,250,0.9);
  box-shadow: 0 4px 15px rgba(255,105,180,0.2);
  transform: translateX(5px);
}
#start-screen #player-form .form-group .game-mode label input[type="radio"]:checked ~ span {
  color: #ff69b4;
  font-weight: 700;
  text-shadow: none;
}
#start-screen #player-form .form-actions {
  display: flex;
  gap: 20px;
  margin-top: 45px;
}
#start-screen #player-form .form-actions button[type="submit"] {
  flex: 1;
  padding: 18px 36px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  background-size: 200% 200%;
  color: #fff;
  border: 3px solid #40e0d0;
  border-radius: 20px;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  box-shadow: 0 8px 25px rgba(102,126,234,0.4), 0 4px 10px rgba(255,105,180,0.3);
  letter-spacing: 4px;
}
#start-screen #player-form .form-actions button[type="submit"]:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 12px 35px rgba(102,126,234,0.5), 0 0 40px rgba(255,105,180,0.4), 0 0 20px rgba(64,224,208,0.3);
  animation: rainbow-glow 2s ease-in-out infinite;
  background-position: 100% 50%;
}
#start-screen #player-form .form-actions button[type="submit"]:active {
  transform: translateY(-2px) scale(1.01);
}
@media (max-width: 600px) {
  #start-screen .start-container {
    padding: 30px 20px;
  }
  #start-screen .start-container h1 {
    font-size: 28px;
  }
  #start-screen .start-container #player-form .form-group .avatar-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@-moz-keyframes gentle-float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}
@-webkit-keyframes gentle-float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}
@-o-keyframes gentle-float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}
@keyframes gentle-float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}
@-moz-keyframes bg-diagonal-move {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(3%, -3%);
  }
  50% {
    transform: translate(0, -5%);
  }
  75% {
    transform: translate(-3%, -3%);
  }
  100% {
    transform: translate(0, 0);
  }
}
@-webkit-keyframes bg-diagonal-move {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(3%, -3%);
  }
  50% {
    transform: translate(0, -5%);
  }
  75% {
    transform: translate(-3%, -3%);
  }
  100% {
    transform: translate(0, 0);
  }
}
@-o-keyframes bg-diagonal-move {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(3%, -3%);
  }
  50% {
    transform: translate(0, -5%);
  }
  75% {
    transform: translate(-3%, -3%);
  }
  100% {
    transform: translate(0, 0);
  }
}
@keyframes bg-diagonal-move {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(3%, -3%);
  }
  50% {
    transform: translate(0, -5%);
  }
  75% {
    transform: translate(-3%, -3%);
  }
  100% {
    transform: translate(0, 0);
  }
}
@-moz-keyframes rainbow-glow {
  0%, 100% {
    box-shadow: 0 12px 35px rgba(102,126,234,0.5), 0 0 40px rgba(255,105,180,0.4);
  }
  50% {
    box-shadow: 0 12px 35px rgba(240,147,251,0.6), 0 0 50px rgba(64,224,208,0.5);
  }
}
@-webkit-keyframes rainbow-glow {
  0%, 100% {
    box-shadow: 0 12px 35px rgba(102,126,234,0.5), 0 0 40px rgba(255,105,180,0.4);
  }
  50% {
    box-shadow: 0 12px 35px rgba(240,147,251,0.6), 0 0 50px rgba(64,224,208,0.5);
  }
}
@-o-keyframes rainbow-glow {
  0%, 100% {
    box-shadow: 0 12px 35px rgba(102,126,234,0.5), 0 0 40px rgba(255,105,180,0.4);
  }
  50% {
    box-shadow: 0 12px 35px rgba(240,147,251,0.6), 0 0 50px rgba(64,224,208,0.5);
  }
}
@keyframes rainbow-glow {
  0%, 100% {
    box-shadow: 0 12px 35px rgba(102,126,234,0.5), 0 0 40px rgba(255,105,180,0.4);
  }
  50% {
    box-shadow: 0 12px 35px rgba(240,147,251,0.6), 0 0 50px rgba(64,224,208,0.5);
  }
}
body.board {
  color: #fff;
  background: url("../img/game_main-assets/bg.webp") no-repeat center center fixed;
  background-size: cover;
  margin: 0;
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
}
body.board::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.1);
  pointer-events: none;
  z-index: 0;
}
.players-display {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none;
  z-index: 450;
  background: transparent !important;
  overflow: visible !important;
}
body.board #board {
  display: block;
}
body.board > .version {
  display: block;
  font-size: 16px;
  font-family: Georgia, serif;
  text-align: right;
  color: rgba(255,255,255,0.7);
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
#space {
  display: none;
}
#board {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  box-sizing: border-box;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  z-index: 1;
}
#board:has(.select-mianzi .mianzi) .game-viewport {
  z-index: 600;
}
#board .game-viewport {
  position: fixed;
  left: 0;
  top: 0;
  width: 1370px;
  height: 770px;
  transform-origin: 0 0;
  will-change: transform, left, top;
}
#board .game-viewport > .board {
  position: absolute;
  left: 285px;
  top: 40px;
  width: 800px;
  user-select: none;
  touch-action: manipulation;
  margin: 0 auto;
}
#board .game-viewport > .board > * {
  position: absolute;
  transform-origin: 0% 0%;
}
#board .game-viewport > .board .score {
  border-radius: 4px;
  background: #111;
  font-family: Georgia, serif;
}
#board .game-viewport > .board .score .juchang {
  float: left;
}
#board .game-viewport > .board .score .juchang .jushu {
  font-family: "HGP行書体", /*"Weibei SC", "YuKyokasho",*/ STKaiti, serif;
  font-size: 32px;
  line-height: 1.2;
}
#board .game-viewport > .board .score .shan {
  float: right;
  text-align: right;
}
#board .game-viewport > .board .score .defen {
  clear: both;
}
#board .game-viewport > .board .score .defen div {
  position: absolute;
}
#board .game-viewport > .board .score .defen div.lunban {
  color: #0ff;
}
#board .game-viewport > .board .score .defen div.main {
  text-align: center;
}
#board .game-viewport > .board .score .defen div.xiajia {
  text-align: right;
}
#board .game-viewport > .board .score .defen div.duimian {
  text-align: center;
}
#board .game-viewport > .board .score .defen div.shangjia {
  text-align: left;
}
#board .game-viewport > .board .timer {
  color: #fff;
  font-size: 16px;
  font-family: Georgia, serif;
  text-align: right;
  text-shadow: 2px 2px 4px #000;
}
#board .game-viewport > .board .player-button {
  z-index: 1;
  text-align: right;
  white-space: nowrap;
  display: flex;
  justify-content: end;
}
#board .game-viewport > .board .player-button .button {
  cursor: pointer;
  display: inline-block;
  text-align: center;
  font-family: Verdana, sans-serif;
  color: #fff;
  background: #000;
  border-radius: 4px;
}
#board .game-viewport > .board .player-button .button:focus {
  background: #999;
  outline: none;
}
#board .game-viewport > .board .select-mianzi {
  z-index: 1200;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}
#board .game-viewport > .board .select-mianzi .mianzi {
  background: #000;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.8;
}
#board .game-viewport > .board .select-mianzi .mianzi:focus {
  outline: none;
  opacity: 1;
}
#board .game-viewport > .board > .player {
  background: #000;
  font-family: Century, serif;
  opacity: 0.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#board .game-viewport > .board > .player.disconnect {
  opacity: 0.1;
}
#board .game-viewport > .board > .player.selectable {
  cursor: pointer;
}
#board .game-viewport > .board > .player.selectable:hover {
  opacity: 1;
}
#board .game-viewport > .board .say {
  font-family: Century, serif;
  color: #fff;
  text-shadow: 3px 3px 6px #333, -3px 3px 6px #333, -3px -3px 6px #333, 3px -3px 6px #333;
  transition: opacity 0.4s ease-out;
}
#board .game-viewport > .board .say.main {
  text-align: center;
}
#board .game-viewport > .board .say.xiajia {
  text-align: left;
}
#board .game-viewport > .board .say.duimian {
  text-align: center;
}
#board .game-viewport > .board .say.shangjia {
  text-align: right;
}
#board .game-viewport > .board .hule-dialog {
  display: flex;
  overflow: auto;
  align-items: center;
  transition: opacity 0.2s ease-in;
}
#board .game-viewport > .board .hule-dialog:focus {
  outline: none;
}
#board .game-viewport > .board .hule-dialog > div {
  margin: auto 0;
}
#board .game-viewport > .board .hule-dialog > div > div {
  display: table;
  background: rgba(0,0,0,0.8);
  margin: auto;
}
#board .game-viewport > .board .hule-dialog > div > div .hule .shan {
  font-family: "HGP行書体", /*"Weibei SC", "YuKyokasho",*/ STKaiti, serif;
}
#board .game-viewport > .board .hule-dialog > div > div .hule .shan img {
  vertical-align: bottom;
}
#board .game-viewport > .board .hule-dialog > div > div .hule .shan.baopai {
  float: left;
}
#board .game-viewport > .board .hule-dialog > div > div .hule .shan.fubaopai {
  float: right;
}
#board .game-viewport > .board .hule-dialog > div > div .hule .shoupai {
  clear: both;
}
#board .game-viewport > .board .hule-dialog > div > div .hule .hupai {
  font-family: "HGP行書体", /*"Weibei SC", "YuKyokasho",*/ STKaiti, serif;
  line-height: 1;
}
#board .game-viewport > .board .hule-dialog > div > div .hule .hupai .fanshu {
  text-align: right;
}
#board .game-viewport > .board .hule-dialog > div > div .hule .hupai .defen {
  text-align: right;
}
#board .game-viewport > .board .hule-dialog > div > div .hule .jicun {
  text-align: center;
  font-family: Georgia, serif;
}
#board .game-viewport > .board .hule-dialog > div > div .pingju {
  font-family: "HGP行書体", /*"Weibei SC", "YuKyokasho",*/ STKaiti, serif;
  text-align: center;
}
#board .game-viewport > .board .hule-dialog > div > div .fenpei {
  font-family: Georgia, serif;
}
#board .game-viewport > .board .hule-dialog > div > div .fenpei > * {
  position: absolute;
  transform-origin: 0% 0%;
  display: inline-block;
}
#board .game-viewport > .board .hule-dialog > div > div .fenpei > * .player {
  display: none;
}
#board .game-viewport > .board .hule-dialog > div > div .fenpei > * .defen {
  display: inline-block;
  float: right;
  text-align: right;
}
#board .game-viewport > .board .hule-dialog > div > div .fenpei > * .diff {
  display: inline-block;
  float: right;
  text-align: right;
}
#board .game-viewport > .board .hule-dialog > div > div .fenpei > * .plus {
  color: #0ff;
}
#board .game-viewport > .board .hule-dialog > div > div .fenpei > * .minus {
  color: #f00;
}
#board .game-viewport > .board > .summary {
  z-index: 1;
  display: flex;
}
body.board #board .controller {
  display: none !important;
}
body.board #board .board > .summary {
  overflow: auto;
  align-items: center;
  transition: opacity 0.2s ease-out;
}
body.board #board .board > .summary:focus {
  outline: none;
}
body.board #board .board > .summary > div {
  margin: auto 0;
}
body.board #board .board > .summary > div > div {
  background: rgba(0,0,0,0.8);
  margin: auto;
}
body.board #board .board > .summary > div > div table {
  margin: auto;
  font-family: Century, serif;
  border-collapse: collapse;
  line-height: 1.5;
}
body.board #board .board > .summary > div > div table .r_player {
  border-bottom: solid 2px;
}
body.board #board .board > .summary > div > div table .r_diff .back {
  text-align: right;
}
body.board #board .board > .summary > div > div table .r_diff .zhuangjia {
  background: rgba(128,128,128,0.4);
}
body.board #board .board > .summary > div > div table .r_diff .diff {
  font-family: Georgia, serif;
}
body.board #board .board > .summary > div > div table .r_diff .lizhi {
  font-family: Georgia, serif;
  display: inline-block;
  width: 1.2em;
  text-align: center;
}
body.board #board .board > .summary > div > div table .r_defen {
  border-top: solid 2px;
}
body.board #board .board > .summary > div > div table .r_defen .defen {
  font-family: Georgia, serif;
  text-align: right;
  padding-right: 1.2em;
}
body.board #board .board > .summary > div > div table .r_point {
  border-top: solid 1px;
}
body.board #board .board > .summary > div > div table .r_point .point {
  font-family: Georgia, serif;
  text-align: center;
}
body.board #board .board > .summary > div > div table .baojia,
body.board #board .board > .summary > div > div table .minus {
  color: #f00;
}
body.board #board .board > .summary > div > div table .hule,
body.board #board .board > .summary > div > div table .plus {
  color: #0ff;
}
body.board #board .board > .summary > div > div table a.download {
  opacity: 0.6;
  font-family: Verdana, sans-serif;
  font-size: 18px;
  text-decoration: none;
  color: #fff;
}
body.board #board .board > .summary > div > div table a.download::link {
  color: #fff;
}
body.board #board .board > .summary > div > div table a.download img {
  height: 1em;
  vertical-align: text-bottom;
}
body.board #board .board > .summary.paipu tbody tr:hover {
  background: rgba(255,255,255,0.4);
  cursor: pointer;
}
body.board #board .board .kaiju:focus {
  outline: none;
}
body.board #board .board .kaiju > div {
  z-index: 1;
  margin-top: 120px;
  position: relative;
  width: 580px;
  margin: auto;
  background: #111;
  border: solid 1px #111;
  border-radius: 6px;
}
body.board #board .board .kaiju > div .title {
  margin: 40px 20px;
  text-align: center;
  font-family: "HGP行書体", /*"Weibei SC", "YuKyokasho",*/ STKaiti, serif;
  font-size: 32px;
  line-height: 1;
}
body.board #board .board .kaiju > div .player {
  margin: 40px 20px;
  height: 132px;
  text-align: center;
  font-family: Century, serif;
  font-size: 24px;
}
body.board #board .board .kaiju > div .player > div {
  position: absolute;
  width: 240px;
  height: 38px;
  padding: 0px 10px;
  border-radius: 4px;
  background: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.board #board .board .kaiju > div .player > div.selectable {
  cursor: pointer;
}
body.board #board .board .kaiju > div .player > div.selectable:hover {
  background: #999;
}
body.board #board .board .kaiju > div .player > div.main {
  transform: translate(140px, 96px);
}
body.board #board .board .kaiju > div .player > div.xiajia {
  transform: translate(280px, 48px);
}
body.board #board .board .kaiju > div .player > div.duimian {
  transform: translate(140px, 0px);
}
body.board #board .board .kaiju > div .player > div.shangjia {
  transform: translate(0px, 48px);
}
body.board #board .board .suspend {
  background: rgba(0,0,0,0.5);
}
#board .controller {
  position: absolute;
}
#board .controller img {
  display: none;
  opacity: 0.2;
  cursor: pointer;
}
#board .controller img.sound {
  display: inline;
}
#board .controller.paipu img {
  display: inline;
}
#board .controller .speed img {
  display: inline;
}
#board .controller .speed span {
  display: inline-block;
  background: #fff;
  opacity: 0.1;
}
#board .controller:hover {
  border-color: #333;
  background: #000;
}
#board .controller:hover img {
  opacity: 0.5;
}
#board .controller:hover img:hover {
  opacity: 1;
}
#board .controller:hover span {
  opacity: 0.2;
}
#board .download {
  position: absolute;
  z-index: 1;
}
#board .download a {
  opacity: 0.7;
  display: inline-block;
  color: #fff;
  background: #000;
  text-decoration: none;
  font-size: 18px;
  font-family: Verdana, sans-serif;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
}
#board .download a img {
  height: 1.2em;
  margin-right: 0.5em;
  vertical-align: middle;
}
#board .download a:hover {
  opacity: 1;
}
#board .tenhou-dialog {
  position: absolute;
  z-index: 1;
  background: rgba(0,0,0,0.5);
}
#board .tenhou-dialog form {
  padding: 15px;
  background: #fff;
  border-radius: 4px;
  font-family: Verdana, sans-serif;
  font-size: 14px;
  color: #000;
}
#board .tenhou-dialog form li {
  display: inline-block;
  margin-right: 0.5em;
}
#board .tenhou-dialog form textarea {
  box-sizing: border-box;
  width: 100%;
  resize: none;
}
#board .tenhou-dialog form textarea.URL {
  white-space: pre;
}
#board .tenhou-dialog form textarea.JSON {
  word-break: break-all;
}
#board .tenhou-dialog form .button {
  text-align: right;
}
#board .board {
  height: 730px;
  overflow: visible;
}
#board .board .score {
  width: 280px;
  height: 160px;
  transform: translate(260px, 260px);
  font-size: 14px;
}
#board .board .score .juchang {
  height: 72px;
  padding: 6px;
}
#board .board .score .juchang .jushu {
  font-size: 32px;
}
#board .board .score .juchang .jicun {
  padding: 0 8px;
}
#board .board .score .juchang .jicun img.chouma {
  width: 60px;
  height: 8px;
}
#board .board .score .shan {
  padding: 6px;
}
#board .board .score .shan .pai {
  display: inline-block;
  height: 42px;
  width: 30px;
}
#board .board .score .shan .pai:focus {
  transform: translate(0, -6px);
  outline: none;
}
#board .board .score .shan .pai.blink {
  animation: blink 0.5s infinite;
}
#board .board .score .shan .pai.deleted {
  transition: width 0.3s ease-out 0.1s;
  opacity: 0;
  width: 0px;
}
#board .board .score .shan .pai.mopai {
  opacity: 0.8;
}
#board .board .score .shan .pai.dapai.mopai {
  opacity: 0.6;
}
#board .board .score .defen div {
  width: 120px;
  height: 24px;
  font-size: 16px;
}
#board .board .score .defen div.main {
  transform: translate(80px, 48px);
}
#board .board .score .defen div.xiajia {
  transform: translate(150px, 24px);
}
#board .board .score .defen div.duimian {
  transform: translate(80px, 0px);
}
#board .board .score .defen div.shangjia {
  transform: translate(10px, 24px);
}
#board .board .timer {
  transform: translate(120px, 600px);
}
#board .board .player-button {
  left: 50%;
  transform: translate(-50%, 688px);
}
#board .board .player-button .button {
  width: 4em;
  height: 24px;
  margin-left: 2px;
  font-size: 16px;
}
#board .board .select-mianzi {
  left: 50%;
  transform: translate(-50%, 575px);
  height: 51.42857142857143px;
}
#board .board .select-mianzi .mianzi {
  padding: 2px;
  margin-left: 3px;
  display: inline-block;
}
#board .board .select-mianzi .mianzi .pai {
  display: inline-block;
  height: 36px;
  width: 25.714285714285715px;
}
#board .board .select-mianzi .mianzi .pai:focus {
  transform: translate(0, -5.142857142857143px);
  outline: none;
}
#board .board .select-mianzi .mianzi .pai.blink {
  animation: blink 0.5s infinite;
}
#board .board .select-mianzi .mianzi .pai.deleted {
  transition: width 0.3s ease-out 0.1s;
  opacity: 0;
  width: 0px;
}
#board .board .select-mianzi .mianzi .pai.mopai {
  opacity: 0.8;
}
#board .board .select-mianzi .mianzi .pai.dapai.mopai {
  opacity: 0.6;
}
#board .board .select-mianzi .mianzi .rotate {
  display: inline-block;
  white-space: nowrap;
  text-align: left;
  width: 36px;
  transform-origin: 0% 0%;
  transform: rotate(270deg) translate(-36px, 0px);
}
#board .board > .player {
  font-size: 20px;
  width: 160px;
  height: 30px;
  border-radius: 6px;
  padding: 2px 0.5em;
}
#board .board > .player.main {
  transform: translate(120px, 580px);
}
#board .board > .player.xiajia {
  transform: translate(540px, 440px);
}
#board .board > .player.duimian {
  transform: translate(500px, 60px);
}
#board .board > .player.shangjia {
  transform: translate(80px, 206px);
}
#board .board .he {
  width: 300px;
}
#board .board .he div.lizhi {
  line-height: 0;
  width: 180px;
  height: 12px;
  text-align: center;
}
#board .board .he div.lizhi .chouma {
  width: 108px;
}
#board .board .he .dapai {
  line-height: 0;
  height: 126px;
}
#board .board .he .dapai .pai {
  display: inline-block;
  height: 42px;
  width: 30px;
}
#board .board .he .dapai .pai:focus {
  transform: translate(0, -6px);
  outline: none;
}
#board .board .he .dapai .pai.blink {
  animation: blink 0.5s infinite;
}
#board .board .he .dapai .pai.deleted {
  transition: width 0.3s ease-out 0.1s;
  opacity: 0;
  width: 0px;
}
#board .board .he .dapai .pai.mopai {
  opacity: 0.8;
}
#board .board .he .dapai .pai.dapai.mopai {
  opacity: 0.6;
}
#board .board .he .dapai .pai.dapai {
  transform: translate(4.5px, 2.25px);
}
#board .board .he .dapai .lizhi {
  width: 42px;
  display: inline-block;
  text-align: left;
  transform: rotate(270deg);
}
#board .board .he .dapai .lizhi .pai.dapai {
  transform: translate(-2.25px, 4.5px);
}
#board .board .he .dapai .break {
  display: block;
  width: 3px;
}
#board .board .he.main {
  transform: translate(310px, 420px);
}
#board .board .he.xiajia {
  transform: translate(540px, 430px) rotate(270deg);
}
#board .board .he.duimian {
  transform: translate(490px, 260px) rotate(180deg);
}
#board .board .he.shangjia {
  transform: translate(260px, 250px) rotate(90deg);
}
#board .board .shoupai.main {
  display: table;
  width: 850px;
  height: 75px;
  transform: translate(25px, 615px);
}
#board .board .shoupai.main .bingpai {
  line-height: 1;
  margin-top: 5px;
  float: left;
}
#board .board .shoupai.main .bingpai .pai {
  display: inline-block;
  height: 70px;
  width: 50px;
}
#board .board .shoupai.main .bingpai .pai:focus {
  transform: translate(0, -10px);
  outline: none;
}
#board .board .shoupai.main .bingpai .pai.blink {
  animation: blink 0.5s infinite;
}
#board .board .shoupai.main .bingpai .pai.deleted {
  transition: width 0.3s ease-out 0.1s;
  opacity: 0;
  width: 0px;
}
#board .board .shoupai.main .bingpai .pai.mopai {
  opacity: 0.8;
}
#board .board .shoupai.main .bingpai .pai.dapai.mopai {
  opacity: 0.6;
}
#board .board .shoupai.main .bingpai .pai[role="button"] {
  cursor: pointer;
}
#board .board .shoupai.main .bingpai .zimo {
  margin-left: 5px;
}
#board .board .shoupai.main .fulou {
  line-height: 1;
  margin-top: 22px;
  float: right;
}
#board .board .shoupai.main .fulou .mianzi {
  margin-left: 5px;
  float: right;
  display: inline-block;
}
#board .board .shoupai.main .fulou .mianzi .pai {
  display: inline-block;
  height: 53px;
  width: 37.857142857142854px;
}
#board .board .shoupai.main .fulou .mianzi .pai:focus {
  transform: translate(0, -7.571428571428571px);
  outline: none;
}
#board .board .shoupai.main .fulou .mianzi .pai.blink {
  animation: blink 0.5s infinite;
}
#board .board .shoupai.main .fulou .mianzi .pai.deleted {
  transition: width 0.3s ease-out 0.1s;
  opacity: 0;
  width: 0px;
}
#board .board .shoupai.main .fulou .mianzi .pai.mopai {
  opacity: 0.8;
}
#board .board .shoupai.main .fulou .mianzi .pai.dapai.mopai {
  opacity: 0.6;
}
#board .board .shoupai.main .fulou .mianzi .rotate {
  display: inline-block;
  white-space: nowrap;
  text-align: left;
  width: 53px;
  transform-origin: 0% 0%;
  transform: rotate(270deg) translate(-53px, 0px);
}
#board .board .shoupai.xiajia {
  display: table;
  width: 672px;
  height: 72px;
  transform: translate(calc(865px + var(--third-side-extra-x, 0px)), 560px) rotate(270deg);
}
#board .board .shoupai.xiajia .bingpai {
  line-height: 1;
  margin-top: 22px;
  float: left;
}
#board .board .shoupai.xiajia .bingpai .pai {
  display: inline-block;
  height: 50px;
  width: 35.714285714285715px;
}
#board .board .shoupai.xiajia .bingpai .pai:focus {
  transform: translate(0, -7.142857142857143px);
  outline: none;
}
#board .board .shoupai.xiajia .bingpai .pai.blink {
  animation: blink 0.5s infinite;
}
#board .board .shoupai.xiajia .bingpai .pai.deleted {
  transition: width 0.3s ease-out 0.1s;
  opacity: 0;
  width: 0px;
}
#board .board .shoupai.xiajia .bingpai .pai.mopai {
  opacity: 0.8;
}
#board .board .shoupai.xiajia .bingpai .pai.dapai.mopai {
  opacity: 0.6;
}
#board .board .shoupai.xiajia .bingpai .pai[role="button"] {
  cursor: pointer;
}
#board .board .shoupai.xiajia .bingpai .zimo {
  margin-left: 3.571428571428572px;
}
#board .board .shoupai.xiajia .fulou {
  line-height: 1;
  margin-top: 27px;
  float: right;
}
#board .board .shoupai.xiajia .fulou .mianzi {
  margin-left: 3.571428571428572px;
  float: right;
  display: inline-block;
}
#board .board .shoupai.xiajia .fulou .mianzi .pai {
  display: inline-block;
  height: 45px;
  width: 32.142857142857146px;
}
#board .board .shoupai.xiajia .fulou .mianzi .pai:focus {
  transform: translate(0, -6.428571428571429px);
  outline: none;
}
#board .board .shoupai.xiajia .fulou .mianzi .pai.blink {
  animation: blink 0.5s infinite;
}
#board .board .shoupai.xiajia .fulou .mianzi .pai.deleted {
  transition: width 0.3s ease-out 0.1s;
  opacity: 0;
  width: 0px;
}
#board .board .shoupai.xiajia .fulou .mianzi .pai.mopai {
  opacity: 0.8;
}
#board .board .shoupai.xiajia .fulou .mianzi .pai.dapai.mopai {
  opacity: 0.6;
}
#board .board .shoupai.xiajia .fulou .mianzi .rotate {
  display: inline-block;
  white-space: nowrap;
  text-align: left;
  width: 45px;
  transform-origin: 0% 0%;
  transform: rotate(270deg) translate(-45px, 0px);
}
#board .board .shoupai.xiajia .bingpai {
  transform: translateX(calc(-20px + var(--third-bingpai-extra-x, 0px)));
}
#board .board .shoupai.xiajia .fulou {
  margin-right: 0 !important;
  position: relative;
  right: 100px;
}
#board .board .shoupai.duimian {
  display: table;
  width: 816px;
  height: 72px;
  transform: translate(680px, 60px) rotate(180deg);
  margin-left: -80px;
}
#board .board .shoupai.duimian .bingpai {
  line-height: 1;
  margin-top: 22px;
  float: left;
}
#board .board .shoupai.duimian .bingpai .pai {
  display: inline-block;
  height: 50px;
  width: 35.714285714285715px;
}
#board .board .shoupai.duimian .bingpai .pai:focus {
  transform: translate(0, -7.142857142857143px);
  outline: none;
}
#board .board .shoupai.duimian .bingpai .pai.blink {
  animation: blink 0.5s infinite;
}
#board .board .shoupai.duimian .bingpai .pai.deleted {
  transition: width 0.3s ease-out 0.1s;
  opacity: 0;
  width: 0px;
}
#board .board .shoupai.duimian .bingpai .pai.mopai {
  opacity: 0.8;
}
#board .board .shoupai.duimian .bingpai .pai.dapai.mopai {
  opacity: 0.6;
}
#board .board .shoupai.duimian .bingpai .pai[role="button"] {
  cursor: pointer;
}
#board .board .shoupai.duimian .bingpai .zimo {
  margin-left: 3.571428571428572px;
}
#board .board .shoupai.duimian .fulou {
  line-height: 1;
  margin-top: 22px;
  float: right;
}
#board .board .shoupai.duimian .fulou .mianzi {
  margin-left: 3.571428571428572px;
  float: right;
  display: inline-block;
}
#board .board .shoupai.duimian .fulou .mianzi .pai {
  display: inline-block;
  height: 50px;
  width: 35.714285714285715px;
}
#board .board .shoupai.duimian .fulou .mianzi .pai:focus {
  transform: translate(0, -7.142857142857143px);
  outline: none;
}
#board .board .shoupai.duimian .fulou .mianzi .pai.blink {
  animation: blink 0.5s infinite;
}
#board .board .shoupai.duimian .fulou .mianzi .pai.deleted {
  transition: width 0.3s ease-out 0.1s;
  opacity: 0;
  width: 0px;
}
#board .board .shoupai.duimian .fulou .mianzi .pai.mopai {
  opacity: 0.8;
}
#board .board .shoupai.duimian .fulou .mianzi .pai.dapai.mopai {
  opacity: 0.6;
}
#board .board .shoupai.duimian .fulou .mianzi .rotate {
  display: inline-block;
  white-space: nowrap;
  text-align: left;
  width: 50px;
  transform-origin: 0% 0%;
  transform: rotate(270deg) translate(-50px, 0px);
}
#board .board .shoupai.duimian .fulou {
  margin-right: 80px;
}
#board .board .shoupai.shangjia {
  display: table;
  width: 672px;
  height: 72px;
  transform: translate(calc(-65px - var(--third-side-extra-x, 0px)), 120px) rotate(90deg);
}
#board .board .shoupai.shangjia .bingpai {
  line-height: 1;
  margin-top: 22px;
  float: left;
}
#board .board .shoupai.shangjia .bingpai .pai {
  display: inline-block;
  height: 50px;
  width: 35.714285714285715px;
}
#board .board .shoupai.shangjia .bingpai .pai:focus {
  transform: translate(0, -7.142857142857143px);
  outline: none;
}
#board .board .shoupai.shangjia .bingpai .pai.blink {
  animation: blink 0.5s infinite;
}
#board .board .shoupai.shangjia .bingpai .pai.deleted {
  transition: width 0.3s ease-out 0.1s;
  opacity: 0;
  width: 0px;
}
#board .board .shoupai.shangjia .bingpai .pai.mopai {
  opacity: 0.8;
}
#board .board .shoupai.shangjia .bingpai .pai.dapai.mopai {
  opacity: 0.6;
}
#board .board .shoupai.shangjia .bingpai .pai[role="button"] {
  cursor: pointer;
}
#board .board .shoupai.shangjia .bingpai .zimo {
  margin-left: 3.571428571428572px;
}
#board .board .shoupai.shangjia .fulou {
  line-height: 1;
  margin-top: 27px;
  float: right;
}
#board .board .shoupai.shangjia .fulou .mianzi {
  margin-left: 3.571428571428572px;
  float: right;
  display: inline-block;
}
#board .board .shoupai.shangjia .fulou .mianzi .pai {
  display: inline-block;
  height: 45px;
  width: 32.142857142857146px;
}
#board .board .shoupai.shangjia .fulou .mianzi .pai:focus {
  transform: translate(0, -6.428571428571429px);
  outline: none;
}
#board .board .shoupai.shangjia .fulou .mianzi .pai.blink {
  animation: blink 0.5s infinite;
}
#board .board .shoupai.shangjia .fulou .mianzi .pai.deleted {
  transition: width 0.3s ease-out 0.1s;
  opacity: 0;
  width: 0px;
}
#board .board .shoupai.shangjia .fulou .mianzi .pai.mopai {
  opacity: 0.8;
}
#board .board .shoupai.shangjia .fulou .mianzi .pai.dapai.mopai {
  opacity: 0.6;
}
#board .board .shoupai.shangjia .fulou .mianzi .rotate {
  display: inline-block;
  white-space: nowrap;
  text-align: left;
  width: 45px;
  transform-origin: 0% 0%;
  transform: rotate(270deg) translate(-45px, 0px);
}
#board .board .shoupai.shangjia .bingpai {
  transform: translateX(calc(-20px + var(--third-bingpai-extra-x, 0px)));
}
#board .board .shoupai.shangjia .fulou {
  margin-right: 0 !important;
  position: relative;
  right: 107px;
}
#board .board .say {
  opacity: 0;
  pointer-events: none;
}
#board .board .hule-dialog {
  width: 800px;
  height: 680px;
}
#board .board .hule-dialog > div {
  width: 800px;
  min-height: 460px;
  padding: 10px 0px;
}
#board .board .hule-dialog > div > div {
  min-width: 460px;
  padding: 20px;
}
#board .board .hule-dialog > div > div .hule .shan .pai {
  display: inline-block;
  height: 35px;
  width: 25px;
}
#board .board .hule-dialog > div > div .hule .shan .pai:focus {
  transform: translate(0, -5px);
  outline: none;
}
#board .board .hule-dialog > div > div .hule .shan .pai.blink {
  animation: blink 0.5s infinite;
}
#board .board .hule-dialog > div > div .hule .shan .pai.deleted {
  transition: width 0.3s ease-out 0.1s;
  opacity: 0;
  width: 0px;
}
#board .board .hule-dialog > div > div .hule .shan .pai.mopai {
  opacity: 0.8;
}
#board .board .hule-dialog > div > div .hule .shan .pai.dapai.mopai {
  opacity: 0.6;
}
#board .board .hule-dialog > div > div .hule .shan.baopai {
  margin-left: 40px;
}
#board .board .hule-dialog > div > div .hule .shan.fubaopai {
  margin-right: 40px;
}
#board .board .hule-dialog > div > div .hule .shoupai {
  display: table;
  width: auto;
  height: 70px;
}
#board .board .hule-dialog > div > div .hule .shoupai .bingpai {
  line-height: 1;
  margin-top: 21px;
  float: left;
}
#board .board .hule-dialog > div > div .hule .shoupai .bingpai .pai {
  display: inline-block;
  height: 49px;
  width: 35px;
}
#board .board .hule-dialog > div > div .hule .shoupai .bingpai .pai:focus {
  transform: translate(0, -7px);
  outline: none;
}
#board .board .hule-dialog > div > div .hule .shoupai .bingpai .pai.blink {
  animation: blink 0.5s infinite;
}
#board .board .hule-dialog > div > div .hule .shoupai .bingpai .pai.deleted {
  transition: width 0.3s ease-out 0.1s;
  opacity: 0;
  width: 0px;
}
#board .board .hule-dialog > div > div .hule .shoupai .bingpai .pai.mopai {
  opacity: 0.8;
}
#board .board .hule-dialog > div > div .hule .shoupai .bingpai .pai.dapai.mopai {
  opacity: 0.6;
}
#board .board .hule-dialog > div > div .hule .shoupai .bingpai .pai[role="button"] {
  cursor: pointer;
}
#board .board .hule-dialog > div > div .hule .shoupai .bingpai .zimo {
  margin-left: 3.5px;
}
#board .board .hule-dialog > div > div .hule .shoupai .fulou {
  line-height: 1;
  margin-top: 21px;
  float: right;
}
#board .board .hule-dialog > div > div .hule .shoupai .fulou .mianzi {
  margin-left: 3.5px;
  float: right;
  display: inline-block;
}
#board .board .hule-dialog > div > div .hule .shoupai .fulou .mianzi .pai {
  display: inline-block;
  height: 49px;
  width: 35px;
}
#board .board .hule-dialog > div > div .hule .shoupai .fulou .mianzi .pai:focus {
  transform: translate(0, -7px);
  outline: none;
}
#board .board .hule-dialog > div > div .hule .shoupai .fulou .mianzi .pai.blink {
  animation: blink 0.5s infinite;
}
#board .board .hule-dialog > div > div .hule .shoupai .fulou .mianzi .pai.deleted {
  transition: width 0.3s ease-out 0.1s;
  opacity: 0;
  width: 0px;
}
#board .board .hule-dialog > div > div .hule .shoupai .fulou .mianzi .pai.mopai {
  opacity: 0.8;
}
#board .board .hule-dialog > div > div .hule .shoupai .fulou .mianzi .pai.dapai.mopai {
  opacity: 0.6;
}
#board .board .hule-dialog > div > div .hule .shoupai .fulou .mianzi .rotate {
  display: inline-block;
  white-space: nowrap;
  text-align: left;
  width: 49px;
  transform-origin: 0% 0%;
  transform: rotate(270deg) translate(-49px, 0px);
}
#board .board .hule-dialog > div > div .hule .hupai {
  margin: 10px auto;
  min-width: 280px;
  font-size: 24px;
}
#board .board .hule-dialog > div > div .hule .jicun {
  font-size: 16px;
}
#board .board .hule-dialog > div > div .hule .jicun .chouma {
  padding-left: 8px;
  width: 60px;
  height: 8px;
}
#board .board .hule-dialog > div > div .pingju {
  font-size: 48px;
  margin-top: 50px;
  margin-bottom: 100px;
}
#board .board .hule-dialog > div > div .fenpei {
  width: 380px;
  height: 80px;
  margin: 15px auto 0px auto;
  font-size: 16px;
  line-height: 16px;
}
#board .board .hule-dialog > div > div .fenpei > * {
  width: 88px;
}
#board .board .hule-dialog > div > div .fenpei > *.main {
  transform: translate(146px, 48px);
}
#board .board .hule-dialog > div > div .fenpei > *.xiajia {
  transform: translate(292px, 24px);
}
#board .board .hule-dialog > div > div .fenpei > *.duimian {
  transform: translate(146px, 0px);
}
#board .board .hule-dialog > div > div .fenpei > *.shangjia {
  transform: translate(0px, 24px);
}
#board .board .hule-dialog > div > div .fenpei > * .defen {
  width: 60px;
}
#board .board .hule-dialog > div > div .fenpei > * .diff {
  width: 88px;
}
#board .board > .summary {
  width: 800px;
  height: 680px;
}
#board .board > .summary > div {
  width: 800px;
  min-height: 560px;
  padding: 10px 0px;
}
#board .board > .summary > div > div {
  width: 680px;
  padding: 18px 0px;
}
#board .board > .summary > div > div table {
  width: 640px;
  font-size: 18px;
}
#board .board > .summary > div > div table .r_player .player {
  width: 114px;
}
#board .board > .summary > div > div table .r_point .point {
  font-size: 24px;
}
#board .board .kaiju {
  width: 800px;
  height: 680px;
}
#board .board .kaiju > div {
  margin-top: 120px;
}
#board .board .suspend,
#board .board .tenhou-dialog {
  width: 800px;
  height: 680px;
}
#board .board .tenhou-dialog form {
  width: 480px;
  margin: 100px auto;
}
#board .controller {
  transform: translate(80px, 100px);
  padding: 6px;
  padding-bottom: 0;
  border: solid 4px transparent;
  border-radius: 6px;
}
#board .controller img {
  width: 20px;
  height: 20px;
  margin: 2px 4px;
}
#board .controller .speed img {
  width: 16px;
  height: 16px;
}
#board .controller .speed span {
  width: 16px;
  height: 8px;
  margin: 6px 1px;
  border-radius: 4px;
}
#board .download {
  transform: translate(10px, 10px);
}
body.analyzer #board > .analyzer {
  display: none;
  position: absolute;
  transform: translate(50px, 160px);
  width: 700px;
  height: 400px;
  background: rgba(0,0,0,0.4);
  text-shadow: 2px 2px 4px #000;
}
body.analyzer #board > .analyzer.active {
  display: block;
}
body.analyzer #board > .analyzer .selected {
  background: rgba(144,144,144,0.6);
}
body.analyzer #board > .analyzer img {
  opacity: 0.8;
}
@media screen and (max-width: 800px) {
  #board {
    height: 730px;
  }
  #board .controller {
    transform: translate(0px, 680px);
    width: 800px;
    padding: 6px 0;
    border: none;
    text-align: center;
  }
  #board .controller img {
    opacity: 0.5;
    margin: 2px 12px;
  }
  #board .controller div {
    display: inline-block;
  }
  #board .controller .speed span {
    opacity: 0.2;
  }
}
body.file {
  color: #000;
  background: #fff;
  margin: 0 10px 15px;
}
body.file #navi {
  margin: 0;
}
body.file #file {
  display: block;
}
body.file > .version {
  display: none;
}
#file,
#room {
  display: none;
  font-size: 14px;
  font-family: Verdana, sans-serif;
}
#file h1,
#room h1 {
  font-size: 24px;
  margin-top: 0;
  border-bottom: solid 2px #000;
}
#file h1 img,
#room h1 img {
  height: 36px;
  vertical-align: bottom;
}
#file > .version,
#room > .version {
  margin-top: -2.4em;
  font-size: 16px;
  font-family: Georgia, serif;
  text-align: right;
}
#file .file {
  margin: 10px 0;
}
#file .file .row {
  transition: opacity 0.4s ease-out;
  border: solid 1px #ccc;
  margin: 2px 0px;
  border-radius: 4px;
  padding: 8px;
  display: flex;
  flex-direction: row-reverse;
}
#file .file .row .content {
  flex-grow: 1;
  margin-right: 10px;
}
#file .file .row .content .title {
  font-family: Verdana, sans-serif;
  font-size: 114%;
}
#file .file .row .content .player {
  font-family: Century, serif;
  font-size: 107%;
}
#file .file .row .button {
  display: inline-flex;
  align-items: flex-start;
}
#file .file .row .button a,
#file .file .row .button span {
  margin: 2px;
}
#file .file a,
#file .file label.upload {
  display: inline-block;
  padding: 6px 10px;
  background: #999;
  border-radius: 5px;
  white-space: nowrap;
  cursor: pointer;
  color: #fff;
  line-height: 1em;
  text-decoration: none;
}
#file .file a img,
#file .file label.upload img {
  height: 1em;
  margin-right: 4px;
  vertical-align: bottom;
}
#file .file a input,
#file .file label.upload input {
  display: none;
}
#file .file a.start,
#file .file label.upload.start {
  background: #00f;
}
#file .file a:hover,
#file .file label.upload:hover {
  background: #ccc;
}
#file .file a.delete:hover,
#file .file label.upload.delete:hover {
  background: #f00;
}
#file .file .move {
  display: inline-block;
  padding: 3px 0;
  cursor: move;
}
#file .file .move img {
  height: 1em;
  vertical-align: bottom;
}
#file .file > .button {
  float: right;
}
#file .file form.tenhou {
  float: right;
}
#file .file form.tenhou input[name="url"] {
  width: 270px;
}
#file .file form.tenhou input[type="image"] {
  height: 22px;
  opacity: 0.6;
}
#file .file .netplay {
  display: inline-block;
}
#file .file .netplay img {
  width: 2em;
  vertical-align: middle;
  border-radius: 50%;
  margin-right: 0.5em;
}
#file .file .netplay .name {
  display: inline-block;
  vertical-align: middle;
  font-size: 120%;
  width: 8em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#file .file .netplay form {
  margin-right: 0.5em;
  display: inline-block;
}
#file .file .netplay form input[name="room_no"] {
  width: 3em;
}
#file .file .error,
#file .file .loading {
  transition: opacity 0.5s ease-out;
  margin: 2px 0px;
  border-radius: 5px;
  border: solid 1px #f99;
  padding: 4px 1em;
  font-family: Verdana, sans-serif;
}
#file .file .error {
  color: #f00;
  background: #fdd;
}
#file .file .loading {
  color: #008000;
  background: #cfc;
  border: solid 1px #090;
}
#file .file .loading .blink {
  animation: blink-text 2s infinite;
}
body.stat {
  color: #000;
  background: #fff;
  margin: 0 10px 15px;
}
body.stat #navi {
  margin: 0;
}
body.stat #stat {
  display: block;
}
body.stat > .version {
  display: none;
}
#stat {
  display: none;
  font-size: 14px;
  font-family: Verdana, sans-serif;
}
#stat h1 {
  font-size: 24px;
  margin-top: 0;
  border-bottom: solid 2px #000;
}
#stat h1 img {
  height: 36px;
  vertical-align: bottom;
}
#stat > .version {
  margin-top: -2.6em;
  font-family: Georgia, serif;
  text-align: right;
}
#stat .stat {
  margin-top: 20px;
  overflow: auto;
}
#stat .stat > div {
  display: table;
  max-width: 960px;
  width: 100%;
}
#stat .stat .button {
  float: right;
}
#stat .stat .button .cut-off {
  font-size: 12px;
}
#stat .stat .button .cut-off input[name="n_game"] {
  width: 2em;
}
#stat .stat .button a.file {
  display: inline-block;
  margin-left: 1em;
  padding: 6px 10px;
  border-radius: 5px;
  white-space: nowrap;
  line-height: 1em;
  text-decoration: none;
  cursor: pointer;
  color: #fff;
  background: #999;
}
#stat .stat .button a.file img {
  height: 1em;
  margin-right: 4px;
  vertical-align: bottom;
}
#stat .stat .button a.file:hover {
  background: #ccc;
}
#stat .stat h2 {
  margin: 0;
  font-family: "HGP行書体", /*"Weibei SC", "YuKyokasho",*/ STKaiti, serif;
  font-size: 24px;
}
#stat .stat h2::after {
  display: block;
  content: '';
  clear: both;
}
#stat .stat table {
  min-width: 780px;
  width: 100%;
  margin-top: 1em;
  border-collapse: collapse;
  font-size: 16px;
  white-space: nowrap;
}
#stat .stat table thead,
#stat .stat table tbody {
  border-bottom: solid 2px #000;
}
#stat .stat table thead tr,
#stat .stat table tbody tr {
  border-bottom: solid 1px #ccc;
}
#stat .stat table th {
  padding: 2px 10px 2px 4px;
  font-family: Verdana, sans-serif;
}
#stat .stat table th.asc {
  background: no-repeat right center url("../img/icon-chevron-up.png");
  background-size: 8px;
}
#stat .stat table th.desc {
  background: no-repeat right center url("../img/icon-chevron-down.png");
  background-size: 8px;
}
#stat .stat table th a {
  cursor: pointer;
}
#stat .stat table td {
  padding: 2px 0.5em;
  font-family: Century, serif;
}
#stat .stat table td.num {
  text-align: right;
}
body.editor {
  color: #000;
  background: #fff;
  margin: 5px 15px;
}
body.editor #navi {
  display: none;
}
body.editor #editor {
  display: block;
}
body.editor > .version {
  display: none;
}
#editor {
  display: none;
  transition: opacity 0.4s ease-out;
}
#editor .menu {
  width: 200px;
  float: left;
  font-family: Verdana, sans-serif;
  text-align: center;
}
#editor .menu h1 {
  margin-top: 0;
  line-height: 1;
  font-size: 20px;
}
#editor .menu h1 img {
  height: 36px;
}
#editor .menu .version {
  font-size: 16px;
  font-family: Georgia, serif;
}
#editor .menu .title {
  font-size: 20px;
  font-family: "HGP行書体", /*"Weibei SC", "YuKyokasho",*/ STKaiti, serif;
  white-space: pre-line;
  margin: 1em 0;
}
#editor .menu .score {
  font-size: 12px;
  font-family: Verdana, sans-serif;
}
#editor .menu .score select {
  -webkit-appearance: none;
  font-size: 24px;
  border: none;
  background: inherit;
  font-family: Century, serif;
}
#editor .menu .score .jicun {
  margin: 4px 0;
  text-align: center;
}
#editor .menu .score .jicun img {
  width: 60px;
  height: 8px;
}
#editor .menu .score .jicun input {
  width: 2em;
  border: none;
}
#editor .menu .score .jicun input:not(:focus) {
  font-family: Georgia, serif;
}
#editor .menu .score .shan {
  display: flex;
  width: min-content;
  margin: auto;
}
#editor .menu .score .shan .flip {
  width: 25px;
  height: 35px;
  font-size: 12px;
  overflow: hidden;
}
#editor .menu .score .shan .flip >.pai {
  display: table-cell;
  box-sizing: border-box;
  width: 25px;
  height: 35px;
  text-align: center;
  vertical-align: middle;
  overflow-wrap: anywhere;
}
#editor .menu .score .shan .flip >.pai img {
  height: 100%;
  width: 100%;
}
#editor .menu .score .shan .flip input {
  display: block;
  box-sizing: border-box;
  padding: 0;
  height: 100%;
  width: 100%;
  text-align: center;
}
#editor .menu .score .shan .flip.error .pai:has(img) {
  background: #f00;
  border-radius: 4px;
}
#editor .menu .score .shan .flip.error .pai:has(img) img {
  opacity: 0.7;
}
#editor .menu .score .shan .flip.error .pai {
  color: #f00;
}
#editor .menu .score .shan .flip.error input {
  outline-color: #f00;
}
#editor .menu ul.log {
  padding: 0;
  font-size: 12px;
}
#editor .menu ul.log li {
  list-style: none;
  height: 18px;
  border: solid 1px #ccc;
  border-radius: 4px;
  cursor: pointer;
}
#editor .menu ul.log li.selected {
  background: #ccc;
}
#editor .menu ul.log li:hover {
  background: #999;
  color: #fff;
}
#editor .menu ul.log li:first-of-type a.minus {
  visibility: hidden;
}
#editor .menu ul.log li a {
  display: inline-block;
  border-radius: 4px;
  width: 18px;
  height: 18px;
  color: #fff;
  background: #999;
}
#editor .menu ul.log li a.plus {
  float: right;
  border-left: solid 1px #ccc;
}
#editor .menu ul.log li a.plus:hover {
  background: #00f;
  cursor: s-resize;
}
#editor .menu ul.log li a.minus {
  border-right: solid 1px #ccc;
  float: left;
}
#editor .menu ul.log li a.minus:hover {
  background: #f00;
  cursor: n-resize;
}
#editor .menu .button {
  margin-top: 1em;
}
#editor .menu .button a {
  font-size: 14px;
  display: inline-block;
  margin: 5px 0;
  padding: 6px 10px;
  background: #999;
  border-radius: 5px;
  white-space: nowrap;
  cursor: pointer;
  color: #fff;
  line-height: 1em;
  text-decoration: none;
}
#editor .menu .button a img {
  height: 1em;
  margin-right: 4px;
  vertical-align: bottom;
}
#editor .menu .button a:hover {
  background: #ccc;
}
#editor .overview {
  margin-left: 220px;
  font-family: Verdana, sans-serif;
}
#editor .overview table {
  margin-top: 1em;
  border-collapse: collapse;
  border-bottom: solid 2px;
}
#editor .overview table tr {
  border-bottom: solid 1px #999;
}
#editor .overview table th {
  border-bottom: solid 2px;
}
#editor .overview table td {
  padding: 5px;
}
#editor .overview table td.player {
  width: 280px;
}
#editor .overview table td.defen,
#editor .overview table td.point {
  width: 80px;
  text-align: center;
}
#editor .overview input,
#editor .overview textarea {
  border: none;
  resize: none;
}
#editor .overview textarea[name="title"] {
  height: 2.5em;
  font-size: 20px;
}
#editor .overview textarea[name="title"]:not(:focus) {
  font-family: "HGP行書体", /*"Weibei SC", "YuKyokasho",*/ STKaiti, serif;
}
#editor .overview textarea[name="player"] {
  height: 2.5em;
}
#editor .overview textarea[name="player"]:not(:focus) {
  font-family: Century, serif;
}
#editor .overview input[name="defen"],
#editor .overview input[name="point"] {
  text-align: right;
}
#editor .overview input[name="defen"]:not(:focus),
#editor .overview input[name="point"]:not(:focus) {
  font-family: Georgia, serif;
}
#editor .paipu {
  margin-left: 220px;
  padding: 2px 0;
  height: 180px;
  border-bottom: solid 1px #666;
}
#editor .paipu .player {
  font-family: Century, serif;
  box-sizing: border-box;
  float: left;
  width: 24px;
  height: 100%;
  writing-mode: vertical-rl;
  overflow: hidden;
}
#editor .paipu .player .jia {
  display: inline-block;
  padding: 2px 0;
  width: 100%;
  background: #000;
  color: #fff;
  border-radius: 4px;
  margin-bottom: 5px;
}
#editor .paipu .defen {
  float: right;
  font-size: 14px;
  font-family: Georgia, serif;
  text-align: right;
}
#editor .paipu .defen input[name="defen"] {
  font-family: Georgia, serif;
  text-align: right;
  border: none;
}
#editor .paipu .defen .fenpei {
  padding: 2px;
}
#editor .paipu .defen .fenpei.plus {
  color: #00f;
}
#editor .paipu .defen .fenpei.minus {
  color: #f00;
}
#editor .paipu .result {
  float: right;
  margin-right: 0.5em;
}
#editor .paipu .result .text {
  min-width: 5em;
  font-size: 14px;
  font-family: Georgia, serif;
  color: #fff;
  padding: 2px 0.5em;
  background: #00f;
  border-radius: 5px;
  white-space: nowrap;
  cursor: pointer;
}
#editor .paipu .result .button {
  font-size: 14px;
  font-family: Verdana, sans-serif;
  display: inline-block;
  margin: 5px 0;
  padding: 6px 10px;
  background: #999;
  border-radius: 5px;
  white-space: nowrap;
  cursor: pointer;
  color: #fff;
  line-height: 1em;
  text-decoration: none;
}
#editor .paipu .result .button img {
  height: 1em;
  margin-right: 4px;
  vertical-align: bottom;
}
#editor .paipu .result .button:hover {
  background: #ccc;
}
#editor .paipu .qipai {
  display: table;
  height: 40px;
  margin-left: 40px;
}
#editor .paipu .qipai > .shoupai {
  display: flex;
}
#editor .paipu .qipai > .shoupai >.pai {
  width: 25px;
  height: 35px;
}
#editor .paipu .qipai > .shoupai >.pai img {
  width: 100%;
  height: 100%;
}
#editor .paipu .qipai > .shoupai >.pai.error {
  background: #f00;
  border-radius: 4px;
}
#editor .paipu .qipai > .shoupai >.pai.error img {
  opacity: 0.7;
}
#editor .paipu .qipai input {
  margin-top: 8px;
  width: 20em;
}
#editor .paipu .mo,
#editor .paipu .da {
  margin-left: 40px;
  height: min-content;
  display: flex;
}
#editor .paipu .mo .moda,
#editor .paipu .da .moda {
  width: min-content;
  height: min-content;
}
#editor .paipu .mo .moda .text,
#editor .paipu .da .moda .text {
  width: 25px;
  height: 10px;
  font-size: 9px;
  text-align: center;
  white-space: nowrap;
}
#editor .paipu .mo .moda .flip,
#editor .paipu .da .moda .flip {
  height: 35px;
  width: 25px;
  font-family: Verdana, sans-serif;
  overflow: hidden;
}
#editor .paipu .mo .moda .flip >.pai,
#editor .paipu .da .moda .flip >.pai {
  display: table-cell;
  box-sizing: border-box;
  height: 35px;
  width: 25px;
  text-align: center;
  vertical-align: middle;
  overflow-wrap: anywhere;
  font-size: 20px;
}
#editor .paipu .mo .moda .flip >.pai img,
#editor .paipu .da .moda .flip >.pai img {
  height: 100%;
  width: 100%;
}
#editor .paipu .mo .moda .flip input,
#editor .paipu .da .moda .flip input {
  display: block;
  box-sizing: border-box;
  padding: 0;
  height: 100%;
  width: 100%;
  font-size: 12px;
  text-align: center;
}
#editor .paipu .mo .moda.error .pai:has(img),
#editor .paipu .da .moda.error .pai:has(img) {
  background: #f00;
  border-radius: 4px;
}
#editor .paipu .mo .moda.error .pai:has(img) img,
#editor .paipu .da .moda.error .pai:has(img) img {
  opacity: 0.7;
}
#editor .paipu .mo .moda.error .pai,
#editor .paipu .da .moda.error .pai {
  font-size: 12px;
  color: #f00;
}
#editor .paipu .mo .moda.error input,
#editor .paipu .da .moda.error input {
  outline-color: #f00;
}
#editor .paipu >.shoupai {
  margin-left: 40px;
  display: table;
  width: auto;
  height: 50px;
}
#editor .paipu >.shoupai .bingpai {
  line-height: 1;
  margin-top: 15px;
  float: left;
}
#editor .paipu >.shoupai .bingpai .pai {
  display: inline-block;
  height: 35px;
  width: 25px;
}
#editor .paipu >.shoupai .bingpai .pai:focus {
  transform: translate(0, -5px);
  outline: none;
}
#editor .paipu >.shoupai .bingpai .pai.blink {
  animation: blink 0.5s infinite;
}
#editor .paipu >.shoupai .bingpai .pai.deleted {
  transition: width 0.3s ease-out 0.1s;
  opacity: 0;
  width: 0px;
}
#editor .paipu >.shoupai .bingpai .pai.mopai {
  opacity: 0.8;
}
#editor .paipu >.shoupai .bingpai .pai.dapai.mopai {
  opacity: 0.6;
}
#editor .paipu >.shoupai .bingpai .pai[role="button"] {
  cursor: pointer;
}
#editor .paipu >.shoupai .bingpai .zimo {
  margin-left: 2.5px;
}
#editor .paipu >.shoupai .fulou {
  line-height: 1;
  margin-top: 15px;
  float: right;
}
#editor .paipu >.shoupai .fulou .mianzi {
  margin-left: 2.5px;
  float: right;
  display: inline-block;
}
#editor .paipu >.shoupai .fulou .mianzi .pai {
  display: inline-block;
  height: 35px;
  width: 25px;
}
#editor .paipu >.shoupai .fulou .mianzi .pai:focus {
  transform: translate(0, -5px);
  outline: none;
}
#editor .paipu >.shoupai .fulou .mianzi .pai.blink {
  animation: blink 0.5s infinite;
}
#editor .paipu >.shoupai .fulou .mianzi .pai.deleted {
  transition: width 0.3s ease-out 0.1s;
  opacity: 0;
  width: 0px;
}
#editor .paipu >.shoupai .fulou .mianzi .pai.mopai {
  opacity: 0.8;
}
#editor .paipu >.shoupai .fulou .mianzi .pai.dapai.mopai {
  opacity: 0.6;
}
#editor .paipu >.shoupai .fulou .mianzi .rotate {
  display: inline-block;
  white-space: nowrap;
  text-align: left;
  width: 35px;
  transform-origin: 0% 0%;
  transform: rotate(270deg) translate(-35px, 0px);
}
#editor dialog {
  min-width: 600px;
  padding: 24px;
  font-family: Verdana, sans-serif;
  font-size: 14px;
  border: none;
  border-radius: 10px;
}
#editor dialog::backdrop {
  background: rgba(0,0,0,0.4);
}
#editor dialog .button {
  margin-top: 24px;
}
#editor dialog .submit {
  margin: 0 120px;
  text-align: center;
}
#editor dialog input.close {
  float: left;
}
#editor dialog input.delete {
  float: right;
}
#editor dialog input[name="fu"],
#editor dialog input[name="fanshu"],
#editor dialog input[name="defen"],
#editor dialog input[name="fenpei"] {
  text-align: right;
}
#editor dialog.hule label {
  margin: 0.5em;
}
#editor dialog.hule select {
  width: 10em;
}
#editor dialog.hule .fubaopai {
  display: inline-block;
  vertical-align: middle;
}
#editor dialog.hule .fubaopai .shan {
  height: 35px;
  display: flex;
  width: min-content;
}
#editor dialog.hule .fubaopai .shan .flip {
  width: 25px;
  height: 35px;
}
#editor dialog.hule .fubaopai .shan .flip input {
  display: block;
  box-sizing: border-box;
  padding: 0;
  width: 100%;
  height: 100%;
  text-align: center;
}
#editor dialog.hule .fubaopai .shan .flip img {
  width: 100%;
  height: 100%;
}
#editor dialog.hule .shoupai {
  display: table;
  width: auto;
  height: 60px;
}
#editor dialog.hule .shoupai .bingpai {
  line-height: 1;
  margin-top: 18px;
  float: left;
}
#editor dialog.hule .shoupai .bingpai .pai {
  display: inline-block;
  height: 42px;
  width: 30px;
}
#editor dialog.hule .shoupai .bingpai .pai:focus {
  transform: translate(0, -6px);
  outline: none;
}
#editor dialog.hule .shoupai .bingpai .pai.blink {
  animation: blink 0.5s infinite;
}
#editor dialog.hule .shoupai .bingpai .pai.deleted {
  transition: width 0.3s ease-out 0.1s;
  opacity: 0;
  width: 0px;
}
#editor dialog.hule .shoupai .bingpai .pai.mopai {
  opacity: 0.8;
}
#editor dialog.hule .shoupai .bingpai .pai.dapai.mopai {
  opacity: 0.6;
}
#editor dialog.hule .shoupai .bingpai .pai[role="button"] {
  cursor: pointer;
}
#editor dialog.hule .shoupai .bingpai .zimo {
  margin-left: 3px;
}
#editor dialog.hule .shoupai .fulou {
  line-height: 1;
  margin-top: 18px;
  float: right;
}
#editor dialog.hule .shoupai .fulou .mianzi {
  margin-left: 3px;
  float: right;
  display: inline-block;
}
#editor dialog.hule .shoupai .fulou .mianzi .pai {
  display: inline-block;
  height: 42px;
  width: 30px;
}
#editor dialog.hule .shoupai .fulou .mianzi .pai:focus {
  transform: translate(0, -6px);
  outline: none;
}
#editor dialog.hule .shoupai .fulou .mianzi .pai.blink {
  animation: blink 0.5s infinite;
}
#editor dialog.hule .shoupai .fulou .mianzi .pai.deleted {
  transition: width 0.3s ease-out 0.1s;
  opacity: 0;
  width: 0px;
}
#editor dialog.hule .shoupai .fulou .mianzi .pai.mopai {
  opacity: 0.8;
}
#editor dialog.hule .shoupai .fulou .mianzi .pai.dapai.mopai {
  opacity: 0.6;
}
#editor dialog.hule .shoupai .fulou .mianzi .rotate {
  display: inline-block;
  white-space: nowrap;
  text-align: left;
  width: 42px;
  transform-origin: 0% 0%;
  transform: rotate(270deg) translate(-42px, 0px);
}
#editor dialog.hule ul.hupai {
  list-style: none;
}
#editor dialog.hule ul.hupai li {
  margin: 2px 0;
}
#editor dialog.hule .defen {
  margin-left: 40px;
  width: 230px;
  text-align: right;
}
#editor dialog.hule .jicun {
  margin: 1em 40px;
}
#editor dialog.hule .jicun img {
  width: 60px;
  height: 8px;
}
#editor dialog.hule .jicun input {
  width: 2em;
  text-align: right;
}
#editor dialog.hule ul.fenpei {
  list-style: none;
}
#editor dialog.hule ul.fenpei li {
  display: inline-block;
  margin-right: 1em;
}
#editor dialog.pingju .hule {
  float: right;
}
#editor dialog.pingju ul {
  list-style: none;
  padding-left: 32px;
}
#editor dialog.pingju ul li {
  margin: 4px 0;
}
#editor dialog.pingju ul li > div {
  margin: 4px 1em;
}
#editor dialog.pingju ul li > div .shoupai {
  display: table;
  width: 480px;
  height: 35px;
}
#editor dialog.pingju ul li > div .shoupai .bingpai {
  line-height: 1;
  margin-top: 0px;
  float: left;
}
#editor dialog.pingju ul li > div .shoupai .bingpai .pai {
  display: inline-block;
  height: 35px;
  width: 25px;
}
#editor dialog.pingju ul li > div .shoupai .bingpai .pai:focus {
  transform: translate(0, -5px);
  outline: none;
}
#editor dialog.pingju ul li > div .shoupai .bingpai .pai.blink {
  animation: blink 0.5s infinite;
}
#editor dialog.pingju ul li > div .shoupai .bingpai .pai.deleted {
  transition: width 0.3s ease-out 0.1s;
  opacity: 0;
  width: 0px;
}
#editor dialog.pingju ul li > div .shoupai .bingpai .pai.mopai {
  opacity: 0.8;
}
#editor dialog.pingju ul li > div .shoupai .bingpai .pai.dapai.mopai {
  opacity: 0.6;
}
#editor dialog.pingju ul li > div .shoupai .bingpai .pai[role="button"] {
  cursor: pointer;
}
#editor dialog.pingju ul li > div .shoupai .bingpai .zimo {
  margin-left: 2.5px;
}
#editor dialog.pingju ul li > div .shoupai .fulou {
  line-height: 1;
  margin-top: 0px;
  float: right;
}
#editor dialog.pingju ul li > div .shoupai .fulou .mianzi {
  margin-left: 2.5px;
  float: right;
  display: inline-block;
}
#editor dialog.pingju ul li > div .shoupai .fulou .mianzi .pai {
  display: inline-block;
  height: 35px;
  width: 25px;
}
#editor dialog.pingju ul li > div .shoupai .fulou .mianzi .pai:focus {
  transform: translate(0, -5px);
  outline: none;
}
#editor dialog.pingju ul li > div .shoupai .fulou .mianzi .pai.blink {
  animation: blink 0.5s infinite;
}
#editor dialog.pingju ul li > div .shoupai .fulou .mianzi .pai.deleted {
  transition: width 0.3s ease-out 0.1s;
  opacity: 0;
  width: 0px;
}
#editor dialog.pingju ul li > div .shoupai .fulou .mianzi .pai.mopai {
  opacity: 0.8;
}
#editor dialog.pingju ul li > div .shoupai .fulou .mianzi .pai.dapai.mopai {
  opacity: 0.6;
}
#editor dialog.pingju ul li > div .shoupai .fulou .mianzi .rotate {
  display: inline-block;
  white-space: nowrap;
  text-align: left;
  width: 35px;
  transform-origin: 0% 0%;
  transform: rotate(270deg) translate(-35px, 0px);
}
#board > .analyzer {
  display: none;
  box-sizing: border-box;
  border: solid 1px #fff;
  border-radius: 6px;
  padding: 10px;
  overflow: auto;
  font-family: Verdana, sans-serif;
  font-size: 12px;
}
#board > .analyzer table {
  border-collapse: collapse;
}
#board > .analyzer table .row {
  white-space: nowrap;
  line-height: 1;
}
#board > .analyzer table .row .pai {
  display: inline-block;
  height: 35px;
  width: 25px;
}
#board > .analyzer table .row .pai:focus {
  transform: translate(0, -5px);
  outline: none;
}
#board > .analyzer table .row .pai.blink {
  animation: blink 0.5s infinite;
}
#board > .analyzer table .row .pai.deleted {
  transition: width 0.3s ease-out 0.1s;
  opacity: 0;
  width: 0px;
}
#board > .analyzer table .row .pai.mopai {
  opacity: 0.8;
}
#board > .analyzer table .row .pai.dapai.mopai {
  opacity: 0.6;
}
#board > .analyzer table .row img {
  vertical-align: middle;
}
#board > .analyzer table .row .p span {
  margin-left: 0.5em;
}
#board > .analyzer table .row .xiangting {
  padding: 0 1em;
  text-align: center;
}
#board > .analyzer table .row .eval {
  padding-right: 1em;
  text-align: right;
}
#board > .analyzer table .row .eval.high {
  color: #f00;
}
#board > .analyzer table .row .eval.middle {
  color: #ffa500;
}
#board > .analyzer table .row .eval.low {
  color: #ff0;
}
#board > .analyzer table .row .eval.none {
  color: #808080;
}
#board > .analyzer table .row .tingpai {
  width: 100%;
}
#board > .analyzer table .row .tingpai span {
  margin-left: 0.5em;
}
#board > .analyzer table .row .shoupai {
  display: table;
  width: 380px;
  height: 40px;
}
#board > .analyzer table .row .shoupai .bingpai {
  line-height: 1;
  margin-top: 5px;
  float: left;
}
#board > .analyzer table .row .shoupai .bingpai .pai {
  display: inline-block;
  height: 35px;
  width: 25px;
}
#board > .analyzer table .row .shoupai .bingpai .pai:focus {
  transform: translate(0, -5px);
  outline: none;
}
#board > .analyzer table .row .shoupai .bingpai .pai.blink {
  animation: blink 0.5s infinite;
}
#board > .analyzer table .row .shoupai .bingpai .pai.deleted {
  transition: width 0.3s ease-out 0.1s;
  opacity: 0;
  width: 0px;
}
#board > .analyzer table .row .shoupai .bingpai .pai.mopai {
  opacity: 0.8;
}
#board > .analyzer table .row .shoupai .bingpai .pai.dapai.mopai {
  opacity: 0.6;
}
#board > .analyzer table .row .shoupai .bingpai .pai[role="button"] {
  cursor: pointer;
}
#board > .analyzer table .row .shoupai .bingpai .zimo {
  margin-left: 2.5px;
}
#board > .analyzer table .row .shoupai .fulou {
  line-height: 1;
  margin-top: 12px;
  float: right;
}
#board > .analyzer table .row .shoupai .fulou .mianzi {
  margin-left: 2.5px;
  float: right;
  display: inline-block;
}
#board > .analyzer table .row .shoupai .fulou .mianzi .pai {
  display: inline-block;
  height: 28px;
  width: 20px;
}
#board > .analyzer table .row .shoupai .fulou .mianzi .pai:focus {
  transform: translate(0, -4px);
  outline: none;
}
#board > .analyzer table .row .shoupai .fulou .mianzi .pai.blink {
  animation: blink 0.5s infinite;
}
#board > .analyzer table .row .shoupai .fulou .mianzi .pai.deleted {
  transition: width 0.3s ease-out 0.1s;
  opacity: 0;
  width: 0px;
}
#board > .analyzer table .row .shoupai .fulou .mianzi .pai.mopai {
  opacity: 0.8;
}
#board > .analyzer table .row .shoupai .fulou .mianzi .pai.dapai.mopai {
  opacity: 0.6;
}
#board > .analyzer table .row .shoupai .fulou .mianzi .rotate {
  display: inline-block;
  white-space: nowrap;
  text-align: left;
  width: 28px;
  transform-origin: 0% 0%;
  transform: rotate(270deg) translate(-28px, 0px);
}
#board > .analyzer table .row .action {
  padding: 0.25em 0.5em;
}
@media screen and (min-width: 821px) {
  body.analyzer #navi,
  body.analyzer > .version,
  body.analyzer #board {
    width: 1400px;
  }
  body.analyzer #navi > .analyzer,
  body.analyzer > .version > .analyzer,
  body.analyzer #board > .analyzer {
    display: block;
    position: relative;
    transform: translate(0px, 0px);
    float: right;
    width: 590px;
    height: 680px;
    text-shadow: none;
  }
  body.analyzer #navi > .analyzer .selected,
  body.analyzer > .version > .analyzer .selected,
  body.analyzer #board > .analyzer .selected {
    background: #999;
  }
  body.analyzer #navi > .analyzer img,
  body.analyzer > .version > .analyzer img,
  body.analyzer #board > .analyzer img {
    opacity: 1;
  }
}
@media screen and (max-width: 820px) and (min-height: 1000px) {
  body.analyzer #board > .analyzer {
    display: block;
    position: relative;
    transform: translate(0px, 680px);
    width: 800px;
    height: 300px;
    text-shadow: none;
  }
  body.analyzer #board > .analyzer .selected {
    background: #999;
  }
  body.analyzer #board > .analyzer img {
    opacity: 1;
  }
}
body.room {
  color: #000;
  background: #fff;
  margin: 0 10px 15px;
}
body.room #navi {
  margin: 0;
}
body.room #room {
  display: block;
}
body.room > .version {
  display: none;
}
#room form {
  border: solid 1px #666;
  border-radius: 8px;
  padding: 16px;
  margin: 20px;
}
#room form input[name="room_no"] {
  -webkit-text-fill-color: #000;
  opacity: 0.7;
  width: 3em;
}
#room form select {
  padding: 1px 1em 1px 0.5em;
}
#room form input[name="timer"] {
  width: 5em;
}
#room form .room .user {
  list-style: none;
  margin: 10px 0;
}
#room form .room .user.offline img,
#room form .room .user.offline .name {
  opacity: 0.3;
}
#room form .room .user img {
  width: 2em;
  vertical-align: middle;
  border-radius: 50%;
  margin-right: 0.5em;
}
#room form .room .user .name {
  display: inline-block;
  vertical-align: middle;
  font-size: 120%;
  width: 8em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.rule {
  font-size: 16px;
  font-family: Verdana, sans-serif;
  color: #000;
  background: #fff;
  margin: 0 5px 32px;
}
body.rule > * {
  max-width: 800px;
  margin: 0 auto;
}
body.rule .version {
  display: block;
  font-family: Georgia, serif;
  text-align: right;
}
body.rule .message {
  color: #090;
  background: #cfc;
  border: solid 1px #090;
  border-radius: 8px;
  padding: 4px 1em;
  transition: opacity 0.2s ease-out;
}
body.rule form {
  transition: opacity 0.4s ease-out;
}
body.rule form dl {
  margin: 8px 0;
  border-bottom: solid 1px #999;
}
body.rule form dl::after {
  display: block;
  content: "";
  clear: both;
}
body.rule form dt {
  width: 8.5em;
  margin: 2px 0;
  padding: 1px;
  clear: both;
  float: left;
  font-size: 100%;
  font-weight: bold;
  text-align: right;
}
body.rule form dd {
  width: calc(100% - 9.5em);
  margin-left: 0;
  margin: 2px 0;
  padding: 1px;
  float: right;
}
body.rule form dd select {
  padding: 1px 1em 1px 0.5em;
}
body.rule form dd label {
  margin-right: 0.5em;
}
body.rule form dd label.wrap {
  display: inline-block;
}
body.rule form dd img {
  height: 2em;
  vertical-align: middle;
  border: solid 0.3px #666;
  border-radius: 0.3em;
}
body.rule form dd input {
  padding: 1px 0.5em;
}
body.rule form dd input[name="配給原点"] {
  width: 4em;
  text-align: right;
}
body.rule form dd input[name="順位点"] {
  width: 3.5em;
  text-align: right;
}
body.rule form dd input[name="赤牌"] {
  width: 1em;
  text-align: center;
}
body.rule form input[type="submit"] {
  display: block;
  margin: 0.5em auto;
}
@media screen and (max-width: 480px) {
  body.rule form dt {
    width: auto;
    margin-right: 0.5em;
  }
  body.rule form dd {
    width: calc(100% - 7em);
  }
}
@media screen and (max-width: 360px) {
  body.rule form dd {
    width: calc(100% - 1em);
  }
}
#demo {
  display: none;
}
body.demo {
  font-size: 12px;
  font-family: Verdana, sans-serif;
  color: #fff;
  background: #036;
  margin: 0 10px 20px;
}
body.demo #demo {
  display: block;
}
body.demo > * {
  overflow-x: auto;
}
body.demo #navi {
  margin: 0 auto;
}
body.demo .version {
  display: block;
  font-size: 16px;
  font-family: Georgia, serif;
  text-align: right;
}
body.demo form div {
  margin: 2px 0;
}
body.demo form span {
  margin-right: 1em;
}
body.demo form input[name="paistr"] {
  width: 18em;
}
body.demo form input[name="baopai"],
body.demo form input[name="fubaopai"] {
  width: 2em;
  text-align: center;
}
body.demo form input[name="hestr"] {
  width: 32em;
}
body.demo .shan .pai {
  display: inline-block;
  height: 42px;
  width: 30px;
}
body.demo .shan .pai:focus {
  transform: translate(0, -6px);
  outline: none;
}
body.demo .shan .pai.blink {
  animation: blink 0.5s infinite;
}
body.demo .shan .pai.deleted {
  transition: width 0.3s ease-out 0.1s;
  opacity: 0;
  width: 0px;
}
body.demo .shan .pai.mopai {
  opacity: 0.8;
}
body.demo .shan .pai.dapai.mopai {
  opacity: 0.6;
}
body.demo .shan .baopai {
  float: left;
}
body.demo .shan .fubaopai {
  float: right;
}
body.demo .he {
  margin-top: 10px;
  width: auto;
}
body.demo .he div.lizhi {
  line-height: 0;
  width: 180px;
  height: 12px;
  text-align: left;
}
body.demo .he div.lizhi .chouma {
  width: 108px;
}
body.demo .he .dapai {
  line-height: 0;
  height: 42px;
}
body.demo .he .dapai .pai {
  display: inline-block;
  height: 42px;
  width: 30px;
}
body.demo .he .dapai .pai:focus {
  transform: translate(0, -6px);
  outline: none;
}
body.demo .he .dapai .pai.blink {
  animation: blink 0.5s infinite;
}
body.demo .he .dapai .pai.deleted {
  transition: width 0.3s ease-out 0.1s;
  opacity: 0;
  width: 0px;
}
body.demo .he .dapai .pai.mopai {
  opacity: 0.8;
}
body.demo .he .dapai .pai.dapai.mopai {
  opacity: 0.6;
}
body.demo .he .dapai .pai.dapai {
  transform: translate(1.5px, 0.75px);
}
body.demo .he .dapai .lizhi {
  width: 42px;
  display: inline-block;
  text-align: left;
  transform: rotate(270deg);
}
body.demo .he .dapai .lizhi .pai.dapai {
  transform: translate(-0.75px, 1.5px);
}
body.demo .he .dapai .break {
  display: inline-block;
  width: 3px;
}
body.demo .shoupai {
  clear: both;
  display: table;
  width: auto;
  height: 80px;
}
body.demo .shoupai .bingpai {
  line-height: 1;
  margin-top: 24px;
  float: left;
}
body.demo .shoupai .bingpai .pai {
  display: inline-block;
  height: 56px;
  width: 40px;
}
body.demo .shoupai .bingpai .pai:focus {
  transform: translate(0, -8px);
  outline: none;
}
body.demo .shoupai .bingpai .pai.blink {
  animation: blink 0.5s infinite;
}
body.demo .shoupai .bingpai .pai.deleted {
  transition: width 0.3s ease-out 0.1s;
  opacity: 0;
  width: 0px;
}
body.demo .shoupai .bingpai .pai.mopai {
  opacity: 0.8;
}
body.demo .shoupai .bingpai .pai.dapai.mopai {
  opacity: 0.6;
}
body.demo .shoupai .bingpai .pai[role="button"] {
  cursor: pointer;
}
body.demo .shoupai .bingpai .zimo {
  margin-left: 4px;
}
body.demo .shoupai .fulou {
  line-height: 1;
  margin-top: 24px;
  float: right;
}
body.demo .shoupai .fulou .mianzi {
  margin-left: 4px;
  float: right;
  display: inline-block;
}
body.demo .shoupai .fulou .mianzi .pai {
  display: inline-block;
  height: 56px;
  width: 40px;
}
body.demo .shoupai .fulou .mianzi .pai:focus {
  transform: translate(0, -8px);
  outline: none;
}
body.demo .shoupai .fulou .mianzi .pai.blink {
  animation: blink 0.5s infinite;
}
body.demo .shoupai .fulou .mianzi .pai.deleted {
  transition: width 0.3s ease-out 0.1s;
  opacity: 0;
  width: 0px;
}
body.demo .shoupai .fulou .mianzi .pai.mopai {
  opacity: 0.8;
}
body.demo .shoupai .fulou .mianzi .pai.dapai.mopai {
  opacity: 0.6;
}
body.demo .shoupai .fulou .mianzi .rotate {
  display: inline-block;
  white-space: nowrap;
  text-align: left;
  width: 56px;
  transform-origin: 0% 0%;
  transform: rotate(270deg) translate(-56px, 0px);
}
body.demo .status {
  margin: 1em 0;
}
body.demo .paili {
  white-space: pre;
}
body.demo .paili .pai {
  display: inline-block;
  height: 35px;
  width: 25px;
}
body.demo .paili .pai:focus {
  transform: translate(0, -5px);
  outline: none;
}
body.demo .paili .pai.blink {
  animation: blink 0.5s infinite;
}
body.demo .paili .pai.deleted {
  transition: width 0.3s ease-out 0.1s;
  opacity: 0;
  width: 0px;
}
body.demo .paili .pai.mopai {
  opacity: 0.8;
}
body.demo .paili .pai.dapai.mopai {
  opacity: 0.6;
}
body.demo .paili img {
  vertical-align: middle;
}
body.demo .hule-dialog {
  transition: opacity 0.5s;
  display: table;
  font-size: 24px;
  font-family: "HGP行書体", /*"Weibei SC", "YuKyokasho",*/ STKaiti, serif;
  line-height: 1;
}
body.demo .hule-dialog .hupai {
  margin-top: 10px;
  min-width: 280px;
}
body.demo .hule-dialog .hupai .fanshu {
  text-align: right;
}
body.demo .hule-dialog .defen {
  text-align: right;
}
body.demo .hule-dialog .defen.no_hule {
  text-align: left;
}
body.demo .drill {
  display: table;
  font-size: 20px;
  font-family: Century, serif;
}
body.demo .drill button {
  font-size: 16px;
}
body.demo .drill .stat {
  font-family: Georgia, serif;
}
body.demo .drill .exam .stat {
  float: right;
  font-size: 16px;
}
body.demo .drill img.lizhi {
  width: 64px;
  height: 8px;
}
body.demo .drill .shoupai .bingpai .zimo span {
  font-size: 18px;
  font-family: Century, serif;
  margin: 0 0.5em;
}
body.demo .drill .shoupai .fulou .mianzi:last-child {
  margin-left: 20px;
}
body.demo .drill .answer button {
  float: right;
  margin-left: 1em;
}
body.demo .drill .defen {
  font-family: Georgia, serif;
  font-size: 24px;
}
body.demo .drill .hupai {
  margin: 0 1em;
}
body.demo .drill .break {
  width: 800px;
  font-size: 24px;
  text-align: center;
}
body.demo .drill .break .stat {
  margin: 1em 0;
}
body.demo .heinfo span {
  display: inline-block;
  text-align: right;
  width: 4em;
  margin-right: 0;
}
body.demo .analyzer {
  transition: opacity 0.5s;
  margin: 20px 0;
}
body.demo .analyzer .pai {
  display: inline-block;
  height: 35px;
  width: 25px;
}
body.demo .analyzer .pai:focus {
  transform: translate(0, -5px);
  outline: none;
}
body.demo .analyzer .pai.blink {
  animation: blink 0.5s infinite;
}
body.demo .analyzer .pai.deleted {
  transition: width 0.3s ease-out 0.1s;
  opacity: 0;
  width: 0px;
}
body.demo .analyzer .pai.mopai {
  opacity: 0.8;
}
body.demo .analyzer .pai.dapai.mopai {
  opacity: 0.6;
}
body.demo .analyzer img {
  vertical-align: middle;
}
body.demo .analyzer .row .p span {
  margin-left: 0.5em;
}
body.demo .analyzer .row .xiangting {
  padding: 0 1em;
  text-align: center;
}
body.demo .analyzer .row .eval {
  padding-right: 1em;
  text-align: right;
}
body.demo .analyzer .row .eval.high {
  color: #f00;
}
body.demo .analyzer .row .eval.middle {
  color: #ffa500;
}
body.demo .analyzer .row .eval.low {
  color: #ff0;
}
body.demo .analyzer .row .eval.none {
  color: #808080;
}
body.demo .analyzer .row .tingpai {
  white-space: pre;
}
body.demo .analyzer .row .tingpai span {
  margin-left: 0.5em;
}
body.demo textarea,
body.demo .paiga div {
  box-sizing: border-box;
  width: 100%;
}
body.demo .paiga div {
  color: #000;
  background: #fff;
}
body.demo .paiga div p {
  padding: 1em;
}
body.register {
  background: repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255,255,255,0.05) 35px, rgba(255,255,255,0.05) 70px), repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(0,0,0,0.03) 35px, rgba(0,0,0,0.03) 70px), linear-gradient(135deg, #a8edea 0%, #fed6e3 50%, #f093fb 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', sans-serif;
  position: relative;
}
body.register::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 15% 80%, rgba(255,105,180,0.12) 0%, transparent 50%), radial-gradient(circle at 85% 20%, rgba(64,224,208,0.12) 0%, transparent 50%), radial-gradient(circle at 50% 50%, rgba(240,147,251,0.08) 0%, transparent 40%);
  pointer-events: none;
}
body.register .version {
  position: fixed;
  bottom: 10px;
  right: 10px;
  color: rgba(255,255,255,0.8);
  font-size: 12px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.register-container {
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(245,245,255,0.95) 100%);
  border: 4px solid #40e0d0;
  border-radius: 30px;
  padding: 45px;
  box-shadow: 0 20px 80px rgba(64,224,208,0.4), 0 10px 30px rgba(255,105,180,0.3), inset 0 -5px 20px rgba(64,224,208,0.1);
  max-width: 500px;
  width: 90%;
  position: relative;
}
.register-container::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  bottom: 12px;
  border: 2px solid rgba(255,105,180,0.3);
  border-radius: 25px;
  pointer-events: none;
}
.register-container h1 {
  text-align: center;
  margin: 0 0 35px 0;
  font-size: 36px;
  font-weight: bold;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 5px;
}
#register-form .form-group {
  margin-bottom: 32px;
}
#register-form .form-group label {
  display: block;
  margin-bottom: 12px;
  font-weight: 700;
  color: #667eea;
  font-size: 15px;
  text-shadow: none;
}
#register-form .form-group input[type="text"] {
  width: 100%;
  padding: 13px 18px;
  border: 3px solid #40e0d0;
  border-radius: 14px;
  font-size: 16px;
  background: #fff;
  color: #333;
  transition: all 0.3s;
  box-sizing: border-box;
}
#register-form .form-group input[type="text"]:focus {
  outline: none;
  border-color: #ff69b4;
  background: #fffef8;
  box-shadow: 0 0 18px rgba(255,105,180,0.3);
  transform: translateY(-2px);
}
#register-form .form-group .avatar-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
#register-form .form-group .avatar-grid .avatar-item {
  position: relative;
  cursor: pointer;
}
#register-form .form-group .avatar-grid .avatar-item input[type="radio"] {
  position: absolute;
  opacity: 0;
}
#register-form .form-group .avatar-grid .avatar-item .avatar-icon {
  display: block;
  text-align: center;
  font-size: 32px;
  padding: 12px;
  border: 3px solid rgba(64,224,208,0.4);
  border-radius: 15px;
  transition: all 0.3s;
  background: rgba(255,255,255,0.8);
}
#register-form .form-group .avatar-grid .avatar-item .avatar-icon:hover {
  transform: scale(1.15);
  border-color: #ff69b4;
  box-shadow: 0 6px 20px rgba(255,105,180,0.3);
  background: #fff0fa;
}
#register-form .form-group .avatar-grid .avatar-item.selected .avatar-icon {
  border-color: #ff69b4;
  background: #ffe6fa;
  box-shadow: 0 0 20px rgba(255,105,180,0.4);
  transform: scale(1.1);
}
#register-form .form-group .game-mode {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
#register-form .form-group .game-mode label {
  display: flex;
  align-items: center;
  padding: 13px 18px;
  border: 3px solid rgba(64,224,208,0.4);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s;
  background: rgba(255,255,255,0.7);
}
#register-form .form-group .game-mode label input[type="radio"] {
  margin-right: 12px;
  width: 21px;
  height: 21px;
  cursor: pointer;
  accent-color: #ff69b4;
}
#register-form .form-group .game-mode label span {
  font-size: 15px;
  color: #667eea;
  font-weight: 600;
}
#register-form .form-group .game-mode label:hover {
  border-color: #ff69b4;
  background: rgba(255,240,250,0.9);
  box-shadow: 0 4px 12px rgba(255,105,180,0.2);
  transform: translateX(4px);
}
#register-form .form-group .game-mode label input[type="radio"]:checked ~ span {
  color: #ff69b4;
  font-weight: 700;
  text-shadow: none;
}
#register-form .form-actions {
  display: flex;
  gap: 18px;
  margin-top: 42px;
}
#register-form .form-actions button[type="submit"] {
  flex: 1;
  padding: 17px 34px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  background-size: 200% 200%;
  color: #fff;
  border: 3px solid #40e0d0;
  border-radius: 18px;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  box-shadow: 0 8px 24px rgba(102,126,234,0.4), 0 4px 10px rgba(255,105,180,0.3);
  letter-spacing: 3px;
}
#register-form .form-actions button[type="submit"]:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 32px rgba(102,126,234,0.5), 0 0 35px rgba(255,105,180,0.4), 0 0 18px rgba(64,224,208,0.3);
  animation: rainbow-glow 2s ease-in-out infinite;
  background-position: 100% 50%;
}
#register-form .form-actions button[type="submit"]:active {
  transform: translateY(-2px) scale(1);
}
.back-link {
  padding: 15px 30px;
  background: rgba(255,255,255,0.6);
  color: #667eea;
  border: 3px solid rgba(64,224,208,0.4);
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}
.back-link:hover {
  background: rgba(255,255,255,0.9);
  border-color: #40e0d0;
  box-shadow: 0 4px 15px rgba(64,224,208,0.3);
  transform: translateY(-2px);
}
@media (max-width: 600px) {
  .register-container {
    padding: 30px 20px;
  }
  .register-container h1 {
    font-size: 24px;
  }
  .register-container #register-form .form-group .avatar-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@-moz-keyframes rainbow-glow {
  0%, 100% {
    box-shadow: 0 12px 32px rgba(102,126,234,0.5), 0 0 35px rgba(255,105,180,0.4);
  }
  50% {
    box-shadow: 0 12px 32px rgba(240,147,251,0.6), 0 0 45px rgba(64,224,208,0.5);
  }
}
@-webkit-keyframes rainbow-glow {
  0%, 100% {
    box-shadow: 0 12px 32px rgba(102,126,234,0.5), 0 0 35px rgba(255,105,180,0.4);
  }
  50% {
    box-shadow: 0 12px 32px rgba(240,147,251,0.6), 0 0 45px rgba(64,224,208,0.5);
  }
}
@-o-keyframes rainbow-glow {
  0%, 100% {
    box-shadow: 0 12px 32px rgba(102,126,234,0.5), 0 0 35px rgba(255,105,180,0.4);
  }
  50% {
    box-shadow: 0 12px 32px rgba(240,147,251,0.6), 0 0 45px rgba(64,224,208,0.5);
  }
}
@keyframes rainbow-glow {
  0%, 100% {
    box-shadow: 0 12px 32px rgba(102,126,234,0.5), 0 0 35px rgba(255,105,180,0.4);
  }
  50% {
    box-shadow: 0 12px 32px rgba(240,147,251,0.6), 0 0 45px rgba(64,224,208,0.5);
  }
}
.speech-bubble {
  position: fixed !important;
  background: linear-gradient(180deg, #fff 0%, #f8f8f8 100%);
  border: 3px solid #444;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: bold;
  color: #333;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3), inset 0 2px 10px rgba(255,255,255,0.8);
  z-index: 1000;
  animation: bubble-appear 0.3s ease-out;
  pointer-events: none;
}
.speech-bubble:after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-style: solid;
}
.speech-bubble:before {
  content: '';
  position: absolute;
  border-style: solid;
  z-index: 1;
}
.speech-bubble img {
  width: 50px;
  height: auto;
  display: block;
}
.speech-bubble.player-0 {
  bottom: 420px !important;
  left: calc(25% + 70px) !important;
  top: auto !important;
  right: auto !important;
}
.speech-bubble.player-0:after {
  bottom: -16px;
  left: 15px;
  right: auto;
  border-width: 16px 10px 0 10px;
  border-color: #444 transparent transparent transparent;
}
.speech-bubble.player-0:before {
  bottom: -11px;
  left: 18px;
  right: auto;
  border-width: 12px 7px 0 7px;
  border-color: #f8f8f8 transparent transparent transparent;
}
.speech-bubble.player-1 {
  bottom: 500px !important;
  right: calc(45% - 400px) !important;
  left: auto !important;
  top: auto !important;
}
.speech-bubble.player-1:after {
  bottom: -16px;
  right: 15px;
  left: auto;
  border-width: 16px 10px 0 10px;
  border-color: #444 transparent transparent transparent;
}
.speech-bubble.player-1:before {
  bottom: -11px;
  right: 18px;
  left: auto;
  border-width: 12px 7px 0 7px;
  border-color: #f8f8f8 transparent transparent transparent;
}
.speech-bubble.player-2 {
  top: 200px !important;
  right: calc(60% - 400px) !important;
  left: auto !important;
  bottom: auto !important;
}
.speech-bubble.player-2:after {
  top: -16px;
  right: 15px;
  left: auto;
  bottom: auto;
  border-width: 0 10px 16px 10px;
  border-color: transparent transparent #444 transparent;
}
.speech-bubble.player-2:before {
  top: -11px;
  right: 18px;
  left: auto;
  bottom: auto;
  border-width: 0 7px 12px 7px;
  border-color: transparent transparent #f8f8f8 transparent;
}
.speech-bubble.player-3 {
  top: 250px !important;
  left: calc(45% - 400px) !important;
  right: auto !important;
  bottom: auto !important;
}
.speech-bubble.player-3:after {
  top: -16px;
  left: 15px;
  right: auto;
  bottom: auto;
  border-width: 0 10px 16px 10px;
  border-color: transparent transparent #444 transparent;
}
.speech-bubble.player-3:before {
  top: -11px;
  left: 18px;
  right: auto;
  bottom: auto;
  border-width: 0 7px 12px 7px;
  border-color: transparent transparent #f8f8f8 transparent;
}
@media (max-width: 800px) {
  .speech-bubble {
    width: 60px;
    height: 60px;
    font-size: 24px;
    border-width: 2px;
  }
  .speech-bubble img {
    width: 35px;
  }
}
@-moz-keyframes bubble-appear {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@-webkit-keyframes bubble-appear {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@-o-keyframes bubble-appear {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes bubble-appear {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
.third-serif {
  position: absolute !important;
  width: 208px;
  height: 104px;
  margin: 0;
  padding: 0;
  pointer-events: none;
  z-index: 460;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: third-serif-appear 0.2s ease-out;
}
.third-serif .third-serif-frame {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  margin: 0;
  padding: 0;
  z-index: 0;
}
.third-serif .third-serif-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 8px 12px;
  box-sizing: border-box;
}
.third-serif .third-serif-text {
  font-size: 22px;
  font-weight: bold;
  color: #222;
  text-shadow: 0 1px 1px rgba(255,255,255,0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-align: center;
}
.third-serif .third-serif-inner img {
  max-width: 50%;
  max-height: 50%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.third-serif.fade-out {
  animation: third-serif-fade-out 0.3s ease-out forwards;
}
@-moz-keyframes third-serif-appear {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@-webkit-keyframes third-serif-appear {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@-o-keyframes third-serif-appear {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes third-serif-appear {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@-moz-keyframes third-serif-fade-out {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@-webkit-keyframes third-serif-fade-out {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@-o-keyframes third-serif-fade-out {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes third-serif-fade-out {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
#board .board .player-button,
#board .player-button,
.player-button {
  display: flex !important;
  justify-content: center !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  flex-wrap: nowrap !important;
  overflow: visible;
  gap: 4px;
  padding: 4px 6px;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  position: absolute !important;
  top: 0 !important;
  left: 50% !important;
  bottom: auto !important;
  right: auto !important;
  transform: translate(-50%, 688px) !important;
  z-index: 500 !important;
  max-width: 100%;
  width: max-content !important;
}
#board .board .player-button.hide,
#board .player-button.hide,
.player-button.hide {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
#board .board .player-button.fadeout,
#board .player-button.fadeout,
.player-button.fadeout {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
#board .board .player-button.hide.fadeout,
#board .player-button.hide.fadeout,
.player-button.hide.fadeout {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
#board .board .player-button .button,
#board .player-button .button,
.player-button .button,
#board .board .player-button > .button,
#board .player-button > .button,
.player-button > .button,
#board .board .player-button span.button,
#board .player-button span.button,
.player-button span.button {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  flex-shrink: 1;
  box-sizing: border-box !important;
  width: 92px !important;
  height: 44px !important;
  padding: 0 !important;
  min-width: 92px;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  text-indent: -9999px !important;
  overflow: hidden !important;
  border: none !important;
  border-radius: 8px;
  cursor: pointer !important;
  transition: filter 0.2s, opacity 0.2s, transform 0.2s;
  user-select: none;
  text-align: center;
  background-color: transparent !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
  box-shadow: none !important;
  text-shadow: none !important;
  outline: none !important;
}
#board .board .player-button .button:hover,
#board .player-button .button:hover,
.player-button .button:hover,
#board .board .player-button > .button:hover,
#board .player-button > .button:hover,
.player-button > .button:hover,
#board .board .player-button span.button:hover,
#board .player-button span.button:hover,
.player-button span.button:hover,
#board .board .player-button .button:focus-visible,
#board .player-button .button:focus-visible,
.player-button .button:focus-visible,
#board .board .player-button > .button:focus-visible,
#board .player-button > .button:focus-visible,
.player-button > .button:focus-visible,
#board .board .player-button span.button:focus-visible,
#board .player-button span.button:focus-visible,
.player-button span.button:focus-visible {
  transform: translateY(-4px) scale(1.08);
  filter: brightness(1.22) saturate(1.25) drop-shadow(0 0 18px rgba(255,255,255,0.75)) drop-shadow(0 0 12px rgba(120,200,255,0.55));
}
#board .board .player-button .button.lizhi.is-riichi-armed,
#board .player-button .button.lizhi.is-riichi-armed,
.player-button .button.lizhi.is-riichi-armed,
#board .board .player-button > .button.lizhi.is-riichi-armed,
#board .player-button > .button.lizhi.is-riichi-armed,
.player-button > .button.lizhi.is-riichi-armed,
#board .board .player-button span.button.lizhi.is-riichi-armed,
#board .player-button span.button.lizhi.is-riichi-armed,
.player-button span.button.lizhi.is-riichi-armed {
  transform: translateY(-4px) scale(1.08);
  filter: brightness(1.22) saturate(1.25) drop-shadow(0 0 18px rgba(255,255,255,0.75)) drop-shadow(0 0 12px rgba(120,200,255,0.55));
}
#board .board .player-button .button.hide,
#board .player-button .button.hide,
.player-button .button.hide,
#board .board .player-button > .button.hide,
#board .player-button > .button.hide,
.player-button > .button.hide,
#board .board .player-button span.button.hide,
#board .player-button span.button.hide,
.player-button span.button.hide {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
#board .board .player-button .button.fadeout,
#board .player-button .button.fadeout,
.player-button .button.fadeout,
#board .board .player-button > .button.fadeout,
#board .player-button > .button.fadeout,
.player-button > .button.fadeout,
#board .board .player-button span.button.fadeout,
#board .player-button span.button.fadeout,
.player-button span.button.fadeout {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
#board .board .player-button .button.hide.fadeout,
#board .player-button .button.hide.fadeout,
.player-button .button.hide.fadeout,
#board .board .player-button > .button.hide.fadeout,
#board .player-button > .button.hide.fadeout,
.player-button > .button.hide.fadeout,
#board .board .player-button span.button.hide.fadeout,
#board .player-button span.button.hide.fadeout,
.player-button span.button.hide.fadeout {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}
#board .board .player-button .button.peng,
#board .player-button .button.peng,
.player-button .button.peng,
#board .board .player-button > .button.peng,
#board .player-button > .button.peng,
.player-button > .button.peng,
#board .board .player-button span.button.peng,
#board .player-button span.button.peng,
.player-button span.button.peng {
  background-image: url("../img/game_main-assets/btn_pon.webp") !important;
}
#board .board .player-button .button.gang,
#board .player-button .button.gang,
.player-button .button.gang,
#board .board .player-button > .button.gang,
#board .player-button > .button.gang,
.player-button > .button.gang,
#board .board .player-button span.button.gang,
#board .player-button span.button.gang,
.player-button span.button.gang {
  background-image: url("../img/game_main-assets/btn_can.webp") !important;
}
#board .board .player-button .button.chi,
#board .player-button .button.chi,
.player-button .button.chi,
#board .board .player-button > .button.chi,
#board .player-button > .button.chi,
.player-button > .button.chi,
#board .board .player-button span.button.chi,
#board .player-button span.button.chi,
.player-button span.button.chi {
  background-image: url("../img/game_main-assets/btn_chi.webp") !important;
}
#board .board .player-button .button.lizhi,
#board .player-button .button.lizhi,
.player-button .button.lizhi,
#board .board .player-button > .button.lizhi,
#board .player-button > .button.lizhi,
.player-button > .button.lizhi,
#board .board .player-button span.button.lizhi,
#board .player-button span.button.lizhi,
.player-button span.button.lizhi {
  background-image: url("../img/game_main-assets/btn_reach.webp") !important;
}
#board .board .player-button .button.rong,
#board .player-button .button.rong,
.player-button .button.rong,
#board .board .player-button > .button.rong,
#board .player-button > .button.rong,
.player-button > .button.rong,
#board .board .player-button span.button.rong,
#board .player-button span.button.rong,
.player-button span.button.rong {
  background-image: url("../img/game_main-assets/btn_ron.webp") !important;
}
#board .board .player-button .button.zimo,
#board .player-button .button.zimo,
.player-button .button.zimo,
#board .board .player-button > .button.zimo,
#board .player-button > .button.zimo,
.player-button > .button.zimo,
#board .board .player-button span.button.zimo,
#board .player-button span.button.zimo,
.player-button span.button.zimo {
  background-image: url("../img/game_main-assets/btn_tumo.webp") !important;
}
#board .board .player-button .button.pingju,
#board .player-button .button.pingju,
.player-button .button.pingju,
#board .board .player-button > .button.pingju,
#board .player-button > .button.pingju,
.player-button > .button.pingju,
#board .board .player-button span.button.pingju,
#board .player-button span.button.pingju,
.player-button span.button.pingju {
  background-image: url("../img/game_main-assets/btn_ryukyoku.webp") !important;
}
#board .board .player-button .button.cansel,
#board .player-button .button.cansel,
.player-button .button.cansel,
#board .board .player-button > .button.cansel,
#board .player-button > .button.cansel,
.player-button > .button.cansel,
#board .board .player-button span.button.cansel,
#board .player-button span.button.cansel,
.player-button span.button.cansel {
  background-image: url("../img/game_main-assets/btn_next.webp") !important;
}
#board .board .player-button .button.mistake-target,
#board .player-button .button.mistake-target,
.player-button .button.mistake-target,
#board .board .player-button > .button.mistake-target,
#board .player-button > .button.mistake-target,
.player-button > .button.mistake-target,
#board .board .player-button span.button.mistake-target,
#board .player-button span.button.mistake-target,
.player-button span.button.mistake-target {
  opacity: 0.75 !important;
  filter: brightness(0.9) saturate(0.8);
}
#board .board .player-button .button.mistake-target:hover,
#board .player-button .button.mistake-target:hover,
.player-button .button.mistake-target:hover,
#board .board .player-button > .button.mistake-target:hover,
#board .player-button > .button.mistake-target:hover,
.player-button > .button.mistake-target:hover,
#board .board .player-button span.button.mistake-target:hover,
#board .player-button span.button.mistake-target:hover,
.player-button span.button.mistake-target:hover {
  opacity: 0.9 !important;
  filter: brightness(1) saturate(0.95);
  transform: scale(1.03);
}
#board .board .player-button .button.active-command,
#board .player-button .button.active-command,
.player-button .button.active-command,
#board .board .player-button > .button.active-command,
#board .player-button > .button.active-command,
.player-button > .button.active-command,
#board .board .player-button span.button.active-command,
#board .player-button span.button.active-command,
.player-button span.button.active-command {
  opacity: 1 !important;
  filter: none;
}
#board .board .player-button .button:active,
#board .player-button .button:active,
.player-button .button:active,
#board .board .player-button > .button:active,
#board .player-button > .button:active,
.player-button > .button:active,
#board .board .player-button span.button:active,
#board .player-button span.button:active,
.player-button span.button:active {
  transform: translateY(0) !important;
}
#board .mistake-counter,
.mistake-counter {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,240,250,0.95) 100%);
  border: 3px solid rgba(255,105,180,0.6);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(255,105,180,0.4), 0 2px 8px rgba(64,224,208,0.3);
  position: fixed !important;
  top: 80px !important;
  right: 20px !important;
  transform: none !important;
  z-index: 500 !important;
  transition: all 0.3s;
}
#board .mistake-counter.shake,
.mistake-counter.shake {
  animation: shake 0.5s;
}
#board .mistake-counter.hide,
.mistake-counter.hide {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}
#board .mistake-counter .counter-label,
.mistake-counter .counter-label {
  font-size: 15px;
  font-weight: 700;
  color: #667eea;
  text-shadow: none;
}
#board .mistake-counter .counter-value,
.mistake-counter .counter-value {
  font-size: 20px;
  font-weight: bold;
  color: #ff1493;
  min-width: 50px;
  text-align: center;
  padding: 5px 10px;
  background: rgba(255,240,250,0.9);
  border: 2px solid rgba(255,105,180,0.5);
  border-radius: 8px;
  text-shadow: none;
}
.mistake-counter.shake {
  animation: shake 0.5s;
}
#board .board .player-button .button,
#board .player-button .button,
.player-button .button,
.player-button > .button,
.player-button span.button {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}
#board .board .player-button .button.hide,
#board .player-button .button.hide,
.player-button .button.hide,
.player-button > .button.hide,
.player-button span.button.hide {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}
#board .board .player-button .button.fadeout,
#board .player-button .button.fadeout,
.player-button .button.fadeout,
.player-button > .button.fadeout,
.player-button span.button.fadeout {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}
#board .board .player-button .button.hide.fadeout,
#board .player-button .button.hide.fadeout,
.player-button .button.hide.fadeout,
.player-button > .button.hide.fadeout,
.player-button span.button.hide.fadeout {
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}
.mistake-target-active {
  background: linear-gradient(135deg, #ff9800 0%, #ff5722 100%) !important;
  color: #fff !important;
  animation: pulse-orange 1.5s infinite !important;
  border: 2px solid #ff5722 !important;
  box-shadow: 0 4px 15px rgba(255,152,0,0.4) !important;
}
.player-button .button.daopai {
  display: none !important;
}
.player-button .button.time {
  display: none !important;
}
.player-button .button.mistake-target-active {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
.he.main,
.he.xiajia,
.he.duimian,
.he.shangjia {
  position: relative;
}
.he .pai.highlight-trigger {
  position: relative;
  animation: pai-glow 1.5s ease-in-out infinite;
}
.he .pai.highlight-trigger::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 3px solid #ffd700;
  border-radius: 4px;
  box-shadow: 0 0 15px rgba(255,215,0,0.8), 0 0 30px rgba(255,215,0,0.5);
  pointer-events: none;
  animation: pai-pulse 1.5s ease-in-out infinite;
}
.say-fixed {
  position: fixed !important;
  width: auto !important;
  height: auto !important;
  padding: 8px 16px;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border: 2px solid #ffd700;
  border-radius: 8px;
  color: #ffd700 !important;
  font-size: 20px !important;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(255,215,0,0.8) !important;
  box-shadow: 0 0 20px rgba(255,215,0,0.6), 0 4px 12px rgba(0,0,0,0.8);
  z-index: 1000 !important;
  pointer-events: none;
  white-space: nowrap;
  transform: none !important;
}
.say-fixed.say-fixed-main {
  bottom: calc(400px) !important;
  left: calc(35% + 20px) !important;
  top: auto !important;
  right: auto !important;
}
.say-fixed.say-fixed-xiajia {
  bottom: calc(600px) !important;
  right: calc(45% - 450px) !important;
  left: auto !important;
  top: auto !important;
}
.say-fixed.say-fixed-duimian {
  top: calc(100px) !important;
  right: calc(60% - 350px) !important;
  left: auto !important;
  bottom: auto !important;
}
.say-fixed.say-fixed-shangjia {
  top: calc(150px) !important;
  left: calc(45% - 350px) !important;
  right: auto !important;
  bottom: auto !important;
}
#board .player-button:has(.button.lizhi.is-riichi-armed) .button:not(.lizhi),
#board .player-button:has(.button.lizhi.is-riichi-armed) .button:not(.lizhi):hover,
#board .player-button:has(.button.lizhi.is-riichi-armed) .button:not(.lizhi):focus-visible {
  opacity: 0.35 !important;
  filter: grayscale(1) brightness(0.85) saturate(0.2) !important;
  transform: none !important;
}
#board:has(.hule-dialog:not(.hide)) .player-button {
  opacity: 0 !important;
  pointer-events: none !important;
}
#board:has(.hule-dialog:not(.hide)) .player-button .button {
  pointer-events: none !important;
}
@-moz-keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-10px);
  }
  75% {
    transform: translateX(10px);
  }
}
@-webkit-keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-10px);
  }
  75% {
    transform: translateX(10px);
  }
}
@-o-keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-10px);
  }
  75% {
    transform: translateX(10px);
  }
}
@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-10px);
  }
  75% {
    transform: translateX(10px);
  }
}
@-moz-keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(76,175,80,0.7);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(76,175,80,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(76,175,80,0);
  }
}
@-webkit-keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(76,175,80,0.7);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(76,175,80,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(76,175,80,0);
  }
}
@-o-keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(76,175,80,0.7);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(76,175,80,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(76,175,80,0);
  }
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(76,175,80,0.7);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(76,175,80,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(76,175,80,0);
  }
}
@-moz-keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(76,175,80,0.7);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(76,175,80,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(76,175,80,0);
  }
}
@-webkit-keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(76,175,80,0.7);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(76,175,80,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(76,175,80,0);
  }
}
@-o-keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(76,175,80,0.7);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(76,175,80,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(76,175,80,0);
  }
}
@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(76,175,80,0.7);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(76,175,80,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(76,175,80,0);
  }
}
@-moz-keyframes rainbow-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(102,126,234,0.7), 0 6px 15px rgba(102,126,234,0.4);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(240,147,251,0), 0 8px 25px rgba(255,105,180,0.5);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(64,224,208,0), 0 6px 15px rgba(64,224,208,0.4);
  }
}
@-webkit-keyframes rainbow-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(102,126,234,0.7), 0 6px 15px rgba(102,126,234,0.4);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(240,147,251,0), 0 8px 25px rgba(255,105,180,0.5);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(64,224,208,0), 0 6px 15px rgba(64,224,208,0.4);
  }
}
@-o-keyframes rainbow-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(102,126,234,0.7), 0 6px 15px rgba(102,126,234,0.4);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(240,147,251,0), 0 8px 25px rgba(255,105,180,0.5);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(64,224,208,0), 0 6px 15px rgba(64,224,208,0.4);
  }
}
@keyframes rainbow-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(102,126,234,0.7), 0 6px 15px rgba(102,126,234,0.4);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(240,147,251,0), 0 8px 25px rgba(255,105,180,0.5);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(64,224,208,0), 0 6px 15px rgba(64,224,208,0.4);
  }
}
@-moz-keyframes pulse-orange {
  0% {
    box-shadow: 0 0 0 0 rgba(255,152,0,0.7);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(255,152,0,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255,152,0,0);
  }
}
@-webkit-keyframes pulse-orange {
  0% {
    box-shadow: 0 0 0 0 rgba(255,152,0,0.7);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(255,152,0,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255,152,0,0);
  }
}
@-o-keyframes pulse-orange {
  0% {
    box-shadow: 0 0 0 0 rgba(255,152,0,0.7);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(255,152,0,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255,152,0,0);
  }
}
@keyframes pulse-orange {
  0% {
    box-shadow: 0 0 0 0 rgba(255,152,0,0.7);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(255,152,0,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255,152,0,0);
  }
}
@-moz-keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-5px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(5px);
  }
}
@-webkit-keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-5px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(5px);
  }
}
@-o-keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-5px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(5px);
  }
}
@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  10%, 30%, 50%, 70%, 90% {
    transform: translateX(-5px);
  }
  20%, 40%, 60%, 80% {
    transform: translateX(5px);
  }
}
@-moz-keyframes pai-glow {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.4);
  }
}
@-webkit-keyframes pai-glow {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.4);
  }
}
@-o-keyframes pai-glow {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.4);
  }
}
@keyframes pai-glow {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.4);
  }
}
@-moz-keyframes pai-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}
@-webkit-keyframes pai-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}
@-o-keyframes pai-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}
@keyframes pai-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}
@-moz-keyframes balloon-appear-my {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
@-webkit-keyframes balloon-appear-my {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
@-o-keyframes balloon-appear-my {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
@keyframes balloon-appear-my {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
@-moz-keyframes balloon-appear-right {
  0% {
    opacity: 0;
    transform: translateY(0) translateX(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) translateX(0);
  }
}
@-webkit-keyframes balloon-appear-right {
  0% {
    opacity: 0;
    transform: translateY(0) translateX(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) translateX(0);
  }
}
@-o-keyframes balloon-appear-right {
  0% {
    opacity: 0;
    transform: translateY(0) translateX(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) translateX(0);
  }
}
@keyframes balloon-appear-right {
  0% {
    opacity: 0;
    transform: translateY(0) translateX(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) translateX(0);
  }
}
@-moz-keyframes balloon-appear-opposite {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
@-webkit-keyframes balloon-appear-opposite {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
@-o-keyframes balloon-appear-opposite {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
@keyframes balloon-appear-opposite {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
@-moz-keyframes balloon-appear-left {
  0% {
    opacity: 0;
    transform: translateY(-50%) translateX(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}
@-webkit-keyframes balloon-appear-left {
  0% {
    opacity: 0;
    transform: translateY(-50%) translateX(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}
@-o-keyframes balloon-appear-left {
  0% {
    opacity: 0;
    transform: translateY(-50%) translateX(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}
@keyframes balloon-appear-left {
  0% {
    opacity: 0;
    transform: translateY(-50%) translateX(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}
@-moz-keyframes balloon-fade-out {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@-webkit-keyframes balloon-fade-out {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@-o-keyframes balloon-fade-out {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes balloon-fade-out {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
#board > .game-timer.hide,
#board > .game-timer.active,
#board > .game-timer,
.game-timer {
  position: fixed !important;
  z-index: 500 !important;
  pointer-events: none;
  width: auto !important;
  height: auto !important;
}
#board > .game-timer.hide.active,
#board > .game-timer.active.active,
#board > .game-timer.active,
.game-timer.active {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}
#board > .game-timer.hide.hide,
#board > .game-timer.active.hide,
#board > .game-timer.hide,
.game-timer.hide {
  display: none !important;
}
#board > .game-timer.hide .game-timer-image,
#board > .game-timer.active .game-timer-image,
#board > .game-timer .game-timer-image,
.game-timer .game-timer-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 120px;
  max-height: 120px;
}
#board > .game-timer.hide.warning .game-timer-image,
#board > .game-timer.active.warning .game-timer-image,
#board > .game-timer.warning .game-timer-image,
.game-timer.warning .game-timer-image {
  animation: timer-pulse 1s infinite;
}
@-moz-keyframes timer-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.85;
  }
}
@-webkit-keyframes timer-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.85;
  }
}
@-o-keyframes timer-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.85;
  }
}
@keyframes timer-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.85;
  }
}
#board:has(.hule-dialog:not(.hide)) > .third-timer-hud {
  z-index: -1 !important;
}
#board:has(.select-mianzi .mianzi) > .third-timer-hud {
  z-index: 300 !important;
}
.third-timer-hud {
  position: fixed !important;
  z-index: 500 !important;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  gap: 6px;
}
.third-timer-hud .third-countstop {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  transform: scale(0.8);
  transform-origin: left bottom;
}
.third-timer-hud .third-countstop-label {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
  white-space: nowrap;
}
.third-timer-hud .third-countstop-btn {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  display: block;
}
.third-timer-hud .third-countstop-btn:focus {
  outline: 2px solid rgba(255,255,255,0.6);
  outline-offset: 2px;
}
.third-timer-hud .third-countstop-img {
  display: block;
  width: auto;
  height: 36px;
  max-width: 80px;
}
.third-timer-hud .game-timer {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  right: auto !important;
  width: 120px;
  height: 120px;
}
.third-timer-hud .game-timer.hide {
  display: block !important;
  visibility: hidden !important;
  opacity: 0 !important;
}
.third-audio-settings {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 900;
}
.third-audio-settings-btn {
  display: block;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  line-height: 0;
}
.third-audio-settings-btn img {
  display: block;
  width: 36px;
  height: auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}
.third-audio-settings-pop {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  width: 85vw;
  max-width: 320px;
  padding: 16px;
  background: rgba(255,255,255,0.95);
  border: 2px solid #40c4b7;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.third-audio-settings-pop.hide {
  display: none;
}
.third-audio-settings-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.third-audio-settings-row:last-of-type {
  margin-bottom: 16px;
}
.third-audio-settings-label {
  flex: 0 0 auto;
  min-width: 100px;
  font-size: 12px;
  font-weight: 600;
  color: #333;
}
.third-audio-settings-slider {
  flex: 1;
  min-width: 0;
  accent-color: #40c4b7;
}
.third-audio-settings-apply {
  display: block;
  width: 100%;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: #40c4b7;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(64,196,183,0.4);
}
.third-audio-settings-apply:hover {
  background: #38b0a5;
}
.third-audio-settings-apply:active {
  transform: scale(0.98);
}
#board:not([data-play-mode="third"]) .third-intervention-history {
  display: none !important;
}
#board[data-play-mode="third"] .third-intervention-history {
  position: absolute;
  top: 20px;
  left: calc(20px - var(--third-side-extra-x, 0px));
  max-width: 265px;
  max-height: 240px;
  overflow: hidden;
  z-index: 885;
  pointer-events: none;
  user-select: none;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  background: transparent;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.18) inset;
}
.third-intervention-history-title {
  display: none;
}
ul.third-intervention-history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 210px;
  overflow: hidden;
}
.third-intervention-history-item {
  margin: 0;
  padding: 4px 8px;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255,255,255,0.98);
  text-shadow: 0 1px 2px rgba(0,0,0,0.9), 0 0 6px rgba(0,0,0,0.45);
  background: rgba(0,0,0,0.1);
  word-break: break-word;
}
.third-intervention-panel {
  position: relative;
  display: flex !important;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  padding: 0 4px;
  margin-left: 8px;
  border-left: 1px solid rgba(186,85,211,0.5);
}
.third-btn {
  padding: 6px 10px;
  font-size: 12px;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.third-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}
.third-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.third-btn.blackout-river {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}
.third-btn.blackout-river:hover {
  background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
}
.third-btn.blackout-hand {
  background: linear-gradient(135deg, #16a085 0%, #1abc9c 100%);
}
.third-btn.blackout-hand:hover {
  background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);
}
.third-btn.eraser {
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}
.third-btn.eraser:hover {
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
}
.third-btn.reveal-opponent {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}
.third-btn.reveal-opponent:hover {
  background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
}
.third-btn.cindy {
  background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}
.third-btn.cindy:hover {
  background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%);
}
.third-picker {
  position: absolute;
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  gap: 4px;
  padding: 6px;
  background: rgba(30,30,30,0.95);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  z-index: 1200;
}
.third-picker.hide {
  display: none !important;
}
.third-picker-option {
  flex: 0 0 auto;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  background: rgba(100,100,100,0.9);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
}
.third-picker-option:hover {
  background: rgba(140,140,140,0.95);
}
.third-cindy,
.third-cindy * {
  pointer-events: none;
}
.third-cindy {
  position: fixed;
  z-index: 1500;
  box-sizing: border-box;
}
.third-cindy-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.third-cindy-comment {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  transform: translateY(-80%);
  height: clamp(84px, 32%, 132px);
  text-align: center;
  opacity: 0;
  transition: opacity 0.18s ease-out;
}
.third-cindy-comment.is-visible {
  opacity: 1;
}
.third-cindy-comment-inner {
  position: relative;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 2px solid rgba(255,255,255,0.68);
  border-radius: 2px;
  color: #fff;
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 3px rgba(0,0,0,0.75);
  box-shadow: 0 10px 24px rgba(0,0,0,0.35), inset 0 0 0 1px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.08);
  text-align: center;
  background: linear-gradient(to bottom, #3a3a3a 0%, #2e2e2e 12%, #1a1a1a 24%, #0a0a0a 38%, #000 50%, #0a0a0a 62%, #1a1a1a 76%, #2e2e2e 88%, #3a3a3a 100%);
}
.third-cindy-comment-inner.is-rare {
  border: 2px solid rgba(255,210,190,0.5);
  box-shadow: 0 10px 28px rgba(50,0,0,0.45), inset 0 0 0 1px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,200,200,0.1);
  background: linear-gradient(to bottom, #d86868 0%, #c83840 22%, #b01828 50%, #c83840 78%, #d86868 100%);
}
.third-cindy-comment-inner.is-rare .third-cindy-comment-content {
  color: #d4af37;
  font-weight: 900;
  text-shadow: 0 2px 6px rgba(0,0,0,0.8), 0 0 10px rgba(212,175,55,0.15);
}
.third-cindy-comment-content {
  width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
.third-cindy-comment-content img.third-cindy-pai {
  height: clamp(28px, 1.8em, 42px);
  width: auto;
  vertical-align: middle;
  margin: 0 6px;
}
.third-intervention-board-comment {
  position: fixed;
  z-index: 1650;
  box-sizing: border-box;
  pointer-events: none;
  margin: 0;
  padding: 0.35em 0.55em;
  max-width: 90vw;
  font-size: clamp(16px, 4.2vmin, 34px);
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  word-break: break-word;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.third-intervention-board-comment.third-intervention-board-comment--exit {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.96);
}
.third-intervention-board-comment.third-intervention-board-comment--anon,
.third-intervention-board-comment.third-intervention-board-comment--tier-1 {
  color: #fff;
  text-shadow: 0 0 3px #000, 0 0 6px #000, 1px 0 1px #000, -1px 0 1px #000, 0 1px 1px #000, 0 -1px 1px #000;
}
.third-intervention-board-comment.third-intervention-board-comment--tier-2 {
  color: #00a3ff;
  text-shadow: 0 0 2px rgba(0,0,0,0.95), 0 0 8px rgba(0,0,0,0.8), 0 0 14px rgba(0,163,255,0.6);
}
.third-intervention-board-comment.third-intervention-board-comment--tier-3 {
  color: #ffea00;
  text-shadow: 0 0 2px rgba(0,0,0,0.95), 0 0 8px rgba(0,0,0,0.8), 0 0 14px rgba(255,234,0,0.6);
}
.third-intervention-board-comment.third-intervention-board-comment--tier-4 {
  color: #39ff14;
  text-shadow: 0 0 2px rgba(0,0,0,0.95), 0 0 8px rgba(0,0,0,0.8), 0 0 14px rgba(57,255,20,0.6);
}
.third-intervention-board-comment.third-intervention-board-comment--tier-5 {
  color: #f03;
  text-shadow: 0 0 2px rgba(0,0,0,0.95), 0 0 8px rgba(0,0,0,0.8), 0 0 14px rgba(255,0,51,0.6);
}
.third-intervention-board-comment.third-intervention-board-comment--tier-rainbow {
  font-weight: 900;
  color: #fff;
  text-shadow: none;
}
@supports (-webkit-background-clip: text) {
  .third-intervention-board-comment.third-intervention-board-comment--tier-rainbow {
    font-weight: 900;
    color: transparent;
    -webkit-text-fill-color: transparent;
    background-image: linear-gradient(90deg, #f03, #ff7a00, #ffe600, #0f6, #00d5ff, #06f, #7f00ff, #ff00d4, #f03);
    background-size: 120% 100%;
    background-position: 50% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    background-repeat: no-repeat;
    -webkit-text-stroke: 1px rgba(0,0,0,0.5);
    text-shadow: none;
  }
}
#score-results {
  max-width: 900px;
  margin: 40px auto;
  padding: 24px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
#score-results h2 {
  text-align: center;
  color: #333;
  font-size: 28px;
  margin-bottom: 24px;
  font-weight: bold;
}
.score-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}
.score-table thead {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}
.score-table thead th {
  padding: 14px 12px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
}
.score-table thead th:first-child {
  border-radius: 8px 0 0 0;
}
.score-table thead th:last-child {
  border-radius: 0 8px 0 0;
}
.score-table tbody tr {
  border-bottom: 1px solid #e0e0e0;
  transition: background 0.2s;
}
.score-table tbody tr:hover {
  background: #f8f9fa;
}
.score-table tbody tr:last-child {
  border-bottom: none;
}
.score-table tbody tr.rank-1 {
  background: #fff9e6;
  font-weight: bold;
}
.score-table tbody tr.rank-1 td:first-child {
  color: #ffd700;
  font-size: 18px;
  font-weight: bold;
}
.score-table tbody tr.rank-2 {
  background: #f5f5f5;
}
.score-table tbody tr.rank-4 {
  background: #ffebee;
}
.score-table tbody tr.player-self {
  border: 3px solid #4caf50;
  background: #e8f5e9 !important;
}
.score-table tbody tr.player-self td {
  font-weight: bold;
}
.score-table tbody td {
  padding: 12px;
  text-align: center;
  font-size: 14px;
}
.score-table tbody td.final-score {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  background: #f0f0f0;
}
.mistake-note {
  padding: 12px 20px;
  background: #fff3e0;
  border-left: 4px solid #ff9800;
  border-radius: 4px;
  color: #e65100;
  font-size: 14px;
  font-weight: 600;
  margin-top: 16px;
}
.score-detail {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}
.score-detail .label {
  color: #666;
  font-size: 14px;
}
.score-detail .value {
  font-weight: 600;
  color: #333;
  font-size: 14px;
}
.score-detail .value.positive {
  color: #4caf50;
}
.score-detail .value.negative {
  color: #f44336;
}
@media (max-width: 768px) {
  #score-results {
    padding: 16px;
    margin: 20px 10px;
  }
  #score-results h2 {
    font-size: 22px;
  }
  .score-table {
    font-size: 12px;
  }
  .score-table thead th {
    padding: 10px 6px;
    font-size: 11px;
  }
  .score-table tbody td {
    padding: 8px 4px;
    font-size: 12px;
  }
  .score-table tbody td.final-score {
    font-size: 14px;
  }
  .mistake-note {
    font-size: 12px;
    padding: 10px 16px;
  }
}
body.ranking {
  background: linear-gradient(135deg, #1a0000 0%, #8b0000 25%, #dc143c 50%, #8b0000 75%, #1a0000 100%);
  background-size: 200% 200%;
  animation: chinese-gradient 10s ease infinite;
  min-height: 100vh;
  padding: 20px 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  position: relative;
}
body.ranking::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 20% 80%, rgba(255,215,0,0.1) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(255,215,0,0.1) 0%, transparent 50%), radial-gradient(circle at 40% 40%, rgba(220,20,60,0.2) 0%, transparent 40%);
  pointer-events: none;
}
body.ranking .version {
  position: fixed;
  bottom: 10px;
  right: 10px;
  color: rgba(255,215,0,0.6);
  font-size: 12px;
  text-shadow: 0 0 10px rgba(255,215,0,0.5);
  z-index: 1000;
}
.ranking-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 1;
}
.ranking-container h1 {
  text-align: center;
  color: #ffd700;
  font-size: 42px;
  margin-bottom: 30px;
  text-shadow: 0 0 20px rgba(255,215,0,0.5), 2px 2px 4px rgba(0,0,0,0.8);
  letter-spacing: 4px;
  font-weight: bold;
}
.ranking-filters {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(26,0,0,0.95) 0%, rgba(45,10,10,0.95) 100%);
  border: 2px solid rgba(255,215,0,0.6);
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255,215,0,0.3), 0 4px 12px rgba(0,0,0,0.5);
}
.ranking-filters label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #ffd700;
}
.ranking-filters label span {
  font-size: 14px;
  text-shadow: 0 0 5px rgba(255,215,0,0.3);
}
.ranking-filters label select {
  padding: 8px 32px 8px 12px;
  border: 2px solid #ffd700;
  border-radius: 8px;
  font-size: 14px;
  background: rgba(255,255,255,0.95);
  color: #1a0000;
  cursor: pointer;
  transition: all 0.3s;
}
.ranking-filters label select:focus {
  outline: none;
  border-color: #ffa000;
  background: #fff;
  box-shadow: 0 0 10px rgba(255,215,0,0.4);
}
.ranking-filters button {
  padding: 10px 24px;
  background: linear-gradient(135deg, #dc143c 0%, #8b0000 50%, #dc143c 100%);
  background-size: 200% 200%;
  color: #ffd700;
  border: 2px solid #ffd700;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-shadow: 0 0 5px rgba(0,0,0,0.8);
}
.ranking-filters button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(255,215,0,0.5), 0 4px 12px rgba(220,20,60,0.4);
  background-position: 100% 50%;
}
.ranking-filters button:active {
  transform: translateY(0);
}
.loading-indicator {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(180deg, rgba(26,0,0,0.95) 0%, rgba(45,10,10,0.95) 100%);
  border: 2px solid rgba(255,215,0,0.6);
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255,215,0,0.3), 0 4px 12px rgba(0,0,0,0.5);
}
.loading-indicator .spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255,215,0,0.2);
  border-top: 4px solid #ffd700;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}
.loading-indicator p {
  color: #ffd700;
  font-size: 16px;
  text-shadow: 0 0 5px rgba(255,215,0,0.3);
}
.ranking-content {
  background: linear-gradient(180deg, rgba(26,0,0,0.95) 0%, rgba(45,10,10,0.95) 100%);
  border: 2px solid rgba(255,215,0,0.6);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 0 20px rgba(255,215,0,0.3), 0 8px 24px rgba(0,0,0,0.5);
}
.ranking-error {
  color: #ffb3b3;
  font-weight: 700;
  margin: 0 0 14px;
  text-shadow: 0 0 10px rgba(0,0,0,0.6);
}
.ranking-error-details {
  margin: 0 0 14px;
}
.ranking-error-details summary {
  cursor: pointer;
  color: rgba(255,215,0,0.95);
  font-weight: 700;
  text-shadow: 0 0 10px rgba(0,0,0,0.6);
}
.ranking-error-details pre {
  margin: 10px 0 0;
  padding: 12px 14px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,215,0,0.25);
  border-radius: 10px;
  color: rgba(255,255,255,0.9);
  max-height: 220px;
  overflow: auto;
  white-space: pre-wrap;
  font-size: 12px;
}
.ranking-table {
  width: 100%;
  border-collapse: collapse;
}
.ranking-table thead {
  background: linear-gradient(135deg, #dc143c 0%, #8b0000 50%, #dc143c 100%);
  background-size: 200% 200%;
}
.ranking-table thead th {
  padding: 16px 12px;
  text-align: center;
  color: #ffd700;
  font-weight: 700;
  font-size: 15px;
  text-shadow: 0 0 10px rgba(0,0,0,0.8), 1px 1px 2px rgba(0,0,0,0.5);
  letter-spacing: 1px;
}
.ranking-table thead th:first-child {
  border-radius: 8px 0 0 0;
}
.ranking-table thead th:last-child {
  border-radius: 0 8px 0 0;
}
.ranking-table thead th.rank-col {
  width: 10%;
}
.ranking-table thead th.player-col {
  width: 30%;
  text-align: left;
}
.ranking-table thead th.score-col {
  width: 20%;
}
.ranking-table thead th.mistake-col {
  width: 15%;
}
.ranking-table thead th.date-col {
  width: 25%;
}
.ranking-table tbody tr {
  border-bottom: 1px solid rgba(255,215,0,0.2);
  transition: all 0.2s;
  background: rgba(0,0,0,0.3);
}
.ranking-table tbody tr:hover {
  background: rgba(220,20,60,0.2);
  box-shadow: 0 0 10px rgba(255,215,0,0.2);
}
.ranking-table tbody tr:last-child {
  border-bottom: none;
}
.ranking-table tbody tr.rank-1 {
  background: linear-gradient(135deg, rgba(255,215,0,0.4) 0%, rgba(255,193,7,0.3) 100%);
  font-weight: bold;
  border: 2px solid rgba(255,215,0,0.6);
  box-shadow: 0 0 20px rgba(255,215,0,0.4), inset 0 0 20px rgba(255,215,0,0.2);
}
.ranking-table tbody tr.rank-1:hover {
  box-shadow: 0 0 30px rgba(255,215,0,0.6), inset 0 0 20px rgba(255,215,0,0.3);
}
.ranking-table tbody tr.rank-2 {
  background: linear-gradient(135deg, rgba(192,192,192,0.4) 0%, rgba(169,169,169,0.3) 100%);
  font-weight: 600;
  border: 2px solid rgba(192,192,192,0.6);
  box-shadow: 0 0 15px rgba(192,192,192,0.3), inset 0 0 15px rgba(192,192,192,0.2);
}
.ranking-table tbody tr.rank-3 {
  background: linear-gradient(135deg, rgba(205,127,50,0.4) 0%, rgba(184,115,51,0.3) 100%);
  font-weight: 600;
  border: 2px solid rgba(205,127,50,0.6);
  box-shadow: 0 0 15px rgba(205,127,50,0.3), inset 0 0 15px rgba(205,127,50,0.2);
}
.ranking-table tbody td {
  padding: 14px 12px;
  text-align: center;
  font-size: 14px;
  color: #ffd700;
}
.ranking-table tbody td.rank-col {
  font-weight: bold;
  font-size: 18px;
  text-shadow: 0 0 5px rgba(255,215,0,0.5);
}
.ranking-table tbody td.player-col {
  text-align: left;
  font-weight: 600;
  text-shadow: 0 0 5px rgba(255,215,0,0.3);
}
.ranking-table tbody td.player-col .ranking-player {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ranking-table tbody td.player-col .ranking-avatar {
  height: 24px;
  width: auto;
  flex: 0 0 auto;
}
.ranking-table tbody td.score-col {
  font-size: 20px;
  font-weight: bold;
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255,215,0,0.6), 1px 1px 2px rgba(0,0,0,0.8);
}
.ranking-table tbody td.mistake-col {
  color: rgba(255,215,0,0.5);
}
.ranking-table tbody td.mistake-col.has-mistake {
  color: #dc143c;
  font-weight: 600;
  text-shadow: 0 0 5px rgba(220,20,60,0.5);
}
.ranking-table tbody td.date-col {
  color: rgba(255,215,0,0.5);
  font-size: 13px;
}
.no-data {
  text-align: center;
  padding: 60px 20px;
  color: #ffd700;
  font-size: 16px;
  text-shadow: 0 0 5px rgba(255,215,0,0.3);
}
.ranking-actions {
  text-align: center;
  margin-top: 24px;
}
.ranking-actions .back-link {
  display: inline-block;
  padding: 14px 36px;
  background: linear-gradient(135deg, #dc143c 0%, #8b0000 50%, #dc143c 100%);
  background-size: 200% 200%;
  color: #ffd700;
  text-decoration: none;
  border: 2px solid #ffd700;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 2px;
  box-shadow: 0 0 20px rgba(255,215,0,0.3), 0 4px 12px rgba(0,0,0,0.5);
  transition: all 0.3s;
  text-shadow: 0 0 10px rgba(0,0,0,0.8), 1px 1px 2px rgba(0,0,0,0.5);
}
.ranking-actions .back-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(255,215,0,0.5), 0 6px 20px rgba(0,0,0,0.5);
  background-position: 100% 50%;
}
@media (max-width: 768px) {
  .ranking-container {
    padding: 10px;
  }
  .ranking-container h1 {
    font-size: 28px;
  }
  .ranking-filters {
    flex-direction: column;
    gap: 12px;
  }
  .ranking-table {
    font-size: 12px;
  }
  .ranking-table thead th {
    padding: 12px 6px;
    font-size: 11px;
  }
  .ranking-table tbody td {
    padding: 10px 6px;
    font-size: 12px;
  }
  .ranking-table tbody td.score-col {
    font-size: 14px;
  }
  .ranking-table tbody td.date-col {
    font-size: 11px;
  }
  .ranking-table .mistake-col,
  .ranking-table .date-col {
    display: none;
  }
}
@-moz-keyframes chinese-gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@-webkit-keyframes chinese-gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@-o-keyframes chinese-gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@keyframes chinese-gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@-moz-keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@-webkit-keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@-o-keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
body.license {
  margin: 0;
  padding: 26px 18px 44px;
  background: #f4f6fb;
  color: #0b0b22;
  font-family: Century, serif;
}
.license-container {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 18px 20px 16px;
  background: rgba(255,255,255,0.97);
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 14px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.14);
}
.license-container h1 {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 800;
}
.license-container h2 {
  margin: 18px 0 6px;
  font-size: 16px;
  font-weight: 800;
}
.license-container p {
  margin: 6px 0;
  line-height: 1.5;
}
.license-credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
}
.license-text {
  margin: 12px 0 0;
  padding: 14px 16px;
  background: rgba(0,0,0,0.04);
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.08);
  font-family: Menlo, Consolas, Courier, monospace;
  font-size: 12.5px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.players-display {
  display: none !important;
  position: relative;
  pointer-events: none;
}
body.board .players-display {
  display: block !important;
}
.player-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 0;
  background: transparent;
  border: none;
  position: absolute !important;
  z-index: 450 !important;
  pointer-events: auto;
}
.player-display .avatar img {
  display: block;
  width: 150px;
  height: auto;
  filter: drop-shadow(0 4px 15px rgba(0,0,0,0.4));
}
.player-display .character-name {
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg, transparent 0%, rgba(0,0,0,0.8) 15%, rgba(0,0,0,0.85) 50%, rgba(0,0,0,0.8) 85%, transparent 100%);
  padding: 3px 20px;
  border-radius: 0;
  border: none;
  box-shadow: none;
  text-align: center;
  min-width: 80px;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: 0.5px;
}
.player-display .role-button {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 5px 14px;
  border-radius: 4px;
  background: rgba(0,0,0,0.7);
  border: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  gap: 8px;
}
.player-display .role-area {
  display: flex;
  align-items: center;
  gap: 10px;
}
.player-display .icon {
  display: none !important;
}
.player-display .role {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.player-display .role img.third-seat-role-img {
  height: 40px;
  width: auto;
  display: block;
  max-width: 120px;
}
.player-display .yakitori {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2px;
  pointer-events: none;
}
.player-display .yakitori img.yakitori-icon {
  width: 30px;
  height: auto;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,0.45));
}
.player-display:not(.player-main) .role-button {
  background: transparent;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
  border: none;
  gap: 0;
}
.player-display:not(.player-main) .yakitori {
  margin-top: 0;
}
.player-display:not(.player-main) img.yakitori-icon {
  width: 52px;
}
.player-display.player-main .yakitori {
  position: fixed;
  right: 22px;
  bottom: 22px;
  margin-top: 0;
  z-index: 520;
}
.player-display.player-main img.yakitori-icon {
  width: 110px;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.55));
}
.player-display.player-main .role-button {
  display: none;
}
.player-display.player-main {
  transform: none !important;
  left: 25px !important;
  top: 430px !important;
  right: auto !important;
  bottom: auto !important;
}
.player-display.player-xiajia {
  transform: none !important;
  left: auto !important;
  right: calc(-285px - var(--third-side-extra-x, 0px)) !important;
  top: 330px !important;
  bottom: auto !important;
}
.player-display.player-duimian {
  transform: none !important;
  left: auto !important;
  right: 50px !important;
  top: -40px !important;
  bottom: auto !important;
}
.player-display.player-shangjia {
  transform: none !important;
  left: calc(-285px - var(--third-side-extra-x, 0px)) !important;
  top: 90px !important;
  right: auto !important;
  bottom: auto !important;
}
body.board #board[data-play-mode="third"] .player-display.player-xiajia {
  top: var(--third-xiajia-player-top, 330px) !important;
}
body.board #board[data-play-mode="third"] .player-display.player-shangjia {
  top: var(--third-shangjia-player-top, 90px) !important;
}
.game-result-dialog {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.game-result-dialog .game-result-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(5px);
}
.game-result-dialog .game-result-content {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, #1a0000 0%, #2d0a0a 100%);
  border: 3px solid #ffd700;
  border-radius: 20px;
  padding: 40px;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 0 40px rgba(255,215,0,0.6), 0 10px 40px rgba(0,0,0,0.8);
  animation: result-appear 0.5s ease-out;
}
.game-result-dialog .game-result-content h2 {
  text-align: center;
  font-size: 36px;
  color: #ffd700;
  text-shadow: 0 0 20px rgba(255,215,0,0.8);
  margin: 0 0 30px 0;
  font-weight: bold;
}
.game-result-dialog .game-result-content .result-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}
.game-result-dialog .game-result-content .score-summary {
  background: rgba(0,0,0,0.6);
  border: 2px solid rgba(255,215,0,0.4);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
}
.game-result-dialog .game-result-content .score-summary:hover {
  border-color: #ffd700;
  box-shadow: 0 0 15px rgba(255,215,0,0.4);
}
.game-result-dialog .game-result-content .score-summary h3 {
  font-size: 24px;
  color: #ffd700;
  margin: 0 0 15px 0;
  text-shadow: 0 0 10px rgba(255,215,0,0.5);
}
.game-result-dialog .game-result-content .score-summary p {
  margin: 8px 0;
  color: #f9f9f9;
  font-size: 16px;
}
.game-result-dialog .game-result-content .score-summary p.final-score {
  font-size: 20px;
  color: #ffd700;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255,215,0,0.3);
}
.game-result-dialog .game-result-content .score-summary p.final-score strong {
  font-size: 28px;
  text-shadow: 0 0 10px rgba(255,215,0,0.8);
}
.game-result-dialog .game-result-content .score-summary .penalties {
  background: rgba(231,76,60,0.2);
  border-left: 3px solid #e74c3c;
  padding: 10px;
  margin: 10px 0;
  border-radius: 4px;
}
.game-result-dialog .game-result-content .score-summary .penalties p {
  color: #ff6b6b;
  margin: 5px 0;
}
.game-result-dialog .game-result-content .score-summary .bonuses {
  background: rgba(46,204,113,0.2);
  border-left: 3px solid #2ecc71;
  padding: 10px;
  margin: 10px 0;
  border-radius: 4px;
}
.game-result-dialog .game-result-content .score-summary .bonuses p {
  color: #5dff7e;
  margin: 5px 0;
}
.game-result-dialog .game-result-content .result-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}
.game-result-dialog .game-result-content .result-buttons .btn {
  padding: 15px 40px;
  font-size: 18px;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.game-result-dialog .game-result-content .result-buttons .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}
.game-result-dialog .game-result-content .result-buttons .btn:active {
  transform: translateY(0);
}
.game-result-dialog .game-result-content .result-buttons .btn.btn-primary {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: #ffd700;
  border: 2px solid #ffd700;
}
.game-result-dialog .game-result-content .result-buttons .btn.btn-primary:hover {
  box-shadow: 0 6px 16px rgba(231,76,60,0.6);
}
.game-result-dialog .game-result-content .result-buttons .btn.btn-secondary {
  background: linear-gradient(135deg, #555 0%, #333 100%);
  color: #f9f9f9;
  border: 2px solid #777;
}
.game-result-dialog .game-result-content .result-buttons .btn.btn-secondary:hover {
  background: linear-gradient(135deg, #666 0%, #444 100%);
}
.game-result-content::-webkit-scrollbar {
  width: 10px;
}
.game-result-content::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.3);
  border-radius: 10px;
}
.game-result-content::-webkit-scrollbar-thumb {
  background: rgba(255,215,0,0.5);
  border-radius: 10px;
}
.game-result-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255,215,0,0.7);
}
@-moz-keyframes result-appear {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(-50px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
@-webkit-keyframes result-appear {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(-50px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
@-o-keyframes result-appear {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(-50px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
@keyframes result-appear {
  0% {
    opacity: 0;
    transform: scale(0.8) translateY(-50px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
#game-result-screen,
#game-result-ranking-screen {
  position: fixed;
  inset: 0;
  z-index: 9500;
}
#game-result-screen.hide,
#game-result-ranking-screen.hide {
  display: none;
}
#game-result-screen {
  display: flex;
  align-items: center;
  justify-content: center;
}
.game-result-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
}
.game-result-wrap {
  position: relative;
  z-index: 1;
  width: 86vw;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.game-result-midashi {
  position: fixed;
  top: 24px;
  left: 0;
  z-index: 9520;
  width: 30vw;
  height: auto;
  filter: drop-shadow(0 6px 15px rgba(0,0,0,0.8));
}
.game-result-card {
  width: 100%;
  background: rgba(255,255,255,0.96);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(0,0,0,0.18);
}
.game-result-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', sans-serif;
}
.game-result-table th,
.game-result-table td {
  border: 1px solid rgba(0,0,0,0.14);
  padding: 10px 10px;
  text-align: center;
  vertical-align: middle;
}
.game-result-table thead th {
  background: #59cfc9;
  color: #fff;
  font-weight: 800;
}
.game-result-table thead th:first-child {
  width: 160px;
}
.game-result-table tbody tr:nth-child(even) td {
  background: rgba(0,0,0,0.04);
}
.game-result-table tbody td {
  color: #111;
}
.game-result-table .gr-label {
  text-align: left;
  padding-left: 22px;
  font-weight: 800;
  color: #111;
}
.game-result-table .gr-player-head {
  padding: 12px 6px;
}
.game-result-table .gr-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.game-result-table .gr-avatar {
  width: 78px;
  height: 78px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255,255,255,0.18);
}
.game-result-table .gr-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.game-result-table .gr-seat {
  font-size: 16px;
  letter-spacing: 1px;
}
.game-result-table .gr-name {
  font-size: 12px;
  font-weight: 800;
  opacity: 0.95;
}
.game-result-table .gr-pos {
  color: #17a6a2;
  font-weight: 900;
}
.game-result-table .gr-neg {
  color: #e6002d;
  font-weight: 900;
}
.game-result-table .gr-final-score-row td {
  border-top-width: 2px;
  background: rgba(255,255,255,0.96);
}
.game-result-table .gr-rank-row td {
  border-top-width: 2px;
  background: rgba(255,255,255,0.96);
  font-weight: 900;
}
.game-result-table .gr-rank {
  font-size: 34px;
  line-height: 1;
}
.game-result-table .gr-rank-1 {
  color: #17a6a2;
}
.game-result-table .gr-rank-4 {
  color: #e6002d;
}
.game-result-next {
  margin-top: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s;
}
.game-result-next img {
  height: 74px;
  width: auto;
  display: block;
  filter: drop-shadow(0 10px 26px rgba(0,0,0,0.35));
  transition: all 0.3s;
}
.game-result-next:hover {
  transform: translateY(-5px) scale(1.03);
}
.game-result-next:hover img {
  filter: drop-shadow(0 14px 34px rgba(0,0,0,0.45)) brightness(1.05);
}
.game-result-next:active {
  transform: translateY(-2px) scale(1.01);
}
#game-result-ranking-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.game-result-ranking-bg {
  position: fixed;
  inset: 0;
  background-image: url("../img/game_result/game_result_ranking_assets/game_result_ranking_bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 9500;
}
.game-result-ranking-midashi {
  z-index: 9520;
  pointer-events: none;
}
.game-result-ranking-content {
  position: relative;
  z-index: 9510;
  width: 92vw;
  padding-top: 110px;
  padding-bottom: 130px;
}
.game-result-ranking-error {
  color: #b00020;
  font-weight: 800;
  margin-bottom: 10px;
}
.game-result-ranking-empty {
  color: rgba(0,0,0,0.7);
  font-weight: 800;
  margin-bottom: 10px;
}
.game-result-ranking-dummy-note {
  color: rgba(0,0,0,0.6);
  font-weight: 800;
  margin-bottom: 10px;
}
.game-result-ranking-error-details {
  margin-bottom: 10px;
}
.game-result-ranking-error-details summary {
  cursor: pointer;
  color: rgba(0,0,0,0.7);
  font-weight: 800;
}
.game-result-ranking-error-details pre {
  margin: 8px 0 0;
  padding: 10px 12px;
  background: rgba(0,0,0,0.06);
  border-radius: 10px;
  max-height: 160px;
  overflow: auto;
  white-space: pre-wrap;
  font-size: 12px;
}
.game-result-ranking-submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.game-result-submit-status {
  font-weight: 800;
  color: rgba(0,0,0,0.75);
}
#game-result-submit-retry {
  appearance: none;
  border: none;
  border-radius: 999px;
  background: rgba(255,47,180,0.14);
  color: #0b0b22;
  font-weight: 900;
  padding: 8px 14px;
  cursor: pointer;
}
.game-result-submit-details summary {
  cursor: pointer;
  color: rgba(0,0,0,0.7);
  font-weight: 800;
}
.game-result-submit-details pre {
  margin: 8px 0 0;
  padding: 10px 12px;
  background: rgba(0,0,0,0.06);
  border-radius: 10px;
  max-height: 160px;
  overflow: auto;
  white-space: pre-wrap;
  font-size: 12px;
}
.game-result-ranking-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 66vh;
  overflow: auto;
  padding-right: 6px;
}
.grr-card {
  display: grid;
  grid-template-columns: 92px 1.4fr 0.8fr 0.8fr;
  align-items: center;
  background: rgba(255,255,255,0.92);
  border: 3px solid #ff2fb4;
  border-radius: 18px;
  padding: 10px 16px;
}
.grr-card.is-alt {
  background: rgba(248,232,248,0.92);
}
.grr-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.grr-new-label {
  font-size: 13px;
  font-weight: 900;
  color: #ff2b2b;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 0 rgba(255,255,255,0.7);
}
.grr-ellipsis-row {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
  color: rgba(11,11,34,0.45);
  user-select: none;
}
.grr-crown {
  width: 58px;
  height: 48px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #0b0b22;
}
.grr-crown::before {
  content: '';
  position: absolute;
  inset: 0;
  clip-path: polygon(10% 85%, 10% 30%, 24% 45%, 36% 18%, 50% 45%, 64% 18%, 76% 45%, 90% 30%, 90% 85%, 10% 85%);
  background: #ffd44d;
  border: 3px solid #0b0b22;
  border-radius: 8px;
}
.grr-crown.rank-2::before {
  background: #cdd3df;
}
.grr-crown.rank-3::before {
  background: #ff9a3c;
}
.grr-crown.rank-4plus::before {
  clip-path: none;
  border: none;
  background: rgba(0,0,0,0.12);
  border-radius: 999px;
  height: 28px;
  top: 10px;
  bottom: auto;
}
.grr-crown span {
  position: relative;
  z-index: 1;
  font-size: 24px;
}
.grr-crown.rank-out-of-range::before {
  display: none;
}
.grr-out-of-range-img {
  width: 58px;
  height: 48px;
  display: block;
  object-fit: contain;
}
.grr-col {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.grr-col .grr-label {
  font-size: 12px;
  color: rgba(0,0,0,0.55);
  font-weight: 800;
}
.grr-col .grr-value {
  font-size: 26px;
  color: #0b0b22;
  font-weight: 900;
}
.grr-name {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.grr-name-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.1;
  min-width: 0;
}
.grr-name-text {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.grr-avatar {
  width: 72px;
  height: 72px;
  border-radius: 11px;
  object-fit: cover;
  display: block;
  flex: 0 0 auto;
}
.game-result-ranking-actions {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 9520;
  display: flex;
  gap: 24px;
  align-items: center;
}
.game-result-ranking-actions button {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s;
}
.game-result-ranking-actions img {
  height: 64px;
  width: auto;
  display: block;
  filter: drop-shadow(0 10px 26px rgba(0,0,0,0.28));
  transition: all 0.3s;
}
.game-result-ranking-actions button:hover {
  transform: translateY(-5px) scale(1.03);
}
.game-result-ranking-actions button:hover img {
  filter: drop-shadow(0 14px 34px rgba(0,0,0,0.38)) brightness(1.06);
}
.game-result-ranking-actions button:active {
  transform: translateY(-2px) scale(1.01);
}
.game-result-ranking-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 9520;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  border: 6px solid rgba(255,255,255,0.95);
  background: #ff2fb4;
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
  transition: all 0.25s;
}
.game-result-ranking-top:hover {
  transform: translateY(-4px) scale(1.05);
}
.game-result-ranking-top:active {
  transform: translateY(-2px) scale(1.02);
}
.hule-dialog {
  z-index: 1000;
  background: rgba(0,0,0,0.35);
}
body.board #board .board .hule-dialog[aria-label="ホーラ情報"] {
  align-items: flex-start !important;
  padding-top: 6px;
}
body.board #board .board .hule-dialog[aria-label="ホーラ情報"] > div {
  padding: 0 !important;
  margin: 0 auto !important;
}
body.board #board .board .hule-dialog[aria-label="ホーラ情報"] > div > div {
  display: block !important;
  background: transparent !important;
  box-shadow: none !important;
  margin: 0 auto !important;
  padding: 0 !important;
  min-width: 0 !important;
}
body.board #board .board .hule-dialog[aria-label="ホーラ情報"] > div > div {
  display: block;
  width: 100%;
  max-height: 90vh;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
body.board #board .board .hule-dialog[aria-label="ホーラ情報"] .hule {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 0 0 10px;
}
body.board #board .board .hule-dialog[aria-label="ホーラ情報"] .third-score-panel {
  width: 92vw;
  max-width: 760px;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 14px 34px rgba(0,0,0,0.55);
}
body.board #board .board .hule-dialog[aria-label="ホーラ情報"] .third-score-winner-icon {
  width: 140px;
  height: 160px;
  object-fit: contain;
  background: transparent;
}
body.board #board .board .hule-dialog[aria-label="ホーラ情報"] .third-score-winner-name {
  display: none;
}
body.board #board .board .hule-dialog[aria-label="ホーラ情報"] .third-score-header {
  background: #55d0cb;
  padding: 16px 18px 12px;
  display: grid;
  grid-template-columns: 160px 1fr;
  column-gap: 18px;
  row-gap: 10px;
  align-items: center;
}
body.board #board .board .hule-dialog[aria-label="ホーラ情報"] .third-score-winner {
  display: flex;
  align-items: center;
  justify-content: center;
}
body.board #board .board .hule-dialog[aria-label="ホーラ情報"] .third-score-header-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
body.board #board .board .hule-dialog[aria-label="ホーラ情報"] .shoupai {
  display: block;
  min-height: 48px;
}
body.board #board .board .hule-dialog[aria-label="ホーラ情報"] .third-score-dora-row {
  display: flex;
  align-items: center;
  gap: 26px;
}
body.board #board .board .hule-dialog[aria-label="ホーラ情報"] .shan.baopai,
body.board #board .board .hule-dialog[aria-label="ホーラ情報"] .shan.fubaopai {
  float: none;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
}
body.board #board .board .hule-dialog[aria-label="ホーラ情報"] img.third-score-dora-label {
  width: 70px;
  height: auto;
}
body.board #board .board .hule-dialog[aria-label="ホーラ情報"] .third-score-body {
  padding: 14px 18px 0;
}
body.board #board .board .hule-dialog[aria-label="ホーラ情報"] table.hupai {
  --third-hupai-row-h: 26px;
  width: 340px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  border-collapse: collapse;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 20px;
  grid-template-rows: repeat(6, var(--third-hupai-row-h)) auto;
}
body.board #board .board .hule-dialog[aria-label="ホーラ情報"] table.hupai .name {
  font-family: "HGP行書体", /*"Weibei SC", "YuKyokasho",*/ STKaiti, serif;
  color: #111;
  font-size: clamp(10px, 2.5vw, 16px);
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}
body.board #board .board .hule-dialog[aria-label="ホーラ情報"] table.hupai .fanshu {
  font-family: "HGP行書体", /*"Weibei SC", "YuKyokasho",*/ STKaiti, serif;
  color: #111;
  font-size: clamp(10px, 2.5vw, 16px);
  text-align: right;
  white-space: nowrap;
}
body.board #board .board .hule-dialog[aria-label="ホーラ情報"] table.hupai .defen {
  font-family: "HGP行書体", /*"Weibei SC", "YuKyokasho",*/ STKaiti, serif;
  color: #111;
  font-size: 15px;
  text-align: right;
  white-space: nowrap;
}
body.board #board .board .hule-dialog[aria-label="ホーラ情報"] table.hupai tr {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 3.8em;
  align-items: baseline;
  gap: 10px;
  padding: 2px 0;
  min-height: 0;
}
body.board #board .board .hule-dialog[aria-label="ホーラ情報"] table.hupai td.name-cell {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
body.board #board .board .hule-dialog[aria-label="ホーラ情報"] table.hupai td.name-cell .name {
  flex: 0 1 auto;
  min-width: 0;
}
body.board #board .board .hule-dialog[aria-label="ホーラ情報"] table.hupai td.fanshu-cell {
  text-align: right;
}
body.board #board .board .hule-dialog[aria-label="ホーラ情報"] table.hupai tr.hide {
  display: none !important;
}
body.board #board .board .hule-dialog[aria-label="ホーラ情報"] table.hupai tr.r_defen {
  grid-column: 1/-1;
  display: block;
  padding-top: 6px;
}
body.board #board .board .hule-dialog[aria-label="ホーラ情報"] table.hupai tr.r_defen td.defen {
  display: block;
  width: 100%;
  text-align: center;
}
body.board #board .board .hule-dialog[aria-label="ホーラ情報"] .jicun {
  margin: 12px -18px 0;
  padding: 10px 18px;
  background: #f2f2f2;
  border-top: 1px solid #e6e6e6;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  font-family: Georgia, serif;
  color: #111;
  font-size: 14px;
}
body.board #board .board .hule-dialog[aria-label="ホーラ情報"] .jicun img.chouma {
  width: 84px;
  height: auto;
  vertical-align: middle;
}
body.board #board .board .hule-dialog[aria-label="ホーラ情報"] .fenpai {
  margin: 0 -18px;
  padding: 10px 18px 14px;
  background: #f2f2f2;
  font-family: Georgia, serif;
  color: #111;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-areas: ". duimian ." "shangjia . xiajia" ". main .";
  column-gap: 28px;
  row-gap: 10px;
  justify-items: center;
}
body.board #board .board .hule-dialog[aria-label="ホーラ情報"] .fenpai > div {
  position: static;
  transform: none;
  display: flex;
  gap: 6px;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: center;
  line-height: 1.1;
}
body.board #board .board .hule-dialog[aria-label="ホーラ情報"] .fenpai > div.main {
  grid-area: main;
}
body.board #board .board .hule-dialog[aria-label="ホーラ情報"] .fenpai > div.xiajia {
  grid-area: xiajia;
}
body.board #board .board .hule-dialog[aria-label="ホーラ情報"] .fenpai > div.duimian {
  grid-area: duimian;
}
body.board #board .board .hule-dialog[aria-label="ホーラ情報"] .fenpai > div.shangjia {
  grid-area: shangjia;
}
body.board #board .board .hule-dialog[aria-label="ホーラ情報"] .fenpai .player {
  display: none !important;
}
body.board #board .board .hule-dialog[aria-label="ホーラ情報"] .fenpai .feng {
  min-width: 22px;
  font-weight: 700;
}
body.board #board .board .hule-dialog[aria-label="ホーラ情報"] .fenpai .defen {
  font-weight: 700;
}
body.board #board .board .hule-dialog[aria-label="ホーラ情報"] .fenpai .diff {
  flex-basis: 100%;
  margin-left: 0;
  text-align: center;
  font-weight: 800;
}
body.board #board .board .hule-dialog[aria-label="ホーラ情報"] .fenpai .diff.plus {
  color: #00a7ff;
}
body.board #board .board .hule-dialog[aria-label="ホーラ情報"] .fenpai .diff.minus {
  color: #ff2b2b;
}
body.board #board .board .hule-dialog[aria-label="ホーラ情報"] button.third-score-next {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  align-self: center;
  -webkit-tap-highlight-color: transparent;
}
body.board #board .board .hule-dialog[aria-label="ホーラ情報"] button.third-score-next img {
  display: block;
  width: 84vw;
  max-width: 520px;
  height: auto;
}
body.board #board .board .hule-dialog[aria-label="ホーラ情報"][role="button"] button.third-score-next {
  pointer-events: auto !important;
}
@media (max-height: 600px) {
  body.board #board .board .hule-dialog[aria-label="ホーラ情報"] .hule {
    gap: 8px;
    padding: 0 0 6px;
  }
  body.board #board .board .hule-dialog[aria-label="ホーラ情報"] .third-score-body {
    padding: 10px 18px 0;
  }
  body.board #board .board .hule-dialog[aria-label="ホーラ情報"] button.third-score-next img {
    max-width: 420px;
  }
}
@media (max-height: 500px) {
  body.board #board .board .hule-dialog[aria-label="ホーラ情報"] button.third-score-next img {
    max-width: 340px;
  }
}
@media (max-height: 400px) {
  body.board #board .board .hule-dialog[aria-label="ホーラ情報"] .hule {
    transform: scale(0.9);
    transform-origin: center top;
  }
}
body.board #board .board .hule-dialog[aria-label="流局情報"] {
  background: transparent;
}
body.board #board .board .hule-dialog[aria-label="流局情報"] > div {
  padding: 0 !important;
}
body.board #board .board .hule-dialog[aria-label="流局情報"] > div > div {
  display: contents !important;
  background: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
  min-width: 0 !important;
  border: none !important;
}
body.board #board .board .hule-dialog[aria-label="流局情報"] > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-height: 90vh;
  padding: 0;
}
body.board #board .board .hule-dialog[aria-label="流局情報"] .pingju {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 0 0 10px;
}
body.board #board .board .hule-dialog[aria-label="流局情報"] .third-ryukyoku-panel {
  width: 92vw;
  max-width: 760px;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 14px 34px rgba(0,0,0,0.55);
  border: none;
}
body.board #board .board .hule-dialog[aria-label="流局情報"] .third-ryukyoku-panel .third-ryukyoku-header {
  background: #55d0cb;
  padding: 16px 18px 12px;
  min-height: 192px;
  display: flex;
  align-items: center;
  justify-content: center;
}
body.board #board .board .hule-dialog[aria-label="流局情報"] .third-ryukyoku-panel .third-ryukyoku-header table.hupai {
  width: 100%;
  margin: 0;
  border: none;
  border-collapse: collapse;
}
body.board #board .board .hule-dialog[aria-label="流局情報"] .third-ryukyoku-panel .third-ryukyoku-header table.hupai tr.r_hupai {
  display: block;
  text-align: center;
}
body.board #board .board .hule-dialog[aria-label="流局情報"] .third-ryukyoku-panel .third-ryukyoku-header table.hupai td.name-cell {
  display: block;
  border: none;
  padding: 0;
}
body.board #board .board .hule-dialog[aria-label="流局情報"] .third-ryukyoku-panel .third-ryukyoku-header table.hupai .name {
  font-family: "HGP行書体", /*"Weibei SC", "YuKyokasho",*/ STKaiti, serif;
  color: #111;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 0.2em;
  white-space: nowrap;
}
body.board #board .board .hule-dialog[aria-label="流局情報"] .third-ryukyoku-body {
  padding: 0 18px 0;
}
body.board #board .board .hule-dialog[aria-label="流局情報"] .third-ryukyoku-panel .jicun {
  margin: 0 -18px 0;
  padding: 15px 18px;
  background: #f2f2f2;
  border-top: 1px solid #e6e6e6;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  font-family: Georgia, serif;
  color: #111;
  font-size: 16px;
}
body.board #board .board .hule-dialog[aria-label="流局情報"] .third-ryukyoku-panel .jicun img.chouma {
  width: 100px;
  height: auto;
  vertical-align: middle;
}
body.board #board .board .hule-dialog[aria-label="流局情報"] .third-ryukyoku-panel .fenpai {
  margin: 0 -18px;
  padding: 15px 18px 21px;
  background: #f2f2f2;
  font-family: Georgia, serif;
  color: #111;
  font-size: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-areas: ". duimian ." "shangjia . xiajia" ". main .";
  column-gap: 28px;
  row-gap: 15px;
  justify-items: center;
}
body.board #board .board .hule-dialog[aria-label="流局情報"] .third-ryukyoku-panel .fenpai > div {
  position: static;
  transform: none;
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: center;
  line-height: 1.2;
}
body.board #board .board .hule-dialog[aria-label="流局情報"] .third-ryukyoku-panel .fenpai > div.main {
  grid-area: main;
}
body.board #board .board .hule-dialog[aria-label="流局情報"] .third-ryukyoku-panel .fenpai > div.xiajia {
  grid-area: xiajia;
}
body.board #board .board .hule-dialog[aria-label="流局情報"] .third-ryukyoku-panel .fenpai > div.duimian {
  grid-area: duimian;
}
body.board #board .board .hule-dialog[aria-label="流局情報"] .third-ryukyoku-panel .fenpai > div.shangjia {
  grid-area: shangjia;
}
body.board #board .board .hule-dialog[aria-label="流局情報"] .third-ryukyoku-panel .fenpai .player {
  display: none !important;
}
body.board #board .board .hule-dialog[aria-label="流局情報"] .third-ryukyoku-panel .fenpai .feng {
  min-width: 26px;
  font-weight: 700;
  font-size: 16px;
}
body.board #board .board .hule-dialog[aria-label="流局情報"] .third-ryukyoku-panel .fenpai .defen {
  font-weight: 700;
  font-size: 17px;
}
body.board #board .board .hule-dialog[aria-label="流局情報"] .third-ryukyoku-panel .fenpai .diff {
  flex-basis: 100%;
  margin-left: 0;
  text-align: center;
  font-weight: 800;
  font-size: 16px;
}
body.board #board .board .hule-dialog[aria-label="流局情報"] .third-ryukyoku-panel .fenpai .diff.plus {
  color: #00a7ff;
}
body.board #board .board .hule-dialog[aria-label="流局情報"] .third-ryukyoku-panel .fenpai .diff.minus {
  color: #ff2b2b;
}
body.board #board .board .hule-dialog[aria-label="流局情報"] .pingju > button.third-score-next {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
body.board #board .board .hule-dialog[aria-label="流局情報"] .pingju > button.third-score-next img {
  display: block;
  width: 88vw;
  max-width: 520px;
  height: auto;
}
.third-cutin-overlay {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 2000;
  pointer-events: auto;
}
.third-cutin-band {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100vw;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 25%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.3) 75%, rgba(0,0,0,0) 100%);
  opacity: 0;
  transition: opacity 200ms ease;
}
.third-cutin-band.visible {
  opacity: 1;
}
.third-cutin-img {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  height: 100%;
  width: auto;
  max-height: 100%;
}
.third-agari-cutin-overlay {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 2000;
  pointer-events: auto;
}
.third-agari-cutin-band {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100vw;
  background: #000;
  opacity: 0;
  transition: opacity 200ms ease;
}
.third-agari-cutin-band.visible {
  opacity: 1;
}
.third-agari-cutin-img {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  height: 100%;
  width: auto;
  max-height: 100%;
}
