/* センター：ルームカード・アカウント・布陣編集・大会・投稿
 * 読み込み順：base.css → 局面を扱う画面では board.css → カテゴリ.css
 * 条件付き指定は直前の通常指定と併せて確認する。ファイル追加は事前承認制。
 */

.centerPage {
  position: relative;
  width: min(1220px, 100% - 180px);
  margin: 0px auto;
  padding: 0px 0px 32px;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 205px;
  padding: 30px 34px;
  border-bottom: 3px double var(--control-edge);
  background: repeating-linear-gradient(0deg, rgba(21, 63, 41, 0.267) 0px, rgba(21, 63, 41, 0.267) 1px, transparent 1px, transparent 4px), linear-gradient(115deg, rgb(21, 63, 41), rgb(21, 63, 41) 56%, rgb(21, 63, 41));
}

.centerTitle {
  position: relative;
  margin: 0px;
  font-size: 34px;
  letter-spacing: 3px;
  text-shadow: rgba(255, 255, 255, 0) 0px 2px 4px;
}

.centerTitle span {
  font-size: 23px;
  font-weight: 500;
  letter-spacing: 1px;
}

.heroCopy {
  position: relative;
  text-align: right;
  margin: 32px 0px 0px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 2px;
}

.heroGrid {
  position: absolute;
  z-index: -1;
  inset: -110px -60px -100px 35%;
  transform: rotate(-16deg);
  background: repeating-linear-gradient(0deg, transparent 0px, transparent 62px, rgba(21, 63, 41, 0.3) 63px, rgba(21, 63, 41, 0.3) 65px), repeating-linear-gradient(90deg, transparent 0px, transparent 62px, rgba(21, 63, 41, 0.3) 63px, rgba(21, 63, 41, 0.3) 65px);
  opacity: 0.55;
}

.heroGrid span {
  position: absolute;
  display: grid;
  place-items: center;
  width: 82px;
  height: 94px;
  border: 1px solid var(--control-edge);
  background: rgba(21, 63, 41, 0.88);
  color: rgb(255, 255, 255);
  font-size: 44px;
  clip-path: polygon(50% 0px, 86% 15%, 100% 100%, 0px 100%, 14% 15%);
}

.heroGrid span:nth-child(1) {
  top: 110px;
  left: 40%;
}

.heroGrid span:nth-child(2) {
  top: 225px;
  left: 16%;
}

.heroGrid span:nth-child(3) {
  top: 260px;
  left: 66%;
}

.centerContent {
  padding: 22px 28px 38px;
}

.intro {
  margin: 0px 0px 30px;
  color: rgb(32, 37, 31);
}

.roomSection {
  margin-top: 30px;
}

.roomList {
  display: grid;
  grid-template-columns: repeat(2, minmax(0px, 1fr));
  gap: 12px;
  color: rgb(32, 37, 31);
  padding: 4px 0px 12px;
}

.roomButton {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 20px;
  border-top: 1px solid var(--control-edge);
  border-right: 1px solid var(--control-edge);
  border-bottom: 1px solid var(--control-edge);
  border-image: none;
  border-left: 3px solid var(--green);
  background: linear-gradient(115deg, rgb(247, 250, 243), rgb(247, 250, 243));
  color: rgb(32, 37, 31);
  text-decoration: none;
  overflow-wrap: anywhere;
  font-weight: 600;
}

.roomButton::after {
  content: "›";
  font-size: 24px;
  color: var(--green);
}

.roomButton:hover {
  border-color: rgb(140, 184, 144);
  background: var(--control-hover);
}

@media (max-width: 900px) {
  .centerPage {
    width: calc(100% - 28px);
}
}

@media (max-width: 600px) {
  .centerPage {
    width: calc(100% - 16px);
}

  .hero {
    min-height: 185px;
    padding: 24px 18px;
}

  .centerTitle {
    font-size: 26px;
    letter-spacing: 1px;
}

  .centerTitle span {
    display: block;
    font-size: 17px;
    margin-top: 4px;
}

  .heroCopy {
    font-size: 14px;
    margin-top: 24px;
}

  .heroGrid {
    left: 10%;
}

  .centerContent {
    padding: 18px 14px 28px;
}

  .intro {
    font-size: 14px;
    margin-bottom: 24px;
}

  .roomList {
    grid-template-columns: 1fr;
}
}

.centerContent .intro {
  margin-bottom: 14px;
}

.centerContent .roomSection {
  margin: 0px 0px 20px;
}

.accountGrid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin: 0px;
  font-size: 13px;
  line-height: 1.5;
}

.accountGrid > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0px;
  max-width: 100%;
}

.accountGrid dt {
  color: var(--muted);
  white-space: nowrap;
}

.accountGrid dd {
  margin: 0px;
  overflow-wrap: anywhere;
  min-width: 0px;
}

.centerView .notice {
  margin-top: 10px;
  padding: 6px 10px;
}

.centerView .roomList {
  display: block;
  padding: 0px;
  overflow-x: auto;
}

.roomTable {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  text-align: left;
}

.roomTable th {
  padding: 5px 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}

.roomTable td {
  padding: 10px;
  border-bottom: 1px solid var(--control-edge);
  overflow-wrap: anywhere;
}

.roomTable a {
  font-weight: 600;
  text-decoration: none;
}

.roomTable a:hover {
  text-decoration: underline;
}

.roomTable .roomRules {
  font-size: 12px;
  color: rgb(40, 99, 57);
  white-space: normal;
}

@media (max-width: 600px) {
  .accountGrid {
    gap: 4px 16px;
}

  .roomTable {
    font-size: 13px;
}

  .roomTable th,
  .roomTable td {
    padding: 6px 4px;
}

  .roomTable th:first-child {
    width: 38%;
}

  .roomTable .roomRules {
    font-size: 11px;
}

  .centerContent .roomSection {
    margin-bottom: 16px;
}
}

.roomTable .roomEntry {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--control-edge);
  background: rgb(247, 250, 243);
  color: rgb(32, 37, 31);
  text-decoration: none;
}

.roomTable .roomEntry:hover {
  border-color: rgb(140, 184, 144);
  background: var(--control-hover);
  text-decoration: none;
}

.centerConnections {
  text-align: right;
  color: var(--muted);
  margin: 0px 0px 10px;
  font-size: 13px;
}

.centerRoomCard {
  color: var(--control-ink);
}

.roomCount {
  color: rgb(32, 37, 31);
}

.centerRoomCard .roomRules {
  justify-content: space-between;
}

.ruleSeparator {
  color: rgb(32, 37, 31);
}

.roomRules > span:not(.ruleSeparator) {
  white-space: nowrap;
}

.queueClock circle {
  stroke-width: 6;
  stroke-linecap: butt;
}

@media (max-width: 600px) {
  .centerRoomCard .roomRules {
    grid-column: 1 / -1;
    justify-content: flex-start;
}
}

.roomCards {
  display: grid;
}

.centerRoomCard {
  grid-template-columns: minmax(110px, 1fr) 70px minmax(0px, 3fr);
  align-items: center;
  display: flex;
  gap: 0px;
  border-top: 1px solid var(--control-edge);
  background: linear-gradient(145deg, rgb(243, 252, 241), rgb(243, 252, 241) 65%);
}

.centerRoomCard:hover {
  text-decoration: none;
  background: linear-gradient(145deg, var(--control-hover), var(--control-hover) 65%);
  border-color: rgb(140, 184, 144);
}

.centerRoomCard:focus-visible {
  text-decoration: none;
  background: linear-gradient(145deg, var(--control-hover), var(--control-hover) 65%);
  border-color: rgb(140, 184, 144);
}

@media (max-width: 600px) {
  .centerRoomCard {
    grid-template-columns: 1fr auto;
}
}

.centerRoomCard > strong {
  font-size: 15px;
}

.roomCardArt {
  display: grid;
  width: 100%;
  font-size: 38px;
}

.centerRoomCard .roomRules {
  flex-flow: column wrap;
  display: flex;
  align-items: stretch;
  gap: 0px;
  width: 100%;
  font-size: 12px;
  line-height: 1.5;
}

.roomCardAction {
  margin-top: auto;
}

.roomCards {
  padding: 8px 0px;
}

.centerRoomCard {
  padding: 8px;
}

.roomCardArt {
  color: rgb(32, 37, 31);
  place-items: center;
  background: radial-gradient(rgba(238, 237, 249, 0.314), transparent 70%), repeating-linear-gradient(0deg, transparent 0px, transparent 25px, rgba(238, 237, 249, 0.063) 25px, rgba(238, 237, 249, 0.063) 26px), repeating-linear-gradient(90deg, transparent 0px, transparent 25px, rgba(238, 237, 249, 0.063) 25px, rgba(238, 237, 249, 0.063) 26px);
  font-family: serif;
  height: 48px;
  margin: 4px 0px;
}

.roomCount {
  font-size: 11px;
  margin: 4px 0px;
}

.roomCardAction {
  display: block;
  width: 100%;
  border-top: 1px solid rgba(195, 206, 193, 0.333);
  color: rgb(49, 91, 56);
  font-size: 11px;
  letter-spacing: 0px;
  padding: 3px 0px;
}

.centerRoomCard .roomRules > span {
  white-space: normal;
  padding: 2px 0px;
  border-bottom: 0px;
}

.centerRoomCard {
  text-decoration: none;
  flex-direction: column;
  border-right: 1px solid var(--control-edge);
  border-bottom: 1px solid var(--control-edge);
  border-left: 1px solid var(--control-edge);
  border-image: none;
  box-shadow: rgba(82, 99, 75, 0.15) 0px 8px 20px;
  text-align: center;
  overflow-wrap: anywhere;
  min-height: 0px;
  border-radius: 8px;
  user-select: none;
}

.roomCards {
  grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 156px));
  gap: 10px;
  justify-content: start;
}

.roomLifetime {
  font-size: 11px;
  line-height: 1.5;
  color: rgb(40, 99, 57);
  margin-top: 5px;
}

.roomLifetime.closingSoon {
  color: rgb(181, 43, 40);
}

.centerRoomCard.roomClosed {
  cursor: default;
  border-color: var(--control-edge);
}

.centerRoomCard.roomClosed:hover {
  background: linear-gradient(145deg, var(--control-hover), var(--control-hover) 65%);
}

.accountStats table {
  width: 100%;
  max-width: 620px;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.accountStats caption {
  text-align: left;
  font-weight: 700;
  padding: 0px 0px 6px;
}

.accountStats th,
.accountStats td {
  padding: 5px 8px;
  text-align: right;
  border-bottom: 1px solid var(--control-edge);
}

.accountStats th:first-child {
  text-align: left;
  white-space: nowrap;
}

.accountStats thead th {
  color: rgb(32, 37, 31);
  font-size: 12px;
  font-weight: 400;
}

.accountStats tbody th {
  font-size: 13px;
  font-weight: 400;
}

.accountStats tbody td {
  font-size: 14px;
}

.accountStats p {
  color: rgb(32, 37, 31);
  margin: 0px;
}

@media (max-width: 480px) {
  .accountStats th,
  .accountStats td {
    padding: 5px 3px;
}

  .accountStats thead th {
    font-size: 11px;
}

  .accountStats {
    overflow-x: auto;
}

  .accountStats th:last-child,
  .accountStats td:last-child {
    white-space: nowrap;
}
}

.playerBar > span:not(.eyebrow) {
  font-size: 21px;
}

.playerBar .timeLine {
  font-size: 14px;
}

.playerBar .clock {
  font-size: 40px;
}

.formationEditor {
  max-width: 540px;
  margin: 20px auto;
  text-align: center;
}

.formationSlot {
  width: 250px;
  max-width: 100%;
  padding: 12px;
  background: rgb(243, 252, 241);
  border: 1px solid var(--control-edge);
  text-align: center;
}

.formationSlot h3 {
  margin: 0px 0px 8px;
}

#formationPanel {
  padding: 12px;
}

#formationNotice {
  min-height: 1.5em;
}

#formationCount {
  font-variant-numeric: tabular-nums;
}

#formationOpen {
  font: inherit;
  padding: 8px 12px;
  background: var(--control-surface);
  color: rgb(32, 37, 31);
  border: 1px solid var(--control-edge);
  cursor: pointer;
}

.formationSlot button {
  margin-top: 12px;
  font: inherit;
  padding: 8px 12px;
  cursor: pointer;
}
#formationOpen:hover:where(:not(.uiAction)),
#formationBack:hover:where(:not(.uiAction)),
.formationSlot button:hover:where(:not(.uiAction)){
  background: var(--control-hover);
}

.formationSlot button:disabled {
  cursor: default;
}

#formationBack {
  font-style: inherit;
  font-variant: inherit;
  font-weight: inherit;
  font-stretch: inherit;
  line-height: inherit;
  font-family: inherit;
  font-optical-sizing: inherit;
  font-size-adjust: inherit;
  font-kerning: inherit;
  font-feature-settings: inherit;
  font-variation-settings: inherit;
  font-language-override: inherit;
  background: var(--control-surface);
  color: rgb(32, 37, 31);
  border: 1px solid var(--control-edge);
  cursor: pointer;
  font-size: 14px;
  padding: 5px 9px;
}

body.centerView {
  padding-right: 0px;
  padding-bottom: 8px;
  padding-left: 0px;
  background-size: 8px 8px;
  line-height: 1.4;
}

.centerView .centerPage {
  margin: 0px auto;
  padding: 0px 0px 24px;
  z-index: 1;
}

.centerView .hero {
  position: relative;
  margin: 0px 0px 4px;
  border-width: 1px;
  border-style: solid;
  border-image: none;
  background: rgb(21, 63, 41);
}

.centerView .heroImage {
  display: block;
}

.centerView .hero::before {
  content: "";
  position: absolute;
  inset: 0px;
  pointer-events: none;
  z-index: 1;
}

.centerView .hero::after {
  content: "";
  position: absolute;
  inset: 0px;
  pointer-events: none;
  background: linear-gradient(transparent 50%, rgba(21, 63, 41, 0.4) 51%) 0px 0px / 100% 4px;
  animation: 4s linear 0s infinite normal none running center-scan;
}

@keyframes center-scan {
100% { background-position: 0px 40px; }
}

.centerView .centerTitle {
  margin: 0px;
  text-align: center;
  z-index: 3;
}

.centerView .heroCopy {
  letter-spacing: 0px;
}

.centerView .centerConnections {
  margin: 2px 0px 6px;
}

.centerView a {
  text-decoration: none;
}

.centerView a:hover {
  text-decoration: underline;
}

.centerView button.uiControl {
  background: rgba(20, 20, 20, 0.8);
  color: rgb(221, 221, 221);
  border: 1px solid rgb(85, 85, 85);
  border-radius: 2px;
  padding: 6px 14px;
  box-shadow: rgba(0, 0, 0, 0.533) 0px 0px 5px inset;
}

.centerView button.uiControl:hover:not(:disabled) {
  border-color: rgb(51, 136, 255);
}

.centerView button.uiControl:disabled {
  color: rgb(136, 136, 136);
  border-color: rgb(51, 51, 51);
}

.centerView .roomCards {
  display: flex;
}

.centerView .centerRoomCard {
  position: relative;
  flex-grow: 0;
  flex-shrink: 1;
  max-width: 100%;
  min-height: 0px;
  text-align: center;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.centerView .centerRoomCard::before {
  position: absolute;
  width: 20px;
  height: 20px;
  pointer-events: none;
  border-color: var(--control-edge);
  border-style: solid;
  transition: border-color 0.2s;
  top: 0px;
  left: 0px;
  border-width: 2px 0px 0px 2px;
}

.centerView .centerRoomCard::after {
  position: absolute;
  width: 20px;
  height: 20px;
  pointer-events: none;
  border-color: var(--control-edge);
  border-style: solid;
  transition: border-color 0.2s;
  bottom: 0px;
  right: 0px;
  border-width: 0px 2px 2px 0px;
}

.centerView .roomCardArt {
  height: 48px;
  margin: 4px 0px;
}

.centerView .centerRoomCard .roomRules > span {
  padding: 2px 0px;
  border: 0px;
}

.centerView a.centerRoomCard:not(.roomClosed):hover,
.centerView a.centerRoomCard:not(.roomClosed):focus-visible {
  background: rgba(225, 239, 221, 0.15);
  border-color: rgb(140, 184, 144);
  color: var(--control-ink);
  text-decoration: none;
  box-shadow: rgba(82, 99, 75, 0.133) 0px 0px 15px, rgba(82, 99, 75, 0.15) 0px 0px 10px inset;
}

.centerView a.centerRoomCard:not(.roomClosed):hover::before,
.centerView a.centerRoomCard:not(.roomClosed):hover::after,
.centerView a.centerRoomCard:not(.roomClosed):focus-visible::before,
.centerView a.centerRoomCard:not(.roomClosed):focus-visible::after {
  border-color: rgb(140, 184, 144);
}

.centerView .centerRoomCard.roomClosed,
.centerView .centerRoomCard.roomClosed:hover {
  background: rgba(225, 239, 221, 0.7);
  border-color: rgb(140, 184, 144);
  filter: grayscale(1);
  box-shadow: rgba(82, 99, 75, 0.15) 0px 0px 10px inset;
}

.centerView footer {
  margin: 30px auto 0px;
  padding: 6px 0px 0px;
  border-top: 1px solid var(--control-edge);
  font-size: 13px;
}

@media (max-width: 600px) {
  .centerView .heroImage {
    object-fit: cover;
}
}

.centerView .centerPage {
  width: min(100%, 50% + 392px);
  max-width: none;
}

.centerView .hero {
  min-height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px 12px;
  gap: 12px;
}

.centerView .heroImage {
  position: absolute;
  inset: 0px;
  width: 100%;
  height: 100%;
  min-height: 0px;
  background: url("/img/top-header.png?v-num=128") center center / cover no-repeat;
}

.centerView .centerTitle {
  position: relative;
  inset: auto;
  width: 100%;
  padding: 0px;
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: 1px;
  overflow-wrap: anywhere;
}

.centerView .heroCopy {
  position: relative;
  margin-top: 0px;
  padding: 0px;
  line-height: 1.5;
}

.centerView .roomCards {
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
}

.centerView .centerRoomCard > strong {
  width: 100%;
  border-bottom-width: 1px;
  border-bottom-style: dashed;
  font-size: 25px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.centerView .roomCardArt {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  background: rgb(238, 237, 249);
  color: rgb(32, 37, 31);
  font-family: serif;
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: 2px;
  min-height: 48px;
  padding: 2px 4px;
}

.centerView #formationOpen {
  color: rgb(32, 37, 31);
}

.centerView #formationOpen:hover,
.centerView #formationOpen:focus-visible {
  background: rgba(225, 239, 221, 0.15);
  border-color: rgb(140, 184, 144);
  box-shadow: rgba(82, 99, 75, 0.133) 0px 0px 15px, rgba(82, 99, 75, 0.15) 0px 0px 10px inset;
}

.centerView #formationOpen:hover::before,
.centerView #formationOpen:hover::after {
  border-color: rgb(140, 184, 144);
}

.centerView #roomEmpty,
.centerView #formationNotice {
  text-align: center;
}

.centerView .roomSection {
  margin-top: 12px;
}

.centerView .formationSlot {
  position: relative;
}
.centerView #formationBack:where(:not(.uiAction)),
.centerView .formationSlot button:where(:not(.uiAction)){
  background: rgba(240, 247, 233, 0.8);
  border-color: var(--control-edge);
  border-radius: 2px;
  color: rgb(32, 37, 31);
}
.centerView #formationBack:hover:where(:not(.uiAction)),
.centerView .formationSlot button:hover:not(:disabled):where(:not(.uiAction)){
  background: rgba(225, 239, 221, 0.15);
  border-color: rgb(140, 184, 144);
}

.centerView .formationSlot::after {
  border-right: 2px solid var(--control-edge);
  border-bottom: 2px solid var(--control-edge);
}

.centerView .formationSlot::before {
  position: absolute;
  width: 20px;
  height: 20px;
  border-image: none;
  pointer-events: none;
  border-width: 2px 0px 0px 2px;
  border-style: solid none none solid;
  border-color: var(--control-edge) currentcolor currentcolor var(--control-edge);
  top: 0px;
  left: 0px;
}

.centerView .formationSlot::after {
  position: absolute;
  width: 20px;
  height: 20px;
  border-image: none;
  pointer-events: none;
  bottom: 0px;
  right: 0px;
  border-left: 0px;
  border-top: 0px;
}

@media (max-width: 600px) {
  .centerView .centerTitle {
    font-size: 17px;
}
}

.centerView .heroCopy {
  z-index: 3;
  inset: auto;
  margin-right: 0px;
  margin-bottom: 0px;
  margin-left: 0px;
  align-self: flex-end;
  text-align: right;
  overflow-wrap: anywhere;
  font-size: 12px;
}

.centerView #formationOpen {
  display: flex;
  padding: 8px;
  font-size: inherit;
}

.centerView #formationOpen .roomCardArt {
  text-align: center;
  margin: 0px 0px 4px;
}

.centerView .formationIcon {
  display: block;
  font-size: 32px;
  line-height: 1.2;
  margin: 2px auto 6px;
}

.centerView .accountGrid {
  justify-content: center;
  text-align: center;
}

.centerView .accountGrid > div {
  flex-wrap: wrap;
  justify-content: center;
}

.centerView .accountLinks {
  display: flex;
  font-size: 14px;
}

.centerView .accountLinks[hidden] {
  display: none;
}

.centerView #authNotice {
  background: none;
  border: 0px;
  color: rgb(32, 37, 31);
  text-align: center;
}

.centerView .accountStats {
  max-width: 760px;
  margin: 12px auto 0px;
}

.centerView .accountStats table {
  margin: 0px auto;
  max-width: none;
}

.centerView .accountStats caption {
  text-align: center;
  font-size: 18px;
}

.centerView .accountStats th,
.centerView .accountStats td {
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.centerView .rankIcon {
  display: inline-block;
  width: 26px;
  height: 26px;
  object-fit: contain;
  margin-right: 5px;
  vertical-align: middle;
}

.centerView .rankLabel {
  display: inline-block;
  vertical-align: middle;
}

@container (max-width: 600px) {
  .centerView .accountStats .statsDetail {
    display: none;
}
}

@media (max-width: 600px) {
  .centerView .heroCopy {
    font-size: 11px;
}
}

.centerView .accountLinks {
  flex-flow: column wrap;
  justify-content: center;
  text-align: center;
  overflow-wrap: anywhere;
  align-items: center;
}

.centerView .accountLinks a {
  display: flex;
  line-height: 1.5;
}

.centerView .accountLinks a:hover {
  color: var(--control-ink);
}

.centerView .accountLinks a:focus-visible {
  background: var(--control-hover);
  border-color: rgb(140, 184, 144);
  color: var(--control-ink);
}

.centerView a.postedCard {
  cursor: pointer;
}

.centerView .postedCard > strong {
  font-size: 15px;
  margin-top: 6px;
}

.centerView .postedCard img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.postComposer {
  margin: 16px auto;
  max-width: 540px;
  border: 1px solid var(--control-edge);
  padding: 10px 14px;
  background: rgb(243, 252, 241);
}

.postComposer summary {
  cursor: pointer;
  color: rgb(32, 37, 31);
}

.postComposer form {
  display: grid;
  gap: 10px;
  padding-top: 14px;
}

.postComposer label {
  display: grid;
  gap: 5px;
}

.postComposer label[hidden] {
  display: none;
}

.postComposer input,
.postComposer textarea,
.postComposer select {
  box-sizing: border-box;
  max-width: 100%;
  width: 100%;
  background: rgb(255, 255, 255);
  color: rgb(32, 37, 31);
  border: 1px solid var(--control-edge);
  padding: 8px;
  font: inherit;
}

.postComposer p {
  margin: 0px;
  font-size: 13px;
  color: rgb(32, 37, 31);
}

.postComposer button {
  padding: 7px 12px;
  cursor: pointer;
}

.postComposer button:disabled {
  cursor: wait;
}

#stockRefresh {
  cursor: pointer;
  font-size: 12px;
  padding: 3px 8px;
}

.accountStats {
  margin-top: 20px;
}

.stockGameNote,
.chatTerms {
  font-size: 13px;
  color: var(--muted);
}

#roomEntryNotice:empty,
#chatNotice:empty {
  display: none;
}

.roomNoStock {
  opacity: 0.55;
  cursor: default;
}

.identityLine {
  display: block;
  width: 100%;
  min-width: 0px;
  overflow: hidden;
  white-space: nowrap;
  line-height: 1.5;
}

.identityLine > span {
  display: inline-block;
  white-space: nowrap;
}

.postedCard small {
  color: var(--muted);
}

#chatPanel {
  margin-top: 24px;
}

#chatMessages {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  overflow-anchor: auto;
}

.chatMessage {
  padding: 8px 12px;
  border-left: 2px solid var(--control-edge);
  background: rgb(243, 252, 241);
  min-width: 0px;
}

.chatMessage small {
  color: var(--muted);
}

.chatMessage p {
  margin: 4px 0px 0px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

#chatForm {
  margin-top: 12px;
  font-size: 14px;
}

.chatInput {
  display: flex;
  gap: 8px;
}

.chatInput input {
  min-width: 0px;
  flex: 1 1 0%;
  background: rgb(255, 255, 255);
  color: rgb(32, 37, 31);
  border: 1px solid var(--control-edge);
  padding: 8px;
  font: inherit;
}

.chatInput button {
  padding: 6px 16px;
}

.centerView:has(#formationPanel:not([hidden])) #statsPanel,
.centerView:has(#formationPanel:not([hidden])) #chatPanel {
  display: none;
}

#statsPanel {
  margin-top: 20px;
}

.chatAuthor {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0px;
}

.chatAuthor .identityLine {
  width: auto;
  max-width: 50%;
  flex: 0 1 auto;
}

.classicLink {
  display: inline-block;
  font-size: 13px;
  color: var(--control-ink);
  margin: 4px 0px;
}

.sponsorBadge {
  display: block;
  white-space: pre-line;
  overflow-wrap: anywhere;
  color: rgb(32, 37, 31);
  background: rgb(255, 246, 206);
  padding: 6px;
  font-size: 12px;
  line-height: 1.5;
}

.sponsorBadge[hidden] {
  display: none;
}

.centerRoomCard.sponsoredRoom {
  border-color: var(--control-edge);
}

.centerView:has(#formationPanel:not([hidden])) #sponsorComposer {
  display: none;
}

.centerView button.uiControl:not(#formationOpen) {
  background: var(--hud-surface);
  border-color: var(--hud-edge);
  color: var(--hud-ink);
  box-shadow: rgba(255, 255, 255, 0.208) 0px 1px inset, rgba(0, 0, 0, 0.6) 0px -1px inset, rgba(0, 0, 0, 0.133) 0px 0px 0px 3px inset;
  text-shadow: rgb(0, 0, 0) 0px 1px 2px;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.centerView .accountLinks a {
  text-align: left;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 100%;
  box-sizing: border-box;
  padding: 9px 14px;
  border-width: 1px;
  border-style: solid;
  border-image: none;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.centerView button.uiControl:not(#formationOpen):not(:disabled):hover,
.centerView .accountLinks a:hover {
  background: var(--hud-hover);
  border-color: rgb(204, 119, 0);
  box-shadow: rgba(255, 255, 255, 0.208) 0px 1px inset, rgba(255, 136, 0, 0.125) 0px 0px 8px;
}

.centerView button.uiControl:not(#formationOpen):disabled {
  background: rgb(32, 32, 32);
  color: rgb(136, 136, 136);
  box-shadow: none;
}

.centerView .accountLinks a::after {
  content: "→";
  flex-shrink: 0;
  color: var(--hud-accent);
  text-shadow: rgba(255, 255, 255, 0) 0px 1px;
}

.centerView .postComposer {
  position: relative;
}

.centerView .postComposer::before {
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
  top: 0px;
  left: 0px;
}

.centerView .postComposer::after {
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
  bottom: 0px;
  right: 0px;
}

.centerView .postComposer summary,
.centerView .postComposer summary::marker {
  color: rgb(32, 37, 31);
}

.centerView .postComposer input,
.centerView .postComposer textarea,
.centerView .postComposer select,
.centerView .chatInput input {
  background: rgb(255, 255, 255);
  border-color: var(--control-edge);
  box-shadow: rgba(82, 99, 75, 0.15) 0px 2px 5px inset;
}

.centerView .chatMessage {
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.02), transparent), rgb(243, 252, 241);
  border-left-color: var(--control-edge);
}

.centerView .chatAuthor strong {
  color: rgb(32, 37, 31);
}

.centerView .chatMessage small {
  color: rgb(82, 96, 79);
}

.centerView .accountStats thead {
  background: linear-gradient(rgba(255, 255, 255, 0.035), transparent), rgb(233, 238, 230);
}

.centerView .sponsorBadge {
  border-left: 0px;
  background: linear-gradient(110deg, rgb(255, 246, 206), rgb(255, 246, 206));
  color: rgb(32, 37, 31);
}

@media (prefers-reduced-motion: reduce) {
.centerView button:where(:not(.uiAction)),
.centerView a:where(:not(.uiAction)),
.centerView .centerRoomCard:where(:not(.uiAction)){
    transition: none;
}
}

.centerView .centerRoomCard {
  min-width: 0px;
  flex-basis: 188px;
  width: 188px;
}

.centerView #formationOpen {
  align-items: center;
}

.centerView .postedCard p {
  font-size: 14px;
}

.postDialog {
  width: 560px;
  max-width: calc(-24px + 100vw);
  max-height: calc(100dvh - 24px);
  overflow: auto;
  padding: 24px;
  background: rgb(243, 252, 241);
  color: rgb(32, 37, 31);
  border: 1px solid var(--control-edge);
  box-shadow: rgba(82, 99, 75, 0.15) 0px 8px 30px;
}

.postDialog::backdrop {
  background: rgba(0, 0, 0, 0.4);
}

.postDialog h2 {
  margin: 0px 0px 12px;
  border-left: 4px solid var(--control-edge);
  padding-left: 12px;
  font-size: 22px;
}

#postFullAuthor {
  color: rgb(32, 37, 31);
  overflow-wrap: anywhere;
}

#postFullText {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.7;
}

.centerView .roomCredits {
  margin-top: 24px;
}

.centerView .postedCard {
  justify-content: flex-start;
  cursor: default;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
}

.centerView .postedCard .postRead {
  font-size: 13px;
  flex-shrink: 0;
  min-height: 32px;
  margin-top: 10px;
  white-space: normal;
}

.centerView .postedCard p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.6;
  margin: 4px 0px;
  text-align: left;
  overflow: hidden;
  flex-shrink: 0;
  max-height: none;
}

.adminMessage {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 6px 8px;
  margin: 0px 0px 6px;
  font-size: 14px;
  border: 2px solid rgb(137, 151, 135);
  background: rgb(255, 255, 255);
  color: rgb(32, 46, 58);
  line-height: 1.65;
  font-weight: 500;
}

.adminMessage[data-kind="a"] {
  border-color: rgb(180, 101, 91);
  background: rgb(255, 240, 237);
  color: rgb(143, 33, 30);
  font-weight: 600;
}

.roomSummary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  margin: 6px 0px;
}

.roomSummary .stockGameNote {
  margin: 0px;
  min-width: 0px;
}

.centerView .roomSummary .centerConnections {
  margin: 0px 0px 0px auto;
  white-space: nowrap;
}

.formationEditing #postComposer {
  display: none !important;
}

.centerView .formationSlots {
  gap: 10px;
  margin: 12px 0px;
}

.centerView .formationSlot {
  padding: 6px;
}

.centerView .formationSlot button {
  margin-top: 6px;
  padding: 5px 10px;
}

.centerView .formationSlot .formPreview:not(.formationBoard) {
  padding: 12px 0px;
}

.formationControls {
  display: grid;
  grid-template-columns: minmax(0px, 1fr) auto minmax(0px, 1fr);
  align-items: center;
  gap: 4px;
  margin-top: 12px;
}

.formationControls .actions {
  grid-area: 1 / 2;
  justify-content: center;
  flex-wrap: nowrap;
  margin: 0px;
}

.formationControls .actions button {
  white-space: nowrap;
}

.formationControls #formationCount {
  grid-area: 1 / 3;
  justify-self: end;
  margin: 0px;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .formationControls {
    font-size: 12px;
}

  .formationControls .actions {
    gap: 4px;
}

  .formationControls .actions button {
    padding: 7px 5px;
}
}

#globalMagic {
  margin-top: 24px;
}

#globalMagic:has(#postComposer[hidden]):has(#sponsorComposer[hidden]),
.formationEditing #globalMagic {
  display: none;
}

.centerView #memberLinks {
  flex-flow: wrap;
  align-items: stretch;
  gap: 8px 12px;
}

.centerView #memberLinks a {
  flex: 0 1 auto;
}

.centerView .accountStats tbody td {
  font-variant-numeric: tabular-nums;
}

.centerView #guestLinks {
  font-size: 16px;
  flex-flow: wrap;
  align-items: stretch;
}

.centerView #guestLinks a {
  flex: 0 1 auto;
  white-space: nowrap;
  min-height: 36px;
  padding: 5px 12px;
  gap: 10px;
  border-color: var(--control-edge);
  border-radius: 7px;
  background: rgb(247, 250, 243);
  box-shadow: none;
  text-shadow: none;
}

.centerView #guestLinks a:hover {
  background: var(--control-hover);
  border-color: rgb(140, 184, 144);
  box-shadow: none;
  color: var(--control-ink);
}

.centerView #guestLinks a:focus-visible {
  background: var(--control-hover);
  border-color: rgb(140, 184, 144);
  box-shadow: none;
  color: var(--control-ink);
  outline: var(--focus-fallback) solid 2px;
  outline-offset: 2px;
}

.centerView #guestLinks a::after {
  color: var(--control-ink);
  text-shadow: none;
}

.centerView #guestLinks .guestStatus {
  flex: 0 0 100%;
  text-align: center;
  color: var(--control-ink);
}

.recentKifuList a {
  display: grid;
  gap: 6px;
  padding: 10px;
  text-decoration: none;
  overflow-wrap: anywhere;
  background: var(--panel);
}

.recentKifuList a:hover {
  background: var(--control-hover);
}

.recentKifuList time {
  font-size: 13px;
  color: var(--muted);
}

.kifuPlayers {
  display: grid;
  grid-template-columns: minmax(0px, 1fr) auto minmax(0px, 1fr);
  gap: 12px;
  align-items: stretch;
}

.recentKifuList {
  list-style: none;
  padding: 0px;
  max-width: 760px;
  margin: 0px auto;
}

.kifuPlayer {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0px, 1fr);
  grid-template-rows: auto auto auto;
  gap: 3px 8px;
  min-width: 0px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 14px 10px 8px;
}

.kifuWinner {
  border-color: rgb(140, 184, 144);
  background: rgba(248, 248, 254, 0.125);
}

.kifuWinnerBadge {
  position: absolute;
  right: 8px;
  top: -9px;
  padding: 0px 5px;
  border-radius: 3px;
  background: rgb(248, 248, 254);
  color: rgb(32, 37, 31);
  font-size: 11px;
  font-weight: bold;
}

.kifuSide {
  grid-area: 3 / 1;
  color: rgb(32, 37, 31);
  font-size: 12px;
  text-align: center;
}

.kifuInsignia {
  grid-area: 1 / 1 / span 2;
  width: 40px;
  height: 40px;
  object-fit: contain;
  align-self: center;
}

.kifuName {
  grid-area: 1 / 2;
}

.kifuUser {
  grid-area: 2 / 2;
  font-size: 12px;
  color: var(--muted);
}

.kifuStats {
  grid-area: 3 / 2;
  display: flex;
  flex-wrap: wrap;
  gap: 3px 8px;
  font-size: 13px;
}

.kifuRate {
  white-space: nowrap;
}

.kifuVs {
  align-self: center;
  color: rgb(32, 37, 31);
  font-size: 25px;
  font-weight: bold;
  font-style: italic;
}

.kifuOutcome {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 4px 8px;
  font-size: 14px;
}

.kifuOutcome small {
  font-size: 11px;
  color: var(--muted);
}

@media (max-width: 480px) {
  .kifuPlayers {
    gap: 5px;
}

  .recentKifuList a {
    padding: 10px 3px;
}

  .kifuPlayer {
    grid-template-columns: 28px minmax(0px, 1fr);
    gap: 2px 4px;
    padding: 12px 4px 6px;
}

  .kifuInsignia {
    width: 28px;
    height: 32px;
}

  .kifuVs {
    font-size: 18px;
}

  .kifuStats {
    grid-area: 4 / 1 / auto / span 2;
    justify-content: center;
}

  .kifuSide {
    grid-row: 3;
}
}

.centerView .recentKifuList a:visited,
.centerView .recentKifuList a:hover {
  border-width: 1px;
  border-style: solid;
  border-image: none;
}

.recentKifuList li + li {
  border-top: 0px;
  margin-top: 8px;
}

@media (min-width: 601px) {
  .kifuVs {
    padding-right: 18px;
}
}

.centerView .centerRoomCard .roomRules {
  line-height: 18px;
}

.centerView .roomCredits {
  font-size: 14px;
  border-top-width: 1px;
  border-top-style: solid;
}

.centerView footer,
.centerView footer span {
  color: rgb(204, 204, 204);
}

body.centerView {
  background-color: rgb(17, 17, 17);
  background-image: radial-gradient(rgb(51, 51, 51) 1px, transparent 1px);
}

body.centerView :is(.centerRoomCard, :where(#formationOpen), .formationSlot, .formationChoice, :where(#queuePanel), .matchModeCard) {
  color: var(--theme-ink);
  background: var(--theme-card);
  border-color: var(--theme-line);
  border-radius: var(--theme-radius);
  box-shadow: var(--theme-shadow);
}

body.centerView .roomSidebar,
body.centerView .roomCredits {
  color: var(--theme-muted);
  background: var(--theme-page);
  border-color: var(--theme-line);
}

body.centerView :is(.accountGrid dt, .notice, .eyebrow) {
  color: var(--theme-muted);
}

body.centerView :is(.accountLinks a, .backLink, input, textarea, select),
body.centerView button.uiControl {
  color: var(--theme-ink);
  background: var(--theme-card);
  border-color: var(--theme-line);
  border-radius: var(--theme-radius);
  box-shadow: rgba(52, 75, 48, 0.08) 0px 1px 3px;
  text-shadow: none;
}

body.centerView :is(.centerRoomCard > strong, .centerRoomCard .roomRules, .queueRules, .queueElapsed) {
  color: var(--theme-ink);
}

body.centerView .centerRoomCard:not(:disabled):not(.roomClosed):hover,
body.centerView .formationChoice:not(:disabled):not(.roomClosed):hover,
body.centerView .matchModeCard:not(:disabled):not(.roomClosed):hover {
  color: var(--theme-ink);
  background: var(--theme-soft);
  text-decoration: none;
}

@media (hover: hover) {
  body.centerView :is(button.uiControl:not(:disabled), input:not(:disabled), textarea:not(:disabled), select:not(:disabled), .backLink, .accountLinks a, .recentKifuList a, .centerRoomCard:not([aria-disabled="true"]):not(.roomClosed), .formationSlot, .formationChoice:not(:disabled), .postComposer, .postedCard):hover {
    outline: 2px solid var(--theme-hover);
    outline-offset: 0px;
    border-color: var(--theme-hover) !important;
}
}
body.centerView :is(button, a, input, textarea, select):focus-visible:where(:not(.uiAction)){
  outline: 2px solid var(--theme-hover);
  outline-offset: 2px;
}

.centerView a,
.centerView a:hover {
  color: var(--theme-ink);
}

.centerView .hero {
  isolation: isolate;
  border-color: var(--theme-line);
}

.centerView .heroImage {
  z-index: 0;
  filter: brightness(0.95);
}

.centerView .hero::before {
  background: radial-gradient(transparent 50%, rgba(23, 58, 34, 0.25) 100%);
}

.centerView .hero::after {
  z-index: 2;
  opacity: 0.25;
}

.centerView .centerContent {
  border-color: var(--theme-line);
}

.centerView .centerRoomCard > strong {
  border-bottom-color: var(--theme-line);
}

.centerView #formationOpen .roomCardArt {
  justify-content: center;
  align-items: center;
  letter-spacing: 0px;
  min-height: 0px;
  height: auto;
  background: transparent;
}

.centerView #formationOpen {
  flex: 0 1 188px;
  font-style: inherit;
  font-variant: inherit;
  font-weight: inherit;
  font-stretch: inherit;
  line-height: inherit;
  font-family: inherit;
  font-optical-sizing: inherit;
  font-size-adjust: inherit;
  font-kerning: inherit;
  font-feature-settings: inherit;
  font-variation-settings: inherit;
  font-language-override: inherit;
  justify-content: center;
  width: 188px;
}

.centerView button.uiControl:hover:not(:disabled) {
  color: var(--theme-ink);
  background: var(--theme-soft);
}

.centerView .accountGrid {
  color: var(--theme-ink);
}

.centerView .accountStats {
  container-type: inline-size;
  overflow: visible;
  color: var(--theme-ink);
}

.centerView .accountStats table {
  table-layout: auto;
}

.centerView .accountStats tbody :is(th, td) {
  color: var(--theme-ink);
}

.centerView .recentKifuList a {
  border-width: 1px;
  border-style: solid;
  border-image: none;
  color: var(--theme-ink);
  background: var(--theme-card);
  border-color: var(--theme-line);
  border-radius: var(--theme-radius);
  box-shadow: var(--theme-shadow);
  text-decoration: none;
}

.centerView .recentKifuList a:visited,
.centerView .recentKifuList a:hover {
  color: var(--theme-ink);
  background: var(--theme-card);
  border-color: var(--theme-line);
  border-radius: var(--theme-radius);
  box-shadow: var(--theme-shadow);
  text-decoration: none;
}

.centerView .recentKifuList a:focus-visible {
  border-width: 1px;
  border-style: solid;
  border-image: none;
  color: var(--theme-ink);
  background: var(--theme-card);
  border-color: var(--theme-line);
  border-radius: var(--theme-radius);
  box-shadow: var(--theme-shadow);
  text-decoration: none;
}

.centerView .kifuWinner {
  border-color: var(--theme-green);
  background: rgb(241, 243, 223);
}

.centerView .kifuName,
.centerView .kifuSide,
.centerView .kifuRate,
.centerView .kifuOutcome {
  color: var(--theme-ink);
}

.centerView :is(.postComposer, .postedCard, #chatMessages) {
  color: var(--theme-ink);
  background: var(--theme-card);
  border-color: var(--theme-line);
}

.centerView footer a,
.centerView footer a:hover {
  color: rgb(182, 214, 255);
}

body.centerView .inkFrame {
  position: relative;
  border-color: transparent !important;
  outline: none !important;
  box-shadow: none !important;
}

body.centerView :is(a, button):hover > .cardNavMarker,
body.centerView :is(a, button):focus-visible > .cardNavMarker {
  background: rgb(252, 229, 199);
  color: rgb(146, 71, 9);
}

body.centerView.effectPaused .hero::before,
body.centerView.effectPaused .hero::after {
  animation-play-state: paused !important;
}

body.centerView {
  color: rgb(32, 46, 58);
}

body.centerView .centerContent {
  border-top: 0px;
}

body.centerView .centerConnections {
  color: rgb(244, 248, 231);
  font-size: 11px;
  font-weight: 700;
}

body.centerView .classicLink {
  color: rgb(35, 55, 68);
}

body.centerView .centerRoomCard {
  background: rgb(255, 253, 245);
  border: 2px solid rgb(166, 183, 189);
  border-radius: 6px 4px;
  box-shadow: rgba(52, 73, 52, 0.075) 0px 2px 3px, rgba(255, 255, 255, 0.533) 0px 0px 0px 2px inset;
  color: rgb(34, 49, 62);
  padding: 10px 8px;
}

body.centerView .centerRoomCard:nth-child(2) {
  background: rgb(245, 249, 247);
  border-color: rgb(152, 179, 184);
}

body.centerView #formationOpen {
  background: rgb(251, 252, 233);
  border: 2px solid rgb(188, 196, 128);
  border-radius: 5px 6px 4px 5px;
  box-shadow: rgba(52, 73, 52, 0.075) 0px 2px 3px;
}

body.centerView .centerRoomCard > strong {
  font-weight: 800;
}

body.centerView .centerRoomCard .roomCardArt {
  font-family: inherit;
  font-size: 21px;
  font-weight: 800;
  color: rgb(34, 49, 62);
  background: transparent;
  text-shadow: none;
  letter-spacing: 0px;
  border-color: transparent;
}

body.centerView .centerRoomCard .roomRules {
  font-size: 13px;
  color: rgb(38, 55, 64);
}

body.centerView .centerRoomCard .roomRules > span {
  color: rgb(38, 55, 64);
}

body.centerView .roomCount {
  font-weight: 700;
  color: rgb(50, 75, 69);
}

body.centerView .formationIcon {
  filter: none;
}

body.centerView .accountGrid {
  font-size: 15px;
  font-weight: 750;
}

body.centerView .accountGrid dt {
  font-size: 12px;
  font-weight: 600;
}

body.centerView #stockRefresh {
  padding: 2px 7px;
  font-size: 12px;
}

body.centerView #memberLinks a {
  color: rgb(37, 59, 74);
}

body.centerView .accountStats {
  border: 1px solid rgb(208, 198, 156);
  border-radius: 5px;
  box-shadow: rgba(115, 93, 28, 0.082) 0px 1px 3px;
}

body.centerView .accountStats table {
  border-radius: 5px;
}

body.centerView .accountStats th {
  border-bottom: 1px solid rgb(221, 213, 184);
  border-right: 1px solid rgb(230, 223, 201);
}

body.centerView .accountStats tr > :last-child {
  border-right: 0px;
}

body.centerView .accountStats tbody tr:last-child > * {
  border-bottom: 0px;
}

body.centerView .accountStats thead th {
  font-size: 13px;
  font-weight: 750;
}

body.centerView .accountStats tbody th {
  font-size: 14px;
  font-weight: 700;
}

body.centerView .accountStats tbody td {
  font-size: 16px;
  font-weight: 750;
}

body.centerView .recentKifuLink {
  border: 1px solid rgb(209, 199, 159);
  border-radius: 6px 4px;
  box-shadow: rgba(118, 93, 23, 0.063) 0px 2px 4px;
}

body.centerView .kifuPlayer {
  border-radius: 5px;
}

body.centerView .kifuPlayer.kifuWinner {
  border-width: 2px;
  border-style: solid;
  border-image: none;
  box-shadow: rgba(64, 104, 67, 0.125) 0px 1px 3px;
}

body.centerView .kifuOutcome {
  color: rgb(45, 99, 76);
  font-weight: 700;
}

body.centerView .kifuOutcome code {
  font-weight: 400;
}

body.centerView #chatMessages {
  border-color: rgb(197, 200, 168);
  border-radius: 5px;
  box-shadow: rgba(93, 99, 52, 0.08) 0px 1px 3px;
}

body.centerView a:hover {
  color: rgb(36, 58, 72);
}

body.centerView .centerRoomCard:hover,
body.centerView #formationOpen:hover {
  background: rgb(255, 248, 233);
  border-color: rgb(233, 139, 55);
  outline: rgb(233, 139, 55) solid 1px;
  outline-offset: 0px;
  box-shadow: rgba(202, 116, 34, 0.137) 0px 2px 6px;
}

@media (max-width: 600px) {
  body.centerView .accountGrid {
    font-size: 14px;
}

  body.centerView .accountGrid dt {
    font-size: 11px;
}

  body.centerView .accountStats tbody th {
    font-size: 12px;
}

  body.centerView .accountStats tbody td {
    font-size: 14px;
}

  body.centerView .accountStats thead th {
    font-size: 11px;
}
}

body.centerView a:not(.centerRoomCard):not(.casualPrimary):not(.casualPuzzle):not(.recentKifuList a) {
  color: rgb(23, 57, 87);
  text-decoration-line: underline;
  text-decoration-color: rgba(23, 57, 87, 0.376);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-skip-ink: auto;
}

body.centerView a:not(.centerRoomCard):not(.casualPrimary):not(.casualPuzzle):not(.recentKifuList a):hover,
body.centerView a:not(.centerRoomCard):not(.casualPrimary):not(.casualPuzzle):not(.recentKifuList a):focus-visible {
  color: rgb(23, 57, 87);
  text-decoration-line: underline;
  text-decoration-color: rgb(239, 138, 36);
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}

body.centerView footer a:not(.centerRoomCard):not(.casualPrimary):not(.casualPuzzle):not(.recentKifuList a) {
  color: rgb(182, 214, 255);
  text-decoration-color: rgba(182, 214, 255, 0.5);
}

body.centerView footer a:hover {
  text-decoration-color: rgb(239, 138, 36) !important;
}

body.centerView .centerContent {
  padding-right: 12px;
  padding-bottom: 14px;
  padding-left: 12px;
}

body.centerView .classicLink {
  font-size: 15px;
  font-weight: 700;
  display: inline-block;
  margin-right: 0px;
  margin-left: 0px;
}

body.centerView .roomCards {
  gap: 8px;
  padding-right: 0px;
  padding-left: 0px;
}

body.centerView .roomCards .centerRoomCard {
  padding: 8px 7px 18px;
}

body.centerView .accountGrid {
  gap: 8px 18px;
}

body.centerView .accountLinks {
  gap: 6px 16px;
}

body.centerView .accountStats {
  margin-top: 7px;
}

body.centerView .accountStats th {
  padding: 6px 5px;
}

body.centerView .accountStats td {
  border-bottom: 1px solid rgb(221, 213, 184);
  border-right: 1px solid rgb(230, 223, 201);
  padding: 6px 5px;
}

body.centerView .recentKifuList a {
  padding: 8px;
  gap: 5px;
}

body.centerView .recentKifuList li + li {
  margin-top: 6px;
}

body.centerView .kifuPlayer {
  padding: 7px;
}

body.centerView .kifuOutcome {
  padding-right: 24px;
}

body.centerView .chatTerms {
  margin: 7px 0px;
}

body.centerView #chatForm {
  margin-top: 9px;
}

body.centerView #chatForm > label {
  display: block;
  margin-bottom: 8px;
}

body.centerView .postComposer {
  border-radius: 5px;
  box-shadow: rgba(93, 99, 52, 0.08) 0px 1px 3px;
  margin-top: 8px;
  margin-bottom: 8px;
  padding: 8px 10px;
}

body.centerView .postComposer::before,
body.centerView .postComposer::after {
  content: none !important;
  border: 0px !important;
}

body.centerView .roomCredits {
  padding-top: 10px;
  padding-bottom: 10px;
}

body.centerView .roomCredits p {
  margin: 8px 0px;
}

body.centerView .cardNavMarker {
  position: absolute;
  right: 7px;
  bottom: 6px;
  width: 17px;
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  z-index: 5;
}

body.centerView a:hover > .cardNavMarker,
body.centerView a:focus-visible > .cardNavMarker {
  background: rgb(252, 229, 199);
  color: rgb(146, 71, 9);
}

@media (max-width: 600px) {
  body.centerView .accountGrid {
    gap: 7px 12px;
}

  body.centerView .accountStats th,
  body.centerView .accountStats td {
    padding: 6px 3px;
}

  body.centerView .kifuPlayer {
    padding: 5px;
}

  body.centerView .classicLink {
    font-size: 14px;
}
}

body.centerView .roomCredits {
  background-color: var(--theme-page);
}

body.centerView .accountStats .inkOutline .inkNormal {
  opacity: 1 !important;
}

body.centerView .accountStats .inkOutline .inkHot,
body.centerView .accountStats .inkOutline .inkHalo {
  display: none !important;
}

body.centerView .postComposer.inkFrame {
  border-color: transparent !important;
}

body.centerView #formationOpen:hover > .cardNavMarker,
body.centerView #formationOpen:focus-visible > .cardNavMarker {
  background: rgb(252, 229, 199);
  color: rgb(146, 71, 9);
}

body.centerView .postComposer > summary {
  cursor: pointer;
  position: static;
}

body.centerView #memberLinks a:hover,
body.centerView #memberLinks a:focus-visible {
  text-decoration-line: underline;
  text-decoration-color: rgb(239, 138, 36);
  text-decoration-thickness: 3px;
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

body.centerView .roomCredits ul {
  padding-left: 18px;
  margin: 8px 0px;
}

body.centerView .roomCredits li {
  margin: 4px 0px;
  padding-left: 0px;
}

body.centerView.lightPaused .hero::before,
body.centerView.lightPaused .hero::after {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  body.centerView .hero::before,
  body.centerView .hero::after {
    animation: auto ease 0s 1 normal none running none !important;
}
}

body.centerView #memberLinks a::after {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-shadow: none;
  content: "›";
  margin: 0px;
}

body.centerView .kifuWinnerBadge {
  z-index: 6;
  top: -12px;
  right: 7px;
  font-size: 14px;
  font-weight: 800;
  line-height: 20px;
  padding: 2px 7px;
  border-radius: 4px;
  box-shadow: rgba(32, 70, 51, 0.19) 0px 1px 2px;
}

body.centerView .kifuWinner {
  padding-top: 12px;
}

body.centerView #memberLinks a {
  padding: 3px 0px;
  font-size: 15px;
  font-weight: 700;
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  justify-content: flex-start;
  gap: 4px;
  text-shadow: none;
}

body.centerView #memberLinks a:hover {
  text-shadow: none;
}

body.centerView #guestLinks .guestStatus,
body.centerView #guestLinks a {
  font-weight: 700;
}

.rateHistoryCharts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0px, 1fr));
  gap: 12px;
}

.rateHistoryCharts article {
  min-width: 0px;
  border: 1px solid rgb(184, 187, 169);
  border-radius: 8px;
  padding: 8px;
  background: rgb(255, 253, 247);
}

.rateHistoryCharts h3 {
  margin: 0px 0px 6px;
  font-size: 16px;
}

.rateHistoryChart svg {
  display: block;
  width: 100%;
  height: auto;
  touch-action: pan-y;
}

.rateHistoryChart .rateGrid {
  stroke: rgb(213, 216, 206);
  stroke-width: 1;
}

.rateHistoryChart .rateAxis {
  fill: rgb(53, 68, 59);
  font-size: 12px;
}

.rateHistoryChart .rateUp,
.rateHistoryChart .rateDown {
  stroke-width: 2.5;
  fill: none;
}

.rateHistoryChart .rateUp {
  stroke: rgb(37, 131, 76);
}

.rateHistoryChart .rateDown {
  stroke: rgb(195, 74, 67);
}

.rateHistoryChart .rateFlat {
  stroke-width: 2.5;
  fill: none;
  stroke: rgb(104, 115, 111);
}

.rateHistoryChart .ratePoint {
  fill: rgb(104, 115, 111);
}

.rateHistoryChart .rateCross {
  stroke: rgb(70, 82, 72);
  stroke-width: 1;
  pointer-events: none;
}

.rateHistoryReadout {
  min-height: 20px;
  margin: 4px 0px 0px;
  font-size: 13px;
  color: rgb(37, 59, 74);
  overflow-wrap: anywhere;
}

.centerView:has(#formationPanel:not([hidden])) #rateHistoryPanel {
  display: none;
}

@media (max-width: 600px) {
  .rateHistoryCharts {
    grid-template-columns: 1fr;
}
}

body.centerView {
  font-family: "Noto Sans CJK JP", Meiryo, "Yu Gothic", sans-serif;
  font-weight: 500;
  padding-top: 0px;
}

body.centerView .hero {
  margin-bottom: 2px;
}

body.centerView .centerContent {
  padding-top: 3px;
}

body.centerView .classicLink {
  margin-top: 2px;
  margin-bottom: 2px;
}

body.centerView .roomCards {
  padding-top: 1px;
  padding-bottom: 2px;
}

body.centerView .centerRoomCard > strong {
  padding-bottom: 3px;
  margin-bottom: 2px;
}

body.centerView .accountGrid {
  margin: 7px 0px;
}

body.centerView .accountLinks {
  margin: 6px 0px 7px;
}

body.centerView a.centerRoomCard .roomCardArt {
  height: 36px;
  min-height: 36px;
  margin: 2px 0px;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

body.centerView .roomCardCharacter {
  display: block;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  object-fit: contain;
}

body.centerView .roomCardCharacter[hidden] {
  display: none;
}

body.centerView a.centerRoomCard .roomCardArt > span {
  margin-left: auto;
}

body.centerView .roomCardHeader {
  display: grid;
  grid-template-columns: 52px minmax(0px, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  width: 100%;
  gap: 3px 4px;
}

body.centerView .roomCardHeader .roomCardCharacter {
  grid-area: 1 / 1 / 3;
  width: 52px;
  height: 72px;
  object-fit: contain;
  align-self: center;
}

body.centerView .roomCardHeader > strong {
  grid-area: 1 / 2;
  min-width: 0px;
  padding: 0px 0px 4px;
  margin: 0px;
  border-bottom: 5px solid transparent;
  color: rgb(34, 49, 62);
  font-size: 20px;
  line-height: 1.3;
  font-weight: 800;
  text-align: right;
  overflow-wrap: anywhere;
}

body.centerView a.centerRoomCard .roomCardHeader .roomCardArt {
  grid-area: 2 / 2;
  width: 100%;
  height: auto;
  min-height: 26px;
  padding: 0px;
  margin: 0px;
  justify-content: flex-end;
  align-self: start;
  font-size: 18px;
}

.kifuCardHead {
  display: grid;
  grid-template-columns: minmax(0px, 1fr) auto minmax(0px, 1fr);
  align-items: start;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 12px;
  color: rgb(82, 100, 92);
}

.kifuCardHead time {
  min-width: 0px;
  overflow-wrap: anywhere;
}

.kifuCardRule {
  text-align: center;
  font-weight: 700;
  white-space: nowrap;
}

.kifuCardPv {
  text-align: right;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.kifuCardFoot {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 6px;
  padding-right: 24px;
}

.kifuCardMoves {
  flex: 0 0 auto;
  font-size: 12px;
  color: rgb(82, 100, 92);
  font-variant-numeric: tabular-nums;
}

.kifuCardFoot > :last-child {
  flex: 1 1 0%;
  min-width: 0px;
  margin: 0px;
  padding: 0px;
}

body .centerReturn,
body.centerView #formationBack.centerReturn,
body.kifuView > header a.centerReturn {
  display: inline-block;
  padding: 4px 0px;
  margin: 0px;
  border-radius: 0px;
  color: rgb(23, 57, 87);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: underline 1px rgba(23, 57, 87, 0.376);
  text-underline-offset: 3px;
  cursor: pointer;
  border: 0px !important;
  background: transparent !important;
  box-shadow: none !important;
}

body .centerReturn:hover,
body .centerReturn:focus-visible,
body.centerView #formationBack.centerReturn:hover,
body.centerView #formationBack.centerReturn:focus-visible,
body.kifuView > header a.centerReturn:hover,
body.kifuView > header a.centerReturn:focus-visible {
  color: rgb(23, 57, 87);
  text-decoration: underline 3px rgb(239, 138, 36);
  text-underline-offset: 3px;
  outline: none;
}

body.centerView .centerToolCards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 0 1 156px;
  width: 156px;
  max-width: 100%;
  min-width: 0px;
  align-self: stretch;
}

body.centerView .centerToolCards :is(#formationOpen, #kifuListOpen) {
  flex: 1 1 0px;
  min-height: 64px;
  background: rgb(251, 252, 233);
}

body.centerView .centerToolCards :is(#formationOpen, #kifuListOpen):hover {
  background: rgb(255, 248, 233);
}

body.centerView .centerToolCards :is(#formationOpen, #kifuListOpen) .roomCardArt {
  margin: 0px;
}

body.centerView .centerToolCards .formationIcon {
  flex: 0 0 auto;
}

body.centerView .centerToolCards .toolCardIcon {
  flex: 0 0 auto;
}

body.centerView .centerToolCards :is(#formationOpen, #kifuListOpen) {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 2px solid rgb(188, 196, 128);
  border-radius: 5px 6px 4px 5px;
  color: rgb(34, 49, 62);
  text-decoration: none;
  padding: 6px 3px;
  gap: 3px;
}

body.centerView .centerToolCards :is(#formationOpen, #kifuListOpen) .roomCardArt {
  line-height: 1.3;
  height: auto;
  min-height: 0px;
  white-space: nowrap;
  overflow-wrap: normal;
  font-size: 16px;
  flex: 0 0 auto;
  width: auto;
  padding: 0px;
}

body.centerView .centerToolCards .formationIcon {
  object-fit: contain;
  margin: 0px;
  order: -1;
  width: 28px;
  height: 32px;
  font-size: 28px;
  line-height: 32px;
}

body.centerView .centerToolCards .toolCardIcon {
  object-fit: contain;
  margin: 0px;
  order: -1;
  width: 28px;
  height: 32px;
  font-size: 28px;
  line-height: 32px;
}

body.centerView .centerContent .roomSection {
  margin-bottom: 5px;
}

body.centerView.formationEditing #adminMessages {
  display: none !important;
}

#casualOpen[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}

#casualOpen .roomCardArt {
  position: static;
  display: block;
}

body.centerView #casualOpen .roomCardHeader {
  grid-template-rows: auto;
}

body.centerView #casualOpen .roomCardHeader .roomCardCharacter {
  grid-row: 1;
}

body.centerView #casualOpen .roomCardHeader > strong {
  align-self: center;
  text-align: right;
  white-space: nowrap;
  overflow-wrap: normal;
}

body.centerView #casualOpen .casualRules {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  white-space: normal;
}

body.centerView .centerRoomCard .roomRules {
  font-weight: 700;
  align-items: flex-start;
  text-align: left;
}

body.centerView .centerRoomCard .roomCount {
  width: 100%;
  text-align: center;
}

body.centerView .roomUnavailable {
  margin: 20px 0px;
  padding: 16px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

body.centerView .roomUnavailable > span {
  display: block;
}

body.centerView .roomUnavailable > span + span {
  margin-top: 8px;
}

body.centerView .gardenStrip {
  position: relative;
  min-width: 0px;
  overflow: hidden;
  z-index: 3;
}

body.centerView .gardenRow {
  position: absolute;
  top: 0px;
  left: 0px;
  display: flex;
  flex-wrap: nowrap;
  transform-origin: left top;
}

body.centerView .gardenChoices {
  position: absolute;
  right: 8px;
  top: 6px;
  width: 124px;
  max-width: 30%;
}

body.centerView .gardenChoices .gardenRow,
body.centerView #gardenBelow .gardenRow {
  left: auto;
  right: 0px;
  transform-origin: right top;
}

body.centerView .hero .centerTitle {
  width: calc(100% - 272px);
  margin-left: auto;
  margin-right: auto;
}

body.centerView .heroLower {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  position: relative;
  z-index: 2;
  width: 100%;
}

body.centerView #gardenHeader {
  flex: 0 0 40%;
}

body.centerView .heroLower .heroCopy {
  flex: 1 1 0%;
  min-width: 0px;
}

body.centerView .centerClassicRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

body.centerView .centerClassicRow .classicLink {
  flex: 0 0 auto;
}

body.centerView #gardenBelow {
  flex: 0 1 42%;
}

body.centerView button.gardenCell {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 0px;
  min-height: 0px;
  margin: 0px;
  padding: 0px;
  /* 旧汎用buttonの上書きで実際に使われていた角形状を部品側で所有。 */
  border-radius: var(--theme-radius);
  line-height: 1;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  opacity: 1;
  cursor: pointer;
  transition: none;
  border: 2px solid transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: 0px !important;
}

body.centerView button.gardenCell:disabled {
  cursor: default;
  opacity: 1;
}

body.centerView button.gardenCell[data-available="1"],
body.centerView button.gardenCell[aria-pressed="true"] {
  border-color: rgb(237, 137, 45) !important;
}

body.centerView button.gardenCell:focus-visible {
  outline-offset: -4px;
  outline: rgb(237, 137, 45) solid 2px !important;
}

body.centerView .gardenNotice {
  display: block;
  font-size: 12px;
  color: rgb(113, 56, 11);
}

body.centerView .gardenNotice:empty {
  display: none;
}

@media (max-width: 900px) {
  body.centerView .gardenChoices {
    position: relative;
    top: auto;
    right: auto;
    align-self: flex-end;
    max-width: 100%;
}

  body.centerView .hero .centerTitle {
    width: 100%;
}

  body.centerView .hero {
    gap: 6px;
}
}

@media (max-width: 600px) {
  body.centerView .heroLower {
    flex-direction: column;
    align-items: stretch;
}

  body.centerView .heroLower .heroCopy {
    flex: 0 0 auto;
    width: 100%;
}

  body.centerView #gardenHeader {
    order: 1;
    flex: 0 0 auto;
    width: 40%;
    align-self: flex-start;
}
}

body.centerView .centerClassicText {
  flex: 1 1 0%;
  min-width: 0px;
  overflow-wrap: anywhere;
}

body.centerView .centerClassicText .classicLink {
  white-space: nowrap;
}

body.centerView #authNotice {
  font-weight: 700;
  margin: 4px 0px 3px;
  padding: 0px;
  line-height: 1.45;
}

body.centerView #guestLinks {
  margin: 3px 0px 6px;
  gap: 6px 10px;
}

body.centerView #guestLinks .guestStatus {
  margin: 0px;
  line-height: 1.45;
}

body.centerView #guestLinks .accountAction {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  min-height: 44px;
  padding: 6px 16px;
  border-width: 2px;
  border-style: solid;
  border-image: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
}

body.centerView #guestLinks .accountAction::after {
  color: inherit;
  font-size: 1em;
}

body.centerView #guestLinks .accountAction:hover {
  background: rgb(228, 240, 231);
  color: rgb(24, 83, 63);
}

body.centerView #guestLinks .accountLogin:hover {
  background: rgb(24, 83, 63);
  color: rgb(255, 255, 255);
}

body.centerView #guestLinks .accountAction:focus-visible {
  outline: rgb(183, 119, 32) solid 3px;
  outline-offset: 3px;
}

body.centerView #guestLinks + .roomSection {
  margin-top: 10px;
}

@media (max-width: 480px) {
  body.centerView #guestLinks .accountAction {
    font-size: 16px;
    padding: 6px 10px;
}
}

.teamEventEntry {
  gap: 6px;
}

.eventCardNote {
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.teamEventDialog {
  border: 2px solid rgb(36, 90, 67);
  border-radius: 12px;
  background: rgb(255, 253, 245);
  color: rgb(25, 31, 31);
}

.teamEventDialog::backdrop {
  background: rgba(25, 31, 31, 0.5);
}

.eventHeading {
  display: flex;
}

.eventHeading [role="heading"] {
  margin: 0px;
}

.eventHeading button {
  flex-shrink: 0;
}

.eventTeam {
  border: 1px solid rgb(196, 209, 197);
  border-radius: 8px;
  background: rgb(244, 247, 239);
}

.eventTeam h3 {
  margin: 0px 0px 6px;
}

.eventTeam p {
  margin: 6px 0px;
  white-space: pre-wrap;
}

.eventTeam button {
  cursor: pointer;
}

.teamEventAdmin button {
  min-height: 44px;
  padding: 8px 18px;
  cursor: pointer;
}

.eventTeam button:disabled,
.teamEventAdmin button:disabled {
  cursor: default;
}

.eventBar {
  border-radius: 6px;
}

.eventBarFill {
  display: block;
  height: 100%;
}

.eventWinner {
  font-size: 22px;
  font-weight: 700;
  color: rgb(36, 90, 67);
}

.eventRules {
  font-size: 13px;
  line-height: 1.6;
}

.teamEventAdmin {
  border: 1px solid rgb(196, 209, 197);
  padding: 16px;
  margin: 20px 0px;
  border-radius: 8px;
}

.teamEventAdmin input {
  padding-bottom: 8px;
}

.eventDates,
.eventTeamFields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 10px 0px;
}

@media (max-width: 540px) {
  .eventDates,
  .eventTeamFields {
    grid-template-columns: 1fr;
}
}

body.centerView .teamEventEntry {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
}

body.centerView .teamEventEntry .roomCardArt {
  align-items: center;
}

body.centerView .teamEventAdmin {
  background-image: initial;
  background-position: initial;
  background-size: initial;
  background-repeat: initial;
  background-attachment: initial;
  background-origin: initial;
  background-clip: initial;
  color: rgb(25, 31, 31);
  max-width: 900px;
  padding: 18px;
  box-sizing: border-box;
}

.teamEventAdmin h2 {
  margin: 0px 0px 12px;
  font-size: 22px;
}

.teamEventAdmin h3 {
  margin: 14px 0px 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgb(186, 200, 184);
  font-size: 17px;
}

.teamEventAdmin label {
  min-width: 0px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  font-weight: 700;
  color: rgb(41, 61, 53);
}

.teamEventAdmin input {
  box-sizing: border-box;
  min-width: 0px;
  width: 100%;
  padding-top: 8px;
  padding-right: 8px;
  padding-left: 8px;
  min-height: 40px;
  border: 1px solid rgb(139, 156, 145);
  border-radius: 5px;
  background: var(--theme-page);
  color: rgb(25, 31, 31);
  font-style: inherit;
  font-variant: inherit;
  font-stretch: inherit;
  font-size: inherit;
  line-height: inherit;
  font-family: inherit;
  font-optical-sizing: inherit;
  font-size-adjust: inherit;
  font-kerning: inherit;
  font-feature-settings: inherit;
  font-variation-settings: inherit;
  font-language-override: inherit;
  font-weight: 400;
}

.teamEventAdmin input:focus-visible {
  outline: rgb(41, 115, 86) solid 2px;
  outline-offset: 2px;
}

.teamEventAdmin .eventTeamFields {
  padding: 10px;
  background: rgb(238, 243, 233);
  border-radius: 6px;
  gap: 8px 14px;
  margin: 8px 0px;
}

.teamEventAdmin .eventSecondary {
  min-height: 36px;
  padding: 6px 12px;
}

.teamEventAdmin p {
  font-size: 13px;
  line-height: 1.5;
  margin: 10px 0px;
}

.teamEventAdmin #teamEventAdminNotice {
  font-size: 15px;
  font-weight: 700;
}

.teamEventDialog {
  overflow: auto;
  box-sizing: border-box;
  width: min(720px, 94vw);
  max-height: 88dvh;
  padding: 14px 18px;
}

.eventHeading {
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.eventHostIcon {
  width: 64px;
  height: 74px;
  object-fit: contain;
  flex: 0 0 auto;
}

.eventHeading [role="heading"] {
  font-size: 21px;
  line-height: 1.35;
}

.teamEventDialog > p {
  margin: 6px 0px;
  line-height: 1.5;
}

.teamEventDialog p:empty {
  display: none;
}

.teamEventDialog .eventRules {
  margin: 8px 0px 10px;
  padding: 8px 10px;
  background: rgb(237, 242, 231);
  border-radius: 6px;
  color: rgb(53, 72, 60);
  font-size: 12px;
  line-height: 1.5;
}

#teamEventContent > h3 {
  font-size: 17px;
  margin: 10px 0px 5px;
}

#teamEventContent > p {
  margin: 5px 0px;
  font-size: 13px;
  line-height: 1.45;
}

.eventTeam {
  overflow-wrap: anywhere;
  padding: 9px 11px;
  margin: 8px 0px;
}

.eventTeamTitle {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px 12px;
}

.eventTeamTitle h3 {
  font-size: 17px;
  line-height: 1.4;
  margin: 0px;
}

.eventTeamTitle p {
  font-size: 14px;
  line-height: 1.4;
  margin: 0px;
}

.eventBar {
  background: rgb(221, 229, 217);
  overflow: hidden;
  position: relative;
  height: auto;
  min-height: 30px;
  margin: 7px 0px;
  display: flex;
  align-items: center;
}

.eventBarFill {
  position: absolute;
  inset: 0px auto 0px 0px;
  background: rgb(166, 198, 161);
}

.eventBarLabel {
  position: relative;
  padding: 4px 9px;
  color: rgb(25, 31, 31);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.eventTeam button {
  min-height: 36px;
  padding: 5px 14px;
  font-size: 14px;
}

.eventTeam h4 {
  display: inline;
  font-size: 13px;
  margin: 0px;
}

.eventMvp {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 24px;
  margin: 4px 0px 2px;
  padding-left: 24px;
  font-size: 13px;
}

.eventTeam > p {
  font-size: 13px;
  margin: 3px 0px;
}

#teamEventContent > .eventWinner {
  font-size: 20px;
  font-weight: 800;
  margin: 6px 0px;
}

@media (max-width: 540px) {
  .teamEventDialog {
    padding: 10px;
}

  .eventHeading {
    gap: 6px;
    align-items: flex-start;
}

  .eventHeading [role="heading"] {
    font-size: 17px;
    margin-top: 8px;
}

  .eventHostIcon {
    width: 46px;
    height: 54px;
}

  .eventHeading button {
    padding: 6px;
    font-size: 13px;
}

  .teamEventAdmin {
    padding: 12px;
}

  .eventTeam {
    padding: 8px;
}
}

.eventHeading [role="heading"] {
  overflow-wrap: anywhere;
  flex: 1 1 0%;
  min-width: 0px;
  font-weight: 700;
}

body.centerView .teamEventAdmin #teamEventCreate,
body.centerView .teamEventDialog .eventTeam button {
  font-weight: 700;
}

.teamEventAdmin .eventFieldError {
  color: rgb(163, 38, 38);
  font-size: 13px;
  line-height: 1.5;
}

.teamEventAdmin input[aria-invalid="true"] {
  border: 2px solid rgb(163, 38, 38);
}

#teamEventMine {
  font-weight: 700;
}

#teamEventCancelArea {
  padding: 10px 12px;
  background: rgb(245, 238, 225);
  border: 1px solid rgb(203, 188, 164);
  border-radius: 6px;
  margin: 10px 0px;
}

.teamEventAdmin .eventCancelConfirm {
  margin-top: 8px;
}

body.centerView .teamEventAdmin #teamEventCancel,
body.centerView .teamEventAdmin #teamEventCancelYes {
  font-weight: 700;
}

.eventTeamTitle button {
  margin-left: auto;
  flex: 0 0 auto;
}

.eventChoosing .eventTeams {
  display: grid;
}

.eventChoosing .eventTeamTitle h3 {
  font-size: 16px;
}

.eventChoosing .eventTeamTitle p {
  font-size: 13px;
}

.eventChoosing .eventTeamTitle button {
  font-size: 13px;
  padding: 4px 8px;
  min-height: 32px;
}

@media (min-width: 1000px) {
  .teamEventDialog.eventChoosing {
    width: min(1080px, 94vw);
}

  .eventChoosing .eventTeams {
    grid-template-columns: repeat(2, minmax(0px, 1fr));
}
}

.eventChoosing .eventTeamTitle {
  gap: 4px 8px;
  display: grid;
  grid-template-columns: auto minmax(0px, 1fr) auto;
  align-items: center;
}

.eventChoosing .eventTeamTitle h3 {
  min-width: 0px;
  overflow-wrap: anywhere;
}

.eventChoosing .eventHostIcon {
  width: 48px;
  height: 56px;
}

.eventChoosing .eventTeam {
  margin: 0px;
  padding: 7px 10px;
}

.eventChoosing .eventBar {
  min-height: 26px;
  margin: 5px 0px 0px;
}

.eventChoosing .eventBarLabel {
  padding: 2px 8px;
  font-size: 13px;
  line-height: 1.4;
}

.eventChoosing .eventTeams {
  gap: 6px;
}

.eventPhase {
  display: block;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
  color: rgb(36, 90, 67);
  text-align: center;
}

.teamEventDialog > #teamEventPhase {
  margin: 5px 0px;
  font-size: 26px;
}

.eventEntryDetails {
  display: none;
}

@media (max-width: 699px) {
  .teamEventDialog.eventChoosing {
    width: 96vw;
    max-height: 96dvh;
    padding: 8px;
}

  .eventChoosing .eventHostIcon,
  .eventChoosing > .eventRules,
  .eventChoosing > #teamEventMine,
  .eventChoosing .eventTeamTitle > p,
  .eventChoosing .eventBar,
  .eventChoosing #teamEventContent > p {
    display: none;
}

  .eventChoosing .eventHeading {
    align-items: center;
    gap: 5px;
}

  .eventChoosing .eventHeading [role="heading"] {
    margin: 0px;
    font-size: 15px;
    line-height: 1.25;
}

  .eventChoosing > #teamEventPeriod {
    font-size: 11px;
    line-height: 1.3;
    margin: 4px 0px;
}

  .eventChoosing #teamEventContent > h3 {
    font-size: 14px;
    margin: 4px 0px;
}

  .eventChoosing .eventTeams {
    gap: 4px;
}

  .eventChoosing .eventTeamTitle {
    grid-template-columns: minmax(0px, 1fr) auto;
    gap: 6px;
}

  .eventChoosing .eventTeamTitle h3 {
    font-size: 14px;
    line-height: 1.25;
}

  .eventChoosing .eventTeamTitle button {
    font-size: 0px;
    min-height: 36px;
    padding: 4px 10px;
}

  .eventChoosing .eventTeamTitle button::after {
    content: "参加";
    font-size: 14px;
}

  .eventChoosing .eventEntryDetails {
    display: block;
    font-size: 12px;
    line-height: 1.4;
    margin: 4px 0px;
}

  .eventEntryDetails summary {
    cursor: pointer;
    color: rgb(36, 90, 67);
    text-decoration: underline;
    padding: 3px 0px;
}

  .eventEntryDetails p {
    margin: 5px 0px;
    overflow-wrap: anywhere;
}
}

@media (min-width: 1000px) {
  .teamEventDialog.eventChoosing {
    max-height: 94dvh;
}
}

@media (max-width: 699px) {
  .eventChoosing .eventTeam {
    padding: 1px 6px;
}
}

body.centerView #teamEventContent .eventTeam button {
  font-weight: 700;
}

body.centerView .roomCards .teamEventEntry {
  display: grid;
  grid-template-columns: 64px minmax(0px, 1fr);
  grid-template-rows: auto 74px auto;
  align-content: center;
  place-items: center;
  gap: 4px 6px;
  padding: 8px 7px 12px;
  text-shadow: none;
}

body.centerView .teamEventEntry .roomCardArt {
  font-size: 18px;
  white-space: normal;
  width: 100%;
  text-align: center;
  justify-content: center;
  grid-column: 1 / -1;
  height: auto;
  min-height: 0px;
  margin: 0px;
  padding: 0px;
  line-height: 1.3;
}

body.centerView .teamEventEntry .toolCardIcon {
  object-fit: contain;
  grid-area: 2 / 1;
  width: 64px;
  height: 74px;
  margin: 0px;
}

body.centerView .teamEventEntry .eventPhase {
  grid-area: 2 / 2;
  font-size: 24px;
  line-height: 1.25;
  white-space: nowrap;
}

body.centerView .teamEventEntry .eventCardNote {
  margin-top: 0px;
}

.contactAddress {
  max-width: 100%;
  height: auto;
}

body.centerView .centerFooterInfo {
  background: var(--theme-page);
}

body.centerView .centerFooterInfo > .roomCredits {
  margin-top: 0px;
  border-top: 0px;
}

body.centerView .centerFooterInfo .helpRequirements {
  margin-top: 20px;
}

body.centerView .roomCards #casualCard {
  padding: 0px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: visible;
  background: none;
  border: 0px;
  outline: none;
  box-shadow: none;
}

body.centerView .casualSplit > a {
  color: inherit;
  text-decoration: none;
  box-sizing: border-box;
  width: 100%;
  position: relative;
  border: 2px solid rgb(166, 183, 189);
  border-radius: 6px 4px;
  background: rgb(255, 253, 245);
}

body.centerView .casualPrimary {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 3 1 0%;
  padding: 8px 7px;
}

body.centerView .casualPrimary .roomCardHeader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

body.centerView .casualPrimary .roomCardHeader strong {
  font-size: 22px;
  line-height: 1.25;
}

body.centerView .casualPrimary .roomCardCharacter {
  width: 62px;
  height: 70px;
  object-fit: contain;
}

body.centerView .casualSplit > .casualPuzzle {
  flex: 1 1 0%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgb(234, 241, 223);
  font-weight: 800;
  padding: 8px 5px;
  min-height: 64px;
}

body.centerView .casualSplit > a[aria-disabled="true"] {
  opacity: 0.55;
  cursor: default;
}

body.centerView .eventPhase {
  text-shadow: none;
  opacity: 1;
}

body.centerView #roomList .teamEventEntry,
body.centerView #roomList .teamEventEntry *,
body.centerView #teamEventDialog,
body.centerView #teamEventDialog * {
  -webkit-text-stroke: 0px;
}
body.centerView #roomList .teamEventEntry:where(:not(.uiAction)),
body.centerView #roomList .teamEventEntry *:where(:not(.uiAction)),
body.centerView #teamEventDialog:where(:not(.uiAction)),
body.centerView #teamEventDialog *:where(:not(.uiAction)){
  text-shadow: none;
}

body.centerView .casualSplit > a:hover,
body.centerView .casualSplit > a:focus-visible {
  background: rgb(255, 248, 233);
}

body.centerView #roomList .roomCards {
  position: relative;
}

body.centerView #roomList .roomCards.cardPacking {
  display: block;
  padding: 0px;
  margin-bottom: 8px;
}

body.centerView #roomList .cardPacking > * {
  box-sizing: border-box;
  margin-right: 0px;
  margin-left: 0px;
}

body.centerView #roomList .centerToolCards {
  align-self: start;
}

body.centerView #roomList .casualSplit > a {
  flex: 0 0 auto;
}

body.centerView #roomList .centerToolCards :is(#formationOpen, #kifuListOpen) {
  flex: 0 0 auto;
  box-sizing: border-box;
  min-height: 64px;
}

body.centerView #roomList .roomCards > a.centerRoomCard,
body.centerView #roomList .roomWatchGroup > a.centerRoomCard {
  padding-bottom: 30px;
}

body.centerView .roomImmediate {
  position: absolute;
  right: 30px;
  bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 17px;
  color: rgb(36, 90, 67);
  white-space: nowrap;
}

.roomWatchGroup {
  position: relative;
  box-sizing: border-box;
  min-width: 0px;
}

.roomWatchGroup > .centerRoomCard {
  box-sizing: border-box;
  width: 100% !important;
}

.roomWatchLink {
  display: block;
  position: relative;
  margin-top: 3px;
  padding: 3px 10px;
  text-align: center;
  font-weight: 700;
  line-height: 1.5;
  background: rgb(247, 247, 247);
  border: 1px solid rgb(120, 150, 164);
  border-radius: 4px;
  color: rgb(23, 57, 87);
  text-decoration: none;
}

.roomWatchLink:hover,
.roomWatchLink:focus-visible {
  outline: rgb(230, 132, 40) solid 2px;
}

body.centerView .roomWatchGroup {
  flex: 0 1 180px;
  width: 180px;
  max-width: 100%;
}

body.centerView .roomWatchGroup:nth-child(2) > .centerRoomCard {
  background-color: rgb(245, 249, 247);
  border-color: rgb(152, 179, 184);
}

body.centerView :is(.accountGrid dt, .queueRules, .watchGameHead, .watchUser) {
  color: var(--theme-muted);
}

body.centerView :is(input, textarea)::placeholder {
  color: rgb(104, 123, 116);
  opacity: 1;
}
body.centerView :is(.centerReturn, .backLink, #queueCancel, #stockRefresh, .casualActions button, #replayControls button):disabled:where(:not(.uiAction)){
  color: var(--control-disabled-ink);
  background: var(--control-disabled-surface);
  border-color: var(--control-disabled-edge);
  box-shadow: none;
}
body.centerView :is(button, a, input, textarea, select):focus-visible:where(:not(.uiAction)){
  outline-color: var(--theme-hover);
}

body.centerView .inkOutline .inkHalo {
  filter: none;
}

body.centerView .inkOutline .inkHot {
  fill: var(--theme-hover);
}

body.centerView .inkFrame > .inkOutline .inkNormal {
  opacity: 0.92;
}

body.centerView .inkInteractive:is(:hover, :focus-visible) > .inkOutline .inkNormal {
  opacity: 0;
}

body.centerView .cardNavMarker {
  font-style: normal;
  font-variant: normal;
  font-size-adjust: none;
  font-language-override: normal;
  font-kerning: auto;
  font-optical-sizing: auto;
  font-feature-settings: normal;
  font-variation-settings: normal;
  font-stretch: normal;
  font-family: Arial, sans-serif;
  pointer-events: none;
  background: rgb(227, 236, 224);
  color: rgb(40, 87, 64);
}

@media (hover: none) {
  body.centerView .inkInteractive:not(:active):not(:focus-visible) > .inkOutline .inkNormal,
  body.centerView .inkInteractive:not(:active):not(:has(> summary:focus-visible)) > summary > .inkOutline .inkNormal {
    opacity: 0.92;
}

  body.centerView .inkInteractive:not(:active):not(:focus-visible) > .inkOutline .inkHot,
  body.centerView .inkInteractive:not(:active):not(:focus-visible) > .inkOutline .inkHalo,
  body.centerView .inkInteractive:not(:active):not(:has(> summary:focus-visible)) > summary > .inkOutline .inkHot,
  body.centerView .inkInteractive:not(:active):not(:has(> summary:focus-visible)) > summary > .inkOutline .inkHalo {
    opacity: 0;
}
}

body.centerView .inkInteractive:active:not(:disabled):not([aria-disabled="true"]) > .inkOutline .inkHot {
  opacity: 1;
}

body.centerView .inkInteractive:active:not(:disabled):not([aria-disabled="true"]) > .inkOutline .inkNormal {
  opacity: 0;
}

body.centerView .centerTitle,
body.centerView .heroCopy {
  color: rgb(32, 58, 48);
  text-shadow: rgba(255, 254, 249, 0.7) 0px 1px 1px;
}

body.centerView #roomList .roomCards :is(a.centerRoomCard, button.centerRoomCard, .casualPrimary, .casualPuzzle) {
  --paper-tone: #fffdf7;
  --paper-current: var(--paper-tone);
  background-color: var(--paper-current);
  background-image: repeating-linear-gradient(35deg, rgba(111, 132, 104, 0.04) 0px, rgba(111, 132, 104, 0.04) 1px, transparent 1px, transparent 5px), linear-gradient(130deg, rgba(255, 255, 255, 0.4), rgba(218, 228, 213, 0.19));
  color: var(--theme-ink);
}

body.centerView #roomList .roomWatchGroup:nth-child(2) > .centerRoomCard {
  --paper-tone: #f1f6ef;
}

body.centerView #roomList .roomCards :is(#formationOpen, .casualPuzzle) {
  --paper-tone: #f1f3e4;
}

body.centerView #roomList .roomCards #kifuListOpen {
  --paper-tone: #f1f5f2;
}

body.centerView :is(.roomWatchLink, .recentKifuLink, .postComposer, #chatMessages) {
  background: linear-gradient(130deg, var(--theme-page), rgb(245, 245, 237));
  color: rgb(41, 73, 67);
}

body.centerView .kifuPlayer {
  background: var(--theme-page);
  border-color: rgb(177, 188, 167);
}

body.centerView .kifuPlayer.kifuWinner {
  background: rgb(237, 243, 223);
  border-color: rgb(96, 137, 105);
}

body.centerView .kifuWinnerBadge {
  background: rgb(41, 108, 81);
  color: var(--theme-page);
}

body.centerView .accountStats table {
  border-collapse: separate;
  border-spacing: 0px;
  background: rgb(255, 253, 247);
}

body.centerView .accountStats thead th {
  background: rgb(232, 237, 221);
  color: rgb(64, 93, 80);
}

body.centerView .accountStats tbody tr:nth-child(2n) {
  background: rgb(243, 245, 233);
}

body.centerView .accountStats :is(th, td) {
  border-color: rgb(212, 220, 203);
  color: rgb(41, 68, 60);
}

body.centerView :is(.watchUser, .kifuOutcome code) {
  color: var(--theme-muted);
}

body.centerView #guestLinks .accountAction {
  justify-content: center;
  line-height: 1.3;
  text-decoration: none;
  background: linear-gradient(var(--theme-page), rgb(237, 243, 231));
  color: rgb(40, 85, 62);
  border-color: rgb(114, 151, 128);
  box-shadow: rgba(255, 255, 255, 0.753) 0px 1px inset;
}
body.centerView #guestLinks .accountLogin:where(:not(.uiAction)),
body.centerView :is(#teamEventContent .eventTeam button, #teamEventCreate):where(:not(.uiAction)){
  background: linear-gradient(rgb(52, 122, 92), rgb(37, 100, 73));
  color: var(--theme-page);
  border-color: rgb(50, 107, 80);
  text-shadow: none;
  box-shadow: rgba(255, 255, 255, 0.19) 0px 1px inset, rgba(35, 69, 44, 0.098) 0px 2px 3px;
}
body.centerView #guestLinks .accountAction:active:where(:not(.uiAction)),
body.centerView :is(#teamEventContent .eventTeam button, #teamEventCreate):active:not(:disabled):where(:not(.uiAction)){
  background: rgb(36, 88, 63);
  color: var(--theme-page);
  box-shadow: rgba(23, 59, 43, 0.25) 0px 2px 3px inset;
}

body.centerView .teamEventDialog {
  background-color: var(--theme-page);
  border-color: rgb(147, 164, 140);
}

body.centerView .teamEventAdmin {
  margin: 16px auto;
  background-color: var(--theme-page);
  border-color: rgb(147, 164, 140);
}

body.centerView .eventTeam {
  background: linear-gradient(130deg, var(--theme-page), rgb(243, 245, 233));
  border-color: rgb(179, 189, 165);
}

body.centerView .eventPhase {
  -webkit-text-stroke: 0px;
  filter: none;
  color: rgb(36, 95, 71);
}

@media (hover: hover) and (pointer: fine) {
  body.centerView #roomList .roomCards :is(a.centerRoomCard, button.centerRoomCard, .casualPrimary, .casualPuzzle):hover:not(:disabled):not([aria-disabled="true"]):not(.roomClosed) {
    --paper-current: #fff3df;
}
}

body.centerView #roomList .roomCards :is(a.centerRoomCard, button.centerRoomCard, .casualPrimary, .casualPuzzle):active:not(:disabled):not([aria-disabled="true"]):not(.roomClosed) {
  --paper-current: #e7eeda;
}

body.centerView .roomWatchLink {
  --watch-paper: #f1f5ed;
}

body.centerView .roomWatchLink:active {
  --watch-paper: #e0e9d8;
}

body.centerView .teamEventEntry .eventCardNote {
  grid-column: 1 / -1;
  min-width: 0px;
  margin-right: 0px;
  margin-bottom: 0px;
  margin-left: 0px;
  line-height: 1.35;
  width: 100%;
  overflow-wrap: anywhere;
}

body.centerView .teamEventEntry .eventCardTitle {
  display: block;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
  color: var(--theme-ink);
}

body.centerView .teamEventEntry .eventCardSchedule {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

body.centerView .teamEventEntry .eventCardSchedule[hidden] {
  display: none;
}

body.centerView .teamEventEntry.inkFrame > .inkOutline .inkNormal {
  fill: rgb(80, 125, 112);
  opacity: 1;
}

body.centerView .teamEventEntry.inkInteractive:is(:hover, :focus-visible) > .inkOutline .inkNormal {
  opacity: 0;
}

@media (hover: none) {
  body.centerView .teamEventEntry.inkInteractive:not(:active):not(:focus-visible) > .inkOutline .inkNormal {
    opacity: 1;
}
}

body.centerView .teamEventEntry.inkInteractive:active:not(:disabled) > .inkOutline .inkNormal {
  opacity: 0;
}

body.centerView {
  --center-transition: 200ms;
}

body.centerView .inkInteractive > .inkOutline .inkNormal,
body.centerView .inkInteractive > summary > .inkOutline .inkNormal {
  transition: fill var(--center-transition) ease;
  opacity: 1 !important;
}

body.centerView .inkInteractive > .inkOutline .inkHot,
body.centerView .inkInteractive > .inkOutline .inkHalo,
body.centerView .inkInteractive > summary > .inkOutline .inkHot,
body.centerView .inkInteractive > summary > .inkOutline .inkHalo {
  transition: opacity var(--center-transition) ease;
}

body.centerView #globalMagic .postComposer {
  background-image: none;
  background-color: rgb(255, 253, 247);
  transition: background-color var(--center-transition) ease;
}

body.centerView #globalMagic .postComposer:is(:hover, :focus-within) {
  background-color: rgb(255, 243, 223);
}

@media (max-width: 900px) {
  body.centerView {
    padding: 0px;
    background-color: var(--theme-page);
    background-image: none;
}

  body.centerView .centerPage {
    width: 100%;
    margin: 0px;
}

  body.centerView footer,
  body.centerView footer span {
    color: var(--theme-muted);
}

  body.centerView footer a:not(.centerRoomCard):not(.casualPrimary):not(.casualPuzzle):not(.recentKifuList a) {
    color: rgb(40, 92, 72);
    text-decoration-color: rgba(40, 92, 72, 0.5);
}
}

@media (max-width: 600px) {
  body.centerView .centerContent {
    padding: 3px 0px 10px;
}

  body.centerView #globalMagic .postComposer {
    margin-left: 4px;
    margin-right: 4px;
}

  body.centerView .accountStats {
    margin-left: 4px;
    margin-right: 4px;
    width: auto;
}

  body.centerView .hero {
    padding: 2px 4px 3px;
    min-height: 0px;
    gap: 2px;
}

  body.centerView .hero .centerTitle {
    font-size: 18px;
    letter-spacing: 0px;
    white-space: nowrap;
    margin-top: 0px;
    margin-bottom: 0px;
}

  body.centerView .heroLower {
    gap: 2px;
}

  body.centerView .heroLower .heroCopy {
    font-size: 12px;
    white-space: nowrap;
    overflow-wrap: normal;
    line-height: 1.35;
}

  body.centerView .centerClassicRow {
    gap: 4px;
    padding: 0px 4px;
}

  body.centerView .centerClassicText {
    font-size: 12px;
    line-height: 1.35;
}

  body.centerView .centerClassicText .classicLink {
    font-size: 12px;
    margin: 1px 0px;
}

  body.centerView #guestLinks .guestStatus {
    font-size: 12px;
}

  body.centerView #guestLinks {
    gap: 4px 8px;
    margin: 3px 4px 5px;
}

  body.centerView #guestLinks .accountAction {
    font-size: 14px;
    min-height: 36px;
    padding: 4px 10px;
    gap: 5px;
}

  body.centerView #memberLinks a {
    font-size: 13px;
}
}

@media (prefers-reduced-motion: reduce) {
  body.centerView #globalMagic .postComposer,
  body.centerView .inkOutline * {
    transition: none !important;
}
}

body.centerView .roomCredits {
  padding-left: 12px;
  padding-right: 12px;
}

body.centerView #roomList .roomCards {
  align-items: flex-start;
  margin-left: 4px;
  margin-right: 4px;
}

body.centerView #roomList .cardPacking > * {
  position: absolute;
  max-width: 100%;
  margin-top: 0px;
  margin-bottom: 0px;
  container-type: inline-size;
}

body.centerView .roomWatchGroup > .centerRoomCard,
body.centerView .centerToolCards > .centerRoomCard {
  max-width: none;
}

@media (max-width: 900px) {
  body.centerView .centerContent {
    padding-left: 0px;
    padding-right: 0px;
}

  body.centerView .roomCredits {
    padding-left: 0px;
    padding-right: 0px;
}

  body.centerView .roomCredits > :not(h2) {
    margin-left: 8px;
    margin-right: 8px;
}

  body.centerView .accountStats {
    margin-left: 4px;
    margin-right: 4px;
    width: auto;
}
}

@media (max-width: 600px) {
  body.centerView .centerClassicText small {
    font-size: 11px;
    display: none;
}

  body.centerView .gardenChoices {
    width: 104px;
}

  body.centerView #authNotice {
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
    min-width: 0px;
    max-width: 100%;
    box-sizing: border-box;
}

  body.centerView #guestLinks .guestStatus {
    line-height: 1.4;
    white-space: nowrap;
    min-width: 0px;
    max-width: 100%;
    box-sizing: border-box;
    flex: 0 0 100%;
    width: 100%;
}

  body.centerView #roomList .roomCards:not(.cardPacking) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0px, 1fr));
    gap: 10px;
}

  body.centerView #roomList .roomCards:not(.cardPacking) > * {
    width: 100%;
    min-width: 0px;
}
}

@container (max-width: 175px) {
  body.centerView .roomCardHeader {
    grid-template-columns: 40px minmax(0px, 1fr);
    gap: 2px;
}

  body.centerView .roomCardHeader .roomCardCharacter {
    width: 40px;
    height: 56px;
}

  body.centerView .roomCardHeader > strong {
    font-size: 17px;
}

  body.centerView a.centerRoomCard .roomCardHeader .roomCardArt {
    font-size: 16px;
}

  body.centerView .casualPrimary .roomCardHeader {
    gap: 3px;
}

  body.centerView .casualPrimary .roomCardCharacter {
    width: 38px;
    height: 50px;
}

  body.centerView .casualPrimary .roomCardHeader strong {
    font-size: 18px;
}

  body.centerView #roomList :is(.roomCardRule, .roomCardCount, .casualPuzzle) {
    font-size: 12px;
}

  body.centerView .teamEventEntry {
    column-gap: 3px;
}

  body.centerView .teamEventEntry .eventPhase {
    font-size: 22px;
}
}

@container (min-width: 220px) {
  body.centerView .roomCardHeader > strong {
    font-size: 22px;
}

  body.centerView .roomCardHeader .roomCardCharacter {
    width: 56px;
    height: 74px;
}

  body.centerView .roomCardHeader {
    grid-template-columns: 56px minmax(0px, 1fr);
}

  body.centerView .casualPrimary .roomCardHeader strong {
    font-size: 24px;
}
}

body.centerView .formationEditor {
  margin: 8px auto;
}

body.centerView #formationNotice {
  margin: 4px 0px;
}

body.centerView .formationControls {
  margin-top: 6px;
}

body.centerView .formationControls :is(#formationUndo, #formationReset):disabled {
  cursor: default;
}

body.centerView #postDialog {
  background: var(--theme-page);
  color: var(--theme-ink);
  border-color: rgb(147, 164, 140);
  border-radius: 8px;
  box-sizing: border-box;
}

body.centerView #postDialog h2 {
  color: var(--theme-ink);
  border-color: rgb(113, 153, 145);
  text-shadow: none;
}

body.centerView #postDialog #postFullAuthor {
  color: var(--theme-muted);
}

body.centerView #postDialog #postFullText {
  color: var(--theme-ink);
}

@media (max-width: 900px) {
  body.centerView #formationPanel {
    padding-left: 0px;
    padding-right: 0px;
}

  body.centerView #formationBack,
  body.centerView #formationNotice {
    margin-left: 8px;
    margin-right: 8px;
}

  body.centerView .formationSlots {
    margin-left: 4px;
    margin-right: 4px;
}

  body.centerView .formationSlot {
    max-width: 100%;
    box-sizing: border-box;
}

  body.centerView .formationControls {
    padding-left: 4px;
    padding-right: 4px;
}
}

@media (max-width: 600px) {
  body.centerView #postDialog {
    padding: 14px;
}
}
body.centerView :is(#formationPanel, .accountSection, #chatPanel, #globalMagic) :is(#formationBack, #formSavea, #formSaveb, #formSavec, #stockRefresh, #chatSubmit, #postSubmit, #sponsorSubmit):where(:not(.uiAction)){
  text-shadow: none;
}

body.centerView #formationPanel .formationSlot.inkFrame {
  border-color: transparent !important;
}

body.centerView #formationPanel .formationSlot > .inkOutline .inkNormal {
  opacity: 1 !important;
}

body.centerView #formationPanel .formationSlot > .inkOutline .inkHot {
  transition: opacity 200ms;
  fill: var(--theme-hover);
}

body.centerView #formationPanel .formationSlot > .inkOutline .inkHalo {
  transition: opacity 200ms;
  filter: none;
}

@media (hover: none) {
  body.centerView #formationPanel .formationSlot:not(:active) > .inkOutline .inkHot,
  body.centerView #formationPanel .formationSlot:not(:active) > .inkOutline .inkHalo {
    opacity: 0;
}
}

@media (prefers-reduced-motion: reduce) {
  body.centerView #formationPanel .formationSlot > .inkOutline * {
    transition: none !important;
}
}

body.centerView #roomList :is(#formationOpen, #kifuListOpen).inkFrame {
  border-color: transparent !important;
}

body.centerView #formationBack.centerReturn:focus-visible {
  outline: 2px solid var(--theme-hover);
  outline-offset: 3px;
}

body.centerView #memberLinks a[href="https://qinoa.com/premium/syougi/"]:focus-visible {
  outline: 2px solid var(--theme-hover) !important;
  outline-offset: 3px;
}



body.centerView .teamEventAdmin :is(#teamEventCreate, #teamEventCancel, #teamEventCancelYes, #teamEventCancelNo):disabled,
body.centerView #teamEventDialog .eventTeam button:disabled {
  cursor: default;
}

/* === 見出し：通常・条件付き・操作状態をまとめて管理 === */

.roomSection h2 {
  margin: 0px 0px 16px;
  padding: 7px 14px;
  border-left: 4px solid var(--blue);
  background: linear-gradient(90deg, rgb(233, 238, 230), rgba(10, 17, 24, 0));
  font-size: 19px;
}

.roomSection h2 small {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--muted);
  margin-left: 8px;
}

@media (max-width: 600px) {
  .roomSection h2 {
    font-size: 17px;
}
}

.centerContent .roomSection h2 {
  padding: 2px 10px;
  margin: 0px 0px 8px;
  font-size: 16px;
  line-height: 1.5;
}

.centerView .roomCredits h2 {
  padding: 5px 12px;
}

.roomHeading {
  position: relative;
  margin-bottom: 16px;
}

.centerView .roomHeading h2 {
  margin-bottom: 0px;
  padding-right: 155px;
  min-height: 38px;
}

.centerView .roomHeading .centerConnections {
  bottom: 5px;
  font-size: 12px;
}

@media (max-width: 600px) {
  .centerView .roomHeading h2 {
    padding-right: 14px;
    padding-bottom: 24px;
}

  .centerView .roomHeading .centerConnections {
    bottom: 4px;
}
}

.centerView .roomCredits h2 {
  border-left-width: 5px;
  border-left-style: solid;
  font-size: 18px;
}

.centerView .roomHeading .centerConnections {
  right: 12px;
  white-space: nowrap;
  color: rgb(255, 255, 255);
}

body.centerView :is(.sectionTitle, .roomSection h2, :where(#formationTitle), .roomCredits h2, .roomHeader) {
  color: rgb(255, 255, 255);
  border-color: var(--theme-green);
  background: var(--theme-heading);
  border-radius: 3px;
}

body.centerView :is(.sectionTitle, .roomSection h2) small {
  color: rgb(229, 239, 229);
}

body.centerView .sectionTitle {
  border: 1px solid rgb(50, 121, 93);
  font-size: 19px;
  font-weight: 800;
}

body.centerView .roomSection h2 {
  border-right: 1px solid rgb(50, 121, 93);
  border-bottom: 1px solid rgb(50, 121, 93);
  border-radius: 5px 3px 5px 4px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.4px;
}

body.centerView #formationTitle {
  border: 1px solid rgb(50, 121, 93);
  border-radius: 5px 3px 5px 4px;
  padding: 8px 12px;
  margin: 18px 0px 10px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.4px;
}

body.centerView .sectionTitle small,
body.centerView .roomSection h2 small {
  font-size: 11px;
  font-weight: 700;
  color: rgb(225, 237, 218);
  letter-spacing: 1px;
}

@media (max-width: 600px) {
  body.centerView .sectionTitle,
  body.centerView .roomSection h2 {
    font-size: 16px;
}
}

body.centerView .sectionTitle,
body.centerView .roomSection h2 {
  margin-right: 0px;
  margin-left: 0px;
  padding: 6px 10px;
}

@media (max-width: 600px) {
  body.centerView .sectionTitle {
    padding: 6px 8px;
}

  body.centerView .roomSection h2 {
    padding: 6px 8px;
    margin: 11px 0px 7px;
}
}

body.centerView .centerContent .roomSection h2 {
  margin-left: -7px;
  margin-right: -7px;
}

@media (max-width: 600px) {
  body.centerView .centerContent .sectionTitle,
  body.centerView .centerContent .roomSection h2 {
    margin-left: -4px;
    margin-right: -4px;
}
}

body.centerView .sectionTitle {
  letter-spacing: 0.4px;
}

body.centerView .roomSection h2 {
  border-top-width: 1px;
  border-left-width: 1px;
  border-top-style: solid;
  border-left-style: solid;
  border-image: none;
}

body.centerView :is(.sectionTitle, .roomSection h2, #formationTitle) {
  padding-top: 3px;
  padding-bottom: 3px;
  line-height: 1.3;
  margin-top: 5px;
  margin-bottom: 4px;
  min-height: 0px;
}

body.centerView .roomHeading {
  padding-right: 10px;
  padding-left: 10px;
}

body.centerView .roomHeading #roomTitle {
  flex: 0 1 auto;
  margin: 0px;
  background: none;
  border: 0px;
  box-shadow: none;
  line-height: 1.3;
}

@media (max-width: 600px) {
  body.centerView .roomHeading {
    padding-left: 8px;
    padding-right: 8px;
}
}

body.centerView .roomHeading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px 12px;
  padding-top: 3px;
  padding-bottom: 3px;
  margin: 4px -7px;
  border: 1px solid rgb(50, 121, 93);
  border-radius: 5px 3px 5px 4px;
  flex-wrap: nowrap;
}

body.centerView .roomHeading .centerConnections {
  position: static;
  margin: 0px 0px 0px auto;
  padding: 0px;
  line-height: 1.3;
  align-self: center;
  flex-shrink: 1;
  min-width: 0px;
}

.roomHeading .centerConnections {
  white-space: nowrap;
}

body.centerView :is(.sectionTitle, .roomSection h2, #formationTitle, .roomHeading) {
  background: var(--theme-heading);
  color: var(--theme-page);
  border-color: rgb(61, 125, 99);
  text-shadow: none;
  box-shadow: var(--heading-shadow);
}

@media (max-width: 600px) {
  body.centerView .roomHeading,
  body.centerView .sectionTitle {
    margin-left: 0px;
    margin-right: 0px;
    max-width: 100%;
}
}

body.centerView .centerContent .sectionTitle,
body.centerView .centerContent .roomHeading {
  margin-left: -7px;
  margin-right: -7px;
  padding-left: 10px;
  padding-right: 10px;
}

body.centerView .roomCredits .sectionTitle {
  padding-left: 10px;
  padding-right: 10px;
}

body.centerView .roomCredits .roomHeading {
  margin-left: -7px;
  margin-right: -7px;
  padding-left: 10px;
  padding-right: 10px;
}

body.centerView .roomHeading #roomTitle {
  min-height: 0px;
  padding: 0px;
}

@media (max-width: 900px) {
  body.centerView .centerContent .sectionTitle,
  body.centerView .centerContent .roomHeading,
  body.centerView .roomCredits .sectionTitle,
  body.centerView .roomCredits .roomHeading {
    margin-left: 0px;
    margin-right: 0px;
    padding-left: 8px;
    padding-right: 8px;
    max-width: none;
}

  body.centerView .accountStats > .sectionTitle {
    margin-left: -4px;
    margin-right: -4px;
}

  body.centerView .roomHeading #roomTitle {
    padding: 0px;
}
}

body.centerView .roomCredits .sectionTitle {
  margin-left: 0px;
  margin-right: 0px;
}

@media (max-width: 900px) {
  body.centerView :is(.roomHeading, .sectionTitle, .roomSection h2, #formationTitle) {
    border-radius: 0px;
}

  body.centerView #formationPanel #formationTitle {
    margin-left: 0px;
    margin-right: 0px;
    border-radius: 0px;
}
}

/* === カード：通常・条件付き・操作状態をまとめて管理 === */

.centerCard {
  background: rgba(243, 252, 241, 0.93);
  border: 1px solid var(--control-edge);
  min-height: 690px;
}

.centerView .centerCard {
  position: relative;
  min-height: 0px;
  padding: 2px 6px;
  border: 1px solid var(--control-edge);
}

.centerView .centerCard::after {
  border-right: 2px solid var(--control-edge);
  border-bottom: 2px solid var(--control-edge);
}

.centerView .centerCard::before {
  position: absolute;
  width: 30px;
  height: 30px;
  border-image: none;
  pointer-events: none;
  z-index: 3;
  border-width: 2px 0px 0px 2px;
  border-style: solid none none solid;
  border-color: var(--control-edge) currentcolor currentcolor var(--control-edge);
  top: 0px;
  left: 0px;
}

.centerView .centerCard::after {
  position: absolute;
  width: 30px;
  height: 30px;
  border-image: none;
  pointer-events: none;
  z-index: 3;
  bottom: 0px;
  right: 0px;
  border-left: 0px;
  border-top: 0px;
}

body.centerView .centerCard {
  background: radial-gradient(#c6bba52b 0.65px, transparent 0.8px) 0 0 / 8px 8px, var(--theme-page);
}

body.centerView :is(.centerCard, .roomCard, .centerRoomCard, .formationSlot, .formationChoice, :where(#queuePanel), :where(#matchModePick))::before,
body.centerView :is(.centerCard, .roomCard, .centerRoomCard, .formationSlot, .formationChoice, :where(#queuePanel), :where(#matchModePick))::after {
  content: none;
}

body.centerView .roomCard {
  background: radial-gradient(#c6bba52b 0.65px, transparent 0.8px) 0 0 / 8px 8px, var(--theme-page);
  border-color: var(--theme-line);
  box-shadow: rgba(0, 0, 0, 0.133) 0px 2px 12px;
  background-size: 7px 7px;
}

body.centerView .inkFrame::before,
body.centerView .inkFrame::after,
body.centerView .centerCard::before,
body.centerView .centerCard::after {
  content: none !important;
}

body.centerView .centerCard,
body.centerView .roomCard {
  background-color: var(--theme-page);
  background-image: radial-gradient(rgba(141, 148, 117, 0.063) 0.7px, transparent 0.8px);
}

body.centerView .centerCard {
  background-size: 7px 7px;
  border-color: rgb(155, 164, 135);
  box-shadow: rgba(22, 47, 37, 0.15) 0px 3px 14px;
}

@media (max-width: 600px) {
  body.centerView .centerCard {
    padding: 0px;
    border-top: 0px;
    border-radius: 0px;
}
}

@media (max-width: 900px) {
  body.centerView .centerCard {
    border-left: 0px;
    border-right: 0px;
    padding-left: 0px;
    padding-right: 0px;
}
}

/* === 結果表示：通常・条件付き・操作状態をまとめて管理 === */

.resultDialog::backdrop {
  background: rgba(0, 8, 14, 0.72);
}
body.centerView :is(.centerReturn, .backLink, #queueCancel, #stockRefresh, .casualActions button, #replayControls button, .watchResultActions a):where(:not(.uiAction)){
  color: rgb(41, 74, 68);
  background: linear-gradient(var(--field-surface), rgb(240, 242, 233));
  border-color: rgb(142, 167, 154);
  text-shadow: none;
  box-shadow: rgba(35, 63, 48, 0.08) 0px 2px 3px, rgba(255, 255, 255, 0.85) 0px 1px inset;
  transition: background-color 120ms, box-shadow 120ms, border-color 120ms;
}
body.centerView :is(.centerReturn, .backLink, #queueCancel, #stockRefresh, .casualActions button, #replayControls button, .watchResultActions a):active:not(:disabled):not([aria-disabled="true"]):not(a:not([href])):where(:not(.uiAction)){
  background: linear-gradient(var(--control-pressed), rgb(237, 242, 232));
  color: rgb(32, 77, 62);
  box-shadow: rgba(35, 69, 44, 0.14) 0px 2px 3px inset;
  border-color: rgb(84, 124, 100);
}

@media (hover: hover) and (pointer: fine) {
body.centerView :is(.centerReturn, .backLink, #queueCancel, #stockRefresh, .casualActions button, #replayControls button, .watchResultActions a):hover:not(:disabled):not(a:not([href])):where(:not(.uiAction)){
    background: linear-gradient(rgb(255, 250, 240), rgb(244, 234, 216));
    border-color: var(--theme-hover);
}
}

@media (prefers-reduced-motion: reduce) {
body.centerView :is(.centerReturn, .backLink, #queueCancel, #stockRefresh, .casualActions button, #replayControls button, .watchResultActions a):where(:not(.uiAction)){
    transition: none;
}
}
